@humandialog/forms.svelte 0.5.6 → 0.5.7

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 (117) 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 +106 -106
  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 +82 -82
  52. package/components/kanban/kanban.svelte.d.ts +63 -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 +45 -10
  63. package/components/list/internal/list.element.svelte.d.ts +29 -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.d.ts +59 -59
  71. package/components/list/list.title.svelte.d.ts +22 -22
  72. package/components/menu.d.ts +4 -4
  73. package/components/menu.js +56 -56
  74. package/components/radio.svelte.d.ts +26 -26
  75. package/components/sidebar/sidebar.brand.svelte.d.ts +31 -31
  76. package/components/sidebar/sidebar.group.svelte.d.ts +33 -33
  77. package/components/sidebar/sidebar.item.svelte.d.ts +28 -28
  78. package/components/sidebar/sidebar.list.svelte +15 -15
  79. package/components/sidebar/sidebar.list.svelte.d.ts +33 -33
  80. package/components/sidebar/sidebar.svelte.d.ts +27 -27
  81. package/components/simple.table.svelte.d.ts +41 -41
  82. package/components/table/_template.table.svelte.d.ts +57 -57
  83. package/components/table/column.svelte.d.ts +19 -19
  84. package/components/table/item.svelte.d.ts +17 -17
  85. package/components/table/table.d.ts +11 -11
  86. package/components/table/table.js +11 -11
  87. package/components/table/table.svelte.d.ts +75 -75
  88. package/components/tag.svelte +17 -17
  89. package/components/tag.svelte.d.ts +19 -19
  90. package/components/tags.svelte.d.ts +31 -31
  91. package/components/textarea.ltop.svelte.d.ts +35 -35
  92. package/components/tile.title.svelte.d.ts +29 -29
  93. package/desk.svelte +8 -7
  94. package/desk.svelte.d.ts +23 -23
  95. package/form.box.svelte.d.ts +35 -35
  96. package/horizontal.toolbar.svelte.d.ts +25 -25
  97. package/index.d.ts +59 -59
  98. package/index.js +65 -65
  99. package/internal/configurable.content.svelte.d.ts +27 -27
  100. package/internal/loading.svelte.d.ts +23 -23
  101. package/modal.svelte.d.ts +35 -35
  102. package/operations.svelte.d.ts +16 -16
  103. package/package.json +8 -8
  104. package/page.row.svelte.d.ts +31 -31
  105. package/page.svelte.d.ts +45 -45
  106. package/stores.d.ts +39 -39
  107. package/stores.js +0 -0
  108. package/tenant.members.svelte +1 -1
  109. package/tenant.members.svelte.d.ts +33 -33
  110. package/tile.svelte.d.ts +33 -33
  111. package/tiles.row.svelte.d.ts +31 -31
  112. package/tiles.vertical.row.svelte.d.ts +29 -29
  113. package/updates.d.ts +4 -4
  114. package/updates.js +0 -0
  115. package/utils.d.ts +35 -35
  116. package/utils.js +0 -0
  117. package/vertical.toolbar.svelte.d.ts +27 -27
@@ -1,43 +1,43 @@
1
- import type { rList_property } from "../list/List";
2
- export declare const KanbanCardTop = 1;
3
- export declare const KanbanCardMiddle = 2;
4
- export declare const KanbanCardBottom = 3;
5
- export declare class rKanban_column {
6
- id: number;
7
- title: string;
8
- width: string;
9
- state: any;
10
- finishing: boolean;
11
- operations: object[] | undefined;
12
- onTitleChanged: Function | undefined;
13
- }
14
- export declare class rKanban_definition {
15
- columns: rKanban_column[];
16
- titleAttrib: string;
17
- titleOnChange: Function | undefined;
18
- titleReadOnly: boolean;
19
- summaryAttrib: string;
20
- summaryOnChange: Function | undefined;
21
- summaryReadOnly: boolean;
22
- properties: rList_property[];
23
- self: object | undefined;
24
- a: string;
25
- objects: object[] | undefined;
26
- context: string;
27
- key: string;
28
- typename: string;
29
- stateAttrib: string;
30
- orderAttrib: string;
31
- onUp: Function | undefined;
32
- onDown: Function | undefined;
33
- onAdd: Function | undefined;
34
- onRemove: Function | undefined;
35
- onReplace: Function | undefined;
36
- onOpen: Function | undefined;
37
- getCardOperations: Function | undefined;
38
- private items;
39
- getItems(): object[];
40
- clear(): void;
41
- }
42
- export declare const KanbanColumnTop = -1;
43
- export declare const KanbanColumnBottom = -2;
1
+ import type { rList_property } from "../list/List";
2
+ export declare const KanbanCardTop = 1;
3
+ export declare const KanbanCardMiddle = 2;
4
+ export declare const KanbanCardBottom = 3;
5
+ export declare class rKanban_column {
6
+ id: number;
7
+ title: string;
8
+ width: string;
9
+ state: any;
10
+ finishing: boolean;
11
+ operations: object[] | undefined;
12
+ onTitleChanged: Function | undefined;
13
+ }
14
+ export declare class rKanban_definition {
15
+ columns: rKanban_column[];
16
+ titleAttrib: string;
17
+ titleOnChange: Function | undefined;
18
+ titleReadOnly: boolean;
19
+ summaryAttrib: string;
20
+ summaryOnChange: Function | undefined;
21
+ summaryReadOnly: boolean;
22
+ properties: rList_property[];
23
+ self: object | undefined;
24
+ a: string;
25
+ objects: object[] | undefined;
26
+ context: string;
27
+ key: string;
28
+ typename: string;
29
+ stateAttrib: string;
30
+ orderAttrib: string;
31
+ onUp: Function | undefined;
32
+ onDown: Function | undefined;
33
+ onAdd: Function | undefined;
34
+ onRemove: Function | undefined;
35
+ onReplace: Function | undefined;
36
+ onOpen: Function | undefined;
37
+ getCardOperations: Function | undefined;
38
+ private items;
39
+ getItems(): object[];
40
+ clear(): void;
41
+ }
42
+ export declare const KanbanColumnTop = -1;
43
+ export declare const KanbanColumnBottom = -2;
@@ -1,79 +1,79 @@
1
- export const KanbanCardTop = 1;
2
- export const KanbanCardMiddle = 2;
3
- export const KanbanCardBottom = 3;
4
- export class rKanban_column {
5
- id;
6
- title = '';
7
- width = 'w-[240px]';
8
- state = '';
9
- finishing = false;
10
- operations = undefined;
11
- onTitleChanged = undefined;
12
- }
13
- export class rKanban_definition {
14
- columns = [];
15
- titleAttrib = '';
16
- titleOnChange = undefined;
17
- titleReadOnly = false;
18
- summaryAttrib = '';
19
- summaryOnChange = undefined;
20
- summaryReadOnly = false;
21
- properties = [];
22
- self = undefined;
23
- a = '';
24
- objects = undefined;
25
- context = '';
26
- key = '';
27
- typename = '';
28
- stateAttrib = '';
29
- orderAttrib = '';
30
- onUp = undefined;
31
- onDown = undefined;
32
- onAdd = undefined;
33
- onRemove = undefined;
34
- onReplace = undefined;
35
- onOpen = undefined;
36
- getCardOperations = undefined;
37
- items = null;
38
- getItems() {
39
- if (this.items == null) {
40
- let item = this.self;
41
- this.items = null;
42
- if (this.objects)
43
- this.items = this.objects;
44
- else if (item && this.a)
45
- this.items = item[this.a];
46
- if (this.items == null)
47
- this.items = [];
48
- }
49
- return this.items;
50
- }
51
- clear() {
52
- this.columns = [];
53
- this.titleAttrib = '';
54
- this.titleOnChange = undefined;
55
- this.titleReadOnly = false;
56
- this.summaryAttrib = '';
57
- this.summaryOnChange = undefined;
58
- this.summaryReadOnly = false;
59
- this.properties = [];
60
- this.self = undefined;
61
- this.a = '';
62
- this.objects = undefined;
63
- this.context = '';
64
- this.key = '';
65
- this.typename = '';
66
- this.stateAttrib = '';
67
- this.orderAttrib = '';
68
- this.onUp = undefined;
69
- this.onDown = undefined;
70
- this.onAdd = undefined;
71
- this.onRemove = undefined;
72
- this.onReplace = undefined;
73
- this.onOpen = undefined;
74
- this.getCardOperations = undefined;
75
- this.items = null;
76
- }
77
- }
78
- export const KanbanColumnTop = -1;
79
- export const KanbanColumnBottom = -2;
1
+ export const KanbanCardTop = 1;
2
+ export const KanbanCardMiddle = 2;
3
+ export const KanbanCardBottom = 3;
4
+ export class rKanban_column {
5
+ id;
6
+ title = '';
7
+ width = 'w-[240px]';
8
+ state = '';
9
+ finishing = false;
10
+ operations = undefined;
11
+ onTitleChanged = undefined;
12
+ }
13
+ export class rKanban_definition {
14
+ columns = [];
15
+ titleAttrib = '';
16
+ titleOnChange = undefined;
17
+ titleReadOnly = false;
18
+ summaryAttrib = '';
19
+ summaryOnChange = undefined;
20
+ summaryReadOnly = false;
21
+ properties = [];
22
+ self = undefined;
23
+ a = '';
24
+ objects = undefined;
25
+ context = '';
26
+ key = '';
27
+ typename = '';
28
+ stateAttrib = '';
29
+ orderAttrib = '';
30
+ onUp = undefined;
31
+ onDown = undefined;
32
+ onAdd = undefined;
33
+ onRemove = undefined;
34
+ onReplace = undefined;
35
+ onOpen = undefined;
36
+ getCardOperations = undefined;
37
+ items = null;
38
+ getItems() {
39
+ if (this.items == null) {
40
+ let item = this.self;
41
+ this.items = null;
42
+ if (this.objects)
43
+ this.items = this.objects;
44
+ else if (item && this.a)
45
+ this.items = item[this.a];
46
+ if (this.items == null)
47
+ this.items = [];
48
+ }
49
+ return this.items;
50
+ }
51
+ clear() {
52
+ this.columns = [];
53
+ this.titleAttrib = '';
54
+ this.titleOnChange = undefined;
55
+ this.titleReadOnly = false;
56
+ this.summaryAttrib = '';
57
+ this.summaryOnChange = undefined;
58
+ this.summaryReadOnly = false;
59
+ this.properties = [];
60
+ this.self = undefined;
61
+ this.a = '';
62
+ this.objects = undefined;
63
+ this.context = '';
64
+ this.key = '';
65
+ this.typename = '';
66
+ this.stateAttrib = '';
67
+ this.orderAttrib = '';
68
+ this.onUp = undefined;
69
+ this.onDown = undefined;
70
+ this.onAdd = undefined;
71
+ this.onRemove = undefined;
72
+ this.onReplace = undefined;
73
+ this.onOpen = undefined;
74
+ this.getCardOperations = undefined;
75
+ this.items = null;
76
+ }
77
+ }
78
+ export const KanbanColumnTop = -1;
79
+ export const KanbanColumnBottom = -2;
@@ -127,110 +127,110 @@ export async function editProperty(field) {
127
127
  }
128
128
  }
129
129
  }
130
- </script>
131
-
132
- <!-- svelte-ignore a11y-click-events-have-key-events -->
133
-
134
- <li class="mx-2 pt-2 pb-4 px-1 rounded-md border border-transparent {selectedClass} {focusedClass}"
135
- class:cursor-pointer={!isCardActive}
136
- on:click={activate}
137
- use:selectable={item}
138
- bind:this={card}>
139
-
140
- <!-- -->
141
- <!--section class="h-6 w-full flex flex-row ">
142
- <button class="h-3 w-3"
143
- class:hidden={!isCardActive}
144
- on:click={(e) => showMoveOperations()}
145
- bind:this={moveButton}>
146
- <FaArrowsAlt/>
147
- </button>
148
-
149
- {#if $$slots.kanbanCardTopProps}
150
- <div class="ml-auto flex flex-row gap-2">
151
- <slot name="kanbanCardTopProps" element={item}/>
152
- </div>
153
- {/if}
154
- </section-->
155
-
156
- {#if $$slots.kanbanCardTopProps}
157
- <section class="flex flex-row justify-between">
158
- <slot name="kanbanCardTopProps" element={item}/>
159
- </section>
160
- {/if}
161
- <Properties position={KanbanCardTop} {item} bind:this={topProps}/>
162
-
163
-
164
- {#if isCardActive}
165
- <h3 class=" text-lg font-semibold min-h-[1.75rem]
166
- sm:text-sm sm:font-semibold sm:min-h-[1.25rem]
167
- whitespace-nowrap overflow-clip truncate w-full sm:flex-none
168
- relative"
169
- use:editable={{
170
- action: (text) => onTitleChanged(text),
171
- active: true,
172
- readonly: definition.titleReadOnly,
173
- onFinish: (d) => {titleElement.blur()}}}
174
- bind:this={titleElement}>
175
- {item[definition.titleAttrib]}
176
-
177
- {#if definition.onOpen}
178
- <button class="absolute top-1 right-0 w-5 h-5 sm:w-3 sm:h-3"
179
- on:click={(e) => definition.onOpen(item)}>
180
- <FaExternalLinkAlt/>
181
- </button>
182
- {/if}
183
- </h3>
184
- {:else}
185
- <h3 class=" text-lg font-semibold min-h-[1.75rem]
186
- sm:text-sm sm:font-semibold sm:min-h-[1.25rem]
187
- whitespace-nowrap overflow-clip truncate w-full sm:flex-none
188
- relative">
189
- {item[definition.titleAttrib]}
190
-
191
- </h3>
192
- {/if}
193
-
194
-
195
- {#if $$slots.kanbanCardMiddleProps}
196
- <section class="w-full flex flex-row">
197
- <slot name="kanbanCardMiddleProps" element={item} />
198
- </section>
199
- {/if}
200
-
201
- <Properties position={KanbanCardMiddle} {item} bind:this={middleProps}/>
202
-
203
- {#if item[definition.summaryAttrib] || summaryPlaceholder}
204
- {#key item[definition.summaryAttrib]}
205
- {#if isCardActive}
206
- <summary class=" sm:text-xs sm:min-h-[1rem]
207
- text-base min-h-[1.5rem]
208
- text-stone-400
209
- max-h-[75px] sm:max-h-[64px]
210
- overflow-hidden"
211
- use:editable={{
212
- action: (text) => onSummaryChanged(text),
213
- active: true,
214
- readonly: definition.summaryReadOnly,
215
- onFinish: (d) => {summaryPlaceholder = false}}}
216
- bind:this={summaryElement}>
217
- {item[definition.summaryAttrib]}
218
- </summary>
219
- {:else}
220
- <summary class=" sm:text-xs sm:min-h-[1rem]
221
- text-base min-h-[1.5rem]
222
- text-stone-400
223
- max-h-[75px] sm:max-h-[64px]
224
- overflow-hidden">
225
- {item[definition.summaryAttrib]}
226
- </summary>
227
- {/if}
228
- {/key}
229
- {/if}
230
-
231
- {#if $$slots.kanbanCardBottomProps}
232
- <slot name="kanbanCardBottomProps" element={item} />
233
- {/if}
234
-
235
- <Properties position={KanbanCardBottom} {item} bind:this={bottomProps}/>
130
+ </script>
131
+
132
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
133
+
134
+ <li class="mx-2 pt-2 pb-4 px-1 rounded-md border border-transparent {selectedClass} {focusedClass}"
135
+ class:cursor-pointer={!isCardActive}
136
+ on:click={activate}
137
+ use:selectable={item}
138
+ bind:this={card}>
139
+
140
+ <!-- -->
141
+ <!--section class="h-6 w-full flex flex-row ">
142
+ <button class="h-3 w-3"
143
+ class:hidden={!isCardActive}
144
+ on:click={(e) => showMoveOperations()}
145
+ bind:this={moveButton}>
146
+ <FaArrowsAlt/>
147
+ </button>
148
+
149
+ {#if $$slots.kanbanCardTopProps}
150
+ <div class="ml-auto flex flex-row gap-2">
151
+ <slot name="kanbanCardTopProps" element={item}/>
152
+ </div>
153
+ {/if}
154
+ </section-->
155
+
156
+ {#if $$slots.kanbanCardTopProps}
157
+ <section class="flex flex-row justify-between">
158
+ <slot name="kanbanCardTopProps" element={item}/>
159
+ </section>
160
+ {/if}
161
+ <Properties position={KanbanCardTop} {item} bind:this={topProps}/>
162
+
163
+
164
+ {#if isCardActive}
165
+ <h3 class=" text-lg font-semibold min-h-[1.75rem]
166
+ sm:text-sm sm:font-semibold sm:min-h-[1.25rem]
167
+ whitespace-nowrap overflow-clip truncate w-full sm:flex-none
168
+ relative"
169
+ use:editable={{
170
+ action: (text) => onTitleChanged(text),
171
+ active: true,
172
+ readonly: definition.titleReadOnly,
173
+ onFinish: (d) => {titleElement.blur()}}}
174
+ bind:this={titleElement}>
175
+ {item[definition.titleAttrib]}
176
+
177
+ {#if definition.onOpen}
178
+ <button class="absolute top-1 right-0 w-5 h-5 sm:w-3 sm:h-3"
179
+ on:click={(e) => definition.onOpen(item)}>
180
+ <FaExternalLinkAlt/>
181
+ </button>
182
+ {/if}
183
+ </h3>
184
+ {:else}
185
+ <h3 class=" text-lg font-semibold min-h-[1.75rem]
186
+ sm:text-sm sm:font-semibold sm:min-h-[1.25rem]
187
+ whitespace-nowrap overflow-clip truncate w-full sm:flex-none
188
+ relative">
189
+ {item[definition.titleAttrib]}
190
+
191
+ </h3>
192
+ {/if}
193
+
194
+
195
+ {#if $$slots.kanbanCardMiddleProps}
196
+ <section class="w-full flex flex-row">
197
+ <slot name="kanbanCardMiddleProps" element={item} />
198
+ </section>
199
+ {/if}
200
+
201
+ <Properties position={KanbanCardMiddle} {item} bind:this={middleProps}/>
202
+
203
+ {#if item[definition.summaryAttrib] || summaryPlaceholder}
204
+ {#key item[definition.summaryAttrib]}
205
+ {#if isCardActive}
206
+ <p class=" sm:text-xs sm:min-h-[1rem]
207
+ text-base min-h-[1.5rem]
208
+ text-stone-400
209
+ max-h-[75px] sm:max-h-[64px]
210
+ overflow-hidden"
211
+ use:editable={{
212
+ action: (text) => onSummaryChanged(text),
213
+ active: true,
214
+ readonly: definition.summaryReadOnly,
215
+ onFinish: (d) => {summaryPlaceholder = false}}}
216
+ bind:this={summaryElement}>
217
+ {item[definition.summaryAttrib]}
218
+ </p>
219
+ {:else}
220
+ <p class=" sm:text-xs sm:min-h-[1rem]
221
+ text-base min-h-[1.5rem]
222
+ text-stone-400
223
+ max-h-[75px] sm:max-h-[64px]
224
+ overflow-hidden">
225
+ {item[definition.summaryAttrib]}
226
+ </p>
227
+ {/if}
228
+ {/key}
229
+ {/if}
230
+
231
+ {#if $$slots.kanbanCardBottomProps}
232
+ <slot name="kanbanCardBottomProps" element={item} />
233
+ {/if}
234
+
235
+ <Properties position={KanbanCardBottom} {item} bind:this={bottomProps}/>
236
236
  </li>
@@ -1,32 +1,32 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- item: object;
5
- activate?: ((e: any) => void) | undefined;
6
- _scrollViewToCard?: (() => void) | undefined;
7
- editProperty?: ((field: string) => Promise<void>) | undefined;
8
- };
9
- events: {
10
- [evt: string]: CustomEvent<any>;
11
- };
12
- slots: {
13
- kanbanCardTopProps: {
14
- element: object;
15
- };
16
- kanbanCardMiddleProps: {
17
- element: object;
18
- };
19
- kanbanCardBottomProps: {
20
- element: object;
21
- };
22
- };
23
- };
24
- export type KanbanProps = typeof __propDef.props;
25
- export type KanbanEvents = typeof __propDef.events;
26
- export type KanbanSlots = typeof __propDef.slots;
27
- export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
28
- get activate(): (e: any) => void;
29
- get _scrollViewToCard(): () => void;
30
- get editProperty(): (field: string) => Promise<void>;
31
- }
32
- export {};
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ item: object;
5
+ activate?: ((e: any) => void) | undefined;
6
+ _scrollViewToCard?: (() => void) | undefined;
7
+ editProperty?: ((field: string) => Promise<void>) | undefined;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ kanbanCardTopProps: {
14
+ element: object;
15
+ };
16
+ kanbanCardMiddleProps: {
17
+ element: object;
18
+ };
19
+ kanbanCardBottomProps: {
20
+ element: object;
21
+ };
22
+ };
23
+ };
24
+ export type KanbanProps = typeof __propDef.props;
25
+ export type KanbanEvents = typeof __propDef.events;
26
+ export type KanbanSlots = typeof __propDef.slots;
27
+ export default class Kanban extends SvelteComponentTyped<KanbanProps, KanbanEvents, KanbanSlots> {
28
+ get activate(): (e: any) => void;
29
+ get _scrollViewToCard(): () => void;
30
+ get editProperty(): (field: string) => Promise<void>;
31
+ }
32
+ export {};
@@ -156,70 +156,70 @@ export function activate(e) {
156
156
  activateItem("props", columnDef, columnDef.operations);
157
157
  rootElement?.scrollIntoView();
158
158
  }
159
- </script>
160
-
161
- <!-- svelte-ignore a11y-click-events-have-key-events -->
162
-
163
- <section class="snap-center sm:snap-align-none flex-none sm:flex-1 sm:min-w-[180px] sm:max-w-[240px] rounded-md border border-transparent {width_class} {selected_class} {focused_class}"
164
- bind:this={rootElement}>
165
- <header class:cursor-pointer={!is_row_active && columnDef.operations}
166
- use:selectable={columnDef}
167
- on:click={activate}>
168
- <h2 class="mt-2 mb-2 text-lg sm:text-xs uppercase w-full min-h-[1rem] text-center whitespace-nowrap relative">
169
- <span
170
- use:editable={{
171
- action: (text) => onTitleChanged(text),
172
- active: false
173
- }}
174
- bind:this={titleElement}>
175
- {columnDef.title}
176
- </span>
177
-
178
- {#if columnDef.finishing}
179
- <div class="inline-block text-green-600 h-3 w-3 ml-2">
180
- <FaCheck/>
181
- </div>
182
- {/if}
183
- <button class="absolute right-2 w-4 sm:w-2.5"
184
- on:click|stopPropagation={(e) => add(KanbanColumnTop)}>
185
- <FaPlus/>
186
- </button>
187
- </h2>
188
- </header>
189
- <ul class="w-full border-stone-700" bind:this={column_element}>
190
- {#if showInserterAfterId === KanbanColumnTop}
191
- <Inserter onInsert={async (text) => {await onInsert(currentColumnIdx, text, KanbanColumnTop)}}
192
- bind:this={inserter} />
193
- {/if}
194
-
195
- {#if column_items && column_items.length > 0}
196
- {#each column_items as element, item_idx (getItemKey(element))}
197
- <Card item={element}
198
- bind:this={cards[item_idx]}>
199
- <svelte:fragment slot="kanbanCardTopProps" let:element>
200
- <slot name="kanbanCardTopProps" {element}/>
201
- </svelte:fragment>
202
-
203
- <svelte:fragment slot="kanbanCardMiddleProps" let:element>
204
- <slot name="kanbanCardMiddleProps" {element}/>
205
- </svelte:fragment>
206
-
207
- <svelte:fragment slot="kanbanCardBottomProps" let:element>
208
- <slot name="kanbanCardBottomProps" {element}/>
209
- </svelte:fragment>
210
- </Card>
211
-
212
- {#if showInserterAfterId == element.Id}
213
- <Inserter onInsert={async (text) => {await onInsert(currentColumnIdx, text, showInserterAfterId)}}
214
- bind:this={inserter} />
215
- {/if}
216
- {/each}
217
- {/if}
218
-
219
- {#if showInserterAfterId === KanbanColumnBottom}
220
- <Inserter onInsert={async (text) => {await onInsert(currentColumnIdx, text, KanbanColumnBottom)}}
221
- bind:this={inserter} />
222
- {/if}
223
-
224
- </ul>
159
+ </script>
160
+
161
+ <!-- svelte-ignore a11y-click-events-have-key-events -->
162
+
163
+ <section class="snap-center sm:snap-align-none flex-none sm:flex-1 sm:min-w-[180px] sm:max-w-[240px] rounded-md border border-transparent {width_class} {selected_class} {focused_class}"
164
+ bind:this={rootElement}>
165
+ <header class:cursor-pointer={!is_row_active && columnDef.operations}
166
+ use:selectable={columnDef}
167
+ on:click={activate}>
168
+ <h2 class="mt-2 mb-2 text-lg sm:text-xs uppercase w-full min-h-[1rem] text-center whitespace-nowrap relative">
169
+ <span
170
+ use:editable={{
171
+ action: (text) => onTitleChanged(text),
172
+ active: false
173
+ }}
174
+ bind:this={titleElement}>
175
+ {columnDef.title}
176
+ </span>
177
+
178
+ {#if columnDef.finishing}
179
+ <div class="inline-block text-green-600 h-3 w-3 ml-2">
180
+ <FaCheck/>
181
+ </div>
182
+ {/if}
183
+ <button class="absolute right-2 w-4 sm:w-2.5"
184
+ on:click|stopPropagation={(e) => add(KanbanColumnTop)}>
185
+ <FaPlus/>
186
+ </button>
187
+ </h2>
188
+ </header>
189
+ <ul class="w-full border-stone-700" bind:this={column_element}>
190
+ {#if showInserterAfterId === KanbanColumnTop}
191
+ <Inserter onInsert={async (text) => {await onInsert(currentColumnIdx, text, KanbanColumnTop)}}
192
+ bind:this={inserter} />
193
+ {/if}
194
+
195
+ {#if column_items && column_items.length > 0}
196
+ {#each column_items as element, item_idx (getItemKey(element))}
197
+ <Card item={element}
198
+ bind:this={cards[item_idx]}>
199
+ <svelte:fragment slot="kanbanCardTopProps" let:element>
200
+ <slot name="kanbanCardTopProps" {element}/>
201
+ </svelte:fragment>
202
+
203
+ <svelte:fragment slot="kanbanCardMiddleProps" let:element>
204
+ <slot name="kanbanCardMiddleProps" {element}/>
205
+ </svelte:fragment>
206
+
207
+ <svelte:fragment slot="kanbanCardBottomProps" let:element>
208
+ <slot name="kanbanCardBottomProps" {element}/>
209
+ </svelte:fragment>
210
+ </Card>
211
+
212
+ {#if showInserterAfterId == element.Id}
213
+ <Inserter onInsert={async (text) => {await onInsert(currentColumnIdx, text, showInserterAfterId)}}
214
+ bind:this={inserter} />
215
+ {/if}
216
+ {/each}
217
+ {/if}
218
+
219
+ {#if showInserterAfterId === KanbanColumnBottom}
220
+ <Inserter onInsert={async (text) => {await onInsert(currentColumnIdx, text, KanbanColumnBottom)}}
221
+ bind:this={inserter} />
222
+ {/if}
223
+
224
+ </ul>
225
225
  </section>