@shwfed/config 2.12.1 → 2.12.2

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 (126) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +10 -0
  3. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
  4. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
  5. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
  6. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
  7. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
  8. package/dist/runtime/components/form/config.vue +17 -6
  9. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +2 -2
  10. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +2 -2
  11. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +2 -2
  12. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +2 -2
  13. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.vue +8 -1
  14. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +24 -24
  15. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +24 -24
  16. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +2 -2
  17. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +2 -2
  18. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +24 -24
  19. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +24 -24
  20. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  21. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  22. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.d.vue.ts +32 -32
  23. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.vue.d.ts +32 -32
  24. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue +9 -1
  25. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.d.vue.ts +32 -32
  26. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.vue.d.ts +32 -32
  27. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue +9 -1
  28. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +24 -24
  29. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +24 -24
  30. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue +19 -1
  31. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  32. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  33. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue +19 -1
  34. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +24 -24
  35. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +24 -24
  36. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +20 -1
  37. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
  38. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
  39. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +20 -1
  40. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/config.d.vue.ts +32 -32
  41. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/config.vue.d.ts +32 -32
  42. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/runtime.vue +9 -1
  43. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/config.d.vue.ts +32 -32
  44. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/config.vue.d.ts +32 -32
  45. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/runtime.vue +9 -1
  46. package/dist/runtime/components/form/index.vue +6 -3
  47. package/dist/runtime/components/form/utils/form-vars.js +2 -1
  48. package/dist/runtime/components/head.d.vue.ts +13 -0
  49. package/dist/runtime/components/head.vue +69 -0
  50. package/dist/runtime/components/head.vue.d.ts +13 -0
  51. package/dist/runtime/components/sidebar/config.d.vue.ts +7 -0
  52. package/dist/runtime/components/sidebar/config.vue +302 -0
  53. package/dist/runtime/components/sidebar/config.vue.d.ts +7 -0
  54. package/dist/runtime/components/sidebar/favorites.d.ts +18 -0
  55. package/dist/runtime/components/sidebar/favorites.js +20 -0
  56. package/dist/runtime/components/sidebar/footer.d.vue.ts +11 -0
  57. package/dist/runtime/components/sidebar/footer.vue +49 -0
  58. package/dist/runtime/components/sidebar/footer.vue.d.ts +11 -0
  59. package/dist/runtime/components/sidebar/index.d.vue.ts +50 -0
  60. package/dist/runtime/components/sidebar/index.vue +100 -0
  61. package/dist/runtime/components/sidebar/index.vue.d.ts +50 -0
  62. package/dist/runtime/components/sidebar/node.d.vue.ts +9 -0
  63. package/dist/runtime/components/sidebar/node.vue +102 -0
  64. package/dist/runtime/components/sidebar/node.vue.d.ts +9 -0
  65. package/dist/runtime/components/sidebar/schema.d.ts +72 -0
  66. package/dist/runtime/components/sidebar/schema.js +84 -0
  67. package/dist/runtime/components/sidebar/tree.d.vue.ts +10 -0
  68. package/dist/runtime/components/sidebar/tree.vue +260 -0
  69. package/dist/runtime/components/sidebar/tree.vue.d.ts +10 -0
  70. package/dist/runtime/components/sidebar/types.d.ts +19 -0
  71. package/dist/runtime/components/sidebar/types.js +0 -0
  72. package/dist/runtime/components/sidebar/use-editor.d.ts +18 -0
  73. package/dist/runtime/components/sidebar/use-editor.js +43 -0
  74. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
  75. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
  76. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
  77. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  78. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +36 -36
  79. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +36 -36
  80. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +40 -40
  81. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +40 -40
  82. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +36 -36
  83. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +36 -36
  84. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +40 -40
  85. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +40 -40
  86. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -4
  87. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -4
  88. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  89. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  90. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +26 -26
  91. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +26 -26
  92. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +26 -26
  93. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +26 -26
  94. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -4
  95. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -4
  96. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  97. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  98. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +26 -26
  99. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +26 -26
  100. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +26 -26
  101. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +26 -26
  102. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -4
  103. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -4
  104. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  105. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  106. package/dist/runtime/components/table/schema.d.ts +68 -68
  107. package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.d.vue.ts +1 -0
  108. package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue +8 -0
  109. package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue.d.ts +1 -0
  110. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +3 -2
  111. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +51 -9
  112. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +3 -2
  113. package/dist/runtime/components/ui/expression-editor/option-chip-extension.d.ts +4 -0
  114. package/dist/runtime/components/ui/expression-editor/option-chip-extension.js +119 -0
  115. package/dist/runtime/components/ui/expression-editor/option-refs.d.ts +6 -0
  116. package/dist/runtime/components/ui/expression-editor/option-refs.js +24 -0
  117. package/dist/runtime/components/ui/expression-editor/picker-entries.d.ts +2 -1
  118. package/dist/runtime/components/ui/expression-editor/picker-entries.js +12 -2
  119. package/dist/runtime/utils/cel-context.d.ts +1 -0
  120. package/dist/runtime/utils/cel-context.js +1 -0
  121. package/dist/runtime/utils/selections-registry.d.ts +40 -6
  122. package/dist/runtime/utils/selections-registry.js +19 -4
  123. package/dist/runtime/vendor/cel-js/CLAUDE.md +2 -0
  124. package/dist/runtime/vendor/cel-js/PROMPT.md +2 -0
  125. package/dist/runtime/vendor/cel-js/lib/functions.js +33 -0
  126. package/package.json +1 -1
@@ -24,25 +24,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
24
24
  }[]] | undefined;
25
25
  readonly required?: string | undefined;
26
26
  readonly displayName?: string | undefined;
27
- readonly compatibilityDate: "2026-05-28";
28
- readonly orientation?: "vertical" | "floating" | undefined;
29
- readonly placeholder?: readonly [{
30
- readonly locale: "zh";
31
- readonly message: string;
32
- }, ...{
33
- readonly locale: "en" | "ja" | "ko";
34
- readonly message: string;
35
- }[]] | undefined;
36
- readonly readonly?: string | undefined;
37
- readonly binding?: string | undefined;
38
- readonly derived?: {
39
- readonly mode: "formula" | "prefill";
40
- readonly expression: string;
41
- } | undefined;
42
27
  readonly options: {
43
28
  readonly kind: "remote";
44
- readonly request?: string | undefined;
45
29
  readonly options: string;
30
+ readonly request?: string | undefined;
46
31
  readonly optionValue: string;
47
32
  readonly optionLabel: readonly [{
48
33
  readonly locale: "zh";
@@ -80,6 +65,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
80
65
  readonly keywords?: readonly string[] | undefined;
81
66
  }[];
82
67
  };
68
+ readonly compatibilityDate: "2026-05-28";
69
+ readonly orientation?: "vertical" | "floating" | undefined;
70
+ readonly placeholder?: readonly [{
71
+ readonly locale: "zh";
72
+ readonly message: string;
73
+ }, ...{
74
+ readonly locale: "en" | "ja" | "ko";
75
+ readonly message: string;
76
+ }[]] | undefined;
77
+ readonly readonly?: string | undefined;
78
+ readonly binding?: string | undefined;
79
+ readonly derived?: {
80
+ readonly mode: "formula" | "prefill";
81
+ readonly expression: string;
82
+ } | undefined;
83
83
  readonly validations?: readonly {
84
84
  readonly message: readonly [{
85
85
  readonly locale: "zh";
@@ -114,25 +114,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
114
114
  }[]] | undefined;
115
115
  readonly required?: string | undefined;
116
116
  readonly displayName?: string | undefined;
117
- readonly compatibilityDate: "2026-05-28";
118
- readonly orientation?: "vertical" | "floating" | undefined;
119
- readonly placeholder?: readonly [{
120
- readonly locale: "zh";
121
- readonly message: string;
122
- }, ...{
123
- readonly locale: "en" | "ja" | "ko";
124
- readonly message: string;
125
- }[]] | undefined;
126
- readonly readonly?: string | undefined;
127
- readonly binding?: string | undefined;
128
- readonly derived?: {
129
- readonly mode: "formula" | "prefill";
130
- readonly expression: string;
131
- } | undefined;
132
117
  readonly options: {
133
118
  readonly kind: "remote";
134
- readonly request?: string | undefined;
135
119
  readonly options: string;
120
+ readonly request?: string | undefined;
136
121
  readonly optionValue: string;
137
122
  readonly optionLabel: readonly [{
138
123
  readonly locale: "zh";
@@ -170,6 +155,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
170
155
  readonly keywords?: readonly string[] | undefined;
171
156
  }[];
172
157
  };
158
+ readonly compatibilityDate: "2026-05-28";
159
+ readonly orientation?: "vertical" | "floating" | undefined;
160
+ readonly placeholder?: readonly [{
161
+ readonly locale: "zh";
162
+ readonly message: string;
163
+ }, ...{
164
+ readonly locale: "en" | "ja" | "ko";
165
+ readonly message: string;
166
+ }[]] | undefined;
167
+ readonly readonly?: string | undefined;
168
+ readonly binding?: string | undefined;
169
+ readonly derived?: {
170
+ readonly mode: "formula" | "prefill";
171
+ readonly expression: string;
172
+ } | undefined;
173
173
  readonly validations?: readonly {
174
174
  readonly message: readonly [{
175
175
  readonly locale: "zh";
@@ -24,25 +24,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
24
24
  }[]] | undefined;
25
25
  readonly required?: string | undefined;
26
26
  readonly displayName?: string | undefined;
27
- readonly compatibilityDate: "2026-05-28";
28
- readonly orientation?: "vertical" | "floating" | undefined;
29
- readonly placeholder?: readonly [{
30
- readonly locale: "zh";
31
- readonly message: string;
32
- }, ...{
33
- readonly locale: "en" | "ja" | "ko";
34
- readonly message: string;
35
- }[]] | undefined;
36
- readonly readonly?: string | undefined;
37
- readonly binding?: string | undefined;
38
- readonly derived?: {
39
- readonly mode: "formula" | "prefill";
40
- readonly expression: string;
41
- } | undefined;
42
27
  readonly options: {
43
28
  readonly kind: "remote";
44
- readonly request?: string | undefined;
45
29
  readonly options: string;
30
+ readonly request?: string | undefined;
46
31
  readonly optionValue: string;
47
32
  readonly optionLabel: readonly [{
48
33
  readonly locale: "zh";
@@ -80,6 +65,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
80
65
  readonly keywords?: readonly string[] | undefined;
81
66
  }[];
82
67
  };
68
+ readonly compatibilityDate: "2026-05-28";
69
+ readonly orientation?: "vertical" | "floating" | undefined;
70
+ readonly placeholder?: readonly [{
71
+ readonly locale: "zh";
72
+ readonly message: string;
73
+ }, ...{
74
+ readonly locale: "en" | "ja" | "ko";
75
+ readonly message: string;
76
+ }[]] | undefined;
77
+ readonly readonly?: string | undefined;
78
+ readonly binding?: string | undefined;
79
+ readonly derived?: {
80
+ readonly mode: "formula" | "prefill";
81
+ readonly expression: string;
82
+ } | undefined;
83
83
  readonly validations?: readonly {
84
84
  readonly message: readonly [{
85
85
  readonly locale: "zh";
@@ -114,25 +114,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
114
114
  }[]] | undefined;
115
115
  readonly required?: string | undefined;
116
116
  readonly displayName?: string | undefined;
117
- readonly compatibilityDate: "2026-05-28";
118
- readonly orientation?: "vertical" | "floating" | undefined;
119
- readonly placeholder?: readonly [{
120
- readonly locale: "zh";
121
- readonly message: string;
122
- }, ...{
123
- readonly locale: "en" | "ja" | "ko";
124
- readonly message: string;
125
- }[]] | undefined;
126
- readonly readonly?: string | undefined;
127
- readonly binding?: string | undefined;
128
- readonly derived?: {
129
- readonly mode: "formula" | "prefill";
130
- readonly expression: string;
131
- } | undefined;
132
117
  readonly options: {
133
118
  readonly kind: "remote";
134
- readonly request?: string | undefined;
135
119
  readonly options: string;
120
+ readonly request?: string | undefined;
136
121
  readonly optionValue: string;
137
122
  readonly optionLabel: readonly [{
138
123
  readonly locale: "zh";
@@ -170,6 +155,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
170
155
  readonly keywords?: readonly string[] | undefined;
171
156
  }[];
172
157
  };
158
+ readonly compatibilityDate: "2026-05-28";
159
+ readonly orientation?: "vertical" | "floating" | undefined;
160
+ readonly placeholder?: readonly [{
161
+ readonly locale: "zh";
162
+ readonly message: string;
163
+ }, ...{
164
+ readonly locale: "en" | "ja" | "ko";
165
+ readonly message: string;
166
+ }[]] | undefined;
167
+ readonly readonly?: string | undefined;
168
+ readonly binding?: string | undefined;
169
+ readonly derived?: {
170
+ readonly mode: "formula" | "prefill";
171
+ readonly expression: string;
172
+ } | undefined;
173
173
  readonly validations?: readonly {
174
174
  readonly message: readonly [{
175
175
  readonly locale: "zh";
@@ -8,7 +8,7 @@ import { useI18n } from "vue-i18n";
8
8
  import { asRequest, fetchJsonOption } from "../../../../../share/request";
9
9
  import { cel as _rawCel } from "../../../../../utils/cel";
10
10
  import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
11
- import { publishSelection } from "../../../../../utils/selections-registry";
11
+ import { publishOptions, publishSelection } from "../../../../../utils/selections-registry";
12
12
  import { interpolateMarkdown } from "../../../../table/utils/runtime";
13
13
  import { getLocalizedText } from "../../../../../share/locale";
14
14
  import {
@@ -255,6 +255,14 @@ publishSelection(
255
255
  () => selectedEntry.value,
256
256
  { identity: (entry) => entry.key, raw: (entry) => entry.raw }
257
257
  );
258
+ publishOptions(
259
+ props.fieldId,
260
+ () => entries.value.length > 0 ? entries.value : void 0,
261
+ {
262
+ identity: (list) => list.map((entry) => entry.key).join(" "),
263
+ raw: (list) => list.map((entry) => entry.raw)
264
+ }
265
+ );
258
266
  const open = ref(false);
259
267
  function handleSelect(key) {
260
268
  if (typeof key !== "string") return;
@@ -44,18 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
- readonly cascade: "independent" | "cascade-down" | "cascade-both";
48
- readonly validations?: readonly {
49
- readonly message: readonly [{
50
- readonly locale: "zh";
51
- readonly message: string;
52
- }, ...{
53
- readonly locale: "en" | "ja" | "ko";
54
- readonly message: string;
55
- }[]];
56
- readonly warning?: boolean | undefined;
57
- readonly when: string;
58
- }[] | undefined;
59
47
  readonly nodeKey: string;
60
48
  readonly nodeChildren: string;
61
49
  readonly nodeLabel: readonly [{
@@ -65,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
65
53
  readonly locale: "en" | "ja" | "ko";
66
54
  readonly message: string;
67
55
  }[]];
56
+ readonly cascade: "independent" | "cascade-down" | "cascade-both";
68
57
  readonly nodeTooltip?: readonly [{
69
58
  readonly locale: "zh";
70
59
  readonly message: string;
@@ -74,6 +63,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
74
63
  }[]] | undefined;
75
64
  readonly nodeSelectable?: string | undefined;
76
65
  readonly expandAll: boolean;
66
+ readonly validations?: readonly {
67
+ readonly message: readonly [{
68
+ readonly locale: "zh";
69
+ readonly message: string;
70
+ }, ...{
71
+ readonly locale: "en" | "ja" | "ko";
72
+ readonly message: string;
73
+ }[]];
74
+ readonly warning?: boolean | undefined;
75
+ readonly when: string;
76
+ }[] | undefined;
77
77
  }) => any;
78
78
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
79
79
  "onUpdate:modelValue"?: ((value: {
@@ -117,18 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
117
  readonly data: string;
118
118
  readonly request?: string | undefined;
119
119
  };
120
- readonly cascade: "independent" | "cascade-down" | "cascade-both";
121
- readonly validations?: readonly {
122
- readonly message: readonly [{
123
- readonly locale: "zh";
124
- readonly message: string;
125
- }, ...{
126
- readonly locale: "en" | "ja" | "ko";
127
- readonly message: string;
128
- }[]];
129
- readonly warning?: boolean | undefined;
130
- readonly when: string;
131
- }[] | undefined;
132
120
  readonly nodeKey: string;
133
121
  readonly nodeChildren: string;
134
122
  readonly nodeLabel: readonly [{
@@ -138,6 +126,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
138
126
  readonly locale: "en" | "ja" | "ko";
139
127
  readonly message: string;
140
128
  }[]];
129
+ readonly cascade: "independent" | "cascade-down" | "cascade-both";
141
130
  readonly nodeTooltip?: readonly [{
142
131
  readonly locale: "zh";
143
132
  readonly message: string;
@@ -147,6 +136,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
147
136
  }[]] | undefined;
148
137
  readonly nodeSelectable?: string | undefined;
149
138
  readonly expandAll: boolean;
139
+ readonly validations?: readonly {
140
+ readonly message: readonly [{
141
+ readonly locale: "zh";
142
+ readonly message: string;
143
+ }, ...{
144
+ readonly locale: "en" | "ja" | "ko";
145
+ readonly message: string;
146
+ }[]];
147
+ readonly warning?: boolean | undefined;
148
+ readonly when: string;
149
+ }[] | undefined;
150
150
  }) => any) | undefined;
151
151
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
152
152
  declare const _default: typeof __VLS_export;
@@ -44,18 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
- readonly cascade: "independent" | "cascade-down" | "cascade-both";
48
- readonly validations?: readonly {
49
- readonly message: readonly [{
50
- readonly locale: "zh";
51
- readonly message: string;
52
- }, ...{
53
- readonly locale: "en" | "ja" | "ko";
54
- readonly message: string;
55
- }[]];
56
- readonly warning?: boolean | undefined;
57
- readonly when: string;
58
- }[] | undefined;
59
47
  readonly nodeKey: string;
60
48
  readonly nodeChildren: string;
61
49
  readonly nodeLabel: readonly [{
@@ -65,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
65
53
  readonly locale: "en" | "ja" | "ko";
66
54
  readonly message: string;
67
55
  }[]];
56
+ readonly cascade: "independent" | "cascade-down" | "cascade-both";
68
57
  readonly nodeTooltip?: readonly [{
69
58
  readonly locale: "zh";
70
59
  readonly message: string;
@@ -74,6 +63,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
74
63
  }[]] | undefined;
75
64
  readonly nodeSelectable?: string | undefined;
76
65
  readonly expandAll: boolean;
66
+ readonly validations?: readonly {
67
+ readonly message: readonly [{
68
+ readonly locale: "zh";
69
+ readonly message: string;
70
+ }, ...{
71
+ readonly locale: "en" | "ja" | "ko";
72
+ readonly message: string;
73
+ }[]];
74
+ readonly warning?: boolean | undefined;
75
+ readonly when: string;
76
+ }[] | undefined;
77
77
  }) => any;
78
78
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
79
79
  "onUpdate:modelValue"?: ((value: {
@@ -117,18 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
117
  readonly data: string;
118
118
  readonly request?: string | undefined;
119
119
  };
120
- readonly cascade: "independent" | "cascade-down" | "cascade-both";
121
- readonly validations?: readonly {
122
- readonly message: readonly [{
123
- readonly locale: "zh";
124
- readonly message: string;
125
- }, ...{
126
- readonly locale: "en" | "ja" | "ko";
127
- readonly message: string;
128
- }[]];
129
- readonly warning?: boolean | undefined;
130
- readonly when: string;
131
- }[] | undefined;
132
120
  readonly nodeKey: string;
133
121
  readonly nodeChildren: string;
134
122
  readonly nodeLabel: readonly [{
@@ -138,6 +126,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
138
126
  readonly locale: "en" | "ja" | "ko";
139
127
  readonly message: string;
140
128
  }[]];
129
+ readonly cascade: "independent" | "cascade-down" | "cascade-both";
141
130
  readonly nodeTooltip?: readonly [{
142
131
  readonly locale: "zh";
143
132
  readonly message: string;
@@ -147,6 +136,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
147
136
  }[]] | undefined;
148
137
  readonly nodeSelectable?: string | undefined;
149
138
  readonly expandAll: boolean;
139
+ readonly validations?: readonly {
140
+ readonly message: readonly [{
141
+ readonly locale: "zh";
142
+ readonly message: string;
143
+ }, ...{
144
+ readonly locale: "en" | "ja" | "ko";
145
+ readonly message: string;
146
+ }[]];
147
+ readonly warning?: boolean | undefined;
148
+ readonly when: string;
149
+ }[] | undefined;
150
150
  }) => any) | undefined;
151
151
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
152
152
  declare const _default: typeof __VLS_export;
@@ -7,7 +7,7 @@ import { useI18n } from "vue-i18n";
7
7
  import { fetchJsonOption } from "../../../../../share/request";
8
8
  import { cel as _rawCel } from "../../../../../utils/cel";
9
9
  import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
10
- import { publishSelection } from "../../../../../utils/selections-registry";
10
+ import { publishOptions, publishSelection } from "../../../../../utils/selections-registry";
11
11
  import { getLocalizedText } from "../../../../../share/locale";
12
12
  import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
13
13
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
@@ -254,6 +254,24 @@ publishSelection(
254
254
  raw: (list) => list.map((w) => w.raw)
255
255
  }
256
256
  );
257
+ const flatOptions = computed(() => {
258
+ const out = [];
259
+ const stack = [...roots.value];
260
+ while (stack.length) {
261
+ const n = stack.pop();
262
+ out.push(n);
263
+ if (n.kind === "branch") stack.push(...n.children);
264
+ }
265
+ return out;
266
+ });
267
+ publishOptions(
268
+ props.fieldId,
269
+ () => flatOptions.value.length > 0 ? flatOptions.value : void 0,
270
+ {
271
+ identity: (list) => list.map((w) => w.key).join(" "),
272
+ raw: (list) => list.map((w) => w.raw)
273
+ }
274
+ );
257
275
  const initialExpanded = computed(() => {
258
276
  if (!props.config.expandAll) return [];
259
277
  const out = [];
@@ -44,17 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
- readonly validations?: readonly {
48
- readonly message: readonly [{
49
- readonly locale: "zh";
50
- readonly message: string;
51
- }, ...{
52
- readonly locale: "en" | "ja" | "ko";
53
- readonly message: string;
54
- }[]];
55
- readonly warning?: boolean | undefined;
56
- readonly when: string;
57
- }[] | undefined;
58
47
  readonly nodeKey: string;
59
48
  readonly nodeChildren: string;
60
49
  readonly nodeLabel: readonly [{
@@ -73,6 +62,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
73
62
  }[]] | undefined;
74
63
  readonly nodeSelectable?: string | undefined;
75
64
  readonly expandAll: boolean;
65
+ readonly validations?: readonly {
66
+ readonly message: readonly [{
67
+ readonly locale: "zh";
68
+ readonly message: string;
69
+ }, ...{
70
+ readonly locale: "en" | "ja" | "ko";
71
+ readonly message: string;
72
+ }[]];
73
+ readonly warning?: boolean | undefined;
74
+ readonly when: string;
75
+ }[] | undefined;
76
76
  }) => any;
77
77
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
78
78
  "onUpdate:modelValue"?: ((value: {
@@ -116,17 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
116
  readonly data: string;
117
117
  readonly request?: string | undefined;
118
118
  };
119
- readonly validations?: readonly {
120
- readonly message: readonly [{
121
- readonly locale: "zh";
122
- readonly message: string;
123
- }, ...{
124
- readonly locale: "en" | "ja" | "ko";
125
- readonly message: string;
126
- }[]];
127
- readonly warning?: boolean | undefined;
128
- readonly when: string;
129
- }[] | undefined;
130
119
  readonly nodeKey: string;
131
120
  readonly nodeChildren: string;
132
121
  readonly nodeLabel: readonly [{
@@ -145,6 +134,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
145
134
  }[]] | undefined;
146
135
  readonly nodeSelectable?: string | undefined;
147
136
  readonly expandAll: boolean;
137
+ readonly validations?: readonly {
138
+ readonly message: readonly [{
139
+ readonly locale: "zh";
140
+ readonly message: string;
141
+ }, ...{
142
+ readonly locale: "en" | "ja" | "ko";
143
+ readonly message: string;
144
+ }[]];
145
+ readonly warning?: boolean | undefined;
146
+ readonly when: string;
147
+ }[] | undefined;
148
148
  }) => any) | undefined;
149
149
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
150
150
  declare const _default: typeof __VLS_export;
@@ -44,17 +44,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
- readonly validations?: readonly {
48
- readonly message: readonly [{
49
- readonly locale: "zh";
50
- readonly message: string;
51
- }, ...{
52
- readonly locale: "en" | "ja" | "ko";
53
- readonly message: string;
54
- }[]];
55
- readonly warning?: boolean | undefined;
56
- readonly when: string;
57
- }[] | undefined;
58
47
  readonly nodeKey: string;
59
48
  readonly nodeChildren: string;
60
49
  readonly nodeLabel: readonly [{
@@ -73,6 +62,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
73
62
  }[]] | undefined;
74
63
  readonly nodeSelectable?: string | undefined;
75
64
  readonly expandAll: boolean;
65
+ readonly validations?: readonly {
66
+ readonly message: readonly [{
67
+ readonly locale: "zh";
68
+ readonly message: string;
69
+ }, ...{
70
+ readonly locale: "en" | "ja" | "ko";
71
+ readonly message: string;
72
+ }[]];
73
+ readonly warning?: boolean | undefined;
74
+ readonly when: string;
75
+ }[] | undefined;
76
76
  }) => any;
77
77
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
78
78
  "onUpdate:modelValue"?: ((value: {
@@ -116,17 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
116
  readonly data: string;
117
117
  readonly request?: string | undefined;
118
118
  };
119
- readonly validations?: readonly {
120
- readonly message: readonly [{
121
- readonly locale: "zh";
122
- readonly message: string;
123
- }, ...{
124
- readonly locale: "en" | "ja" | "ko";
125
- readonly message: string;
126
- }[]];
127
- readonly warning?: boolean | undefined;
128
- readonly when: string;
129
- }[] | undefined;
130
119
  readonly nodeKey: string;
131
120
  readonly nodeChildren: string;
132
121
  readonly nodeLabel: readonly [{
@@ -145,6 +134,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
145
134
  }[]] | undefined;
146
135
  readonly nodeSelectable?: string | undefined;
147
136
  readonly expandAll: boolean;
137
+ readonly validations?: readonly {
138
+ readonly message: readonly [{
139
+ readonly locale: "zh";
140
+ readonly message: string;
141
+ }, ...{
142
+ readonly locale: "en" | "ja" | "ko";
143
+ readonly message: string;
144
+ }[]];
145
+ readonly warning?: boolean | undefined;
146
+ readonly when: string;
147
+ }[] | undefined;
148
148
  }) => any) | undefined;
149
149
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
150
150
  declare const _default: typeof __VLS_export;
@@ -7,7 +7,7 @@ import { useI18n } from "vue-i18n";
7
7
  import { fetchJsonOption } from "../../../../../share/request";
8
8
  import { cel as _rawCel } from "../../../../../utils/cel";
9
9
  import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
10
- import { publishSelection } from "../../../../../utils/selections-registry";
10
+ import { publishOptions, publishSelection } from "../../../../../utils/selections-registry";
11
11
  import { getLocalizedText } from "../../../../../share/locale";
12
12
  import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
13
13
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
@@ -241,6 +241,24 @@ publishSelection(
241
241
  () => selectedWrapped.value,
242
242
  { identity: (w) => w.key, raw: (w) => w.raw }
243
243
  );
244
+ const flatOptions = computed(() => {
245
+ const out = [];
246
+ const stack = [...roots.value];
247
+ while (stack.length) {
248
+ const n = stack.pop();
249
+ out.push(n);
250
+ if (n.kind === "branch") stack.push(...n.children);
251
+ }
252
+ return out;
253
+ });
254
+ publishOptions(
255
+ props.fieldId,
256
+ () => flatOptions.value.length > 0 ? flatOptions.value : void 0,
257
+ {
258
+ identity: (list) => list.map((w) => w.key).join(" "),
259
+ raw: (list) => list.map((w) => w.raw)
260
+ }
261
+ );
244
262
  const initialExpanded = computed(() => {
245
263
  if (!props.config.expandAll) return [];
246
264
  const out = [];