@shwfed/config 2.12.17 → 3.0.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 (121) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue +17 -11
  3. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.d.vue.ts +2 -2
  4. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue.d.ts +2 -2
  5. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.d.vue.ts +4 -4
  6. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue.d.ts +4 -4
  7. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +1 -1
  8. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
  9. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
  10. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
  11. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
  12. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +35 -35
  13. package/dist/runtime/components/config/footer.vue +14 -8
  14. package/dist/runtime/components/config/index.d.vue.ts +3 -2
  15. package/dist/runtime/components/config/index.vue +30 -2
  16. package/dist/runtime/components/config/index.vue.d.ts +3 -2
  17. package/dist/runtime/components/config/use-editor.d.ts +12 -1
  18. package/dist/runtime/components/config/use-editor.js +47 -24
  19. package/dist/runtime/components/config/use-unsaved-guard.d.ts +1 -0
  20. package/dist/runtime/components/config/use-unsaved-guard.js +8 -0
  21. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +2 -2
  22. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +2 -2
  23. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +6 -6
  24. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +6 -6
  25. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +8 -8
  26. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +8 -8
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  29. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +2 -2
  30. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +2 -2
  31. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
  32. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
  33. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +6 -6
  34. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +6 -6
  35. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +2 -2
  36. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +2 -2
  37. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
  38. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
  39. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
  40. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
  41. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.d.vue.ts +2 -2
  42. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.vue.d.ts +2 -2
  43. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.d.vue.ts +2 -2
  44. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.vue.d.ts +2 -2
  45. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
  46. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
  47. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
  48. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
  49. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
  50. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
  51. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +18 -18
  52. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +18 -18
  53. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/config.d.vue.ts +2 -2
  54. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/config.vue.d.ts +2 -2
  55. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/config.d.vue.ts +2 -2
  56. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/config.vue.d.ts +2 -2
  57. package/dist/runtime/components/form/index.d.vue.ts +2 -0
  58. package/dist/runtime/components/form/index.vue +21 -13
  59. package/dist/runtime/components/form/index.vue.d.ts +2 -0
  60. package/dist/runtime/components/form/schema.d.ts +2 -2
  61. package/dist/runtime/components/modal.d.vue.ts +8 -8
  62. package/dist/runtime/components/modal.vue +9 -1
  63. package/dist/runtime/components/modal.vue.d.ts +8 -8
  64. package/dist/runtime/components/sidebar/footer.vue +13 -7
  65. package/dist/runtime/components/sidebar/index.d.vue.ts +1 -0
  66. package/dist/runtime/components/sidebar/index.vue +30 -2
  67. package/dist/runtime/components/sidebar/index.vue.d.ts +1 -0
  68. package/dist/runtime/components/sidebar/use-editor.d.ts +11 -1
  69. package/dist/runtime/components/sidebar/use-editor.js +38 -17
  70. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  71. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  72. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
  73. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
  74. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -4
  75. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -4
  76. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  77. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  78. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
  79. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
  80. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -4
  81. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -4
  82. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +6 -6
  83. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +6 -6
  84. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +22 -22
  85. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +22 -22
  86. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +6 -6
  87. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +6 -6
  88. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +22 -22
  89. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +22 -22
  90. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -4
  91. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -4
  92. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  93. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  94. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +8 -8
  95. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +8 -8
  96. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +8 -8
  97. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +8 -8
  98. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -4
  99. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -4
  100. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  101. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  102. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +8 -8
  103. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +8 -8
  104. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +8 -8
  105. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +8 -8
  106. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -4
  107. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -4
  108. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  109. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  110. package/dist/runtime/components/table/index.vue +2 -14
  111. package/dist/runtime/components/table/schema.d.ts +69 -69
  112. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  113. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  114. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  115. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  116. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  117. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  118. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  119. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  120. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +4 -1
  121. package/package.json +1 -1
@@ -25,6 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
25
25
  }[]] | undefined;
26
26
  readonly align: "center" | "left" | "right";
27
27
  readonly compatibilityDate: "2026-06-14";
28
+ readonly grow?: boolean | undefined;
28
29
  readonly groupId?: string | undefined;
29
30
  readonly placeholder?: readonly [{
30
31
  readonly locale: "zh";
@@ -35,7 +36,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
35
36
  }[]] | undefined;
36
37
  readonly keywords?: string | undefined;
37
38
  readonly readonly?: string | undefined;
38
- readonly grow?: boolean | undefined;
39
39
  readonly binding: string;
40
40
  readonly derived?: {
41
41
  readonly mode: "formula" | "prefill";
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
45
  readonly data: string;
46
46
  readonly request?: string | undefined;
47
47
  };
48
- readonly enableSorting?: boolean | undefined;
49
48
  readonly nodeKey: string;
50
49
  readonly nodeChildren: string;
51
50
  readonly nodeLabel: string;
51
+ readonly enableSorting?: boolean | undefined;
52
52
  readonly nodeTooltip?: readonly [{
53
53
  readonly locale: "zh";
54
54
  readonly message: string;
@@ -83,6 +83,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
83
83
  }[]] | undefined;
84
84
  readonly align: "center" | "left" | "right";
85
85
  readonly compatibilityDate: "2026-06-14";
86
+ readonly grow?: boolean | undefined;
86
87
  readonly groupId?: string | undefined;
87
88
  readonly placeholder?: readonly [{
88
89
  readonly locale: "zh";
@@ -93,7 +94,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
93
94
  }[]] | undefined;
94
95
  readonly keywords?: string | undefined;
95
96
  readonly readonly?: string | undefined;
96
- readonly grow?: boolean | undefined;
97
97
  readonly binding: string;
98
98
  readonly derived?: {
99
99
  readonly mode: "formula" | "prefill";
@@ -103,10 +103,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly data: string;
104
104
  readonly request?: string | undefined;
105
105
  };
106
- readonly enableSorting?: boolean | undefined;
107
106
  readonly nodeKey: string;
108
107
  readonly nodeChildren: string;
109
108
  readonly nodeLabel: string;
109
+ readonly enableSorting?: boolean | undefined;
110
110
  readonly nodeTooltip?: readonly [{
111
111
  readonly locale: "zh";
112
112
  readonly message: string;
@@ -25,6 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
25
25
  }[]] | undefined;
26
26
  readonly align: "center" | "left" | "right";
27
27
  readonly compatibilityDate: "2026-06-14";
28
+ readonly grow?: boolean | undefined;
28
29
  readonly groupId?: string | undefined;
29
30
  readonly placeholder?: readonly [{
30
31
  readonly locale: "zh";
@@ -35,7 +36,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
35
36
  }[]] | undefined;
36
37
  readonly keywords?: string | undefined;
37
38
  readonly readonly?: string | undefined;
38
- readonly grow?: boolean | undefined;
39
39
  readonly binding: string;
40
40
  readonly derived?: {
41
41
  readonly mode: "formula" | "prefill";
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
45
  readonly data: string;
46
46
  readonly request?: string | undefined;
47
47
  };
48
- readonly enableSorting?: boolean | undefined;
49
48
  readonly nodeKey: string;
50
49
  readonly nodeChildren: string;
51
50
  readonly nodeLabel: string;
51
+ readonly enableSorting?: boolean | undefined;
52
52
  readonly nodeTooltip?: readonly [{
53
53
  readonly locale: "zh";
54
54
  readonly message: string;
@@ -83,6 +83,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
83
83
  }[]] | undefined;
84
84
  readonly align: "center" | "left" | "right";
85
85
  readonly compatibilityDate: "2026-06-14";
86
+ readonly grow?: boolean | undefined;
86
87
  readonly groupId?: string | undefined;
87
88
  readonly placeholder?: readonly [{
88
89
  readonly locale: "zh";
@@ -93,7 +94,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
93
94
  }[]] | undefined;
94
95
  readonly keywords?: string | undefined;
95
96
  readonly readonly?: string | undefined;
96
- readonly grow?: boolean | undefined;
97
97
  readonly binding: string;
98
98
  readonly derived?: {
99
99
  readonly mode: "formula" | "prefill";
@@ -103,10 +103,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly data: string;
104
104
  readonly request?: string | undefined;
105
105
  };
106
- readonly enableSorting?: boolean | undefined;
107
106
  readonly nodeKey: string;
108
107
  readonly nodeChildren: string;
109
108
  readonly nodeLabel: string;
109
+ readonly enableSorting?: boolean | undefined;
110
110
  readonly nodeTooltip?: readonly [{
111
111
  readonly locale: "zh";
112
112
  readonly message: string;
@@ -29,7 +29,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
29
29
  import { ScrollBar } from "../ui/scroll-area";
30
30
  import ShwfedActions from "../actions/components/group.vue";
31
31
  import ShwfedForm from "../form/index.vue";
32
- import { evaluateInitial } from "../form/utils/initial";
33
32
  import { provideTableInstanceId } from "./utils/instance";
34
33
  import {
35
34
  mergeCustomization,
@@ -460,19 +459,8 @@ async function fetchDataSource() {
460
459
  }
461
460
  async function resetQuery() {
462
461
  persistedQuery.clear();
463
- const initial = config.value?.query?.initial;
464
- if (!initial) {
465
- queryState.value = {};
466
- return;
467
- }
468
- try {
469
- const program = evaluateInitial(initial, $cel, { query: {} });
470
- const result = await Effect.runPromise(Effect.provide(program, Fetch.layer));
471
- queryState.value = result && typeof result === "object" && !Array.isArray(result) ? { ...result } : {};
472
- } catch (e) {
473
- console.error("[shwfed-table] resetQuery failed", e);
474
- queryState.value = {};
475
- }
462
+ if (queryRef.value) await queryRef.value.reseed();
463
+ else queryState.value = {};
476
464
  }
477
465
  function cloneRow(row) {
478
466
  if (!row || typeof row !== "object") return row;
@@ -158,6 +158,40 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
158
158
  readonly message: string;
159
159
  }[]] | undefined;
160
160
  }[];
161
+ readonly query?: {
162
+ readonly style?: string | undefined;
163
+ readonly id?: string | undefined;
164
+ readonly initial?: {
165
+ readonly data: string;
166
+ readonly request?: string | undefined;
167
+ } | undefined;
168
+ readonly displayName?: string | undefined;
169
+ readonly kind: "shwfed.component.form";
170
+ readonly fields: readonly any[];
171
+ readonly layouts: readonly {
172
+ readonly name: string;
173
+ readonly layout: {
174
+ readonly style?: string | undefined;
175
+ readonly columns: number;
176
+ readonly gap?: number | undefined;
177
+ readonly rows?: number | undefined;
178
+ readonly placements: {
179
+ readonly [x: string]: {
180
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
181
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
182
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
183
+ };
184
+ };
185
+ };
186
+ readonly media?: string | undefined;
187
+ }[];
188
+ readonly readonly?: string | undefined;
189
+ } | undefined;
190
+ readonly dataSource?: {
191
+ readonly data: string;
192
+ readonly total?: string | undefined;
193
+ readonly request?: string | undefined;
194
+ } | undefined;
161
195
  readonly actions?: {
162
196
  readonly size: "default" | "sm" | "xs";
163
197
  readonly style?: string | undefined;
@@ -225,40 +259,6 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
225
259
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
226
260
  }[];
227
261
  } | undefined;
228
- readonly query?: {
229
- readonly style?: string | undefined;
230
- readonly id?: string | undefined;
231
- readonly initial?: {
232
- readonly data: string;
233
- readonly request?: string | undefined;
234
- } | undefined;
235
- readonly displayName?: string | undefined;
236
- readonly kind: "shwfed.component.form";
237
- readonly fields: readonly any[];
238
- readonly readonly?: string | undefined;
239
- readonly layouts: readonly {
240
- readonly name: string;
241
- readonly layout: {
242
- readonly style?: string | undefined;
243
- readonly columns: number;
244
- readonly gap?: number | undefined;
245
- readonly rows?: number | undefined;
246
- readonly placements: {
247
- readonly [x: string]: {
248
- readonly area: readonly [readonly [number, number], readonly [number, number]];
249
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
250
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
251
- };
252
- };
253
- };
254
- readonly media?: string | undefined;
255
- }[];
256
- } | undefined;
257
- readonly dataSource?: {
258
- readonly data: string;
259
- readonly total?: string | undefined;
260
- readonly request?: string | undefined;
261
- } | undefined;
262
262
  readonly bottomActions?: {
263
263
  readonly size: "default" | "sm" | "xs";
264
264
  readonly style?: string | undefined;
@@ -683,7 +683,6 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
683
683
  readonly displayName?: string | undefined;
684
684
  readonly kind: "shwfed.component.form";
685
685
  readonly fields: readonly any[];
686
- readonly readonly?: string | undefined;
687
686
  readonly layouts: readonly {
688
687
  readonly name: string;
689
688
  readonly layout: {
@@ -701,6 +700,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
701
700
  };
702
701
  readonly media?: string | undefined;
703
702
  }[];
703
+ readonly readonly?: string | undefined;
704
704
  }, Schema.Struct<{
705
705
  fields: Schema.Array$<Schema.Schema<any, any, never>>;
706
706
  layouts: Schema.refine<readonly {
@@ -827,6 +827,40 @@ export declare function createTableConfig(body: Omit<Schema.Schema.Type<ReturnTy
827
827
  readonly message: string;
828
828
  }[]] | undefined;
829
829
  }[];
830
+ query?: {
831
+ readonly style?: string | undefined;
832
+ readonly id?: string | undefined;
833
+ readonly initial?: {
834
+ readonly data: string;
835
+ readonly request?: string | undefined;
836
+ } | undefined;
837
+ readonly displayName?: string | undefined;
838
+ readonly kind: "shwfed.component.form";
839
+ readonly fields: readonly any[];
840
+ readonly layouts: readonly {
841
+ readonly name: string;
842
+ readonly layout: {
843
+ readonly style?: string | undefined;
844
+ readonly columns: number;
845
+ readonly gap?: number | undefined;
846
+ readonly rows?: number | undefined;
847
+ readonly placements: {
848
+ readonly [x: string]: {
849
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
850
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
851
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
852
+ };
853
+ };
854
+ };
855
+ readonly media?: string | undefined;
856
+ }[];
857
+ readonly readonly?: string | undefined;
858
+ } | undefined;
859
+ dataSource?: {
860
+ readonly data: string;
861
+ readonly total?: string | undefined;
862
+ readonly request?: string | undefined;
863
+ } | undefined;
830
864
  actions?: {
831
865
  readonly size: "default" | "sm" | "xs";
832
866
  readonly style?: string | undefined;
@@ -894,40 +928,6 @@ export declare function createTableConfig(body: Omit<Schema.Schema.Type<ReturnTy
894
928
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
895
929
  }[];
896
930
  } | undefined;
897
- query?: {
898
- readonly style?: string | undefined;
899
- readonly id?: string | undefined;
900
- readonly initial?: {
901
- readonly data: string;
902
- readonly request?: string | undefined;
903
- } | undefined;
904
- readonly displayName?: string | undefined;
905
- readonly kind: "shwfed.component.form";
906
- readonly fields: readonly any[];
907
- readonly readonly?: string | undefined;
908
- readonly layouts: readonly {
909
- readonly name: string;
910
- readonly layout: {
911
- readonly style?: string | undefined;
912
- readonly columns: number;
913
- readonly gap?: number | undefined;
914
- readonly rows?: number | undefined;
915
- readonly placements: {
916
- readonly [x: string]: {
917
- readonly area: readonly [readonly [number, number], readonly [number, number]];
918
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
919
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
920
- };
921
- };
922
- };
923
- readonly media?: string | undefined;
924
- }[];
925
- } | undefined;
926
- dataSource?: {
927
- readonly data: string;
928
- readonly total?: string | undefined;
929
- readonly request?: string | undefined;
930
- } | undefined;
931
931
  bottomActions?: {
932
932
  readonly size: "default" | "sm" | "xs";
933
933
  readonly style?: string | undefined;
@@ -28,8 +28,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
28
28
  "onUpdate:modelValue"?: ((args_0: Date | undefined) => any) | undefined;
29
29
  }>, {
30
30
  size: "sm" | "md" | "lg";
31
- clearIcon: string;
32
31
  clearable: boolean;
32
+ clearIcon: string;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
35
  declare const _default: typeof __VLS_export;
@@ -28,8 +28,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
28
28
  "onUpdate:modelValue"?: ((args_0: Date | undefined) => any) | undefined;
29
29
  }>, {
30
30
  size: "sm" | "md" | "lg";
31
- clearIcon: string;
32
31
  clearable: boolean;
32
+ clearIcon: string;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
35
  declare const _default: typeof __VLS_export;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
22
22
  size: "sm" | "md" | "lg";
23
23
  granularity: "hour" | "minute" | "second";
24
24
  hourCycle: 12 | 24;
25
- clearIcon: string;
26
25
  clearable: boolean;
26
+ clearIcon: string;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
22
22
  size: "sm" | "md" | "lg";
23
23
  granularity: "hour" | "minute" | "second";
24
24
  hourCycle: 12 | 24;
25
- clearIcon: string;
26
25
  clearable: boolean;
26
+ clearIcon: string;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -29,8 +29,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
29
29
  "onUpdate:endValue"?: ((args_0: Date | undefined) => any) | undefined;
30
30
  }>, {
31
31
  size: "sm" | "md" | "lg";
32
- clearIcon: string;
33
32
  clearable: boolean;
33
+ clearIcon: string;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  export default _default;
@@ -29,8 +29,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
29
29
  "onUpdate:endValue"?: ((args_0: Date | undefined) => any) | undefined;
30
30
  }>, {
31
31
  size: "sm" | "md" | "lg";
32
- clearIcon: string;
33
32
  clearable: boolean;
33
+ clearIcon: string;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  export default _default;
@@ -26,9 +26,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
26
  size: "sm" | "md" | "lg";
27
27
  granularity: "hour" | "minute" | "second";
28
28
  hourCycle: 12 | 24;
29
- rangeSeparatorIcon: string;
30
- clearIcon: string;
31
29
  clearable: boolean;
30
+ clearIcon: string;
31
+ rangeSeparatorIcon: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
@@ -26,9 +26,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
26
  size: "sm" | "md" | "lg";
27
27
  granularity: "hour" | "minute" | "second";
28
28
  hourCycle: 12 | 24;
29
- rangeSeparatorIcon: string;
30
- clearIcon: string;
31
29
  clearable: boolean;
30
+ clearIcon: string;
31
+ rangeSeparatorIcon: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
@@ -119,6 +119,9 @@ const showAddon = computed(() => hasVars.value || !!resultTypeLabel.value || !!s
119
119
  const addonAlign = computed(
120
120
  () => props.multiline ? "block-end" : "inline-end"
121
121
  );
122
+ const leadingAlign = computed(
123
+ () => props.multiline ? "block-start" : "inline-start"
124
+ );
122
125
  </script>
123
126
 
124
127
  <template>
@@ -126,7 +129,7 @@ const addonAlign = computed(
126
129
  <InputGroup>
127
130
  <InputGroupAddon
128
131
  v-if="$slots.leading"
129
- align="inline-start"
132
+ :align="leadingAlign"
130
133
  >
131
134
  <slot name="leading" />
132
135
  </InputGroupAddon>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "2.12.17",
3
+ "version": "3.0.0",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {