@humandialog/forms.svelte 0.5.6 → 0.5.8

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 (118) hide show
  1. package/README.md +0 -0
  2. package/components/Fab.svelte.d.ts +14 -14
  3. package/components/Floating_container.svelte.d.ts +21 -21
  4. package/components/Grid.menu.svelte.d.ts +25 -25
  5. package/components/button.svelte.d.ts +24 -24
  6. package/components/checkbox.svelte.d.ts +26 -26
  7. package/components/combo/combo.d.ts +17 -17
  8. package/components/combo/combo.item.svelte.d.ts +19 -19
  9. package/components/combo/combo.js +17 -17
  10. package/components/combo/combo.source.svelte.d.ts +22 -22
  11. package/components/combo/combo.svelte.d.ts +42 -42
  12. package/components/contextmenu.svelte.d.ts +26 -26
  13. package/components/date.svelte.d.ts +31 -31
  14. package/components/delayed.spinner.svelte.d.ts +19 -19
  15. package/components/document/internal/Document_command.d.ts +9 -9
  16. package/components/document/internal/Document_command.js +9 -9
  17. package/components/document/internal/Selection_helper.d.ts +7 -7
  18. package/components/document/internal/Selection_helper.js +133 -133
  19. package/components/document/internal/Selection_range.d.ts +26 -26
  20. package/components/document/internal/Selection_range.js +58 -58
  21. package/components/document/internal/palette.row.svelte.d.ts +36 -36
  22. package/components/document/internal/palette.svelte.d.ts +67 -67
  23. package/components/document/rich.edit.svelte.d.ts +32 -32
  24. package/components/edit.field.svelte.d.ts +28 -28
  25. package/components/file.loader.svelte.d.ts +25 -25
  26. package/components/icon.svelte.d.ts +62 -62
  27. package/components/input.text.svelte.d.ts +29 -29
  28. package/components/inputbox.ltop.svelte.d.ts +52 -52
  29. package/components/kanban/Kanban.d.ts +43 -43
  30. package/components/kanban/Kanban.js +79 -79
  31. package/components/kanban/internal/kanban.card.svelte +108 -108
  32. package/components/kanban/internal/kanban.card.svelte.d.ts +32 -32
  33. package/components/kanban/internal/kanban.column.svelte +66 -66
  34. package/components/kanban/internal/kanban.column.svelte.d.ts +51 -51
  35. package/components/kanban/internal/kanban.inserter.svelte +14 -14
  36. package/components/kanban/internal/kanban.inserter.svelte.d.ts +18 -18
  37. package/components/kanban/internal/kanban.move.menu.svelte +135 -135
  38. package/components/kanban/internal/kanban.move.menu.svelte.d.ts +22 -22
  39. package/components/kanban/internal/kanban.props.svelte.d.ts +19 -19
  40. package/components/kanban/kanban.callbacks.svelte +1 -1
  41. package/components/kanban/kanban.callbacks.svelte.d.ts +18 -18
  42. package/components/kanban/kanban.column.svelte +2 -2
  43. package/components/kanban/kanban.column.svelte.d.ts +21 -21
  44. package/components/kanban/kanban.combo.svelte +3 -3
  45. package/components/kanban/kanban.combo.svelte.d.ts +24 -24
  46. package/components/kanban/kanban.date.svelte +1 -1
  47. package/components/kanban/kanban.date.svelte.d.ts +21 -21
  48. package/components/kanban/kanban.source.svelte.d.ts +23 -23
  49. package/components/kanban/kanban.static.svelte.d.ts +20 -20
  50. package/components/kanban/kanban.summary.svelte.d.ts +18 -18
  51. package/components/kanban/kanban.svelte +89 -82
  52. package/components/kanban/kanban.svelte.d.ts +65 -63
  53. package/components/kanban/kanban.tags.svelte.d.ts +23 -23
  54. package/components/kanban/kanban.title.svelte +2 -2
  55. package/components/kanban/kanban.title.svelte.d.ts +18 -18
  56. package/components/list/List.d.ts +44 -44
  57. package/components/list/List.js +52 -52
  58. package/components/list/internal/list.element.props.svelte +65 -65
  59. package/components/list/internal/list.element.props.svelte.d.ts +21 -21
  60. package/components/list/internal/list.element.summary.svelte +46 -44
  61. package/components/list/internal/list.element.summary.svelte.d.ts +24 -25
  62. package/components/list/internal/list.element.svelte +58 -12
  63. package/components/list/internal/list.element.svelte.d.ts +31 -29
  64. package/components/list/internal/list.inserter.svelte.d.ts +19 -19
  65. package/components/list/list.combo.svelte.d.ts +21 -21
  66. package/components/list/list.date.svelte.d.ts +18 -18
  67. package/components/list/list.inserter.svelte.d.ts +17 -17
  68. package/components/list/list.static.svelte.d.ts +17 -17
  69. package/components/list/list.summary.svelte.d.ts +19 -19
  70. package/components/list/list.svelte +15 -2
  71. package/components/list/list.svelte.d.ts +59 -59
  72. package/components/list/list.title.svelte.d.ts +22 -22
  73. package/components/menu.d.ts +4 -4
  74. package/components/menu.js +56 -56
  75. package/components/radio.svelte.d.ts +26 -26
  76. package/components/sidebar/sidebar.brand.svelte.d.ts +31 -31
  77. package/components/sidebar/sidebar.group.svelte.d.ts +33 -33
  78. package/components/sidebar/sidebar.item.svelte.d.ts +28 -28
  79. package/components/sidebar/sidebar.list.svelte +15 -15
  80. package/components/sidebar/sidebar.list.svelte.d.ts +33 -33
  81. package/components/sidebar/sidebar.svelte.d.ts +27 -27
  82. package/components/simple.table.svelte.d.ts +41 -41
  83. package/components/table/_template.table.svelte.d.ts +57 -57
  84. package/components/table/column.svelte.d.ts +19 -19
  85. package/components/table/item.svelte.d.ts +17 -17
  86. package/components/table/table.d.ts +11 -11
  87. package/components/table/table.js +11 -11
  88. package/components/table/table.svelte.d.ts +75 -75
  89. package/components/tag.svelte +17 -17
  90. package/components/tag.svelte.d.ts +19 -19
  91. package/components/tags.svelte.d.ts +31 -31
  92. package/components/textarea.ltop.svelte.d.ts +35 -35
  93. package/components/tile.title.svelte.d.ts +29 -29
  94. package/desk.svelte +8 -7
  95. package/desk.svelte.d.ts +23 -23
  96. package/form.box.svelte.d.ts +35 -35
  97. package/horizontal.toolbar.svelte.d.ts +25 -25
  98. package/index.d.ts +59 -59
  99. package/index.js +65 -65
  100. package/internal/configurable.content.svelte.d.ts +27 -27
  101. package/internal/loading.svelte.d.ts +23 -23
  102. package/modal.svelte.d.ts +35 -35
  103. package/operations.svelte.d.ts +16 -16
  104. package/package.json +8 -8
  105. package/page.row.svelte.d.ts +31 -31
  106. package/page.svelte.d.ts +45 -45
  107. package/stores.d.ts +39 -39
  108. package/stores.js +0 -0
  109. package/tenant.members.svelte +1 -1
  110. package/tenant.members.svelte.d.ts +33 -33
  111. package/tile.svelte.d.ts +33 -33
  112. package/tiles.row.svelte.d.ts +31 -31
  113. package/tiles.vertical.row.svelte.d.ts +29 -29
  114. package/updates.d.ts +4 -4
  115. package/updates.js +0 -0
  116. package/utils.d.ts +35 -35
  117. package/utils.js +0 -0
  118. package/vertical.toolbar.svelte.d.ts +27 -27
@@ -1,19 +1,19 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- position: number;
5
- item: object;
6
- editProperty?: ((field: string) => void) | undefined;
7
- };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {};
12
- };
13
- export type KanbanProps = typeof __propDef.props;
14
- export type KanbanEvents = typeof __propDef.events;
15
- export type KanbanSlots = typeof __propDef.slots;
16
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
17
- get editProperty(): (field: string) => void;
18
- }
19
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ position: number;
5
+ item: object;
6
+ editProperty?: ((field: string) => void) | undefined;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {};
12
+ };
13
+ export type KanbanProps = typeof __propDef.props;
14
+ export type KanbanEvents = typeof __propDef.events;
15
+ export type KanbanSlots = typeof __propDef.slots;
16
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
17
+ get editProperty(): (field: string) => void;
18
+ }
19
+ export {};
@@ -6,4 +6,4 @@ let definition = getContext("rKanban-definition");
6
6
  definition.onAdd = onAdd;
7
7
  definition.onOpen = onOpen;
8
8
  definition.getCardOperations = getCardOperations;
9
- </script>
9
+ </script>
@@ -1,18 +1,18 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- onAdd?: Function | undefined;
5
- onOpen?: Function | undefined;
6
- getCardOperations?: Function | undefined;
7
- };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {};
12
- };
13
- export type KanbanProps = typeof __propDef.props;
14
- export type KanbanEvents = typeof __propDef.events;
15
- export type KanbanSlots = typeof __propDef.slots;
16
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
17
- }
18
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ onAdd?: Function | undefined;
5
+ onOpen?: Function | undefined;
6
+ getCardOperations?: Function | undefined;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {};
12
+ };
13
+ export type KanbanProps = typeof __propDef.props;
14
+ export type KanbanEvents = typeof __propDef.events;
15
+ export type KanbanSlots = typeof __propDef.slots;
16
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
17
+ }
18
+ export {};
@@ -16,5 +16,5 @@ column.finishing = finishing;
16
16
  column.operations = operations;
17
17
  column.onTitleChanged = onTitleChanged;
18
18
  definition.columns.push(column);
19
- </script>
20
-
19
+ </script>
20
+
@@ -1,21 +1,21 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- title?: string | undefined;
5
- width?: string | undefined;
6
- state?: any;
7
- finishing?: boolean | undefined;
8
- operations?: object[] | undefined;
9
- onTitleChanged?: Function | undefined;
10
- };
11
- events: {
12
- [evt: string]: CustomEvent<any>;
13
- };
14
- slots: {};
15
- };
16
- export type KanbanProps = typeof __propDef.props;
17
- export type KanbanEvents = typeof __propDef.events;
18
- export type KanbanSlots = typeof __propDef.slots;
19
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
20
- }
21
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ title?: string | undefined;
5
+ width?: string | undefined;
6
+ state?: any;
7
+ finishing?: boolean | undefined;
8
+ operations?: object[] | undefined;
9
+ onTitleChanged?: Function | undefined;
10
+ };
11
+ events: {
12
+ [evt: string]: CustomEvent<any>;
13
+ };
14
+ slots: {};
15
+ };
16
+ export type KanbanProps = typeof __propDef.props;
17
+ export type KanbanEvents = typeof __propDef.events;
18
+ export type KanbanSlots = typeof __propDef.slots;
19
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
20
+ }
21
+ export {};
@@ -31,6 +31,6 @@ else
31
31
  combo_property.position = KanbanCardMiddle;
32
32
  definition.properties.push(combo_property);
33
33
  setContext("rCombo-definition", combo_property.combo_definition);
34
- </script>
35
-
36
- <slot/>
34
+ </script>
35
+
36
+ <slot/>
@@ -1,24 +1,24 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- name?: string | undefined;
5
- a?: string | undefined;
6
- onSelect?: undefined;
7
- association?: boolean | undefined;
8
- top?: boolean | undefined;
9
- middle?: boolean | undefined;
10
- bottom?: boolean | undefined;
11
- };
12
- events: {
13
- [evt: string]: CustomEvent<any>;
14
- };
15
- slots: {
16
- default: {};
17
- };
18
- };
19
- export type KanbanProps = typeof __propDef.props;
20
- export type KanbanEvents = typeof __propDef.events;
21
- export type KanbanSlots = typeof __propDef.slots;
22
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
23
- }
24
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ name?: string | undefined;
5
+ a?: string | undefined;
6
+ onSelect?: undefined;
7
+ association?: boolean | undefined;
8
+ top?: boolean | undefined;
9
+ middle?: boolean | undefined;
10
+ bottom?: boolean | undefined;
11
+ };
12
+ events: {
13
+ [evt: string]: CustomEvent<any>;
14
+ };
15
+ slots: {
16
+ default: {};
17
+ };
18
+ };
19
+ export type KanbanProps = typeof __propDef.props;
20
+ export type KanbanEvents = typeof __propDef.events;
21
+ export type KanbanSlots = typeof __propDef.slots;
22
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
23
+ }
24
+ export {};
@@ -27,4 +27,4 @@ else if (bottom)
27
27
  else
28
28
  date_property.position = KanbanCardMiddle;
29
29
  definition.properties.push(date_property);
30
- </script>
30
+ </script>
@@ -1,21 +1,21 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- name?: string | undefined;
5
- a?: string | undefined;
6
- onSelect?: undefined;
7
- top?: boolean | undefined;
8
- middle?: boolean | undefined;
9
- bottom?: boolean | undefined;
10
- };
11
- events: {
12
- [evt: string]: CustomEvent<any>;
13
- };
14
- slots: {};
15
- };
16
- export type KanbanProps = typeof __propDef.props;
17
- export type KanbanEvents = typeof __propDef.events;
18
- export type KanbanSlots = typeof __propDef.slots;
19
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
20
- }
21
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ name?: string | undefined;
5
+ a?: string | undefined;
6
+ onSelect?: undefined;
7
+ top?: boolean | undefined;
8
+ middle?: boolean | undefined;
9
+ bottom?: boolean | undefined;
10
+ };
11
+ events: {
12
+ [evt: string]: CustomEvent<any>;
13
+ };
14
+ slots: {};
15
+ };
16
+ export type KanbanProps = typeof __propDef.props;
17
+ export type KanbanEvents = typeof __propDef.events;
18
+ export type KanbanSlots = typeof __propDef.slots;
19
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
20
+ }
21
+ export {};
@@ -1,23 +1,23 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- context?: string | undefined;
5
- objects?: object[] | undefined;
6
- self?: object | undefined;
7
- a?: string | undefined;
8
- key?: string | undefined;
9
- typename?: string | undefined;
10
- stateAttrib?: string | undefined;
11
- orderAttrib?: string | undefined;
12
- };
13
- events: {
14
- [evt: string]: CustomEvent<any>;
15
- };
16
- slots: {};
17
- };
18
- export type KanbanProps = typeof __propDef.props;
19
- export type KanbanEvents = typeof __propDef.events;
20
- export type KanbanSlots = typeof __propDef.slots;
21
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
22
- }
23
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ context?: string | undefined;
5
+ objects?: object[] | undefined;
6
+ self?: object | undefined;
7
+ a?: string | undefined;
8
+ key?: string | undefined;
9
+ typename?: string | undefined;
10
+ stateAttrib?: string | undefined;
11
+ orderAttrib?: string | undefined;
12
+ };
13
+ events: {
14
+ [evt: string]: CustomEvent<any>;
15
+ };
16
+ slots: {};
17
+ };
18
+ export type KanbanProps = typeof __propDef.props;
19
+ export type KanbanEvents = typeof __propDef.events;
20
+ export type KanbanSlots = typeof __propDef.slots;
21
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
22
+ }
23
+ export {};
@@ -1,20 +1,20 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- name?: string | undefined;
5
- a?: string | undefined;
6
- top?: boolean | undefined;
7
- middle?: boolean | undefined;
8
- bottom?: boolean | undefined;
9
- };
10
- events: {
11
- [evt: string]: CustomEvent<any>;
12
- };
13
- slots: {};
14
- };
15
- export type KanbanProps = typeof __propDef.props;
16
- export type KanbanEvents = typeof __propDef.events;
17
- export type KanbanSlots = typeof __propDef.slots;
18
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
19
- }
20
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ name?: string | undefined;
5
+ a?: string | undefined;
6
+ top?: boolean | undefined;
7
+ middle?: boolean | undefined;
8
+ bottom?: boolean | undefined;
9
+ };
10
+ events: {
11
+ [evt: string]: CustomEvent<any>;
12
+ };
13
+ slots: {};
14
+ };
15
+ export type KanbanProps = typeof __propDef.props;
16
+ export type KanbanEvents = typeof __propDef.events;
17
+ export type KanbanSlots = typeof __propDef.slots;
18
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
19
+ }
20
+ export {};
@@ -1,18 +1,18 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- a: string;
5
- onChange?: Function | undefined;
6
- readOnly?: boolean | undefined;
7
- };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {};
12
- };
13
- export type KanbanProps = typeof __propDef.props;
14
- export type KanbanEvents = typeof __propDef.events;
15
- export type KanbanSlots = typeof __propDef.slots;
16
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
17
- }
18
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ a: string;
5
+ onChange?: Function | undefined;
6
+ readOnly?: boolean | undefined;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {};
12
+ };
13
+ export type KanbanProps = typeof __propDef.props;
14
+ export type KanbanEvents = typeof __propDef.events;
15
+ export type KanbanSlots = typeof __propDef.slots;
16
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
17
+ }
18
+ export {};
@@ -150,6 +150,13 @@ afterUpdate(() => {
150
150
  }
151
151
  }
152
152
  });
153
+ export function scrollViewToCard(item) {
154
+ columns.forEach((c2) => {
155
+ const card = c2.findCardByItem(item);
156
+ if (card)
157
+ card._scrollViewToCard();
158
+ });
159
+ }
153
160
  export function moveUp(item) {
154
161
  const columnIdx = getColumnIdx(item);
155
162
  let allItems = definition.getItems();
@@ -407,85 +414,85 @@ export function add(item) {
407
414
  const fromColumnIdx = getColumnIdx(item);
408
415
  columns[fromColumnIdx].add(item);
409
416
  }
410
- </script>
411
-
412
- {#key renderToken}
413
- <slot/> <!-- Launch definition settings -->
414
-
415
- {#if title}
416
- <p class="hidden sm:block mt-3 ml-3 pb-5 text-lg text-left">{title}</p>
417
- <!--hr class="hidden sm:block w-full"-->
418
- {/if}
419
-
420
- <section class="h-full mt-5 flex flex-row no-wrap sm:justify-center
421
- overflow-x-auto snap-x snap-mandatory sm:snap-none
422
- {user_class}">
423
- {#each definition.columns as column, idx (column.id)}
424
- <Column currentColumnIdx={idx}
425
- {onInsert}
426
- bind:this={columns[idx]}>
427
-
428
-
429
- <svelte:fragment slot="kanbanCardTopProps" let:element>
430
- <slot name="kanbanCardTopProps" {element}/>
431
- </svelte:fragment>
432
-
433
- <svelte:fragment slot="kanbanCardMiddleProps" let:element>
434
- <slot name="kanbanCardMiddleProps" {element}/>
435
- </svelte:fragment>
436
-
437
- <svelte:fragment slot="kanbanCardBottomProps" let:element>
438
- <slot name="kanbanCardBottomProps" {element}/>
439
- </svelte:fragment>
440
-
441
- </Column>
442
- {/each}
443
- </section>
444
- {/key}
445
-
446
- <style>
447
- .grid-1
448
- {
449
- display: grid;
450
- grid-template-columns: 100%;
451
- }
452
-
453
- .grid-2
454
- {
455
- display: grid;
456
- grid-template-columns: 50% 50%;
457
- }
458
-
459
- .grid-3
460
- {
461
- display: grid;
462
- grid-template-columns: 33% 33% 33%;
463
- }
464
-
465
- .grid-4
466
- {
467
- display: grid;
468
- grid-template-columns: 25% 25% 25% 25%;
469
- }
470
- .grid-5
471
- {
472
- display: grid;
473
- grid-template-columns: 20% 20% 20% 20% 20%;
474
- }
475
- .grid-6
476
- {
477
- display: grid;
478
- grid-template-columns: 16.6% 16.6% 16.6% 16.6% 16.6% 16.6;
479
- }
480
- .grid-7
481
- {
482
- display: grid;
483
- grid-template-columns: 14.3% 14.3% 14.3% 14.3% 14.3% 14.3% 14.3%;
484
- }
485
- .grid-8
486
- {
487
- display: grid;
488
- grid-template-columns: 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5%;
489
- }
490
-
491
- </style>
417
+ </script>
418
+
419
+ {#key renderToken}
420
+ <slot/> <!-- Launch definition settings -->
421
+
422
+ {#if title}
423
+ <p class="hidden sm:block mt-3 ml-3 pb-5 text-lg text-left">{title}</p>
424
+ <!--hr class="hidden sm:block w-full"-->
425
+ {/if}
426
+
427
+ <section class="h-full mt-5 flex flex-row no-wrap sm:justify-center
428
+ overflow-x-auto snap-x snap-mandatory sm:snap-none
429
+ {user_class}">
430
+ {#each definition.columns as column, idx (column.id)}
431
+ <Column currentColumnIdx={idx}
432
+ {onInsert}
433
+ bind:this={columns[idx]}>
434
+
435
+
436
+ <svelte:fragment slot="kanbanCardTopProps" let:element>
437
+ <slot name="kanbanCardTopProps" {element}/>
438
+ </svelte:fragment>
439
+
440
+ <svelte:fragment slot="kanbanCardMiddleProps" let:element>
441
+ <slot name="kanbanCardMiddleProps" {element}/>
442
+ </svelte:fragment>
443
+
444
+ <svelte:fragment slot="kanbanCardBottomProps" let:element>
445
+ <slot name="kanbanCardBottomProps" {element}/>
446
+ </svelte:fragment>
447
+
448
+ </Column>
449
+ {/each}
450
+ </section>
451
+ {/key}
452
+
453
+ <style>
454
+ .grid-1
455
+ {
456
+ display: grid;
457
+ grid-template-columns: 100%;
458
+ }
459
+
460
+ .grid-2
461
+ {
462
+ display: grid;
463
+ grid-template-columns: 50% 50%;
464
+ }
465
+
466
+ .grid-3
467
+ {
468
+ display: grid;
469
+ grid-template-columns: 33% 33% 33%;
470
+ }
471
+
472
+ .grid-4
473
+ {
474
+ display: grid;
475
+ grid-template-columns: 25% 25% 25% 25%;
476
+ }
477
+ .grid-5
478
+ {
479
+ display: grid;
480
+ grid-template-columns: 20% 20% 20% 20% 20%;
481
+ }
482
+ .grid-6
483
+ {
484
+ display: grid;
485
+ grid-template-columns: 16.6% 16.6% 16.6% 16.6% 16.6% 16.6;
486
+ }
487
+ .grid-7
488
+ {
489
+ display: grid;
490
+ grid-template-columns: 14.3% 14.3% 14.3% 14.3% 14.3% 14.3% 14.3%;
491
+ }
492
+ .grid-8
493
+ {
494
+ display: grid;
495
+ grid-template-columns: 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5% 12.5%;
496
+ }
497
+
498
+ </style>