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

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/C44-CFi-.mjs +636 -0
  17. package/chunks/C4bM8miy.mjs +174 -0
  18. package/chunks/C9J3j0PX.mjs +93 -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,226 @@
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 { ElOption as o, ElSelect as s } from "element-plus/es";
5
+ //#region src/components/form/props/select.ts
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 = a(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: r(s, i(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 }) => r(o, {
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,108 @@
1
+ import { i as e, n as t } from "./Br4i8stg.mjs";
2
+ import { n, t as r } from "./CsfgUCe9.mjs";
3
+ import { isString as i } from "@web-utils/core";
4
+ import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
+ import { ElInputNumber as c } from "element-plus/es";
6
+ //#region src/components/form/props/input-number.ts
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: !1
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(() => i(t.modelValue) ? Number(t.modelValue) : t.modelValue);
94
+ return () => p({ vNodes: o(c, 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 };
@@ -0,0 +1,107 @@
1
+ import { hasAuthority as e } from "../api/index.mjs";
2
+ import { toolbarContextKey as t } from "../constants/index.mjs";
3
+ import { isArray as n, isFunction as r } from "@web-utils/core";
4
+ import { computed as i, createVNode as a, defineComponent as o, getCurrentInstance as s, inject as c, ref as l } from "vue";
5
+ import { ElMessage as u, ElMessageBox as d } from "element-plus";
6
+ import { ElButton as f } from "element-plus/es";
7
+ //#endregion
8
+ //#region src/components/toolbar/ToolbarButton.vue
9
+ var p = /* @__PURE__ */ o({
10
+ name: "ToolbarButton",
11
+ inheritAttrs: !1,
12
+ props: {
13
+ label: String,
14
+ icon: String,
15
+ type: String,
16
+ size: { type: String },
17
+ loadable: Boolean,
18
+ disabled: Boolean,
19
+ footer: Boolean,
20
+ circle: Boolean,
21
+ plain: Boolean,
22
+ round: Boolean,
23
+ primary: Boolean,
24
+ warning: Boolean,
25
+ nativeType: {
26
+ type: String,
27
+ default: "button"
28
+ },
29
+ privilege: String,
30
+ condition: { type: [
31
+ Array,
32
+ Function,
33
+ Boolean
34
+ ] },
35
+ conditionTips: String,
36
+ confirm: Boolean,
37
+ confirmTips: String,
38
+ beforeExecute: Function,
39
+ afterExecute: Function,
40
+ route: [String, Object],
41
+ title: String,
42
+ cancelButtonText: String,
43
+ confirmButtonText: String
44
+ },
45
+ setup(o, { attrs: p, slots: m }) {
46
+ let h = s(), g = c(t, null), _ = l(!1), v = i(() => o.privilege ? e(o.privilege) : !0), y = async (e) => {
47
+ try {
48
+ if (r(o.beforeExecute) && await o.beforeExecute() === !1) return;
49
+ if (o.conditionTips) {
50
+ let e;
51
+ if (e = n(o.condition) ? o.condition.length <= 0 : r(o.condition) ? !o.condition() : !o.condition, e) {
52
+ u.warning(o.conditionTips);
53
+ return;
54
+ }
55
+ }
56
+ if (o.confirm || o.confirmTips) try {
57
+ await d.confirm(o.confirmTips || "你确定要删除该记录吗?", "系统提示", {
58
+ type: "warning",
59
+ distinguishCancelAndClose: !0,
60
+ cancelButtonText: o.cancelButtonText,
61
+ confirmButtonText: o.confirmButtonText
62
+ });
63
+ } catch (e) {
64
+ if (e === "cancel") {
65
+ let { onCancel: t } = p;
66
+ r(t) && await t(e);
67
+ } else if (e === "close") {
68
+ let { onClose: t } = p;
69
+ r(t) && await t(e);
70
+ }
71
+ return;
72
+ }
73
+ _.value = !0;
74
+ let i;
75
+ if (o.route) {
76
+ var t;
77
+ await ((t = h.proxy.$router) == null ? void 0 : t.push(o.route));
78
+ } else {
79
+ let { onClick: t } = p;
80
+ if (r(t)) try {
81
+ i = await t(e);
82
+ } catch {}
83
+ }
84
+ _.value = !1, r(o.afterExecute) && await o.afterExecute(i);
85
+ } catch {}
86
+ };
87
+ return () => v.value ? a(f, {
88
+ title: o.footer || g != null && g.footer ? null : o.title,
89
+ disabled: o.disabled || _.value,
90
+ plain: o.plain,
91
+ size: o.size,
92
+ nativeType: o.nativeType,
93
+ circle: o.circle,
94
+ loading: o.loadable ? _.value : !1,
95
+ type: o.primary ? "primary" : o.warning ? "warning" : o.type,
96
+ round: o.round,
97
+ class: p.class,
98
+ style: p.style,
99
+ onClick: y
100
+ }, {
101
+ default: !o.circle && (o.label || m.default) ? () => m.default ? m.default() : o.label : null,
102
+ icon: o.icon ? () => a("i", { class: o.icon }, null) : null
103
+ }) : null;
104
+ }
105
+ });
106
+ //#endregion
107
+ export { p as t };
@@ -0,0 +1,110 @@
1
+ import e from "../empty-view/index.mjs";
2
+ import { formItemGroupContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
3
+ import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, useTemplateRef as g, vShow as _, watchEffect as v, withDirectives as y } from "vue";
4
+ import { ElCol as b, ElCollapseTransition as x } from "element-plus";
5
+ import { ElRow as S } from "element-plus/es";
6
+ //#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
7
+ function C(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
9
+ }
10
+ //#endregion
11
+ //#region src/components/form/FormItemGroup.vue
12
+ var w = {
13
+ name: "FormItemGroup",
14
+ props: {
15
+ blockTitle: String,
16
+ size: String,
17
+ tips: String,
18
+ active: Boolean,
19
+ enabled: {
20
+ type: Boolean,
21
+ default: void 0
22
+ },
23
+ disabled: {
24
+ type: Boolean,
25
+ default: void 0
26
+ },
27
+ tag: {
28
+ type: String,
29
+ default: "ElCol"
30
+ },
31
+ span: {
32
+ type: Number,
33
+ default: 24
34
+ },
35
+ block: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ wrapRow: {
40
+ type: Boolean,
41
+ default: !0
42
+ },
43
+ gutter: {
44
+ type: Number,
45
+ default: 20
46
+ },
47
+ collapse: Boolean,
48
+ showTitle: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ notDispatch: Boolean
53
+ },
54
+ setup(l, { expose: w, slots: T }) {
55
+ let E = c(n, null), D = g("root"), O = m(!0), k = h(() => l.enabled), A = h(() => l.disabled), j = i(() => l.enabled === !0 ? !1 : l.disabled === !0), M = i(() => l.tag === "ElCol"), N = () => O.value = !O.value, P = p({
56
+ el: i(() => M.value ? D.value.$el : D.value),
57
+ disabled: A,
58
+ enabled: k,
59
+ isDisabled: j,
60
+ size: h(() => l.size)
61
+ });
62
+ return v(() => {
63
+ O.value = !l.collapse;
64
+ }), f(t, P), d(() => {
65
+ if (!l.notDispatch) {
66
+ var e;
67
+ E == null || (e = E.addGroup) == null || e.call(E, this);
68
+ }
69
+ }), u(() => {
70
+ if (!l.notDispatch) {
71
+ var e;
72
+ E == null || (e = E.removeGroup) == null || e.call(E, this);
73
+ }
74
+ }), w(P), () => {
75
+ let t = () => {
76
+ var t;
77
+ return o(r, null, [y(o("div", {
78
+ class: "form-item-group-title",
79
+ onClick: N
80
+ }, [o("span", {
81
+ class: "flex-item",
82
+ style: "flex: 1"
83
+ }, [
84
+ T.title ? T.title() : l.blockTitle,
85
+ T.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
86
+ a("("),
87
+ T.tips ? T.tips() : l.tips,
88
+ a(")")
89
+ ]) : null,
90
+ (t = T["title-right"]) == null ? void 0 : t.call(T)
91
+ ]), o("i", { class: O.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[_, l.showTitle]]), o(x, null, { default: () => {
92
+ let t;
93
+ return T.default ? l.wrapRow ? y(o(S, { gutter: l.gutter }, C(t = T.default()) ? t : { default: () => [t] }), [[_, O.value]]) : y(o("div", null, [T.default()]), [[_, O.value]]) : y(o(e, {
94
+ "font-size": "14px",
95
+ "empty-tips": "暂无信息"
96
+ }, null), [[_, O.value]]);
97
+ } })]);
98
+ }, n = {
99
+ ref: "root",
100
+ class: ["form-item-group", {
101
+ "default-active": l.active,
102
+ "is-disabled": j.value
103
+ }]
104
+ };
105
+ return M.value && (n.span = l.block ? 24 : l.span), s(M.value ? b : "div", n, M.value ? t : t());
106
+ };
107
+ }
108
+ };
109
+ //#endregion
110
+ export { w as t };
@@ -0,0 +1,171 @@
1
+ import { i as e, n as t } from "./Br4i8stg.mjs";
2
+ import { n } from "./CsfgUCe9.mjs";
3
+ import { computed as r, createVNode as i, mergeProps as a } from "vue";
4
+ import { ElDatePicker as o } from "element-plus/es";
5
+ //#region src/components/form/props/date.ts
6
+ var s = {
7
+ ...n,
8
+ modelValue: [
9
+ Number,
10
+ String,
11
+ Date,
12
+ Array
13
+ ],
14
+ readonly: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ size: String,
19
+ editable: {
20
+ type: Boolean,
21
+ default: !0
22
+ },
23
+ clearable: {
24
+ type: Boolean,
25
+ default: !0
26
+ },
27
+ placeholder: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ startPlaceholder: String,
32
+ endPlaceholder: String,
33
+ type: {
34
+ type: String,
35
+ default: "date"
36
+ },
37
+ format: {
38
+ type: String,
39
+ default: "YYYY-MM-DD"
40
+ },
41
+ popperClass: String,
42
+ popperStyle: [String, Object],
43
+ popperOptions: {
44
+ type: Object,
45
+ default: () => ({})
46
+ },
47
+ rangeSeparator: {
48
+ type: String,
49
+ default: "-"
50
+ },
51
+ defaultValue: Object,
52
+ defaultTime: Object,
53
+ valueFormat: String,
54
+ id: [String, Array],
55
+ name: {
56
+ type: [String, Array],
57
+ default: ""
58
+ },
59
+ unlinkPanels: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ prefixIcon: [String, Object],
64
+ clearIcon: [String, Object],
65
+ validateEvent: {
66
+ type: Boolean,
67
+ default: !0
68
+ },
69
+ disabledDate: Function,
70
+ shortcuts: {
71
+ type: Array,
72
+ default: () => []
73
+ },
74
+ cellClassName: Function,
75
+ teleported: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
79
+ emptyValues: Array,
80
+ valueOnClear: [
81
+ String,
82
+ Number,
83
+ Boolean,
84
+ Function
85
+ ],
86
+ fallbackPlacements: {
87
+ type: Array,
88
+ default: () => [
89
+ "bottom",
90
+ "top",
91
+ "right",
92
+ "left"
93
+ ]
94
+ },
95
+ placement: {
96
+ type: String,
97
+ default: "bottom"
98
+ },
99
+ showFooter: {
100
+ type: Boolean,
101
+ default: !0
102
+ },
103
+ showConfirm: {
104
+ type: Boolean,
105
+ default: !0
106
+ },
107
+ showWeekNumber: {
108
+ type: Boolean,
109
+ default: !1
110
+ },
111
+ automaticDropdown: {
112
+ type: Boolean,
113
+ default: !0
114
+ },
115
+ split: Boolean,
116
+ startDate: String,
117
+ endDate: String
118
+ }, c = {
119
+ modelValue: !0,
120
+ name: !0,
121
+ emptyValues: !0,
122
+ valueOnClear: !0
123
+ }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
124
+ name: "FormDatePicker",
125
+ inheritAttrs: !1,
126
+ props: { ...s },
127
+ emits: {
128
+ ...t,
129
+ "update:startDate": null,
130
+ "update:endDate": null
131
+ },
132
+ setup(t, { emit: n, slots: s, attrs: c }) {
133
+ let { emitInput: d, render: f, placeholder: p, disabled: m, autoBind: h } = e(t, {
134
+ emit: n,
135
+ slots: s,
136
+ attrs: c,
137
+ events: l,
138
+ predicate: u,
139
+ messagePrefix: "请选择"
140
+ }), g = r(() => {
141
+ switch (t.type) {
142
+ case "date":
143
+ case "daterange": return "YYYY-MM-DD";
144
+ case "datetime":
145
+ case "datetimerange": return "YYYY-MM-DD HH:mm:ss";
146
+ default: return "";
147
+ }
148
+ }), _ = r(() => t.split && t.type.indexOf("range") > -1), v = (e, t) => {
149
+ n("update:startDate", e), n("update:endDate", t);
150
+ }, y = (e) => {
151
+ _.value ? e ? v(e[0], e[1]) : v(null, null) : d(e);
152
+ }, b = r(() => _.value ? [t.startDate, t.endDate] : t.modelValue);
153
+ return () => f({ vNodes: i(o, a({ style: "width: 100%" }, h.value, {
154
+ modelValue: b.value,
155
+ disabled: m.value,
156
+ placeholder: p.value,
157
+ format: g.value,
158
+ "value-format": g.value,
159
+ "onUpdate:modelValue": y
160
+ }), {
161
+ default: s.default,
162
+ "range-separator": s["range-separator"],
163
+ "pre-month": s["pre-month"],
164
+ "next-month": s["next-month"],
165
+ "pre-year": s["pre-year"],
166
+ "next-year": s["next-year"]
167
+ }) });
168
+ }
169
+ };
170
+ //#endregion
171
+ export { d as t };