@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.
- package/buildLibs/all/index.cjs +8 -8
- package/buildLibs/all/index.js +12157 -12048
- package/buildLibs/common/globalConfig.cjs +1 -1
- package/buildLibs/common/globalConfig.js +29 -15
- package/buildLibs/common/i18n/en.cjs +1 -1
- package/buildLibs/common/i18n/en.js +3 -1
- package/buildLibs/common/i18n/zh_CN.cjs +1 -1
- package/buildLibs/common/i18n/zh_CN.js +3 -1
- package/buildLibs/common/index.cjs +1 -1
- package/buildLibs/common/index.js +26 -24
- package/buildLibs/mobile/index.cjs +5 -5
- package/buildLibs/mobile/index.js +5902 -5852
- 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
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-BQXxDHbe.js +254 -0
- 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
- 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
- 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
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-C6Zd584S.js +2536 -0
- 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
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CEBiLDTm.js +310 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-D_73B6av.js +1533 -0
- 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
- package/buildLibs/types/All/index.d.ts +1 -1
- package/buildLibs/types/Common/globalConfig.d.ts +29 -0
- package/buildLibs/types/Common/globalTypes.d.ts +11 -0
- package/buildLibs/types/Common/i18n/en.d.ts +2 -0
- package/buildLibs/types/Common/i18n/zh_CN.d.ts +2 -0
- package/buildLibs/types/Common/index.d.ts +1 -1
- package/buildLibs/types/Element/CheckBox/Index.vue.d.ts +9 -0
- package/buildLibs/types/Element/Input/Index.vue.d.ts +9 -0
- package/buildLibs/types/Element/InputNumber/Index.vue.d.ts +9 -0
- package/buildLibs/types/Element/InputNumberStepper/Index.vue.d.ts +9 -0
- package/buildLibs/types/Element/InputTextarea/Index.vue.d.ts +9 -0
- package/buildLibs/types/Element/Radio/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/DateTime/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/FileUpload/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/Select/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/SelectCascade/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/SelectMove/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/SelectTag/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/SelectTree/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/Tree/Index.vue.d.ts +9 -0
- package/buildLibs/types/Web/componentsInstalls.d.ts +90 -0
- package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckbox.js +1 -1
- package/buildLibs/utils/Element/ClInput.cjs +1 -1
- package/buildLibs/utils/Element/ClInput.js +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.js +1 -1
- package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumber.js +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
- package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
- package/buildLibs/utils/Element/ClInputPassword.js +1 -1
- package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
- package/buildLibs/utils/Element/ClInputSearch.js +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
- package/buildLibs/utils/Element/ClRadio.cjs +1 -1
- package/buildLibs/utils/Element/ClRadio.js +1 -1
- package/buildLibs/utils/Element/__provide__/Validate.cjs +1 -1
- package/buildLibs/utils/Element/__provide__/Validate.js +13 -3
- 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
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-2THK822S.js +254 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-5itnjwU_.js +1 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BIO6Me43.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BN9ybiKv.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BpG7AHvM.js +1 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CW4fM0by.js +1 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CsCn637u.js +2 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DXPZYc0c.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DY4m6Xyj.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZCt32jb.js +1533 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZF2gj7X.js +2536 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-De1eNjwC.js +1 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DvN-fBNd.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DwBf338f.js +1 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HfnOtuMz.js +310 -0
- 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
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-j7gxlOeM.js +1 -0
- 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
- 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
- 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
- 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
- package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
- package/buildLibs/utils/Web/ClColorPicker.js +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.js +1 -1
- package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
- package/buildLibs/utils/Web/ClDateTime.js +1 -1
- package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
- package/buildLibs/utils/Web/ClFileUpload.js +1 -1
- package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
- package/buildLibs/utils/Web/ClInputTag.js +1 -1
- package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
- package/buildLibs/utils/Web/ClPaginate.js +1 -1
- package/buildLibs/utils/Web/ClSelect.cjs +1 -1
- package/buildLibs/utils/Web/ClSelect.js +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
- package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectMove.js +655 -647
- package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTag.js +1 -1
- package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTree.js +71 -63
- package/buildLibs/utils/Web/ClTable.cjs +1 -1
- package/buildLibs/utils/Web/ClTable.js +1 -1
- package/buildLibs/utils/Web/ClTree.cjs +1 -1
- package/buildLibs/utils/Web/ClTree.js +1 -1
- package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
- package/buildLibs/utils/Web/ClXEditable.js +10 -10
- package/buildLibs/web/index.cjs +7 -7
- package/buildLibs/web/index.js +10792 -10685
- package/docs/components/Element/Checkbox.md +2 -1
- package/docs/components/Element/Form.md +15 -0
- package/docs/components/Element/Input.md +2 -1
- package/docs/components/Element/InputNumber.md +2 -1
- package/docs/components/Element/InputNumberStepper.md +2 -1
- package/docs/components/Element/InputTextarea.md +2 -1
- package/docs/components/Element/Radio.md +2 -1
- package/docs/components/Web/DateTime.md +2 -1
- package/docs/components/Web/FileUpload.md +2 -1
- package/docs/components/Web/Select.md +2 -1
- package/docs/components/Web/SelectCascade.md +1 -0
- package/docs/components/Web/SelectMove.md +2 -1
- package/docs/components/Web/SelectTag.md +1 -0
- package/docs/components/Web/SelectTree.md +2 -1
- package/docs/components/Web/Tree.md +2 -1
- package/package.json +1 -1
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CiNidFJt.js +0 -246
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-DC6727pS.js +0 -2528
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-EXqjkKwS.js +0 -302
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-Hg16dgRQ.js +0 -1527
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-5aX79Fcf.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BRvOcf4B.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ba8Z8fOP.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjNP5odR.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CQ3RGLek.js +0 -302
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CY5fRV6o.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CYN4r-Mx.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C_7ArHlU.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CuJjJvft.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CwjigRBx.js +0 -2528
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D6cmq0Tf.js +0 -1527
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dbf-3Nik.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DgD_gHit.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-FowII7_3.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-c7oxeU_j.js +0 -246
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-vLqCsSbV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),r=require("@cldemo/ui-kit/common/base"),x=require("@cldemo/ui-kit/common/Element"),d=require("../Shared/Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js"),c=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const n=require("vue"),r=require("@cldemo/ui-kit/common/base"),x=require("@cldemo/ui-kit/common/Element"),d=require("../Shared/Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js"),c=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DXPZYc0c.js"),F=n.defineComponent({name:"ClInputPassword",components:{ClIconFont:d._sfc_main,ClInput:c._sfc_main},__name:"Index",props:{id:String,name:String,value:[String,Number],className:String,disabled:Boolean,theme:{type:String,default:"default"},width:String,placeholder:String,label:String,isFloating:{type:Boolean,default:!1},isReadonly:Boolean,isClean:{type:Boolean,default:!0}},emits:["update:value","update:modelValue","onChange","onFocus","onBlur","onChangeBlur","onKeyupEnter","onClear","onInit","onKeydown","onKeyup"],setup(t,{expose:p,emit:m}){const s=t,a=m,g=s.id,o=n.useTemplateRef("refElInput"),l=n.ref(!1),y=n.computed(()=>l.value?"text":"password"),f=n.computed(()=>{let e={"panel-input-password":!0};return e=r.getJsonMerge(e,x.getClassNameJson(s.className)),r.getStringByJson(e," ")}),h=e=>{a("update:value",e),a("update:modelValue",e),a("onChange",e)},C=e=>{h(e)},I=e=>{a("onFocus",e)},v=e=>{a("onBlur",e)},w=e=>{a("onChangeBlur",e)},b=e=>{a("onKeyupEnter",e)},B=e=>{a("onKeydown",e)},K=e=>{a("onKeyup",e)},S=()=>{a("onClear")},V=()=>{a("onInit")},u=()=>{s.disabled||(l.value=!l.value)};return p({getValue:()=>o.value?.getValue(),getValueData:()=>o.value?.getValueData(),setValue:(e,i)=>{o.value?.setValue(e,i)},focus:()=>{o.value?.focus()}}),(e,i)=>(n.openBlock(),n.createBlock(c._sfc_main,{ref_key:"refElInput",ref:o,id:n.unref(g),name:t.name,value:t.value,inputType:y.value,className:f.value,placeholder:t.placeholder,label:t.label,isFloating:t.isFloating,disabled:t.disabled,isReadonly:t.isReadonly,isClean:t.isClean,width:t.width,theme:t.theme,onOnChange:C,onOnFocus:I,onOnBlur:v,onOnChangeBlur:w,onOnKeyupEnter:b,onOnKeydown:B,onOnKeyup:K,onOnClear:S,onOnInit:V},n.createSlots({suffix:n.withCtx(()=>[n.createVNode(d._sfc_main,{class:"input-password-icon",name:l.value?"eye":"eye-no",role:"button","aria-label":l.value?"隐藏密码":"显示密码","aria-disabled":t.disabled,tabindex:t.disabled?-1:0,onClick:u,onKeydown:[n.withKeys(n.withModifiers(u,["prevent"]),["enter"]),n.withKeys(n.withModifiers(u,["prevent"]),["space"])]},null,8,["name","aria-label","aria-disabled","tabindex","onKeydown"])]),_:2},[e.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"append")]),key:"1"}:void 0]),1032,["id","name","value","inputType","className","placeholder","label","isFloating","disabled","isReadonly","isClean","width","theme"]))}});module.exports=F;
|
|
@@ -6,7 +6,7 @@ import { defineComponent as k, useTemplateRef as $, ref as x, computed as r, ope
|
|
|
6
6
|
import m from "@cldemo/ui-kit/common/base";
|
|
7
7
|
import M from "@cldemo/ui-kit/common/Element";
|
|
8
8
|
import { _ as g } from "../Shared/Index.vue_vue_type_script_setup_true_lang-C2LGy18j.js";
|
|
9
|
-
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-D4a5Iaue.js";
|
|
10
10
|
const W = /* @__PURE__ */ k({
|
|
11
11
|
name: "ClInputPassword",
|
|
12
12
|
components: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-qqnmaRnk.js");module.exports=e._sfc_main;
|
|
@@ -2,7 +2,7 @@ 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/Element/ClInputSearch.css';
|
|
5
|
-
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-VjIva6RM.js";
|
|
6
6
|
export {
|
|
7
7
|
f as default
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-CsCn637u.js");module.exports=e._sfc_main;
|
|
@@ -2,7 +2,7 @@ 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/Element/ClInputTextarea.css';
|
|
5
|
-
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-F9tBnc_7.js";
|
|
6
6
|
export {
|
|
7
7
|
f as default
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-De1eNjwC.js");module.exports=e._sfc_main;
|
|
@@ -3,7 +3,7 @@ import '../../styles/Common/IconFont-base.css';
|
|
|
3
3
|
import '../../styles/Common/Input-base.css';
|
|
4
4
|
import '../../styles/Common/Fade-base.css';
|
|
5
5
|
import '../../styles/Element/ClRadio.css';
|
|
6
|
-
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-2THK822S.js";
|
|
7
7
|
export {
|
|
8
8
|
f as default
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("@cldemo/ui-kit/common/base"),s={required:e=>!u.isEmpty(e),number:e=>{let t=!0;if(!u.isEmpty(e)){const F=u.removeReplace(e);t=/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i.test(F)}return t},integer:e=>{let t=!0;if(!u.isEmpty(e)){const F=u.removeReplace(e);t=/^-?\d+$/.test(F)}return t},integerPositive:e=>{let t=!0;if(!u.isEmpty(e)){const F=u.removeReplace(e);t=/^[1-9]\d*$/.test(F)}return t},alphanum:e=>{let t=!0;return u.isEmpty(e)||(t=/^\w+$/i.test(e)),t},email:e=>{let t=!0;return u.isEmpty(e)||(t=/^((([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(e)),t},minLen:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=e.length>=parseInt(t,10)),F},maxLen:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=e.length<=parseInt(t,10)),F},minByte:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=u.getByteLen(e)>=parseInt(t,10)),F},maxByte:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=u.getByteLen(e)<=parseInt(t,10)),F},minGreater:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)>parseFloat(t)}return F},maxGreater:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)<parseFloat(t)}return F},minGreaterEqual:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)>=parseFloat(t)}return F},maxGreaterEqual:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)<=parseFloat(t)}return F},phone:e=>{let t=!0;return u.isEmpty(e)||(t=/^1[3-9]\d{9}$/.test(e)),t},equalto:(e,t)=>!u.isEmpty(e)&&!u.isEmpty(t)?e===t:!0,regular:(e,t)=>{let F=!0;return!u.isEmpty(e)&&!u.isEmpty(t)&&(F=new RegExp(t,"g").test(e)),F},urlHttp:e=>{let t=!0;return u.isEmpty(e)||(t=/^(http|https):\/\/[^\s]+$/.test(e)),t}},n=(e={})=>({type:u.isEmpty(e.type)?"tip":e.type,rules:u.getJsonMerge(s,e.rules),messages:u.getJsonMergeDeep({},e.messages)});module.exports=n;
|
|
1
|
+
"use strict";const u=require("@cldemo/ui-kit/common/base"),s={required:e=>!u.isEmpty(e),number:e=>{let t=!0;if(!u.isEmpty(e)){const F=u.removeReplace(e);t=/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i.test(F)}return t},integer:e=>{let t=!0;if(!u.isEmpty(e)){const F=u.removeReplace(e);t=/^-?\d+$/.test(F)}return t},integerPositive:e=>{let t=!0;if(!u.isEmpty(e)){const F=u.removeReplace(e);t=/^[1-9]\d*$/.test(F)}return t},alphanum:e=>{let t=!0;return u.isEmpty(e)||(t=/^\w+$/i.test(e)),t},email:e=>{let t=!0;return u.isEmpty(e)||(t=/^((([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(e)),t},minLen:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=e.length>=parseInt(t,10)),F},maxLen:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=e.length<=parseInt(t,10)),F},minByte:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=u.getByteLen(e)>=parseInt(t,10)),F},maxByte:(e,t)=>{let F=!0;return u.isEmpty(e)||(F=u.getByteLen(e)<=parseInt(t,10)),F},minGreater:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)>parseFloat(t)}return F},maxGreater:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)<parseFloat(t)}return F},minGreaterEqual:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)>=parseFloat(t)}return F},maxGreaterEqual:(e,t)=>{let F=!0;if(!u.isEmpty(e)){const r=u.removeReplace(e);F=parseFloat(r)<=parseFloat(t)}return F},phone:e=>{let t=!0;return u.isEmpty(e)||(t=/^1[3-9]\d{9}$/.test(e)),t},equalto:(e,t)=>!u.isEmpty(e)&&!u.isEmpty(t)?e===t:!0,regular:(e,t)=>{let F=!0;return!u.isEmpty(e)&&!u.isEmpty(t)&&(F=new RegExp(t,"g").test(e)),F},urlHttp:e=>{let t=!0;return u.isEmpty(e)||(t=/^(http|https):\/\/[^\s]+$/.test(e)),t},bareDomain:e=>{let t=!0;if(!u.isEmpty(e)){const F=e.toLowerCase();t=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i.test(F)}return t}},n=(e={})=>({type:u.isEmpty(e.type)?"tip":e.type,rules:u.getJsonMerge(s,e.rules),messages:u.getJsonMergeDeep({},e.messages)});module.exports=n;
|
|
@@ -31,7 +31,9 @@ const s = {
|
|
|
31
31
|
},
|
|
32
32
|
email: (e) => {
|
|
33
33
|
let t = !0;
|
|
34
|
-
return u.isEmpty(e) || (t = /^((([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(
|
|
34
|
+
return u.isEmpty(e) || (t = /^((([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(
|
|
35
|
+
e
|
|
36
|
+
)), t;
|
|
35
37
|
},
|
|
36
38
|
minLen: (e, t) => {
|
|
37
39
|
let F = !0;
|
|
@@ -93,12 +95,20 @@ const s = {
|
|
|
93
95
|
urlHttp: (e) => {
|
|
94
96
|
let t = !0;
|
|
95
97
|
return u.isEmpty(e) || (t = /^(http|https):\/\/[^\s]+$/.test(e)), t;
|
|
98
|
+
},
|
|
99
|
+
bareDomain: (e) => {
|
|
100
|
+
let t = !0;
|
|
101
|
+
if (!u.isEmpty(e)) {
|
|
102
|
+
const F = e.toLowerCase();
|
|
103
|
+
t = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i.test(F);
|
|
104
|
+
}
|
|
105
|
+
return t;
|
|
96
106
|
}
|
|
97
|
-
},
|
|
107
|
+
}, n = (e = {}) => ({
|
|
98
108
|
type: u.isEmpty(e.type) ? "tip" : e.type,
|
|
99
109
|
rules: u.getJsonMerge(s, e.rules),
|
|
100
110
|
messages: u.getJsonMergeDeep({}, e.messages)
|
|
101
111
|
});
|
|
102
112
|
export {
|
|
103
|
-
|
|
113
|
+
n as default
|
|
104
114
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getGlobalConfig as
|
|
5
|
-
import { a as
|
|
1
|
+
import { defineComponent as ce, reactive as ue, ref as A, computed as b, onMounted as de, nextTick as G, watch as Q, openBlock as p, createElementBlock as f, normalizeClass as M, unref as P, toDisplayString as R, Fragment as F, withKeys as w, withModifiers as V, normalizeStyle as U, createElementVNode as pe, renderList as fe, renderSlot as me, createCommentVNode as ye } from "vue";
|
|
2
|
+
import l from "@cldemo/ui-kit/common/base";
|
|
3
|
+
import ge from "@cldemo/ui-kit/common/Element";
|
|
4
|
+
import { getPlaintextOutText as he, getGlobalConfig as ve } from "@cldemo/ui-kit/common/globalConfig";
|
|
5
|
+
import { a as Ee } from "./language-CZZEj4e3.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
const
|
|
7
|
+
const be = ["id"], Se = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "cl-plaintext-value"
|
|
10
|
-
},
|
|
10
|
+
}, xe = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "selectTag-container"
|
|
13
|
-
},
|
|
13
|
+
}, Ce = ["aria-selected", "aria-disabled", "tabindex"], ke = ["aria-selected", "aria-disabled", "tabindex", "onClick", "onKeydown"], Ae = ["innerHTML"], we = { key: 1 }, Me = /* @__PURE__ */ ce({
|
|
14
14
|
name: "ClSelectTag",
|
|
15
15
|
__name: "Index",
|
|
16
16
|
props: {
|
|
@@ -55,6 +55,11 @@ const ve = ["id"], Ee = {
|
|
|
55
55
|
default: !1
|
|
56
56
|
// desc: 是否纯文本只读模式,只渲染选中项文本不挂载选项列表
|
|
57
57
|
},
|
|
58
|
+
plaintextEmptyText: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: void 0
|
|
61
|
+
// desc: 纯文本只读模式下值为空时的显示文本(默认 "-",显式传空串则显示空白;未显式传时依次读取组件配置段与 plaintextGlobal 段)
|
|
62
|
+
},
|
|
58
63
|
plaintextSeparator: {
|
|
59
64
|
type: String,
|
|
60
65
|
default: ","
|
|
@@ -66,84 +71,86 @@ const ve = ["id"], Ee = {
|
|
|
66
71
|
// desc: 选中值更新时触发(v-model 绑定,回传为逗号分隔字符串)
|
|
67
72
|
"update:modelValue": (c) => !0,
|
|
68
73
|
// desc: 标准 v-model 支持(等价 update:value)
|
|
69
|
-
onChange: (c,
|
|
74
|
+
onChange: (c, T, I, s) => !0,
|
|
70
75
|
// desc: 选中值变更时触发(radio 模式 info 为单对象,checkbox 模式为数组;changeInfo 为变更前旧值快照)
|
|
71
|
-
onInit: (c,
|
|
76
|
+
onInit: (c, T, I) => !0,
|
|
72
77
|
// desc: 组件初始化完成时触发(info 形态同 onChange)
|
|
73
78
|
onError: (c) => !0
|
|
74
79
|
// desc: 选中变更前异步校验执行异常时触发
|
|
75
80
|
},
|
|
76
|
-
setup(c, { expose:
|
|
77
|
-
const
|
|
81
|
+
setup(c, { expose: T, emit: I }) {
|
|
82
|
+
const s = c, h = I, { optPageLanguage: W, getPageLanguage: X } = Ee();
|
|
78
83
|
X("common");
|
|
79
|
-
const Y = `s-${
|
|
84
|
+
const Y = `s-${l.getRandom(5)}`, Z = s.id, J = ue({
|
|
80
85
|
theme: ""
|
|
81
|
-
}), v =
|
|
86
|
+
}), v = A(!1), N = (e) => {
|
|
82
87
|
let t = [];
|
|
83
|
-
return
|
|
84
|
-
}, r =
|
|
88
|
+
return l.isEmpty(e) || (t = e.toString().split(",")), t;
|
|
89
|
+
}, r = A(N(s.value));
|
|
85
90
|
let E = [], d = {};
|
|
86
|
-
const
|
|
87
|
-
let
|
|
88
|
-
const ee =
|
|
89
|
-
const e =
|
|
90
|
-
return
|
|
91
|
-
}), te =
|
|
92
|
-
const e =
|
|
93
|
-
|
|
91
|
+
const K = A(0), g = A(!1);
|
|
92
|
+
let S = 0;
|
|
93
|
+
const ee = b(() => {
|
|
94
|
+
const e = s.list;
|
|
95
|
+
return l.isArray(e) ? e.filter((t) => !l.isEmpty(t)) : [];
|
|
96
|
+
}), te = b(() => {
|
|
97
|
+
const e = l.isString(s.plaintextSeparator) ? s.plaintextSeparator : ",";
|
|
98
|
+
s.list, K.value;
|
|
94
99
|
const t = [];
|
|
95
100
|
return r.value.forEach((i) => {
|
|
96
|
-
const n =
|
|
97
|
-
n &&
|
|
98
|
-
}), t.join(e);
|
|
99
|
-
}), ie =
|
|
100
|
-
|
|
101
|
+
const n = l.isExistJsonKey(d, i) ? d[i] : void 0;
|
|
102
|
+
t.push(n && l.isNonEmptyString(n.name) ? n.name : i);
|
|
103
|
+
}), t.filter((i) => l.isNonEmptyString(i)).join(e);
|
|
104
|
+
}), ie = b(
|
|
105
|
+
() => he("selectTag", s.plaintextEmptyText, te.value, s.value)
|
|
106
|
+
), le = b(() => {
|
|
107
|
+
const { theme: e } = s, t = {
|
|
101
108
|
"panel-select-tag": !0
|
|
102
109
|
};
|
|
103
|
-
let i =
|
|
104
|
-
return e && (i = e),
|
|
105
|
-
}), se =
|
|
110
|
+
let i = J.theme;
|
|
111
|
+
return e && (i = e), l.isEmpty(i) || (t[`selectTag-${i}`] = !0), l.getJsonMerge(t, ge.getClassNameJson(s.className));
|
|
112
|
+
}), se = b(() => {
|
|
106
113
|
const e = {};
|
|
107
|
-
return
|
|
108
|
-
}),
|
|
114
|
+
return l.isEmpty(s.width) || (e.width = s.width), e;
|
|
115
|
+
}), x = (e) => {
|
|
109
116
|
h("update:value", e), h("update:modelValue", e);
|
|
110
117
|
}, j = (e) => {
|
|
111
|
-
if (!
|
|
112
|
-
const t =
|
|
113
|
-
r.value =
|
|
118
|
+
if (!l.isEqualArr(r.value, e)) {
|
|
119
|
+
const t = l.getArrClone(r.value), i = y(t);
|
|
120
|
+
r.value = l.getArrClone(e);
|
|
114
121
|
const { value: n, isAll: a, info: o } = y(e);
|
|
115
|
-
|
|
122
|
+
s.isShowAll && (v.value = a), x(n), h("onChange", n, o, a, {
|
|
116
123
|
value: i.value,
|
|
117
124
|
info: i.info
|
|
118
125
|
});
|
|
119
126
|
}
|
|
120
|
-
},
|
|
121
|
-
|
|
127
|
+
}, ae = () => {
|
|
128
|
+
G(() => {
|
|
122
129
|
const { value: e, isAll: t, info: i } = y(r.value);
|
|
123
130
|
h("onInit", e, i, t);
|
|
124
131
|
});
|
|
125
132
|
}, y = (e) => {
|
|
126
133
|
const t = [];
|
|
127
|
-
|
|
128
|
-
|
|
134
|
+
l.isEmpty(e) || e.forEach((o) => {
|
|
135
|
+
l.isExistJsonKey(d, o) && t.push(l.getJsonClone(d[o]));
|
|
129
136
|
});
|
|
130
137
|
const i = e.join(","), n = t.length > 0 && t.length === E.length;
|
|
131
138
|
let a;
|
|
132
|
-
return
|
|
133
|
-
}, H = (e) => !
|
|
139
|
+
return s.type === "radio" ? (a = {}, t.length > 0 && (a = t[0])) : a = t, { value: i, info: a, isAll: n };
|
|
140
|
+
}, H = (e) => !l.isEmpty(e.id) && r.value.includes(e.id.toString()), ne = (e) => {
|
|
134
141
|
const t = {};
|
|
135
|
-
return e.isHtml ? t.width = "auto" :
|
|
136
|
-
},
|
|
137
|
-
const e =
|
|
138
|
-
e?.theme && (
|
|
139
|
-
},
|
|
142
|
+
return e.isHtml ? t.width = "auto" : l.isEmpty(e.width) ? l.isEmpty(s.width) || (t.width = s.width) : t.width = e.width, t;
|
|
143
|
+
}, oe = () => {
|
|
144
|
+
const e = ve("selectTag");
|
|
145
|
+
e?.theme && (J.theme = e.theme);
|
|
146
|
+
}, _ = (e) => {
|
|
140
147
|
const t = [];
|
|
141
148
|
if (e.length > 0) {
|
|
142
|
-
const i = d[e[0]], n = i && !
|
|
149
|
+
const i = d[e[0]], n = i && !l.isEmpty(i.type) ? i.type : s.type;
|
|
143
150
|
e.forEach((a) => {
|
|
144
|
-
if (
|
|
151
|
+
if (l.isExistJsonKey(d, a)) {
|
|
145
152
|
const o = d[a];
|
|
146
|
-
if ((
|
|
153
|
+
if ((l.isEmpty(o.type) ? s.type : o.type) === n)
|
|
147
154
|
switch (n) {
|
|
148
155
|
case "radio":
|
|
149
156
|
t.length === 0 && t.push(a);
|
|
@@ -157,118 +164,118 @@ const ve = ["id"], Ee = {
|
|
|
157
164
|
}
|
|
158
165
|
return t;
|
|
159
166
|
}, C = (e) => {
|
|
160
|
-
if (d = {}, E = [], !
|
|
161
|
-
const t =
|
|
167
|
+
if (d = {}, E = [], !l.isEmpty(e)) {
|
|
168
|
+
const t = l.getArrClone(r.value);
|
|
162
169
|
e.forEach((i) => {
|
|
163
|
-
if (
|
|
170
|
+
if (l.isEmpty(i?.id))
|
|
164
171
|
return;
|
|
165
172
|
const n = i.id.toString();
|
|
166
|
-
d[n] = i, i.isDisabled ?
|
|
173
|
+
d[n] = i, i.isDisabled ? l.isExistValue(t, n) && E.push(n) : E.push(n);
|
|
167
174
|
});
|
|
168
175
|
}
|
|
169
|
-
|
|
176
|
+
K.value += 1;
|
|
170
177
|
}, k = () => {
|
|
171
178
|
if (g.value) {
|
|
172
179
|
let e = [];
|
|
173
|
-
|
|
180
|
+
l.isEmpty(r.value) || (e = _(r.value), l.isEqualArr(r.value, e) || (r.value = e, x(e.join(",")))), s.isShowAll && (v.value = e.length > 0 && e.length === E.length);
|
|
174
181
|
}
|
|
175
182
|
}, B = () => {
|
|
176
|
-
if (
|
|
177
|
-
const e =
|
|
178
|
-
if (e && !
|
|
183
|
+
if (s.type === "radio" && s.isInitRadioValue && l.isEmpty(r.value) && !l.isEmpty(s.list)) {
|
|
184
|
+
const e = s.list.find((t) => !t.isDisabled);
|
|
185
|
+
if (e && !l.isEmpty(e.id)) {
|
|
179
186
|
const t = e.id.toString();
|
|
180
|
-
r.value = [t],
|
|
187
|
+
r.value = [t], x(t);
|
|
181
188
|
}
|
|
182
189
|
}
|
|
183
190
|
}, D = (e) => {
|
|
184
191
|
const t = N(e);
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
|
|
192
|
+
l.isEqualArr(r.value, t) || (r.value = t, x(t.join(",")));
|
|
193
|
+
}, re = () => {
|
|
194
|
+
oe(), g.value = !l.isEmpty(s.list), C(s.list), B(), k();
|
|
188
195
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
196
|
+
de(() => {
|
|
197
|
+
G(() => {
|
|
198
|
+
re();
|
|
192
199
|
});
|
|
193
200
|
}), Q(g, (e) => {
|
|
194
|
-
e &&
|
|
201
|
+
e && ae();
|
|
195
202
|
}), Q(
|
|
196
|
-
[() =>
|
|
203
|
+
[() => s.list, () => s.value, () => s.type],
|
|
197
204
|
([e, t], [i, n]) => {
|
|
198
205
|
const a = e;
|
|
199
206
|
!g.value && a !== i && (g.value = !0), t !== n && D(t), C(a), t === n && B(), k();
|
|
200
207
|
}
|
|
201
208
|
);
|
|
202
209
|
const L = async () => {
|
|
203
|
-
if (!
|
|
204
|
-
const e = ++
|
|
205
|
-
if (!
|
|
210
|
+
if (!s.disabled && !l.isEmpty(s.list)) {
|
|
211
|
+
const e = ++S;
|
|
212
|
+
if (!s.list.some((o) => !o.isDisabled))
|
|
206
213
|
return;
|
|
207
214
|
const i = [];
|
|
208
|
-
|
|
209
|
-
if (
|
|
215
|
+
s.list.forEach((o) => {
|
|
216
|
+
if (l.isEmpty(o.id))
|
|
210
217
|
return;
|
|
211
218
|
const u = o.id.toString();
|
|
212
|
-
o.isDisabled ?
|
|
219
|
+
o.isDisabled ? l.isExistValue(r.value, u) && i.push(u) : v.value || i.push(u);
|
|
213
220
|
});
|
|
214
|
-
const n =
|
|
221
|
+
const n = _(i);
|
|
215
222
|
let a = !0;
|
|
216
|
-
if (
|
|
217
|
-
const { value: o } = y(n), u = y(
|
|
223
|
+
if (s.checkChangeBefore) {
|
|
224
|
+
const { value: o } = y(n), u = y(l.getArrClone(r.value));
|
|
218
225
|
try {
|
|
219
|
-
a = await
|
|
226
|
+
a = await s.checkChangeBefore(o, u.value), a = l.isBoolean(a) ? a : !0;
|
|
220
227
|
} catch (m) {
|
|
221
228
|
a = !1, h("onError", m instanceof Error ? m.message : String(m));
|
|
222
229
|
}
|
|
223
230
|
}
|
|
224
|
-
a && e ===
|
|
231
|
+
a && e === S && j(n);
|
|
225
232
|
}
|
|
226
233
|
}, $ = async (e) => {
|
|
227
|
-
if (!e.isDisabled && !
|
|
228
|
-
const t = ++
|
|
229
|
-
let i =
|
|
230
|
-
i =
|
|
231
|
-
const n =
|
|
234
|
+
if (!e.isDisabled && !s.disabled && !l.isEmpty(e.id)) {
|
|
235
|
+
const t = ++S;
|
|
236
|
+
let i = s.type;
|
|
237
|
+
i = l.isEmpty(e.type) ? i : e.type;
|
|
238
|
+
const n = l.getArrClone(r.value);
|
|
232
239
|
let a = [];
|
|
233
240
|
const o = e.id.toString();
|
|
234
241
|
if (n.length === 0)
|
|
235
242
|
a = [o];
|
|
236
243
|
else if (i === "radio")
|
|
237
|
-
|
|
244
|
+
l.isEqualArr(n, [o]) ? a = s.isRadioClickCancel ? [] : n : a = [o];
|
|
238
245
|
else {
|
|
239
246
|
const m = d[n[0]];
|
|
240
|
-
(m && !
|
|
247
|
+
(m && !l.isEmpty(m.type) ? m.type : s.type) === "radio" ? a = [o] : l.isExistValue(n, o) ? a = l.getArrRemoveById(n, o) : (a = l.getArrClone(n), a.push(o));
|
|
241
248
|
}
|
|
242
249
|
let u = !0;
|
|
243
|
-
if (
|
|
244
|
-
const { value: m } = y(a),
|
|
250
|
+
if (s.checkChangeBefore) {
|
|
251
|
+
const { value: m } = y(a), z = y(n);
|
|
245
252
|
try {
|
|
246
|
-
u = await
|
|
253
|
+
u = await s.checkChangeBefore(m, z.value), u = l.isBoolean(u) ? u : !0;
|
|
247
254
|
} catch (q) {
|
|
248
255
|
u = !1, h("onError", q instanceof Error ? q.message : String(q));
|
|
249
256
|
}
|
|
250
257
|
}
|
|
251
|
-
u && t ===
|
|
258
|
+
u && t === S && j(a);
|
|
252
259
|
}
|
|
253
|
-
},
|
|
254
|
-
return
|
|
255
|
-
getValue:
|
|
260
|
+
}, O = () => _(r.value).join(",");
|
|
261
|
+
return T({
|
|
262
|
+
getValue: O,
|
|
256
263
|
getValueData: () => {
|
|
257
|
-
const { value: e, info: t } = y(
|
|
258
|
-
return
|
|
264
|
+
const { value: e, info: t } = y(O().split(","));
|
|
265
|
+
return s.type === "radio" && l.isEmpty(e) ? null : t;
|
|
259
266
|
},
|
|
260
267
|
setValue: (e) => {
|
|
261
|
-
D(e), C(
|
|
268
|
+
D(e), C(s.list), k();
|
|
262
269
|
},
|
|
263
270
|
runInitComplete: () => {
|
|
264
|
-
g.value || (g.value = !0, D(
|
|
271
|
+
g.value || (g.value = !0, D(s.value), C(s.list), B(), k());
|
|
265
272
|
}
|
|
266
273
|
}), (e, t) => (p(), f("div", {
|
|
267
|
-
id:
|
|
268
|
-
class: M(
|
|
274
|
+
id: P(Z),
|
|
275
|
+
class: M(le.value)
|
|
269
276
|
}, [
|
|
270
|
-
c.isPlaintext ? (p(), f("div",
|
|
271
|
-
c.isPlaintext ?
|
|
277
|
+
c.isPlaintext ? (p(), f("div", Se, R(ie.value), 1)) : (p(), f(F, { key: 1 }, [], 64)),
|
|
278
|
+
c.isPlaintext ? ye("", !0) : (p(), f("ul", xe, [
|
|
272
279
|
c.isShowAll ? (p(), f("li", {
|
|
273
280
|
key: 0,
|
|
274
281
|
role: "option",
|
|
@@ -287,9 +294,9 @@ const ve = ["id"], Ee = {
|
|
|
287
294
|
t[2] || (t[2] = w(V((i) => L(), ["prevent"]), ["space"]))
|
|
288
295
|
]
|
|
289
296
|
}, [
|
|
290
|
-
|
|
291
|
-
], 46,
|
|
292
|
-
(p(!0), f(
|
|
297
|
+
pe("span", null, R(c.showAllLabel || P(W).checkboxAll), 1)
|
|
298
|
+
], 46, Ce)) : (p(), f(F, { key: 1 }, [], 64)),
|
|
299
|
+
(p(!0), f(F, null, fe(ee.value, (i, n) => (p(), f("li", {
|
|
293
300
|
key: `${Y}-${i.id}-${n}`,
|
|
294
301
|
role: "option",
|
|
295
302
|
"aria-selected": H(i),
|
|
@@ -300,24 +307,24 @@ const ve = ["id"], Ee = {
|
|
|
300
307
|
"selectTag-active": H(i),
|
|
301
308
|
"selectTag-disabled": i.isDisabled || c.disabled
|
|
302
309
|
}),
|
|
303
|
-
style: U(
|
|
310
|
+
style: U(ne(i)),
|
|
304
311
|
onClick: (a) => $(i),
|
|
305
312
|
onKeydown: [
|
|
306
313
|
w(V((a) => $(i), ["prevent"]), ["enter"]),
|
|
307
314
|
w(V((a) => $(i), ["prevent"]), ["space"])
|
|
308
315
|
]
|
|
309
316
|
}, [
|
|
310
|
-
|
|
317
|
+
me(e.$slots, "default", { data: i }, () => [
|
|
311
318
|
i.isHtml ? (p(), f("span", {
|
|
312
319
|
key: 0,
|
|
313
|
-
innerHTML:
|
|
314
|
-
}, null, 8,
|
|
320
|
+
innerHTML: P(l).encodeHTML(i.name)
|
|
321
|
+
}, null, 8, Ae)) : (p(), f("span", we, R(i.name), 1))
|
|
315
322
|
])
|
|
316
|
-
], 46,
|
|
323
|
+
], 46, ke))), 128))
|
|
317
324
|
]))
|
|
318
|
-
], 10,
|
|
325
|
+
], 10, be));
|
|
319
326
|
}
|
|
320
327
|
});
|
|
321
328
|
export {
|
|
322
|
-
|
|
329
|
+
Me as _
|
|
323
330
|
};
|