npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zeedhi/zd-kanban

v1.7.1

Published

Powered by Zeedhi

Downloads

4

Readme

ZdKanban

O componente ZdKanban é usado para quadros de tarefas.

Instalação

O ZdKanban é composto pelos pacotes @zeedhi/zd-kanban-common e @zeedhi/zd-kanban-vue. Utilize o comando abaixo para instalar ambos automaticamente:

npm install @zeedhi/zd-kanban

Ou instale os pacotes separadamente:

npm install @zeedhi/zd-kanban-vue @zeedhi/zd-kanban-common

Registro do Componente

Para registrá-lo, adicione o seguinte código ao inicializar a aplicação (por exemplo no arquivo zeedhi.ts)

import Vue from 'vue';
import { ZdKanban, ZdKanbanColumn, ZdKanbanTask  } from '@zeedhi/zd-kanban'; 
// import { ZdKanban, ZdKanbanColumn, ZdKanbanTask } from '@zeedhi/zd-kanban-vue'; caso tenha instalado os pacotes separadamente

Vue.component('ZdKanban', ZdKanban);
Vue.component('ZdKanbanColumn', ZdKanbanColumn);
Vue.component('ZdKanbanTask', ZdKanbanTask);

Uso Básico

Para utilizá-lo em um Metadata, basta definir a propriedade component como "ZdKanban".

{
  "name": "kanban-basic-usage",
  "component": "ZdKanban",
  "columns": [
    {
      "id": "1",
      "name": "backlog",
      "title": "Backlog"
    },
    {
      "id": "2",
      "name": "in-progress",
      "title": "In Progress",
      "tasks": []
    },
    {
      "id": "3",
      "name": "in-review",
      "title": "In Review",
      "tasks": []
    },
    {
      "id": "4",
      "name": "done",
      "title": "Done",
      "tasks": []
    }
  ],
  "taskMetadata": {
    "name": "<<row.name>>_task",
    "component": "ZdKanbanTask",
    "children": [
      {
        "name": "<<row.name>>_text",
        "component": "ZdText",
        "text": "<<row.text>>"
      }
    ]
  },
  "datasource": {
    "data": [
      {
        "name": "task-name-1",
        "column": "1",
        "text": "Item 1"
      },
      {
        "name": "task-name-2",
        "column": "1",
        "text": "Item 2"
      }
    ]
  }
}

Propriedades

| Nome | Tipo | Padrão | Descrição | |--------------------|-----------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------| | columns | object | [] | Define um array de IColumn |

IKanbanColumn

| Nome | Tipo | Padrão | Descrição | |--------------------|-----------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------| | tasks | object | [] | Define um array de ITask | | backgroundColor | string | | Define a cor de fundo da coluna | | nameColor | string | | Define a cor do titulo da coluna | | title | string | | Define o titulo da coluna, se não for definido sera utilizado o valor da propriedade name | | animation | number | 200 | Define o tempo da animação de arrastar das tasks em milissegundos |

IKanbanTask

O componente KanbanTask extende do componente ZdCard tento assim todas as suas propriedades

| Nome | Tipo | Padrão | Descrição | |--------------------|-----------------------|-----------------------------------|-----------------------------------------------------------------------| | elevation | number | 1 | Define o valor da elevação do card do task |