@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 +1 @@
1
- "use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-C_7ArHlU.js");module.exports=e._sfc_main;
1
+ "use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-5itnjwU_.js");module.exports=e._sfc_main;
@@ -1,7 +1,7 @@
1
1
  import '../../styles/Common/Token.css';
2
2
  import '../../styles/Common/Input-base.css';
3
3
  import '../../styles/Web/ClSelectTag.css';
4
- import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-C1OgPpoJ.js";
4
+ import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-0S6ab-Lp.js";
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";const r=require("vue"),s=require("@cldemo/ui-kit/common/base"),k=require("@cldemo/ui-kit/common/Element"),Z=require("../Shared/Index.vue_vue_type_script_setup_true_lang-BPTL5eCB.js"),ee=require("../Shared/List.vue_vue_type_script_setup_true_lang-CFCST05R.js"),te=require("../Shared/Index.vue_vue_type_script_setup_true_lang-BIFHYrzc.js"),ne=require("../Shared/Index.vue_vue_type_script_setup_true_lang-BjNP5odR.js");;/* empty css */const re=["id"],ae={key:0,class:"selectTree-inText-num"},se={class:"selectTree-inDropdown-container"},ie={class:"selectTree-inDropdown-search"},le={class:"selectTree-inDropdown-body"},oe=r.defineComponent({name:"ClSelectTree",__name:"Index",props:{id:String,value:[String,Number],className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},placeholder:String,classDropDown:String,multiple:{type:Boolean,default:!1},isClear:{type:Boolean,default:!1},arrowDirection:{type:String,default:"right"},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||",validator:l=>["||","&&"].includes(l)},showTextFormat:String,showDropDownTextFormat:String,isSingleSelectParent:{type:Boolean,default:!1},isOutMerge:{type:Boolean,default:!0},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},onOpenBefore:Function,highlightMode:{type:String,default:"full"},highlightColor:{type:String,default:""},isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","},plaintextLevelSeparator:{type:String,default:" > "},appendContainer:{type:String,default:""}},emits:{"update:value":l=>!0,"update:modelValue":l=>!0,onChange:(l,P)=>!0,onInit:()=>!0,onOpen:l=>!0},setup(l,{expose:P,emit:b}){const i=l,S=b,_=i.id,y=r.useTemplateRef("refElDropdownLayer"),m=r.useTemplateRef("refElList"),n=r.reactive({isOpen:!1,isFirstDataFinish:!1,selectIds:"",selectLabel:[],filterList:[],searchOpenParentIds:"",searchFoldParentIds:"",searchKeyword:""}),d={prevSelectIds:[],originalList:[],dataJson:{}},F=r.computed(()=>{let e={"panel-select-tree":!0};return e=s.getJsonMerge(e,k.getClassNameJson(i.className)),s.getStringByJson(e," ")}),K=r.computed(()=>{let e={"selectTree-inDropdown":!0};return e=s.getJsonMerge(e,k.getClassNameJson(i.classDropDown)),s.getStringByJson(e," ")}),A=e=>{S("update:value",e),S("update:modelValue",e)},M=(e,t)=>{A(e),S("onChange",e,t)},N=()=>{r.nextTick(()=>{S("onInit")})},J=e=>{r.nextTick(()=>{S("onOpen",e)})},w=()=>{if(!n.isOpen){const e=n.selectIds,t=e.split(",");if(!s.isEqualArr(t,d.prevSelectIds)){d.prevSelectIds=t;const o=m.value?m.value.getValueData():[];M(e,o)}}},x=e=>{const t=i.showTextFormat;let a="";return s.isNonEmptyString(t)?a=t.replace(/\$\{(\w+)\}/g,(o,u)=>s.isString(e?.[u])?e[u]:o):a=s.isString(e?.name)?e.name:"",s.encodeHTML(a)},v=e=>s.isEmpty(e)?[]:e.split(",").map(t=>{const a=d.dataJson[t];return a?x(a):s.encodeHTML(t)}),q=e=>{const t=[],a=new Set;let o=e;for(;s.isNonEmptyString(o)&&!a.has(o);){a.add(o);const u=d.dataJson[o];if(!u)break;s.isNonEmptyString(u.name)&&t.unshift(u.name);const h=u[i.parentKey],f=h!=null?String(h):"";if(f===""||f===String(i.topParentValue))break;o=f}return t},j=r.computed(()=>{i.list;const e=s.isString(n.selectIds)?n.selectIds:"";if(s.isEmpty(e))return"";const t=s.isString(i.plaintextLevelSeparator)?i.plaintextLevelSeparator:" > ",a=s.isString(i.plaintextSeparator)?i.plaintextSeparator:",";return e.split(",").map(o=>{const u=q(o);return s.removeHTMLTags(u.length>0?u.join(t):o)}).join(a)}),U=e=>Array.isArray(e)?e.filter(t=>{if(!t)return!1;const a=!s.isUndefined(t.id)&&t.id!==null,o=!s.isEmpty(t[i.parentKey]);return a&&o}):[],C=e=>e===null?"":s.isString(e)||s.isFinite(e)?String(e):"",H=e=>{const t={};return Array.isArray(e)&&e.forEach(a=>{a&&!s.isUndefined(a.id)&&a.id!==null&&(t[String(a.id)]=a)}),t},$=()=>{const e=C(i.value);n.selectIds!==e&&(n.selectIds=e,n.selectLabel=v(e),d.prevSelectIds=e.split(","))},D=(e,t)=>{const a=[];return t===void 0&&(t=new Set),t.has(e)||(t.add(e),d.originalList.forEach(o=>{if(!o)return;const u=o[i.parentKey];s.isUndefined(u)||String(u)===i.topParentValue||String(u)===String(e)&&(a.push(String(o.id)),a.push(...D(String(o.id),t)))})),a},R=(e,t)=>{if(s.isEmpty(t))return n.searchOpenParentIds="",n.searchFoldParentIds="",e;const a=Array.isArray(i.searchKey)?i.searchKey.filter(c=>s.isString(c)):[];if(a.length===0)return n.searchOpenParentIds="",n.searchFoldParentIds="",e;const o=i.searchKeyType==="&&",u=e.filter(c=>{if(!c)return!1;const p=a.map(g=>{const I=c?.[g];return s.isString(I)?I.includes(t):!1});return o?p.every(Boolean):p.some(Boolean)});if(u.length===0)return n.searchOpenParentIds="",n.searchFoldParentIds="",e;const h={};e.forEach(c=>{c&&(h[String(c.id)]=c)});const f=new Set,L=new Set,T=c=>{const p=h[String(c)];if(!p)return;const g=p[i.parentKey];!s.isUndefined(g)&&String(g)!==i.topParentValue&&(f.add(String(g)),L.add(String(g)),T(String(g)))};u.forEach(c=>{const p=String(c.id);f.add(p),T(p),D(p).forEach(g=>f.add(g))});const E=e.filter(c=>c&&f.has(String(c.id)));n.searchOpenParentIds=Array.from(L).join(",");const B=new Set;return E.forEach(c=>{if(!c)return;const p=String(c.id);if(L.has(p))return;d.originalList.some(I=>{if(!I)return!1;const V=I[i.parentKey];return!s.isUndefined(V)&&String(V)===p})&&B.add(p)}),n.searchFoldParentIds=Array.from(B).join(","),E},O=()=>{n.isFirstDataFinish||(n.isFirstDataFinish=!0,N())},z=()=>{s.isEmpty(i.list)||O()};r.onMounted(()=>{r.nextTick(()=>{z()})}),r.watch([()=>i.value,()=>i.list],([e,t],[a,o])=>{t!==o&&(d.originalList=U(i.list),d.dataJson=H(d.originalList),n.filterList=d.originalList,n.selectLabel=v(n.selectIds),d.originalList.length>0&&O()),e!==a&&$()},{immediate:!0});const G=e=>{i.disabled||(n.isOpen=e,e?(d.prevSelectIds=n.selectIds.split(","),n.filterList=d.originalList):(n.searchKeyword="",n.searchOpenParentIds="",n.searchFoldParentIds="",w()),J(e))},Q=()=>{i.disabled||(n.selectIds="",n.selectLabel=[],d.prevSelectIds=[],w())},W=()=>{y.value&&(y.value.checkIsShowOpen()||y.value.initCompleteOpen())},X=e=>{const t=s.isString(e)?e:"";n.searchKeyword=t,n.filterList=R(d.originalList,t)},Y=(e,t)=>{const a=Array.isArray(t)?t:[];n.selectLabel=a.map(o=>x(o)),i.multiple||y.value?.setOpen(!1)};return P({getValue:()=>n.selectIds,getValueData:()=>m.value?m.value.getValueData():[],setValue:e=>{const t=C(e);n.selectIds=t,n.selectLabel=v(t),d.prevSelectIds=t.split(",")}}),(e,t)=>l.isPlaintext?(r.openBlock(),r.createElementBlock("div",{key:0,id:r.unref(_),class:"cl-plaintext-value"},r.toDisplayString(j.value),9,re)):(r.openBlock(),r.createBlock(ee._sfc_main,{key:1,ref_key:"refElDropdownLayer",ref:y,id:r.unref(_),classParent:F.value,classText:"selectTree-inText",classDropDown:K.value,placeholder:l.placeholder,isDisabled:l.disabled,isClear:l.isClear,textLabel:n.selectLabel.join(","),textArrowDirection:l.arrowDirection,appendContainer:l.appendContainer,onOpenBeforeCallback:l.onOpenBefore,onOnChangeOpen:G,onOnClear:Q},{textExtend:r.withCtx(()=>[l.multiple?(r.openBlock(),r.createElementBlock("span",ae,[l.multiple&&n.selectLabel.length>1?(r.openBlock(),r.createBlock(Z._sfc_main,{key:0,num:n.selectLabel.length},null,8,["num"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[],64))])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[],64))]),dropdown:r.withCtx(()=>[r.createElementVNode("div",se,[r.createElementVNode("div",ie,[r.createVNode(te._sfc_main,{placeholder:l.searchPlaceholder,onOnChange:X},null,8,["placeholder"])]),r.createElementVNode("div",le,[r.createVNode(ne._sfc_main,{ref_key:"refElList",ref:m,list:n.filterList,value:n.selectIds,"onUpdate:value":t[0]||(t[0]=a=>n.selectIds=a),multiple:l.multiple,textFormat:l.showDropDownTextFormat,isSingleSelectParent:l.isSingleSelectParent,isOutMerge:l.isOutMerge,parentKey:l.parentKey,topParentValue:l.topParentValue,searchOpenParentIds:n.searchOpenParentIds,searchFoldParentIds:n.searchFoldParentIds,searchKeyword:n.searchKeyword,highlightMode:l.highlightMode,highlightColor:l.highlightColor,onOnChange:Y,onOnInit:W},null,8,["list","value","multiple","textFormat","isSingleSelectParent","isOutMerge","parentKey","topParentValue","searchOpenParentIds","searchFoldParentIds","searchKeyword","highlightMode","highlightColor"])])])]),_:1},8,["id","classParent","classDropDown","placeholder","isDisabled","isClear","textLabel","textArrowDirection","appendContainer","onOpenBeforeCallback"]))}});module.exports=oe;
1
+ "use strict";const r=require("vue"),s=require("@cldemo/ui-kit/common/base"),b=require("@cldemo/ui-kit/common/Element"),ee=require("@cldemo/ui-kit/common/globalConfig"),te=require("../Shared/Index.vue_vue_type_script_setup_true_lang-BPTL5eCB.js"),ne=require("../Shared/List.vue_vue_type_script_setup_true_lang-CFCST05R.js"),re=require("../Shared/Index.vue_vue_type_script_setup_true_lang-qqnmaRnk.js"),ae=require("../Shared/Index.vue_vue_type_script_setup_true_lang-BN9ybiKv.js");;/* empty css */const se=["id"],ie={key:0,class:"selectTree-inText-num"},le={class:"selectTree-inDropdown-container"},oe={class:"selectTree-inDropdown-search"},ce={class:"selectTree-inDropdown-body"},de=r.defineComponent({name:"ClSelectTree",__name:"Index",props:{id:String,value:[String,Number],className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},placeholder:String,classDropDown:String,multiple:{type:Boolean,default:!1},isClear:{type:Boolean,default:!1},arrowDirection:{type:String,default:"right"},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||",validator:l=>["||","&&"].includes(l)},showTextFormat:String,showDropDownTextFormat:String,isSingleSelectParent:{type:Boolean,default:!1},isOutMerge:{type:Boolean,default:!0},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},onOpenBefore:Function,highlightMode:{type:String,default:"full"},highlightColor:{type:String,default:""},isPlaintext:{type:Boolean,default:!1},plaintextEmptyText:{type:String,default:void 0},plaintextSeparator:{type:String,default:","},plaintextLevelSeparator:{type:String,default:" > "},appendContainer:{type:String,default:""}},emits:{"update:value":l=>!0,"update:modelValue":l=>!0,onChange:(l,P)=>!0,onInit:()=>!0,onOpen:l=>!0},setup(l,{expose:P,emit:k}){const i=l,S=k,L=i.id,y=r.useTemplateRef("refElDropdownLayer"),m=r.useTemplateRef("refElList"),n=r.reactive({isOpen:!1,isFirstDataFinish:!1,selectIds:"",selectLabel:[],filterList:[],searchOpenParentIds:"",searchFoldParentIds:"",searchKeyword:""}),d={prevSelectIds:[],originalList:[],dataJson:{}},F=r.computed(()=>{let e={"panel-select-tree":!0};return e=s.getJsonMerge(e,b.getClassNameJson(i.className)),s.getStringByJson(e," ")}),K=r.computed(()=>{let e={"selectTree-inDropdown":!0};return e=s.getJsonMerge(e,b.getClassNameJson(i.classDropDown)),s.getStringByJson(e," ")}),A=e=>{S("update:value",e),S("update:modelValue",e)},M=(e,t)=>{A(e),S("onChange",e,t)},N=()=>{r.nextTick(()=>{S("onInit")})},J=e=>{r.nextTick(()=>{S("onOpen",e)})},C=()=>{if(!n.isOpen){const e=n.selectIds,t=e.split(",");if(!s.isEqualArr(t,d.prevSelectIds)){d.prevSelectIds=t;const o=m.value?m.value.getValueData():[];M(e,o)}}},_=e=>{const t=i.showTextFormat;let a="";return s.isNonEmptyString(t)?a=t.replace(/\$\{(\w+)\}/g,(o,u)=>s.isString(e?.[u])?e[u]:o):a=s.isString(e?.name)?e.name:"",s.encodeHTML(a)},v=e=>s.isEmpty(e)?[]:e.split(",").map(t=>{const a=d.dataJson[t];return a?_(a):s.encodeHTML(t)}),q=e=>{const t=[],a=new Set;let o=e;for(;s.isNonEmptyString(o)&&!a.has(o);){a.add(o);const u=d.dataJson[o];if(!u)break;s.isNonEmptyString(u.name)&&t.unshift(u.name);const h=u[i.parentKey],f=h!=null?String(h):"";if(f===""||f===String(i.topParentValue))break;o=f}return t},j=r.computed(()=>{i.list;const e=s.isString(n.selectIds)?n.selectIds:"";if(s.isEmpty(e))return"";const t=s.isString(i.plaintextLevelSeparator)?i.plaintextLevelSeparator:" > ",a=s.isString(i.plaintextSeparator)?i.plaintextSeparator:",";return e.split(",").map(o=>{const u=q(o);return s.removeHTMLTags(u.length>0?u.join(t):o)}).join(a)}),U=r.computed(()=>ee.getPlaintextOutText("selectTree",i.plaintextEmptyText,j.value,i.value)),H=e=>Array.isArray(e)?e.filter(t=>{if(!t)return!1;const a=!s.isUndefined(t.id)&&t.id!==null,o=!s.isEmpty(t[i.parentKey]);return a&&o}):[],w=e=>e===null?"":s.isString(e)||s.isFinite(e)?String(e):"",$=e=>{const t={};return Array.isArray(e)&&e.forEach(a=>{a&&!s.isUndefined(a.id)&&a.id!==null&&(t[String(a.id)]=a)}),t},R=()=>{const e=w(i.value);n.selectIds!==e&&(n.selectIds=e,n.selectLabel=v(e),d.prevSelectIds=e.split(","))},D=(e,t)=>{const a=[];return t===void 0&&(t=new Set),t.has(e)||(t.add(e),d.originalList.forEach(o=>{if(!o)return;const u=o[i.parentKey];s.isUndefined(u)||String(u)===i.topParentValue||String(u)===String(e)&&(a.push(String(o.id)),a.push(...D(String(o.id),t)))})),a},z=(e,t)=>{if(s.isEmpty(t))return n.searchOpenParentIds="",n.searchFoldParentIds="",e;const a=Array.isArray(i.searchKey)?i.searchKey.filter(c=>s.isString(c)):[];if(a.length===0)return n.searchOpenParentIds="",n.searchFoldParentIds="",e;const o=i.searchKeyType==="&&",u=e.filter(c=>{if(!c)return!1;const p=a.map(g=>{const I=c?.[g];return s.isString(I)?I.includes(t):!1});return o?p.every(Boolean):p.some(Boolean)});if(u.length===0)return n.searchOpenParentIds="",n.searchFoldParentIds="",e;const h={};e.forEach(c=>{c&&(h[String(c.id)]=c)});const f=new Set,x=new Set,T=c=>{const p=h[String(c)];if(!p)return;const g=p[i.parentKey];!s.isUndefined(g)&&String(g)!==i.topParentValue&&(f.add(String(g)),x.add(String(g)),T(String(g)))};u.forEach(c=>{const p=String(c.id);f.add(p),T(p),D(p).forEach(g=>f.add(g))});const E=e.filter(c=>c&&f.has(String(c.id)));n.searchOpenParentIds=Array.from(x).join(",");const B=new Set;return E.forEach(c=>{if(!c)return;const p=String(c.id);if(x.has(p))return;d.originalList.some(I=>{if(!I)return!1;const V=I[i.parentKey];return!s.isUndefined(V)&&String(V)===p})&&B.add(p)}),n.searchFoldParentIds=Array.from(B).join(","),E},O=()=>{n.isFirstDataFinish||(n.isFirstDataFinish=!0,N())},G=()=>{s.isEmpty(i.list)||O()};r.onMounted(()=>{r.nextTick(()=>{G()})}),r.watch([()=>i.value,()=>i.list],([e,t],[a,o])=>{t!==o&&(d.originalList=H(i.list),d.dataJson=$(d.originalList),n.filterList=d.originalList,n.selectLabel=v(n.selectIds),d.originalList.length>0&&O()),e!==a&&R()},{immediate:!0});const Q=e=>{i.disabled||(n.isOpen=e,e?(d.prevSelectIds=n.selectIds.split(","),n.filterList=d.originalList):(n.searchKeyword="",n.searchOpenParentIds="",n.searchFoldParentIds="",C()),J(e))},W=()=>{i.disabled||(n.selectIds="",n.selectLabel=[],d.prevSelectIds=[],C())},X=()=>{y.value&&(y.value.checkIsShowOpen()||y.value.initCompleteOpen())},Y=e=>{const t=s.isString(e)?e:"";n.searchKeyword=t,n.filterList=z(d.originalList,t)},Z=(e,t)=>{const a=Array.isArray(t)?t:[];n.selectLabel=a.map(o=>_(o)),i.multiple||y.value?.setOpen(!1)};return P({getValue:()=>n.selectIds,getValueData:()=>m.value?m.value.getValueData():[],setValue:e=>{const t=w(e);n.selectIds=t,n.selectLabel=v(t),d.prevSelectIds=t.split(",")}}),(e,t)=>l.isPlaintext?(r.openBlock(),r.createElementBlock("div",{key:0,id:r.unref(L),class:"cl-plaintext-value"},r.toDisplayString(U.value),9,se)):(r.openBlock(),r.createBlock(ne._sfc_main,{key:1,ref_key:"refElDropdownLayer",ref:y,id:r.unref(L),classParent:F.value,classText:"selectTree-inText",classDropDown:K.value,placeholder:l.placeholder,isDisabled:l.disabled,isClear:l.isClear,textLabel:n.selectLabel.join(","),textArrowDirection:l.arrowDirection,appendContainer:l.appendContainer,onOpenBeforeCallback:l.onOpenBefore,onOnChangeOpen:Q,onOnClear:W},{textExtend:r.withCtx(()=>[l.multiple?(r.openBlock(),r.createElementBlock("span",ie,[l.multiple&&n.selectLabel.length>1?(r.openBlock(),r.createBlock(te._sfc_main,{key:0,num:n.selectLabel.length},null,8,["num"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[],64))])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[],64))]),dropdown:r.withCtx(()=>[r.createElementVNode("div",le,[r.createElementVNode("div",oe,[r.createVNode(re._sfc_main,{placeholder:l.searchPlaceholder,onOnChange:Y},null,8,["placeholder"])]),r.createElementVNode("div",ce,[r.createVNode(ae._sfc_main,{ref_key:"refElList",ref:m,list:n.filterList,value:n.selectIds,"onUpdate:value":t[0]||(t[0]=a=>n.selectIds=a),multiple:l.multiple,textFormat:l.showDropDownTextFormat,isSingleSelectParent:l.isSingleSelectParent,isOutMerge:l.isOutMerge,parentKey:l.parentKey,topParentValue:l.topParentValue,searchOpenParentIds:n.searchOpenParentIds,searchFoldParentIds:n.searchFoldParentIds,searchKeyword:n.searchKeyword,highlightMode:l.highlightMode,highlightColor:l.highlightColor,onOnChange:Z,onOnInit:X},null,8,["list","value","multiple","textFormat","isSingleSelectParent","isOutMerge","parentKey","topParentValue","searchOpenParentIds","searchFoldParentIds","searchKeyword","highlightMode","highlightColor"])])])]),_:1},8,["id","classParent","classDropDown","placeholder","isDisabled","isClear","textLabel","textArrowDirection","appendContainer","onOpenBeforeCallback"]))}});module.exports=de;
@@ -2,18 +2,19 @@ import '../../styles/Common/Token.css';
2
2
  import '../../styles/Common/IconFont-base.css';
3
3
  import '../../styles/Common/Input-base.css';
4
4
  import '../../styles/Web/ClSelectTree.css';
5
- import { defineComponent as ce, useTemplateRef as M, reactive as de, computed as C, onMounted as ue, nextTick as D, watch as pe, openBlock as h, createElementBlock as L, unref as _, toDisplayString as fe, createBlock as N, withCtx as J, createElementVNode as v, createVNode as j, Fragment as U } from "vue";
5
+ import { defineComponent as de, useTemplateRef as M, reactive as ue, computed as P, onMounted as pe, nextTick as w, watch as fe, openBlock as h, createElementBlock as x, unref as _, toDisplayString as ge, createBlock as N, withCtx as J, createElementVNode as C, createVNode as j, Fragment as U } from "vue";
6
6
  import a from "@cldemo/ui-kit/common/base";
7
7
  import $ from "@cldemo/ui-kit/common/Element";
8
- import { _ as ge } from "../Shared/Index.vue_vue_type_script_setup_true_lang-cOsTL39H.js";
9
- import { _ as he } from "../Shared/List.vue_vue_type_script_setup_true_lang-CRkZfB8a.js";
10
- import { _ as Se } from "../Shared/Index.vue_vue_type_script_setup_true_lang-Dwkuei2j.js";
11
- import { _ as me } from "../Shared/Index.vue_vue_type_script_setup_true_lang-neC9NxKi.js";
8
+ import { getPlaintextOutText as he } from "@cldemo/ui-kit/common/globalConfig";
9
+ import { _ as Se } from "../Shared/Index.vue_vue_type_script_setup_true_lang-cOsTL39H.js";
10
+ import { _ as me } from "../Shared/List.vue_vue_type_script_setup_true_lang-CRkZfB8a.js";
11
+ import { _ as ye } from "../Shared/Index.vue_vue_type_script_setup_true_lang-VjIva6RM.js";
12
+ import { _ as Ie } from "../Shared/Index.vue_vue_type_script_setup_true_lang-2Fe9SkjL.js";
12
13
  /* empty css */
13
- const ye = ["id"], Ie = {
14
+ const Pe = ["id"], xe = {
14
15
  key: 0,
15
16
  class: "selectTree-inText-num"
16
- }, Le = { class: "selectTree-inDropdown-container" }, Pe = { class: "selectTree-inDropdown-search" }, we = { class: "selectTree-inDropdown-body" }, Be = /* @__PURE__ */ ce({
17
+ }, ve = { class: "selectTree-inDropdown-container" }, Le = { class: "selectTree-inDropdown-search" }, we = { class: "selectTree-inDropdown-body" }, Me = /* @__PURE__ */ de({
17
18
  name: "ClSelectTree",
18
19
  __name: "Index",
19
20
  props: {
@@ -106,6 +107,11 @@ const ye = ["id"], Ie = {
106
107
  default: !1
107
108
  // desc: 是否纯文本只读模式,只渲染选中项层级文本不挂载下拉面板
108
109
  },
110
+ plaintextEmptyText: {
111
+ type: String,
112
+ default: void 0
113
+ // desc: 纯文本只读模式下值为空时的显示文本(默认 "-",显式传空串则显示空白;未显式传时依次读取组件配置段与 plaintextGlobal 段)
114
+ },
109
115
  plaintextSeparator: {
110
116
  type: String,
111
117
  default: ","
@@ -127,15 +133,15 @@ const ye = ["id"], Ie = {
127
133
  // desc: v-model 绑定值更新时触发
128
134
  "update:modelValue": (i) => !0,
129
135
  // desc: 标准 v-model 支持(等价 update:value)
130
- onChange: (i, O) => !0,
136
+ onChange: (i, D) => !0,
131
137
  // desc: 选中值变化时触发
132
138
  onInit: () => !0,
133
139
  // desc: 数据初始化完成时触发
134
140
  onOpen: (i) => !0
135
141
  // desc: 下拉面板开合状态变化时触发
136
142
  },
137
- setup(i, { expose: O, emit: H }) {
138
- const s = i, S = H, x = s.id, m = M("refElDropdownLayer"), y = M("refElList"), n = de({
143
+ setup(i, { expose: D, emit: H }) {
144
+ const s = i, S = H, O = s.id, m = M("refElDropdownLayer"), y = M("refElList"), n = ue({
139
145
  isOpen: !1,
140
146
  isFirstDataFinish: !1,
141
147
  selectIds: "",
@@ -148,10 +154,10 @@ const ye = ["id"], Ie = {
148
154
  prevSelectIds: [],
149
155
  originalList: [],
150
156
  dataJson: {}
151
- }, q = C(() => {
157
+ }, q = P(() => {
152
158
  let e = { "panel-select-tree": !0 };
153
159
  return e = a.getJsonMerge(e, $.getClassNameJson(s.className)), a.getStringByJson(e, " ");
154
- }), z = C(() => {
160
+ }), z = P(() => {
155
161
  let e = { "selectTree-inDropdown": !0 };
156
162
  return e = a.getJsonMerge(e, $.getClassNameJson(s.classDropDown)), a.getStringByJson(e, " ");
157
163
  }), R = (e) => {
@@ -159,11 +165,11 @@ const ye = ["id"], Ie = {
159
165
  }, G = (e, t) => {
160
166
  R(e), S("onChange", e, t);
161
167
  }, Q = () => {
162
- D(() => {
168
+ w(() => {
163
169
  S("onInit");
164
170
  });
165
171
  }, W = (e) => {
166
- D(() => {
172
+ w(() => {
167
173
  S("onOpen", e);
168
174
  });
169
175
  }, T = () => {
@@ -179,7 +185,7 @@ const ye = ["id"], Ie = {
179
185
  const t = s.showTextFormat;
180
186
  let r = "";
181
187
  return a.isNonEmptyString(t) ? r = t.replace(/\$\{(\w+)\}/g, (l, d) => a.isString(e?.[d]) ? e[d] : l) : r = a.isString(e?.name) ? e.name : "", a.encodeHTML(r);
182
- }, P = (e) => a.isEmpty(e) ? [] : e.split(",").map((t) => {
188
+ }, v = (e) => a.isEmpty(e) ? [] : e.split(",").map((t) => {
183
189
  const r = c.dataJson[t];
184
190
  return r ? b(r) : a.encodeHTML(t);
185
191
  }), X = (e) => {
@@ -195,7 +201,7 @@ const ye = ["id"], Ie = {
195
201
  l = f;
196
202
  }
197
203
  return t;
198
- }, Y = C(() => {
204
+ }, Y = P(() => {
199
205
  s.list;
200
206
  const e = a.isString(n.selectIds) ? n.selectIds : "";
201
207
  if (a.isEmpty(e))
@@ -205,28 +211,30 @@ const ye = ["id"], Ie = {
205
211
  const d = X(l);
206
212
  return a.removeHTMLTags(d.length > 0 ? d.join(t) : l);
207
213
  }).join(r);
208
- }), Z = (e) => Array.isArray(e) ? e.filter((t) => {
214
+ }), Z = P(
215
+ () => he("selectTree", s.plaintextEmptyText, Y.value, s.value)
216
+ ), ee = (e) => Array.isArray(e) ? e.filter((t) => {
209
217
  if (!t)
210
218
  return !1;
211
219
  const r = !a.isUndefined(t.id) && t.id !== null, l = !a.isEmpty(t[s.parentKey]);
212
220
  return r && l;
213
- }) : [], V = (e) => e === null ? "" : a.isString(e) || a.isFinite(e) ? String(e) : "", ee = (e) => {
221
+ }) : [], E = (e) => e === null ? "" : a.isString(e) || a.isFinite(e) ? String(e) : "", te = (e) => {
214
222
  const t = {};
215
223
  return Array.isArray(e) && e.forEach((r) => {
216
224
  r && !a.isUndefined(r.id) && r.id !== null && (t[String(r.id)] = r);
217
225
  }), t;
218
- }, te = () => {
219
- const e = V(s.value);
220
- n.selectIds !== e && (n.selectIds = e, n.selectLabel = P(e), c.prevSelectIds = e.split(","));
221
- }, E = (e, t) => {
226
+ }, ne = () => {
227
+ const e = E(s.value);
228
+ n.selectIds !== e && (n.selectIds = e, n.selectLabel = v(e), c.prevSelectIds = e.split(","));
229
+ }, V = (e, t) => {
222
230
  const r = [];
223
231
  return t === void 0 && (t = /* @__PURE__ */ new Set()), t.has(e) || (t.add(e), c.originalList.forEach((l) => {
224
232
  if (!l)
225
233
  return;
226
234
  const d = l[s.parentKey];
227
- a.isUndefined(d) || String(d) === s.topParentValue || String(d) === String(e) && (r.push(String(l.id)), r.push(...E(String(l.id), t)));
235
+ a.isUndefined(d) || String(d) === s.topParentValue || String(d) === String(e) && (r.push(String(l.id)), r.push(...V(String(l.id), t)));
228
236
  })), r;
229
- }, ne = (e, t) => {
237
+ }, re = (e, t) => {
230
238
  if (a.isEmpty(t))
231
239
  return n.searchOpenParentIds = "", n.searchFoldParentIds = "", e;
232
240
  const r = Array.isArray(s.searchKey) ? s.searchKey.filter((o) => a.isString(o)) : [];
@@ -247,25 +255,25 @@ const ye = ["id"], Ie = {
247
255
  e.forEach((o) => {
248
256
  o && (g[String(o.id)] = o);
249
257
  });
250
- const f = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set(), K = (o) => {
258
+ const f = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set(), K = (o) => {
251
259
  const u = g[String(o)];
252
260
  if (!u)
253
261
  return;
254
262
  const p = u[s.parentKey];
255
- !a.isUndefined(p) && String(p) !== s.topParentValue && (f.add(String(p)), w.add(String(p)), K(String(p)));
263
+ !a.isUndefined(p) && String(p) !== s.topParentValue && (f.add(String(p)), L.add(String(p)), K(String(p)));
256
264
  };
257
265
  d.forEach((o) => {
258
266
  const u = String(o.id);
259
- f.add(u), K(u), E(u).forEach((p) => f.add(p));
267
+ f.add(u), K(u), V(u).forEach((p) => f.add(p));
260
268
  });
261
269
  const B = e.filter((o) => o && f.has(String(o.id)));
262
- n.searchOpenParentIds = Array.from(w).join(",");
270
+ n.searchOpenParentIds = Array.from(L).join(",");
263
271
  const A = /* @__PURE__ */ new Set();
264
272
  return B.forEach((o) => {
265
273
  if (!o)
266
274
  return;
267
275
  const u = String(o.id);
268
- if (w.has(u))
276
+ if (L.has(u))
269
277
  return;
270
278
  c.originalList.some((I) => {
271
279
  if (!I)
@@ -276,49 +284,49 @@ const ye = ["id"], Ie = {
276
284
  }), n.searchFoldParentIds = Array.from(A).join(","), B;
277
285
  }, F = () => {
278
286
  n.isFirstDataFinish || (n.isFirstDataFinish = !0, Q());
279
- }, re = () => {
287
+ }, ae = () => {
280
288
  a.isEmpty(s.list) || F();
281
289
  };
282
- ue(() => {
283
- D(() => {
284
- re();
290
+ pe(() => {
291
+ w(() => {
292
+ ae();
285
293
  });
286
- }), pe(
294
+ }), fe(
287
295
  [() => s.value, () => s.list],
288
296
  ([e, t], [r, l]) => {
289
- t !== l && (c.originalList = Z(s.list), c.dataJson = ee(c.originalList), n.filterList = c.originalList, n.selectLabel = P(n.selectIds), c.originalList.length > 0 && F()), e !== r && te();
297
+ t !== l && (c.originalList = ee(s.list), c.dataJson = te(c.originalList), n.filterList = c.originalList, n.selectLabel = v(n.selectIds), c.originalList.length > 0 && F()), e !== r && ne();
290
298
  },
291
299
  { immediate: !0 }
292
300
  );
293
- const ae = (e) => {
301
+ const se = (e) => {
294
302
  s.disabled || (n.isOpen = e, e ? (c.prevSelectIds = n.selectIds.split(","), n.filterList = c.originalList) : (n.searchKeyword = "", n.searchOpenParentIds = "", n.searchFoldParentIds = "", T()), W(e));
295
- }, se = () => {
296
- s.disabled || (n.selectIds = "", n.selectLabel = [], c.prevSelectIds = [], T());
297
303
  }, ie = () => {
304
+ s.disabled || (n.selectIds = "", n.selectLabel = [], c.prevSelectIds = [], T());
305
+ }, le = () => {
298
306
  m.value && (m.value.checkIsShowOpen() || m.value.initCompleteOpen());
299
- }, le = (e) => {
307
+ }, oe = (e) => {
300
308
  const t = a.isString(e) ? e : "";
301
- n.searchKeyword = t, n.filterList = ne(c.originalList, t);
302
- }, oe = (e, t) => {
309
+ n.searchKeyword = t, n.filterList = re(c.originalList, t);
310
+ }, ce = (e, t) => {
303
311
  const r = Array.isArray(t) ? t : [];
304
312
  n.selectLabel = r.map((l) => b(l)), s.multiple || m.value?.setOpen(!1);
305
313
  };
306
- return O({
314
+ return D({
307
315
  getValue: () => n.selectIds,
308
316
  getValueData: () => y.value ? y.value.getValueData() : [],
309
317
  setValue: (e) => {
310
- const t = V(e);
311
- n.selectIds = t, n.selectLabel = P(t), c.prevSelectIds = t.split(",");
318
+ const t = E(e);
319
+ n.selectIds = t, n.selectLabel = v(t), c.prevSelectIds = t.split(",");
312
320
  }
313
- }), (e, t) => i.isPlaintext ? (h(), L("div", {
321
+ }), (e, t) => i.isPlaintext ? (h(), x("div", {
314
322
  key: 0,
315
- id: _(x),
323
+ id: _(O),
316
324
  class: "cl-plaintext-value"
317
- }, fe(Y.value), 9, ye)) : (h(), N(he, {
325
+ }, ge(Z.value), 9, Pe)) : (h(), N(me, {
318
326
  key: 1,
319
327
  ref_key: "refElDropdownLayer",
320
328
  ref: m,
321
- id: _(x),
329
+ id: _(O),
322
330
  classParent: q.value,
323
331
  classText: "selectTree-inText",
324
332
  classDropDown: z.value,
@@ -329,27 +337,27 @@ const ye = ["id"], Ie = {
329
337
  textArrowDirection: i.arrowDirection,
330
338
  appendContainer: i.appendContainer,
331
339
  onOpenBeforeCallback: i.onOpenBefore,
332
- onOnChangeOpen: ae,
333
- onOnClear: se
340
+ onOnChangeOpen: se,
341
+ onOnClear: ie
334
342
  }, {
335
343
  textExtend: J(() => [
336
- i.multiple ? (h(), L("span", Ie, [
337
- i.multiple && n.selectLabel.length > 1 ? (h(), N(ge, {
344
+ i.multiple ? (h(), x("span", xe, [
345
+ i.multiple && n.selectLabel.length > 1 ? (h(), N(Se, {
338
346
  key: 0,
339
347
  num: n.selectLabel.length
340
- }, null, 8, ["num"])) : (h(), L(U, { key: 1 }, [], 64))
341
- ])) : (h(), L(U, { key: 1 }, [], 64))
348
+ }, null, 8, ["num"])) : (h(), x(U, { key: 1 }, [], 64))
349
+ ])) : (h(), x(U, { key: 1 }, [], 64))
342
350
  ]),
343
351
  dropdown: J(() => [
344
- v("div", Le, [
345
- v("div", Pe, [
346
- j(Se, {
352
+ C("div", ve, [
353
+ C("div", Le, [
354
+ j(ye, {
347
355
  placeholder: i.searchPlaceholder,
348
- onOnChange: le
356
+ onOnChange: oe
349
357
  }, null, 8, ["placeholder"])
350
358
  ]),
351
- v("div", we, [
352
- j(me, {
359
+ C("div", we, [
360
+ j(Ie, {
353
361
  ref_key: "refElList",
354
362
  ref: y,
355
363
  list: n.filterList,
@@ -366,8 +374,8 @@ const ye = ["id"], Ie = {
366
374
  searchKeyword: n.searchKeyword,
367
375
  highlightMode: i.highlightMode,
368
376
  highlightColor: i.highlightColor,
369
- onOnChange: oe,
370
- onOnInit: ie
377
+ onOnChange: ce,
378
+ onOnInit: le
371
379
  }, null, 8, ["list", "value", "multiple", "textFormat", "isSingleSelectParent", "isOutMerge", "parentKey", "topParentValue", "searchOpenParentIds", "searchFoldParentIds", "searchKeyword", "highlightMode", "highlightColor"])
372
380
  ])
373
381
  ])
@@ -377,5 +385,5 @@ const ye = ["id"], Ie = {
377
385
  }
378
386
  });
379
387
  export {
380
- Be as default
388
+ Me as default
381
389
  };