szld-libs 0.2.96 → 0.2.98

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 (45) hide show
  1. package/dist/szld-components.es.js +67 -59
  2. package/dist/szld-components.umd.js +3 -3
  3. package/es/components/DynamicForm/func.js +10 -8
  4. package/es/components/DynamicForm/useDynamicForm.d.ts +1 -1
  5. package/es/hooks/useRenderAttrSetDetail.d.ts +24 -0
  6. package/es/hooks/useRenderAttrSetDetail.js +186 -0
  7. package/es/index.js +32 -263
  8. package/es/mock/index.d.ts +306 -0
  9. package/es/mock/index.js +387 -0
  10. package/es/mock/vite.svg +1 -0
  11. package/es/services/index.d.ts +6 -0
  12. package/es/services/index.js +85 -0
  13. package/es/services/request.d.ts +6 -0
  14. package/es/services/request.js +140 -0
  15. package/es/services/status.d.ts +1 -0
  16. package/es/services/status.js +44 -0
  17. package/es/services/vite.svg +1 -0
  18. package/es/utils/enum.d.ts +4 -0
  19. package/es/utils/enum.js +10 -0
  20. package/es/utils/method.js +14 -10
  21. package/es/utils/szxkFunc.d.ts +8 -0
  22. package/es/utils/szxkFunc.js +7 -1
  23. package/es/vite-env.d.ts +11 -0
  24. package/lib/components/DynamicForm/func.js +10 -8
  25. package/lib/components/DynamicForm/useDynamicForm.d.ts +1 -1
  26. package/lib/hooks/useRenderAttrSetDetail.d.ts +24 -0
  27. package/lib/hooks/useRenderAttrSetDetail.js +185 -0
  28. package/lib/index.js +29 -260
  29. package/lib/mock/index.d.ts +306 -0
  30. package/lib/mock/index.js +387 -0
  31. package/lib/mock/vite.svg +1 -0
  32. package/lib/services/index.d.ts +6 -0
  33. package/lib/services/index.js +85 -0
  34. package/lib/services/request.d.ts +6 -0
  35. package/lib/services/request.js +140 -0
  36. package/lib/services/status.d.ts +1 -0
  37. package/lib/services/status.js +44 -0
  38. package/lib/services/vite.svg +1 -0
  39. package/lib/utils/enum.d.ts +4 -0
  40. package/lib/utils/enum.js +10 -0
  41. package/lib/utils/method.js +14 -10
  42. package/lib/utils/szxkFunc.d.ts +8 -0
  43. package/lib/utils/szxkFunc.js +6 -0
  44. package/lib/vite-env.d.ts +11 -0
  45. package/package.json +3 -1
@@ -1602,7 +1602,7 @@ const C3 = _3, yO = "backheader-module_main_cac53", gO = "backheader-module_titl
1602
1602
  title: gO,
1603
1603
  sub: xO,
1604
1604
  btn: _O
1605
- }, { Title: CO, Text: SO } = kk, lL = (n) => {
1605
+ }, { Title: CO, Text: SO } = kk, uL = (n) => {
1606
1606
  const { isBack: l = !0, title: a, extra: s, subTitle: d = null, className: v, style: h, titleStyle: g, level: _ = 2, icon: p, onBack: x } = n, w = Uk(), C = () => typeof d == "string" ? /* @__PURE__ */ he(SO, { className: Vm.sub, children: d }) : d, E = () => {
1607
1607
  if (x) {
1608
1608
  x == null || x();
@@ -12758,7 +12758,7 @@ Check the render method of \`` + e + "`." : "";
12758
12758
  };
12759
12759
  }
12760
12760
  }
12761
- function XN(e) {
12761
+ function JN(e) {
12762
12762
  return e;
12763
12763
  }
12764
12764
  function DD(e) {
@@ -15188,10 +15188,10 @@ Incoming: %s`, we, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
15188
15188
  }
15189
15189
  return [A, y];
15190
15190
  }
15191
- function JN(e, t, o) {
15192
- }
15193
15191
  function eL(e, t, o) {
15194
15192
  }
15193
+ function tL(e, t, o) {
15194
+ }
15195
15195
  function Tx(e, t, o) {
15196
15196
  var u = Xt, f = Xo(), y, b = jr();
15197
15197
  if (b) {
@@ -20595,7 +20595,7 @@ Check the render method of %s.`, vt(Pn) || "Unknown"));
20595
20595
  var LC = /* @__PURE__ */ ((n) => (n.zip = "application/zip", n.png = "image/png", n.jpg = "image/jpg", n.jpeg = "image/jpeg", n.pdf = "application/pdf", n.doc = "application/msword", n.docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", n.pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation", n.ppt = "application/vnd.ms-powerpoint", n.xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", n.xls = "application/vnd.ms-excel", n.txt = "text/plain", n.csv = "text/csv", n.svg = "image/svg+xml", n))(LC || {});
20596
20596
  const dC = new Map(Object.entries(LC));
20597
20597
  var $0 = /* @__PURE__ */ ((n) => (n.zip = ".zip", n.png = ".png", n.jpg = ".jpg", n.jpeg = ".jpeg", n.pdf = ".pdf", n.doc = ".doc", n.docx = ".docx", n.ppt = ".ppt", n.pptx = ".pptx", n.xls = ".xls", n.xlsx = ".xlsx", n.txt = ".txt", n.csv = ".csv", n.svg = ".svg", n.rar = ".rar", n))($0 || {});
20598
- const uL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20598
+ const sL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20599
20599
  __proto__: null,
20600
20600
  FileType: LC,
20601
20601
  FileTypeMap: dC,
@@ -20676,7 +20676,7 @@ const MO = () => {
20676
20676
  return JSON.parse(n.slice(l + 1));
20677
20677
  }
20678
20678
  return n;
20679
- }, sL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20679
+ }, cL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20680
20680
  __proto__: null,
20681
20681
  filterObject: RO,
20682
20682
  getBase64: E3,
@@ -25630,7 +25630,7 @@ const vM = "search-table-module_search_17add", mM = "search-table-module_table_5
25630
25630
  const { onResize: l, width: a, resizeable: s, ...d } = n;
25631
25631
  return !a || !s ? /* @__PURE__ */ he("th", { ...d }) : /* @__PURE__ */ he(hM, { width: a || 200, height: 0, onResize: l, draggableOpts: { enableUserSelectHack: !1 }, children: /* @__PURE__ */ he("th", { ...d }) });
25632
25632
  };
25633
- function fL(n) {
25633
+ function dL(n) {
25634
25634
  const { tableProps: l = {}, searchProps: a } = n, {
25635
25635
  minColumnWidth: s = 200,
25636
25636
  resizeable: d = !1,
@@ -25767,7 +25767,7 @@ function SM(n) {
25767
25767
  }
25768
25768
  )), /* @__PURE__ */ he("td", { ...w, children: O });
25769
25769
  }
25770
- function dL(n) {
25770
+ function pL(n) {
25771
25771
  const { columns: l, onChange: a, ...s } = n, d = {
25772
25772
  body: {
25773
25773
  row: CM,
@@ -25794,7 +25794,7 @@ function dL(n) {
25794
25794
  const EM = (n) => {
25795
25795
  const { auth: l = !0, ...a } = n;
25796
25796
  return l ? /* @__PURE__ */ he(W0, { ...a }) : null;
25797
- }, pL = (n) => {
25797
+ }, hL = (n) => {
25798
25798
  const { PId: l, auths: a, ...s } = n, d = I0(() => a ? !!(typeof l == "number" && a.find((v) => v.PId === l) || Array.isArray(l) && a.filter((v) => l.includes(v.PId)).length > 0) : !1, [l, a]);
25799
25799
  return /* @__PURE__ */ he(EM, { ...s, auth: d });
25800
25800
  }, bM = "LoopSlide-module_wrapper_dde90", wM = "LoopSlide-module_container_be123", DM = "LoopSlide-module_scrollContent_36ed7", RM = "LoopSlide-module_content_f392a", Ch = {
@@ -25802,7 +25802,7 @@ const EM = (n) => {
25802
25802
  container: wM,
25803
25803
  scrollContent: DM,
25804
25804
  content: RM
25805
- }, hL = ({
25805
+ }, vL = ({
25806
25806
  speed: n = 10,
25807
25807
  delay: l = 1,
25808
25808
  timingFunction: a = "linear",
@@ -25953,7 +25953,7 @@ const EM = (n) => {
25953
25953
  typeof s == "string" ? x[s] : s(x)
25954
25954
  ))
25955
25955
  ] });
25956
- }, vL = (n) => {
25956
+ }, mL = (n) => {
25957
25957
  const { current: l, data: a, rowKey: s, renderContent: d, currentIndex: v, ...h } = n;
25958
25958
  return (() => {
25959
25959
  AC.info({
@@ -25980,7 +25980,7 @@ const EM = (n) => {
25980
25980
  customPagination: jM,
25981
25981
  jumpBtns: IM
25982
25982
  };
25983
- function mL(n) {
25983
+ function yL(n) {
25984
25984
  const { totalText: l = "共", unitText: a = "条", jumpText: s = "跳至", pageText: d = "页", paginationProps: v } = n, [h, g] = ln(""), _ = (v == null ? void 0 : v.pageSize) || 10, p = (C) => {
25985
25985
  g(C.target.value);
25986
25986
  }, x = (C) => {
@@ -26439,7 +26439,7 @@ const Aa = w6.exports, VM = (n) => {
26439
26439
  return [];
26440
26440
  const l = (a) => a == null ? void 0 : a.map((s) => {
26441
26441
  const d = {};
26442
- return s.forEach((v) => {
26442
+ return Array.isArray(s) && s.forEach((v) => {
26443
26443
  var h;
26444
26444
  (h = v == null ? void 0 : v.children) != null && h.length ? d[v.attrid] = l(v.children) : d[v.attrid] = v.attrvalue;
26445
26445
  }), d;
@@ -26559,10 +26559,13 @@ const GM = (n, l, a) => {
26559
26559
  const a = eS(n, l), s = a.filter((h) => {
26560
26560
  var g;
26561
26561
  return (g = h.json) == null ? void 0 : g.combination;
26562
- }).reduce((h, g) => {
26563
- const _ = g.json["combination-id"];
26564
- return _ && (h[_] || (h[_] = []), h[_].push(g)), h;
26565
- }, {}), d = /* @__PURE__ */ new Set();
26562
+ }).reduce(
26563
+ (h, g) => {
26564
+ const _ = g.json["combination-id"];
26565
+ return _ && (h[_] || (h[_] = []), h[_].push(g)), h;
26566
+ },
26567
+ {}
26568
+ ), d = /* @__PURE__ */ new Set();
26566
26569
  Object.values(s).forEach((h) => {
26567
26570
  (h == null ? void 0 : h.length) !== 0 && h.slice(1).forEach((g) => d.add(g.attrid));
26568
26571
  });
@@ -26658,8 +26661,8 @@ const T6 = (n) => {
26658
26661
  data_list: [l(g.children)]
26659
26662
  };
26660
26663
  else if (g.attrtype === 1 && g.children.length > 0 && Array.isArray(g.children)) {
26661
- const { attrvalue: R = [], children: k = [] } = g || {};
26662
- Array.isArray(R) && (R != null && R.length) && (g.children = R.map((O) => JM((k == null ? void 0 : k[0]) || [], O)), h[_] = {
26664
+ let { attrvalue: R = [], children: k = [] } = g || {};
26665
+ R = Array.isArray(R) ? R : [R], Array.isArray(R) && (R != null && R.length) && (g.children = R.map((O) => JM((k == null ? void 0 : k[0]) || [], O)), h[_] = {
26663
26666
  asid: ((E = (C = (w = g.children) == null ? void 0 : w[0]) == null ? void 0 : C[0]) == null ? void 0 : E.asid) || "",
26664
26667
  data_list: g.children.map((O) => l(O))
26665
26668
  });
@@ -26769,7 +26772,7 @@ const T6 = (n) => {
26769
26772
  }, JM = (n, l) => n.map((a) => ({
26770
26773
  ...a,
26771
26774
  attrvalue: l[a.attrid] || ""
26772
- })), yL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26775
+ })), gL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26773
26776
  __proto__: null,
26774
26777
  getJson: iy,
26775
26778
  base64ToString: JC,
@@ -28186,7 +28189,7 @@ function dN(n) {
28186
28189
  handleSetFormItemInitialValue: Tc
28187
28190
  };
28188
28191
  }
28189
- const gL = Tk((n, l) => {
28192
+ const xL = Tk((n, l) => {
28190
28193
  const {
28191
28194
  formConfig: a,
28192
28195
  setFormConfig: s,
@@ -28317,7 +28320,7 @@ const gL = Tk((n, l) => {
28317
28320
  }, RC = (n, l) => {
28318
28321
  let a = document.createElement("a");
28319
28322
  a.style.display = "none", a.href = n, a.target = "_blank", a.download = l, document.body.appendChild(a), a.click(), document.body.removeChild(a);
28320
- }, xL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28323
+ }, _L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28321
28324
  __proto__: null,
28322
28325
  downloadUrl: mN,
28323
28326
  downloadBlob: O6
@@ -28374,7 +28377,7 @@ const gL = Tk((n, l) => {
28374
28377
  pattern: /\S/,
28375
28378
  message: "输入内容不能只有空格"
28376
28379
  }
28377
- }, _L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28380
+ }, CL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28378
28381
  __proto__: null,
28379
28382
  default: B6
28380
28383
  }, Symbol.toStringTag, { value: "Module" }));
@@ -28434,7 +28437,7 @@ class gN {
28434
28437
  return "rgb(" + s + "," + d + "," + v + ")";
28435
28438
  }
28436
28439
  }
28437
- const CL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28440
+ const SL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28438
28441
  __proto__: null,
28439
28442
  getGVerify: gN
28440
28443
  }, Symbol.toStringTag, { value: "Module" }));
@@ -32306,7 +32309,7 @@ function GN() {
32306
32309
  });
32307
32310
  })(F6);
32308
32311
  const uu = F6.exports;
32309
- class SL {
32312
+ class EL {
32310
32313
  constructor() {
32311
32314
  Rc(this, "salt", "SzlDJd#4202");
32312
32315
  }
@@ -32321,7 +32324,7 @@ class SL {
32321
32324
  return uu.AES.decrypt(l, this.salt).toString(uu.enc.Utf8);
32322
32325
  }
32323
32326
  }
32324
- class EL {
32327
+ class bL {
32325
32328
  constructor(l) {
32326
32329
  Rc(this, "salt");
32327
32330
  this.salt = l;
@@ -32449,13 +32452,18 @@ const WN = async (n, l, a) => {
32449
32452
  }, KN = (n, l) => n.map((a) => ({
32450
32453
  ...a,
32451
32454
  attrvalue: l[a.attrid] || ""
32452
- })), bL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32455
+ })), QN = (n, l) => ({
32456
+ style: {
32457
+ backgroundColor: l !== void 0 && l % 2 === 1 ? "var(--bg-color-2)" : "var(--bg-color-3)"
32458
+ }
32459
+ }), wL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32453
32460
  __proto__: null,
32454
32461
  handleGetAttrList: WN,
32455
32462
  handleGetAttrDetail: ZN,
32456
- handleObjDetailToSignleAttrList: KN
32463
+ handleObjDetailToSignleAttrList: KN,
32464
+ handleSetTableRowColor: QN
32457
32465
  }, Symbol.toStringTag, { value: "Module" }));
32458
- function wL(n) {
32466
+ function DL(n) {
32459
32467
  const { imgKey: l = "Img" } = n, {
32460
32468
  data: a,
32461
32469
  loading: s,
@@ -32484,7 +32492,7 @@ function wL(n) {
32484
32492
  }
32485
32493
  ), loading: s, refresh: v };
32486
32494
  }
32487
- function DL(n) {
32495
+ function RL(n) {
32488
32496
  const { modal: l, message: a } = Lc.useApp(), [s] = xo.useForm(), d = [
32489
32497
  {
32490
32498
  dataIndex: "Password",
@@ -32539,14 +32547,14 @@ function DL(n) {
32539
32547
  });
32540
32548
  }) };
32541
32549
  }
32542
- const QN = "SzlDJd#4202";
32543
- function RL(n) {
32550
+ const XN = "SzlDJd#4202";
32551
+ function TL(n) {
32544
32552
  const [l, a] = ln(null);
32545
32553
  pa(() => {
32546
32554
  s();
32547
32555
  }, []);
32548
32556
  const s = () => {
32549
- const d = uu.AES.decrypt(n, QN);
32557
+ const d = uu.AES.decrypt(n, XN);
32550
32558
  try {
32551
32559
  const v = JSON.parse(d.toString(uu.enc.Utf8));
32552
32560
  a(v);
@@ -32555,7 +32563,7 @@ function RL(n) {
32555
32563
  };
32556
32564
  return l;
32557
32565
  }
32558
- function TL(n) {
32566
+ function AL(n) {
32559
32567
  const { secertKey: l, storageKey: a } = n;
32560
32568
  return { onParse: (v) => {
32561
32569
  const h = localStorage.getItem(a);
@@ -32581,7 +32589,7 @@ function TL(n) {
32581
32589
  b3(a, h.toString());
32582
32590
  } };
32583
32591
  }
32584
- function AL(n) {
32592
+ function kL(n) {
32585
32593
  const { dataSource: l, rowKey: a, defaultRows: s = [] } = n, d = go(s), [v, h] = ln([]), [g, _] = ln([]);
32586
32594
  return pa(() => {
32587
32595
  if (l && l.length > 0) {
@@ -32602,7 +32610,7 @@ function AL(n) {
32602
32610
  setSelectedKeys: _
32603
32611
  };
32604
32612
  }
32605
- function kL({
32613
+ function OL({
32606
32614
  detailInfo: n,
32607
32615
  labelSpan: l = 3,
32608
32616
  valueSpan: a = 9,
@@ -32695,33 +32703,33 @@ function kL({
32695
32703
  } };
32696
32704
  }
32697
32705
  export {
32698
- SL as AES,
32706
+ EL as AES,
32699
32707
  EM as AuthButton,
32700
- lL as BackHeader,
32701
- pL as CoralButton,
32708
+ uL as BackHeader,
32709
+ hL as CoralButton,
32702
32710
  o6 as CreateForm,
32703
- mL as CustomPagination,
32704
- gL as DynamicForm,
32705
- dL as EditTable,
32706
- _L as FormRules,
32707
- EL as HmacSHA512,
32711
+ yL as CustomPagination,
32712
+ xL as DynamicForm,
32713
+ pL as EditTable,
32714
+ CL as FormRules,
32715
+ bL as HmacSHA512,
32708
32716
  N6 as HmacSM3,
32709
- hL as LoopSlide,
32710
- fL as SearchTable,
32717
+ vL as LoopSlide,
32718
+ dL as SearchTable,
32711
32719
  $F as UploadFile,
32712
32720
  $M as WorkFlowNode,
32713
32721
  PF as compressionImage,
32714
- xL as download,
32715
- uL as fileType,
32716
- yL as method,
32717
- vL as showWorkFlow,
32718
- bL as szxkFunc,
32719
- wL as useCaptcha,
32720
- DL as useChangePwd,
32721
- RL as useConfig,
32722
- kL as useDetailRender,
32723
- TL as useRemember,
32724
- AL as useRowSelection,
32725
- sL as utils,
32726
- CL as verfyCode
32722
+ _L as download,
32723
+ sL as fileType,
32724
+ gL as method,
32725
+ mL as showWorkFlow,
32726
+ wL as szxkFunc,
32727
+ DL as useCaptcha,
32728
+ RL as useChangePwd,
32729
+ TL as useConfig,
32730
+ OL as useDetailRender,
32731
+ AL as useRemember,
32732
+ kL as useRowSelection,
32733
+ cL as utils,
32734
+ SL as verfyCode
32727
32735
  };