@shwfed/config 2.11.0 → 2.11.4

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 (110) hide show
  1. package/dist/mcp.mjs +1458 -1216
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js → FieldGroup.vue_vue_type_script_setup_true_lang-BE68tZWF.js} +1 -1
  4. package/dist/preview/assets/{badge-CJ9IQ3Jx.js → badge-CGMjdhLX.js} +1 -1
  5. package/dist/preview/assets/config-B7TZ-128.js +1 -0
  6. package/dist/preview/assets/{config-uUF-UHPt.js → config-BSym_jQg.js} +1 -1
  7. package/dist/preview/assets/{config-DIsAIc7H.js → config-ByCFJbd-.js} +1 -1
  8. package/dist/preview/assets/{config--Vx4fL61.js → config-C4cv2S64.js} +1 -1
  9. package/dist/preview/assets/{config-BYktCefJ.js → config-ChrJHusi.js} +1 -1
  10. package/dist/preview/assets/config-CxbYENZ0.js +1 -0
  11. package/dist/preview/assets/{config-5PPug5mk.js → config-DFS2XL3-.js} +1 -1
  12. package/dist/preview/assets/{config-DpLMetys.js → config-DWj1CTai.js} +1 -1
  13. package/dist/preview/assets/{config-CQrDCzYN.js → config-DZI21_UB.js} +1 -1
  14. package/dist/preview/assets/{config-C_g-FYCR.js → config-D_O4ACtH.js} +1 -1
  15. package/dist/preview/assets/{config-BldsYfGM.js → config-DjA8bfLm.js} +1 -1
  16. package/dist/preview/assets/{config-7V1qHjUk.js → config-DwPGLI3R.js} +1 -1
  17. package/dist/preview/assets/{config-N-FdgfwK.js → config-dkVvsr4h.js} +1 -1
  18. package/dist/preview/assets/{config-BeRYF_cz.js → config-hsH0bSZh.js} +1 -1
  19. package/dist/preview/assets/{config-IMd4FZi8.js → config-xrfje67L.js} +1 -1
  20. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js → definition.vue_vue_type_script_setup_true_lang-BGk00yfB.js} +1 -1
  21. package/dist/preview/assets/index-B4oT9ZrQ.js +1 -0
  22. package/dist/preview/assets/{index-BCl1NN6k.js → index-BSQlKkJR.js} +214 -202
  23. package/dist/preview/assets/{index-DKWp47QP.js → index-CzQKNngS.js} +1 -1
  24. package/dist/preview/assets/index-DPFQgj9g.css +1 -0
  25. package/dist/preview/assets/{item-XsW7swFt.js → item-D4gmvDO-.js} +1 -1
  26. package/dist/preview/assets/{runtime-JxBzvGnw.js → runtime--e0UxK6b.js} +1 -1
  27. package/dist/preview/assets/runtime-BWH8ForT.js +1 -0
  28. package/dist/preview/assets/runtime-BgO2briD.js +1 -0
  29. package/dist/preview/assets/{runtime-BiFFwOIl.js → runtime-BmEP7xID.js} +1 -1
  30. package/dist/preview/assets/runtime-C66GF-2d.js +1 -0
  31. package/dist/preview/assets/{runtime-BeHohaOZ.js → runtime-CJCOS6D_.js} +1 -1
  32. package/dist/preview/assets/{runtime-ByArW-jJ.js → runtime-CREolKJd.js} +1 -1
  33. package/dist/preview/assets/runtime-CjU46djh.js +1 -0
  34. package/dist/preview/assets/{runtime-Dn172S7t.js → runtime-e59FkBkL.js} +1 -1
  35. package/dist/preview/assets/runtime-pYLX1Bb-.js +1 -0
  36. package/dist/preview/assets/{runtime-bq0hmEXY.js → runtime-wvP7jhBK.js} +1 -1
  37. package/dist/preview/assets/{schema-meta-CZ9yXnsa.js → schema-meta-C4Ttq3eE.js} +1 -1
  38. package/dist/preview/index.html +2 -2
  39. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.d.vue.ts +39 -0
  40. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue +127 -0
  41. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue.d.ts +39 -0
  42. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/runtime.d.vue.ts +8 -0
  43. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/runtime.vue +62 -0
  44. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/runtime.vue.d.ts +8 -0
  45. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/schema.d.ts +25 -0
  46. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/schema.js +41 -0
  47. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue +5 -22
  48. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/config.d.vue.ts +70 -0
  49. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/config.vue +349 -0
  50. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/config.vue.d.ts +70 -0
  51. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-item.d.vue.ts +33 -0
  52. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-item.vue +37 -0
  53. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-item.vue.d.ts +33 -0
  54. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-scope-provider.d.vue.ts +13 -0
  55. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-scope-provider.vue +22 -0
  56. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/loop-scope-provider.vue.d.ts +13 -0
  57. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/runtime.d.vue.ts +70 -0
  58. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/runtime.vue +62 -0
  59. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/runtime.vue.d.ts +70 -0
  60. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.d.ts +85 -0
  61. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.js +60 -0
  62. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +10 -1
  63. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +10 -1
  64. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +2 -19
  65. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +5 -22
  66. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/config.d.vue.ts +2 -0
  67. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/config.vue +49 -22
  68. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/config.vue.d.ts +2 -0
  69. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/runtime.js +17 -10
  70. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +1 -0
  71. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +25 -3
  72. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +10 -1
  73. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +10 -1
  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-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  77. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/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 +2 -2
  79. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  80. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  81. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  82. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  83. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  84. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  85. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  86. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  87. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  88. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  89. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  90. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  91. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  92. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  93. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  94. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +2 -1
  95. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +9 -2
  96. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue +13 -4
  97. package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +1 -1
  98. package/dist/runtime/share/loop-item-var.d.ts +21 -0
  99. package/dist/runtime/share/loop-item-var.js +13 -0
  100. package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -1
  101. package/dist/runtime/vendor/cel-js/lib/http-builder.d.ts +38 -3
  102. package/dist/runtime/vendor/cel-js/lib/http-builder.js +33 -0
  103. package/package.json +1 -1
  104. package/dist/preview/assets/config-DPX7vGqV.js +0 -1
  105. package/dist/preview/assets/index-8Ph-sFDI.css +0 -1
  106. package/dist/preview/assets/index-Core7vRW.js +0 -1
  107. package/dist/preview/assets/runtime-B-ABO0r0.js +0 -1
  108. package/dist/preview/assets/runtime-CpVTGNFZ.js +0 -1
  109. package/dist/preview/assets/runtime-DQ1TnQ7n.js +0 -1
  110. package/dist/preview/assets/runtime-DY7hr7v1.js +0 -1
@@ -18,10 +18,20 @@ export function schema(configure) {
18
18
  registerStepsVariableIfAbsent(env);
19
19
  };
20
20
  const CelHttpRequest = Expression({ configure: withSteps, resultType: "HttpRequest" });
21
+ const withJson = (env) => {
22
+ withSteps(env);
23
+ env.registerVariable("json", "dyn", {
24
+ description: "\u54CD\u5E94\u4F53\uFF08\u5DF2\u89E3\u6790 JSON\uFF1B\u4EC5\u5F53\u54CD\u5E94\u4E3A JSON \u65F6\u5B58\u5728\uFF09"
25
+ });
26
+ };
27
+ const CelResultString = Expression({ configure: withJson, resultType: "string" });
21
28
  const withOutcome = (env) => {
22
29
  withSteps(env);
30
+ env.registerVariable("json", "dyn", {
31
+ description: "\u54CD\u5E94\u4F53\uFF08\u5DF2\u89E3\u6790 JSON\uFF1B\u54CD\u5E94\u975E JSON \u6216\u8BF7\u6C42\u5931\u8D25\u65F6\u4E3A null\uFF09"
32
+ });
23
33
  env.registerVariable("result", "string", {
24
- description: "\u6267\u884C\u7ED3\u679C\uFF08success | error\uFF09"
34
+ description: "\u300C\u6267\u884C\u7ED3\u679C\u300D\u8868\u8FBE\u5F0F\u7684\u503C\uFF08\u8BF7\u6C42\u5931\u8D25\u65F6\u4E3A error\uFF09"
25
35
  });
26
36
  };
27
37
  const CelToastString = Expression({ configure: withOutcome, resultType: "string" });
@@ -34,6 +44,17 @@ export function schema(configure) {
34
44
  \`发送请求\` 行取得的凭据用于构造真正的下载请求。
35
45
  `
36
46
  }),
47
+ resultExpression: Schema.optional(CelResultString.annotations({
48
+ title: "\u6267\u884C\u7ED3\u679C",
49
+ description: md`
50
+ 仅当响应为 JSON(\`application/json\`)时求值——下载本应返回二进制文件,
51
+ 响应为 JSON 通常意味着后端返回了错误信封(常见为 HTTP 200 + \`{ "code": -1 }\`)。
52
+ 需返回 \`'success' | 'warning' | 'error' | 'info'\` 中的**一个**,如
53
+ \`json.code == 0 ? 'success' : 'error'\`。\`error\` 中止本次触发链。
54
+ 不配置时,JSON 响应一律按 \`error\` 处理(多数情况即如此,但你可经此表达式自行裁定)。
55
+ 网络错误 / 非 2xx 等情况下,恒按 \`error\` 处理。
56
+ `
57
+ })),
37
58
  titleExpression: Schema.optional(CelToastString.annotations({
38
59
  title: "\u63D0\u793A\u6807\u9898",
39
60
  description: md`
@@ -50,8 +71,9 @@ export function schema(configure) {
50
71
  }).annotations({
51
72
  title: "HttpDownloadOperation",
52
73
  description: md`
53
- 发起一次 HTTP 请求并把响应保存为本地文件。下载失败(网络错误 / 非 2xx)
54
- 会中止本次触发链——其后排队的操作不再执行。把本操作接在一个
74
+ 发起一次 HTTP 请求:若响应是二进制(非 JSON)则保存为本地文件;若响应是 JSON,
75
+ 则视为后端返回的状态信封,经「执行结果」裁定成败而**不**保存。下载失败(网络错误 / 非 2xx)
76
+ 或「执行结果」为 \`error\` 会中止本次触发链——其后排队的操作不再执行。把本操作接在一个
55
77
  \`发送请求\` 行之后、并经 \`steps["<步骤标识>"]\` 引用其响应,即可实现
56
78
  “先取凭据再下载”的两步式。toast 完全由「提示标题」「提示内容」决定(含失败场景);
57
79
  不配置标题、或标题求值为空字符串则静默。
@@ -69,7 +69,16 @@ export function schema(configure) {
69
69
  description: "\u5141\u8BB8\u8F93\u5165\u7684\u6700\u5927\u503C\u8868\u8FBE\u5F0F\uFF0C\u53EF\u8BBF\u95EE `row` / `index` \u548C `form`\uFF1B\u7559\u7A7A\u65F6\u4E0D\u9650\u5236\u4E0A\u9650"
70
70
  })),
71
71
  derived: derivedRowField(configure, "number"),
72
- addon: Schema.optional(AddonActions(configure))
72
+ // `Schema.optional` rebuilds the struct's union member, and because the
73
+ // `optionalWith`-default fields make `AddonActions` a `Transformation`, the
74
+ // inner struct's `title`/`description` don't survive onto the rebuilt
75
+ // member. The config editor's `getStructFieldTitle('addon')` would then fall
76
+ // back to the raw key "addon" (the v2.10.12 regression). Re-state them on the
77
+ // property signature, which the meta reader checks before the field type.
78
+ addon: Schema.optional(AddonActions(configure)).annotations({
79
+ title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
80
+ description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
81
+ })
73
82
  }).annotations({ title: "NumberInputRenderer", description: "\u6570\u503C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
74
83
  }
75
84
  export function defaults() {
@@ -44,7 +44,16 @@ export function schema(configure) {
44
44
  description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
45
45
  })),
46
46
  derived: derivedRowField(configure, "string"),
47
- addon: Schema.optional(AddonActions(configure))
47
+ // `Schema.optional` rebuilds the struct's union member, and because the
48
+ // `optionalWith`-default fields make `AddonActions` a `Transformation`, the
49
+ // inner struct's `title`/`description` don't survive onto the rebuilt
50
+ // member. The config editor's `getStructFieldTitle('addon')` would then fall
51
+ // back to the raw key "addon" (the v2.10.12 regression). Re-state them on the
52
+ // property signature, which the meta reader checks before the field type.
53
+ addon: Schema.optional(AddonActions(configure)).annotations({
54
+ title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
55
+ description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
56
+ })
48
57
  }).annotations({ title: "TextInputRenderer", description: "\u6587\u672C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
49
58
  }
50
59
  export function defaults() {
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly locale: "en" | "ja" | "ko";
54
54
  readonly message: string;
55
55
  }[]];
56
+ readonly successMessage?: string | undefined;
56
57
  readonly accessor?: string | undefined;
57
58
  readonly sortKey?: string | undefined;
58
- readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
+ readonly successMessage?: string | undefined;
111
112
  readonly accessor?: string | undefined;
112
113
  readonly sortKey?: string | undefined;
113
- readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly locale: "en" | "ja" | "ko";
54
54
  readonly message: string;
55
55
  }[]];
56
+ readonly successMessage?: string | undefined;
56
57
  readonly accessor?: string | undefined;
57
58
  readonly sortKey?: string | undefined;
58
- readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
+ readonly successMessage?: string | undefined;
111
112
  readonly accessor?: string | undefined;
112
113
  readonly sortKey?: string | undefined;
113
- readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  }[]] | undefined;
68
68
  readonly readonly?: string | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
+ readonly successMessage?: string | undefined;
70
71
  readonly accessor?: string | undefined;
71
72
  readonly sortKey?: string | undefined;
72
- readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  }[]] | undefined;
137
137
  readonly readonly?: string | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
+ readonly successMessage?: string | undefined;
139
140
  readonly accessor?: string | undefined;
140
141
  readonly sortKey?: string | undefined;
141
- readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  }[]] | undefined;
68
68
  readonly readonly?: string | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
+ readonly successMessage?: string | undefined;
70
71
  readonly accessor?: string | undefined;
71
72
  readonly sortKey?: string | undefined;
72
- readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  }[]] | undefined;
137
137
  readonly readonly?: string | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
+ readonly successMessage?: string | undefined;
139
140
  readonly accessor?: string | undefined;
140
141
  readonly sortKey?: string | undefined;
141
- readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly locale: "en" | "ja" | "ko";
54
54
  readonly message: string;
55
55
  }[]];
56
+ readonly successMessage?: string | undefined;
56
57
  readonly accessor?: string | undefined;
57
58
  readonly sortKey?: string | undefined;
58
- readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
+ readonly successMessage?: string | undefined;
111
112
  readonly accessor?: string | undefined;
112
113
  readonly sortKey?: string | undefined;
113
- readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly locale: "en" | "ja" | "ko";
54
54
  readonly message: string;
55
55
  }[]];
56
+ readonly successMessage?: string | undefined;
56
57
  readonly accessor?: string | undefined;
57
58
  readonly sortKey?: string | undefined;
58
- readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
+ readonly successMessage?: string | undefined;
111
112
  readonly accessor?: string | undefined;
112
113
  readonly sortKey?: string | undefined;
113
- readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  }[]] | undefined;
68
68
  readonly readonly?: string | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
+ readonly successMessage?: string | undefined;
70
71
  readonly accessor?: string | undefined;
71
72
  readonly sortKey?: string | undefined;
72
- readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  }[]] | undefined;
137
137
  readonly readonly?: string | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
+ readonly successMessage?: string | undefined;
139
140
  readonly accessor?: string | undefined;
140
141
  readonly sortKey?: string | undefined;
141
- readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  }[]] | undefined;
68
68
  readonly readonly?: string | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
+ readonly successMessage?: string | undefined;
70
71
  readonly accessor?: string | undefined;
71
72
  readonly sortKey?: string | undefined;
72
- readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  }[]] | undefined;
137
137
  readonly readonly?: string | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
+ readonly successMessage?: string | undefined;
139
140
  readonly accessor?: string | undefined;
140
141
  readonly sortKey?: string | undefined;
141
- readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -82,9 +82,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
82
82
  };
83
83
  }[];
84
84
  };
85
+ readonly successMessage?: string | undefined;
85
86
  readonly accessor?: string | undefined;
86
87
  readonly sortKey?: string | undefined;
87
- readonly successMessage?: string | undefined;
88
88
  }) => any;
89
89
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
90
90
  "onUpdate:modelValue"?: ((value: {
@@ -166,9 +166,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
166
166
  };
167
167
  }[];
168
168
  };
169
+ readonly successMessage?: string | undefined;
169
170
  readonly accessor?: string | undefined;
170
171
  readonly sortKey?: string | undefined;
171
- readonly successMessage?: string | undefined;
172
172
  }) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
174
174
  declare const _default: typeof __VLS_export;
@@ -82,9 +82,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
82
82
  };
83
83
  }[];
84
84
  };
85
+ readonly successMessage?: string | undefined;
85
86
  readonly accessor?: string | undefined;
86
87
  readonly sortKey?: string | undefined;
87
- readonly successMessage?: string | undefined;
88
88
  }) => any;
89
89
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
90
90
  "onUpdate:modelValue"?: ((value: {
@@ -166,9 +166,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
166
166
  };
167
167
  }[];
168
168
  };
169
+ readonly successMessage?: string | undefined;
169
170
  readonly accessor?: string | undefined;
170
171
  readonly sortKey?: string | undefined;
171
- readonly successMessage?: string | undefined;
172
172
  }) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
174
174
  declare const _default: typeof __VLS_export;
@@ -82,9 +82,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
82
82
  };
83
83
  }[];
84
84
  };
85
+ readonly successMessage?: string | undefined;
85
86
  readonly accessor?: string | undefined;
86
87
  readonly sortKey?: string | undefined;
87
- readonly successMessage?: string | undefined;
88
88
  }) => any;
89
89
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
90
90
  "onUpdate:modelValue"?: ((value: {
@@ -166,9 +166,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
166
166
  };
167
167
  }[];
168
168
  };
169
+ readonly successMessage?: string | undefined;
169
170
  readonly accessor?: string | undefined;
170
171
  readonly sortKey?: string | undefined;
171
- readonly successMessage?: string | undefined;
172
172
  }) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
174
174
  declare const _default: typeof __VLS_export;
@@ -82,9 +82,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
82
82
  };
83
83
  }[];
84
84
  };
85
+ readonly successMessage?: string | undefined;
85
86
  readonly accessor?: string | undefined;
86
87
  readonly sortKey?: string | undefined;
87
- readonly successMessage?: string | undefined;
88
88
  }) => any;
89
89
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
90
90
  "onUpdate:modelValue"?: ((value: {
@@ -166,9 +166,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
166
166
  };
167
167
  }[];
168
168
  };
169
+ readonly successMessage?: string | undefined;
169
170
  readonly accessor?: string | undefined;
170
171
  readonly sortKey?: string | undefined;
171
- readonly successMessage?: string | undefined;
172
172
  }) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
174
174
  declare const _default: typeof __VLS_export;
@@ -90,8 +90,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
90
90
  readonly target: string;
91
91
  readonly operation: string;
92
92
  }[] | undefined;
93
- readonly accessor: string;
94
93
  readonly successMessage?: string | undefined;
94
+ readonly accessor: string;
95
95
  };
96
96
  }) => any;
97
97
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -182,8 +182,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
182
182
  readonly target: string;
183
183
  readonly operation: string;
184
184
  }[] | undefined;
185
- readonly accessor: string;
186
185
  readonly successMessage?: string | undefined;
186
+ readonly accessor: string;
187
187
  };
188
188
  }) => any) | undefined;
189
189
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -90,8 +90,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
90
90
  readonly target: string;
91
91
  readonly operation: string;
92
92
  }[] | undefined;
93
- readonly accessor: string;
94
93
  readonly successMessage?: string | undefined;
94
+ readonly accessor: string;
95
95
  };
96
96
  }) => any;
97
97
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -182,8 +182,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
182
182
  readonly target: string;
183
183
  readonly operation: string;
184
184
  }[] | undefined;
185
- readonly accessor: string;
186
185
  readonly successMessage?: string | undefined;
186
+ readonly accessor: string;
187
187
  };
188
188
  }) => any) | undefined;
189
189
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -90,8 +90,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
90
90
  readonly target: string;
91
91
  readonly operation: string;
92
92
  }[] | undefined;
93
- readonly accessor: string;
94
93
  readonly successMessage?: string | undefined;
94
+ readonly accessor: string;
95
95
  };
96
96
  }) => any;
97
97
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -182,8 +182,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
182
182
  readonly target: string;
183
183
  readonly operation: string;
184
184
  }[] | undefined;
185
- readonly accessor: string;
186
185
  readonly successMessage?: string | undefined;
186
+ readonly accessor: string;
187
187
  };
188
188
  }) => any) | undefined;
189
189
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -90,8 +90,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
90
90
  readonly target: string;
91
91
  readonly operation: string;
92
92
  }[] | undefined;
93
- readonly accessor: string;
94
93
  readonly successMessage?: string | undefined;
94
+ readonly accessor: string;
95
95
  };
96
96
  }) => any;
97
97
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -182,8 +182,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
182
182
  readonly target: string;
183
183
  readonly operation: string;
184
184
  }[] | undefined;
185
- readonly accessor: string;
186
185
  readonly successMessage?: string | undefined;
186
+ readonly accessor: string;
187
187
  };
188
188
  }) => any) | undefined;
189
189
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
85
85
  readonly target: string;
86
86
  readonly operation: string;
87
87
  }[] | undefined;
88
- readonly accessor: string;
89
88
  readonly successMessage?: string | undefined;
89
+ readonly accessor: string;
90
90
  };
91
91
  }) => any;
92
92
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
172
172
  readonly target: string;
173
173
  readonly operation: string;
174
174
  }[] | undefined;
175
- readonly accessor: string;
176
175
  readonly successMessage?: string | undefined;
176
+ readonly accessor: string;
177
177
  };
178
178
  }) => any) | undefined;
179
179
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
85
85
  readonly target: string;
86
86
  readonly operation: string;
87
87
  }[] | undefined;
88
- readonly accessor: string;
89
88
  readonly successMessage?: string | undefined;
89
+ readonly accessor: string;
90
90
  };
91
91
  }) => any;
92
92
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
172
172
  readonly target: string;
173
173
  readonly operation: string;
174
174
  }[] | undefined;
175
- readonly accessor: string;
176
175
  readonly successMessage?: string | undefined;
176
+ readonly accessor: string;
177
177
  };
178
178
  }) => any) | undefined;
179
179
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
85
85
  readonly target: string;
86
86
  readonly operation: string;
87
87
  }[] | undefined;
88
- readonly accessor: string;
89
88
  readonly successMessage?: string | undefined;
89
+ readonly accessor: string;
90
90
  };
91
91
  }) => any;
92
92
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
172
172
  readonly target: string;
173
173
  readonly operation: string;
174
174
  }[] | undefined;
175
- readonly accessor: string;
176
175
  readonly successMessage?: string | undefined;
176
+ readonly accessor: string;
177
177
  };
178
178
  }) => any) | undefined;
179
179
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -85,8 +85,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
85
85
  readonly target: string;
86
86
  readonly operation: string;
87
87
  }[] | undefined;
88
- readonly accessor: string;
89
88
  readonly successMessage?: string | undefined;
89
+ readonly accessor: string;
90
90
  };
91
91
  }) => any;
92
92
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -172,8 +172,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
172
172
  readonly target: string;
173
173
  readonly operation: string;
174
174
  }[] | undefined;
175
- readonly accessor: string;
176
175
  readonly successMessage?: string | undefined;
176
+ readonly accessor: string;
177
177
  };
178
178
  }) => any) | undefined;
179
179
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -91,7 +91,8 @@ export function defaults() {
91
91
  return {
92
92
  title: [{ locale: "zh", message: "" }],
93
93
  binding: "",
94
- size: 240
94
+ size: 240,
95
+ rangeSeparatorIcon: "fluent:arrow-right-20-regular"
95
96
  };
96
97
  }
97
98
  export function toColumnDef(value, { getLocaleText }) {
@@ -23,6 +23,9 @@ const sizeClass = computed(() => ({
23
23
  md: "h-9 text-sm",
24
24
  lg: "h-10 text-base"
25
25
  })[props.size]);
26
+ const inputSizeClass = computed(() => ({ sm: "text-xs md:text-xs", md: "", lg: "" })[props.size]);
27
+ const clearButtonSizeClass = computed(() => props.size === "sm" ? "size-4" : "");
28
+ const clearIconSizeClass = computed(() => props.size === "sm" ? "size-3" : "");
26
29
  const emits = defineEmits(["update:modelValue", "focus", "blur", "clear"]);
27
30
  const draft = ref("");
28
31
  const focused = ref(false);
@@ -86,6 +89,7 @@ const showClear = computed(
86
89
  </InputGroupAddon>
87
90
  <InputGroupInput
88
91
  :model-value="draft"
92
+ :class="inputSizeClass"
89
93
  :placeholder="props.placeholder"
90
94
  :disabled="props.disabled"
91
95
  :readonly="props.readonly"
@@ -105,12 +109,15 @@ const showClear = computed(
105
109
  <InputGroupButton
106
110
  size="icon-xs"
107
111
  data-slot="date-picker-clear"
108
- class="text-zinc-500 hover:text-zinc-700"
112
+ :class="cn('text-zinc-500 hover:text-zinc-700', clearButtonSizeClass)"
109
113
  tabindex="-1"
110
114
  @mousedown.prevent
111
115
  @click.stop="onClear"
112
116
  >
113
- <Icon :icon="props.clearIcon" />
117
+ <Icon
118
+ :icon="props.clearIcon"
119
+ :class="clearIconSizeClass"
120
+ />
114
121
  </InputGroupButton>
115
122
  </InputGroupAddon>
116
123
  </InputGroup>
@@ -26,6 +26,9 @@ const sizeClass = computed(() => ({
26
26
  md: "h-9 text-sm",
27
27
  lg: "h-10 text-base"
28
28
  })[props.size]);
29
+ const inputTextClass = computed(() => ({ sm: "text-xs", md: "text-sm", lg: "text-base" })[props.size]);
30
+ const clearButtonSizeClass = computed(() => props.size === "sm" ? "size-4" : "");
31
+ const clearIconSizeClass = computed(() => props.size === "sm" ? "size-3" : "");
29
32
  const emits = defineEmits(["update:startValue", "update:endValue", "focus", "blur", "clear"]);
30
33
  const startDraft = ref("");
31
34
  const endDraft = ref("");
@@ -122,7 +125,8 @@ const hasValue = computed(() => props.startValue !== void 0 || props.endValue !=
122
125
  :disabled="props.disabled"
123
126
  :readonly="props.readonly"
124
127
  :class="cn(
125
- 'text-zinc-700 placeholder:text-zinc-300 min-w-0 flex-1 bg-transparent px-1 text-sm outline-none disabled:cursor-not-allowed text-center',
128
+ 'text-zinc-700 placeholder:text-zinc-300 min-w-0 flex-1 bg-transparent px-1 outline-none disabled:cursor-not-allowed text-center',
129
+ inputTextClass,
126
130
  !props.prefixIcon && 'pl-3'
127
131
  )"
128
132
  @focus="(e) => onFocus(e, 'start')"
@@ -143,7 +147,8 @@ const hasValue = computed(() => props.startValue !== void 0 || props.endValue !=
143
147
  :disabled="props.disabled"
144
148
  :readonly="props.readonly"
145
149
  :class="cn(
146
- 'text-zinc-700 placeholder:text-zinc-300 min-w-0 flex-1 bg-transparent px-1 text-sm outline-none disabled:cursor-not-allowed text-center',
150
+ 'text-zinc-700 placeholder:text-zinc-300 min-w-0 flex-1 bg-transparent px-1 outline-none disabled:cursor-not-allowed text-center',
151
+ inputTextClass,
147
152
  !showClear && 'pr-3'
148
153
  )"
149
154
  @focus="(e) => onFocus(e, 'end')"
@@ -158,12 +163,16 @@ const hasValue = computed(() => props.startValue !== void 0 || props.endValue !=
158
163
  :class="cn(
159
164
  'mr-2 shrink-0 text-zinc-500 hover:text-zinc-700 transition-opacity',
160
165
  '[@media(hover:hover)]:opacity-0',
161
- 'group-hover/date-range-input:opacity-100 focus-within:opacity-100'
166
+ 'group-hover/date-range-input:opacity-100 focus-within:opacity-100',
167
+ clearButtonSizeClass
162
168
  )"
163
169
  @mousedown.prevent
164
170
  @click.stop="onClear"
165
171
  >
166
- <Icon :icon="props.clearIcon" />
172
+ <Icon
173
+ :icon="props.clearIcon"
174
+ :class="clearIconSizeClass"
175
+ />
167
176
  </InputGroupButton>
168
177
  </div>
169
178
  </template>
@@ -86,7 +86,7 @@ const addonAlign = computed(
86
86
  </script>
87
87
 
88
88
  <template>
89
- <div class="flex flex-col gap-1.5">
89
+ <div class="flex w-full min-w-0 flex-col gap-1.5">
90
90
  <InputGroup>
91
91
  <InputGroupAddon
92
92
  v-if="$slots.leading"