@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
@@ -56,6 +56,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
56
56
  readonly message: string;
57
57
  }[]];
58
58
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
59
+ readonly nodeTooltip?: readonly [{
60
+ readonly locale: "zh";
61
+ readonly message: string;
62
+ }, ...{
63
+ readonly locale: "en" | "ja" | "ko";
64
+ readonly message: string;
65
+ }[]] | undefined;
66
+ readonly nodeSelectable?: string | undefined;
67
+ readonly expandAll: boolean;
59
68
  readonly validations?: readonly {
60
69
  readonly message: readonly [{
61
70
  readonly locale: "zh";
@@ -67,15 +76,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
76
  readonly warning?: boolean | undefined;
68
77
  readonly when: string;
69
78
  }[] | undefined;
70
- readonly nodeTooltip?: readonly [{
71
- readonly locale: "zh";
72
- readonly message: string;
73
- }, ...{
74
- readonly locale: "en" | "ja" | "ko";
75
- readonly message: string;
76
- }[]] | undefined;
77
- readonly nodeSelectable?: string | undefined;
78
- readonly expandAll: boolean;
79
79
  }) => any;
80
80
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
81
81
  "onUpdate:modelValue"?: ((value: {
@@ -131,6 +131,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
131
131
  readonly message: string;
132
132
  }[]];
133
133
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
134
+ readonly nodeTooltip?: readonly [{
135
+ readonly locale: "zh";
136
+ readonly message: string;
137
+ }, ...{
138
+ readonly locale: "en" | "ja" | "ko";
139
+ readonly message: string;
140
+ }[]] | undefined;
141
+ readonly nodeSelectable?: string | undefined;
142
+ readonly expandAll: boolean;
134
143
  readonly validations?: readonly {
135
144
  readonly message: readonly [{
136
145
  readonly locale: "zh";
@@ -142,15 +151,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
142
151
  readonly warning?: boolean | undefined;
143
152
  readonly when: string;
144
153
  }[] | undefined;
145
- readonly nodeTooltip?: readonly [{
146
- readonly locale: "zh";
147
- readonly message: string;
148
- }, ...{
149
- readonly locale: "en" | "ja" | "ko";
150
- readonly message: string;
151
- }[]] | undefined;
152
- readonly nodeSelectable?: string | undefined;
153
- readonly expandAll: boolean;
154
154
  }) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
156
156
  declare const _default: typeof __VLS_export;
@@ -56,6 +56,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
56
56
  readonly message: string;
57
57
  }[]];
58
58
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
59
+ readonly nodeTooltip?: readonly [{
60
+ readonly locale: "zh";
61
+ readonly message: string;
62
+ }, ...{
63
+ readonly locale: "en" | "ja" | "ko";
64
+ readonly message: string;
65
+ }[]] | undefined;
66
+ readonly nodeSelectable?: string | undefined;
67
+ readonly expandAll: boolean;
59
68
  readonly validations?: readonly {
60
69
  readonly message: readonly [{
61
70
  readonly locale: "zh";
@@ -67,15 +76,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
76
  readonly warning?: boolean | undefined;
68
77
  readonly when: string;
69
78
  }[] | undefined;
70
- readonly nodeTooltip?: readonly [{
71
- readonly locale: "zh";
72
- readonly message: string;
73
- }, ...{
74
- readonly locale: "en" | "ja" | "ko";
75
- readonly message: string;
76
- }[]] | undefined;
77
- readonly nodeSelectable?: string | undefined;
78
- readonly expandAll: boolean;
79
79
  }) => any;
80
80
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
81
81
  "onUpdate:modelValue"?: ((value: {
@@ -131,6 +131,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
131
131
  readonly message: string;
132
132
  }[]];
133
133
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
134
+ readonly nodeTooltip?: readonly [{
135
+ readonly locale: "zh";
136
+ readonly message: string;
137
+ }, ...{
138
+ readonly locale: "en" | "ja" | "ko";
139
+ readonly message: string;
140
+ }[]] | undefined;
141
+ readonly nodeSelectable?: string | undefined;
142
+ readonly expandAll: boolean;
134
143
  readonly validations?: readonly {
135
144
  readonly message: readonly [{
136
145
  readonly locale: "zh";
@@ -142,15 +151,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
142
151
  readonly warning?: boolean | undefined;
143
152
  readonly when: string;
144
153
  }[] | undefined;
145
- readonly nodeTooltip?: readonly [{
146
- readonly locale: "zh";
147
- readonly message: string;
148
- }, ...{
149
- readonly locale: "en" | "ja" | "ko";
150
- readonly message: string;
151
- }[]] | undefined;
152
- readonly nodeSelectable?: string | undefined;
153
- readonly expandAll: boolean;
154
154
  }) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
156
156
  declare const _default: typeof __VLS_export;
@@ -55,6 +55,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
55
55
  readonly locale: "en" | "ja" | "ko";
56
56
  readonly message: string;
57
57
  }[]];
58
+ readonly nodeTooltip?: readonly [{
59
+ readonly locale: "zh";
60
+ readonly message: string;
61
+ }, ...{
62
+ readonly locale: "en" | "ja" | "ko";
63
+ readonly message: string;
64
+ }[]] | undefined;
65
+ readonly nodeSelectable?: string | undefined;
66
+ readonly expandAll: boolean;
58
67
  readonly validations?: readonly {
59
68
  readonly message: readonly [{
60
69
  readonly locale: "zh";
@@ -66,15 +75,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
66
75
  readonly warning?: boolean | undefined;
67
76
  readonly when: string;
68
77
  }[] | undefined;
69
- readonly nodeTooltip?: readonly [{
70
- readonly locale: "zh";
71
- readonly message: string;
72
- }, ...{
73
- readonly locale: "en" | "ja" | "ko";
74
- readonly message: string;
75
- }[]] | undefined;
76
- readonly nodeSelectable?: string | undefined;
77
- readonly expandAll: boolean;
78
78
  }) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
80
80
  "onUpdate:modelValue"?: ((value: {
@@ -129,6 +129,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  readonly locale: "en" | "ja" | "ko";
130
130
  readonly message: string;
131
131
  }[]];
132
+ readonly nodeTooltip?: readonly [{
133
+ readonly locale: "zh";
134
+ readonly message: string;
135
+ }, ...{
136
+ readonly locale: "en" | "ja" | "ko";
137
+ readonly message: string;
138
+ }[]] | undefined;
139
+ readonly nodeSelectable?: string | undefined;
140
+ readonly expandAll: boolean;
132
141
  readonly validations?: readonly {
133
142
  readonly message: readonly [{
134
143
  readonly locale: "zh";
@@ -140,15 +149,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
140
149
  readonly warning?: boolean | undefined;
141
150
  readonly when: string;
142
151
  }[] | undefined;
143
- readonly nodeTooltip?: readonly [{
144
- readonly locale: "zh";
145
- readonly message: string;
146
- }, ...{
147
- readonly locale: "en" | "ja" | "ko";
148
- readonly message: string;
149
- }[]] | undefined;
150
- readonly nodeSelectable?: string | undefined;
151
- readonly expandAll: boolean;
152
152
  }) => any) | undefined;
153
153
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
154
154
  declare const _default: typeof __VLS_export;
@@ -55,6 +55,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
55
55
  readonly locale: "en" | "ja" | "ko";
56
56
  readonly message: string;
57
57
  }[]];
58
+ readonly nodeTooltip?: readonly [{
59
+ readonly locale: "zh";
60
+ readonly message: string;
61
+ }, ...{
62
+ readonly locale: "en" | "ja" | "ko";
63
+ readonly message: string;
64
+ }[]] | undefined;
65
+ readonly nodeSelectable?: string | undefined;
66
+ readonly expandAll: boolean;
58
67
  readonly validations?: readonly {
59
68
  readonly message: readonly [{
60
69
  readonly locale: "zh";
@@ -66,15 +75,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
66
75
  readonly warning?: boolean | undefined;
67
76
  readonly when: string;
68
77
  }[] | undefined;
69
- readonly nodeTooltip?: readonly [{
70
- readonly locale: "zh";
71
- readonly message: string;
72
- }, ...{
73
- readonly locale: "en" | "ja" | "ko";
74
- readonly message: string;
75
- }[]] | undefined;
76
- readonly nodeSelectable?: string | undefined;
77
- readonly expandAll: boolean;
78
78
  }) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
80
80
  "onUpdate:modelValue"?: ((value: {
@@ -129,6 +129,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  readonly locale: "en" | "ja" | "ko";
130
130
  readonly message: string;
131
131
  }[]];
132
+ readonly nodeTooltip?: readonly [{
133
+ readonly locale: "zh";
134
+ readonly message: string;
135
+ }, ...{
136
+ readonly locale: "en" | "ja" | "ko";
137
+ readonly message: string;
138
+ }[]] | undefined;
139
+ readonly nodeSelectable?: string | undefined;
140
+ readonly expandAll: boolean;
132
141
  readonly validations?: readonly {
133
142
  readonly message: readonly [{
134
143
  readonly locale: "zh";
@@ -140,15 +149,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
140
149
  readonly warning?: boolean | undefined;
141
150
  readonly when: string;
142
151
  }[] | undefined;
143
- readonly nodeTooltip?: readonly [{
144
- readonly locale: "zh";
145
- readonly message: string;
146
- }, ...{
147
- readonly locale: "en" | "ja" | "ko";
148
- readonly message: string;
149
- }[]] | undefined;
150
- readonly nodeSelectable?: string | undefined;
151
- readonly expandAll: boolean;
152
152
  }) => any) | undefined;
153
153
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
154
154
  declare const _default: typeof __VLS_export;
@@ -24,7 +24,6 @@ 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-06-14";
28
27
  readonly options: {
29
28
  readonly kind: "remote";
30
29
  readonly options: string;
@@ -60,6 +59,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
60
59
  readonly keywords?: readonly string[] | undefined;
61
60
  }[];
62
61
  };
62
+ readonly compatibilityDate: "2026-06-14";
63
63
  readonly orientation?: "vertical" | "floating" | undefined;
64
64
  readonly placeholder?: readonly [{
65
65
  readonly locale: "zh";
@@ -108,7 +108,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  }[]] | undefined;
109
109
  readonly required?: string | undefined;
110
110
  readonly displayName?: string | undefined;
111
- readonly compatibilityDate: "2026-06-14";
112
111
  readonly options: {
113
112
  readonly kind: "remote";
114
113
  readonly options: string;
@@ -144,6 +143,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
144
143
  readonly keywords?: readonly string[] | undefined;
145
144
  }[];
146
145
  };
146
+ readonly compatibilityDate: "2026-06-14";
147
147
  readonly orientation?: "vertical" | "floating" | undefined;
148
148
  readonly placeholder?: readonly [{
149
149
  readonly locale: "zh";
@@ -24,7 +24,6 @@ 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-06-14";
28
27
  readonly options: {
29
28
  readonly kind: "remote";
30
29
  readonly options: string;
@@ -60,6 +59,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
60
59
  readonly keywords?: readonly string[] | undefined;
61
60
  }[];
62
61
  };
62
+ readonly compatibilityDate: "2026-06-14";
63
63
  readonly orientation?: "vertical" | "floating" | undefined;
64
64
  readonly placeholder?: readonly [{
65
65
  readonly locale: "zh";
@@ -108,7 +108,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  }[]] | undefined;
109
109
  readonly required?: string | undefined;
110
110
  readonly displayName?: string | undefined;
111
- readonly compatibilityDate: "2026-06-14";
112
111
  readonly options: {
113
112
  readonly kind: "remote";
114
113
  readonly options: string;
@@ -144,6 +143,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
144
143
  readonly keywords?: readonly string[] | undefined;
145
144
  }[];
146
145
  };
146
+ readonly compatibilityDate: "2026-06-14";
147
147
  readonly orientation?: "vertical" | "floating" | undefined;
148
148
  readonly placeholder?: readonly [{
149
149
  readonly locale: "zh";
@@ -24,7 +24,6 @@ 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-06-14";
28
27
  readonly options: {
29
28
  readonly kind: "remote";
30
29
  readonly options: string;
@@ -60,6 +59,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
60
59
  readonly keywords?: readonly string[] | undefined;
61
60
  }[];
62
61
  };
62
+ readonly compatibilityDate: "2026-06-14";
63
63
  readonly orientation?: "vertical" | "floating" | undefined;
64
64
  readonly placeholder?: readonly [{
65
65
  readonly locale: "zh";
@@ -108,7 +108,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  }[]] | undefined;
109
109
  readonly required?: string | undefined;
110
110
  readonly displayName?: string | undefined;
111
- readonly compatibilityDate: "2026-06-14";
112
111
  readonly options: {
113
112
  readonly kind: "remote";
114
113
  readonly options: string;
@@ -144,6 +143,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
144
143
  readonly keywords?: readonly string[] | undefined;
145
144
  }[];
146
145
  };
146
+ readonly compatibilityDate: "2026-06-14";
147
147
  readonly orientation?: "vertical" | "floating" | undefined;
148
148
  readonly placeholder?: readonly [{
149
149
  readonly locale: "zh";
@@ -24,7 +24,6 @@ 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-06-14";
28
27
  readonly options: {
29
28
  readonly kind: "remote";
30
29
  readonly options: string;
@@ -60,6 +59,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
60
59
  readonly keywords?: readonly string[] | undefined;
61
60
  }[];
62
61
  };
62
+ readonly compatibilityDate: "2026-06-14";
63
63
  readonly orientation?: "vertical" | "floating" | undefined;
64
64
  readonly placeholder?: readonly [{
65
65
  readonly locale: "zh";
@@ -108,7 +108,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  }[]] | undefined;
109
109
  readonly required?: string | undefined;
110
110
  readonly displayName?: string | undefined;
111
- readonly compatibilityDate: "2026-06-14";
112
111
  readonly options: {
113
112
  readonly kind: "remote";
114
113
  readonly options: string;
@@ -144,6 +143,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
144
143
  readonly keywords?: readonly string[] | undefined;
145
144
  }[];
146
145
  };
146
+ readonly compatibilityDate: "2026-06-14";
147
147
  readonly orientation?: "vertical" | "floating" | undefined;
148
148
  readonly placeholder?: readonly [{
149
149
  readonly locale: "zh";
@@ -4,6 +4,7 @@ import type { FormConfigValue } from './schema.js';
4
4
  type __VLS_Props = {
5
5
  configure?: (env: Environment) => void;
6
6
  };
7
+ declare function reseed(): Promise<void>;
7
8
  type __VLS_ModelProps = {
8
9
  modelValue?: FormState;
9
10
  'config': FormConfigValue;
@@ -11,6 +12,7 @@ type __VLS_ModelProps = {
11
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
14
  seeded: Promise<void>;
15
+ reseed: typeof reseed;
14
16
  flush: () => void;
15
17
  settled: () => Promise<void>;
16
18
  validate: () => Promise<boolean>;
@@ -65,22 +65,29 @@ const formReadonly = computed(() => {
65
65
  }
66
66
  });
67
67
  provideFormReadonly(formReadonly);
68
+ async function computeSeed(base) {
69
+ const initial = config.value.initial;
70
+ if (!initial) return null;
71
+ try {
72
+ const program = evaluateInitial(initial, $cel, { form: base });
73
+ const result = await Effect.runPromise(Effect.provide(program, Fetch.layer));
74
+ return result && typeof result === "object" && !Array.isArray(result) ? result : null;
75
+ } catch (err) {
76
+ console.error("[shwfed-form] failed to evaluate initial:", err);
77
+ return null;
78
+ }
79
+ }
68
80
  const seeded = (() => {
69
81
  const current = state.value ?? {};
70
- const initial = config.value.initial;
71
- if (!initial || Object.keys(current).length > 0) return Promise.resolve();
72
- const program = evaluateInitial(initial, $cel, { form: current });
73
- return Effect.runPromise(Effect.provide(program, Fetch.layer)).then(
74
- (result) => {
75
- if (result && typeof result === "object" && !Array.isArray(result)) {
76
- state.value = { ...current, ...result };
77
- }
78
- },
79
- (err) => {
80
- console.error("[shwfed-form] failed to evaluate initial:", err);
81
- }
82
- );
82
+ if (!config.value.initial || Object.keys(current).length > 0) return Promise.resolve();
83
+ return computeSeed(current).then((seed) => {
84
+ if (seed) state.value = { ...current, ...seed };
85
+ });
83
86
  })();
87
+ async function reseed() {
88
+ const seed = await computeSeed({});
89
+ state.value = seed ? { ...seed } : {};
90
+ }
84
91
  useDerived({
85
92
  fields: () => config.value.fields,
86
93
  evaluate: (expression) => $cel(expression),
@@ -113,6 +120,7 @@ provideEventTarget(formInstanceId, {
113
120
  });
114
121
  defineExpose({
115
122
  seeded,
123
+ reseed,
116
124
  flush: commitBus.flushAll,
117
125
  settled: quiescence.settled,
118
126
  validate: validation.validate,
@@ -4,6 +4,7 @@ import type { FormConfigValue } from './schema.js';
4
4
  type __VLS_Props = {
5
5
  configure?: (env: Environment) => void;
6
6
  };
7
+ declare function reseed(): Promise<void>;
7
8
  type __VLS_ModelProps = {
8
9
  modelValue?: FormState;
9
10
  'config': FormConfigValue;
@@ -11,6 +12,7 @@ type __VLS_ModelProps = {
11
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
14
  seeded: Promise<void>;
15
+ reseed: typeof reseed;
14
16
  flush: () => void;
15
17
  settled: () => Promise<void>;
16
18
  validate: () => Promise<boolean>;
@@ -102,7 +102,6 @@ export declare function FormConfig(configure: (env: Environment) => void): Schem
102
102
  readonly displayName?: string | undefined;
103
103
  readonly kind: "shwfed.component.form";
104
104
  readonly fields: readonly any[];
105
- readonly readonly?: string | undefined;
106
105
  readonly layouts: readonly {
107
106
  readonly name: string;
108
107
  readonly layout: {
@@ -120,6 +119,7 @@ export declare function FormConfig(configure: (env: Environment) => void): Schem
120
119
  };
121
120
  readonly media?: string | undefined;
122
121
  }[];
122
+ readonly readonly?: string | undefined;
123
123
  }, Schema.Struct<{
124
124
  fields: Schema.Array$<AnySchema>;
125
125
  layouts: Schema.refine<readonly {
@@ -175,7 +175,6 @@ export declare function createFormConfig(body: Omit<Schema.Schema.Type<ReturnTyp
175
175
  } | undefined;
176
176
  displayName?: string | undefined;
177
177
  fields: readonly any[];
178
- readonly?: string | undefined;
179
178
  layouts: readonly {
180
179
  readonly name: string;
181
180
  readonly layout: {
@@ -193,6 +192,7 @@ export declare function createFormConfig(body: Omit<Schema.Schema.Type<ReturnTyp
193
192
  };
194
193
  readonly media?: string | undefined;
195
194
  }[];
195
+ readonly?: string | undefined;
196
196
  kind: typeof KIND;
197
197
  };
198
198
  export declare function defaultFormConfig(): FormConfigValue;
@@ -10,29 +10,29 @@ declare function close(): void;
10
10
  declare var __VLS_20: {
11
11
  close: typeof close;
12
12
  isDesktop: boolean;
13
- }, __VLS_42: {
13
+ }, __VLS_45: {
14
14
  close: typeof close;
15
15
  isDesktop: boolean;
16
- }, __VLS_50: {
16
+ }, __VLS_53: {
17
17
  close: typeof close;
18
18
  isDesktop: boolean;
19
- }, __VLS_57: {
19
+ }, __VLS_60: {
20
20
  close: typeof close;
21
21
  isDesktop: boolean;
22
- }, __VLS_65: {
22
+ }, __VLS_68: {
23
23
  close: typeof close;
24
24
  isDesktop: boolean;
25
25
  };
26
26
  type __VLS_Slots = {} & {
27
27
  trigger?: (props: typeof __VLS_20) => any;
28
28
  } & {
29
- title?: (props: typeof __VLS_42) => any;
29
+ title?: (props: typeof __VLS_45) => any;
30
30
  } & {
31
- description?: (props: typeof __VLS_50) => any;
31
+ description?: (props: typeof __VLS_53) => any;
32
32
  } & {
33
- default?: (props: typeof __VLS_57) => any;
33
+ default?: (props: typeof __VLS_60) => any;
34
34
  } & {
35
- footer?: (props: typeof __VLS_65) => any;
35
+ footer?: (props: typeof __VLS_68) => any;
36
36
  };
37
37
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  "update:open": (open: boolean) => any;
@@ -78,6 +78,9 @@ const open = computed({
78
78
  function close() {
79
79
  open.value = false;
80
80
  }
81
+ function onDismissAttempt(event) {
82
+ if (!props.dismissible) event.preventDefault();
83
+ }
81
84
  </script>
82
85
 
83
86
  <template>
@@ -98,12 +101,17 @@ function close() {
98
101
  />
99
102
  </component>
100
103
 
104
+ <!-- The × button is a dismiss affordance too — it hides alongside the
105
+ other dismissal paths while the modal is non-dismissible. -->
101
106
  <component
102
107
  :is="modalComponents.Content"
103
108
  v-bind="attrs"
104
- :show-close-button="props.showCloseButton"
109
+ :show-close-button="props.showCloseButton && props.dismissible"
105
110
  :content-width="props.contentWidth"
106
111
  @after-close="emit('after-close')"
112
+ @escape-key-down="onDismissAttempt"
113
+ @pointer-down-outside="onDismissAttempt"
114
+ @interact-outside="onDismissAttempt"
107
115
  >
108
116
  <component
109
117
  :is="modalComponents.Header"
@@ -10,29 +10,29 @@ declare function close(): void;
10
10
  declare var __VLS_20: {
11
11
  close: typeof close;
12
12
  isDesktop: boolean;
13
- }, __VLS_42: {
13
+ }, __VLS_45: {
14
14
  close: typeof close;
15
15
  isDesktop: boolean;
16
- }, __VLS_50: {
16
+ }, __VLS_53: {
17
17
  close: typeof close;
18
18
  isDesktop: boolean;
19
- }, __VLS_57: {
19
+ }, __VLS_60: {
20
20
  close: typeof close;
21
21
  isDesktop: boolean;
22
- }, __VLS_65: {
22
+ }, __VLS_68: {
23
23
  close: typeof close;
24
24
  isDesktop: boolean;
25
25
  };
26
26
  type __VLS_Slots = {} & {
27
27
  trigger?: (props: typeof __VLS_20) => any;
28
28
  } & {
29
- title?: (props: typeof __VLS_42) => any;
29
+ title?: (props: typeof __VLS_45) => any;
30
30
  } & {
31
- description?: (props: typeof __VLS_50) => any;
31
+ description?: (props: typeof __VLS_53) => any;
32
32
  } & {
33
- default?: (props: typeof __VLS_57) => any;
33
+ default?: (props: typeof __VLS_60) => any;
34
34
  } & {
35
- footer?: (props: typeof __VLS_65) => any;
35
+ footer?: (props: typeof __VLS_68) => any;
36
36
  };
37
37
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  "update:open": (open: boolean) => any;
@@ -7,15 +7,12 @@ const props = defineProps({
7
7
  });
8
8
  const emit = defineEmits(["close"]);
9
9
  function onDismiss() {
10
+ if (props.state.saving.value) return;
10
11
  props.state.dismiss();
11
12
  emit("close");
12
13
  }
13
- function onConfirm() {
14
- const errorBefore = props.state.validationError.value;
15
- props.state.confirm();
16
- const errorAfter = props.state.validationError.value;
17
- if (errorAfter && errorAfter !== errorBefore) return;
18
- if (!errorAfter) emit("close");
14
+ async function onConfirm() {
15
+ if (await props.state.confirm()) emit("close");
19
16
  }
20
17
  </script>
21
18
 
@@ -26,11 +23,16 @@ function onConfirm() {
26
23
  v-if="props.state.validationError.value"
27
24
  class="text-red-500 break-all"
28
25
  >{{ props.state.validationError.value }}</span>
26
+ <span
27
+ v-if="props.state.saveError.value"
28
+ class="text-red-500 break-all"
29
+ >{{ props.state.saveError.value }}</span>
29
30
  </div>
30
31
  <Button
31
32
  type="button"
32
33
  variant="default"
33
34
  size="sm"
35
+ :disabled="props.state.saving.value"
34
36
  @click="onDismiss"
35
37
  >
36
38
  <Icon icon="fluent:dismiss-20-regular" />
@@ -40,9 +42,13 @@ function onConfirm() {
40
42
  type="button"
41
43
  variant="primary"
42
44
  size="sm"
45
+ :disabled="props.state.saving.value"
43
46
  @click="onConfirm"
44
47
  >
45
- <Icon icon="fluent:checkmark-20-regular" />
48
+ <Icon
49
+ :icon="props.state.saving.value ? 'fluent:arrow-sync-20-regular' : 'fluent:checkmark-20-regular'"
50
+ :class="props.state.saving.value ? 'animate-spin' : ''"
51
+ />
46
52
  确认
47
53
  </Button>
48
54
  </div>
@@ -3,6 +3,7 @@ import { type SidebarConfigValue } from './schema.js';
3
3
  type __VLS_Props = {
4
4
  configure?: (env: Environment) => void;
5
5
  editable?: boolean;
6
+ save?: (config: SidebarConfigValue) => void | Promise<void>;
6
7
  storageKey?: string;
7
8
  collapsible?: 'offcanvas' | 'icon' | 'none';
8
9
  width?: string;