dlzn-ui 2.0.94 → 2.0.95

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 (230) hide show
  1. package/assets/provider-Bh_VYGit.css +2 -0
  2. package/assets/{css-CZQicoxs.css → scrollbar-To1tAaeV.css} +1 -1
  3. package/chunks/{AssignUser-CouSn8m6.mjs → AssignUser-pMMpNO27.mjs} +14 -14
  4. package/chunks/{BasicInfo-BCeofxua.mjs → BasicInfo-dMwF0ziF.mjs} +1 -1
  5. package/chunks/{ColumnInfo-DIMFSHjI.mjs → ColumnInfo-0WJQWMbG.mjs} +2 -2
  6. package/chunks/{Common-CwFmdwb1.mjs → Common-DE7thNTn.mjs} +7 -8
  7. package/chunks/{Day-CYRyMdGp.mjs → Day-Dj8dheNY.mjs} +12 -13
  8. package/chunks/{DictTypeDetail-BuJzsRck.mjs → DictTypeDetail-BIVPm9kz.mjs} +10 -10
  9. package/chunks/{GenInfo-u2q3GHjT.mjs → GenInfo-CVmGFfUf.mjs} +1 -1
  10. package/chunks/{Hour-BucXva0o.mjs → Hour-fmUnJG03.mjs} +1 -1
  11. package/chunks/{Import-Cbpbw1lG.mjs → Import-DWlcNGih.mjs} +2 -2
  12. package/chunks/{Index-BNL5a-Cp.mjs → Index--FTIsWxL.mjs} +5 -6
  13. package/chunks/{Index-DiMU3wUU.mjs → Index-BU7G9MXR.mjs} +1 -1
  14. package/chunks/{Index-BstvYgFa.mjs → Index-BloAp662.mjs} +1 -1
  15. package/chunks/{Index-C7ffC0FL.mjs → Index-C97pCXnX.mjs} +1 -1
  16. package/chunks/{Index-DPsmE1uN.mjs → Index-CFtIabpU.mjs} +1 -1
  17. package/chunks/{Index-B6nf1hBs.mjs → Index-CPJZlyGD.mjs} +1 -1
  18. package/chunks/{Index-Bk88hnNn.mjs → Index-CSiH5LGc.mjs} +1 -1
  19. package/chunks/{Index-wzt08-bX.mjs → Index-CiiLzD8p.mjs} +1 -1
  20. package/chunks/{Index-D2ylEiec.mjs → Index-D3ymPHcw.mjs} +1 -1
  21. package/chunks/{Index-B9ltACCu.mjs → Index-D447iwxd.mjs} +34 -30
  22. package/chunks/{Index-7kWmNVUh.mjs → Index-D4ys8Z_X.mjs} +1 -1
  23. package/chunks/{Index-BrimwFmb.mjs → Index-DGf3QrKq.mjs} +1 -1
  24. package/chunks/{Index-Bw-ARCfv.mjs → Index-Dp_dwqU5.mjs} +1 -1
  25. package/chunks/{Index-CzrztdW-.mjs → Index-GJJawnRZ.mjs} +1 -1
  26. package/chunks/{Index-BZJQOM_U.mjs → Index-nLSG5esH.mjs} +2 -2
  27. package/chunks/{Index-CvhYPFWQ.mjs → Index-rcLOiKUG.mjs} +1 -1
  28. package/chunks/{Index-Cl3E8sdW.mjs → Index-vepbJg-2.mjs} +1 -1
  29. package/chunks/{IndexItem-D9CJRe8H.mjs → IndexItem-D5Ngo4ux.mjs} +3 -3
  30. package/chunks/{Log-CRCoNWG4.mjs → Log-DiPyKgVW.mjs} +12 -12
  31. package/chunks/{LoginBg-YJNdM6MW.mjs → LoginBg-DK-FxB2n.mjs} +1 -1
  32. package/chunks/{Minute-CbXsIR7_.mjs → Minute-D_mesp23.mjs} +1 -1
  33. package/chunks/{Month-CthyKyhv.mjs → Month-BEnKEFGO.mjs} +1 -1
  34. package/chunks/{Preview-B98m3MGO.mjs → Preview-DwWeDzEq.mjs} +1 -1
  35. package/chunks/{Second-CIQ6V9se.mjs → Second-DmBfCWw4.mjs} +1 -1
  36. package/chunks/{SelectDept-CnWQxS5K.mjs → SelectDept-DqkpUrLX.mjs} +1 -2
  37. package/chunks/{SelectMenu-CkTKjWBF.mjs → SelectMenu-BG2aO4dr.mjs} +1 -2
  38. package/chunks/{SelectUser-Ckno6MOD.mjs → SelectUser-UL3WHxqY.mjs} +2 -2
  39. package/chunks/{UserInfo-CLmJTgYA.mjs → UserInfo-CJ1LUaSs.mjs} +9 -9
  40. package/chunks/{Wrapper-DTafMJUk.mjs → Wrapper-Dd5a1AeJ.mjs} +1 -1
  41. package/chunks/{app-Bi5IK4Co.mjs → app-Q4BryaGi.mjs} +1 -1
  42. package/chunks/{custom-page-list-iJnDKzZY.mjs → custom-page-list-BfwM6BZj.mjs} +4 -4
  43. package/chunks/{custom-page-table-C1_--vky.mjs → custom-page-table-DiSUr7km.mjs} +2 -2
  44. package/chunks/{job-LMdrSGj4.mjs → job-CF59695q.mjs} +33 -33
  45. package/chunks/{overview-TtQSpbKc.mjs → overview-C_YMhM9g.mjs} +1 -1
  46. package/chunks/{page-list-DM1OJ9i_.mjs → page-list-Da4eL_wk.mjs} +3 -3
  47. package/chunks/{page-query-Dt2TDeWb.mjs → page-query-jPlr6ld9.mjs} +1 -1
  48. package/chunks/{page-table-BFRDmAMb.mjs → page-table-BX-Inp9P.mjs} +24 -25
  49. package/chunks/{pagination-BqB9JLb_.mjs → pagination-BAsYYvcR.mjs} +1 -1
  50. package/chunks/{provider-CygWvvoI.mjs → provider-ofhdEHHM.mjs} +1296 -574
  51. package/chunks/{scrollbar-DR0tchN3.mjs → scrollbar-CFNjWbWr.mjs} +1 -2
  52. package/chunks/{table-KkVV8NF3.mjs → table-CEHUFrgD.mjs} +8 -9
  53. package/components/app/index.mjs +1 -1
  54. package/components/app/src/app.mjs +1 -1
  55. package/components/button/index.mjs +1 -1
  56. package/components/button/src/button.mjs +1 -1
  57. package/components/checkbox-group/index.mjs +1 -1
  58. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  59. package/components/cron/index.mjs +1 -1
  60. package/components/cron/src/Common.mjs +1 -1
  61. package/components/cron/src/Day.mjs +1 -1
  62. package/components/cron/src/Hour.mjs +1 -1
  63. package/components/cron/src/Minute.mjs +1 -1
  64. package/components/cron/src/Month.mjs +1 -1
  65. package/components/cron/src/Picker.mjs +6 -6
  66. package/components/cron/src/Second.mjs +1 -1
  67. package/components/cron/src/cron.mjs +1 -1
  68. package/components/cron/src/cron.vue.d.ts +1 -1
  69. package/components/custom-page-list/index.mjs +1 -1
  70. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  71. package/components/custom-page-list/src/custom-page-list.vue.d.ts +3 -3
  72. package/components/custom-page-table/index.mjs +1 -1
  73. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  74. package/components/date-picker/index.mjs +1 -1
  75. package/components/date-picker/src/date-picker.mjs +1 -1
  76. package/components/date-picker/src/date-picker.vue.d.ts +1 -1
  77. package/components/dialog/index.mjs +1 -1
  78. package/components/dialog/src/dialog.mjs +1 -1
  79. package/components/dialog/src/dialog.vue.d.ts +6 -6
  80. package/components/form/index.mjs +1 -1
  81. package/components/form/src/form.mjs +1 -1
  82. package/components/form/src/form.vue.d.ts +1 -1
  83. package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  84. package/components/index.mjs +26 -32
  85. package/components/input/src/input.vue.d.ts +1 -1
  86. package/components/input-number/index.mjs +1 -1
  87. package/components/input-number/src/input-number.mjs +1 -1
  88. package/components/input-number/src/input-number.vue.d.ts +1 -1
  89. package/components/overview/index.mjs +1 -1
  90. package/components/overview/src/DicLabel/Index.mjs +1 -1
  91. package/components/overview/src/IndexItem.mjs +1 -1
  92. package/components/overview/src/OptionLabel/Index.mjs +1 -1
  93. package/components/overview/src/overview.mjs +1 -1
  94. package/components/page-list/index.mjs +1 -1
  95. package/components/page-list/src/page-list.d.ts +62 -62
  96. package/components/page-list/src/page-list.mjs +1 -1
  97. package/components/page-list/src/page-list.vue.d.ts +9 -9
  98. package/components/page-query/index.mjs +1 -1
  99. package/components/page-query/src/page-query.mjs +1 -1
  100. package/components/page-query/src/page-query.vue.d.ts +4 -4
  101. package/components/page-table/index.mjs +1 -1
  102. package/components/page-table/src/page-table.mjs +1 -1
  103. package/components/page-table/src/page-table.vue.d.ts +7 -7
  104. package/components/pagination/index.mjs +1 -1
  105. package/components/pagination/src/pagination.mjs +1 -1
  106. package/components/provider/index.mjs +1 -1
  107. package/components/provider/src/Provider.mjs +1 -1
  108. package/components/radio-group/index.mjs +1 -1
  109. package/components/radio-group/src/radio-group.mjs +1 -1
  110. package/components/range-input/index.mjs +1 -1
  111. package/components/range-input/src/range-input.mjs +1 -1
  112. package/components/range-input/src/range-input.vue.d.ts +1 -1
  113. package/components/scrollbar/index.mjs +1 -1
  114. package/components/scrollbar/src/scrollbar.mjs +1 -1
  115. package/components/select/index.mjs +1 -1
  116. package/components/select/src/select.mjs +1 -1
  117. package/components/select/src/select.vue.d.ts +1 -1
  118. package/components/select-sys-user/index.mjs +1 -1
  119. package/components/select-sys-user/src/Picker.mjs +2 -2
  120. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  121. package/components/tab-panel/src/tab-panel.vue.d.ts +1 -1
  122. package/components/table/index.mjs +1 -1
  123. package/components/table/src/table.mjs +1 -1
  124. package/components/table/src/table.vue.d.ts +1 -1
  125. package/components/textarea/src/textarea.vue.d.ts +1 -1
  126. package/components/tree/index.mjs +1 -1
  127. package/components/tree/src/tree.mjs +1 -1
  128. package/components/tree/src/tree.vue.d.ts +1 -1
  129. package/components/tree-select/index.mjs +1 -1
  130. package/components/tree-select/src/tree-select.mjs +1 -1
  131. package/components/upload/index.mjs +1 -1
  132. package/components/upload/src/upload.mjs +1 -1
  133. package/hooks/useDicOptions/index.mjs +1 -1
  134. package/hooks/useLabel/index.mjs +1 -16
  135. package/hooks/useList/index.mjs +1 -28
  136. package/hooks/useSysUser/index.mjs +1 -1
  137. package/layout/Entry.mjs +1 -1
  138. package/layout/Home.mjs +8 -9
  139. package/layout/Home1.mjs +7 -7
  140. package/layout/Login.mjs +8 -8
  141. package/layout/NotFound.mjs +1 -1
  142. package/layout/modules/Aside.mjs +1 -1
  143. package/layout/modules/Breadcrumb.mjs +1 -1
  144. package/layout/modules/Header.mjs +1 -1
  145. package/layout/modules/LoginBg.mjs +1 -1
  146. package/layout/profile/Index.mjs +9 -10
  147. package/layout/profile/ResetPwd.mjs +1 -1
  148. package/layout/profile/UserInfo.mjs +1 -1
  149. package/layout/vueBits/Plasma.vue.d.ts +1 -1
  150. package/main.mjs +3 -3
  151. package/package.json +2 -1
  152. package/plugins/autoImport/$alova/index.mjs +1 -1
  153. package/plugins/autoImport/$confirm/index.mjs +1 -1
  154. package/plugins/autoImport/$dialog/index.mjs +1 -1
  155. package/plugins/autoImport/$drawer/index.mjs +1 -1
  156. package/plugins/captcha/captcha.mjs +15 -17
  157. package/plugins/captcha/index.mjs +1 -1
  158. package/plugins/directive/index.mjs +1 -1
  159. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  160. package/plugins/tableRenders/Wrapper.mjs +1 -1
  161. package/plugins/tableRenders/cell/AudioPlay/Index.mjs +1 -1
  162. package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
  163. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  164. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  165. package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
  166. package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
  167. package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
  168. package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
  169. package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
  170. package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
  171. package/plugins/tableRenders/cell/Input/Index.vue.d.ts +1 -1
  172. package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
  173. package/plugins/tableRenders/cell/InputNumber/Index.vue.d.ts +1 -1
  174. package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
  175. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  176. package/plugins/tableRenders/cell/Select/Index.vue.d.ts +1 -1
  177. package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
  178. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  179. package/plugins/tableRenders/cell/index.mjs +15 -15
  180. package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -1
  181. package/plugins/tableRenders/title/index.mjs +2 -2
  182. package/router/index.mjs +1 -1
  183. package/store/modules/common.mjs +1 -1
  184. package/store/modules/login.mjs +1 -1
  185. package/store/modules/recentRouters.mjs +1 -1
  186. package/store/modules/router.mjs +1 -1
  187. package/store/modules/user.mjs +1 -1
  188. package/utils/gather.mjs +1 -1
  189. package/utils/index.mjs +7 -8
  190. package/utils/tool.d.ts +4 -0
  191. package/utils/tool.mjs +1 -28
  192. package/views/monitor/cache/index.mjs +2 -2
  193. package/views/monitor/cacheList/index.mjs +2 -2
  194. package/views/monitor/job/index.mjs +1 -1
  195. package/views/monitor/logininfor/index.mjs +2 -2
  196. package/views/monitor/online/index.mjs +2 -2
  197. package/views/monitor/operlog/index.mjs +2 -2
  198. package/views/monitor/server/index.mjs +2 -2
  199. package/views/system/config/index.mjs +13 -13
  200. package/views/system/dept/index.mjs +35 -36
  201. package/views/system/dept/utils.mjs +1 -2
  202. package/views/system/dict/index.mjs +23 -23
  203. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  204. package/views/system/menu/index.mjs +40 -41
  205. package/views/system/menu/utils.mjs +1 -2
  206. package/views/system/notice/index.mjs +8 -8
  207. package/views/system/post/index.mjs +8 -8
  208. package/views/system/role/index.mjs +43 -43
  209. package/views/system/role/modules/AssignUser.mjs +1 -1
  210. package/views/system/role/modules/SelectDept.mjs +1 -1
  211. package/views/system/role/modules/SelectMenu.mjs +1 -1
  212. package/views/system/role/modules/SelectUser.mjs +1 -1
  213. package/views/system/user/index.mjs +49 -49
  214. package/views/tool/gen/editTable/index.mjs +14 -14
  215. package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
  216. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
  217. package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
  218. package/views/tool/gen/index.mjs +22 -22
  219. package/views/tool/gen/modules/Import.mjs +1 -1
  220. package/views/tool/gen/modules/Preview.mjs +1 -1
  221. package/views/tool/job/index.mjs +1 -1
  222. package/views/tool/job/modules/Log.mjs +1 -1
  223. package/assets/date-picker-CKUanIvh.css +0 -1
  224. package/assets/input-number-DHmV6oBX.css +0 -2
  225. package/assets/provider-yh_xhvsD.css +0 -2
  226. package/assets/scrollbar-CWhno35V.css +0 -1
  227. package/chunks/date-picker-B2wW7DdC.mjs +0 -376
  228. package/chunks/input-number-D6xmAwom.mjs +0 -73
  229. package/chunks/range-input-BIjdk8b6.mjs +0 -109
  230. package/chunks/utils-CR1bJjmo.mjs +0 -126
@@ -1,376 +0,0 @@
1
- import '../assets/css-CZQicoxs.css';import '../assets/date-picker-CKUanIvh.css';/* empty css */
2
- import { t as e } from "./icon-DnBGEq-n.mjs";
3
- import "../components/icon/index.mjs";
4
- import t from "../plugins/autoImport/dayjs/index.mjs";
5
- import { isFalsy as n } from "../utils/boolean.mjs";
6
- import "./utils-CR1bJjmo.mjs";
7
- 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";
8
- import { ElDatePicker as h } from "element-plus";
9
- // ../../packages/dlzn-ui/components/date-picker/src/date-picker.vue
10
- var g = /* @__PURE__ */ a({
11
- inheritAttrs: !1,
12
- __name: "date-picker",
13
- props: {
14
- modelValue: {},
15
- onBlur: {},
16
- onCalendarChange: {},
17
- onChange: {},
18
- onClear: {},
19
- onFocus: {},
20
- onPanelChange: {},
21
- onVisibleChange: {},
22
- status: { default: "default" },
23
- type: { default: "date" },
24
- showNow: { type: Boolean },
25
- showConfirm: { type: Boolean },
26
- showFooter: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- showWeekNumber: { type: Boolean },
31
- ariaLabel: {},
32
- emptyValues: {},
33
- valueOnClear: {},
34
- disabledDate: {},
35
- cellClassName: {},
36
- shortcuts: {},
37
- arrowControl: { type: Boolean },
38
- tabindex: {},
39
- validateEvent: {
40
- type: Boolean,
41
- default: !0
42
- },
43
- unlinkPanels: {
44
- type: Boolean,
45
- default: !0
46
- },
47
- singlePanel: { type: Boolean },
48
- placement: {},
49
- fallbackPlacements: {},
50
- disabledHours: {},
51
- disabledMinutes: {},
52
- disabledSeconds: {},
53
- automaticDropdown: {
54
- type: Boolean,
55
- default: !0
56
- },
57
- id: {},
58
- name: {},
59
- popperClass: {},
60
- popperStyle: {},
61
- format: {},
62
- valueFormat: {},
63
- dateFormat: {},
64
- timeFormat: {},
65
- clearable: {
66
- type: Boolean,
67
- default: !0
68
- },
69
- clearIcon: { default: () => s(e, {
70
- icon: "carbon:close-filled",
71
- size: "16"
72
- }) },
73
- editable: { type: Boolean },
74
- saveOnBlur: {
75
- type: Boolean,
76
- default: void 0
77
- },
78
- prefixIcon: {},
79
- size: {},
80
- readonly: {
81
- type: Boolean,
82
- default: void 0
83
- },
84
- disabled: {
85
- type: Boolean,
86
- default: void 0
87
- },
88
- placeholder: {},
89
- popperOptions: { default: () => ({ modifiers: [{
90
- name: "offset",
91
- options: { offset: () => [0, 8] }
92
- }] }) },
93
- rangeSeparator: {},
94
- startPlaceholder: {},
95
- endPlaceholder: {},
96
- defaultTime: {},
97
- isRange: { type: Boolean }
98
- },
99
- emits: ["update:modelValue"],
100
- setup(e, { emit: a }) {
101
- let g = e, _ = a, v = c("isFormDisabled", r(() => !1)), y = c("isFormReadonly", r(() => !1)), b = d(g.modelValue);
102
- m(() => g.modelValue, (e) => {
103
- b.value = e;
104
- }, { deep: !0 });
105
- function x() {
106
- if (g.defaultTime !== void 0) return g.defaultTime;
107
- switch (g.type) {
108
- case "datetimerange": return [t().startOf("day").toDate(), t().endOf("day").toDate()];
109
- default: return;
110
- }
111
- }
112
- function S() {
113
- if (g.endPlaceholder !== void 0) return g.endPlaceholder;
114
- switch (g.type) {
115
- case "daterange": return "结束日期";
116
- case "datetimerange": return "结束时间";
117
- case "monthrange": return "结束月份";
118
- case "yearrange": return "结束年";
119
- default: return;
120
- }
121
- }
122
- function C() {
123
- if (g.format !== void 0) return g.format;
124
- switch (g.type) {
125
- case "week": return "YYYY年第 ww 周";
126
- default: return;
127
- }
128
- }
129
- function w() {
130
- if (g.placeholder !== void 0) return g.placeholder;
131
- switch (g.type) {
132
- case "datetime": return "请选择时间";
133
- case "month":
134
- case "months": return "请选择月";
135
- case "week": return "请选择周";
136
- case "year":
137
- case "years": return "请选择年";
138
- default: return "请选择日期";
139
- }
140
- }
141
- function T() {
142
- if (g.shortcuts !== void 0) return g.shortcuts;
143
- if (g.disabledDate !== void 0 || g.disabledHours !== void 0 || g.disabledMinutes !== void 0 || g.disabledSeconds !== void 0) return [];
144
- switch (g.type) {
145
- case "date": return [
146
- {
147
- text: "今天",
148
- value: t().toDate()
149
- },
150
- {
151
- text: "昨天",
152
- value: () => t().subtract(1, "day").toDate()
153
- },
154
- {
155
- text: "一周前",
156
- value: () => t().subtract(1, "week").toDate()
157
- }
158
- ];
159
- case "daterange": return [
160
- {
161
- text: "最近一周",
162
- value: () => [t().subtract(1, "week").toDate(), t().toDate()]
163
- },
164
- {
165
- text: "本月",
166
- value: () => [t().startOf("month").toDate(), t().endOf("month").toDate()]
167
- },
168
- {
169
- text: "上一个月",
170
- value: () => [t().subtract(1, "month").startOf("month").toDate(), t().subtract(1, "month").endOf("month").toDate()]
171
- },
172
- {
173
- text: "最近一个月",
174
- value: () => [t().subtract(1, "month").toDate(), t().toDate()]
175
- },
176
- {
177
- text: "最近三个月",
178
- value: () => [t().subtract(3, "month").toDate(), t().toDate()]
179
- },
180
- {
181
- text: "最近半年",
182
- value: () => [t().subtract(6, "month").toDate(), t().toDate()]
183
- },
184
- {
185
- text: "最近一年",
186
- value: () => [t().subtract(1, "year").toDate(), t().toDate()]
187
- },
188
- {
189
- text: "最近两年",
190
- value: () => [t().subtract(2, "year").toDate(), t().toDate()]
191
- },
192
- {
193
- text: "最近三年",
194
- value: () => [t().subtract(3, "year").toDate(), t().toDate()]
195
- }
196
- ];
197
- case "datetime": return [
198
- {
199
- text: "今天",
200
- value: t().toDate()
201
- },
202
- {
203
- text: "今日开始",
204
- value: () => t().startOf("day").toDate()
205
- },
206
- {
207
- text: "今日结束",
208
- value: () => t().endOf("day").toDate()
209
- },
210
- {
211
- text: "昨天",
212
- value: () => t().subtract(1, "day").toDate()
213
- },
214
- {
215
- text: "三天前",
216
- value: () => t().subtract(3, "day").toDate()
217
- },
218
- {
219
- text: "一周前",
220
- value: () => t().subtract(1, "week").toDate()
221
- },
222
- {
223
- text: "一个月前",
224
- value: () => t().subtract(1, "month").toDate()
225
- },
226
- {
227
- text: "本月初",
228
- value: () => t().startOf("month").toDate()
229
- },
230
- {
231
- text: "本月末",
232
- value: () => t().endOf("month").toDate()
233
- }
234
- ];
235
- case "datetimerange": return [
236
- {
237
- text: "今天",
238
- value: () => [t().startOf("day").toDate(), t().endOf("day").toDate()]
239
- },
240
- {
241
- text: "昨天",
242
- value: () => [t().subtract(1, "day").startOf("day").toDate(), t().subtract(1, "day").endOf("day").toDate()]
243
- },
244
- {
245
- text: "最近一周",
246
- value: () => [t().startOf("day").subtract(1, "week").toDate(), t().endOf("day").toDate()]
247
- },
248
- {
249
- text: "本月",
250
- value: () => [t().startOf("month").toDate(), t().endOf("month").toDate()]
251
- },
252
- {
253
- text: "上个月",
254
- value: () => [t().subtract(1, "month").startOf("month").toDate(), t().subtract(1, "month").endOf("month").toDate()]
255
- },
256
- {
257
- text: "最近一个月",
258
- value: () => [t().startOf("day").subtract(1, "month").toDate(), t().endOf("day").toDate()]
259
- },
260
- {
261
- text: "最近三个月",
262
- value: () => [t().startOf("day").subtract(3, "month").toDate(), t().endOf("day").toDate()]
263
- },
264
- {
265
- text: "最近半年",
266
- value: () => [t().startOf("day").subtract(6, "month").toDate(), t().endOf("day").toDate()]
267
- },
268
- {
269
- text: "最近一年",
270
- value: () => [t().startOf("day").subtract(1, "year").toDate(), t().endOf("day").toDate()]
271
- }
272
- ];
273
- case "monthrange": return [
274
- {
275
- text: "本月",
276
- value: [t().toDate(), t().toDate()]
277
- },
278
- {
279
- text: "上月",
280
- value: () => [t().subtract(1, "month").startOf("month").toDate(), t().subtract(1, "month").endOf("month").toDate()]
281
- },
282
- {
283
- text: "今年至今",
284
- value: () => [t().startOf("year").toDate(), t().toDate()]
285
- },
286
- {
287
- text: "最近一个月",
288
- value: () => [t().subtract(1, "month").toDate(), t().toDate()]
289
- },
290
- {
291
- text: "最近三个月",
292
- value: () => [t().subtract(3, "month").toDate(), t().toDate()]
293
- },
294
- {
295
- text: "最近六个月",
296
- value: () => [t().subtract(6, "month").toDate(), t().toDate()]
297
- },
298
- {
299
- text: "最近一年",
300
- value: () => [t().subtract(1, "year").toDate(), t().toDate()]
301
- },
302
- {
303
- text: "最近三年",
304
- value: () => [t().subtract(3, "year").toDate(), t().toDate()]
305
- }
306
- ];
307
- default: return [];
308
- }
309
- }
310
- function E() {
311
- if (g.startPlaceholder !== void 0) return g.startPlaceholder;
312
- switch (g.type) {
313
- case "daterange": return "开始日期";
314
- case "datetimerange": return "开始时间";
315
- case "monthrange": return "开始月份";
316
- case "yearrange": return "开始年";
317
- default: return;
318
- }
319
- }
320
- function D() {
321
- if (g.valueFormat !== void 0) return g.valueFormat;
322
- switch (g.type) {
323
- case "datetime":
324
- case "datetimerange": return "YYYY-MM-DD HH:mm:ss";
325
- case "month":
326
- case "monthrange":
327
- case "months": return "YYYY-MM";
328
- case "year":
329
- case "yearrange":
330
- case "years": return "YYYY";
331
- default: return "YYYY-MM-DD";
332
- }
333
- }
334
- let O = r(() => {
335
- let e = {
336
- ...g,
337
- defaultTime: x(),
338
- disabled: g.disabled ?? v.value,
339
- endPlaceholder: S(),
340
- format: C(),
341
- placeholder: w(),
342
- readonly: g.readonly ?? y.value,
343
- shortcuts: T(),
344
- startPlaceholder: E(),
345
- valueFormat: D()
346
- };
347
- return Object.keys(e).forEach((t) => {
348
- e[t] === void 0 && delete e[t];
349
- }), e;
350
- }), k = o();
351
- function A(e) {
352
- k.exposed = e ?? {};
353
- }
354
- return (t, r) => (u(), i(f(s(p(h), l(t.$attrs, {
355
- ...O.value,
356
- modelValue: b.value,
357
- "onUpdate:modelValue": (e) => {
358
- b.value = e;
359
- },
360
- onChange: (t) => {
361
- let r = t;
362
- p(n)(t) && (r = [
363
- "daterange",
364
- "dates",
365
- "datetimerange",
366
- "monthrange",
367
- "months",
368
- "yearrange",
369
- "years"
370
- ].includes(e.type) ? [] : ""), _("update:modelValue", r), g.onChange?.(r);
371
- },
372
- ref: A
373
- }, { class: `t-is-${e.status}` }), t.$slots))));
374
- }
375
- });
376
- export { g as t };
@@ -1,73 +0,0 @@
1
- import "./utils-CR1bJjmo.mjs";
2
- import { isFalsy as e } from "../utils/boolean.mjs";
3
- import { formatNumber as t } from "../utils/number.mjs";
4
- import { t as n } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
5
- import { computed as r, createBlock as i, defineComponent as a, getCurrentInstance as o, h as s, mergeDefaults as c, mergeProps as l, openBlock as u, resolveDynamicComponent as d, unref as f } from "vue";
6
- import { InputNumber as p } from "tdesign-vue-next";
7
- import '../assets/input-number-DHmV6oBX.css';// ../../packages/dlzn-ui/components/input-number/src/input-number.ts
8
- var m = {
9
- autoWidth: void 0,
10
- decimalPlaces: 2,
11
- disabled: void 0,
12
- min: 0,
13
- readonly: void 0,
14
- theme: "normal",
15
- useGrouping: !0
16
- }, h = /*#__PURE__*/ n(/* @__PURE__ */ a({
17
- inheritAttrs: !1,
18
- name: "TInputNumber",
19
- __name: "input-number",
20
- props: /*@__PURE__*/ c({
21
- modelValue: {},
22
- theme: {},
23
- useGrouping: { type: Boolean },
24
- align: {},
25
- allowInputOverLimit: { type: Boolean },
26
- autoWidth: { type: Boolean },
27
- autofocus: { type: Boolean },
28
- decimalPlaces: {},
29
- disabled: { type: Boolean },
30
- format: { type: Function },
31
- inputProps: {},
32
- label: {},
33
- largeNumber: { type: Boolean },
34
- max: {},
35
- min: {},
36
- placeholder: {},
37
- readonly: { type: Boolean },
38
- size: {},
39
- status: {},
40
- step: {},
41
- suffix: {},
42
- tips: {},
43
- onBlur: { type: Function },
44
- onChange: { type: Function },
45
- onEnter: { type: Function },
46
- onFocus: { type: Function },
47
- onKeydown: { type: Function },
48
- onKeypress: { type: Function },
49
- onKeyup: { type: Function },
50
- onValidate: { type: Function }
51
- }, m),
52
- emits: ["update:modelValue"],
53
- setup(n, { emit: a }) {
54
- let c = n, m = a, h = r(() => {
55
- let e = { ...c };
56
- return e.autoWidth === void 0 && e.theme === "row" && (e.autoWidth = !0), e.useGrouping === !0 && e.format === void 0 && (e.format = (e) => t(e)), delete e.useGrouping, Object.keys(e).forEach((t) => {
57
- e[t] === void 0 && delete e[t];
58
- }), e;
59
- }), g = o();
60
- function _(e) {
61
- g.exposed = e ?? {};
62
- }
63
- return (t, n) => (u(), i(d(s(f(p), l(t.$attrs, {
64
- ...h.value,
65
- onChange: (...t) => {
66
- let [n, ...r] = t, i = f(e)(n) ? "" : n;
67
- m("update:modelValue", i), c.onChange?.(i, ...r);
68
- },
69
- ref: _
70
- }), t.$slots))));
71
- }
72
- }), [["__scopeId", "data-v-73c206ea"]]);
73
- export { m as n, h as t };
@@ -1,109 +0,0 @@
1
- import "./utils-CR1bJjmo.mjs";
2
- import { isFalsy as e } from "../utils/boolean.mjs";
3
- import { formatNumber as t } from "../utils/number.mjs";
4
- import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeModels as s, mergeProps as c, openBlock as l, resolveDynamicComponent as u, unref as d, useModel as f } from "vue";
5
- import { RangeInput as p } from "tdesign-vue-next";
6
- // ../../packages/dlzn-ui/components/range-input/src/range-input.vue
7
- var m = /* @__PURE__ */ i({
8
- inheritAttrs: !1,
9
- name: "TRangeInput",
10
- __name: "range-input",
11
- props: /*@__PURE__*/ s({
12
- decimalPlaces: { default: 2 },
13
- isNumberRange: {
14
- type: Boolean,
15
- default: !0
16
- },
17
- max: { default: Infinity },
18
- min: { default: 0 },
19
- modelValue: {},
20
- activeIndex: {},
21
- borderless: { type: Boolean },
22
- clearable: { type: Boolean },
23
- disabled: {
24
- type: [Boolean, Array],
25
- default: void 0
26
- },
27
- format: {},
28
- inputProps: {},
29
- label: {},
30
- placeholder: {},
31
- prefixIcon: {},
32
- readonly: {
33
- type: Boolean,
34
- default: void 0
35
- },
36
- separator: {},
37
- showClearIconOnEmpty: { type: Boolean },
38
- size: {},
39
- status: {},
40
- suffix: {},
41
- suffixIcon: {},
42
- tips: {},
43
- onBlur: {},
44
- onChange: {},
45
- onClear: {},
46
- onClick: {},
47
- onEnter: {},
48
- onFocus: {},
49
- onMouseenter: {},
50
- onMouseleave: {}
51
- }, {
52
- modelValue: { default: () => [] },
53
- modelModifiers: {}
54
- }),
55
- emits: ["update:modelValue"],
56
- setup(i) {
57
- let s = i;
58
- function m(e, n = !0) {
59
- return e.map((e) => {
60
- let r = Number.parseFloat(String(e));
61
- if (Number.isFinite(r) === !1 || e === "") return "";
62
- if (String(e).endsWith(".") && !n) return `${r}.`;
63
- let i = Number(t(r, {
64
- maximumFractionDigits: n ? s.decimalPlaces : 100,
65
- useGrouping: !1
66
- }));
67
- return n ? Math.min(Math.max(i, s.min), s.max) : i;
68
- });
69
- }
70
- let h = f(i, "modelValue", {
71
- get: (e) => s.isNumberRange ? m(e, !1) : e,
72
- set: (e) => {
73
- if (s.isNumberRange) {
74
- let t = m(e, !1);
75
- return s.onChange?.(t), t;
76
- }
77
- return e;
78
- }
79
- }), g = n(() => {
80
- let e = { ...s };
81
- return delete e.isNumberRange, delete e.decimalPlaces, delete e.max, delete e.min, Object.keys(e).forEach((t) => {
82
- e[t] === void 0 && delete e[t];
83
- }), e;
84
- }), _ = a();
85
- function v(e) {
86
- _.exposed = e ?? {};
87
- }
88
- return (t, n) => (l(), r(u(o(d(p), c(t.$attrs, {
89
- ...g.value,
90
- ref: v,
91
- modelValue: h.value,
92
- onChange: (...e) => {
93
- i.isNumberRange ? h.value = e[0] : i.onChange?.(...e);
94
- },
95
- onBlur: (...t) => {
96
- if (i.isNumberRange) {
97
- let n = t[0];
98
- if (n.every((t) => !d(e)(t)) && Number(n[0]) > Number(n[1])) {
99
- h.value = m([n[0], n[0]]), i.onBlur?.(...t);
100
- return;
101
- }
102
- h.value = m([n[0], n[1]]);
103
- }
104
- i.onBlur?.(...t);
105
- }
106
- }), t.$slots))));
107
- }
108
- });
109
- export { m as t };
@@ -1,126 +0,0 @@
1
- import e from "../plugins/autoImport/$msg/index.mjs";
2
- import { getAudioElement as t, releaseAudioElement as n } from "../utils/audio/getAudioElement.mjs";
3
- import "../utils/boolean.mjs";
4
- import "../utils/number.mjs";
5
- import { stringDisplay as r } from "../utils/string.mjs";
6
- import "../utils/tool.mjs";
7
- import { ref as i } from "vue";
8
- // ../../packages/dlzn-ui/utils/audio/playMediaStream.ts
9
- var a = class {
10
- stream;
11
- onDisposed;
12
- isLoading = i(!1);
13
- isPlaying = i(!1);
14
- audioElement;
15
- disposed = !1;
16
- tracks;
17
- constructor(n, r) {
18
- this.stream = n, this.onDisposed = r, this.tracks = n.getAudioTracks(), this.audioElement = t();
19
- for (let e of this.tracks) e.addEventListener("ended", this.onTrackEnded);
20
- this.audioElement.srcObject = n, this.isLoading.value = !0, this.audioElement.play().then(() => {
21
- this.isPlaying.value = !0;
22
- }).catch(() => {
23
- e.error("音频播放失败"), this.dispose();
24
- }).finally(() => {
25
- this.isLoading.value = !1;
26
- });
27
- }
28
- dispose() {
29
- if (this.isPlaying.value = !1, !this.disposed) {
30
- this.disposed = !0;
31
- for (let e of this.tracks) e.removeEventListener("ended", this.onTrackEnded);
32
- n(this.audioElement), this.onDisposed(this.stream);
33
- }
34
- }
35
- onTrackEnded = () => {
36
- this.dispose();
37
- };
38
- }, o = new class {
39
- players = /* @__PURE__ */ new Map();
40
- play(e, t) {
41
- if (this.players.has(e)) {
42
- let t = this.players.get(e);
43
- return {
44
- isLoading: t.isLoading,
45
- isPlaying: t.isPlaying
46
- };
47
- }
48
- t && this.release();
49
- let n = new a(e, (e) => {
50
- this.players.delete(e);
51
- });
52
- return this.players.set(e, n), {
53
- isLoading: n.isLoading,
54
- isPlaying: n.isPlaying
55
- };
56
- }
57
- release(e) {
58
- if (e !== void 0) this.players.get(e)?.dispose();
59
- else for (let e of [...this.players.values()]) e.dispose();
60
- }
61
- }();
62
- function s(e, t = !0) {
63
- return o.play(e, t);
64
- }
65
- function c(e) {
66
- o.release(e);
67
- }
68
- // ../../packages/dlzn-ui/utils/audio/playUrl.ts
69
- var l = class {
70
- url;
71
- onDisposed;
72
- isLoading = i(!1);
73
- isPlaying = i(!1);
74
- audioElement;
75
- disposed = !1;
76
- constructor(n, r) {
77
- this.url = n, this.onDisposed = r, this.audioElement = t(), this.audioElement.addEventListener("ended", this.onEnded), this.audioElement.src = n, this.isLoading.value = !0, this.audioElement.play().then(() => {
78
- this.isPlaying.value = !0;
79
- }).catch(() => {
80
- e.error("音频播放失败"), this.dispose();
81
- }).finally(() => {
82
- this.isLoading.value = !1;
83
- });
84
- }
85
- dispose() {
86
- this.isPlaying.value = !1, this.disposed || (this.disposed = !0, this.audioElement.removeEventListener("ended", this.onEnded), n(this.audioElement), this.onDisposed(this.url));
87
- }
88
- onEnded = () => {
89
- this.dispose();
90
- };
91
- }, u = new class {
92
- players = /* @__PURE__ */ new Map();
93
- play(e, t) {
94
- if (this.players.has(e)) {
95
- let t = this.players.get(e);
96
- return {
97
- isLoading: t.isLoading,
98
- isPlaying: t.isPlaying
99
- };
100
- }
101
- t && this.release();
102
- let n = new l(e, (e) => {
103
- this.players.delete(e);
104
- });
105
- return this.players.set(e, n), {
106
- isLoading: n.isLoading,
107
- isPlaying: n.isPlaying
108
- };
109
- }
110
- release(e) {
111
- if (e !== void 0) this.players.get(e)?.dispose();
112
- else for (let e of [...this.players.values()]) e.dispose();
113
- }
114
- }();
115
- function d(e, t = !0) {
116
- return u.play(e, t);
117
- }
118
- function f(e) {
119
- u.release(e);
120
- }
121
- // ../../packages/dlzn-ui/utils/gather.ts
122
- function p(e, t) {
123
- let n = Array.isArray(t), i = (n ? t : [t]).map((t) => e.find((e) => String(e.value) === String(t))?.label ?? r(t));
124
- return n ? i : i[0];
125
- }
126
- export { c as a, s as i, d as n, f as r, p as t };