@web-utils/form-ui 1.0.0-beta3 → 1.0.0-beta30

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 (176) hide show
  1. package/api/index.d.ts +60 -0
  2. package/api/index.mjs +42 -0
  3. package/awesome-button/index.d.ts +60 -0
  4. package/awesome-button/index.mjs +49 -0
  5. package/base.css +1 -1
  6. package/chunks/4ZuVpQf6.mjs +478 -0
  7. package/chunks/B99alfW4.mjs +207 -0
  8. package/chunks/BQ77eAb3.mjs +71 -0
  9. package/chunks/BV_N8p9t.mjs +83 -0
  10. package/chunks/BV_P9a8o.mjs +100 -0
  11. package/chunks/BgDYHgyH.mjs +189 -0
  12. package/chunks/Bm5eiSmT.mjs +79 -0
  13. package/chunks/BmZieBZW.mjs +88 -0
  14. package/chunks/Br4i8stg.mjs +222 -0
  15. package/chunks/C3a15Ful.mjs +95 -0
  16. package/chunks/C4bM8miy.mjs +174 -0
  17. package/chunks/C9J3j0PX.mjs +93 -0
  18. package/chunks/CKErj8Ax.mjs +637 -0
  19. package/chunks/Cby3mvvZ.mjs +216 -0
  20. package/chunks/Cc3EJjbV.mjs +25 -0
  21. package/chunks/Cgl-hCE5.mjs +25 -0
  22. package/chunks/Ci1XxmdE.mjs +51 -0
  23. package/chunks/CkFapoKt.mjs +8 -0
  24. package/chunks/CsfgUCe9.mjs +17 -0
  25. package/chunks/CugRu2Ka.mjs +42 -0
  26. package/chunks/Cy-4nmyC.mjs +106 -0
  27. package/chunks/D1EOkWJ7.mjs +25 -0
  28. package/chunks/D1G2MMMx.mjs +1360 -0
  29. package/chunks/DO8dVGef.mjs +98 -0
  30. package/chunks/DazglPJZ.mjs +180 -0
  31. package/chunks/Dt6gY213.mjs +62 -0
  32. package/chunks/DtAYXPvz.mjs +108 -0
  33. package/chunks/JhyiXnbd.mjs +76 -0
  34. package/chunks/S64sNmuR.mjs +226 -0
  35. package/chunks/bnRb5PUB.mjs +108 -0
  36. package/chunks/dM-icPM8.mjs +107 -0
  37. package/chunks/pxFLMMUm.mjs +110 -0
  38. package/chunks/q1SlJP1y.mjs +171 -0
  39. package/confirm-button/index.d.ts +113 -0
  40. package/confirm-button/index.mjs +35 -0
  41. package/confirmable/index.d.ts +84 -0
  42. package/confirmable/index.mjs +8 -0
  43. package/constants/index.d.ts +42 -0
  44. package/constants/index.mjs +4 -0
  45. package/dict-render/index.d.ts +28 -0
  46. package/element-dialog/index.d.ts +374 -0
  47. package/element-dialog/index.mjs +2 -91
  48. package/empty-view/index.d.ts +29 -0
  49. package/empty-view/index.mjs +1 -1
  50. package/flex-scroll-area/index.d.ts +22 -0
  51. package/flex-scroll-area/index.mjs +1 -1
  52. package/form-advice/index.d.ts +9 -0
  53. package/form-advice/index.mjs +13 -12
  54. package/form-button/index.d.ts +114 -0
  55. package/form-button/index.mjs +36 -0
  56. package/form-cascader/index.d.ts +486 -0
  57. package/form-cascader/index.mjs +2 -0
  58. package/form-cell/index.d.ts +25 -0
  59. package/form-check-box-group/index.d.ts +295 -0
  60. package/form-check-box-group/index.mjs +1 -1
  61. package/form-checkbox/index.d.ts +273 -0
  62. package/form-checkbox/index.mjs +1 -1
  63. package/form-date-picker/index.d.ts +423 -0
  64. package/form-date-picker/index.mjs +1 -1
  65. package/form-holder/index.d.ts +166 -0
  66. package/form-holder/index.mjs +1 -1
  67. package/form-holder/style.css +1 -1
  68. package/form-image/index.d.ts +226 -0
  69. package/form-image/index.mjs +1 -1
  70. package/form-input/index.d.ts +389 -0
  71. package/form-input/index.mjs +1 -1
  72. package/form-input/style.css +1 -0
  73. package/form-input-cron-expression/index.d.ts +217 -0
  74. package/form-input-cron-expression/index.mjs +2 -0
  75. package/form-input-cron-expression/style.css +1 -0
  76. package/form-input-email/index.d.ts +363 -0
  77. package/form-input-email/index.mjs +1 -1
  78. package/form-input-id-card/index.d.ts +363 -0
  79. package/form-input-id-card/index.mjs +1 -1
  80. package/form-input-number/index.d.ts +327 -0
  81. package/form-input-number/index.mjs +1 -1
  82. package/form-input-phone-number/index.d.ts +363 -0
  83. package/form-input-phone-number/index.mjs +1 -1
  84. package/form-input-tag/index.d.ts +2 -0
  85. package/form-input-time/index.d.ts +2 -0
  86. package/form-item-config-provider/index.d.ts +22 -0
  87. package/form-item-config-provider/index.mjs +24 -0
  88. package/form-item-group/index.d.ts +94 -0
  89. package/form-item-group/index.mjs +2 -78
  90. package/form-item-group/style.css +1 -1
  91. package/form-item-x/index.d.ts +184 -0
  92. package/form-item-x/index.mjs +1 -1
  93. package/form-item-x/style.css +1 -0
  94. package/form-radio-group/index.d.ts +283 -0
  95. package/form-radio-group/index.mjs +1 -1
  96. package/form-rate/index.d.ts +321 -0
  97. package/form-rate/index.mjs +1 -1
  98. package/form-red-table/index.d.ts +21 -0
  99. package/form-red-table/index.mjs +27 -26
  100. package/form-row/index.d.ts +11 -0
  101. package/form-row/index.mjs +1 -1
  102. package/form-select/index.d.ts +542 -0
  103. package/form-select/index.mjs +1 -1
  104. package/form-slider/index.d.ts +350 -0
  105. package/form-slider/index.mjs +1 -1
  106. package/form-switch/index.d.ts +339 -0
  107. package/form-switch/index.mjs +1 -1
  108. package/form-text/index.d.ts +229 -0
  109. package/form-text/index.mjs +1 -1
  110. package/form-view/index.d.ts +2 -0
  111. package/form-view/index.mjs +1 -1
  112. package/helper/dictionary.d.ts +15 -0
  113. package/helper/dictionary.mjs +97 -0
  114. package/hook/useDictionary.d.ts +60 -0
  115. package/hook/useDictionary.mjs +15 -0
  116. package/hook/useVisibilityChange.d.ts +4 -0
  117. package/hook/useVisibilityChange.mjs +14 -0
  118. package/iframe-window/index.d.ts +9 -0
  119. package/iframe-window/index.mjs +37 -0
  120. package/iframe-window/style.css +1 -0
  121. package/index.d.ts +51 -0
  122. package/index.mjs +51 -37
  123. package/month-calendar/index.d.ts +80 -0
  124. package/package.json +12 -7
  125. package/pageable-table/index.d.ts +436 -0
  126. package/pageable-table/index.mjs +2 -0
  127. package/pageable-table/style.css +1 -0
  128. package/resize-observer/index.d.ts +8 -0
  129. package/resize-observer/index.mjs +40 -0
  130. package/resize-observer/style.css +1 -0
  131. package/resolver/index.d.ts +9 -0
  132. package/resolver/index.mjs +29 -0
  133. package/table-column/index.d.ts +160 -0
  134. package/table-column/index.mjs +2 -0
  135. package/table-column/style.css +1 -0
  136. package/table-column-def/index.d.ts +85 -0
  137. package/table-column-def/index.mjs +11 -0
  138. package/table-column-filter/index.d.ts +11 -0
  139. package/table-column-filterable/index.d.ts +10 -0
  140. package/table-view/index.d.ts +2 -0
  141. package/table-view/index.mjs +1 -1
  142. package/toolbar/index.d.ts +129 -0
  143. package/toolbar/index.mjs +1 -8
  144. package/toolbar/style.css +1 -0
  145. package/toolbar-button/index.d.ts +77 -0
  146. package/toolbar-button/index.mjs +1 -8
  147. package/vue-cron/index.d.ts +191 -0
  148. package/vue-cron/index.mjs +2 -0
  149. package/vue-cron/style.css +1 -0
  150. package/web-types.json +1 -1
  151. package/x-input-tag/index.d.ts +2 -0
  152. package/x-input-tag/index.mjs +226 -0
  153. package/x-input-tag/style.css +1 -0
  154. package/year-calendar/index.d.ts +99 -0
  155. package/year-calendar/index.mjs +2 -0
  156. package/year-calendar/style.css +1 -0
  157. package/chunks/B4M_TFeR.mjs +0 -152
  158. package/chunks/B5BIQCcK.mjs +0 -149
  159. package/chunks/BHNKrW1j.mjs +0 -61
  160. package/chunks/BO9jWhBl.mjs +0 -46
  161. package/chunks/BZ8aOa78.mjs +0 -35
  162. package/chunks/Bsz7y4Xp.mjs +0 -73
  163. package/chunks/Bxj372sF.mjs +0 -53
  164. package/chunks/C33EmJN8.mjs +0 -32
  165. package/chunks/C6Li3-l7.mjs +0 -28
  166. package/chunks/CBcdalMX.mjs +0 -35
  167. package/chunks/CdRsyF0n.mjs +0 -43
  168. package/chunks/ClNahmiU.mjs +0 -23
  169. package/chunks/CstztYMu.mjs +0 -28
  170. package/chunks/DC9b53M6.mjs +0 -32
  171. package/chunks/DDVAgRED.mjs +0 -36
  172. package/chunks/DpJQABVD.mjs +0 -91
  173. package/chunks/ZsLNWI9x.mjs +0 -46
  174. package/chunks/jn_iQrVZ.mjs +0 -28
  175. package/constants.mjs +0 -4
  176. package/input/style.css +0 -1
@@ -0,0 +1,216 @@
1
+ import { i as e, n as t } from "./Br4i8stg.mjs";
2
+ import { n, t as r } from "./CsfgUCe9.mjs";
3
+ import { useDictionary as i } from "../hook/useDictionary.mjs";
4
+ import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
5
+ import { computed as l, createVNode as u, mergeProps as d } from "vue";
6
+ import { cloneDeep as f } from "@web-utils/integrations/lodash";
7
+ import { ElCascader as p } from "element-plus/es";
8
+ //#region src/components/form/props/cascader.ts
9
+ var m = {
10
+ ...n,
11
+ ...r,
12
+ modelValue: [
13
+ String,
14
+ Number,
15
+ Array
16
+ ],
17
+ options: Array,
18
+ props: Object,
19
+ size: String,
20
+ placeholder: String,
21
+ disabled: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ clearable: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ clearIcon: [String, Object],
30
+ showAllLevels: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ collapseTags: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ collapseTagsTooltip: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ maxCollapseTagsTooltipHeight: [String, Number],
43
+ separator: {
44
+ type: String,
45
+ default: "/"
46
+ },
47
+ filterable: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ filterMethod: Function,
52
+ debounce: {
53
+ type: Number,
54
+ default: 300
55
+ },
56
+ beforeFilter: Function,
57
+ popperClass: {
58
+ type: String,
59
+ default: ""
60
+ },
61
+ popperStyle: [String, Object],
62
+ teleported: {
63
+ type: Boolean,
64
+ default: !0
65
+ },
66
+ effect: {
67
+ type: String,
68
+ default: "light"
69
+ },
70
+ tagType: {
71
+ type: String,
72
+ default: "info"
73
+ },
74
+ tagEffect: {
75
+ type: String,
76
+ default: "light"
77
+ },
78
+ validateEvent: {
79
+ type: Boolean,
80
+ default: !0
81
+ },
82
+ maxCollapseTags: {
83
+ type: Number,
84
+ default: 1
85
+ },
86
+ emptyValues: Array,
87
+ valueOnClear: [
88
+ String,
89
+ Number,
90
+ Boolean,
91
+ Function
92
+ ],
93
+ persistent: {
94
+ type: Boolean,
95
+ default: !0
96
+ },
97
+ fallbackPlacements: {
98
+ type: Array,
99
+ default: () => [
100
+ "bottom-start",
101
+ "top-start",
102
+ "right",
103
+ "left"
104
+ ]
105
+ },
106
+ placement: {
107
+ type: String,
108
+ default: "bottom-start"
109
+ },
110
+ popperAppendToBody: {
111
+ type: Boolean,
112
+ default: !0
113
+ },
114
+ showCheckedStrategy: {
115
+ type: String,
116
+ default: "child"
117
+ },
118
+ readonly: Boolean,
119
+ last: Boolean,
120
+ checkStrictly: Boolean,
121
+ labelKey: {
122
+ type: String,
123
+ default: "label"
124
+ },
125
+ valueKey: {
126
+ type: String,
127
+ default: "value"
128
+ },
129
+ emitPath: {
130
+ type: Boolean,
131
+ default: !0
132
+ },
133
+ join: {
134
+ type: Boolean,
135
+ default: !0
136
+ },
137
+ idAsValue: {
138
+ type: Boolean,
139
+ default: !0
140
+ },
141
+ labelAsValue: Boolean,
142
+ treeDict: {
143
+ type: Boolean,
144
+ default: !0
145
+ },
146
+ dictType: String
147
+ }, h = {
148
+ modelValue: !0,
149
+ readonly: !0,
150
+ props: !0
151
+ }, g = [
152
+ "change",
153
+ "expand-change",
154
+ "blur",
155
+ "focus",
156
+ "clear",
157
+ "visible-change",
158
+ "remove-tag"
159
+ ], _ = (e) => n[e] === void 0 && h[e] !== !0, v = {
160
+ name: "FormCascader",
161
+ props: { ...m },
162
+ emits: {
163
+ ...t,
164
+ change: null,
165
+ "expand-change": null,
166
+ blur: null,
167
+ focus: null,
168
+ clear: null,
169
+ "visible-change": null,
170
+ "remove-tag": null
171
+ },
172
+ setup(t, { slots: n, emit: r, attrs: m }) {
173
+ let { emitInput: h, render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
174
+ emit: r,
175
+ slots: n,
176
+ attrs: m,
177
+ events: g,
178
+ predicate: _
179
+ }), { dictItems: S } = i(t), C = l(() => {
180
+ if (t.dictType) return S.value;
181
+ if (t.options) {
182
+ let e = f(t.options);
183
+ return t.last && c(e), e;
184
+ } else return [];
185
+ }), w = l(() => {
186
+ if (t.join) return o(t.modelValue) ? t.modelValue : s(t.modelValue) ? t.modelValue.split(t.separator) : [];
187
+ if (t.last) {
188
+ let [e] = a(C.value, (e) => e[t.valueKey] === t.modelValue), n = [];
189
+ for (; e;) n.push(e[t.valueKey]), e = e.parent;
190
+ return n.reverse();
191
+ }
192
+ return t.modelValue;
193
+ }), T = (e) => {
194
+ t.join && o(e) ? h(e.join(t.separator)) : h(t.last ? e[e.length - 1] : e);
195
+ };
196
+ return () => v({ vNodes: u(p, d({
197
+ style: "width: 100%",
198
+ class: { "is-readonly": t.readonly }
199
+ }, x.value, {
200
+ "model-value": w.value,
201
+ options: C.value,
202
+ props: {
203
+ checkStrictly: t.checkStrictly,
204
+ label: t.labelKey,
205
+ value: t.valueKey,
206
+ emitPath: t.emitPath,
207
+ expandTrigger: "hover"
208
+ },
209
+ disabled: b.value,
210
+ placeholder: y.value,
211
+ "onUpdate:modelValue": T
212
+ }), null) });
213
+ }
214
+ };
215
+ //#endregion
216
+ export { v as t };
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./Br4i8stg.mjs";
2
+ import { n as t, t as n } from "./C4bM8miy.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormInputEmail.vue
10
+ var c = {
11
+ name: "FormInputEmail",
12
+ inheritAttrs: !1,
13
+ props: { ...t },
14
+ emits: { ...e },
15
+ setup(e, { slots: t, attrs: i }) {
16
+ let c = o(e, "modelValue");
17
+ return () => r(n, a(e, i, {
18
+ modelValue: c.value,
19
+ "onUpdate:modelValue": (e) => c.value = e,
20
+ type: "email"
21
+ }), s(t) ? t : { default: () => [t] });
22
+ }
23
+ };
24
+ //#endregion
25
+ export { c as t };
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./Br4i8stg.mjs";
2
+ import { n as t, t as n } from "./C4bM8miy.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormInputIdCard.vue
10
+ var c = {
11
+ name: "FormInputIdCard",
12
+ inheritAttrs: !1,
13
+ props: { ...t },
14
+ emits: { ...e },
15
+ setup(e, { slots: t, attrs: i }) {
16
+ let c = o(e, "modelValue");
17
+ return () => r(n, a(e, i, {
18
+ modelValue: c.value,
19
+ "onUpdate:modelValue": (e) => c.value = e,
20
+ type: "idcard"
21
+ }), s(t) ? t : { default: () => [t] });
22
+ }
23
+ };
24
+ //#endregion
25
+ export { c as t };
@@ -0,0 +1,51 @@
1
+ import { s as e } from "./BQ77eAb3.mjs";
2
+ import { o as t, r as n } from "./Br4i8stg.mjs";
3
+ import { n as r } from "./CsfgUCe9.mjs";
4
+ import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
5
+ import { ElImage as s } from "element-plus/es";
6
+ //#region src/components/form/props/image.ts
7
+ var c = {
8
+ ...r,
9
+ src: String,
10
+ fit: String,
11
+ hideOnClickModal: Boolean
12
+ }, l = { modelValue: !0 }, u = [
13
+ "load",
14
+ "error",
15
+ "switch",
16
+ "close",
17
+ "show"
18
+ ], d = (e) => r[e] === void 0 && l[e] !== !0;
19
+ //#endregion
20
+ //#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
21
+ function f(e) {
22
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
23
+ }
24
+ //#endregion
25
+ //#region src/components/form/FormImage.vue
26
+ var p = {
27
+ name: "FormImage",
28
+ inheritAttrs: !1,
29
+ props: { ...c },
30
+ emits: {
31
+ load: null,
32
+ error: null,
33
+ switch: null,
34
+ close: null,
35
+ show: null
36
+ },
37
+ setup(r, { slots: a, attrs: c, emit: l }) {
38
+ let p = t(r, { attrs: c }), m = e(r, {
39
+ events: u,
40
+ predicate: d,
41
+ emit: l
42
+ });
43
+ return () => n(r, {
44
+ vNodes: i(s, o(m.value, c, { "preview-src-list": [r.src] }), f(a) ? a : { default: () => [a] }),
45
+ formItemProps: p,
46
+ slots: a
47
+ });
48
+ }
49
+ };
50
+ //#endregion
51
+ export { p as t };
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,17 @@
1
+ import { c as e, s as t } from "./Br4i8stg.mjs";
2
+ //#region src/components/form/props/common.ts
3
+ var n = {
4
+ ...e,
5
+ ...t,
6
+ wrapFormItem: {
7
+ type: Boolean,
8
+ default: !0
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ col: Boolean
15
+ }, r = { size: { type: String } };
16
+ //#endregion
17
+ export { n, r as t };
@@ -0,0 +1,42 @@
1
+ import { s as e } from "./BQ77eAb3.mjs";
2
+ import { o as t, r as n } from "./Br4i8stg.mjs";
3
+ import { n as r } from "./CsfgUCe9.mjs";
4
+ import { createVNode as i, mergeProps as a } from "vue";
5
+ import { ElText as o } from "element-plus/es";
6
+ //#region src/components/form/props/text.ts
7
+ var s = {
8
+ ...r,
9
+ type: String,
10
+ size: {
11
+ type: String,
12
+ default: "default"
13
+ },
14
+ truncated: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ lineClamp: [String, Number],
19
+ tag: {
20
+ type: String,
21
+ default: "span"
22
+ },
23
+ text: String
24
+ }, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
25
+ name: "FormText",
26
+ inheritAttrs: !1,
27
+ props: { ...s },
28
+ setup(r, { slots: s, emit: c, attrs: d }) {
29
+ let f = t(r, { attrs: d }), p = e(r, {
30
+ events: l,
31
+ predicate: u,
32
+ emit: c
33
+ });
34
+ return () => n(r, {
35
+ vNodes: i(o, a(p.value, d), { default: s.default || (() => r.text) }),
36
+ formItemProps: f,
37
+ slots: s
38
+ });
39
+ }
40
+ };
41
+ //#endregion
42
+ export { d as t };
@@ -0,0 +1,106 @@
1
+ import { i as e, n as t } from "./Br4i8stg.mjs";
2
+ import { n } from "./CsfgUCe9.mjs";
3
+ import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
+ import { ElSwitch as o } from "element-plus/es";
5
+ //#region src/components/form/props/switch.ts
6
+ var s = {
7
+ ...n,
8
+ modelValue: [
9
+ Boolean,
10
+ String,
11
+ Number
12
+ ],
13
+ loading: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ size: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ width: [Number, String],
22
+ inlinePrompt: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ activeIcon: [String, Object],
27
+ inactiveIcon: [String, Object],
28
+ activeActionIcon: [String, Object],
29
+ inactiveActionIcon: [String, Object],
30
+ activeText: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ inactiveText: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ activeValue: {
39
+ type: [
40
+ Boolean,
41
+ String,
42
+ Number
43
+ ],
44
+ default: !0
45
+ },
46
+ inactiveValue: {
47
+ type: [
48
+ Boolean,
49
+ String,
50
+ Number
51
+ ],
52
+ default: !1
53
+ },
54
+ name: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ validateEvent: {
59
+ type: Boolean,
60
+ default: !0
61
+ },
62
+ beforeChange: Function,
63
+ id: String,
64
+ tabindex: [String, Number],
65
+ ariaLabel: String,
66
+ activeColor: {
67
+ type: String,
68
+ default: ""
69
+ },
70
+ inactiveColor: {
71
+ type: String,
72
+ default: ""
73
+ },
74
+ borderColor: {
75
+ type: String,
76
+ default: ""
77
+ }
78
+ }, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
79
+ name: "FormSwitch",
80
+ inheritAttrs: !1,
81
+ props: { ...s },
82
+ emits: {
83
+ ...t,
84
+ change: null
85
+ },
86
+ setup(t, { emit: n, slots: s, attrs: c }) {
87
+ let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
88
+ emit: n,
89
+ slots: s,
90
+ events: l,
91
+ predicate: u
92
+ });
93
+ return () => f({ vNodes: r(o, i(m.value, c, {
94
+ modelValue: d.value,
95
+ "onUpdate:modelValue": (e) => d.value = e,
96
+ disabled: p.value
97
+ }), {
98
+ "active-action": s["active-action"],
99
+ "inactive-action": s["inactive-action"],
100
+ active: s.active,
101
+ inactive: s.inactive
102
+ }) });
103
+ }
104
+ };
105
+ //#endregion
106
+ export { d as t };
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./Br4i8stg.mjs";
2
+ import { n as t, t as n } from "./C4bM8miy.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormInputPhoneNumber.vue
10
+ var c = {
11
+ name: "FormInputPhoneNumber",
12
+ inheritAttrs: !1,
13
+ props: { ...t },
14
+ emits: { ...e },
15
+ setup(e, { slots: t, attrs: i }) {
16
+ let c = o(e, "modelValue");
17
+ return () => r(n, a(e, i, {
18
+ modelValue: c.value,
19
+ "onUpdate:modelValue": (e) => c.value = e,
20
+ type: "phone"
21
+ }), s(t) ? t : { default: () => [t] });
22
+ }
23
+ };
24
+ //#endregion
25
+ export { c as t };