@web-utils/form-ui 1.0.0-beta31 → 1.0.0-beta33

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 (106) hide show
  1. package/chunks/{Cc3EJjbV.mjs → 1cDNhlSV.mjs} +2 -2
  2. package/chunks/{C4bM8miy.mjs → A3sHIRQ_.mjs} +2 -3
  3. package/chunks/{Ci1XxmdE.mjs → BLRY0zkF.mjs} +3 -3
  4. package/chunks/{Cby3mvvZ.mjs → BLWwTutr.mjs} +2 -2
  5. package/chunks/{BgDYHgyH.mjs → BTS_zTkz.mjs} +1 -1
  6. package/chunks/BX-cVxlK.mjs +102 -0
  7. package/chunks/BYAy19s4.mjs +113 -0
  8. package/chunks/BmacSnUz.mjs +657 -0
  9. package/chunks/BvsmTC3G.mjs +229 -0
  10. package/chunks/{Dt6gY213.mjs → BwdWZEjT.mjs} +5 -5
  11. package/chunks/{bnRb5PUB.mjs → CGJkMYZ4.mjs} +5 -5
  12. package/chunks/CLn0r4lV.mjs +177 -0
  13. package/chunks/{Cgl-hCE5.mjs → CNskrN5I.mjs} +2 -2
  14. package/chunks/{D1G2MMMx.mjs → CWfUPCtS.mjs} +4 -4
  15. package/chunks/{4ZuVpQf6.mjs → CnAEuI_c.mjs} +1 -1
  16. package/chunks/{Cy-4nmyC.mjs → Cr1vBYne.mjs} +4 -4
  17. package/chunks/{BV_P9a8o.mjs → D5_ctQqL.mjs} +2 -2
  18. package/chunks/{CsfgUCe9.mjs → D7hD-ppq.mjs} +1 -1
  19. package/chunks/DFsI7Y6h.mjs +197 -0
  20. package/chunks/{B99alfW4.mjs → DJKE5P39.mjs} +2 -2
  21. package/chunks/DQKi5eEl.mjs +166 -0
  22. package/chunks/{BmZieBZW.mjs → DQxPzCsy.mjs} +2 -2
  23. package/chunks/DcbnHU8K.mjs +145 -0
  24. package/chunks/{DazglPJZ.mjs → Dgyjc3LT.mjs} +1 -1
  25. package/chunks/{JhyiXnbd.mjs → DistOy_O.mjs} +8 -4
  26. package/chunks/{C44-CFi-.mjs → ZXCLnZFa.mjs} +4 -4
  27. package/chunks/{D1EOkWJ7.mjs → _dm2lLNL.mjs} +2 -2
  28. package/chunks/{CugRu2Ka.mjs → axr9InkL.mjs} +3 -3
  29. package/chunks/{C3a15Ful.mjs → iWQD3xvX.mjs} +2 -2
  30. package/chunks/uYaz9cwr.mjs +336 -0
  31. package/editable-tree/index.d.ts +254 -0
  32. package/editable-tree/index.mjs +2 -0
  33. package/editable-tree/style.css +1 -0
  34. package/element-dialog/index.d.ts +6 -6
  35. package/element-dialog/index.mjs +1 -1
  36. package/form-cascader/index.d.ts +5 -5
  37. package/form-cascader/index.mjs +1 -1
  38. package/form-check-box-group/index.d.ts +78 -7
  39. package/form-check-box-group/index.mjs +1 -1
  40. package/form-check-box-group/style.css +1 -0
  41. package/form-checkbox/index.d.ts +4 -2
  42. package/form-checkbox/index.mjs +1 -1
  43. package/form-date-picker/index.d.ts +63 -11
  44. package/form-date-picker/index.mjs +1 -1
  45. package/form-holder/index.mjs +1 -1
  46. package/form-image/index.mjs +1 -1
  47. package/form-input/index.d.ts +3 -3
  48. package/form-input/index.mjs +1 -1
  49. package/form-input-cron-expression/index.mjs +1 -1
  50. package/form-input-email/index.d.ts +3 -3
  51. package/form-input-email/index.mjs +1 -1
  52. package/form-input-id-card/index.d.ts +3 -3
  53. package/form-input-id-card/index.mjs +1 -1
  54. package/form-input-number/index.d.ts +5 -3
  55. package/form-input-number/index.mjs +1 -1
  56. package/form-input-phone-number/index.d.ts +3 -3
  57. package/form-input-phone-number/index.mjs +1 -1
  58. package/form-item-group/index.d.ts +0 -2
  59. package/form-item-group/index.mjs +1 -1
  60. package/form-item-group/style.css +1 -1
  61. package/form-item-x/index.mjs +1 -1
  62. package/form-item-x/style.css +1 -1
  63. package/form-radio-group/index.d.ts +91 -4
  64. package/form-radio-group/index.mjs +1 -1
  65. package/form-rate/index.mjs +1 -1
  66. package/form-row/index.mjs +1 -1
  67. package/form-select/index.d.ts +82 -10
  68. package/form-select/index.mjs +1 -1
  69. package/form-slider/index.d.ts +2 -2
  70. package/form-slider/index.mjs +1 -1
  71. package/form-switch/index.d.ts +4 -4
  72. package/form-switch/index.mjs +1 -1
  73. package/form-text/index.mjs +1 -1
  74. package/helper/dictionary.mjs +7 -7
  75. package/iframe-window/index.mjs +1 -1
  76. package/index.d.ts +2 -1
  77. package/index.mjs +47 -46
  78. package/month-calendar/index.d.ts +1 -1
  79. package/package.json +1 -1
  80. package/pageable-table/index.d.ts +4 -4
  81. package/pageable-table/index.mjs +1 -1
  82. package/resize-observer/index.mjs +2 -2
  83. package/table-column/index.d.ts +4 -4
  84. package/table-column/index.mjs +1 -1
  85. package/table-column-def/index.mjs +1 -1
  86. package/table-view/index.d.ts +340 -1
  87. package/table-view/index.mjs +452 -6
  88. package/table-view/style.css +1 -0
  89. package/toolbar/index.mjs +1 -1
  90. package/toolbar-button/index.d.ts +136 -24
  91. package/toolbar-button/index.mjs +1 -1
  92. package/vue-cron/index.mjs +1 -1
  93. package/web-types.json +1 -1
  94. package/x-input-tag/index.mjs +1 -1
  95. package/year-calendar/index.mjs +1 -1
  96. package/chunks/BQ77eAb3.mjs +0 -71
  97. package/chunks/Br4i8stg.mjs +0 -222
  98. package/chunks/DO8dVGef.mjs +0 -98
  99. package/chunks/DtAYXPvz.mjs +0 -108
  100. package/chunks/S64sNmuR.mjs +0 -226
  101. package/chunks/dM-icPM8.mjs +0 -107
  102. package/chunks/pxFLMMUm.mjs +0 -110
  103. package/chunks/q1SlJP1y.mjs +0 -171
  104. /package/chunks/{CkFapoKt.mjs → B1MSrc6f.mjs} +0 -0
  105. /package/chunks/{C9J3j0PX.mjs → BW6iY7Q7.mjs} +0 -0
  106. /package/chunks/{BV_N8p9t.mjs → DiE4GJtU.mjs} +0 -0
@@ -0,0 +1,229 @@
1
+ import { a as e } from "./BX-cVxlK.mjs";
2
+ import { formHolderContextKey as t, formItemConfigProviderContextKey as n, formItemGroupContextKey as r } from "../constants/index.mjs";
3
+ import { isArray as i, isPlainObject as a, isString as o } from "@web-utils/core";
4
+ import { computed as s, createVNode as c, h as l, inject as u, mergeProps as d, nextTick as f, unref as p, useTemplateRef as m } from "vue";
5
+ import { ElCol as h, rowContextKey as g } from "element-plus";
6
+ import { ElCol as _, ElFormItem as v, ElTooltip as y } from "element-plus/es";
7
+ //#region src/components/form/props/form-item.ts
8
+ var b = {
9
+ prop: [String, Array],
10
+ label: String,
11
+ labelPosition: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ labelWidth: [String, Number],
16
+ required: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ rules: Object,
21
+ error: String,
22
+ showMessage: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ inlineMessage: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ size: String,
31
+ for: String,
32
+ validateStatus: String,
33
+ messagePrefix: String,
34
+ message: String,
35
+ wrapCol: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ fixedSpan: Number,
40
+ block: Boolean,
41
+ unwrap: Boolean,
42
+ half: Boolean,
43
+ formItemClass: String,
44
+ hideLabel: Boolean,
45
+ tips: { type: String },
46
+ tipsAfterLabel: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ labelColspan: [Number, String],
51
+ inputColspan: [Number, String],
52
+ labelRowspan: [Number, String],
53
+ inputRowspan: [Number, String]
54
+ }, x = {
55
+ required: !0,
56
+ rules: !0,
57
+ messagePrefix: !0,
58
+ message: !0,
59
+ wrapCol: !0,
60
+ fixedSpan: !0,
61
+ block: !0,
62
+ unwrap: !0,
63
+ half: !0,
64
+ formItemClass: !0,
65
+ hideLabel: !0,
66
+ tips: !0,
67
+ tipsAfterLabel: !0,
68
+ labelColspan: !0,
69
+ inputColspan: !0,
70
+ labelRowspan: !0,
71
+ inputRowspan: !0
72
+ }, S = (e) => b[e] !== void 0 && x[e] !== !0, C = (t, { emit: n, events: r, predicate: i }) => s(() => e(t, i, r, n)), w = {
73
+ span: {
74
+ type: Number,
75
+ default: 12
76
+ },
77
+ offset: {
78
+ type: Number,
79
+ default: 0
80
+ },
81
+ push: {
82
+ type: Number,
83
+ default: 0
84
+ },
85
+ pull: {
86
+ type: Number,
87
+ default: 0
88
+ },
89
+ xs: { type: [Number, Object] },
90
+ sm: { type: [Number, Object] },
91
+ md: { type: [Number, Object] },
92
+ lg: { type: [Number, Object] },
93
+ xl: { type: [Number, Object] },
94
+ tag: {
95
+ type: String,
96
+ default: "div"
97
+ }
98
+ }, T = { span: !0 }, E = (e) => w[e] !== void 0 && T[e] !== !0, D = (t, { emit: n, events: r, predicate: i }) => s(() => e(t, i, r, n)), O = (e) => {
99
+ let n = u(t, null);
100
+ return s(() => e.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[e.prop]) === !0);
101
+ }, k = (e, t) => {
102
+ let n = p(t);
103
+ o(n) ? e.push(n) : i(n) ? e.push(...n) : a(n) && e.push(n);
104
+ }, A = (e, { rules: t, attrs: n, messagePrefix: r, message: i, ...a } = {}) => {
105
+ let o = O(e);
106
+ return s(() => {
107
+ let s = { message: i }, c = p(t);
108
+ Object.keys({
109
+ ...b,
110
+ ...w
111
+ }).forEach((t) => {
112
+ t === "rules" ? e[t] && c ? s[t] = [...e[t], ...c] : e[t] ? s[t] = e[t] : c && (s[t] = c) : t === "messagePrefix" ? s[t] = e.messagePrefix || r : s[t] = e[t];
113
+ });
114
+ let l = [];
115
+ return k(l, n == null ? void 0 : n.class), k(l, a == null ? void 0 : a.class), s.required = o.value, s.class = l, s.style = n == null ? void 0 : n.style, s;
116
+ });
117
+ }, j = {
118
+ name: "FormItemX",
119
+ inheritAttrs: !1,
120
+ props: {
121
+ ...b,
122
+ ...w
123
+ },
124
+ setup(e, { attrs: r, slots: i, expose: a }) {
125
+ let o = u(g, null), l = u(n, null), p = u(t, null), h = r.embed ? s(() => r.disabled) : N(e), b = C(e, { predicate: S }), x = D(e, { predicate: E }), w = s(() => (l == null ? void 0 : l.reactive) === !0 && l.block === !1 && e.fixedSpan === void 0 && !e.half), T = O(e), k = m("formItem"), A = s(() => (l == null ? void 0 : l.wrapCol) === !1 ? !1 : !!o && e.wrapCol), j = s(() => p != null && p.tableForm ? "" : l != null && l.block ? "100%" : e.half && A.value ? `calc(50% - ${o.gutter.value / 2}px)` : ""), M = s(() => (l == null ? void 0 : l.block) === !0 || e.block || e.half ? 24 : e.span), P = s(() => {
126
+ if (h.value) return [];
127
+ if (T.value) {
128
+ let t = {
129
+ required: !0,
130
+ message: e.message || `${e.messagePrefix || "请输入"}${e.label}`
131
+ };
132
+ return e.rules ? [...e.rules, t] : [t];
133
+ }
134
+ return e.rules;
135
+ });
136
+ return a({
137
+ clearValidate: async () => {
138
+ var e;
139
+ await f(), (e = k.value) == null || e.clearValidate();
140
+ },
141
+ validate: async () => {
142
+ var e;
143
+ await f(), (e = k.value) == null || e.validate();
144
+ }
145
+ }), () => {
146
+ var t;
147
+ let n = i.tips || e.tips, a = n ? c(y, {
148
+ effect: "light",
149
+ content: e.tips,
150
+ offset: 4
151
+ }, {
152
+ default: () => c("i", { class: "el-icon-info form-item-input-info" }, null),
153
+ content: i.tips ? i.tips : null
154
+ }) : null, o = c(v, d(b.value, r, {
155
+ ref: "formItem",
156
+ style: { width: j.value },
157
+ class: [
158
+ "form-item",
159
+ e.formItemClass,
160
+ {
161
+ "form-item-hide-label": e.hideLabel,
162
+ "with-tips": !e.tipsAfterLabel && n,
163
+ required: h.value === !1 && T.value
164
+ }
165
+ ],
166
+ rules: P.value
167
+ }), {
168
+ ...i,
169
+ default: () => {
170
+ var t;
171
+ return [(t = i.default) == null ? void 0 : t.call(i, {
172
+ disabled: h.value,
173
+ required: T.value
174
+ }), n && !e.tipsAfterLabel ? a : null];
175
+ },
176
+ label: () => [i.label ? i.label() : e.label, e.tipsAfterLabel ? a : null]
177
+ }), s = [o, (t = i.below) == null ? void 0 : t.call(i)];
178
+ return e.unwrap ? s : A.value ? c(_, d(x.value, w.value ? {
179
+ xs: 24,
180
+ sm: 12,
181
+ md: 12,
182
+ lg: 8,
183
+ xl: 6
184
+ } : {}, { span: M.value }), { default: () => s }) : o;
185
+ };
186
+ }
187
+ }, M = "update:modelValue", N = (e) => {
188
+ let n = u(t, null), i = u(r, null);
189
+ return s(() => {
190
+ if (e.disabled !== void 0) return e.disabled;
191
+ if (n) {
192
+ if (n.requiredFieldsMap[e.prop] === !0 || n.enabledFieldsMap[e.prop] === !0) return !1;
193
+ if (n.disabledFieldsMap[e.prop] === !0) return !0;
194
+ }
195
+ return (i == null ? void 0 : i.enabled) === !0 ? !1 : (i == null ? void 0 : i.disabled) === !0 ? !0 : (n == null ? void 0 : n.disabled) === !0;
196
+ });
197
+ }, P = { [M]: null }, F = (e, t) => e(M, t), I = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? l(j, {
198
+ ...n.value,
199
+ embed: !0,
200
+ disabled: i == null ? void 0 : i.value
201
+ }, {
202
+ default: () => t,
203
+ label: r.label,
204
+ error: r.error,
205
+ tips: r.tips,
206
+ below: r.below
207
+ }) : t, L = (t, { emit: n, slots: r, attrs: i, rules: a, events: o, predicate: c, messagePrefix: u = "请输入", ...d }) => {
208
+ let f = N(t), p = s(() => f.value ? "" : `${u}${t.label}`), m = A(t, {
209
+ rules: a,
210
+ attrs: i,
211
+ message: p.value,
212
+ ...d
213
+ }), g = (e) => F(n, e), _ = (e) => t.col ? l(h, { span: t.block ? 24 : t.span }, { default: () => e }) : e;
214
+ return {
215
+ emitInput: g,
216
+ render: ({ vNodes: e }) => I(t, {
217
+ vNodes: _(e),
218
+ formItemProps: m,
219
+ slots: r,
220
+ disabled: f
221
+ }),
222
+ placeholder: p,
223
+ disabled: f,
224
+ formItemProps: m,
225
+ autoBind: s(() => e(t, c, o, n))
226
+ };
227
+ }, R = (e) => e.icon ? l("i", { class: e.icon }) : null;
228
+ //#endregion
229
+ export { j as a, b as c, L as i, P as n, A as o, I as r, w as s, R as t };
@@ -1,6 +1,6 @@
1
- import { i as e, n as t } from "./Br4i8stg.mjs";
2
- import { n, t as r } from "./CsfgUCe9.mjs";
3
- import { t as i } from "./D1G2MMMx.mjs";
1
+ import { i as e, n as t } from "./BvsmTC3G.mjs";
2
+ import { n, t as r } from "./D7hD-ppq.mjs";
3
+ import { t as i } from "./CWfUPCtS.mjs";
4
4
  import { createVNode as a, mergeProps as o, ref as s } from "vue";
5
5
  import { ElInput as c, ElPopover as l } from "element-plus/es";
6
6
  //#region src/components/form/props/input-cron.ts
@@ -38,8 +38,8 @@ var u = {
38
38
  return () => h({ vNodes: a("div", { class: "cron" }, [a(l, {
39
39
  placement: "bottom-start",
40
40
  disabled: _.value,
41
- modelValue: d.value,
42
- "onUpdate:modelValue": (e) => d.value = e,
41
+ visible: d.value,
42
+ "onUpdate:visible": (e) => d.value = e,
43
43
  "popper-class": "cron-popover"
44
44
  }, {
45
45
  default: () => a(i, o(v.value, {
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./Br4i8stg.mjs";
2
- import { n, t as r } from "./CsfgUCe9.mjs";
1
+ import { i as e, n as t } from "./BvsmTC3G.mjs";
2
+ import { n, t as r } from "./D7hD-ppq.mjs";
3
3
  import { isString as i } from "@web-utils/core";
4
4
  import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
5
  import { ElInputNumber as c } from "element-plus/es";
@@ -51,7 +51,6 @@ var l = {
51
51
  type: Boolean,
52
52
  default: !0
53
53
  },
54
- label: String,
55
54
  inputmode: String,
56
55
  align: {
57
56
  type: String,
@@ -62,7 +61,8 @@ var l = {
62
61
  default: !1
63
62
  },
64
63
  prefix: String,
65
- suffix: String
64
+ suffix: String,
65
+ append: String
66
66
  }, u = {
67
67
  readonly: !0,
68
68
  placeholder: !0,
@@ -98,7 +98,7 @@ var l = {
98
98
  placeholder: m.value
99
99
  }), {
100
100
  prefix: r.prefix || t.prefix ? () => t.prefix : null,
101
- suffix: r.suffix || t.suffix ? () => t.suffix : null,
101
+ suffix: r.suffix || t.suffix ? () => t.suffix : t.append,
102
102
  "decrease-icon": r["decrease-icon"],
103
103
  "increase-icon": r["increase-icon"]
104
104
  }) });
@@ -0,0 +1,177 @@
1
+ import { i as e, n as t } from "./BvsmTC3G.mjs";
2
+ import { n } from "./D7hD-ppq.mjs";
3
+ import { useDictionary as r } from "../hook/useDictionary.mjs";
4
+ import { t as i } from "./A3sHIRQ_.mjs";
5
+ import { computed as a, createVNode as o, defineComponent as s, isVNode as c, mergeProps as l, useModel as u } from "vue";
6
+ import { ElCheckbox as d, ElCheckboxButton as f, ElCheckboxGroup as p } from "element-plus/es";
7
+ //#region src/components/form/props/checkbox-group.ts
8
+ var m = {
9
+ ...n,
10
+ modelValue: {
11
+ type: [Array, String],
12
+ default: () => []
13
+ },
14
+ size: String,
15
+ min: Number,
16
+ max: Number,
17
+ ariaLabel: String,
18
+ textColor: {
19
+ type: String,
20
+ default: "#ffffff"
21
+ },
22
+ fill: {
23
+ type: String,
24
+ default: "#409eff"
25
+ },
26
+ tag: {
27
+ type: String,
28
+ default: "div"
29
+ },
30
+ validateEvent: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ options: {
35
+ type: Array,
36
+ default: () => []
37
+ },
38
+ props: {
39
+ type: Object,
40
+ default: () => ({
41
+ value: "value",
42
+ label: "label",
43
+ disabled: "disabled"
44
+ })
45
+ },
46
+ type: {
47
+ type: String,
48
+ default: "checkbox"
49
+ },
50
+ stringMode: Boolean,
51
+ delimiter: {
52
+ type: String,
53
+ default: ","
54
+ },
55
+ other: [String],
56
+ otherVal: [String],
57
+ otherProp: String,
58
+ otherPlaceholder: String,
59
+ otherLabel: String,
60
+ otherWidth: {
61
+ type: String,
62
+ default: "200px"
63
+ },
64
+ otherMaxLength: String,
65
+ gender: Boolean,
66
+ confirm: Boolean,
67
+ labelProp: {
68
+ type: String,
69
+ default: "name"
70
+ },
71
+ valueProp: {
72
+ type: String,
73
+ default: "code"
74
+ },
75
+ split: Boolean,
76
+ sort: Boolean,
77
+ classic: Boolean,
78
+ fillRow: Boolean,
79
+ ellipsis: Boolean,
80
+ dictType: String
81
+ }, h = {
82
+ modelValue: !0,
83
+ type: !0,
84
+ options: !0
85
+ }, g = ["change"], _ = (e) => n[e] === void 0 && h[e] !== !0;
86
+ //#endregion
87
+ //#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
88
+ function v(e) {
89
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
90
+ }
91
+ //#endregion
92
+ //#region src/components/form/FormCheckBoxGroup.vue
93
+ var y = /* @__PURE__ */ s({
94
+ name: "FormCheckBoxGroup",
95
+ inheritAttrs: !1,
96
+ props: { ...m },
97
+ emits: {
98
+ ...t,
99
+ "update:other": null,
100
+ change: null
101
+ },
102
+ setup(t, { emit: n, slots: s, attrs: c }) {
103
+ let m = u(t, "other"), { emitInput: h, render: y, disabled: b, autoBind: x } = e(t, {
104
+ emit: n,
105
+ slots: s,
106
+ attrs: c,
107
+ events: g,
108
+ predicate: _,
109
+ messagePrefix: "请选择",
110
+ class: a(() => ["form-checkbox-group", {
111
+ "form-checkbox-group-row": t.fillRow,
112
+ "form-checkbox-group-row-break-word": t.fillRow,
113
+ "form-checkbox-group-row-ellipsis": t.ellipsis
114
+ }])
115
+ }), S = (e) => {
116
+ let n = e;
117
+ t.sort && (n = e.sort()), t.stringMode || t.split ? h(n.join(",")) : h(n);
118
+ }, C = a(() => {
119
+ if (t.stringMode || t.split) {
120
+ var e;
121
+ return Array.isArray(t.modelValue) ? t.modelValue.filter((e) => e) : ((e = t.modelValue) == null ? void 0 : e.split(t.delimiter).filter((e) => e)) ?? [];
122
+ }
123
+ return t.modelValue || [];
124
+ }), w = a(() => t.classic ? "label" : t.labelProp), T = a(() => t.classic ? "value" : t.valueProp), { dictItems: E } = r(t), D = a(() => t.dictType ? E.value : t.gender ? [{
125
+ [w.value]: "男",
126
+ [T.value]: "男"
127
+ }, {
128
+ [w.value]: "女",
129
+ [T.value]: "女"
130
+ }] : t.confirm ? [{
131
+ [w.value]: "是",
132
+ [T.value]: "是"
133
+ }, {
134
+ [w.value]: "否",
135
+ [T.value]: "否"
136
+ }] : t.options);
137
+ return () => y({ vNodes: [o(p, l(x.value, {
138
+ modelValue: C.value,
139
+ disabled: b.value,
140
+ "onUpdate:modelValue": S
141
+ }), {
142
+ ...s,
143
+ default: s.default || (() => {
144
+ var e;
145
+ return (e = D.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" ? o(f, {
146
+ key: e,
147
+ value: e,
148
+ disabled: r
149
+ }, v(n) ? n : { default: () => [n] }) : o(d, {
150
+ key: e,
151
+ value: e,
152
+ disabled: r
153
+ }, v(n) ? n : { default: () => [n] }));
154
+ })
155
+ }), C.value.includes(t.otherVal) ? o(i, {
156
+ "wrap-col": !1,
157
+ class: "form-checkbox-group-other",
158
+ "hide-label": !0,
159
+ "label-width": "0",
160
+ prop: t.otherProp,
161
+ disabled: b.value,
162
+ required: !!t.otherProp,
163
+ placeholder: t.otherPlaceholder,
164
+ label: t.otherLabel,
165
+ "show-message": !!t.otherLabel,
166
+ style: t.otherLabel ? { width: t.otherWidth } : {
167
+ marginBottom: 0,
168
+ width: t.otherWidth
169
+ },
170
+ modelValue: m.value,
171
+ "onUpdate:modelValue": (e) => m.value = e,
172
+ "max-length": t.otherMaxLength
173
+ }, null) : null] });
174
+ }
175
+ });
176
+ //#endregion
177
+ export { y as t };
@@ -1,5 +1,5 @@
1
- import { n as e } from "./Br4i8stg.mjs";
2
- import { n as t, t as n } from "./C4bM8miy.mjs";
1
+ import { n as e } from "./BvsmTC3G.mjs";
2
+ import { n as t, t as n } from "./A3sHIRQ_.mjs";
3
3
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
4
  //#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
5
5
  function s(e) {
@@ -1,9 +1,9 @@
1
- import { t as e } from "./CkFapoKt.mjs";
1
+ import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { copy as t } from "@web-utils/core";
3
3
  import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, openBlock as l, renderList as u, toDisplayString as d, withCtx as f } from "vue";
4
4
  import { ElButton as p, ElInputNumber as m, ElOption as h, ElRadio as g, ElRadioGroup as _, ElSelect as ee, ElTabPane as v, ElTabs as y } from "element-plus/es";
5
- import { CronosExpression as b } from "cronosjs";
6
- import { formatDate as x } from "@web-utils/integrations/dayjs";
5
+ import { formatDate as b } from "@web-utils/integrations/dayjs";
6
+ import { CronosExpression as x } from "cronosjs";
7
7
  //#region src/components/vue-cron/language/zh.ts
8
8
  var S = {
9
9
  Seconds: {
@@ -458,7 +458,7 @@ var S = {
458
458
  async handler() {
459
459
  let e = `${this.secondsText} ${this.minutesText} ${this.hoursText} ${this.daysText} ${this.monthsText} ${this.weeksText} ${this.yearsText}`;
460
460
  try {
461
- this.runsParser ? this.runs = await this.runsParser(e) : this.runs = b.parse(e).nextNDates(/* @__PURE__ */ new Date(), 5).map((e) => x(e));
461
+ this.runsParser ? this.runs = await this.runsParser(e) : this.runs = x.parse(e).nextNDates(/* @__PURE__ */ new Date(), 5).map((e) => b(e));
462
462
  } catch (e) {
463
463
  console.error(e), this.runs = [e.message];
464
464
  }
@@ -1,4 +1,4 @@
1
- import { t as e } from "./CkFapoKt.mjs";
1
+ import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createVNode as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, toDisplayString as d, withModifiers as f } from "vue";
3
3
  import p from "dayjs";
4
4
  //#region src/components/material-year-calendar/MonthCalendar.vue
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./Br4i8stg.mjs";
2
- import { n } from "./CsfgUCe9.mjs";
1
+ import { i as e, n as t } from "./BvsmTC3G.mjs";
2
+ import { n } from "./D7hD-ppq.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElSwitch as o } from "element-plus/es";
5
5
  //#region src/components/form/props/switch.ts
@@ -41,7 +41,7 @@ var s = {
41
41
  String,
42
42
  Number
43
43
  ],
44
- default: !0
44
+ default: "Y"
45
45
  },
46
46
  inactiveValue: {
47
47
  type: [
@@ -49,7 +49,7 @@ var s = {
49
49
  String,
50
50
  Number
51
51
  ],
52
- default: !1
52
+ default: "N"
53
53
  },
54
54
  name: {
55
55
  type: String,
@@ -1,7 +1,7 @@
1
- import { n as e } from "./BQ77eAb3.mjs";
1
+ import { i as e } from "./BX-cVxlK.mjs";
2
2
  import { getDictLabel as t } from "../helper/dictionary.mjs";
3
3
  import { tableViewContextKey as n } from "../constants/index.mjs";
4
- import { t as r } from "./BV_N8p9t.mjs";
4
+ import { t as r } from "./DiE4GJtU.mjs";
5
5
  import { computed as i, createVNode as a, inject as o, mergeProps as s, ref as c, watchEffect as l } from "vue";
6
6
  import { ElTableColumn as u } from "element-plus/es";
7
7
  //#endregion
@@ -1,4 +1,4 @@
1
- import { c as e, s as t } from "./Br4i8stg.mjs";
1
+ import { c as e, s as t } from "./BvsmTC3G.mjs";
2
2
  //#region src/components/form/props/common.ts
3
3
  var n = {
4
4
  ...e,