dlzn-ui 2.0.42 → 2.0.44

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 (183) hide show
  1. package/assets/Picker-BMwN00tM.css +1 -0
  2. package/assets/css-Ctf0Amkf.css +1 -0
  3. package/chunks/{AssignUser-CI1hv7zm.mjs → AssignUser-ag8Zz6lZ.mjs} +3 -3
  4. package/chunks/{Common-BiNl0t80.mjs → Common-BVhvn8ey.mjs} +2 -2
  5. package/chunks/{Day-iiU2bfSn.mjs → Day-Bsqlho18.mjs} +2 -2
  6. package/chunks/{DictTypeDetail-SpKe9j4h.mjs → DictTypeDetail-CGtRLsz1.mjs} +2 -2
  7. package/chunks/{Hour-CUOdal3S.mjs → Hour-CZxgu-gr.mjs} +1 -1
  8. package/chunks/{Index-bEWcnIHJ.mjs → Index-B0jtPG4z.mjs} +1 -1
  9. package/chunks/{Index-Cu2Ud84o.mjs → Index-B5dltuvs.mjs} +1 -1
  10. package/chunks/{Index-Bvu1c8Oy.mjs → Index-BFyst9Rj.mjs} +1 -1
  11. package/chunks/{Index-B-IRDS1Z.mjs → Index-BPfxS1Ur.mjs} +1 -1
  12. package/chunks/{Index-BwWS0oPl.mjs → Index-BVighfGs.mjs} +5 -3
  13. package/chunks/{Index-BMg2Bxvj.mjs → Index-BZloUL93.mjs} +1 -1
  14. package/chunks/{Index-AH0WCRJO.mjs → Index-CoNNokMv.mjs} +8 -8
  15. package/chunks/{Index-BChP9CTL.mjs → Index-DOMlymIc.mjs} +1 -1
  16. package/chunks/{Index-Bye0GY_j.mjs → Index-DlS664Iz.mjs} +1 -1
  17. package/chunks/{Index-CgJ94bEi.mjs → Index-DvWanFOZ.mjs} +1 -1
  18. package/chunks/{Index-BDidP0_Z.mjs → Index-R7H-nvMs.mjs} +1 -1
  19. package/chunks/{IndexItem-D_ZeRKlH.mjs → IndexItem-sPXuxTUs.mjs} +16 -16
  20. package/chunks/{Log-B72TP2Kr.mjs → Log-Br8Cnim8.mjs} +2 -2
  21. package/chunks/{LoginBg-HtZ8Lyev.mjs → LoginBg-BW263459.mjs} +1 -1
  22. package/chunks/{Minute-BLIvzH46.mjs → Minute-CQuKQcXO.mjs} +1 -1
  23. package/chunks/{Month-DzGi1B-x.mjs → Month-5cx6suVd.mjs} +1 -1
  24. package/chunks/{Second-DwM7HaZz.mjs → Second-DA6oyNKU.mjs} +1 -1
  25. package/chunks/{SelectDept-_EyrHhI9.mjs → SelectDept-CQRWjQ8n.mjs} +2 -2
  26. package/chunks/{SelectMenu-BGTtgamJ.mjs → SelectMenu-BNj0Lni8.mjs} +2 -2
  27. package/chunks/{SelectUser-DLapii8R.mjs → SelectUser-C6hO7rb-.mjs} +2 -2
  28. package/chunks/{UserInfo-CfJFU4J9.mjs → UserInfo-CAUjgfdS.mjs} +1 -1
  29. package/chunks/Wrapper-Boiyneqd.mjs +42 -0
  30. package/chunks/{app-BujKzbGI.mjs → app-BPNk1ofJ.mjs} +1 -1
  31. package/chunks/{custom-page-list-DjIGvqzk.mjs → custom-page-list-BHR3DhVT.mjs} +4 -4
  32. package/chunks/{custom-page-table-wy-8H6kG.mjs → custom-page-table-BxrEvdku.mjs} +2 -2
  33. package/chunks/{date-picker-D15OhWnK.mjs → date-picker-D-MGwALF.mjs} +2 -2
  34. package/chunks/{input-number-q9JM7-Uo.mjs → input-number-7Y1iWPPV.mjs} +12 -12
  35. package/chunks/{overview-CTQGBB2-.mjs → overview-DT-7oasE.mjs} +1 -1
  36. package/chunks/{page-list-DkOcgqMW.mjs → page-list-vyKjJFLU.mjs} +3 -3
  37. package/chunks/{page-query-CHFRZRhi.mjs → page-query-CPBOBzEz.mjs} +1 -1
  38. package/chunks/{page-table-C4tKerQw.mjs → page-table-IaiiKrWo.mjs} +4 -4
  39. package/chunks/{pagination-BxkLAF3U.mjs → pagination-u4S0HaQV.mjs} +1 -1
  40. package/chunks/{provider-DF-mIyi1.mjs → provider-DgBBnNgY.mjs} +499 -507
  41. package/chunks/{range-input-CkZteidJ.mjs → range-input-PIfE-AxB.mjs} +1 -1
  42. package/chunks/{scrollbar-CI1mysNQ.mjs → scrollbar-CoERe4kE.mjs} +1 -1
  43. package/chunks/{table-DfTSS9S4.mjs → table-DMUIy_b9.mjs} +15 -15
  44. package/chunks/utils-ag05P503.mjs +9 -0
  45. package/components/app/index.mjs +1 -1
  46. package/components/app/src/app.mjs +1 -1
  47. package/components/button/index.mjs +1 -1
  48. package/components/button/src/button.mjs +1 -1
  49. package/components/checkbox-group/index.mjs +1 -1
  50. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  51. package/components/cron/index.mjs +1 -1
  52. package/components/cron/src/Common.mjs +1 -1
  53. package/components/cron/src/Day.mjs +1 -1
  54. package/components/cron/src/Hour.mjs +1 -1
  55. package/components/cron/src/Minute.mjs +1 -1
  56. package/components/cron/src/Month.mjs +1 -1
  57. package/components/cron/src/Picker.mjs +73 -55
  58. package/components/cron/src/Second.mjs +1 -1
  59. package/components/cron/src/cron.mjs +1 -1
  60. package/components/custom-page-list/index.mjs +1 -1
  61. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  62. package/components/custom-page-table/index.mjs +1 -1
  63. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  64. package/components/date-picker/index.mjs +1 -1
  65. package/components/date-picker/src/date-picker.mjs +1 -1
  66. package/components/form/index.mjs +1 -1
  67. package/components/form/src/form.mjs +1 -1
  68. package/components/index.mjs +13 -13
  69. package/components/input-number/index.mjs +1 -1
  70. package/components/input-number/src/input-number.mjs +1 -1
  71. package/components/overview/index.mjs +1 -1
  72. package/components/overview/src/DicLabel/Index.mjs +1 -1
  73. package/components/overview/src/IndexItem.mjs +1 -1
  74. package/components/overview/src/overview.mjs +1 -1
  75. package/components/page-list/index.mjs +1 -1
  76. package/components/page-list/src/page-list.d.ts +5 -5
  77. package/components/page-list/src/page-list.mjs +1 -1
  78. package/components/page-query/index.mjs +1 -1
  79. package/components/page-query/src/page-query.mjs +1 -1
  80. package/components/page-table/index.mjs +1 -1
  81. package/components/page-table/src/page-table.mjs +1 -1
  82. package/components/pagination/index.mjs +1 -1
  83. package/components/pagination/src/pagination.mjs +1 -1
  84. package/components/provider/index.mjs +1 -1
  85. package/components/provider/src/Provider.mjs +1 -1
  86. package/components/radio-group/index.mjs +1 -1
  87. package/components/radio-group/src/radio-group.mjs +1 -1
  88. package/components/range-input/index.mjs +1 -1
  89. package/components/range-input/src/range-input.mjs +1 -1
  90. package/components/scrollbar/index.mjs +1 -1
  91. package/components/scrollbar/src/scrollbar.mjs +1 -1
  92. package/components/select/index.mjs +1 -1
  93. package/components/select/src/select.mjs +1 -1
  94. package/components/select-sys-user/index.mjs +1 -1
  95. package/components/select-sys-user/src/Picker.mjs +2 -2
  96. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  97. package/components/table/index.mjs +1 -1
  98. package/components/table/src/table.mjs +1 -1
  99. package/components/tree/index.mjs +1 -1
  100. package/components/tree/src/tree.d.ts +4 -4
  101. package/components/tree/src/tree.mjs +1 -1
  102. package/components/tree/src/tree.vue.d.ts +1 -2
  103. package/components/tree-select/index.mjs +1 -1
  104. package/components/tree-select/src/tree-select.mjs +1 -1
  105. package/components/upload/index.mjs +1 -1
  106. package/components/upload/src/upload.mjs +1 -1
  107. package/hooks/useDicOptions/index.mjs +1 -1
  108. package/hooks/useLabel/index.d.ts +5 -0
  109. package/hooks/useLabel/index.mjs +17 -0
  110. package/hooks/useList/index.d.ts +1 -1
  111. package/hooks/useList/index.mjs +20 -30
  112. package/hooks/useSysUser/index.mjs +1 -1
  113. package/layout/Entry.mjs +1 -1
  114. package/layout/Home.mjs +2 -2
  115. package/layout/Login.mjs +2 -2
  116. package/layout/NotFound.mjs +1 -1
  117. package/layout/modules/Aside.mjs +1 -1
  118. package/layout/modules/Breadcrumb.mjs +1 -1
  119. package/layout/modules/Header.mjs +1 -1
  120. package/layout/modules/LoginBg.mjs +1 -1
  121. package/layout/profile/Index.mjs +3 -3
  122. package/layout/profile/ResetPwd.mjs +1 -1
  123. package/layout/profile/UserInfo.mjs +1 -1
  124. package/main.mjs +2 -2
  125. package/package.json +2 -2
  126. package/plugins/autoImport/$alova/index.mjs +1 -1
  127. package/plugins/autoImport/$confirm/index.mjs +1 -1
  128. package/plugins/autoImport/$dialog/index.mjs +1 -1
  129. package/plugins/autoImport/$drawer/index.mjs +1 -1
  130. package/plugins/captcha/captcha.mjs +2 -2
  131. package/plugins/captcha/index.mjs +1 -1
  132. package/plugins/directive/index.mjs +7 -7
  133. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  134. package/plugins/tableRenders/Wrapper.mjs +1 -1
  135. package/plugins/tableRenders/Wrapper.vue.d.ts +1 -3
  136. package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -1
  137. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  138. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  139. package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -1
  140. package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -1
  141. package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
  142. package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
  143. package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
  144. package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
  145. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  146. package/plugins/tableRenders/cell/index.mjs +11 -11
  147. package/plugins/tableRenders/title/index.mjs +1 -1
  148. package/proj-template/.vscode/settings.json +1 -0
  149. package/router/index.mjs +1 -1
  150. package/store/modules/common.mjs +1 -1
  151. package/store/modules/login.mjs +1 -1
  152. package/store/modules/recentRouters.mjs +1 -1
  153. package/store/modules/router.mjs +1 -1
  154. package/store/modules/user.mjs +1 -1
  155. package/utils/dom.d.ts +1 -0
  156. package/utils/dom.mjs +7 -0
  157. package/utils/gather.d.ts +7 -0
  158. package/utils/gather.mjs +2 -0
  159. package/utils/index.d.ts +2 -0
  160. package/utils/index.mjs +7 -5
  161. package/views/monitor/logininfor/index.mjs +2 -2
  162. package/views/monitor/online/index.mjs +2 -2
  163. package/views/monitor/operlog/index.mjs +2 -2
  164. package/views/monitor/server/index.mjs +2 -3
  165. package/views/system/config/index.mjs +2 -2
  166. package/views/system/dept/index.mjs +17 -17
  167. package/views/system/dept/utils.mjs +2 -2
  168. package/views/system/dict/index.mjs +3 -3
  169. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  170. package/views/system/menu/index.mjs +15 -15
  171. package/views/system/notice/index.mjs +2 -2
  172. package/views/system/post/index.mjs +2 -2
  173. package/views/system/role/index.mjs +5 -5
  174. package/views/system/role/modules/AssignUser.mjs +1 -1
  175. package/views/system/role/modules/SelectDept.mjs +1 -1
  176. package/views/system/role/modules/SelectMenu.mjs +1 -1
  177. package/views/system/role/modules/SelectUser.mjs +1 -1
  178. package/views/system/user/index.mjs +23 -23
  179. package/views/tool/job/index.mjs +3 -3
  180. package/views/tool/job/modules/Log.mjs +1 -1
  181. package/assets/Picker-CBqZNv2a.css +0 -1
  182. package/assets/css-BPkXehJY.css +0 -1
  183. package/chunks/Wrapper-C6BtJDSa.mjs +0 -47
@@ -1,6 +1,6 @@
1
1
  import { isFalsy as e } from "../utils/boolean.mjs";
2
+ import "./utils-ag05P503.mjs";
2
3
  import { formatNumber as t } from "../utils/number.mjs";
3
- import "../utils/index.mjs";
4
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
5
  import { RangeInput as p } from "tdesign-vue-next";
6
6
  //#endregion
@@ -1,4 +1,4 @@
1
- import '../assets/css-BPkXehJY.css';import '../assets/scrollbar-CWhno35V.css';/* empty css */
1
+ import '../assets/css-Ctf0Amkf.css';import '../assets/scrollbar-CWhno35V.css';/* empty css */
2
2
  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";
3
3
  import { ElScrollbar as l } from "element-plus";
4
4
  //#endregion
@@ -1,11 +1,11 @@
1
- import { I as e, _ as t, n } from "./provider-DF-mIyi1.mjs";
1
+ import { I as e, _ as t, n } from "./provider-DgBBnNgY.mjs";
2
2
  import { t as r } from "./icon-COjp1yrx.mjs";
3
3
  import "../components/icon/index.mjs";
4
4
  import { n as ee } from "./useAppContext-D47amIp5.mjs";
5
+ import { isFalsy as i } from "../utils/boolean.mjs";
6
+ import "./utils-ag05P503.mjs";
5
7
  import te from "../hooks/useMQ/index.mjs";
6
- import { t as i } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
7
- import { isFalsy as a } from "../utils/boolean.mjs";
8
- import "../utils/index.mjs";
8
+ import { t as a } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
9
9
  import { getCellRender as ne } from "../plugins/tableRenders/cell/index.mjs";
10
10
  import { getTitleRender as re } from "../plugins/tableRenders/title/index.mjs";
11
11
  import { Teleport as ie, computed as o, createBlock as s, createCommentVNode as c, createElementVNode as l, createSlots as ae, createVNode as u, defineComponent as d, getCurrentInstance as oe, guardReactiveProps as f, h as p, mergeDefaults as m, mergeProps as h, nextTick as se, normalizeClass as ce, normalizeProps as g, onMounted as le, onUnmounted as ue, openBlock as _, provide as v, ref as y, renderList as de, renderSlot as b, resolveDynamicComponent as fe, unref as x, useCssVars as pe, useTemplateRef as me, watch as S, withCtx as C } from "vue";
@@ -45,7 +45,7 @@ var D = {
45
45
  indent: 41,
46
46
  treeNodeColumnIndex: 0
47
47
  })
48
- }, xe = { class: "table_operations_wrapper items-end justify-end gap-3" }, Se = { class: "flex flex-1 items-end" }, O = /*#__PURE__*/ i(/* @__PURE__ */ d({
48
+ }, xe = { class: "table_operations_wrapper items-end justify-end gap-3" }, Se = { class: "flex flex-1 items-end" }, O = /*#__PURE__*/ a(/* @__PURE__ */ d({
49
49
  inheritAttrs: !1,
50
50
  __name: "table",
51
51
  props: /*@__PURE__*/ m({
@@ -176,15 +176,15 @@ var D = {
176
176
  onScrollX: { type: Function },
177
177
  onScrollY: { type: Function }
178
178
  }, D),
179
- setup(i, { expose: d }) {
179
+ setup(a, { expose: d }) {
180
180
  pe((e) => ({
181
181
  v01eb5fec: x(J),
182
182
  v3e8e080c: x(Y),
183
183
  v38306880: x(X)
184
184
  }));
185
- let m = i, D = be();
185
+ let m = a, D = be();
186
186
  function O(e) {
187
- let t = e.find((e) => a(e.colKey));
187
+ let t = e.find((e) => i(e.colKey));
188
188
  if (t !== void 0) return `列的colKey不能为空: ${JSON.stringify(t)}`;
189
189
  let n = e.find((t, n) => e.findIndex((e) => e.colKey === t.colKey) !== n);
190
190
  return n === void 0 || `列的colKey不能重复: ${JSON.stringify(n)}`;
@@ -214,7 +214,7 @@ var D = {
214
214
  S(() => O(m.columns), (e) => {
215
215
  e !== !0 && ee.error(e);
216
216
  }, { immediate: !0 });
217
- let A = o(() => m.data.map((e, t) => Object.assign(e, { _ROW_KEY: ye(String(t)) }))), j = y({}), M = T(j, 600), N = {}, P = {}, F = y([]), I = o(() => k.value.filter((e) => !a(e.title) && !["row-select", "serial-number"].includes(e.colKey) && !e.colKey.startsWith("_")).map((e) => ({
217
+ let A = o(() => m.data.map((e, t) => Object.assign(e, { _ROW_KEY: ye(String(t)) }))), j = y({}), M = T(j, 600), N = {}, P = {}, F = y([]), I = o(() => k.value.filter((e) => !i(e.title) && !["row-select", "serial-number"].includes(e.colKey) && !e.colKey.startsWith("_")).map((e) => ({
218
218
  label: e.title,
219
219
  value: e.colKey
220
220
  }))), L = o(() => I.value.map((e) => e.value).join("_")), R = _e(L, []);
@@ -314,7 +314,7 @@ var D = {
314
314
  disabled: !H.value,
315
315
  to: "#app"
316
316
  }, [l("div", h({ class: ["flex w-full flex-col gap-3", {
317
- "flex-1 overflow-y-auto": i.flexHeight || H.value,
317
+ "flex-1 overflow-y-auto": a.flexHeight || H.value,
318
318
  "full_screen bg-(--td-bg-color-container) p-4": H.value,
319
319
  transform_tfoot: x(X) > 0
320
320
  }] }, e.$attrs), [
@@ -323,7 +323,7 @@ var D = {
323
323
  columns: B.value,
324
324
  data: A.value
325
325
  })), void 0, !0)]),
326
- i.showColumnConfigBtn ? (_(), s(x(w), {
326
+ a.showColumnConfigBtn ? (_(), s(x(w), {
327
327
  key: 0,
328
328
  content: "列显示配置"
329
329
  }, {
@@ -337,7 +337,7 @@ var D = {
337
337
  })]),
338
338
  _: 1
339
339
  })) : c("v-if", !0),
340
- i.showToggleFullscreenBtn ? (_(), s(x(w), {
340
+ a.showToggleFullscreenBtn ? (_(), s(x(w), {
341
341
  key: 1,
342
342
  content: H.value ? "退出全屏" : "全屏显示"
343
343
  }, {
@@ -360,14 +360,14 @@ var D = {
360
360
  l("div", {
361
361
  ref_key: "tableParentRef",
362
362
  ref: U,
363
- class: ce(["table_parent", { "flex-1 overflow-y-hidden": i.flexHeight || H.value }])
363
+ class: ce(["table_parent", { "flex-1 overflow-y-hidden": a.flexHeight || H.value }])
364
364
  }, [(_(), s(fe(p(x(ge), h({}, {
365
365
  ...V.value,
366
366
  ref: Ae,
367
367
  columns: B.value,
368
368
  data: A.value,
369
- height: i.flexHeight || H.value ? x(Ee) : V.value.height,
370
- maxHeight: i.flexHeight || H.value ? void 0 : V.value.maxHeight,
369
+ height: a.flexHeight || H.value ? x(Ee) : V.value.height,
370
+ maxHeight: a.flexHeight || H.value ? void 0 : V.value.maxHeight,
371
371
  resizable: V.value.bordered ? V.value.resizable : !1
372
372
  }))), {
373
373
  "selected-row-keys": Q.value,
@@ -0,0 +1,9 @@
1
+ import { stringDisplay as e } from "../utils/string.mjs";
2
+ import "../utils/tool.mjs";
3
+ //#region ../../packages/dlzn-ui/utils/gather.ts
4
+ function t(t, n) {
5
+ let r = Array.isArray(n), i = (r ? n : [n]).map((n) => t.find((e) => String(e.value) === String(n))?.label ?? e(n));
6
+ return r ? i : i[0];
7
+ }
8
+ //#endregion
9
+ export { t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/app-BujKzbGI.mjs";
1
+ import { t as e } from "../../chunks/app-BPNk1ofJ.mjs";
2
2
  export { e as TApp };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/app-BujKzbGI.mjs";
1
+ import { t as e } from "../../../chunks/app-BPNk1ofJ.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { W as e, n as t } from "../../chunks/provider-DF-mIyi1.mjs";
1
+ import { W as e, n as t } from "../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { t as TButton, e as buttonPropsInit };
@@ -1,2 +1,2 @@
1
- import { n as e } from "../../../chunks/provider-DF-mIyi1.mjs";
1
+ import { n as e } from "../../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { _ as e } from "../../chunks/provider-DF-mIyi1.mjs";
1
+ import { _ as e } from "../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { e as TCheckboxGroup };
@@ -1,2 +1,2 @@
1
- import { _ as e } from "../../../chunks/provider-DF-mIyi1.mjs";
1
+ import { _ as e } from "../../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { g as e } from "../../chunks/provider-DF-mIyi1.mjs";
1
+ import { g as e } from "../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { e as TCron };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Common-BiNl0t80.mjs";
1
+ import { t as e } from "../../../chunks/Common-BVhvn8ey.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Day-iiU2bfSn.mjs";
1
+ import { t as e } from "../../../chunks/Day-Bsqlho18.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Hour-CUOdal3S.mjs";
1
+ import { t as e } from "../../../chunks/Hour-CZxgu-gr.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Minute-BLIvzH46.mjs";
1
+ import { t as e } from "../../../chunks/Minute-CQuKQcXO.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Month-DzGi1B-x.mjs";
1
+ import { t as e } from "../../../chunks/Month-5cx6suVd.mjs";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { o as e } from "../../../chunks/provider-DF-mIyi1.mjs";
1
+ import { o as e } from "../../../chunks/provider-DgBBnNgY.mjs";
2
2
  import t from "../../../plugins/autoImport/$msg/index.mjs";
3
3
  import { t as n } from "../../../chunks/plugin-vue_export-helper-B3ysoDQm.mjs";
4
4
  import { t as r } from "../../../chunks/input-UQjpNb61.mjs";
@@ -8,18 +8,18 @@ import { t as a } from "../../../chunks/textarea-CYirMH7f.mjs";
8
8
  import "../../textarea/index.mjs";
9
9
  import { t as o } from "../../../chunks/tab-panel-yh4fFZ2r.mjs";
10
10
  import "../../tab-panel/index.mjs";
11
- import { t as s } from "../../../chunks/Day-iiU2bfSn.mjs";
12
- import { t as c } from "../../../chunks/Hour-CUOdal3S.mjs";
13
- import { t as l } from "../../../chunks/Minute-BLIvzH46.mjs";
14
- import { t as u } from "../../../chunks/Month-DzGi1B-x.mjs";
15
- import { t as d } from "../../../chunks/Second-DwM7HaZz.mjs";
11
+ import { t as s } from "../../../chunks/Day-Bsqlho18.mjs";
12
+ import { t as c } from "../../../chunks/Hour-CZxgu-gr.mjs";
13
+ import { t as l } from "../../../chunks/Minute-CQuKQcXO.mjs";
14
+ import { t as u } from "../../../chunks/Month-5cx6suVd.mjs";
15
+ import { t as d } from "../../../chunks/Second-DA6oyNKU.mjs";
16
16
  import { computed as f, createBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, openBlock as _, ref as v, unref as y, watch as b, withCtx as x } from "vue";
17
17
  import { Tabs as S } from "tdesign-vue-next";
18
- import { CronosExpression as C, validate as w } from "cronosjs";
19
- import T from "cronstrue";
18
+ import { Cron as C } from "croner";
19
+ import w from "cronstrue";
20
20
  import "cronstrue/locales/zh_CN";
21
- import '../../../assets/Picker-CBqZNv2a.css';//#region ../../packages/dlzn-ui/components/cron/src/Picker.vue?vue&type=script&setup=true&lang.ts
22
- var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { class: "row-span-4 flex flex-col gap-1" }, k = "0 * * ? * *", A = /*#__PURE__*/ n(/* @__PURE__ */ g({
21
+ import '../../../assets/Picker-BMwN00tM.css';//#region ../../packages/dlzn-ui/components/cron/src/Picker.vue?vue&type=script&setup=true&lang.ts
22
+ var T = { class: "grow" }, E = { class: "mt-8 grid grid-cols-4 gap-3" }, D = { class: "row-span-4 flex flex-col gap-1" }, O = "0 * * ? * *", k = /*#__PURE__*/ n(/* @__PURE__ */ g({
23
23
  __name: "Picker",
24
24
  props: {
25
25
  disabled: {
@@ -33,47 +33,65 @@ var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { c
33
33
  }
34
34
  },
35
35
  setup(n, { expose: g }) {
36
- let A = n;
36
+ let k = n, A = {
37
+ alternativeWeekdays: !0,
38
+ domAndDow: !0,
39
+ sloppyRanges: !0
40
+ };
37
41
  function j() {
38
- let e = k;
39
- return A.modelValue === "" || (w(A.modelValue) === !0 ? e = A.modelValue : t.error(`${A.modelValue} 不是一个有效的 cron 表达式, 已使用默认值 ${k}`)), e.split(" ");
42
+ let e = O;
43
+ return k.modelValue === "" || (M(k.modelValue) === !0 ? e = k.modelValue : t.error(`${k.modelValue} 不是一个有效的 cron 表达式, 已使用默认值 ${O}`)), e.split(" ");
40
44
  }
41
- let M = j(), N = v(M[0]), P = v(M[1]), F = v(M[2]), I = v(M[3]), L = v(M[4]), R = v(M[5]), z = f(() => `${N.value} ${P.value} ${F.value} ${I.value} ${L.value} ${R.value}`), B = v(""), V = v("");
42
- b(z, (e) => {
43
- B.value = "", V.value = "", w(e) ? B.value = C.parse(e).nextNDates(void 0, 10).map((e) => i(e).format("YYYY-MM-DD HH:mm:ss")).join("\n") : V.value = "不是一个有效的 cron 表达式";
45
+ function M(e) {
46
+ try {
47
+ return new C(e, A), !0;
48
+ } catch {
49
+ return !1;
50
+ }
51
+ }
52
+ let N = j(), P = v(N[0]), F = v(N[1]), I = v(N[2]), L = v(N[3]), R = v(N[4]), z = v(N[5]), B = f(() => `${P.value} ${F.value} ${I.value} ${L.value} ${R.value} ${z.value}`), V = v(""), H = v("");
53
+ b(B, (e) => {
54
+ if (V.value = "", H.value = "", M(e)) {
55
+ let t = new C(e, {
56
+ alternativeWeekdays: !0,
57
+ domAndDow: !0,
58
+ sloppyRanges: !0
59
+ });
60
+ V.value = t.nextRuns(10).map((e) => i(e).format("YYYY-MM-DD HH:mm:ss")).join("\n");
61
+ } else H.value = "不是一个有效的 cron 表达式";
44
62
  }, { immediate: !0 });
45
- let H = f(() => {
63
+ let U = f(() => {
46
64
  try {
47
- return V.value === "" ? T.toString(z.value, {
65
+ return H.value === "" ? w.toString(B.value, {
48
66
  dayOfWeekStartIndexZero: !1,
49
67
  locale: "zh_CN",
50
68
  trimHoursLeadingZero: !0,
51
69
  use24HourTimeFormat: !0
52
- }) : V.value;
70
+ }) : H.value;
53
71
  } catch (e) {
54
72
  return e.message ?? "解析失败";
55
73
  }
56
74
  });
57
- function U() {
75
+ function W() {
58
76
  return new Promise((e) => {
59
- w(z.value) ? e(z.value) : t.error("不是一个有效的 cron 表达式");
77
+ M(B.value) ? e(B.value) : t.error("不是一个有效的 cron 表达式");
60
78
  });
61
79
  }
62
- return g({ handleSubmit: U }), (t, i) => (_(), p(y(e), {
80
+ return g({ handleSubmit: W }), (t, i) => (_(), p(y(e), {
63
81
  disabled: n.disabled,
64
82
  items: [{ slot: "content" }],
65
83
  layout: "vertical",
66
84
  readonly: n.readonly
67
85
  }, {
68
- content: x(() => [m("div", E, [h(y(S), { "default-value": "second" }, {
86
+ content: x(() => [m("div", T, [h(y(S), { "default-value": "second" }, {
69
87
  default: x(() => [
70
88
  h(y(o), {
71
89
  label: "秒",
72
90
  value: "second"
73
91
  }, {
74
92
  default: x(() => [h(d, {
75
- modelValue: N.value,
76
- "onUpdate:modelValue": i[0] ||= (e) => N.value = e
93
+ modelValue: P.value,
94
+ "onUpdate:modelValue": i[0] ||= (e) => P.value = e
77
95
  }, null, 8, ["modelValue"])]),
78
96
  _: 1
79
97
  }),
@@ -82,8 +100,8 @@ var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { c
82
100
  value: "minute"
83
101
  }, {
84
102
  default: x(() => [h(l, {
85
- modelValue: P.value,
86
- "onUpdate:modelValue": i[1] ||= (e) => P.value = e
103
+ modelValue: F.value,
104
+ "onUpdate:modelValue": i[1] ||= (e) => F.value = e
87
105
  }, null, 8, ["modelValue"])]),
88
106
  _: 1
89
107
  }),
@@ -92,8 +110,8 @@ var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { c
92
110
  value: "hour"
93
111
  }, {
94
112
  default: x(() => [h(c, {
95
- modelValue: F.value,
96
- "onUpdate:modelValue": i[2] ||= (e) => F.value = e
113
+ modelValue: I.value,
114
+ "onUpdate:modelValue": i[2] ||= (e) => I.value = e
97
115
  }, null, 8, ["modelValue"])]),
98
116
  _: 1
99
117
  }),
@@ -102,10 +120,10 @@ var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { c
102
120
  value: "day"
103
121
  }, {
104
122
  default: x(() => [h(s, {
105
- day: I.value,
106
- "onUpdate:day": i[3] ||= (e) => I.value = e,
107
- week: R.value,
108
- "onUpdate:week": i[4] ||= (e) => R.value = e
123
+ day: L.value,
124
+ "onUpdate:day": i[3] ||= (e) => L.value = e,
125
+ week: z.value,
126
+ "onUpdate:week": i[4] ||= (e) => z.value = e
109
127
  }, null, 8, ["day", "week"])]),
110
128
  _: 1
111
129
  }),
@@ -114,68 +132,68 @@ var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { c
114
132
  value: "month"
115
133
  }, {
116
134
  default: x(() => [h(u, {
117
- modelValue: L.value,
118
- "onUpdate:modelValue": i[5] ||= (e) => L.value = e
135
+ modelValue: R.value,
136
+ "onUpdate:modelValue": i[5] ||= (e) => R.value = e
119
137
  }, null, 8, ["modelValue"])]),
120
138
  _: 1
121
139
  })
122
140
  ]),
123
141
  _: 1
124
- }), m("div", D, [
142
+ }), m("div", E, [
125
143
  h(y(r), {
126
- modelValue: N.value,
127
- "onUpdate:modelValue": i[6] ||= (e) => N.value = e,
144
+ modelValue: P.value,
145
+ "onUpdate:modelValue": i[6] ||= (e) => P.value = e,
128
146
  adornment: { prepend: () => "秒" },
129
147
  readonly: ""
130
148
  }, null, 8, ["modelValue"]),
131
149
  h(y(r), {
132
- modelValue: P.value,
133
- "onUpdate:modelValue": i[7] ||= (e) => P.value = e,
150
+ modelValue: F.value,
151
+ "onUpdate:modelValue": i[7] ||= (e) => F.value = e,
134
152
  adornment: { prepend: () => "分" },
135
153
  readonly: ""
136
154
  }, null, 8, ["modelValue"]),
137
155
  h(y(r), {
138
- modelValue: F.value,
139
- "onUpdate:modelValue": i[8] ||= (e) => F.value = e,
156
+ modelValue: I.value,
157
+ "onUpdate:modelValue": i[8] ||= (e) => I.value = e,
140
158
  adornment: { prepend: () => "时" },
141
159
  readonly: ""
142
160
  }, null, 8, ["modelValue"]),
143
- m("div", O, [i[12] ||= m("span", { class: "text-xs" }, "近十次执行时间:", -1), h(y(a), {
161
+ m("div", D, [i[12] ||= m("span", { class: "text-xs" }, "近十次执行时间:", -1), h(y(a), {
144
162
  class: "flex-1",
145
163
  maxlength: "",
146
- "model-value": B.value,
164
+ "model-value": V.value,
147
165
  placeholder: "",
148
166
  readonly: ""
149
167
  }, null, 8, ["model-value"])]),
150
168
  h(y(r), {
151
- modelValue: I.value,
152
- "onUpdate:modelValue": i[9] ||= (e) => I.value = e,
169
+ modelValue: L.value,
170
+ "onUpdate:modelValue": i[9] ||= (e) => L.value = e,
153
171
  adornment: { prepend: () => "日" },
154
172
  readonly: ""
155
173
  }, null, 8, ["modelValue"]),
156
174
  h(y(r), {
157
- modelValue: L.value,
158
- "onUpdate:modelValue": i[10] ||= (e) => L.value = e,
175
+ modelValue: R.value,
176
+ "onUpdate:modelValue": i[10] ||= (e) => R.value = e,
159
177
  adornment: { prepend: () => "月" },
160
178
  readonly: ""
161
179
  }, null, 8, ["modelValue"]),
162
180
  h(y(r), {
163
- modelValue: R.value,
164
- "onUpdate:modelValue": i[11] ||= (e) => R.value = e,
181
+ modelValue: z.value,
182
+ "onUpdate:modelValue": i[11] ||= (e) => z.value = e,
165
183
  adornment: { prepend: () => "星期" },
166
184
  readonly: ""
167
185
  }, null, 8, ["modelValue"]),
168
186
  h(y(r), {
169
187
  adornment: { prepend: () => "式" },
170
188
  class: "col-span-3",
171
- "model-value": z.value,
189
+ "model-value": B.value,
172
190
  readonly: "",
173
- status: y(w)(z.value) ? "default" : "error"
191
+ status: M(B.value) ? "default" : "error"
174
192
  }, null, 8, ["model-value", "status"]),
175
193
  h(y(a), {
176
194
  class: "col-span-3",
177
195
  maxlength: "",
178
- "model-value": H.value,
196
+ "model-value": U.value,
179
197
  placeholder: "",
180
198
  readonly: ""
181
199
  }, null, 8, ["model-value"])
@@ -183,6 +201,6 @@ var E = { class: "grow" }, D = { class: "mt-8 grid grid-cols-4 gap-3" }, O = { c
183
201
  _: 1
184
202
  }, 8, ["disabled", "readonly"]));
185
203
  }
186
- }), [["__scopeId", "data-v-f7e27435"]]);
204
+ }), [["__scopeId", "data-v-e4c67c61"]]);
187
205
  //#endregion
188
- export { A as default };
206
+ export { k as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Second-DwM7HaZz.mjs";
1
+ import { t as e } from "../../../chunks/Second-DA6oyNKU.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { g as e } from "../../../chunks/provider-DF-mIyi1.mjs";
1
+ import { g as e } from "../../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/custom-page-list-DjIGvqzk.mjs";
1
+ import { t as e } from "../../chunks/custom-page-list-BHR3DhVT.mjs";
2
2
  export { e as TCustomPageList };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/custom-page-list-DjIGvqzk.mjs";
1
+ import { t as e } from "../../../chunks/custom-page-list-BHR3DhVT.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/custom-page-table-wy-8H6kG.mjs";
1
+ import { t as e } from "../../chunks/custom-page-table-BxrEvdku.mjs";
2
2
  export { e as TCustomPageTable };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/custom-page-table-wy-8H6kG.mjs";
1
+ import { t as e } from "../../../chunks/custom-page-table-BxrEvdku.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/date-picker-D15OhWnK.mjs";
1
+ import { t as e } from "../../chunks/date-picker-D-MGwALF.mjs";
2
2
  export { e as TDatePicker };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/date-picker-D15OhWnK.mjs";
1
+ import { t as e } from "../../../chunks/date-picker-D-MGwALF.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { U as e, o as t } from "../../chunks/provider-DF-mIyi1.mjs";
1
+ import { U as e, o as t } from "../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { t as TForm, e as formPropsInit };
@@ -1,2 +1,2 @@
1
- import { o as e } from "../../../chunks/provider-DF-mIyi1.mjs";
1
+ import { o as e } from "../../../chunks/provider-DgBBnNgY.mjs";
2
2
  export { e as default };
@@ -1,11 +1,11 @@
1
- import { U as e, W as t, _ as n, c as r, d as i, f as a, g as o, h as s, l as c, m as l, n as u, o as d, p as f, s as p, t as m, u as h } from "../chunks/provider-DF-mIyi1.mjs";
1
+ import { U as e, W as t, _ as n, c as r, d as i, f as a, g as o, h as s, l as c, m as l, n as u, o as d, p as f, s as p, t as m, u as h } from "../chunks/provider-DgBBnNgY.mjs";
2
2
  import { t as g } from "../chunks/icon-COjp1yrx.mjs";
3
3
  import "./icon/index.mjs";
4
4
  import { t as _ } from "../chunks/popconfirm-Bc93K9mT.mjs";
5
5
  import "./popconfirm/index.mjs";
6
6
  import { t as v } from "../chunks/checkbox-Drb_LAT6.mjs";
7
7
  import "./checkbox/index.mjs";
8
- import { t as y } from "../chunks/scrollbar-CI1mysNQ.mjs";
8
+ import { t as y } from "../chunks/scrollbar-CoERe4kE.mjs";
9
9
  import "./scrollbar/index.mjs";
10
10
  import { t as b } from "../chunks/gradient-text-BAIl_tKw.mjs";
11
11
  import "./gradient-text/index.mjs";
@@ -13,11 +13,11 @@ import { n as x, t as S } from "../chunks/image-cancjWRE.mjs";
13
13
  import "./image/index.mjs";
14
14
  import { n as C, t as w } from "../chunks/input-UQjpNb61.mjs";
15
15
  import "./input/index.mjs";
16
- import { t as T } from "../chunks/date-picker-D15OhWnK.mjs";
16
+ import { t as T } from "../chunks/date-picker-D-MGwALF.mjs";
17
17
  import "./date-picker/index.mjs";
18
- import { n as E, t as D } from "../chunks/input-number-q9JM7-Uo.mjs";
18
+ import { n as E, t as D } from "../chunks/input-number-7Y1iWPPV.mjs";
19
19
  import "./input-number/index.mjs";
20
- import { t as O } from "../chunks/range-input-CkZteidJ.mjs";
20
+ import { t as O } from "../chunks/range-input-PIfE-AxB.mjs";
21
21
  import "./range-input/index.mjs";
22
22
  import { n as k, t as A } from "../chunks/tag-input-BuAFWI1F.mjs";
23
23
  import "./tag-input/index.mjs";
@@ -29,10 +29,10 @@ import { t as F } from "../chunks/textarea-CYirMH7f.mjs";
29
29
  import "./textarea/index.mjs";
30
30
  import { n as I, t as L } from "../chunks/card-Domqu1Hz.mjs";
31
31
  import "./card/index.mjs";
32
- import { n as R, r as z, t as B } from "../chunks/page-table-C4tKerQw.mjs";
33
- import { t as V } from "../chunks/pagination-BxkLAF3U.mjs";
32
+ import { n as R, r as z, t as B } from "../chunks/page-table-IaiiKrWo.mjs";
33
+ import { t as V } from "../chunks/pagination-u4S0HaQV.mjs";
34
34
  import "./pagination/index.mjs";
35
- import { n as H, t as U } from "../chunks/table-DfTSS9S4.mjs";
35
+ import { n as H, t as U } from "../chunks/table-DMUIy_b9.mjs";
36
36
  import { t as W } from "../chunks/popup-4CBPH3ga.mjs";
37
37
  import "./popup/index.mjs";
38
38
  import { n as G, t as K } from "../chunks/tag-CQPtIWU2.mjs";
@@ -43,16 +43,16 @@ import { n as Y, t as X } from "../chunks/link-nbeAJ6Mt.mjs";
43
43
  import "./link/index.mjs";
44
44
  import "./table/index.mjs";
45
45
  import "./page-table/index.mjs";
46
- import { t as Z } from "../chunks/custom-page-table-wy-8H6kG.mjs";
46
+ import { t as Z } from "../chunks/custom-page-table-BxrEvdku.mjs";
47
47
  import "./custom-page-table/index.mjs";
48
- import { n as Q, r as $, t as ee } from "../chunks/page-list-DkOcgqMW.mjs";
49
- import { t as te } from "../chunks/page-query-CHFRZRhi.mjs";
48
+ import { n as Q, r as $, t as ee } from "../chunks/page-list-vyKjJFLU.mjs";
49
+ import { t as te } from "../chunks/page-query-CPBOBzEz.mjs";
50
50
  import "./page-query/index.mjs";
51
51
  import "./page-list/index.mjs";
52
- import { t as ne } from "../chunks/custom-page-list-DjIGvqzk.mjs";
52
+ import { t as ne } from "../chunks/custom-page-list-BHR3DhVT.mjs";
53
53
  import "./custom-page-list/index.mjs";
54
54
  import { t as re } from "../chunks/overview-BvLGalk-.mjs";
55
- import { t as ie } from "../chunks/overview-CTQGBB2-.mjs";
55
+ import { t as ie } from "../chunks/overview-DT-7oasE.mjs";
56
56
  import "./overview/index.mjs";
57
57
  import { t as ae } from "../chunks/tab-panel-yh4fFZ2r.mjs";
58
58
  import "./tab-panel/index.mjs";
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/input-number-q9JM7-Uo.mjs";
1
+ import { n as e, t } from "../../chunks/input-number-7Y1iWPPV.mjs";
2
2
  export { t as TInputNumber, e as inputNumberPropsInit };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/input-number-q9JM7-Uo.mjs";
1
+ import { t as e } from "../../../chunks/input-number-7Y1iWPPV.mjs";
2
2
  export { e as default };
@@ -1,3 +1,3 @@
1
1
  import { t as e } from "../../chunks/overview-BvLGalk-.mjs";
2
- import { t } from "../../chunks/overview-CTQGBB2-.mjs";
2
+ import { t } from "../../chunks/overview-DT-7oasE.mjs";
3
3
  export { t as TOverview, e as getSplitSymbolValue };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-BDidP0_Z.mjs";
1
+ import { t as e } from "../../../../chunks/Index-R7H-nvMs.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/IndexItem-D_ZeRKlH.mjs";
1
+ import { t as e } from "../../../chunks/IndexItem-sPXuxTUs.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/overview-CTQGBB2-.mjs";
1
+ import { t as e } from "../../../chunks/overview-DT-7oasE.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../../chunks/page-list-DkOcgqMW.mjs";
1
+ import { n as e, r as t, t as n } from "../../chunks/page-list-vyKjJFLU.mjs";
2
2
  export { n as TPageList, e as baseCustomPageListPropsInit, t as useBaseCustomPageListMixin };