dlzn-ui 1.84.0 → 1.87.0

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 (81) hide show
  1. package/assets/Picker-Bg1T3ak_.css +1 -0
  2. package/assets/date-picker-CSew3xjH.css +1 -0
  3. package/assets/gradient-text-Ba4XS1IC.css +1 -0
  4. package/assets/scrollbar-CWhno35V.css +1 -0
  5. package/chunks/Common-JCpJRcIQ.mjs +160 -0
  6. package/chunks/Day-B2-VMp6b.mjs +300 -0
  7. package/chunks/Hour-C5dH6HGj.mjs +23 -0
  8. package/chunks/Minute-CJB2X5dZ.mjs +23 -0
  9. package/chunks/Month-gLxaWshK.mjs +24 -0
  10. package/chunks/Second-BIIpAoTx.mjs +23 -0
  11. package/chunks/{checkbox-group-Byz5ySpG.mjs → checkbox-group-D7jGdbHp.mjs} +1 -1
  12. package/chunks/cron-C0hsPMmz.mjs +107 -0
  13. package/chunks/date-picker-CTGIcHXL.mjs +375 -0
  14. package/chunks/{form-BkPeeuHB.mjs → form-DjDtnVwq.mjs} +9 -9
  15. package/chunks/gradient-text-CRqJzz7N.mjs +59 -0
  16. package/chunks/page-query-BAO5cEK6.mjs +127 -0
  17. package/chunks/{radio-group-5VlH8ezG.mjs → radio-group-D29D9RMN.mjs} +1 -1
  18. package/chunks/scrollbar-Bf2VJTtD.mjs +69 -0
  19. package/chunks/{select-DhJtE0H-.mjs → select-DbGBggUm.mjs} +1 -1
  20. package/chunks/{tree-select-CTE4lSRz.mjs → tree-select-C-HywxXx.mjs} +1 -1
  21. package/components/checkbox-group/index.mjs +1 -1
  22. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  23. package/components/cron/index.d.ts +2 -0
  24. package/components/cron/index.mjs +2 -0
  25. package/components/cron/src/Common.mjs +2 -0
  26. package/components/cron/src/Common.vue.d.ts +19 -0
  27. package/components/cron/src/Day.mjs +2 -0
  28. package/components/cron/src/Day.vue.d.ts +14 -0
  29. package/components/cron/src/Hour.mjs +2 -0
  30. package/components/cron/src/Hour.vue.d.ts +11 -0
  31. package/components/cron/src/Minute.mjs +2 -0
  32. package/components/cron/src/Minute.vue.d.ts +11 -0
  33. package/components/cron/src/Month.mjs +2 -0
  34. package/components/cron/src/Month.vue.d.ts +11 -0
  35. package/components/cron/src/Picker.mjs +213 -0
  36. package/components/cron/src/Picker.vue.d.ts +15 -0
  37. package/components/cron/src/Second.mjs +2 -0
  38. package/components/cron/src/Second.vue.d.ts +11 -0
  39. package/components/cron/src/cron.d.ts +4 -0
  40. package/components/cron/src/cron.mjs +2 -0
  41. package/components/cron/src/cron.vue.d.ts +15 -0
  42. package/components/date-picker/index.d.ts +2 -0
  43. package/components/date-picker/index.mjs +2 -0
  44. package/components/date-picker/src/date-picker.d.ts +14 -0
  45. package/components/date-picker/src/date-picker.mjs +2 -0
  46. package/components/date-picker/src/date-picker.vue.d.ts +24 -0
  47. package/components/form/index.mjs +1 -1
  48. package/components/form/src/form.mjs +1 -1
  49. package/components/gradient-text/index.d.ts +1 -0
  50. package/components/gradient-text/index.mjs +2 -0
  51. package/components/gradient-text/src/gradient-text.mjs +2 -0
  52. package/components/gradient-text/src/gradient-text.vue.d.ts +11 -0
  53. package/components/index.d.ts +5 -0
  54. package/components/index.mjs +28 -23
  55. package/components/page-query/index.d.ts +1 -0
  56. package/components/page-query/index.mjs +2 -0
  57. package/components/page-query/src/page-query.mjs +2 -0
  58. package/components/page-query/src/page-query.vue.d.ts +43 -0
  59. package/components/radio-group/index.mjs +1 -1
  60. package/components/radio-group/src/radio-group.mjs +1 -1
  61. package/components/scrollbar/index.d.ts +1 -0
  62. package/components/scrollbar/index.mjs +2 -0
  63. package/components/scrollbar/src/scrollbar.mjs +2 -0
  64. package/components/scrollbar/src/scrollbar.vue.d.ts +11 -0
  65. package/components/select/index.mjs +1 -1
  66. package/components/select/src/select.mjs +1 -1
  67. package/components/tree-select/index.mjs +1 -1
  68. package/components/tree-select/src/tree-select.mjs +1 -1
  69. package/hooks/{useDic → useDicOptions}/index.d.ts +1 -1
  70. package/hooks/useDicOptions/index.mjs +2 -0
  71. package/hooks/useList/index.d.ts +1 -1
  72. package/hooks/useList/index.mjs +1 -1
  73. package/hooks/usePrimaryColor/index.d.ts +3 -0
  74. package/hooks/usePrimaryColor/index.mjs +5 -0
  75. package/hooks/useSysUser/index.d.ts +1 -1
  76. package/hooks/useSysUser/index.mjs +1 -1
  77. package/index.mjs +28 -23
  78. package/package.json +6 -2
  79. package/hooks/useCommon/index.d.ts +0 -2
  80. package/hooks/useCommon/index.mjs +0 -7
  81. package/hooks/useDic/index.mjs +0 -2
@@ -0,0 +1,375 @@
1
+ import { isFalsy as e } from "../utils/boolean.mjs";
2
+ import { t } from "./icon-COjp1yrx.mjs";
3
+ import n from "../plugins/autoImport/dayjs/index.mjs";
4
+ import { computed as r, createBlock as i, defineComponent as a, getCurrentInstance as o, h as s, inject as c, mergeProps as l, openBlock as u, ref as d, resolveDynamicComponent as f, unref as p, watch as m } from "vue";
5
+ import { ElDatePicker as h } from "element-plus";
6
+ import '../assets/date-picker-CSew3xjH.css';//#endregion
7
+ //#region ../../packages/dlzn-ui/components/date-picker/src/date-picker.vue
8
+ var g = /* @__PURE__ */ a({
9
+ inheritAttrs: !1,
10
+ __name: "date-picker",
11
+ props: {
12
+ modelValue: {},
13
+ onBlur: {},
14
+ onCalendarChange: {},
15
+ onChange: {},
16
+ onClear: {},
17
+ onFocus: {},
18
+ onPanelChange: {},
19
+ onVisibleChange: {},
20
+ status: { default: "default" },
21
+ type: { default: "date" },
22
+ showNow: { type: Boolean },
23
+ showConfirm: { type: Boolean },
24
+ showFooter: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ showWeekNumber: { type: Boolean },
29
+ ariaLabel: {},
30
+ emptyValues: {},
31
+ valueOnClear: {},
32
+ disabledDate: {},
33
+ cellClassName: {},
34
+ shortcuts: {},
35
+ arrowControl: { type: Boolean },
36
+ tabindex: {},
37
+ validateEvent: {
38
+ type: Boolean,
39
+ default: !0
40
+ },
41
+ unlinkPanels: {
42
+ type: Boolean,
43
+ default: !0
44
+ },
45
+ singlePanel: { type: Boolean },
46
+ placement: {},
47
+ fallbackPlacements: {},
48
+ disabledHours: {},
49
+ disabledMinutes: {},
50
+ disabledSeconds: {},
51
+ automaticDropdown: {
52
+ type: Boolean,
53
+ default: !0
54
+ },
55
+ id: {},
56
+ name: {},
57
+ popperClass: {},
58
+ popperStyle: {},
59
+ format: {},
60
+ valueFormat: {},
61
+ dateFormat: {},
62
+ timeFormat: {},
63
+ clearable: {
64
+ type: Boolean,
65
+ default: !0
66
+ },
67
+ clearIcon: { default: () => s(t, {
68
+ icon: "carbon:close-filled",
69
+ size: "16"
70
+ }) },
71
+ editable: { type: Boolean },
72
+ saveOnBlur: {
73
+ type: Boolean,
74
+ default: void 0
75
+ },
76
+ prefixIcon: {},
77
+ size: {},
78
+ readonly: {
79
+ type: Boolean,
80
+ default: void 0
81
+ },
82
+ disabled: {
83
+ type: Boolean,
84
+ default: void 0
85
+ },
86
+ placeholder: {},
87
+ popperOptions: { default: () => ({ modifiers: [{
88
+ name: "offset",
89
+ options: { offset: () => [0, 8] }
90
+ }] }) },
91
+ rangeSeparator: {},
92
+ startPlaceholder: {},
93
+ endPlaceholder: {},
94
+ defaultTime: {},
95
+ isRange: { type: Boolean }
96
+ },
97
+ emits: ["update:modelValue"],
98
+ setup(t, { emit: a }) {
99
+ let g = t, _ = a, v = c("isFormDisabled", r(() => !1)), y = c("isFormReadonly", r(() => !1)), b = d(g.modelValue);
100
+ m(() => g.modelValue, (e) => {
101
+ b.value = e;
102
+ }, { deep: !0 });
103
+ function x() {
104
+ if (g.defaultTime !== void 0) return g.defaultTime;
105
+ switch (g.type) {
106
+ case "datetimerange": return [n().startOf("day").toDate(), n().endOf("day").toDate()];
107
+ default: return;
108
+ }
109
+ }
110
+ function S() {
111
+ if (g.endPlaceholder !== void 0) return g.endPlaceholder;
112
+ switch (g.type) {
113
+ case "daterange": return "结束日期";
114
+ case "datetimerange": return "结束时间";
115
+ case "monthrange": return "结束月份";
116
+ case "yearrange": return "结束年";
117
+ default: return;
118
+ }
119
+ }
120
+ function C() {
121
+ if (g.format !== void 0) return g.format;
122
+ switch (g.type) {
123
+ case "week": return "YYYY年第 ww 周";
124
+ default: return;
125
+ }
126
+ }
127
+ function w() {
128
+ if (g.placeholder !== void 0) return g.placeholder;
129
+ switch (g.type) {
130
+ case "datetime": return "请选择时间";
131
+ case "month":
132
+ case "months": return "请选择月";
133
+ case "week": return "请选择周";
134
+ case "year":
135
+ case "years": return "请选择年";
136
+ default: return "请选择日期";
137
+ }
138
+ }
139
+ function T() {
140
+ if (g.shortcuts !== void 0) return g.shortcuts;
141
+ if (g.disabledDate !== void 0 || g.disabledHours !== void 0 || g.disabledMinutes !== void 0 || g.disabledSeconds !== void 0) return [];
142
+ switch (g.type) {
143
+ case "date": return [
144
+ {
145
+ text: "今天",
146
+ value: n().toDate()
147
+ },
148
+ {
149
+ text: "昨天",
150
+ value: () => n().subtract(1, "day").toDate()
151
+ },
152
+ {
153
+ text: "一周前",
154
+ value: () => n().subtract(1, "week").toDate()
155
+ }
156
+ ];
157
+ case "daterange": return [
158
+ {
159
+ text: "最近一周",
160
+ value: () => [n().subtract(1, "week").toDate(), n().toDate()]
161
+ },
162
+ {
163
+ text: "本月",
164
+ value: () => [n().startOf("month").toDate(), n().endOf("month").toDate()]
165
+ },
166
+ {
167
+ text: "上一个月",
168
+ value: () => [n().subtract(1, "month").startOf("month").toDate(), n().subtract(1, "month").endOf("month").toDate()]
169
+ },
170
+ {
171
+ text: "最近一个月",
172
+ value: () => [n().subtract(1, "month").toDate(), n().toDate()]
173
+ },
174
+ {
175
+ text: "最近三个月",
176
+ value: () => [n().subtract(3, "month").toDate(), n().toDate()]
177
+ },
178
+ {
179
+ text: "最近半年",
180
+ value: () => [n().subtract(6, "month").toDate(), n().toDate()]
181
+ },
182
+ {
183
+ text: "最近一年",
184
+ value: () => [n().subtract(1, "year").toDate(), n().toDate()]
185
+ },
186
+ {
187
+ text: "最近两年",
188
+ value: () => [n().subtract(2, "year").toDate(), n().toDate()]
189
+ },
190
+ {
191
+ text: "最近三年",
192
+ value: () => [n().subtract(3, "year").toDate(), n().toDate()]
193
+ }
194
+ ];
195
+ case "datetime": return [
196
+ {
197
+ text: "今天",
198
+ value: n().toDate()
199
+ },
200
+ {
201
+ text: "今日开始",
202
+ value: () => n().startOf("day").toDate()
203
+ },
204
+ {
205
+ text: "今日结束",
206
+ value: () => n().endOf("day").toDate()
207
+ },
208
+ {
209
+ text: "昨天",
210
+ value: () => n().subtract(1, "day").toDate()
211
+ },
212
+ {
213
+ text: "三天前",
214
+ value: () => n().subtract(3, "day").toDate()
215
+ },
216
+ {
217
+ text: "一周前",
218
+ value: () => n().subtract(1, "week").toDate()
219
+ },
220
+ {
221
+ text: "一个月前",
222
+ value: () => n().subtract(1, "month").toDate()
223
+ },
224
+ {
225
+ text: "本月初",
226
+ value: () => n().startOf("month").toDate()
227
+ },
228
+ {
229
+ text: "本月末",
230
+ value: () => n().endOf("month").toDate()
231
+ }
232
+ ];
233
+ case "datetimerange": return [
234
+ {
235
+ text: "今天",
236
+ value: () => [n().startOf("day").toDate(), n().endOf("day").toDate()]
237
+ },
238
+ {
239
+ text: "昨天",
240
+ value: () => [n().subtract(1, "day").startOf("day").toDate(), n().subtract(1, "day").endOf("day").toDate()]
241
+ },
242
+ {
243
+ text: "最近一周",
244
+ value: () => [n().startOf("day").subtract(1, "week").toDate(), n().endOf("day").toDate()]
245
+ },
246
+ {
247
+ text: "本月",
248
+ value: () => [n().startOf("month").toDate(), n().endOf("month").toDate()]
249
+ },
250
+ {
251
+ text: "上个月",
252
+ value: () => [n().subtract(1, "month").startOf("month").toDate(), n().subtract(1, "month").endOf("month").toDate()]
253
+ },
254
+ {
255
+ text: "最近一个月",
256
+ value: () => [n().startOf("day").subtract(1, "month").toDate(), n().endOf("day").toDate()]
257
+ },
258
+ {
259
+ text: "最近三个月",
260
+ value: () => [n().startOf("day").subtract(3, "month").toDate(), n().endOf("day").toDate()]
261
+ },
262
+ {
263
+ text: "最近半年",
264
+ value: () => [n().startOf("day").subtract(6, "month").toDate(), n().endOf("day").toDate()]
265
+ },
266
+ {
267
+ text: "最近一年",
268
+ value: () => [n().startOf("day").subtract(1, "year").toDate(), n().endOf("day").toDate()]
269
+ }
270
+ ];
271
+ case "monthrange": return [
272
+ {
273
+ text: "本月",
274
+ value: [n().toDate(), n().toDate()]
275
+ },
276
+ {
277
+ text: "上月",
278
+ value: () => [n().subtract(1, "month").startOf("month").toDate(), n().subtract(1, "month").endOf("month").toDate()]
279
+ },
280
+ {
281
+ text: "今年至今",
282
+ value: () => [n().startOf("year").toDate(), n().toDate()]
283
+ },
284
+ {
285
+ text: "最近一个月",
286
+ value: () => [n().subtract(1, "month").toDate(), n().toDate()]
287
+ },
288
+ {
289
+ text: "最近三个月",
290
+ value: () => [n().subtract(3, "month").toDate(), n().toDate()]
291
+ },
292
+ {
293
+ text: "最近六个月",
294
+ value: () => [n().subtract(6, "month").toDate(), n().toDate()]
295
+ },
296
+ {
297
+ text: "最近一年",
298
+ value: () => [n().subtract(1, "year").toDate(), n().toDate()]
299
+ },
300
+ {
301
+ text: "最近三年",
302
+ value: () => [n().subtract(3, "year").toDate(), n().toDate()]
303
+ }
304
+ ];
305
+ default: return [];
306
+ }
307
+ }
308
+ function E() {
309
+ if (g.startPlaceholder !== void 0) return g.startPlaceholder;
310
+ switch (g.type) {
311
+ case "daterange": return "开始日期";
312
+ case "datetimerange": return "开始时间";
313
+ case "monthrange": return "开始月份";
314
+ case "yearrange": return "开始年";
315
+ default: return;
316
+ }
317
+ }
318
+ function D() {
319
+ if (g.valueFormat !== void 0) return g.valueFormat;
320
+ switch (g.type) {
321
+ case "datetime":
322
+ case "datetimerange": return "YYYY-MM-DD HH:mm:ss";
323
+ case "month":
324
+ case "monthrange":
325
+ case "months": return "YYYY-MM";
326
+ case "year":
327
+ case "yearrange":
328
+ case "years": return "YYYY";
329
+ default: return "YYYY-MM-DD";
330
+ }
331
+ }
332
+ let O = r(() => {
333
+ let e = {
334
+ ...g,
335
+ defaultTime: x(),
336
+ disabled: g.disabled ?? v.value,
337
+ endPlaceholder: S(),
338
+ format: C(),
339
+ placeholder: w(),
340
+ readonly: g.readonly ?? y.value,
341
+ shortcuts: T(),
342
+ startPlaceholder: E(),
343
+ valueFormat: D()
344
+ };
345
+ return Object.keys(e).forEach((t) => {
346
+ e[t] === void 0 && delete e[t];
347
+ }), e;
348
+ }), k = o();
349
+ function A(e) {
350
+ k.exposed = e ?? {};
351
+ }
352
+ return (n, r) => (u(), i(f(s(p(h), l(n.$attrs, {
353
+ ...O.value,
354
+ modelValue: b.value,
355
+ "onUpdate:modelValue": (e) => {
356
+ b.value = e;
357
+ },
358
+ onChange: (n) => {
359
+ let r = n;
360
+ p(e)(n) && (r = [
361
+ "daterange",
362
+ "dates",
363
+ "datetimerange",
364
+ "monthrange",
365
+ "months",
366
+ "yearrange",
367
+ "years"
368
+ ].includes(t.type) ? [] : ""), _("update:modelValue", r), g.onChange?.(r);
369
+ },
370
+ ref: A
371
+ }, { class: `t-is-${t.status}` }), n.$slots))));
372
+ }
373
+ });
374
+ //#endregion
375
+ export { g as t };
@@ -3,17 +3,17 @@ import t from "../plugins/autoImport/$msg/index.mjs";
3
3
  import { isFalsy as n } from "../utils/boolean.mjs";
4
4
  import { t as r } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
5
5
  import { t as i } from "./checkbox-CLlUEbkk.mjs";
6
- import { t as a } from "./checkbox-group-Byz5ySpG.mjs";
7
- import { t as o } from "./input-number-Bt1mbd1D.mjs";
8
- import { t as s } from "./input-B8jjJrK5.mjs";
9
- import { t as c } from "./radio-group-5VlH8ezG.mjs";
6
+ import { t as a } from "./checkbox-group-D7jGdbHp.mjs";
7
+ import { t as o } from "./input-B8jjJrK5.mjs";
8
+ import { t as s } from "./input-number-Bt1mbd1D.mjs";
9
+ import { t as c } from "./radio-group-D29D9RMN.mjs";
10
10
  import { t as l } from "./range-input-8ddDrOBB.mjs";
11
- import { t as u } from "./select-DhJtE0H-.mjs";
11
+ import { t as u } from "./select-DbGBggUm.mjs";
12
12
  import { t as d } from "./slider-C63Gzbld.mjs";
13
13
  import { t as f } from "./switch-CqV3-avv.mjs";
14
14
  import { t as p } from "./tag-input-iNXrRXk2.mjs";
15
15
  import { t as m } from "./textarea-xkwOhNut.mjs";
16
- import { t as ee } from "./tree-select-CTE4lSRz.mjs";
16
+ import { t as ee } from "./tree-select-C-HywxXx.mjs";
17
17
  import { t as te } from "./tree-szMrY26E.mjs";
18
18
  import { t as ne } from "./upload-CvqlmOVo.mjs";
19
19
  import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, defineAsyncComponent as b, defineComponent as x, getCurrentInstance as S, mergeDefaults as C, mergeProps as w, nextTick as T, onMounted as re, openBlock as E, provide as D, reactive as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, shallowRef as N, unref as P, watch as F, withCtx as I } from "vue";
@@ -113,8 +113,8 @@ var H = {
113
113
  let q = /* @__PURE__ */ new Map(), J = {
114
114
  TCheckbox: i,
115
115
  TCheckboxGroup: a,
116
- TInput: s,
117
- TInputNumber: o,
116
+ TInput: o,
117
+ TInputNumber: s,
118
118
  TRadioGroup: c,
119
119
  TRangeInput: l,
120
120
  TSelect: u,
@@ -127,7 +127,7 @@ var H = {
127
127
  TUpload: ne
128
128
  };
129
129
  function Y(e) {
130
- return typeof e == "string" ? H.has(e) ? (q.has(e) || q.set(e, b(H.get(e))), q.get(e)) : J[e] : s;
130
+ return typeof e == "string" ? H.has(e) ? (q.has(e) || q.set(e, b(H.get(e))), q.get(e)) : J[e] : o;
131
131
  }
132
132
  function ie(e) {
133
133
  let t = {};
@@ -0,0 +1,59 @@
1
+ import { t as e } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
2
+ import t from "../hooks/usePrimaryColor/index.mjs";
3
+ import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, toDisplayString as u } from "vue";
4
+ import d from "color";
5
+ import '../assets/gradient-text-Ba4XS1IC.css';//#endregion
6
+ //#region ../../packages/dlzn-ui/components/gradient-text/src/gradient-text.vue
7
+ var f = /*#__PURE__*/ e(/* @__PURE__ */ o({
8
+ __name: "gradient-text",
9
+ props: {
10
+ animationSpeed: { default: 8 },
11
+ className: { default: "" },
12
+ colors: {},
13
+ showBorder: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ text: {}
18
+ },
19
+ setup(e) {
20
+ let o = t(), f = n(() => {
21
+ let t = d(o.value ?? "#000000");
22
+ return e.colors ?? [
23
+ t.lighten(.8),
24
+ t.lighten(.4),
25
+ t,
26
+ t.darken(.4),
27
+ t.darken(.8)
28
+ ];
29
+ }), p = n(() => ({
30
+ "--animation-duration": `${e.animationSpeed}s`,
31
+ animationDuration: `${e.animationSpeed}s`,
32
+ backgroundImage: `linear-gradient(to right, ${f.value.join(", ")})`,
33
+ backgroundSize: "300% 100%"
34
+ })), m = n(() => ({ ...p.value })), h = n(() => ({
35
+ ...p.value,
36
+ backgroundClip: "text",
37
+ WebkitBackgroundClip: "text"
38
+ }));
39
+ return (t, n) => (l(), i("div", { class: s(["relative mx-auto flex max-w-fit flex-row items-center justify-center overflow-hidden font-medium backdrop-blur transition-shadow duration-500", `${e.className}`]) }, [e.showBorder ? (l(), i("div", {
40
+ key: 0,
41
+ class: "animate_gradient pointer-events-none absolute inset-0 z-0 bg-cover",
42
+ style: c(m.value)
43
+ }, [...n[0] ||= [a("div", {
44
+ class: "bg-black absolute inset-0 z-[-1] rounded-[1.25rem]",
45
+ style: {
46
+ top: "50%",
47
+ left: "50%",
48
+ width: "calc(100% - 2px)",
49
+ height: "calc(100% - 2px)",
50
+ transform: "translate(-50%, -50%)"
51
+ }
52
+ }, null, -1)]], 4)) : r("v-if", !0), a("div", {
53
+ class: "animate_gradient relative z-2 inline-block bg-cover text-transparent",
54
+ style: c(h.value)
55
+ }, u(e.text), 5)], 2));
56
+ }
57
+ }), [["__scopeId", "data-v-715d09ce"]]);
58
+ //#endregion
59
+ export { f as t };
@@ -0,0 +1,127 @@
1
+ import { n as e } from "./form-DjDtnVwq.mjs";
2
+ import { computed as t, createBlock as n, createCommentVNode as r, createSlots as i, createTextVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, mergeDefaults as l, mergeProps as u, nextTick as d, normalizeProps as f, openBlock as p, ref as m, renderList as h, renderSlot as g, resolveComponent as _, toDisplayString as v, useTemplateRef as y, watch as b, withCtx as x } from "vue";
3
+ import { useResizeObserver as S } from "@vueuse/core";
4
+ import { cloneDeep as C, groupBy as w } from "lodash-es";
5
+ //#endregion
6
+ //#region ../../packages/dlzn-ui/components/page-query/src/page-query.vue
7
+ var T = /* @__PURE__ */ s({
8
+ inheritAttrs: !1,
9
+ __name: "page-query",
10
+ props: /*@__PURE__*/ l({
11
+ autoLabelWidth: { type: Boolean },
12
+ data: {},
13
+ items: {},
14
+ labelAlign: {},
15
+ msgErrorWhenValidate: { type: Boolean },
16
+ colon: { type: Boolean },
17
+ disabled: { type: Boolean },
18
+ errorMessage: {},
19
+ id: {},
20
+ layout: {},
21
+ preventSubmitDefault: { type: Boolean },
22
+ readonly: { type: Boolean },
23
+ requiredMark: { type: Boolean },
24
+ requiredMarkPosition: {},
25
+ resetType: {},
26
+ rules: {},
27
+ scrollToFirstError: {},
28
+ showErrorMessage: { type: Boolean },
29
+ statusIcon: { type: Boolean },
30
+ submitWithWarningMessage: { type: Boolean },
31
+ onReset: { type: Function },
32
+ onSubmit: { type: Function },
33
+ onValidate: { type: Function }
34
+ }, e),
35
+ emits: ["query", "reset"],
36
+ setup(e, { expose: s, emit: l }) {
37
+ let T = e, E = l, D = m(C(T.data));
38
+ b(() => T.data, (e) => {
39
+ Object.assign(D.value, C(e));
40
+ }, { deep: !0 });
41
+ let O = t(() => [...T.items, { slot: "_btn" }]), k = t(() => {
42
+ let e = { ...T };
43
+ return delete e.items, delete e.data, e;
44
+ }), A = y("formRef"), j = m(!1), M = m(!1), N = null;
45
+ S(A, (e) => {
46
+ N = e[0]?.target ?? null, P();
47
+ });
48
+ function P() {
49
+ d(() => {
50
+ if (N === null) return;
51
+ let e = [...N.querySelectorAll(".t-form__item")];
52
+ e.forEach((t) => {
53
+ t.style.display = getComputedStyle(e[0]).display;
54
+ });
55
+ let t = w(e, (e) => e.offsetTop), n = Object.keys(t).map(Number).sort((e, t) => e - t);
56
+ M.value = n.length > 3 || n.length === 3 && n.at(-1) - n.at(-2) === n.at(1) - n.at(0), j.value || (n.slice(2, -1).forEach((e) => {
57
+ t[e].forEach((e) => {
58
+ e.style.display = "none";
59
+ });
60
+ }), n.length > 2 && M.value && (t[n[1]].at(-1).style.display = "none"));
61
+ });
62
+ }
63
+ b([j, () => O.value.length], P);
64
+ function F() {
65
+ E("query", D.value);
66
+ }
67
+ function I() {
68
+ L(), E("reset", D.value);
69
+ }
70
+ function L() {
71
+ Object.keys(D.value).forEach((e) => {
72
+ if (Object.hasOwn(T.data, e)) {
73
+ D.value[e] = T.data[e];
74
+ return;
75
+ }
76
+ Array.isArray(D.value[e]) ? D.value[e] = [] : D.value[e] = "";
77
+ });
78
+ }
79
+ return s({
80
+ formData: D,
81
+ query: F,
82
+ reset: I,
83
+ resetFormData: L
84
+ }), (e, t) => {
85
+ let s = _("TButton"), l = _("TForm");
86
+ return p(), n(l, u({
87
+ ref_key: "formRef",
88
+ ref: A,
89
+ data: D.value,
90
+ items: O.value
91
+ }, u(e.$attrs, k.value, { class: "relative" })), i({
92
+ _btn: x(() => [
93
+ o(s, {
94
+ class: "shrink",
95
+ onClick: F
96
+ }, {
97
+ default: x(() => [...t[1] ||= [a("查询", -1)]]),
98
+ _: 1
99
+ }),
100
+ o(s, {
101
+ class: "shrink",
102
+ theme: "default",
103
+ onClick: I
104
+ }, {
105
+ default: x(() => [...t[2] ||= [a("重置", -1)]]),
106
+ _: 1
107
+ }),
108
+ M.value ? (p(), n(s, {
109
+ key: 0,
110
+ class: "shrink",
111
+ variant: "outline",
112
+ onClick: t[0] ||= (e) => j.value = !j.value
113
+ }, {
114
+ default: x(() => [a(v(j.value ? "收起" : "展开"), 1)]),
115
+ _: 1
116
+ })) : r("v-if", !0)
117
+ ]),
118
+ _: 2
119
+ }, [h(Object.keys(e.$slots), (t) => ({
120
+ name: t,
121
+ fn: x((n) => [g(e.$slots, t, f(c(n)))])
122
+ }))]), 1040, ["data", "items"]);
123
+ };
124
+ }
125
+ });
126
+ //#endregion
127
+ export { T as t };
@@ -2,7 +2,7 @@ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
2
  import { h as t } from "./user-DsSzsUIW.mjs";
3
3
  import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.mjs";
4
4
  import { stringDisplay as i } from "../utils/string.mjs";
5
- import { useList as a } from "../hooks/useList/index.mjs";
5
+ import a from "../hooks/useList/index.mjs";
6
6
  import { computed as o, createBlock as s, defineComponent as c, getCurrentInstance as l, h as u, mergeProps as d, openBlock as f, resolveDynamicComponent as p, unref as m } from "vue";
7
7
  import { RadioGroup as h } from "tdesign-vue-next";
8
8
  //#endregion
@@ -0,0 +1,69 @@
1
+ import { computed as e, createBlock as t, defineComponent as n, getCurrentInstance as r, h as i, mergeProps as a, openBlock as o, resolveDynamicComponent as s, unref as c } from "vue";
2
+ import { ElScrollbar as l } from "element-plus";
3
+ import '../assets/scrollbar-CWhno35V.css';//#endregion
4
+ //#region ../../packages/dlzn-ui/components/scrollbar/src/scrollbar.vue
5
+ var u = /* @__PURE__ */ n({
6
+ inheritAttrs: !1,
7
+ __name: "scrollbar",
8
+ props: {
9
+ distance: {},
10
+ height: {},
11
+ maxHeight: {},
12
+ native: { type: Boolean },
13
+ wrapStyle: { type: [
14
+ Boolean,
15
+ null,
16
+ String,
17
+ Object,
18
+ Array
19
+ ] },
20
+ wrapClass: { type: [
21
+ Boolean,
22
+ null,
23
+ String,
24
+ Object,
25
+ Array
26
+ ] },
27
+ viewClass: { type: [
28
+ Boolean,
29
+ null,
30
+ String,
31
+ Object,
32
+ Array
33
+ ] },
34
+ viewStyle: { type: [
35
+ Boolean,
36
+ null,
37
+ String,
38
+ Object,
39
+ Array
40
+ ] },
41
+ noresize: { type: Boolean },
42
+ tag: {},
43
+ always: { type: Boolean },
44
+ minSize: {},
45
+ tabindex: {},
46
+ id: {},
47
+ role: {},
48
+ ariaLabel: {},
49
+ ariaOrientation: {}
50
+ },
51
+ emits: ["end-reached", "scroll"],
52
+ setup(n, { expose: u }) {
53
+ let d = n, f = e(() => {
54
+ let e = { ...d };
55
+ return Object.keys(e).forEach((t) => {
56
+ e[t] === void 0 && delete e[t];
57
+ }), e;
58
+ }), p = r();
59
+ function m(e) {
60
+ p.exposed = e ?? {};
61
+ }
62
+ return u({}), (e, n) => (o(), t(s(i(c(l), a(e.$attrs, {
63
+ ...f.value,
64
+ ref: m
65
+ }), e.$slots))));
66
+ }
67
+ });
68
+ //#endregion
69
+ export { u as t };
@@ -2,7 +2,7 @@ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
2
  import { h as t } from "./user-DsSzsUIW.mjs";
3
3
  import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.mjs";
4
4
  import { stringDisplay as i } from "../utils/string.mjs";
5
- import { useList as a } from "../hooks/useList/index.mjs";
5
+ import a from "../hooks/useList/index.mjs";
6
6
  import { computed as o, createBlock as s, defineComponent as c, getCurrentInstance as l, h as u, mergeDefaults as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveDynamicComponent as g, unref as _ } from "vue";
7
7
  import { useResizeObserver as v } from "@vueuse/core";
8
8
  import { InputAdornment as y, Select as b } from "tdesign-vue-next";
@@ -1,4 +1,4 @@
1
- import { useList as e } from "../hooks/useList/index.mjs";
1
+ import e from "../hooks/useList/index.mjs";
2
2
  import { t } from "./tree-Bn-WY5dz.mjs";
3
3
  import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeProps as s, onMounted as c, openBlock as l, ref as u, resolveDynamicComponent as d, unref as f } from "vue";
4
4
  import { useResizeObserver as p } from "@vueuse/core";