@web-utils/form-ui 1.0.0-beta16 → 1.0.0-beta18

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 (102) hide show
  1. package/base.css +1 -1
  2. package/chunks/53gSZ624.mjs +41 -0
  3. package/chunks/7Desvoh-.mjs +222 -0
  4. package/chunks/7vQ29mMd.mjs +53 -0
  5. package/chunks/8ORg8rrN.mjs +108 -0
  6. package/chunks/B4LDPAZu.mjs +98 -0
  7. package/chunks/B5B9au3z.mjs +180 -0
  8. package/chunks/BVzpe2oN.mjs +76 -0
  9. package/chunks/Bb5BT11-.mjs +26 -0
  10. package/chunks/Bh_CMUlo.mjs +12 -0
  11. package/chunks/Bj5l6sFx.mjs +73 -0
  12. package/chunks/BsbfEk0E.mjs +26 -0
  13. package/chunks/C1DlzLpD.mjs +222 -0
  14. package/chunks/CFwUzdTu.mjs +95 -0
  15. package/chunks/CKw_uzPc.mjs +108 -0
  16. package/chunks/D2WviyxF.mjs +166 -0
  17. package/chunks/D9GcEl6r.mjs +8 -0
  18. package/chunks/DCKxvrCR.mjs +189 -0
  19. package/chunks/DH1_fmkX.mjs +26 -0
  20. package/chunks/DUDm42gn.mjs +100 -0
  21. package/chunks/DgbDpRQg.mjs +51 -0
  22. package/chunks/DkqF25wT.mjs +106 -0
  23. package/chunks/DynLjTwi.mjs +17 -0
  24. package/chunks/Q9EsFJ4H.mjs +88 -0
  25. package/chunks/wfL1FAwc.mjs +1360 -0
  26. package/constants.d.ts +26 -1
  27. package/constants.mjs +2 -2
  28. package/element-dialog/index.d.ts +58 -15
  29. package/element-dialog/index.mjs +2 -94
  30. package/form-cascader/index.d.ts +2 -0
  31. package/form-cascader/index.mjs +10 -0
  32. package/form-check-box-group/index.d.ts +196 -22
  33. package/form-check-box-group/index.mjs +1 -1
  34. package/form-checkbox/index.d.ts +188 -24
  35. package/form-checkbox/index.mjs +1 -1
  36. package/form-date-picker/index.d.ts +307 -20
  37. package/form-date-picker/index.mjs +1 -1
  38. package/form-holder/index.d.ts +92 -21
  39. package/form-holder/index.mjs +1 -1
  40. package/form-holder/style.css +1 -1
  41. package/form-image/index.d.ts +138 -20
  42. package/form-image/index.mjs +1 -1
  43. package/form-input/index.d.ts +281 -40
  44. package/form-input/index.mjs +1 -1
  45. package/form-input-cron-expression/index.d.ts +215 -0
  46. package/form-input-cron-expression/index.mjs +2 -0
  47. package/form-input-cron-expression/style.css +1 -0
  48. package/form-input-email/index.d.ts +279 -21
  49. package/form-input-email/index.mjs +1 -1
  50. package/form-input-id-card/index.d.ts +279 -21
  51. package/form-input-id-card/index.mjs +1 -1
  52. package/form-input-number/index.d.ts +228 -24
  53. package/form-input-number/index.mjs +1 -1
  54. package/form-input-phone-number/index.d.ts +279 -21
  55. package/form-input-phone-number/index.mjs +1 -1
  56. package/form-item-config-provider/index.d.ts +3 -1
  57. package/form-item-config-provider/index.mjs +1 -1
  58. package/form-item-group/index.mjs +46 -30
  59. package/form-item-x/index.d.ts +124 -15
  60. package/form-item-x/index.mjs +1 -1
  61. package/form-radio-group/index.d.ts +196 -22
  62. package/form-radio-group/index.mjs +1 -1
  63. package/form-rate/index.d.ts +232 -18
  64. package/form-rate/index.mjs +1 -1
  65. package/form-row/index.mjs +1 -1
  66. package/form-select/index.d.ts +455 -22
  67. package/form-select/index.mjs +1 -1
  68. package/form-slider/index.d.ts +261 -18
  69. package/form-slider/index.mjs +1 -1
  70. package/form-switch/index.d.ts +238 -20
  71. package/form-switch/index.mjs +1 -1
  72. package/form-text/index.d.ts +144 -20
  73. package/form-text/index.mjs +1 -1
  74. package/index.d.ts +4 -1
  75. package/index.mjs +37 -60
  76. package/month-calendar/index.mjs +312 -2
  77. package/month-calendar/style.css +1 -1
  78. package/package.json +3 -1
  79. package/vue-cron/index.d.ts +191 -0
  80. package/vue-cron/index.mjs +2 -0
  81. package/vue-cron/style.css +1 -0
  82. package/web-types.json +1 -1
  83. package/year-calendar/index.mjs +2 -1
  84. package/chunks/B5BIQCcK.mjs +0 -149
  85. package/chunks/BDhGvPmU.mjs +0 -32
  86. package/chunks/BXOvvlL2.mjs +0 -35
  87. package/chunks/C6tYoDfK.mjs +0 -43
  88. package/chunks/CAYDWMXC.mjs +0 -47
  89. package/chunks/CXHvVx2H.mjs +0 -54
  90. package/chunks/CykRgGj0.mjs +0 -90
  91. package/chunks/D4SiGR5u.mjs +0 -28
  92. package/chunks/DAEpRn3D.mjs +0 -28
  93. package/chunks/DK2YoEOD.mjs +0 -167
  94. package/chunks/DL4ovOwO.mjs +0 -36
  95. package/chunks/DXrQ5tWJ.mjs +0 -35
  96. package/chunks/Xww4oyW1.mjs +0 -47
  97. package/chunks/ciEWoJ1U.mjs +0 -23
  98. package/chunks/dwnrVqcq.mjs +0 -315
  99. package/chunks/jpMiw_3M.mjs +0 -74
  100. package/chunks/vlkluoXb.mjs +0 -32
  101. package/chunks/wo0ekOcp.mjs +0 -28
  102. /package/chunks/{CI_28Uw4.mjs → 98bTmBOR.mjs} +0 -0
@@ -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 };
@@ -0,0 +1,26 @@
1
+ import { n as e } from "./C1DlzLpD.mjs";
2
+ import { t } from "./Bj5l6sFx.mjs";
3
+ import { t as n } from "./DkqF25wT.mjs";
4
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
+ //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
6
+ function s(e) {
7
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
8
+ }
9
+ //#endregion
10
+ //#region src/components/form/FormInputEmail.vue
11
+ var c = {
12
+ name: "FormInputEmail",
13
+ inheritAttrs: !1,
14
+ props: { ...n },
15
+ emits: { ...e },
16
+ setup(e, { slots: n, attrs: i }) {
17
+ let c = o(e, "modelValue");
18
+ return () => r(t, a(e, i, {
19
+ modelValue: c.value,
20
+ "onUpdate:modelValue": (e) => c.value = e,
21
+ type: "email"
22
+ }), s(n) ? n : { default: () => [n] });
23
+ }
24
+ };
25
+ //#endregion
26
+ export { c as t };
@@ -0,0 +1,12 @@
1
+ import { computed as e } from "vue";
2
+ import { capitalize as t } from "@web-utils/core";
3
+ //#region src/util/index.js
4
+ var n = (e, n, r, i) => {
5
+ let a = {};
6
+ if (n) for (let t in e) n(t) && (a[t] = e[t]);
7
+ return r && r.forEach((e) => {
8
+ a[`on${t(e)}`] = (...t) => i(e, ...t);
9
+ }), a;
10
+ }, r = (t, { emit: r, events: i, predicate: a }) => e(() => n(t, a, i, r));
11
+ //#endregion
12
+ export { r as n, n as t };
@@ -0,0 +1,73 @@
1
+ import { i as e, n as t, t as n } from "./C1DlzLpD.mjs";
2
+ import { n as r, r as i, t as a } from "./DkqF25wT.mjs";
3
+ import { ElInput as o } from "element-plus/es";
4
+ import { computed as s, createVNode as c, mergeProps as l, useModel as u } from "vue";
5
+ import { validatePhoneNum as d } from "@web-utils/core";
6
+ //#region src/util/form-validate.js
7
+ var f = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
8
+ function p(e, t, n) {
9
+ t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
10
+ }
11
+ //#endregion
12
+ //#region src/components/form/FormInput.vue
13
+ var m = {
14
+ name: "FormInput",
15
+ inheritAttrs: !1,
16
+ props: { ...a },
17
+ emits: {
18
+ ...t,
19
+ click: null,
20
+ blur: null,
21
+ focus: null,
22
+ change: null,
23
+ input: null,
24
+ clear: null,
25
+ keydown: null,
26
+ mouseleave: null,
27
+ mouseenter: null,
28
+ compositionstart: null,
29
+ compositionupdate: null,
30
+ compositionend: null
31
+ },
32
+ setup(t, { emit: a, slots: m, attrs: h }) {
33
+ let g = u(t, "modelValue"), _ = `请输入正确的${t.label}!`, { render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
34
+ emit: a,
35
+ slots: m,
36
+ attrs: h,
37
+ rules: s(() => {
38
+ if (!t.type || t.type === "textarea") return null;
39
+ let e = {
40
+ message: _,
41
+ trigger: "blur"
42
+ };
43
+ if (t.type === "email") e.validator = f;
44
+ else if (t.type === "idcard") e.validator = p;
45
+ else if (t.type === "phone") e.validator = d;
46
+ else return null;
47
+ return [e];
48
+ }),
49
+ events: r,
50
+ predicate: i
51
+ });
52
+ return () => v({ vNodes: c(o, l({ class: ["form-input", {
53
+ "is-readonly": t.readonlyGrey && t.readonly && !t.picker,
54
+ "el-input-cursor-pointer": t.picker && !b.value
55
+ }] }, x.value, {
56
+ modelValue: g.value,
57
+ "onUpdate:modelValue": (e) => g.value = e,
58
+ disabled: b.value,
59
+ placeholder: y.value,
60
+ readonly: t.readonly || t.picker,
61
+ "prefix-icon": n({ icon: t.picker ? "el-icon-search" : t.prefixIcon }),
62
+ "suffix-icon": n({ icon: t.suffixIcon })
63
+ }), {
64
+ prefix: m.prefix || t.prefix ? () => t.prefix : null,
65
+ suffix: m.suffix || t.suffix ? () => t.suffix : null,
66
+ "password-icon": m["password-icon"],
67
+ prepend: m.prepend || t.prepend ? () => t.prepend : null,
68
+ append: m.append || t.append ? () => t.append : null
69
+ }) });
70
+ }
71
+ };
72
+ //#endregion
73
+ export { m as t };
@@ -0,0 +1,26 @@
1
+ import { n as e } from "./C1DlzLpD.mjs";
2
+ import { t } from "./Bj5l6sFx.mjs";
3
+ import { t as n } from "./DkqF25wT.mjs";
4
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
+ //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
6
+ function s(e) {
7
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
8
+ }
9
+ //#endregion
10
+ //#region src/components/form/FormInputPhoneNumber.vue
11
+ var c = {
12
+ name: "FormInputPhoneNumber",
13
+ inheritAttrs: !1,
14
+ props: { ...n },
15
+ emits: { ...e },
16
+ setup(e, { slots: n, attrs: i }) {
17
+ let c = o(e, "modelValue");
18
+ return () => r(t, a(e, i, {
19
+ modelValue: c.value,
20
+ "onUpdate:modelValue": (e) => c.value = e,
21
+ type: "phone"
22
+ }), s(n) ? n : { default: () => [n] });
23
+ }
24
+ };
25
+ //#endregion
26
+ export { c as t };
@@ -0,0 +1,222 @@
1
+ import { formHolderContextKey as e, formItemConfigProviderContextKey as t, formItemGroupContextKey as n } from "../constants.mjs";
2
+ import { t as r } from "./Bh_CMUlo.mjs";
3
+ import { ElCol as i, ElFormItem as a, ElTooltip as o } from "element-plus/es";
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
+ //#region src/components/form/props/form-item.js
7
+ var _ = {
8
+ prop: [String, Array],
9
+ label: String,
10
+ labelPosition: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ labelWidth: [String, Number],
15
+ required: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ rules: Object,
20
+ error: String,
21
+ showMessage: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ inlineMessage: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ size: String,
30
+ for: String,
31
+ validateStatus: String,
32
+ messagePrefix: String,
33
+ message: String,
34
+ wrapCol: {
35
+ type: Boolean,
36
+ default: !0
37
+ },
38
+ fixedSpan: Number,
39
+ block: Boolean,
40
+ unwrap: Boolean,
41
+ half: Boolean,
42
+ formItemClass: String,
43
+ hideLabel: Boolean,
44
+ tips: { type: String },
45
+ tipsAfterLabel: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ labelColspan: [Number, String],
50
+ inputColspan: [Number, String],
51
+ labelRowspan: [Number, String],
52
+ inputRowspan: [Number, String]
53
+ }, v = {
54
+ required: !0,
55
+ rules: !0,
56
+ messagePrefix: !0,
57
+ message: !0,
58
+ wrapCol: !0,
59
+ fixedSpan: !0,
60
+ block: !0,
61
+ unwrap: !0,
62
+ half: !0,
63
+ formItemClass: !0,
64
+ hideLabel: !0,
65
+ tips: !0,
66
+ tipsAfterLabel: !0,
67
+ labelColspan: !0,
68
+ inputColspan: !0,
69
+ labelRowspan: !0,
70
+ inputRowspan: !0
71
+ }, y = (e) => _[e] !== void 0 && v[e] !== !0, b = (e, { emit: t, events: n, predicate: i }) => s(() => r(e, i, n, t)), x = {
72
+ span: {
73
+ type: Number,
74
+ default: 12
75
+ },
76
+ offset: {
77
+ type: Number,
78
+ default: 0
79
+ },
80
+ push: {
81
+ type: Number,
82
+ default: 0
83
+ },
84
+ pull: {
85
+ type: Number,
86
+ default: 0
87
+ },
88
+ xs: { type: [Number, Object] },
89
+ sm: { type: [Number, Object] },
90
+ md: { type: [Number, Object] },
91
+ lg: { type: [Number, Object] },
92
+ xl: { type: [Number, Object] },
93
+ tag: {
94
+ type: String,
95
+ default: "div"
96
+ }
97
+ }, S = { span: !0 }, C = (e) => x[e] !== void 0 && S[e] !== !0, w = (e, { emit: t, events: n, predicate: i }) => s(() => r(e, i, n, t)), T = (t) => {
98
+ let n = u(e, null);
99
+ return s(() => t.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[t.prop]) === !0);
100
+ }, E = (e, { rules: t, attrs: n, messagePrefix: r, message: i } = {}) => {
101
+ let a = T(e);
102
+ return s(() => {
103
+ let o = { message: i }, s = p(t);
104
+ return Object.keys({
105
+ ..._,
106
+ ...x
107
+ }).forEach((t) => {
108
+ t === "rules" ? e[t] && s ? o[t] = [...e[t], ...s] : e[t] ? o[t] = e[t] : s && (o[t] = s) : t === "messagePrefix" ? o[t] = e.messagePrefix || r : o[t] = e[t];
109
+ }), o.required = a.value, o.class = n == null ? void 0 : n.class, o.style = n == null ? void 0 : n.style, o;
110
+ });
111
+ }, D = {
112
+ name: "FormItemX",
113
+ inheritAttrs: !1,
114
+ props: {
115
+ ..._,
116
+ ...x
117
+ },
118
+ setup(n, { attrs: r, slots: l, expose: p }) {
119
+ let h = u(g, null), _ = u(t, null), v = u(e, null), x = r.embed ? s(() => r.disabled) : k(n), S = b(n, { predicate: y }), E = w(n, { predicate: C }), D = s(() => (_ == null ? void 0 : _.reactive) === !0 && _.block === !1 && n.fixedSpan === void 0 && !n.half), O = T(n), A = m("formItem"), j = s(() => (_ == null ? void 0 : _.wrapCol) === !1 ? !1 : !!h && n.wrapCol), M = s(() => v != null && v.tableForm ? "" : _ != null && _.block ? "100%" : n.half && j.value ? `calc(50% - ${h.gutter.value / 2}px)` : ""), N = s(() => (_ == null ? void 0 : _.block) === !0 || n.block || n.half ? 24 : n.span), P = s(() => {
120
+ if (x.value) return [];
121
+ if (O.value) {
122
+ let e = {
123
+ required: !0,
124
+ message: n.message || `${n.messagePrefix || "请输入"}${n.label}`
125
+ };
126
+ return n.rules ? [...n.rules, e] : [e];
127
+ }
128
+ return n.rules;
129
+ });
130
+ return p({
131
+ clearValidate: async () => {
132
+ var e;
133
+ await f(), (e = A.value) == null || e.clearValidate();
134
+ },
135
+ validate: async () => {
136
+ var e;
137
+ await f(), (e = A.value) == null || e.validate();
138
+ }
139
+ }), () => {
140
+ var e;
141
+ let t = l.tips || n.tips, r = t ? c(o, {
142
+ effect: "light",
143
+ content: n.tips,
144
+ offset: 4
145
+ }, {
146
+ default: () => c("i", { class: "el-icon-info form-item-input-info" }, null),
147
+ content: l.tips ? l.tips : null
148
+ }) : null, s = c(a, d(S.value, {
149
+ ref: "formItem",
150
+ style: { width: M.value },
151
+ class: [
152
+ "form-item",
153
+ n.formItemClass,
154
+ {
155
+ "form-item-hide-label": n.hideLabel,
156
+ "with-tips": !n.tipsAfterLabel && t,
157
+ required: x.value === !1 && O.value
158
+ }
159
+ ],
160
+ rules: P.value
161
+ }), {
162
+ ...l,
163
+ default: () => {
164
+ var e;
165
+ return [(e = l.default) == null ? void 0 : e.call(l, {
166
+ disabled: x.value,
167
+ required: O.value
168
+ }), t && !n.tipsAfterLabel ? r : null];
169
+ },
170
+ label: () => [l.label ? l.label() : n.label, n.tipsAfterLabel ? r : null]
171
+ }), u = [s, (e = l.below) == null ? void 0 : e.call(l)];
172
+ return n.unwrap ? u : j.value ? c(i, d(E.value, D.value ? {
173
+ xs: 24,
174
+ sm: 12,
175
+ md: 12,
176
+ lg: 8,
177
+ xl: 6
178
+ } : {}, { span: N.value }), { default: () => u }) : s;
179
+ };
180
+ }
181
+ }, O = "update:modelValue", k = (t) => {
182
+ let r = u(e, null), i = u(n, null);
183
+ return s(() => {
184
+ if (t.disabled !== void 0) return t.disabled;
185
+ if (r) {
186
+ if (r.requiredFieldsMap[t.prop] === !0 || r.enabledFieldsMap[t.prop] === !0) return !1;
187
+ if (r.disabledFieldsMap[t.prop] === !0) return !0;
188
+ }
189
+ return (i == null ? void 0 : i.enabled) === !0 ? !1 : (i == null ? void 0 : i.disabled) === !0 ? !0 : (r == null ? void 0 : r.disabled) === !0;
190
+ });
191
+ }, A = { [O]: null }, j = (e, t) => e(O, t), M = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? l(D, {
192
+ ...n.value,
193
+ embed: !0,
194
+ disabled: i == null ? void 0 : i.value
195
+ }, {
196
+ default: () => t,
197
+ label: r.label,
198
+ error: r.error,
199
+ tips: r.tips,
200
+ below: r.below
201
+ }) : t, N = (e, { emit: t, slots: n, attrs: i, rules: a, events: o, predicate: c, messagePrefix: u = "请输入" }) => {
202
+ let d = k(e), f = s(() => d.value ? "" : `${u}${e.label}`), p = E(e, {
203
+ rules: a,
204
+ attrs: i,
205
+ message: f.value
206
+ }), m = (e) => j(t, e), g = (t) => e.col ? l(h, { span: e.block ? 24 : e.span }, { default: () => t }) : t;
207
+ return {
208
+ emitInput: m,
209
+ render: ({ vNodes: t }) => M(e, {
210
+ vNodes: g(t),
211
+ formItemProps: p,
212
+ slots: n,
213
+ disabled: d
214
+ }),
215
+ placeholder: f,
216
+ disabled: d,
217
+ formItemProps: p,
218
+ autoBind: s(() => r(e, c, o, t))
219
+ };
220
+ }, P = (e) => e.icon ? l("i", { class: e.icon }) : null;
221
+ //#endregion
222
+ export { D as a, _ as c, N as i, A as n, E as o, M as r, x as s, P 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,108 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n, t as r } from "./DynLjTwi.mjs";
3
+ import { ElInputNumber as i } from "element-plus/es";
4
+ import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
+ import { isString as c } from "@web-utils/core";
6
+ //#region src/components/form/props/input-number.js
7
+ var l = {
8
+ ...n,
9
+ ...r,
10
+ modelValue: [Number, null],
11
+ min: {
12
+ type: Number,
13
+ default: -(2 ** 53 - 1)
14
+ },
15
+ max: {
16
+ type: Number,
17
+ default: 2 ** 53 - 1
18
+ },
19
+ step: {
20
+ type: Number,
21
+ default: 1
22
+ },
23
+ stepStrictly: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ precision: Number,
28
+ size: {
29
+ type: String,
30
+ default: "default"
31
+ },
32
+ readonly: {
33
+ type: Boolean,
34
+ default: !1
35
+ },
36
+ controls: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ controlsPosition: String,
41
+ name: String,
42
+ ariaLabel: String,
43
+ placeholder: String,
44
+ id: String,
45
+ valueOnClear: [
46
+ Number,
47
+ null,
48
+ String
49
+ ],
50
+ validateEvent: {
51
+ type: Boolean,
52
+ default: !0
53
+ },
54
+ label: String,
55
+ inputmode: String,
56
+ align: {
57
+ type: String,
58
+ default: "left"
59
+ },
60
+ disabledScientific: {
61
+ type: Boolean,
62
+ default: !1
63
+ },
64
+ prefix: String,
65
+ suffix: String
66
+ }, u = {
67
+ readonly: !0,
68
+ placeholder: !0,
69
+ modelValue: !0,
70
+ prefix: !0,
71
+ suffix: !0
72
+ }, d = [
73
+ "change",
74
+ "blur",
75
+ "focus"
76
+ ], f = (e) => n[e] === void 0 && u[e] !== !0, p = {
77
+ name: "FormInputNumber",
78
+ inheritAttrs: !1,
79
+ props: { ...l },
80
+ emits: {
81
+ ...t,
82
+ change: null,
83
+ blur: null,
84
+ focus: null
85
+ },
86
+ setup(t, { emit: n, slots: r, attrs: l }) {
87
+ let { emitInput: u, render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
88
+ emit: n,
89
+ slots: r,
90
+ attrs: l,
91
+ events: d,
92
+ predicate: f
93
+ }), _ = a(() => c(t.modelValue) ? Number(t.modelValue) : t.modelValue);
94
+ return () => p({ vNodes: o(i, s({ style: "width: 100%" }, g.value, {
95
+ modelValue: _.value,
96
+ disabled: h.value,
97
+ "onUpdate:modelValue": u,
98
+ placeholder: m.value
99
+ }), {
100
+ prefix: r.prefix || t.prefix ? () => t.prefix : null,
101
+ suffix: r.suffix || t.suffix ? () => t.suffix : null,
102
+ "decrease-icon": r["decrease-icon"],
103
+ "increase-icon": r["increase-icon"]
104
+ }) });
105
+ }
106
+ };
107
+ //#endregion
108
+ export { p as t };