{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Work items in lanes with a count; cards with a tag and a person. Moving cards is a port contract (SortableList).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/kanban-board.json\n    Work items in lanes. Each lane has a title, a count and its cards; a card has a title, an optional tag and the person it belongs to. Axes: card (simple, detail: tag and person), cols (2, 3), tone, density. Moving a card between lanes is a port contract.\n    Props (p): id, title, lanes, empty, cards, countLabel, card, cols, tone, density, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_lanes = og_def(p['lanes'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_cards = og_def(p['cards'], none) -%}\n{%- set v_countLabel = og_def(p['countLabel'], none) -%}\n{%- set v_card = og_def(p['card'], 'detail') -%}\n{%- set v_cols = og_def(p['cols'], '3') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_lanes), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'kanban', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_11 -%}\n      {%- for v_lane in og_l(v_lanes) %}\n        {%- set c_10 -%}\n          {%- set c_3 -%}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_lane, ['title'])) }}\n            {%- endset -%}\n            {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'base', 'Weight': 'bold'}, 'children': c_1}) }}\n            {%- set c_2 -%}\n              {{ og_text(og_tpl(v_countLabel, [og_len(og_where(v_cards, 'lane', og_get(v_lane, ['key'])))])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'between'}, 'children': c_3}) }}\n          {%- set c_9 -%}\n            {%- for v_c in og_l(og_where(v_cards, 'lane', og_get(v_lane, ['key']))) %}\n              {%- set c_8 -%}\n                {%- set c_4 -%}\n                  {{ og_text(og_get(v_c, ['title'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_4}) }}\n                {%- if og_t(og_eq(v_card, 'detail')) %}\n                  {%- set c_7 -%}\n                    {%- set c_5 -%}\n                      {{ og_text(og_get(v_c, ['tag'])) }}\n                    {%- endset -%}\n                    {{ og_include('blocks/pill.html.j2', {'p': {'tone': 'blue', 'icon': 'tag'}, 'children': og_markup(c_5)}) }}\n                    {%- set c_6 -%}\n                      {{ og_text(og_get(v_c, ['who'])) }}\n                    {%- endset -%}\n                    {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_6}) }}\n                  {%- endset -%}\n                  {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_7}) }}\n                {%- endif %}\n              {%- endset -%}\n              {{ og_include('compose/list-item.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col rounded bg-card inset-ring inset-ring-border', ('gap-2 p-2' if og_t(og_eq(v_density, 'compact')) else 'gap-2 p-4')])), 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_8}) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0'}, 'children': c_9}) }}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': 'rounded bg-muted p-4', 'Attrs': og_attrs(['data-slot', 'lane'])}, 'children': c_10}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(('1-2' if og_t(og_eq(v_cols, '2')) else '1-3')), 'Class': 'items-start gap-4', 'Attrs': og_attrs(['data-slot', 'lanes'])}, 'children': c_11}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_12)}) }}\n",
      "path": "blocks/kanban-board.html.j2",
      "target": "blocks/kanban-board.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "kanban-board",
  "registryDependencies": [
    "empty-state",
    "grid",
    "group",
    "list",
    "list-item",
    "pill",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Kanban Board",
  "type": "registry:block"
}
