@svar-ui/svelte-kanban 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/components/Card.svelte +15 -72
  2. package/dist/components/CardList.svelte +8 -341
  3. package/dist/components/CardList.svelte.d.ts +14 -12
  4. package/dist/components/CardMenuButton.svelte +47 -0
  5. package/dist/components/CardMenuButton.svelte.d.ts +10 -0
  6. package/dist/components/CardWrapper.svelte +2 -5
  7. package/dist/components/Column.svelte +85 -53
  8. package/dist/components/Column.svelte.d.ts +4 -0
  9. package/dist/components/DragGhost.svelte +4 -0
  10. package/dist/components/Kanban.svelte +19 -20
  11. package/dist/components/Kanban.svelte.d.ts +117 -12
  12. package/dist/components/Layout.svelte +103 -51
  13. package/dist/components/Layout.svelte.d.ts +5 -1
  14. package/dist/components/Stack.svelte +383 -0
  15. package/dist/components/Stack.svelte.d.ts +26 -0
  16. package/dist/components/StackCardList.svelte +434 -0
  17. package/dist/components/StackCardList.svelte.d.ts +28 -0
  18. package/dist/components/useDrag.svelte.d.ts +7 -5
  19. package/dist/components/useDrag.svelte.js +6 -0
  20. package/dist/context.d.ts +6 -0
  21. package/dist/context.js +1 -0
  22. package/dist/directives/dblclick.d.ts +2 -1
  23. package/dist/directives/dblclick.js +5 -4
  24. package/dist/directives/drag.d.ts +2 -0
  25. package/dist/directives/drag.js +99 -43
  26. package/dist/index.d.ts +10 -4
  27. package/dist/index.js +9 -3
  28. package/dist/layout/stack.d.ts +19 -0
  29. package/dist/layout/stack.js +37 -0
  30. package/dist/layout/target.d.ts +18 -0
  31. package/dist/layout/target.js +74 -0
  32. package/dist/menus/CardActionMenu.svelte +20 -0
  33. package/dist/menus/CardActionMenu.svelte.d.ts +7 -0
  34. package/dist/menus/CardContextMenu.svelte +20 -0
  35. package/dist/menus/CardContextMenu.svelte.d.ts +7 -0
  36. package/dist/menus/ColumnActionMenu.svelte +20 -0
  37. package/dist/menus/ColumnActionMenu.svelte.d.ts +7 -0
  38. package/dist/menus/ColumnContextMenu.svelte +20 -0
  39. package/dist/menus/ColumnContextMenu.svelte.d.ts +7 -0
  40. package/dist/menus/KanbanMenu.svelte +65 -0
  41. package/dist/menus/KanbanMenu.svelte.d.ts +37 -0
  42. package/dist/menus/helpers.d.ts +23 -0
  43. package/dist/menus/helpers.js +80 -0
  44. package/dist/themes/Print.svelte +1 -8
  45. package/dist/themes/PrintBW.svelte +1 -8
  46. package/dist/themes/Willow.svelte +1 -1
  47. package/dist/themes/WillowDark.svelte +1 -1
  48. package/dist/types.d.ts +71 -9
  49. package/package.json +25 -11
  50. package/readme.md +16 -8
  51. package/dist/components/ContextMenu.svelte +0 -111
  52. package/dist/components/ContextMenu.svelte.d.ts +0 -18
  53. package/dist/components/ExportLayout.svelte +0 -52
  54. package/dist/components/ExportLayout.svelte.d.ts +0 -15
  55. package/dist/export/Card.svelte +0 -5
  56. package/dist/export/Card.svelte.d.ts +0 -11
  57. package/dist/export/Kanban.svelte +0 -30
  58. package/dist/export/Kanban.svelte.d.ts +0 -16
  59. package/dist/export.d.ts +0 -3
  60. package/dist/export.js +0 -15
@@ -1,25 +1,25 @@
1
1
  <script lang="ts">import { getContext } from "svelte";
2
+ import { setID } from "@svar-ui/lib-dom";
2
3
  import CardList from "./CardList.svelte";
3
4
  import { createColumnCard } from "../directives/dblclick.js";
4
5
  import { KANBAN_API_CONTEXT } from "../context.js";
5
- let { column, readonly = false, cardContent, cardShape, contentVisible, requestVisible, virtualizeCards, estimatedCardHeight, cardOverscan, fixedColumnWidth, registerColumn, cardCss, columnCss } = $props();
6
+ let { column, headerOnly = false, readonly = false, cardContent, cardShape, contentVisible, requestVisible, virtualizeCards, estimatedCardHeight, cardOverscan, fixedColumnWidth, registerColumn, cardListStart, cardListEnd, cardCss, columnCss } = $props();
6
7
  const dynamicColumnCss = $derived(columnCss ? columnCss(column.cards, column) ?? "" : "");
7
8
  const store = getContext(KANBAN_API_CONTEXT);
8
- const columnAccessor = $derived(store.getState().columnAccessor);
9
+ const { columnAccessor } = store.getReactiveState();
9
10
  const _ = getContext("wx-i18n").getGroup("kanban");
10
11
  let root = $state();
11
- const cardLimitVisible = $derived(typeof column.cardLimit === "number" || column.cardLimit === true);
12
- const cardLimitNumber = $derived(typeof column.cardLimit === "number" ? column.cardLimit : null);
13
12
  const addCardVisible = $derived(column.addCard !== false && !readonly);
14
13
  function toggleCollapsed() {
15
14
  store.exec("update-column", {
16
15
  id: column.id,
17
- column: { collapsed: !column.collapsed }
16
+ column: { collapsed: !column.collapsed },
17
+ skipProvider: true
18
18
  });
19
19
  }
20
20
  function addCard() {
21
21
  if (!addCardVisible) return;
22
- const card = createColumnCard({}, columnAccessor, column.id);
22
+ const card = createColumnCard({}, $columnAccessor, column.id);
23
23
  store.exec("add-card", {
24
24
  card,
25
25
  edit: true
@@ -36,7 +36,14 @@ $effect(() => {
36
36
  <section
37
37
  class="wx-column {column.css ?? ''} {dynamicColumnCss}"
38
38
  class:wx-collapsed={column.collapsed}
39
- class:wx-over-limit={column.overLimit}
39
+ data-column-id={column.collapsed ? setID(column.id) : undefined}
40
+ style:box-sizing={column.width !== undefined ? "border-box" : undefined}
41
+ style:flex={!column.collapsed && column.width !== undefined
42
+ ? `0 0 ${column.width}px`
43
+ : undefined}
44
+ style:min-width={!column.collapsed && column.width !== undefined
45
+ ? `${column.width}px`
46
+ : undefined}
40
47
  bind:this={root}
41
48
  >
42
49
  {#if column.collapsed}
@@ -44,35 +51,51 @@ $effect(() => {
44
51
  type="button"
45
52
  class="wx-expand"
46
53
  onclick={toggleCollapsed}
47
- aria-label={_("Expand column")}
54
+ aria-expanded={false}
55
+ title={column.label}
56
+ aria-label={`${_("Expand column")} ${column.label}`}
48
57
  >
49
58
  <i class="wx-icon wxi-angle-right"></i>
50
59
  </button>
51
- <div class="wx-body">
52
- <h3 class="wx-title">
53
- <span>{column.label}</span>
54
- {#if cardLimitVisible}
55
- <span class="wx-count" class:wx-over={column.overLimit}>
56
- {column.cards.length}{#if cardLimitNumber != null}/{cardLimitNumber}{/if}
57
- </span>
58
- {/if}
59
- </h3>
60
- </div>
60
+ {#if !headerOnly}
61
+ <div class="wx-body">
62
+ <h3 class="wx-title">
63
+ <span>{column.label}</span>
64
+ </h3>
65
+ </div>
66
+ {/if}
61
67
  {:else}
62
- <header class="wx-column-header">
68
+ <header class="wx-column-header" data-column-id={setID(column.id)}>
63
69
  <button
64
70
  type="button"
65
71
  class="wx-toggle"
66
72
  onclick={toggleCollapsed}
73
+ aria-expanded={true}
67
74
  aria-label={_("Collapse column")}
68
75
  >
69
76
  <i class="wx-icon wxi-angle-left"></i>
70
77
  </button>
71
78
  <h3 class="wx-title">{column.label}</h3>
72
- {#if cardLimitVisible}
73
- <span class="wx-count" class:wx-over={column.overLimit}>
74
- {column.cards.length}{#if cardLimitNumber != null}/{cardLimitNumber}{/if}
75
- </span>
79
+ {#if column.summaries.length}
80
+ <div class="wx-column-summaries">
81
+ {#each column.summaries as summary (summary.id)}
82
+ <span
83
+ class="wx-column-summary {summary.css ?? ''}"
84
+ title={summary.text}>{summary.text}</span
85
+ >
86
+ {/each}
87
+ </div>
88
+ {/if}
89
+ {#if column.menu}
90
+ <button
91
+ type="button"
92
+ class="wx-column-menu"
93
+ data-column-menu={setID(column.id)}
94
+ aria-label="{_('Column menu')} {column.label}"
95
+ aria-haspopup="menu"
96
+ >
97
+ <i class="wx-icon wxi-dots-h"></i>
98
+ </button>
76
99
  {/if}
77
100
  {#if addCardVisible}
78
101
  <button
@@ -85,18 +108,22 @@ $effect(() => {
85
108
  </button>
86
109
  {/if}
87
110
  </header>
88
- <CardList
89
- {column}
90
- {readonly}
91
- {cardContent}
92
- {cardShape}
93
- {contentVisible}
94
- {virtualizeCards}
95
- {estimatedCardHeight}
96
- {cardOverscan}
97
- {fixedColumnWidth}
98
- {cardCss}
99
- />
111
+ {#if !headerOnly}
112
+ <CardList
113
+ {column}
114
+ {readonly}
115
+ {cardContent}
116
+ {cardShape}
117
+ {contentVisible}
118
+ {virtualizeCards}
119
+ {estimatedCardHeight}
120
+ {cardOverscan}
121
+ {fixedColumnWidth}
122
+ {cardListStart}
123
+ {cardListEnd}
124
+ {cardCss}
125
+ />
126
+ {/if}
100
127
  {/if}
101
128
  </section>
102
129
 
@@ -124,11 +151,6 @@ $effect(() => {
124
151
  align-items: center;
125
152
  }
126
153
 
127
- .wx-over-limit .wx-column-header,
128
- .wx-over-limit .wx-body {
129
- background: var(--wx-kanban-column-over-limit-bg);
130
- }
131
-
132
154
  .wx-column-header {
133
155
  display: flex;
134
156
  align-items: center;
@@ -146,17 +168,31 @@ $effect(() => {
146
168
  white-space: nowrap;
147
169
  }
148
170
 
149
- .wx-count {
150
- font-size: var(--wx-font-size-sm);
151
- color: var(--wx-color-font-alt);
171
+ .wx-column-summaries {
172
+ display: flex;
173
+ align-items: center;
174
+ gap: 4px;
175
+ min-width: 0;
176
+ max-width: 60%;
177
+ overflow: hidden;
152
178
  }
153
179
 
154
- .wx-over {
155
- color: var(--wx-color-danger);
156
- font-weight: var(--wx-font-weight-md);
180
+ .wx-column-summary {
181
+ min-width: 0;
182
+ overflow: hidden;
183
+ text-overflow: ellipsis;
184
+ white-space: nowrap;
185
+ padding: 1px 6px;
186
+ border: 1px solid var(--wx-kanban-border-color);
187
+ border-radius: var(--wx-border-radius);
188
+ background: var(--wx-kanban-tag-bg);
189
+ font-size: var(--wx-font-size-sm);
190
+ line-height: var(--wx-line-height-sm);
191
+ color: var(--wx-color-font-alt);
157
192
  }
158
193
 
159
194
  .wx-add,
195
+ .wx-column-menu,
160
196
  .wx-toggle {
161
197
  display: inline-flex;
162
198
  align-items: center;
@@ -165,6 +201,7 @@ $effect(() => {
165
201
  border: none;
166
202
  border-radius: var(--wx-icon-border-radius);
167
203
  padding: 0;
204
+ flex: 0 0 18px;
168
205
  width: 18px;
169
206
  height: 18px;
170
207
  cursor: pointer;
@@ -173,14 +210,15 @@ $effect(() => {
173
210
  }
174
211
 
175
212
  .wx-add:hover,
213
+ .wx-column-menu:hover,
176
214
  .wx-toggle:hover {
177
215
  background: var(--wx-background-hover);
178
216
  }
179
217
 
180
218
  .wx-add:focus,
219
+ .wx-column-menu:focus,
181
220
  .wx-toggle:focus {
182
221
  outline: none;
183
- border: 1px solid var(--wx-color-primary);
184
222
  }
185
223
 
186
224
  .wx-expand {
@@ -211,7 +249,6 @@ $effect(() => {
211
249
  bottom: 0px;
212
250
  display: flex;
213
251
  align-items: center;
214
- gap: 8px;
215
252
  max-width: calc(var(--wx-kanban-scroll-height, 100vh) - 96px);
216
253
  transform: rotate(-90deg);
217
254
  transform-origin: left center;
@@ -222,9 +259,4 @@ $effect(() => {
222
259
  overflow: hidden;
223
260
  text-overflow: ellipsis;
224
261
  }
225
-
226
- .wx-collapsed .wx-count {
227
- flex: 0 0 auto;
228
- font-weight: var(--wx-font-weight);
229
- }
230
262
  </style>
@@ -1,8 +1,10 @@
1
+ import type { CardListSlotProps } from "../types.js";
1
2
  import type { Component } from "svelte";
2
3
  import type { ColumnID, ColumnView, KanbanCard } from "@svar-ui/kanban-store";
3
4
  import type { CardShape, CardCssFn, ColumnCssFn } from "../types.js";
4
5
  type Props = {
5
6
  column: ColumnView;
7
+ headerOnly?: boolean;
6
8
  readonly?: boolean;
7
9
  cardContent?: Component<{
8
10
  card: KanbanCard;
@@ -16,6 +18,8 @@ type Props = {
16
18
  cardOverscan: number;
17
19
  fixedColumnWidth: boolean;
18
20
  registerColumn?: (id: ColumnID, element: HTMLElement | null) => void;
21
+ cardListStart?: Component<CardListSlotProps>;
22
+ cardListEnd?: Component<CardListSlotProps>;
19
23
  cardCss?: CardCssFn;
20
24
  columnCss?: ColumnCssFn;
21
25
  };
@@ -53,5 +53,9 @@ const position = $derived.by(() => {
53
53
 
54
54
  .wx-ghost :global(.wx-card) {
55
55
  cursor: grabbing;
56
+ width: 100%;
57
+ height: 100%;
58
+ box-sizing: border-box;
59
+ overflow: hidden;
56
60
  }
57
61
  </style>
@@ -3,7 +3,7 @@ import { writable } from "svelte/store";
3
3
  import { EventBusRouter } from "@svar-ui/lib-state";
4
4
  import { KanbanStore } from "@svar-ui/kanban-store";
5
5
  import Layout from "./Layout.svelte";
6
- import ExportLayout from "./ExportLayout.svelte";
6
+ const ExportLayout = null;
7
7
  import { KANBAN_API_CONTEXT, DND_CONTEXT } from "../context.js";
8
8
  import { DndState } from "./useDrag.svelte.js";
9
9
  import { getCardShape } from "../defaults.js";
@@ -11,7 +11,7 @@ import { getCardShape } from "../defaults.js";
11
11
  import { en } from "@svar-ui/kanban-locales";
12
12
  import { en as coreEn } from "@svar-ui/core-locales";
13
13
  import { Locale } from "@svar-ui/svelte-core";
14
- let { cards, columns, columnAccessor = "column", filters = new Map(), sort = null, card = getCardShape(), readonly = false, render, dynamicData = false, history = false, cardContent, init, tooltip, cardPopup, cardCss, columnCss, ...restProps } = $props();
14
+ let { cards, columns, columnAccessor = "column", swimlanes, swimlaneAccessor = "swimlane", filters = new Map(), sort = null, card = getCardShape(), readonly = false, render, dynamicData = false, history = false, cardContent, init, tooltip, cardPopup, cardListStart, cardListEnd, cardCss, columnCss, cardProjection = null, ...restProps } = $props();
15
15
  // svelte-ignore state_referenced_locally
16
16
  const store = new KanbanStore(writable, { undo: history });
17
17
  // define event route
@@ -25,7 +25,7 @@ let lastInRoute = new EventBusRouter((a, b) => {
25
25
  }
26
26
  });
27
27
  firstInRoute.setNext(lastInRoute);
28
- export const getState = store.getState.bind(store), getReactiveState = store.getReactive.bind(store), getStores = () => ({ data: store }), getCards = store.getCards.bind(store), exec = store.in.exec.bind(store.in), on = store.in.on.bind(store.in), detach = store.in.detach.bind(store.in), setNext = store.in.setNext.bind(store.in), intercept = store.in.intercept.bind(store.in);
28
+ export const getState = store.getState.bind(store), getReactiveState = store.getReactive.bind(store), getStores = () => ({ data: store }), getCards = store.getCards.bind(store), exec = store.in.exec.bind(store.in), on = store.in.on.bind(store.in), detach = store.in.detach.bind(store.in), setNext = (ev) => lastInRoute = lastInRoute.setNext(ev), intercept = store.in.intercept.bind(store.in);
29
29
  const api = {
30
30
  getState,
31
31
  getReactiveState,
@@ -48,6 +48,8 @@ const input = () => ({
48
48
  cards,
49
49
  columns,
50
50
  columnAccessor,
51
+ swimlanes,
52
+ swimlaneAccessor,
51
53
  filters,
52
54
  sort,
53
55
  dynamicData
@@ -67,18 +69,10 @@ $effect(() => {
67
69
  }
68
70
  store.init(data);
69
71
  });
70
- $effect(() => {
71
- store.meta["export-data"] = {
72
- card,
73
- cardContent,
74
- cardCss,
75
- columnCss
76
- };
77
- });
78
72
  const renderMode = store.getReactive().renderMode;
79
73
  </script>
80
74
 
81
- <Locale words={{...coreEn, ...en}} optional={true}>
75
+ <Locale words={{ ...coreEn, ...en }} optional={true}>
82
76
  <Layout
83
77
  cardShape={card}
84
78
  {readonly}
@@ -86,15 +80,20 @@ const renderMode = store.getReactive().renderMode;
86
80
  {cardContent}
87
81
  {tooltip}
88
82
  {cardPopup}
83
+ {cardListStart}
84
+ {cardListEnd}
89
85
  {cardCss}
90
86
  {columnCss}
87
+ {cardProjection}
91
88
  />
92
- {#if $renderMode === "export"}
93
- <ExportLayout
94
- cardShape={card}
95
- {cardContent}
96
- {cardCss}
97
- {columnCss}
98
- />
89
+ {#if ExportLayout && $renderMode === "export"}
90
+ <ExportLayout cardShape={card} {cardContent} {cardCss} {columnCss} />
99
91
  {/if}
100
- </Locale>
92
+ </Locale>
93
+
94
+ <style>
95
+ /* TEMPORARY (remove when fixed in @svar-ui/svelte-menu). */
96
+ :global([data-menu-ignore]) {
97
+ display: contents;
98
+ }
99
+ </style>
@@ -1,11 +1,14 @@
1
+ import type { CardListSlotProps } from "../types.js";
1
2
  import type { Component } from "svelte";
2
3
  import { KanbanStore } from "@svar-ui/kanban-store";
3
- import type { KanbanCard, ColumnConfig, ColumnAccessor, SortCriterion, FilterPredicate } from "@svar-ui/kanban-store";
4
- import type { CardShape, KanbanInstanceApi, RenderConfig, CardCssFn, ColumnCssFn } from "../types.js";
4
+ import type { KanbanCard, ColumnConfig, ColumnAccessor, SwimlaneConfig, SwimlaneAccessor, SortCriterion, FilterPredicate } from "@svar-ui/kanban-store";
5
+ import type { CardShape, KanbanInstanceApi, KanbanEventHandlers, RenderConfig, CardCssFn, ColumnCssFn, CardProjection } from "../types.js";
5
6
  type Props = {
6
7
  cards: KanbanCard[];
7
- columns: ColumnConfig[];
8
+ columns?: ColumnConfig[];
8
9
  columnAccessor?: ColumnAccessor;
10
+ swimlanes?: SwimlaneConfig[];
11
+ swimlaneAccessor?: SwimlaneAccessor;
9
12
  filters?: Map<string, FilterPredicate>;
10
13
  sort?: SortCriterion;
11
14
  card?: CardShape;
@@ -20,9 +23,12 @@ type Props = {
20
23
  init?: (api: KanbanInstanceApi) => void;
21
24
  tooltip?: any;
22
25
  cardPopup?: any;
26
+ cardListStart?: Component<CardListSlotProps>;
27
+ cardListEnd?: Component<CardListSlotProps>;
23
28
  cardCss?: CardCssFn;
24
29
  columnCss?: ColumnCssFn;
25
- };
30
+ cardProjection?: CardProjection | null;
31
+ } & KanbanEventHandlers;
26
32
  declare const Kanban: Component<Props, {
27
33
  getState: () => import("@svar-ui/kanban-store").State;
28
34
  getReactiveState: () => {
@@ -30,6 +36,8 @@ declare const Kanban: Component<Props, {
30
36
  cards: import("@svar-ui/lib-state").IPublicWritable<import("@svar-ui/kanban-store").CardsStore>;
31
37
  columns: import("@svar-ui/lib-state").IPublicWritable<ColumnConfig[]>;
32
38
  columnAccessor: import("@svar-ui/lib-state").IPublicWritable<ColumnAccessor>;
39
+ swimlanes: import("@svar-ui/lib-state").IPublicWritable<SwimlaneConfig[]>;
40
+ swimlaneAccessor: import("@svar-ui/lib-state").IPublicWritable<ColumnAccessor>;
33
41
  filters: import("@svar-ui/lib-state").IPublicWritable<Map<string, FilterPredicate>>;
34
42
  sort: import("@svar-ui/lib-state").IPublicWritable<SortCriterion>;
35
43
  editorData: import("@svar-ui/lib-state").IPublicWritable<KanbanCard | null>;
@@ -38,16 +46,36 @@ declare const Kanban: Component<Props, {
38
46
  history: import("@svar-ui/lib-state").IPublicWritable<import("@svar-ui/kanban-store").HistoryState>;
39
47
  viewData: import("@svar-ui/lib-state").IPublicWritable<{
40
48
  columns: import("@svar-ui/kanban-store").ColumnView[];
49
+ swimlanes: import("@svar-ui/kanban-store").SwimlaneView[];
41
50
  }>;
42
51
  };
43
52
  getStores: () => {
44
53
  data: KanbanStore;
45
54
  };
46
55
  getCards: () => KanbanCard[];
47
- exec: (name: keyof import("@svar-ui/kanban-store").StoreActions, ev: import("@svar-ui/kanban-store").ExportConfig | {
56
+ exec: (name: keyof import("@svar-ui/kanban-store").StoreActions, ev: {
57
+ column: Partial<ColumnConfig>;
58
+ id?: import("@svar-ui/kanban-store").ColumnID;
59
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
60
+ } | {
61
+ id: import("@svar-ui/kanban-store").ColumnID;
62
+ } | {
63
+ id: import("@svar-ui/kanban-store").ColumnID;
64
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
65
+ } | {
66
+ swimlane: Partial<SwimlaneConfig>;
67
+ id?: import("@svar-ui/kanban-store").SwimlaneID;
68
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
69
+ } | {
70
+ id: import("@svar-ui/kanban-store").SwimlaneID;
71
+ } | {
72
+ id: import("@svar-ui/kanban-store").SwimlaneID;
73
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
74
+ } | {
48
75
  card: Partial<KanbanCard>;
49
76
  edit?: boolean;
50
77
  id?: import("@svar-ui/kanban-store").CardID;
78
+ before?: import("@svar-ui/kanban-store").CardID | null;
51
79
  after?: import("@svar-ui/kanban-store").CardID;
52
80
  } | {
53
81
  id: import("@svar-ui/kanban-store").CardID;
@@ -55,10 +83,15 @@ declare const Kanban: Component<Props, {
55
83
  } | {
56
84
  id: import("@svar-ui/kanban-store").CardID;
57
85
  column?: import("@svar-ui/kanban-store").ColumnID;
86
+ swimlane?: import("@svar-ui/kanban-store").SwimlaneID;
58
87
  before?: import("@svar-ui/kanban-store").CardID | null;
88
+ } | {
89
+ id: import("@svar-ui/kanban-store").SwimlaneID;
90
+ swimlane: Partial<SwimlaneConfig>;
59
91
  } | {
60
92
  id: import("@svar-ui/kanban-store").ColumnID;
61
93
  column: Partial<ColumnConfig>;
94
+ skipProvider?: boolean;
62
95
  } | {
63
96
  id: import("@svar-ui/kanban-store").CardID;
64
97
  card?: Partial<KanbanCard>;
@@ -77,10 +110,29 @@ declare const Kanban: Component<Props, {
77
110
  } | {
78
111
  id?: import("@svar-ui/kanban-store").ColumnID;
79
112
  cards: KanbanCard[];
80
- } | Record<string, never>) => Promise<import("@svar-ui/kanban-store").ExportConfig | {
113
+ } | import("@svar-ui/kanban-store").ExportConfig | Record<string, never>) => Promise<{
114
+ column: Partial<ColumnConfig>;
115
+ id?: import("@svar-ui/kanban-store").ColumnID;
116
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
117
+ } | {
118
+ id: import("@svar-ui/kanban-store").ColumnID;
119
+ } | {
120
+ id: import("@svar-ui/kanban-store").ColumnID;
121
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
122
+ } | {
123
+ swimlane: Partial<SwimlaneConfig>;
124
+ id?: import("@svar-ui/kanban-store").SwimlaneID;
125
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
126
+ } | {
127
+ id: import("@svar-ui/kanban-store").SwimlaneID;
128
+ } | {
129
+ id: import("@svar-ui/kanban-store").SwimlaneID;
130
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
131
+ } | {
81
132
  card: Partial<KanbanCard>;
82
133
  edit?: boolean;
83
134
  id?: import("@svar-ui/kanban-store").CardID;
135
+ before?: import("@svar-ui/kanban-store").CardID | null;
84
136
  after?: import("@svar-ui/kanban-store").CardID;
85
137
  } | {
86
138
  id: import("@svar-ui/kanban-store").CardID;
@@ -88,10 +140,15 @@ declare const Kanban: Component<Props, {
88
140
  } | {
89
141
  id: import("@svar-ui/kanban-store").CardID;
90
142
  column?: import("@svar-ui/kanban-store").ColumnID;
143
+ swimlane?: import("@svar-ui/kanban-store").SwimlaneID;
91
144
  before?: import("@svar-ui/kanban-store").CardID | null;
145
+ } | {
146
+ id: import("@svar-ui/kanban-store").SwimlaneID;
147
+ swimlane: Partial<SwimlaneConfig>;
92
148
  } | {
93
149
  id: import("@svar-ui/kanban-store").ColumnID;
94
150
  column: Partial<ColumnConfig>;
151
+ skipProvider?: boolean;
95
152
  } | {
96
153
  id: import("@svar-ui/kanban-store").CardID;
97
154
  card?: Partial<KanbanCard>;
@@ -110,11 +167,30 @@ declare const Kanban: Component<Props, {
110
167
  } | {
111
168
  id?: import("@svar-ui/kanban-store").ColumnID;
112
169
  cards: KanbanCard[];
113
- } | Record<string, never>>;
114
- on: (name: keyof import("@svar-ui/kanban-store").StoreActions, handler: (v: import("@svar-ui/kanban-store").ExportConfig | {
170
+ } | import("@svar-ui/kanban-store").ExportConfig | Record<string, never>>;
171
+ on: (name: keyof import("@svar-ui/kanban-store").StoreActions, handler: (v: {
172
+ column: Partial<ColumnConfig>;
173
+ id?: import("@svar-ui/kanban-store").ColumnID;
174
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
175
+ } | {
176
+ id: import("@svar-ui/kanban-store").ColumnID;
177
+ } | {
178
+ id: import("@svar-ui/kanban-store").ColumnID;
179
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
180
+ } | {
181
+ swimlane: Partial<SwimlaneConfig>;
182
+ id?: import("@svar-ui/kanban-store").SwimlaneID;
183
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
184
+ } | {
185
+ id: import("@svar-ui/kanban-store").SwimlaneID;
186
+ } | {
187
+ id: import("@svar-ui/kanban-store").SwimlaneID;
188
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
189
+ } | {
115
190
  card: Partial<KanbanCard>;
116
191
  edit?: boolean;
117
192
  id?: import("@svar-ui/kanban-store").CardID;
193
+ before?: import("@svar-ui/kanban-store").CardID | null;
118
194
  after?: import("@svar-ui/kanban-store").CardID;
119
195
  } | {
120
196
  id: import("@svar-ui/kanban-store").CardID;
@@ -122,10 +198,15 @@ declare const Kanban: Component<Props, {
122
198
  } | {
123
199
  id: import("@svar-ui/kanban-store").CardID;
124
200
  column?: import("@svar-ui/kanban-store").ColumnID;
201
+ swimlane?: import("@svar-ui/kanban-store").SwimlaneID;
125
202
  before?: import("@svar-ui/kanban-store").CardID | null;
203
+ } | {
204
+ id: import("@svar-ui/kanban-store").SwimlaneID;
205
+ swimlane: Partial<SwimlaneConfig>;
126
206
  } | {
127
207
  id: import("@svar-ui/kanban-store").ColumnID;
128
208
  column: Partial<ColumnConfig>;
209
+ skipProvider?: boolean;
129
210
  } | {
130
211
  id: import("@svar-ui/kanban-store").CardID;
131
212
  card?: Partial<KanbanCard>;
@@ -144,13 +225,32 @@ declare const Kanban: Component<Props, {
144
225
  } | {
145
226
  id?: import("@svar-ui/kanban-store").ColumnID;
146
227
  cards: KanbanCard[];
147
- } | Record<string, never>) => void | boolean | Promise<boolean>, config?: import("@svar-ui/lib-state").IEventConfig) => void;
228
+ } | import("@svar-ui/kanban-store").ExportConfig | Record<string, never>) => void | boolean | Promise<boolean>, config?: import("@svar-ui/lib-state").IEventConfig) => void;
148
229
  detach: (tag: number | string | symbol) => void;
149
- setNext: (next: import("@svar-ui/lib-state").IEventBus<import("@svar-ui/kanban-store").StoreActions>) => import("@svar-ui/lib-state").IEventBus<import("@svar-ui/kanban-store").StoreActions>;
150
- intercept: (name: keyof import("@svar-ui/kanban-store").StoreActions, handler: (v: import("@svar-ui/kanban-store").ExportConfig | {
230
+ setNext: (ev: any) => any;
231
+ intercept: (name: keyof import("@svar-ui/kanban-store").StoreActions, handler: (v: {
232
+ column: Partial<ColumnConfig>;
233
+ id?: import("@svar-ui/kanban-store").ColumnID;
234
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
235
+ } | {
236
+ id: import("@svar-ui/kanban-store").ColumnID;
237
+ } | {
238
+ id: import("@svar-ui/kanban-store").ColumnID;
239
+ before?: import("@svar-ui/kanban-store").ColumnID | null;
240
+ } | {
241
+ swimlane: Partial<SwimlaneConfig>;
242
+ id?: import("@svar-ui/kanban-store").SwimlaneID;
243
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
244
+ } | {
245
+ id: import("@svar-ui/kanban-store").SwimlaneID;
246
+ } | {
247
+ id: import("@svar-ui/kanban-store").SwimlaneID;
248
+ before?: import("@svar-ui/kanban-store").SwimlaneID | null;
249
+ } | {
151
250
  card: Partial<KanbanCard>;
152
251
  edit?: boolean;
153
252
  id?: import("@svar-ui/kanban-store").CardID;
253
+ before?: import("@svar-ui/kanban-store").CardID | null;
154
254
  after?: import("@svar-ui/kanban-store").CardID;
155
255
  } | {
156
256
  id: import("@svar-ui/kanban-store").CardID;
@@ -158,10 +258,15 @@ declare const Kanban: Component<Props, {
158
258
  } | {
159
259
  id: import("@svar-ui/kanban-store").CardID;
160
260
  column?: import("@svar-ui/kanban-store").ColumnID;
261
+ swimlane?: import("@svar-ui/kanban-store").SwimlaneID;
161
262
  before?: import("@svar-ui/kanban-store").CardID | null;
263
+ } | {
264
+ id: import("@svar-ui/kanban-store").SwimlaneID;
265
+ swimlane: Partial<SwimlaneConfig>;
162
266
  } | {
163
267
  id: import("@svar-ui/kanban-store").ColumnID;
164
268
  column: Partial<ColumnConfig>;
269
+ skipProvider?: boolean;
165
270
  } | {
166
271
  id: import("@svar-ui/kanban-store").CardID;
167
272
  card?: Partial<KanbanCard>;
@@ -180,7 +285,7 @@ declare const Kanban: Component<Props, {
180
285
  } | {
181
286
  id?: import("@svar-ui/kanban-store").ColumnID;
182
287
  cards: KanbanCard[];
183
- } | Record<string, never>) => void | boolean | Promise<boolean>, config?: import("@svar-ui/lib-state").IEventConfig) => void;
288
+ } | import("@svar-ui/kanban-store").ExportConfig | Record<string, never>) => void | boolean | Promise<boolean>, config?: import("@svar-ui/lib-state").IEventConfig) => void;
184
289
  }, "">;
185
290
  type Kanban = ReturnType<typeof Kanban>;
186
291
  export default Kanban;