@cldemo/ui-kit 1.1.3 → 1.1.4

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 (165) hide show
  1. package/buildLibs/all/index.cjs +8 -8
  2. package/buildLibs/all/index.js +12157 -12048
  3. package/buildLibs/common/globalConfig.cjs +1 -1
  4. package/buildLibs/common/globalConfig.js +29 -15
  5. package/buildLibs/common/i18n/en.cjs +1 -1
  6. package/buildLibs/common/i18n/en.js +3 -1
  7. package/buildLibs/common/i18n/zh_CN.cjs +1 -1
  8. package/buildLibs/common/i18n/zh_CN.js +3 -1
  9. package/buildLibs/common/index.cjs +1 -1
  10. package/buildLibs/common/index.js +26 -24
  11. package/buildLibs/mobile/index.cjs +5 -5
  12. package/buildLibs/mobile/index.js +5902 -5852
  13. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CKoVf-v1.js → Index.vue_vue_type_script_setup_true_lang-88gNFuK4.js} +2 -2
  14. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-BQXxDHbe.js +254 -0
  15. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-D0g1xGPL.js → Index.vue_vue_type_script_setup_true_lang-BR0S3Sfl.js} +3 -3
  16. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-RRUPY9bd.js → Index.vue_vue_type_script_setup_true_lang-BrfAVhNV.js} +153 -145
  17. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DdLVG0R0.js → Index.vue_vue_type_script_setup_true_lang-Bw_jRoEX.js} +67 -59
  18. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-C6Zd584S.js +2536 -0
  19. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BOcOO9-n.js → Index.vue_vue_type_script_setup_true_lang-CD66oCaI.js} +386 -375
  20. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CEBiLDTm.js +310 -0
  21. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-C0DgaU5I.js → Index.vue_vue_type_script_setup_true_lang-CRlBvcCg.js} +53 -47
  22. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DqZBB8fM.js → Index.vue_vue_type_script_setup_true_lang-CdYh3Pzs.js} +1 -1
  23. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-XiSSYx4X.js → Index.vue_vue_type_script_setup_true_lang-D7YeNBdk.js} +120 -113
  24. package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKMVQrVU.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-D9sq4n9i.js} +66 -60
  25. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CRKrLCa6.js → Index.vue_vue_type_script_setup_true_lang-DFeBj9IN.js} +209 -201
  26. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-D7bJ5UAn.js → Index.vue_vue_type_script_setup_true_lang-DY3tZQZe.js} +63 -55
  27. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-D_73B6av.js +1533 -0
  28. package/buildLibs/modules/shared/{Validate.vue_vue_type_script_setup_true_lang-3s_3ut9M.js → Validate.vue_vue_type_script_setup_true_lang-hn1Tat7L.js} +102 -92
  29. package/buildLibs/types/All/index.d.ts +1 -1
  30. package/buildLibs/types/Common/globalConfig.d.ts +29 -0
  31. package/buildLibs/types/Common/globalTypes.d.ts +11 -0
  32. package/buildLibs/types/Common/i18n/en.d.ts +2 -0
  33. package/buildLibs/types/Common/i18n/zh_CN.d.ts +2 -0
  34. package/buildLibs/types/Common/index.d.ts +1 -1
  35. package/buildLibs/types/Element/CheckBox/Index.vue.d.ts +9 -0
  36. package/buildLibs/types/Element/Input/Index.vue.d.ts +9 -0
  37. package/buildLibs/types/Element/InputNumber/Index.vue.d.ts +9 -0
  38. package/buildLibs/types/Element/InputNumberStepper/Index.vue.d.ts +9 -0
  39. package/buildLibs/types/Element/InputTextarea/Index.vue.d.ts +9 -0
  40. package/buildLibs/types/Element/Radio/Index.vue.d.ts +9 -0
  41. package/buildLibs/types/Web/DateTime/Index.vue.d.ts +9 -0
  42. package/buildLibs/types/Web/FileUpload/Index.vue.d.ts +9 -0
  43. package/buildLibs/types/Web/Select/Index.vue.d.ts +9 -0
  44. package/buildLibs/types/Web/SelectCascade/Index.vue.d.ts +9 -0
  45. package/buildLibs/types/Web/SelectMove/Index.vue.d.ts +9 -0
  46. package/buildLibs/types/Web/SelectTag/Index.vue.d.ts +9 -0
  47. package/buildLibs/types/Web/SelectTree/Index.vue.d.ts +9 -0
  48. package/buildLibs/types/Web/Tree/Index.vue.d.ts +9 -0
  49. package/buildLibs/types/Web/componentsInstalls.d.ts +90 -0
  50. package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
  51. package/buildLibs/utils/Element/ClCheckbox.js +1 -1
  52. package/buildLibs/utils/Element/ClInput.cjs +1 -1
  53. package/buildLibs/utils/Element/ClInput.js +1 -1
  54. package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
  55. package/buildLibs/utils/Element/ClInputCaptcha.js +1 -1
  56. package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
  57. package/buildLibs/utils/Element/ClInputNumber.js +1 -1
  58. package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
  59. package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
  60. package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
  61. package/buildLibs/utils/Element/ClInputPassword.js +1 -1
  62. package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
  63. package/buildLibs/utils/Element/ClInputSearch.js +1 -1
  64. package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
  65. package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
  66. package/buildLibs/utils/Element/ClRadio.cjs +1 -1
  67. package/buildLibs/utils/Element/ClRadio.js +1 -1
  68. package/buildLibs/utils/Element/__provide__/Validate.cjs +1 -1
  69. package/buildLibs/utils/Element/__provide__/Validate.js +13 -3
  70. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C1OgPpoJ.js → Index.vue_vue_type_script_setup_true_lang-0S6ab-Lp.js} +120 -113
  71. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-neC9NxKi.js → Index.vue_vue_type_script_setup_true_lang-2Fe9SkjL.js} +209 -201
  72. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-2THK822S.js +254 -0
  73. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BO4cal3i.js → Index.vue_vue_type_script_setup_true_lang-2dwwjiTV.js} +386 -375
  74. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-5itnjwU_.js +1 -0
  75. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-ChnRq_PS.js → Index.vue_vue_type_script_setup_true_lang-B0MJO0JM.js} +2 -2
  76. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BIO6Me43.js +1 -0
  77. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BN9ybiKv.js +1 -0
  78. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BpG7AHvM.js +1 -0
  79. package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-CAe8mhTl.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-CATwJnes.js} +66 -60
  80. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CW4fM0by.js +1 -0
  81. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DxYJbPyJ.js → Index.vue_vue_type_script_setup_true_lang-C_exHzjc.js} +3 -3
  82. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CsCn637u.js +2 -0
  83. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D_XMW7K4.js → Index.vue_vue_type_script_setup_true_lang-D4a5Iaue.js} +153 -145
  84. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DXPZYc0c.js +1 -0
  85. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DY4m6Xyj.js +1 -0
  86. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZCt32jb.js +1533 -0
  87. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZF2gj7X.js +2536 -0
  88. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-De1eNjwC.js +1 -0
  89. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C6Evk0-z.js → Index.vue_vue_type_script_setup_true_lang-DtAy8lm9.js} +53 -47
  90. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DvN-fBNd.js +1 -0
  91. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DwBf338f.js +1 -0
  92. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cg_benGj.js → Index.vue_vue_type_script_setup_true_lang-F9tBnc_7.js} +63 -55
  93. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HfnOtuMz.js +310 -0
  94. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dwkuei2j.js → Index.vue_vue_type_script_setup_true_lang-VjIva6RM.js} +1 -1
  95. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-j7gxlOeM.js +1 -0
  96. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CgdGs-U2.js → Index.vue_vue_type_script_setup_true_lang-lKDQFZtY.js} +67 -59
  97. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dzm58mMQ.js → Index.vue_vue_type_script_setup_true_lang-nAMiORzN.js} +1 -1
  98. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CizRrQsH.js → Index.vue_vue_type_script_setup_true_lang-oovIcT38.js} +1 -1
  99. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BIFHYrzc.js → Index.vue_vue_type_script_setup_true_lang-qqnmaRnk.js} +1 -1
  100. package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
  101. package/buildLibs/utils/Web/ClColorPicker.js +1 -1
  102. package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
  103. package/buildLibs/utils/Web/ClCropperPreview.js +1 -1
  104. package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
  105. package/buildLibs/utils/Web/ClDateTime.js +1 -1
  106. package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
  107. package/buildLibs/utils/Web/ClFileUpload.js +1 -1
  108. package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
  109. package/buildLibs/utils/Web/ClInputTag.js +1 -1
  110. package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
  111. package/buildLibs/utils/Web/ClPaginate.js +1 -1
  112. package/buildLibs/utils/Web/ClSelect.cjs +1 -1
  113. package/buildLibs/utils/Web/ClSelect.js +1 -1
  114. package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
  115. package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
  116. package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
  117. package/buildLibs/utils/Web/ClSelectMove.js +655 -647
  118. package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
  119. package/buildLibs/utils/Web/ClSelectTag.js +1 -1
  120. package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
  121. package/buildLibs/utils/Web/ClSelectTree.js +71 -63
  122. package/buildLibs/utils/Web/ClTable.cjs +1 -1
  123. package/buildLibs/utils/Web/ClTable.js +1 -1
  124. package/buildLibs/utils/Web/ClTree.cjs +1 -1
  125. package/buildLibs/utils/Web/ClTree.js +1 -1
  126. package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
  127. package/buildLibs/utils/Web/ClXEditable.js +10 -10
  128. package/buildLibs/web/index.cjs +7 -7
  129. package/buildLibs/web/index.js +10792 -10685
  130. package/docs/components/Element/Checkbox.md +2 -1
  131. package/docs/components/Element/Form.md +15 -0
  132. package/docs/components/Element/Input.md +2 -1
  133. package/docs/components/Element/InputNumber.md +2 -1
  134. package/docs/components/Element/InputNumberStepper.md +2 -1
  135. package/docs/components/Element/InputTextarea.md +2 -1
  136. package/docs/components/Element/Radio.md +2 -1
  137. package/docs/components/Web/DateTime.md +2 -1
  138. package/docs/components/Web/FileUpload.md +2 -1
  139. package/docs/components/Web/Select.md +2 -1
  140. package/docs/components/Web/SelectCascade.md +1 -0
  141. package/docs/components/Web/SelectMove.md +2 -1
  142. package/docs/components/Web/SelectTag.md +1 -0
  143. package/docs/components/Web/SelectTree.md +2 -1
  144. package/docs/components/Web/Tree.md +2 -1
  145. package/package.json +1 -1
  146. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CiNidFJt.js +0 -246
  147. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-DC6727pS.js +0 -2528
  148. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-EXqjkKwS.js +0 -302
  149. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-Hg16dgRQ.js +0 -1527
  150. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-5aX79Fcf.js +0 -1
  151. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BRvOcf4B.js +0 -1
  152. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ba8Z8fOP.js +0 -1
  153. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjNP5odR.js +0 -1
  154. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CQ3RGLek.js +0 -302
  155. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CY5fRV6o.js +0 -1
  156. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CYN4r-Mx.js +0 -1
  157. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C_7ArHlU.js +0 -1
  158. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CuJjJvft.js +0 -2
  159. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CwjigRBx.js +0 -2528
  160. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D6cmq0Tf.js +0 -1527
  161. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dbf-3Nik.js +0 -1
  162. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DgD_gHit.js +0 -1
  163. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-FowII7_3.js +0 -1
  164. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-c7oxeU_j.js +0 -246
  165. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-vLqCsSbV.js +0 -1
@@ -1,10 +1,11 @@
1
- import { defineComponent as le, inject as ye, computed as v, onBeforeUnmount as ke, openBlock as E, createElementBlock as C, Fragment as G, renderList as Oe, normalizeClass as ee, createElementVNode as X, withModifiers as N, withKeys as Ee, toDisplayString as ae, createBlock as ce, withCtx as Ce, withDirectives as xe, createVNode as we, vShow as Pe, reactive as Te, ref as Ue, onMounted as be, nextTick as Z, watch as J, provide as ve, unref as ie, mergeProps as _e } from "vue";
1
+ import { defineComponent as ae, inject as Oe, computed as T, onBeforeUnmount as ke, openBlock as x, createElementBlock as E, Fragment as j, renderList as xe, normalizeClass as ee, createElementVNode as X, withModifiers as J, withKeys as Ee, toDisplayString as ce, createBlock as de, withCtx as Ce, withDirectives as we, createVNode as Pe, vShow as Te, reactive as Ue, ref as ve, onMounted as be, nextTick as Z, watch as K, provide as _e, unref as oe, mergeProps as Ae } from "vue";
2
2
  import n from "@cldemo/ui-kit/common/base";
3
- import Ae from "@cldemo/ui-kit/common/Element";
4
- import Ve from "@cldemo/ui-kit/common/log";
5
- import { _ as Le } from "./SlideUpDown.vue_vue_type_script_setup_true_lang-oxIvThpq.js";
3
+ import Ve from "@cldemo/ui-kit/common/Element";
4
+ import { getPlaintextOutText as Le } from "@cldemo/ui-kit/common/globalConfig";
5
+ import Be from "@cldemo/ui-kit/common/log";
6
+ import { _ as Ne } from "./SlideUpDown.vue_vue_type_script_setup_true_lang-oxIvThpq.js";
6
7
  /* empty css */
7
- const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClick"], Ke = ["tabindex", "aria-disabled", "onClick", "onDblclick", "onKeydown"], $e = ["innerHTML"], Fe = { key: 1 }, oe = 170, de = /* @__PURE__ */ le({
8
+ const Je = { class: "tree-ul" }, Ke = ["onClick"], $e = ["aria-checked", "onClick"], Fe = ["tabindex", "aria-disabled", "onClick", "onDblclick", "onKeydown"], Me = ["innerHTML"], Re = { key: 1 }, le = 170, pe = /* @__PURE__ */ ae({
8
9
  name: "ClTreeUl",
9
10
  __name: "Ul",
10
11
  props: {
@@ -50,96 +51,96 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
50
51
  }
51
52
  },
52
53
  emits: ["onSelect", "onShrink"],
53
- setup(y, { emit: z }) {
54
- const k = y, l = z, _ = `tree-${n.getRandom(5)}`;
54
+ setup(y, { emit: G }) {
55
+ const O = y, o = G, _ = `tree-${n.getRandom(5)}`;
55
56
  let L = !1;
56
- const o = ye("$TreeTop", {
57
- isCheckChildren: () => (L || (L = !0, Ve.warn("ClTreeUl", "未检测到 ClTree 容器提供 $TreeTop,子级判断降级为 false")), !1)
57
+ const l = Oe("$TreeTop", {
58
+ isCheckChildren: () => (L || (L = !0, Be.warn("ClTreeUl", "未检测到 ClTree 容器提供 $TreeTop,子级判断降级为 false")), !1)
58
59
  }), h = {
59
60
  dbClickTimeOut: null
60
- }, W = v(() => new Set(k.firstOpenIds)), K = v(() => new Set(k.selectIds)), B = v(() => new Set(k.selectUnIds)), $ = v(() => new Set(k.openIds)), A = (p) => {
61
- n.isUndefined(p) || l("onSelect", p.toString());
62
- }, x = (p) => {
63
- n.isUndefined(p) || l("onShrink", p.toString());
64
- }, w = (p) => n.isUndefined(p.id) ? "" : p.id.toString(), F = (p) => {
61
+ }, z = T(() => new Set(O.firstOpenIds)), $ = T(() => new Set(O.selectIds)), B = T(() => new Set(O.selectUnIds)), F = T(() => new Set(O.openIds)), A = (p) => {
62
+ n.isUndefined(p) || o("onSelect", p.toString());
63
+ }, C = (p) => {
64
+ n.isUndefined(p) || o("onShrink", p.toString());
65
+ }, w = (p) => n.isUndefined(p.id) ? "" : p.id.toString(), M = (p) => {
65
66
  const S = w(p);
66
- return K.value.has(S) ? "true" : B.value.has(S) ? "mixed" : "false";
67
+ return $.value.has(S) ? "true" : B.value.has(S) ? "mixed" : "false";
67
68
  }, V = (p) => {
68
69
  const S = {
69
70
  "tree-node": !0
70
71
  };
71
72
  if (S["tree-node-end"] = p.isEnd, !p.isEnd) {
72
- const g = n.isUndefined(p.id) ? "" : p.id.toString(), T = $.value.has(g);
73
- S["tree-node-open"] = T, S["tree-node-closed"] = !T;
73
+ const g = n.isUndefined(p.id) ? "" : p.id.toString(), U = F.value.has(g);
74
+ S["tree-node-open"] = U, S["tree-node-closed"] = !U;
74
75
  }
75
76
  return S;
76
- }, Y = (p) => {
77
+ }, W = (p) => {
77
78
  const S = n.isUndefined(p.id) ? "" : p.id.toString(), g = {
78
79
  "tree-node-text": !0
79
80
  };
80
- return g["tree-node-select"] = K.value.has(S), g["tree-node-selectUn"] = B.value.has(S), g;
81
+ return g["tree-node-select"] = $.value.has(S), g["tree-node-selectUn"] = B.value.has(S), g;
81
82
  };
82
83
  ke(() => {
83
84
  h.dbClickTimeOut && window.clearTimeout(h.dbClickTimeOut);
84
85
  });
85
- const Q = (p) => {
86
- k.disabled || (window.clearTimeout(h.dbClickTimeOut), x(p.id));
87
- }, M = (p) => {
88
- k.disabled || (window.clearTimeout(h.dbClickTimeOut), A(p.id));
89
- }, P = (p) => {
90
- if (!k.disabled)
91
- if (o.isCheckChildren(p.id)) {
86
+ const Y = (p) => {
87
+ O.disabled || (window.clearTimeout(h.dbClickTimeOut), C(p.id));
88
+ }, Q = (p) => {
89
+ O.disabled || (window.clearTimeout(h.dbClickTimeOut), A(p.id));
90
+ }, N = (p) => {
91
+ if (!O.disabled)
92
+ if (l.isCheckChildren(p.id)) {
92
93
  let S = !0;
93
- !k.multiple && !k.isSingleSelectParent && (S = !1), S ? (window.clearTimeout(h.dbClickTimeOut), h.dbClickTimeOut = window.setTimeout(() => {
94
- k.disabled || A(p.id);
95
- }, oe)) : window.clearTimeout(h.dbClickTimeOut);
94
+ !O.multiple && !O.isSingleSelectParent && (S = !1), S ? (window.clearTimeout(h.dbClickTimeOut), h.dbClickTimeOut = window.setTimeout(() => {
95
+ O.disabled || A(p.id);
96
+ }, le)) : window.clearTimeout(h.dbClickTimeOut);
96
97
  } else
97
98
  window.clearTimeout(h.dbClickTimeOut), h.dbClickTimeOut = window.setTimeout(() => {
98
- k.disabled || A(p.id);
99
- }, oe);
99
+ O.disabled || A(p.id);
100
+ }, le);
101
+ }, P = (p) => {
102
+ O.disabled || l.isCheckChildren(p.id) && (h.dbClickTimeOut && window.clearTimeout(h.dbClickTimeOut), C(p.id));
100
103
  }, R = (p) => {
101
- k.disabled || o.isCheckChildren(p.id) && (h.dbClickTimeOut && window.clearTimeout(h.dbClickTimeOut), x(p.id));
102
- }, D = (p) => {
103
104
  A(p);
104
- }, q = (p) => {
105
- x(p);
105
+ }, D = (p) => {
106
+ C(p);
106
107
  };
107
- return (p, S) => (E(), C("ul", Be, [
108
- (E(!0), C(G, null, Oe(y.list, (g, T) => (E(), C("li", {
109
- key: `${_}-${g.id}-${T}`,
108
+ return (p, S) => (x(), E("ul", Je, [
109
+ (x(!0), E(j, null, xe(y.list, (g, U) => (x(), E("li", {
110
+ key: `${_}-${g.id}-${U}`,
110
111
  class: ee(V(g))
111
112
  }, [
112
113
  X("i", {
113
114
  class: "tree-shrink",
114
- onClick: N((U) => Q(g), ["stop"])
115
- }, null, 8, Ne),
115
+ onClick: J((v) => Y(g), ["stop"])
116
+ }, null, 8, Ke),
116
117
  X("span", {
117
- class: ee(Y(g))
118
+ class: ee(W(g))
118
119
  }, [
119
- y.multiple ? (E(), C("i", {
120
+ y.multiple ? (x(), E("i", {
120
121
  key: 0,
121
122
  class: "tree-node-checkbox",
122
123
  role: "checkbox",
123
- "aria-checked": F(g),
124
- onClick: N((U) => M(g), ["stop"])
125
- }, null, 8, Je)) : (E(), C(G, { key: 1 }, [], 64)),
124
+ "aria-checked": M(g),
125
+ onClick: J((v) => Q(g), ["stop"])
126
+ }, null, 8, $e)) : (x(), E(j, { key: 1 }, [], 64)),
126
127
  X("a", {
127
128
  href: "javascript:",
128
129
  tabindex: y.disabled ? -1 : 0,
129
130
  "aria-disabled": y.disabled,
130
- onClick: N((U) => P(g), ["stop"]),
131
- onDblclick: N((U) => R(g), ["stop"]),
132
- onKeydown: Ee(N((U) => P(g), ["prevent"]), ["enter"])
131
+ onClick: J((v) => N(g), ["stop"]),
132
+ onDblclick: J((v) => P(g), ["stop"]),
133
+ onKeydown: Ee(J((v) => N(g), ["prevent"]), ["enter"])
133
134
  }, [
134
- g.showTextLabelHtml ? (E(), C("span", {
135
+ g.showTextLabelHtml ? (x(), E("span", {
135
136
  key: 0,
136
137
  innerHTML: g.showTextLabel
137
- }, null, 8, $e)) : (E(), C("span", Fe, ae(g.showTextLabel), 1))
138
- ], 40, Ke)
138
+ }, null, 8, Me)) : (x(), E("span", Re, ce(g.showTextLabel), 1))
139
+ ], 40, Fe)
139
140
  ], 2),
140
- W.value.has(w(g)) ? (E(), ce(Le, { key: 0 }, {
141
+ z.value.has(w(g)) ? (x(), de(Ne, { key: 0 }, {
141
142
  default: Ce(() => [
142
- xe(we(de, {
143
+ we(Pe(pe, {
143
144
  list: g.list,
144
145
  multiple: y.multiple,
145
146
  isSingleSelectParent: y.isSingleSelectParent,
@@ -148,18 +149,18 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
148
149
  openIds: y.openIds,
149
150
  selectIds: y.selectIds,
150
151
  selectUnIds: y.selectUnIds,
151
- onOnSelect: D,
152
- onOnShrink: q
152
+ onOnSelect: R,
153
+ onOnShrink: D
153
154
  }, null, 8, ["list", "multiple", "isSingleSelectParent", "disabled", "firstOpenIds", "openIds", "selectIds", "selectUnIds"]), [
154
- [Pe, $.value.has(w(g))]
155
+ [Te, F.value.has(w(g))]
155
156
  ])
156
157
  ]),
157
158
  _: 2
158
- }, 1024)) : (E(), C(G, { key: 1 }, [], 64))
159
+ }, 1024)) : (x(), E(j, { key: 1 }, [], 64))
159
160
  ], 2))), 128))
160
161
  ]));
161
162
  }
162
- }), Me = ["id"], Re = ["id"], Xe = /* @__PURE__ */ le({
163
+ }), De = ["id"], qe = ["id"], tt = /* @__PURE__ */ ae({
163
164
  name: "ClTree",
164
165
  __name: "Index",
165
166
  props: {
@@ -234,6 +235,11 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
234
235
  default: !1
235
236
  // desc: 是否纯文本只读模式,只渲染选中项层级文本不挂载树
236
237
  },
238
+ plaintextEmptyText: {
239
+ type: String,
240
+ default: void 0
241
+ // desc: 纯文本只读模式下值为空时的显示文本(默认 "-",显式传空串则显示空白;未显式传时依次读取组件配置段与 plaintextGlobal 段)
242
+ },
237
243
  plaintextSeparator: {
238
244
  type: String,
239
245
  default: ","
@@ -246,8 +252,8 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
246
252
  }
247
253
  },
248
254
  emits: ["update:value", "update:modelValue", "onChange", "onInit"],
249
- setup(y, { expose: z, emit: k }) {
250
- const l = y, _ = k, L = l.id, o = Te({
255
+ setup(y, { expose: G, emit: O }) {
256
+ const o = y, _ = O, L = o.id, l = Ue({
251
257
  firstOpenIds: [],
252
258
  openParentIds: [],
253
259
  selectedIds: [],
@@ -259,31 +265,31 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
259
265
  childLastIdsJson: {},
260
266
  prevSearchOpenParentIds: "",
261
267
  prevSearchFoldParentIds: ""
262
- }, W = v(() => ({
263
- multiple: l.multiple,
264
- disabled: l.disabled,
265
- isSingleSelectParent: l.isSingleSelectParent
266
- })), K = v(() => n.getJsonMerge(
268
+ }, z = T(() => ({
269
+ multiple: o.multiple,
270
+ disabled: o.disabled,
271
+ isSingleSelectParent: o.isSingleSelectParent
272
+ })), $ = T(() => n.getJsonMerge(
267
273
  { "panel-tree": !0 },
268
- Ae.getClassNameJson(l.className)
274
+ Ve.getClassNameJson(o.className)
269
275
  )), B = (t) => {
270
276
  _("update:value", t), _("update:modelValue", t);
271
- }, $ = (t, e) => {
277
+ }, F = (t, e) => {
272
278
  B(t), _("onChange", t, e);
273
279
  }, A = () => {
274
280
  Z(() => {
275
281
  _("onInit");
276
282
  });
277
- }, x = (t) => {
283
+ }, C = (t) => {
278
284
  const e = n.isUndefined(t) ? "" : t.toString();
279
285
  return n.isExistJsonKey(h.dataGroup, e);
280
286
  }, w = (t) => {
281
287
  const e = n.isUndefined(t) ? "" : t.toString();
282
- return x(e) ? h.dataGroup[e] : [];
283
- }, F = Ue(0), V = (t) => {
288
+ return C(e) ? h.dataGroup[e] : [];
289
+ }, M = ve(0), V = (t) => {
284
290
  const e = t.toString();
285
291
  return n.isExistJsonKey(h.dataJson, e) ? h.dataJson[e] : null;
286
- }, Y = (t) => {
292
+ }, W = (t) => {
287
293
  const e = [], s = /* @__PURE__ */ new Set();
288
294
  let i = t;
289
295
  for (; n.isNonEmptyString(i) && !s.has(i); ) {
@@ -291,30 +297,32 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
291
297
  const d = V(i);
292
298
  if (!d) break;
293
299
  n.isNonEmptyString(d.name) && e.unshift(d.name);
294
- const c = d[l.parentKey], a = c != null ? String(c) : "";
295
- if (a === "" || a === String(l.topParentValue)) break;
300
+ const c = d[o.parentKey], a = c != null ? String(c) : "";
301
+ if (a === "" || a === String(o.topParentValue)) break;
296
302
  i = a;
297
303
  }
298
304
  return e;
299
- }, Q = v(() => {
300
- if (l.list, F.value, n.isEmpty(o.selectedIds))
305
+ }, Y = T(() => {
306
+ if (o.list, M.value, n.isEmpty(l.selectedIds))
301
307
  return "";
302
- const t = n.isString(l.plaintextLevelSeparator) ? l.plaintextLevelSeparator : " > ", e = n.isString(l.plaintextSeparator) ? l.plaintextSeparator : ",";
303
- return b(o.selectedIds, l.isOutMerge).map((i) => {
304
- const d = Y(i);
308
+ const t = n.isString(o.plaintextLevelSeparator) ? o.plaintextLevelSeparator : " > ", e = n.isString(o.plaintextSeparator) ? o.plaintextSeparator : ",";
309
+ return b(l.selectedIds, o.isOutMerge).map((i) => {
310
+ const d = W(i);
305
311
  return n.removeHTMLTags(d.length > 0 ? d.join(t) : i);
306
312
  }).join(e);
307
- }), M = (t, e, s) => {
313
+ }), Q = T(
314
+ () => Le("tree", o.plaintextEmptyText, Y.value, o.value)
315
+ ), N = (t, e, s) => {
308
316
  const i = [], d = e + 1;
309
317
  return s === void 0 && (s = /* @__PURE__ */ new Set()), s.has(t) || (s.add(t), w(t).forEach((c) => {
310
- const a = { ...c }, r = a.id.toString(), u = x(r);
311
- a.isEnd = !u, a.level = d, u && (a.list = M(r, d, s)), i.push(a);
318
+ const a = { ...c }, r = a.id.toString(), u = C(r);
319
+ a.isEnd = !u, a.level = d, u && (a.list = N(r, d, s)), i.push(a);
312
320
  })), i;
313
321
  }, P = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), R = (t) => {
314
- const e = l.searchKeyword, s = l.highlightMode;
322
+ const e = o.searchKeyword, s = o.highlightMode;
315
323
  if (!n.isNonEmptyString(t) || n.isEmpty(e))
316
324
  return P(String(t));
317
- const i = n.isNonEmptyString(l.highlightColor) ? l.highlightColor : "#ffe58f", d = (I) => `<mark style="background:${i}">${P(I)}</mark>`;
325
+ const i = n.isNonEmptyString(o.highlightColor) ? o.highlightColor : "#ffe58f", d = (I) => `<mark style="background:${i}">${P(I)}</mark>`;
318
326
  if (s === "full")
319
327
  return t.includes(e) ? d(t) : P(t);
320
328
  const c = t.indexOf(e);
@@ -323,71 +331,71 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
323
331
  const a = P(t.slice(0, c)), r = d(t.slice(c, c + e.length)), u = P(t.slice(c + e.length));
324
332
  return `${a}${r}${u}`;
325
333
  }, D = (t) => {
326
- const { parentKey: e, topParentValue: s } = l, i = n.isNonEmptyString(s) ? s : "0", d = {}, c = {};
334
+ const { parentKey: e, topParentValue: s } = o, i = n.isNonEmptyString(s) ? s : "0", d = {}, c = {};
327
335
  n.isEmpty(t) || t.forEach((a) => {
328
- const r = n.getJsonClone(a), u = !n.isEmpty(l.searchKeyword) && !n.isEmpty(l.highlightMode);
336
+ const r = n.getJsonClone(a), u = !n.isEmpty(o.searchKeyword) && !n.isEmpty(o.highlightMode);
329
337
  r.showTextLabelHtml = u, r.showTextLabel = u ? R(n.isString(r.name) ? r.name : "") : n.isString(r.name) ? r.name : "";
330
338
  const I = n.isString(r.id) || typeof r.id == "number" && n.isFinite(r.id), f = n.isString(r[e]) || typeof r[e] == "number" && n.isFinite(r[e]);
331
339
  if (!I || !f)
332
340
  return;
333
- const O = r.id.toString(), m = r[e].toString();
334
- d[O] = r, n.isExistJsonKey(c, m) || (c[m] = []), c[m].push(r);
335
- }), h.dataJson = d, h.dataGroup = c, h.childLastIdsJson = {}, o.list = M(i, 0), F.value += 1;
336
- }, q = (t, e) => {
341
+ const k = r.id.toString(), m = r[e].toString();
342
+ d[k] = r, n.isExistJsonKey(c, m) || (c[m] = []), c[m].push(r);
343
+ }), h.dataJson = d, h.dataGroup = c, h.childLastIdsJson = {}, l.list = N(i, 0), M.value += 1;
344
+ }, p = (t, e) => {
337
345
  let s = [];
338
- const { parentKey: i, topParentValue: d } = l, c = n.isNonEmptyString(d) ? d : "0", a = n.isEmpty(t) ? "" : t.toString();
346
+ const { parentKey: i, topParentValue: d } = o, c = n.isNonEmptyString(d) ? d : "0", a = n.isEmpty(t) ? "" : t.toString();
339
347
  if (e === void 0 && (e = /* @__PURE__ */ new Set()), n.isExistJsonKey(h.dataJson, a) && !e.has(a)) {
340
348
  e.add(a), s.push(a);
341
349
  const r = h.dataJson[a][i].toString();
342
350
  if (r !== c) {
343
- const u = q(r, e);
351
+ const u = p(r, e);
344
352
  s = s.concat(u);
345
353
  }
346
354
  }
347
355
  return s;
348
- }, p = (t) => {
349
- const e = q(t);
356
+ }, S = (t) => {
357
+ const e = p(t);
350
358
  return e.splice(0, 1), e.reverse(), e;
351
- }, S = (t, e) => {
359
+ }, g = (t, e) => {
352
360
  let s = [];
353
361
  const i = n.isEmpty(t) ? "" : t.toString();
354
- return e === void 0 && (e = /* @__PURE__ */ new Set()), e.has(i) || (e.add(i), s.push(i), x(i) && w(i).forEach((d) => {
355
- const c = d.id.toString(), a = S(c, e);
362
+ return e === void 0 && (e = /* @__PURE__ */ new Set()), e.has(i) || (e.add(i), s.push(i), C(i) && w(i).forEach((d) => {
363
+ const c = d.id.toString(), a = g(c, e);
356
364
  s = s.concat(a);
357
365
  })), s;
358
- }, g = (t) => {
359
- const e = S(t);
366
+ }, U = (t) => {
367
+ const e = g(t);
360
368
  return e.splice(0, 1), e;
361
- }, T = (t, e, s, i) => {
369
+ }, v = (t, e, s, i) => {
362
370
  const d = { add: [], del: [] }, c = { add: [], del: [] };
363
- let a = n.isUndefined(e) ? n.getArrClone(o.selectedIds) : e, r = n.isUndefined(s) ? n.getArrClone(o.selectedUnIds) : s;
371
+ let a = n.isUndefined(e) ? n.getArrClone(l.selectedIds) : e, r = n.isUndefined(s) ? n.getArrClone(l.selectedUnIds) : s;
364
372
  const u = a.indexOf(t);
365
373
  i ? u === -1 && a.push(t) : u === -1 ? a.push(t) : a.splice(u, 1), r = n.getArrRemoveById(r, t);
366
- const I = p(t);
374
+ const I = S(t);
367
375
  return I.reverse(), I.length > 0 && I.forEach((f) => {
368
- let O = 0, m = 0;
369
- h.dataGroup[f].forEach((me) => {
370
- const re = me.id.toString();
371
- n.isExistValue(a, re) && (O += 1), n.isExistValue(r, re) && (m += 1);
376
+ let k = 0, m = 0;
377
+ h.dataGroup[f].forEach((ye) => {
378
+ const ie = ye.id.toString();
379
+ n.isExistValue(a, ie) && (k += 1), n.isExistValue(r, ie) && (m += 1);
372
380
  });
373
- const j = h.dataGroup[f].length;
374
- O === 0 && m === 0 ? (d.del.push(f), a = n.getArrRemoveById(a, f), c.del.push(f), r = n.getArrRemoveById(r, f)) : O === j ? (d.add.push(f), a.push(f), c.del.push(f), r = n.getArrRemoveById(r, f)) : (d.del.push(f), a = n.getArrRemoveById(a, f), c.add.push(f), r.push(f));
381
+ const H = h.dataGroup[f].length;
382
+ k === 0 && m === 0 ? (d.del.push(f), a = n.getArrRemoveById(a, f), c.del.push(f), r = n.getArrRemoveById(r, f)) : k === H ? (d.add.push(f), a.push(f), c.del.push(f), r = n.getArrRemoveById(r, f)) : (d.del.push(f), a = n.getArrRemoveById(a, f), c.add.push(f), r.push(f));
375
383
  }), { select: d, selectUn: c };
376
- }, U = (t, e) => {
384
+ }, te = (t, e) => {
377
385
  let s = [];
378
386
  if (e === void 0 && (e = /* @__PURE__ */ new Set()), n.isExistJsonKey(h.childLastIdsJson, t) && h.childLastIdsJson[t].length > 0)
379
387
  s = h.childLastIdsJson[t];
380
388
  else {
381
389
  if (e.has(t))
382
390
  return s;
383
- x(t) ? (e.add(t), w(t).forEach((i) => {
384
- const d = U(i.id.toString(), e);
391
+ C(t) ? (e.add(t), w(t).forEach((i) => {
392
+ const d = te(i.id.toString(), e);
385
393
  d.length > 0 && (s = s.concat(d));
386
394
  })) : s.push(t), h.childLastIdsJson[t] = s;
387
395
  }
388
396
  return s;
389
- }, te = (t, e) => {
390
- const { parentKey: s, topParentValue: i } = l, d = n.isNonEmptyString(i) ? i : "0", c = {}, a = [];
397
+ }, ne = (t, e) => {
398
+ const { parentKey: s, topParentValue: i } = o, d = n.isNonEmptyString(i) ? i : "0", c = {}, a = [];
391
399
  let r = [];
392
400
  if (e === void 0 && (e = /* @__PURE__ */ new Set()), t.forEach((u) => {
393
401
  const I = V(u);
@@ -401,10 +409,10 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
401
409
  if (a.length > 0) {
402
410
  r.push(...a);
403
411
  const u = n.getArrUnique(r), I = a.some((f) => !e.has(f));
404
- return a.forEach((f) => e.add(f)), I ? te(u, e) : r;
412
+ return a.forEach((f) => e.add(f)), I ? ne(u, e) : r;
405
413
  } else
406
414
  return r;
407
- }, pe = (t) => {
415
+ }, ue = (t) => {
408
416
  const e = [], s = n.getArrConvertJson(t);
409
417
  return t.forEach((d) => {
410
418
  const c = w(d);
@@ -416,159 +424,159 @@ const Be = { class: "tree-ul" }, Ne = ["onClick"], Je = ["aria-checked", "onClic
416
424
  n.isExistJsonKey(s, r.id.toString()) && a.push(r.id);
417
425
  }), c.length !== a.length && e.push(d);
418
426
  }
419
- }), te(e);
420
- }, ue = (t) => {
427
+ }), ne(e);
428
+ }, he = (t) => {
421
429
  let e = [];
422
430
  return t.forEach((s) => {
423
- const i = U(s);
431
+ const i = te(s);
424
432
  e.push(...i);
425
433
  }), e = n.getArrUnique(e), e;
426
- }, b = (t, e) => l.multiple ? (n.isBoolean(e) ? e : l.isOutMerge) ? pe(t) : ue(t) : t, ne = (t) => {
434
+ }, b = (t, e) => o.multiple ? (n.isBoolean(e) ? e : o.isOutMerge) ? ue(t) : he(t) : t, se = (t) => {
427
435
  const e = [];
428
436
  return t.forEach((s) => {
429
437
  const i = V(s);
430
438
  n.isUndefined(i) || e.push(i);
431
439
  }), e;
432
- }, H = (t) => {
433
- const e = l.multiple ? t : t.slice(0, 1);
440
+ }, q = (t) => {
441
+ const e = o.multiple ? t : t.slice(0, 1);
434
442
  let s = [], i = [];
435
443
  e.forEach((c) => {
436
444
  const a = V(c);
437
445
  if (!n.isUndefined(a)) {
438
- const r = T(c, s, i, !0);
446
+ const r = v(c, s, i, !0);
439
447
  s = n.getArrRemoveById(s, r.select.del), r.select.add.length > 0 && s.push(...r.select.add), i = n.getArrRemoveById(i, r.selectUn.del), r.selectUn.add.length > 0 && i.push(...r.selectUn.add);
440
- const u = g(c);
448
+ const u = U(c);
441
449
  s.push(...u), s.push(c), s = n.getArrUnique(s), i = n.getArrUnique(i);
442
450
  }
443
- }), o.selectedIds = s;
451
+ }), l.selectedIds = s;
444
452
  const d = n.getArrRemoveById(i, s);
445
- o.selectedUnIds = n.getArrClone(d), o.firstOpenIds = n.getArrUnique(o.firstOpenIds.concat(d)), o.openParentIds = n.getArrUnique(o.openParentIds.concat(d));
446
- }, he = () => {
447
- if (D(l.list), n.isNonEmptyString(l.value)) {
448
- const t = l.value.split(",");
449
- H(t);
453
+ l.selectedUnIds = n.getArrClone(d), l.firstOpenIds = n.getArrUnique(l.firstOpenIds.concat(d)), l.openParentIds = n.getArrUnique(l.openParentIds.concat(d));
454
+ }, fe = () => {
455
+ if (D(o.list), n.isNonEmptyString(o.value)) {
456
+ const t = o.value.split(",");
457
+ q(t);
450
458
  }
451
459
  A();
452
460
  };
453
461
  be(() => {
454
462
  Z(() => {
455
- he();
463
+ fe();
456
464
  });
457
- }), J(
458
- () => l.list,
465
+ }), K(
466
+ () => o.list,
459
467
  (t) => {
460
468
  D(t);
461
- const e = o.selectedIds, s = n.isNonEmptyString(l.value) ? l.value.split(",") : [];
462
- o.selectedIds = [], H(n.getArrUnique(e.concat(s)));
463
- const i = b(o.selectedIds);
464
- i.join(",") !== l.value && B(i.join(","));
469
+ const e = l.selectedIds, s = n.isNonEmptyString(o.value) ? o.value.split(",") : [];
470
+ l.selectedIds = [], q(n.getArrUnique(e.concat(s)));
471
+ const i = b(l.selectedIds);
472
+ i.join(",") !== o.value && B(i.join(","));
465
473
  }
466
- ), J(
467
- () => l.value,
474
+ ), K(
475
+ () => o.value,
468
476
  (t) => {
469
477
  if (t !== void 0) {
470
- const e = o.selectedIds, s = n.isNonEmptyString(t) ? t.split(",") : [], i = b(s), d = b(e);
471
- n.isEqualArr(i, d) || (o.selectedIds = [], H(s));
478
+ const e = l.selectedIds, s = n.isNonEmptyString(t) ? t.split(",") : [], i = b(s), d = b(e);
479
+ n.isEqualArr(i, d) || (l.selectedIds = [], q(s));
472
480
  }
473
481
  }
474
482
  );
475
- const fe = () => {
483
+ const ge = () => {
476
484
  const t = n.isNonEmptyString(h.prevSearchFoldParentIds) ? h.prevSearchFoldParentIds.split(",") : [];
477
- o.firstOpenIds = n.getArrRemoveById(o.firstOpenIds, t), (n.isNonEmptyString(l.searchFoldParentIds) ? l.searchFoldParentIds.split(",") : []).forEach((s) => {
485
+ l.firstOpenIds = n.getArrRemoveById(l.firstOpenIds, t), (n.isNonEmptyString(o.searchFoldParentIds) ? o.searchFoldParentIds.split(",") : []).forEach((s) => {
478
486
  const i = s.toString();
479
- o.firstOpenIds.indexOf(i) === -1 && o.firstOpenIds.push(i);
480
- }), h.prevSearchFoldParentIds = n.isNonEmptyString(l.searchFoldParentIds) ? l.searchFoldParentIds : "";
481
- }, ge = () => {
487
+ l.firstOpenIds.indexOf(i) === -1 && l.firstOpenIds.push(i);
488
+ }), h.prevSearchFoldParentIds = n.isNonEmptyString(o.searchFoldParentIds) ? o.searchFoldParentIds : "";
489
+ }, Ie = () => {
482
490
  const t = n.isNonEmptyString(h.prevSearchOpenParentIds) ? h.prevSearchOpenParentIds.split(",") : [];
483
- o.firstOpenIds = n.getArrRemoveById(o.firstOpenIds, t), o.openParentIds = n.getArrRemoveById(o.openParentIds, t), (n.isNonEmptyString(l.searchOpenParentIds) ? l.searchOpenParentIds.split(",") : []).forEach((s) => {
491
+ l.firstOpenIds = n.getArrRemoveById(l.firstOpenIds, t), l.openParentIds = n.getArrRemoveById(l.openParentIds, t), (n.isNonEmptyString(o.searchOpenParentIds) ? o.searchOpenParentIds.split(",") : []).forEach((s) => {
484
492
  const i = s.toString();
485
- o.firstOpenIds.indexOf(i) === -1 && o.firstOpenIds.push(i), o.openParentIds.indexOf(i) === -1 && o.openParentIds.push(i);
486
- }), h.prevSearchOpenParentIds = n.isNonEmptyString(l.searchOpenParentIds) ? l.searchOpenParentIds : "";
493
+ l.firstOpenIds.indexOf(i) === -1 && l.firstOpenIds.push(i), l.openParentIds.indexOf(i) === -1 && l.openParentIds.push(i);
494
+ }), h.prevSearchOpenParentIds = n.isNonEmptyString(o.searchOpenParentIds) ? o.searchOpenParentIds : "";
487
495
  };
488
- J(
489
- () => l.searchOpenParentIds,
496
+ K(
497
+ () => o.searchOpenParentIds,
498
+ () => Ie()
499
+ ), K(
500
+ () => o.searchFoldParentIds,
490
501
  () => ge()
491
- ), J(
492
- () => l.searchFoldParentIds,
493
- () => fe()
494
502
  );
495
- const se = (t) => {
503
+ const re = (t) => {
496
504
  Array.isArray(t) && t.forEach((e) => {
497
505
  if (!e)
498
506
  return;
499
- const s = !n.isEmpty(l.searchKeyword) && !n.isEmpty(l.highlightMode);
500
- e.showTextLabelHtml = s, e.showTextLabel = s ? R(n.isString(e.name) ? e.name : "") : n.isString(e.name) ? e.name : "", Array.isArray(e.list) && se(e.list);
507
+ const s = !n.isEmpty(o.searchKeyword) && !n.isEmpty(o.highlightMode);
508
+ e.showTextLabelHtml = s, e.showTextLabel = s ? R(n.isString(e.name) ? e.name : "") : n.isString(e.name) ? e.name : "", Array.isArray(e.list) && re(e.list);
501
509
  });
502
510
  };
503
- J(
504
- () => [l.searchKeyword, l.highlightMode, l.highlightColor],
505
- () => se(o.list)
511
+ K(
512
+ () => [o.searchKeyword, o.highlightMode, o.highlightColor],
513
+ () => re(l.list)
506
514
  );
507
- const Ie = (t) => {
515
+ const Se = (t) => {
508
516
  const e = t.toString();
509
- n.isExistValue(o.firstOpenIds, e) || o.firstOpenIds.push(e), Z(() => {
510
- const s = o.openParentIds.indexOf(e);
511
- s === -1 ? o.openParentIds.push(e) : o.openParentIds.splice(s, 1);
517
+ n.isExistValue(l.firstOpenIds, e) || l.firstOpenIds.push(e), Z(() => {
518
+ const s = l.openParentIds.indexOf(e);
519
+ s === -1 ? l.openParentIds.push(e) : l.openParentIds.splice(s, 1);
512
520
  });
513
- }, Se = (t) => {
521
+ }, me = (t) => {
514
522
  const e = t.toString();
515
- if (l.multiple) {
516
- const d = o.selectedIds.indexOf(e) === -1, c = g(e), a = T(e);
517
- let r = n.getArrClone(o.selectedIds), u = n.getArrClone(o.selectedUnIds);
518
- a.select.del.forEach((O) => {
519
- const m = r.indexOf(O);
523
+ if (o.multiple) {
524
+ const d = l.selectedIds.indexOf(e) === -1, c = U(e), a = v(e);
525
+ let r = n.getArrClone(l.selectedIds), u = n.getArrClone(l.selectedUnIds);
526
+ a.select.del.forEach((k) => {
527
+ const m = r.indexOf(k);
520
528
  m > -1 && r.splice(m, 1);
521
- }), a.select.add.length > 0 && (r = r.concat(a.select.add), r = n.getArrUnique(r)), a.selectUn.del.forEach((O) => {
522
- const m = u.indexOf(O);
529
+ }), a.select.add.length > 0 && (r = r.concat(a.select.add), r = n.getArrUnique(r)), a.selectUn.del.forEach((k) => {
530
+ const m = u.indexOf(k);
523
531
  m > -1 && u.splice(m, 1);
524
- }), a.selectUn.add.length > 0 && (u = u.concat(a.selectUn.add), u = n.getArrUnique(u)), c.length > 0 && c.forEach((O) => {
525
- const m = r.indexOf(O), j = u.indexOf(O);
526
- d ? m === -1 && r.push(O) : m > -1 && r.splice(m, 1), j > -1 && u.splice(j, 1);
532
+ }), a.selectUn.add.length > 0 && (u = u.concat(a.selectUn.add), u = n.getArrUnique(u)), c.length > 0 && c.forEach((k) => {
533
+ const m = r.indexOf(k), H = u.indexOf(k);
534
+ d ? m === -1 && r.push(k) : m > -1 && r.splice(m, 1), H > -1 && u.splice(H, 1);
527
535
  });
528
536
  const I = r.indexOf(e);
529
537
  I > -1 ? r.splice(I, 1) : r.push(e);
530
538
  const f = u.indexOf(e);
531
- f > -1 && u.splice(f, 1), o.selectedIds = r, o.selectedUnIds = u;
539
+ f > -1 && u.splice(f, 1), l.selectedIds = r, l.selectedUnIds = u;
532
540
  } else
533
- o.selectedIds = [e], o.selectedUnIds = [];
534
- const s = b(o.selectedIds);
535
- $(s.join(","), ne(s));
541
+ l.selectedIds = [e], l.selectedUnIds = [];
542
+ const s = b(l.selectedIds);
543
+ F(s.join(","), se(s));
536
544
  };
537
- return ve("$TreeTop", {
538
- isCheckChildren: x
539
- }), z({
540
- getValue: () => b(o.selectedIds).join(","),
545
+ return _e("$TreeTop", {
546
+ isCheckChildren: C
547
+ }), G({
548
+ getValue: () => b(l.selectedIds).join(","),
541
549
  getValueData: () => {
542
- const t = b(o.selectedIds);
543
- return ne(t);
550
+ const t = b(l.selectedIds);
551
+ return se(t);
544
552
  },
545
553
  setValue: (t) => {
546
554
  const e = n.isNonEmptyString(t) ? t.split(",") : [];
547
- o.selectedIds = [], H(e);
555
+ l.selectedIds = [], q(e);
548
556
  }
549
- }), (t, e) => y.isPlaintext ? (E(), C("div", {
557
+ }), (t, e) => y.isPlaintext ? (x(), E("div", {
550
558
  key: 0,
551
- id: ie(L),
559
+ id: oe(L),
552
560
  class: "cl-plaintext-value"
553
- }, ae(Q.value), 9, Me)) : (E(), C("div", {
561
+ }, ce(Q.value), 9, De)) : (x(), E("div", {
554
562
  key: 1,
555
- class: ee(K.value),
556
- id: ie(L)
563
+ class: ee($.value),
564
+ id: oe(L)
557
565
  }, [
558
- o.list.length > 0 ? (E(), ce(de, _e({
566
+ l.list.length > 0 ? (x(), de(pe, Ae({
559
567
  key: 0,
560
- list: o.list,
561
- firstOpenIds: o.firstOpenIds,
562
- openIds: o.openParentIds,
563
- selectIds: o.selectedIds,
564
- selectUnIds: o.selectedUnIds
565
- }, W.value, {
566
- onOnSelect: Se,
567
- onOnShrink: Ie
568
- }), null, 16, ["list", "firstOpenIds", "openIds", "selectIds", "selectUnIds"])) : (E(), C(G, { key: 1 }, [], 64))
569
- ], 10, Re));
568
+ list: l.list,
569
+ firstOpenIds: l.firstOpenIds,
570
+ openIds: l.openParentIds,
571
+ selectIds: l.selectedIds,
572
+ selectUnIds: l.selectedUnIds
573
+ }, z.value, {
574
+ onOnSelect: me,
575
+ onOnShrink: Se
576
+ }), null, 16, ["list", "firstOpenIds", "openIds", "selectIds", "selectUnIds"])) : (x(), E(j, { key: 1 }, [], 64))
577
+ ], 10, qe));
570
578
  }
571
579
  });
572
580
  export {
573
- Xe as _
581
+ tt as _
574
582
  };