@web-utils/form-ui 1.0.0-beta2 → 1.0.0-beta20

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 (127) hide show
  1. package/base.css +1 -1
  2. package/chunks/8ORg8rrN.mjs +108 -0
  3. package/chunks/B3DY36vM.mjs +106 -0
  4. package/chunks/B5B9au3z.mjs +180 -0
  5. package/chunks/B7fKv2-x.mjs +88 -0
  6. package/chunks/B9-9iYg8.mjs +42 -0
  7. package/chunks/BAm_wcwz.mjs +226 -0
  8. package/chunks/BJObhbQz.mjs +95 -0
  9. package/chunks/BLpnMrum.mjs +189 -0
  10. package/chunks/BSriw1Qr.mjs +53 -0
  11. package/chunks/BVzpe2oN.mjs +76 -0
  12. package/chunks/Bb43eI1f.mjs +93 -0
  13. package/chunks/Be_E_4G0.mjs +106 -0
  14. package/chunks/Bh_CMUlo.mjs +12 -0
  15. package/chunks/Bk3PtIYo.mjs +171 -0
  16. package/chunks/C1DlzLpD.mjs +222 -0
  17. package/chunks/CJeq96R0.mjs +73 -0
  18. package/chunks/CPE8fqJc.mjs +26 -0
  19. package/chunks/D7hrSVVl.mjs +98 -0
  20. package/chunks/D9GcEl6r.mjs +8 -0
  21. package/chunks/DAS1h_Ei.mjs +26 -0
  22. package/chunks/D_Xobj10.mjs +26 -0
  23. package/chunks/DgCwGit4.mjs +108 -0
  24. package/chunks/DgbDpRQg.mjs +51 -0
  25. package/chunks/DynLjTwi.mjs +17 -0
  26. package/chunks/lTFu0zgR.mjs +106 -0
  27. package/chunks/wfL1FAwc.mjs +1360 -0
  28. package/constants.d.ts +42 -0
  29. package/constants.mjs +3 -3
  30. package/element-dialog/index.d.ts +96 -0
  31. package/element-dialog/index.mjs +2 -92
  32. package/element-dialog/style.css +1 -1
  33. package/empty-view/index.d.ts +29 -0
  34. package/flex-scroll-area/index.d.ts +22 -0
  35. package/form-advice/index.d.ts +9 -0
  36. package/form-advice/index.mjs +13 -12
  37. package/form-cascader/index.d.ts +2 -0
  38. package/form-cascader/index.mjs +10 -0
  39. package/form-cell/index.d.ts +25 -0
  40. package/form-check-box-group/index.d.ts +293 -0
  41. package/form-check-box-group/index.mjs +1 -1
  42. package/form-checkbox/index.d.ts +271 -0
  43. package/form-checkbox/index.mjs +1 -1
  44. package/form-date-picker/index.d.ts +421 -0
  45. package/form-date-picker/index.mjs +1 -1
  46. package/form-holder/index.d.ts +166 -0
  47. package/form-holder/index.mjs +1 -1
  48. package/form-holder/style.css +1 -1
  49. package/form-image/index.d.ts +224 -0
  50. package/form-image/index.mjs +1 -1
  51. package/form-input/index.d.ts +387 -0
  52. package/form-input/index.mjs +1 -1
  53. package/form-input/style.css +1 -0
  54. package/form-input-cron-expression/index.d.ts +215 -0
  55. package/form-input-cron-expression/index.mjs +2 -0
  56. package/form-input-cron-expression/style.css +1 -0
  57. package/form-input-email/index.d.ts +363 -0
  58. package/form-input-email/index.mjs +1 -1
  59. package/form-input-id-card/index.d.ts +363 -0
  60. package/form-input-id-card/index.mjs +1 -1
  61. package/form-input-number/index.d.ts +325 -0
  62. package/form-input-number/index.mjs +1 -1
  63. package/form-input-phone-number/index.d.ts +363 -0
  64. package/form-input-phone-number/index.mjs +1 -1
  65. package/form-input-tag/index.d.ts +2 -0
  66. package/form-input-time/index.d.ts +2 -0
  67. package/form-item-config-provider/index.d.ts +22 -0
  68. package/form-item-config-provider/index.mjs +24 -0
  69. package/form-item-group/index.d.ts +92 -0
  70. package/form-item-group/index.mjs +2 -78
  71. package/form-item-group/style.css +1 -1
  72. package/form-item-x/index.d.ts +184 -0
  73. package/form-item-x/index.mjs +1 -1
  74. package/form-radio-group/index.d.ts +281 -0
  75. package/form-radio-group/index.mjs +1 -1
  76. package/form-rate/index.d.ts +319 -0
  77. package/form-rate/index.mjs +1 -1
  78. package/form-red-table/index.d.ts +21 -0
  79. package/form-red-table/index.mjs +27 -26
  80. package/form-row/index.d.ts +11 -0
  81. package/form-row/index.mjs +1 -1
  82. package/form-select/index.d.ts +540 -0
  83. package/form-select/index.mjs +1 -1
  84. package/form-slider/index.d.ts +348 -0
  85. package/form-slider/index.mjs +1 -1
  86. package/form-switch/index.d.ts +337 -0
  87. package/form-switch/index.mjs +1 -1
  88. package/form-text/index.d.ts +227 -0
  89. package/form-text/index.mjs +1 -1
  90. package/form-view/index.d.ts +2 -0
  91. package/index.d.ts +42 -0
  92. package/index.mjs +39 -34
  93. package/input/style.css +1 -1
  94. package/month-calendar/index.d.ts +80 -0
  95. package/month-calendar/index.mjs +312 -0
  96. package/month-calendar/style.css +1 -0
  97. package/package.json +10 -7
  98. package/resolver.d.ts +9 -0
  99. package/resolver.mjs +29 -0
  100. package/table-view/index.d.ts +2 -0
  101. package/toolbar/index.d.ts +2 -0
  102. package/toolbar-button/index.d.ts +2 -0
  103. package/vue-cron/index.d.ts +191 -0
  104. package/vue-cron/index.mjs +2 -0
  105. package/vue-cron/style.css +1 -0
  106. package/web-types.json +1 -1
  107. package/year-calendar/index.d.ts +99 -0
  108. package/year-calendar/index.mjs +174 -0
  109. package/year-calendar/style.css +1 -0
  110. package/chunks/B4M_TFeR.mjs +0 -152
  111. package/chunks/B5BIQCcK.mjs +0 -149
  112. package/chunks/BHNKrW1j.mjs +0 -61
  113. package/chunks/BO9jWhBl.mjs +0 -46
  114. package/chunks/BZ8aOa78.mjs +0 -35
  115. package/chunks/Bsz7y4Xp.mjs +0 -73
  116. package/chunks/Bxj372sF.mjs +0 -53
  117. package/chunks/C33EmJN8.mjs +0 -32
  118. package/chunks/C6Li3-l7.mjs +0 -28
  119. package/chunks/CBcdalMX.mjs +0 -35
  120. package/chunks/CdRsyF0n.mjs +0 -43
  121. package/chunks/ClNahmiU.mjs +0 -23
  122. package/chunks/CstztYMu.mjs +0 -28
  123. package/chunks/DC9b53M6.mjs +0 -32
  124. package/chunks/DDVAgRED.mjs +0 -36
  125. package/chunks/DpJQABVD.mjs +0 -91
  126. package/chunks/ZsLNWI9x.mjs +0 -46
  127. package/chunks/jn_iQrVZ.mjs +0 -28
@@ -0,0 +1,226 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
+ import { ElOption as r, ElSelect as i } from "element-plus/es";
4
+ import { createVNode as a, mergeProps as o, useModel as s } from "vue";
5
+ //#region src/components/form/props/select.js
6
+ var c = {
7
+ ...n,
8
+ modelValue: [
9
+ String,
10
+ Number,
11
+ Boolean,
12
+ Object,
13
+ Array
14
+ ],
15
+ multiple: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ options: Array,
20
+ props: Object,
21
+ valueKey: {
22
+ type: String,
23
+ default: "value"
24
+ },
25
+ size: String,
26
+ clearable: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ collapseTags: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ collapseTagsTooltip: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ tagTooltip: {
39
+ type: Object,
40
+ default: () => ({})
41
+ },
42
+ multipleLimit: {
43
+ type: Number,
44
+ default: 0
45
+ },
46
+ id: String,
47
+ name: String,
48
+ effect: {
49
+ type: String,
50
+ default: "light"
51
+ },
52
+ autocomplete: {
53
+ type: String,
54
+ default: "off"
55
+ },
56
+ placeholder: String,
57
+ filterable: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ allowCreate: {
62
+ type: Boolean,
63
+ default: !1
64
+ },
65
+ filterMethod: Function,
66
+ remote: {
67
+ type: Boolean,
68
+ default: !1
69
+ },
70
+ debounce: {
71
+ type: Number,
72
+ default: 300
73
+ },
74
+ remoteMethod: Function,
75
+ remoteShowSuffix: {
76
+ type: Boolean,
77
+ default: !1
78
+ },
79
+ loading: {
80
+ type: Boolean,
81
+ default: !1
82
+ },
83
+ loadingText: String,
84
+ noMatchText: String,
85
+ noDataText: String,
86
+ popperClass: {
87
+ type: String,
88
+ default: ""
89
+ },
90
+ popperStyle: [String, Object],
91
+ reserveKeyword: {
92
+ type: Boolean,
93
+ default: !0
94
+ },
95
+ defaultFirstOption: {
96
+ type: Boolean,
97
+ default: !1
98
+ },
99
+ teleported: {
100
+ type: Boolean,
101
+ default: !0
102
+ },
103
+ appendTo: [String, Object],
104
+ persistent: {
105
+ type: Boolean,
106
+ default: !0
107
+ },
108
+ automaticDropdown: {
109
+ type: Boolean,
110
+ default: !1
111
+ },
112
+ clearIcon: [String, Object],
113
+ fitInputWidth: {
114
+ type: Boolean,
115
+ default: !1
116
+ },
117
+ suffixIcon: [String, Object],
118
+ tagType: {
119
+ type: String,
120
+ default: "info"
121
+ },
122
+ tagEffect: {
123
+ type: String,
124
+ default: "light"
125
+ },
126
+ validateEvent: {
127
+ type: Boolean,
128
+ default: !0
129
+ },
130
+ offset: {
131
+ type: Number,
132
+ default: 12
133
+ },
134
+ showArrow: {
135
+ type: Boolean,
136
+ default: !0
137
+ },
138
+ placement: {
139
+ type: String,
140
+ default: "bottom-start"
141
+ },
142
+ fallbackPlacements: {
143
+ type: Array,
144
+ default: () => [
145
+ "bottom-start",
146
+ "top-start",
147
+ "right",
148
+ "left"
149
+ ]
150
+ },
151
+ maxCollapseTags: {
152
+ type: Number,
153
+ default: 1
154
+ },
155
+ popperOptions: {
156
+ type: Object,
157
+ default: () => ({})
158
+ },
159
+ ariaLabel: String,
160
+ emptyValues: Array,
161
+ valueOnClear: [
162
+ String,
163
+ Number,
164
+ Boolean,
165
+ Function
166
+ ],
167
+ suffixTransition: {
168
+ type: Boolean,
169
+ default: !0
170
+ },
171
+ tabindex: [String, Number]
172
+ }, l = {
173
+ modelValue: !0,
174
+ emptyValues: !0,
175
+ valueOnClear: !0
176
+ }, u = [
177
+ "change",
178
+ "visible-change",
179
+ "remove-tag",
180
+ "clear",
181
+ "blur",
182
+ "focus",
183
+ "popup-scroll"
184
+ ], d = (e) => n[e] === void 0 && l[e] !== !0, f = {
185
+ name: "FormSelect",
186
+ inheritAttrs: !1,
187
+ props: { ...c },
188
+ emits: {
189
+ ...t,
190
+ change: null,
191
+ "visible-change": null,
192
+ "remove-tag": null,
193
+ clear: null,
194
+ blur: null,
195
+ focus: null,
196
+ "popup-scroll": null
197
+ },
198
+ setup(t, { emit: n, slots: c, attrs: l }) {
199
+ let f = s(t, "modelValue"), { render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
200
+ emit: n,
201
+ slots: c,
202
+ attrs: l,
203
+ events: u,
204
+ predicate: d,
205
+ messagePrefix: "请选择"
206
+ });
207
+ return () => p({ vNodes: a(i, o(g.value, {
208
+ modelValue: f.value,
209
+ "onUpdate:modelValue": (e) => f.value = e,
210
+ disabled: h.value,
211
+ placeholder: m.value
212
+ }), {
213
+ ...c,
214
+ default: c.default || (() => {
215
+ var e;
216
+ return (e = t.options) == null ? void 0 : e.map(({ value: e, label: t }) => a(r, {
217
+ key: e,
218
+ label: t,
219
+ value: e
220
+ }, null));
221
+ })
222
+ }) });
223
+ }
224
+ };
225
+ //#endregion
226
+ export { f as t };
@@ -0,0 +1,95 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
+ import { ElSlider as r } from "element-plus/es";
4
+ import { createVNode as i, mergeProps as a, useModel as o } from "vue";
5
+ //#region src/components/form/props/slide.js
6
+ var s = {
7
+ ...n,
8
+ modelValue: [Number, Array],
9
+ min: {
10
+ type: Number,
11
+ default: 0
12
+ },
13
+ max: {
14
+ type: Number,
15
+ default: 100
16
+ },
17
+ step: [Number, String],
18
+ showInput: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ showInputControls: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ size: {
27
+ type: String,
28
+ default: "default"
29
+ },
30
+ inputSize: {
31
+ type: String,
32
+ default: "default"
33
+ },
34
+ showStops: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ showTooltip: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ formatTooltip: Function,
43
+ range: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ vertical: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ height: String,
52
+ ariaLabel: String,
53
+ rangeStartLabel: String,
54
+ rangeEndLabel: String,
55
+ formatValueText: Function,
56
+ tooltipClass: String,
57
+ placement: {
58
+ type: String,
59
+ default: "top"
60
+ },
61
+ marks: Object,
62
+ validateEvent: {
63
+ type: Boolean,
64
+ default: !0
65
+ },
66
+ persistent: {
67
+ type: Boolean,
68
+ default: !0
69
+ }
70
+ }, c = { modelValue: !0 }, l = ["change", "input"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
71
+ name: "FormSlider",
72
+ inheritAttrs: !1,
73
+ props: { ...s },
74
+ emits: {
75
+ ...t,
76
+ change: null,
77
+ input: null
78
+ },
79
+ setup(t, { emit: n, slots: s, attrs: c }) {
80
+ let d = o(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
81
+ emit: n,
82
+ slots: s,
83
+ events: l,
84
+ predicate: u,
85
+ attrs: c
86
+ });
87
+ return () => f({ vNodes: i(r, a(m.value, {
88
+ modelValue: d.value,
89
+ "onUpdate:modelValue": (e) => d.value = e,
90
+ disabled: p.value
91
+ }), null) });
92
+ }
93
+ };
94
+ //#endregion
95
+ export { d as t };
@@ -0,0 +1,189 @@
1
+ import { formHolderContextKey as e, formViewContextKey as t } from "../constants.mjs";
2
+ import { n } from "./Bh_CMUlo.mjs";
3
+ import r from "../form-advice/index.mjs";
4
+ import i from "../form-red-table/index.mjs";
5
+ import { ElForm as a, ElRow as o } from "element-plus/es";
6
+ import { computed as s, createVNode as c, inject as l, mergeProps as u, nextTick as d, provide as f, reactive as p, toRef as m, useTemplateRef as h } from "vue";
7
+ import { animate as g } from "@web-utils/core";
8
+ //#region src/components/form/props/form.js
9
+ var _ = {
10
+ model: Object,
11
+ rules: Object,
12
+ inline: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ labelPosition: {
17
+ type: String,
18
+ default: "right"
19
+ },
20
+ labelWidth: {
21
+ type: [String, Number],
22
+ default: "auto"
23
+ },
24
+ labelSuffix: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ hideRequiredAsterisk: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ requireAsteriskPosition: {
33
+ type: String,
34
+ default: "left"
35
+ },
36
+ showMessage: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ inlineMessage: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ statusIcon: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ validateOnRuleChange: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ size: String,
53
+ disabled: {
54
+ type: Boolean,
55
+ default: void 0
56
+ },
57
+ scrollToError: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ scrollIntoViewOptions: [Object, Boolean],
62
+ requiredFields: Array,
63
+ disabledFields: Array,
64
+ enabledFields: Array,
65
+ showAdvice: {
66
+ type: Boolean,
67
+ default: !0
68
+ },
69
+ columns: [Array, Object],
70
+ colCount: Number,
71
+ notTableForm: {
72
+ type: Boolean,
73
+ default: void 0
74
+ },
75
+ commentValueColspan: Number,
76
+ commentLabelColspan: Number,
77
+ wrapRow: {
78
+ type: Boolean,
79
+ default: !0
80
+ }
81
+ }, v = {
82
+ showMessage: !0,
83
+ required: !0,
84
+ requiredFields: !0,
85
+ disabledFields: !0,
86
+ enabledFields: !0,
87
+ showAdvice: !0,
88
+ columns: !0,
89
+ colCount: !0,
90
+ notTableForm: !0,
91
+ commentValueColspan: !0,
92
+ commentLabelColspan: !0,
93
+ wrapRow: !0
94
+ }, y = ["validate"], b = (e) => v[e] !== !0, x = {
95
+ name: "FormHolder",
96
+ inheritAttrs: !1,
97
+ props: { ..._ },
98
+ emits: { validate: null },
99
+ setup(_, { slots: v, expose: x, emit: S }) {
100
+ let C = n(_, {
101
+ emit: S,
102
+ events: y,
103
+ predicate: b
104
+ }), w = l(t, null), T = h("form"), E = s(() => _.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !_.notTableForm), D = s(() => E.value ? !1 : _.showMessage), O = s(() => {
105
+ let e = {};
106
+ return _.disabledFields && _.disabledFields.forEach((t) => {
107
+ e[t] = !0;
108
+ }), e;
109
+ }), k = s(() => {
110
+ let e = {};
111
+ return _.enabledFields && _.enabledFields.length && _.enabledFields.forEach((t) => {
112
+ e[t] = !0;
113
+ }), e;
114
+ }), A = s(() => {
115
+ let e = {};
116
+ return _.requiredFields && _.requiredFields.length && _.requiredFields.forEach((t) => {
117
+ e[t] = !0;
118
+ }), e;
119
+ }), j = s(() => _.disabled === !0 ? !0 : _.disabled), M = m(() => _.enabledFields), N = m(() => _.requiredFields), P = m(() => _.disabledFields), F = async () => {
120
+ await d();
121
+ let e = T.value.$el.querySelector(".el-form-item.is-error");
122
+ e && e.scrollIntoView({
123
+ block: "center",
124
+ inline: "center",
125
+ behavior: "smooth"
126
+ });
127
+ }, I = p({
128
+ tableForm: E,
129
+ disabled: j,
130
+ enabledFields: M,
131
+ requiredFields: N,
132
+ enabledFieldsMap: k,
133
+ disabledFieldsMap: O,
134
+ requiredFieldsMap: A,
135
+ disabledFields: P,
136
+ scrollIntoRequiredField: F,
137
+ formRef: T,
138
+ validate: async () => {
139
+ try {
140
+ return await T.value.validate();
141
+ } catch {
142
+ throw await F(), T.value.$el.querySelectorAll(".el-form-item.is-error .el-form-item__content > :first-child").forEach((e) => {
143
+ g(e, "breathe-animation");
144
+ }), Error("表单验证不通过!");
145
+ }
146
+ },
147
+ validateField: (e) => T.value.validateField(e),
148
+ resetFields: (e) => T.value.resetFields(e),
149
+ scrollToField: (e) => T.value.scrollToField(e),
150
+ clearValidate: (e) => T.value.clearValidate(e),
151
+ getField: () => T.value.getField(),
152
+ setInitialValues: (e) => T.value.setInitialValues(e),
153
+ getFields: () => T.value.fields
154
+ });
155
+ return f(e, I), x(I), () => c(a, u({
156
+ ref: "form",
157
+ class: "form-holder",
158
+ "show-message": D.value
159
+ }, C.value), { default: () => {
160
+ if (E.value) {
161
+ var e, t, n;
162
+ return [
163
+ (e = v.top) == null ? void 0 : e.call(v),
164
+ c(i, {
165
+ class: { "hide-error-message": E.value },
166
+ columns: _.columns,
167
+ "col-count": _.colCount
168
+ }, { default: () => {
169
+ var e;
170
+ return [(e = v.default) == null ? void 0 : e.call(v), _.showAdvice ? c(r, {
171
+ "label-colspan": _.commentLabelColspan,
172
+ "value-colspan": _.commentValueColspan
173
+ }, null) : null];
174
+ } }),
175
+ (t = v.bottom) == null ? void 0 : t.call(v),
176
+ c("div", { class: "red-form-footer" }, [(n = v.footer) == null ? void 0 : n.call(v)])
177
+ ];
178
+ } else {
179
+ var a;
180
+ return _.wrapRow ? c(o, null, { default: () => {
181
+ var e;
182
+ return [(e = v.default) == null ? void 0 : e.call(v)];
183
+ } }) : (a = v.default) == null ? void 0 : a.call(v);
184
+ }
185
+ } });
186
+ }
187
+ };
188
+ //#endregion
189
+ export { x as t };
@@ -0,0 +1,53 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n, t as r } from "./DynLjTwi.mjs";
3
+ import { n as i, r as a } from "./B3DY36vM.mjs";
4
+ import { t as o } from "./wfL1FAwc.mjs";
5
+ import { ElInput as s, ElPopover as c } from "element-plus/es";
6
+ import { createVNode as l, mergeProps as u, ref as d } from "vue";
7
+ //#endregion
8
+ //#region src/components/form/FormInputCronExpression.vue
9
+ var f = {
10
+ name: "FormInputCronExpression",
11
+ props: {
12
+ ...n,
13
+ ...r,
14
+ modelValue: [String, Number]
15
+ },
16
+ emits: { ...t },
17
+ setup(t, { emit: n, slots: r, attrs: f }) {
18
+ let p = d(!1), { emitInput: m, render: h, placeholder: g, disabled: _, autoBind: v } = e(t, {
19
+ emit: n,
20
+ slots: r,
21
+ attrs: f,
22
+ events: i,
23
+ predicate: a
24
+ }), y = () => {
25
+ p.value = !0;
26
+ }, b = () => {
27
+ p.value = !1;
28
+ };
29
+ return () => h({ vNodes: l("div", { class: "cron" }, [l(c, {
30
+ placement: "bottom-start",
31
+ disabled: _.value,
32
+ modelValue: p.value,
33
+ "onUpdate:modelValue": (e) => p.value = e,
34
+ "popper-class": "cron-popover"
35
+ }, {
36
+ default: () => l(o, u(v.value, {
37
+ i18n: "cn",
38
+ expression: t.modelValue,
39
+ onChange: m,
40
+ onClose: b
41
+ }), null),
42
+ reference: () => l(s, {
43
+ modelValue: t.modelValue,
44
+ readonly: !0,
45
+ disabled: _.value,
46
+ placeholder: g.value,
47
+ onClick: y
48
+ }, null)
49
+ })]) });
50
+ }
51
+ };
52
+ //#endregion
53
+ export { f as t };
@@ -0,0 +1,76 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
+ import { ElCheckbox as r } from "element-plus/es";
4
+ import { createVNode as i, mergeProps as a, useModel as o } from "vue";
5
+ //#region src/components/form/props/checkbox.js
6
+ var s = {
7
+ ...n,
8
+ modelValue: [
9
+ String,
10
+ Number,
11
+ Boolean
12
+ ],
13
+ value: [
14
+ String,
15
+ Number,
16
+ Boolean,
17
+ Object
18
+ ],
19
+ label: [
20
+ String,
21
+ Number,
22
+ Boolean,
23
+ Object
24
+ ],
25
+ trueValue: [String, Number],
26
+ falseValue: [String, Number],
27
+ border: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ size: String,
32
+ name: String,
33
+ checked: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ indeterminate: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ validateEvent: {
42
+ type: Boolean,
43
+ default: !0
44
+ },
45
+ tabindex: [String, Number],
46
+ id: String,
47
+ ariaControls: String,
48
+ ariaLabel: String,
49
+ trueLabel: [String, Number],
50
+ falseLabel: [String, Number],
51
+ controls: String
52
+ }, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
53
+ name: "FormCheckbox",
54
+ inheritAttrs: !1,
55
+ props: { ...s },
56
+ emits: {
57
+ ...t,
58
+ change: null
59
+ },
60
+ setup(t, { emit: n, slots: s, attrs: c }) {
61
+ let d = o(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
62
+ emit: n,
63
+ slots: s,
64
+ attrs: c,
65
+ events: l,
66
+ predicate: u
67
+ });
68
+ return () => f({ vNodes: i(r, a(m.value, {
69
+ modelValue: d.value,
70
+ "onUpdate:modelValue": (e) => d.value = e,
71
+ disabled: p.value
72
+ }), { default: s.default }) });
73
+ }
74
+ };
75
+ //#endregion
76
+ export { d as t };