@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
@@ -0,0 +1,310 @@
1
+ import { defineComponent as tt, reactive as et, ref as D, computed as y, onMounted as st, nextTick as nt, watch as N, openBlock as E, createElementBlock as V, unref as B, toDisplayString as at, normalizeClass as ot, Fragment as lt, renderList as it, normalizeStyle as rt, createVNode as F, withCtx as ct } from "vue";
2
+ import o from "@cldemo/ui-kit/common/base";
3
+ import ut from "@cldemo/ui-kit/common/Element";
4
+ import { getPlaintextOutText as pt } from "@cldemo/ui-kit/common/globalConfig";
5
+ import { a as dt } from "./language-CZZEj4e3.js";
6
+ import { _ as ft } from "./Validate.vue_vue_type_script_setup_true_lang-Jyse_5LL.js";
7
+ import { _ as ht } from "./Index.vue_vue_type_script_setup_true_lang-2dwwjiTV.js";
8
+ /* empty css */
9
+ const mt = ["id"], gt = ["id"], Jt = /* @__PURE__ */ tt({
10
+ name: "ClSelectCascade",
11
+ __name: "Index",
12
+ props: {
13
+ id: String,
14
+ // desc: 自定义元素ID
15
+ value: [String, Number],
16
+ // desc: 选中的值
17
+ className: {
18
+ type: String,
19
+ default: ""
20
+ // desc: 自定义CSS类名
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: !1
25
+ // desc: 是否禁用
26
+ },
27
+ list: {
28
+ type: Array,
29
+ default: () => []
30
+ // desc: 级联数据列表
31
+ },
32
+ placeholder: String,
33
+ // desc: 各层级占位符,多个用 | 分隔
34
+ isClear: {
35
+ type: Boolean,
36
+ default: !1
37
+ // desc: 是否可清空
38
+ },
39
+ isSearch: {
40
+ type: Boolean,
41
+ default: !1
42
+ // desc: 是否可搜索
43
+ },
44
+ parentKey: {
45
+ type: String,
46
+ default: "parentId"
47
+ // desc: 父级键名字段
48
+ },
49
+ topParentValue: {
50
+ type: String,
51
+ default: "0"
52
+ // desc: 顶级父值
53
+ },
54
+ width: String,
55
+ // desc: 各层级下拉宽度,多个用 | 分隔,需带单位(px/%)
56
+ isCheckValidate: {
57
+ type: Boolean,
58
+ default: !1
59
+ // desc: 是否启用校验
60
+ },
61
+ validateRules: {
62
+ type: Array,
63
+ default: () => [{ r: "required" }]
64
+ // desc: 校验规则
65
+ },
66
+ isShowInMsg: {
67
+ type: Boolean,
68
+ default: !0
69
+ // desc: 校验信息是否在消息中显示
70
+ },
71
+ isPlaintext: {
72
+ type: Boolean,
73
+ default: !1
74
+ // desc: 是否纯文本只读模式,只渲染选中项层级文本不挂载各级下拉
75
+ },
76
+ plaintextEmptyText: {
77
+ type: String,
78
+ default: void 0
79
+ // desc: 纯文本只读模式下值为空时的显示文本(默认 "-",显式传空串则显示空白;未显式传时依次读取组件配置段与 plaintextGlobal 段)
80
+ },
81
+ plaintextLevelSeparator: {
82
+ type: String,
83
+ default: " > "
84
+ // desc: 纯文本模式下级联层级之间的分隔符
85
+ }
86
+ },
87
+ emits: {
88
+ "update:value": (p) => !0,
89
+ // desc: 值变化时触发
90
+ "update:modelValue": (p) => !0,
91
+ // desc: 标准 v-model 支持(等价 update:value)
92
+ onChange: (p) => !0
93
+ // desc: 选中变化时触发
94
+ },
95
+ setup(p, { expose: K, emit: T }) {
96
+ const i = p, C = T, { optPageLanguage: b, getPageLanguage: M } = dt();
97
+ M("common");
98
+ const O = `selectCascade-${o.getRandom(5)}`, P = i.id, c = et({
99
+ lastValue: i.value,
100
+ isFirstDataFinish: !1
101
+ }), m = D([]), u = {
102
+ dataJson: {},
103
+ dataGroup: {},
104
+ parentIdsJson: {}
105
+ }, J = D(0), x = y(() => b.value.pleaseSelect), $ = y(() => {
106
+ const { placeholder: t } = i;
107
+ return o.isNonEmptyString(t) ? t.split("|") : [];
108
+ }), G = y(() => {
109
+ const { width: t } = i;
110
+ return o.isNonEmptyString(t) ? t.split("|") : [];
111
+ }), R = y(() => {
112
+ let t = { "panel-select-cascade": !0 };
113
+ return t = o.getJsonMerge(t, ut.getClassNameJson(i.className)), t;
114
+ }), j = (t) => {
115
+ t !== c.lastValue && (c.lastValue = t, C("update:value", t), C("update:modelValue", t), C("onChange", t));
116
+ }, k = (t) => o.isExistJsonKey(u.dataGroup, t), U = (t) => k(t) ? u.dataGroup[t] : [], I = (t) => o.isExistJsonKey(u.dataJson, t) ? u.dataJson[t] : null, S = () => `top_${i.topParentValue}`, w = (t) => {
117
+ const { parentKey: e, topParentValue: s } = i, a = {}, n = {};
118
+ o.isEmpty(t) || t.forEach((r) => {
119
+ const l = o.getJsonClone(r);
120
+ if (o.isEmpty(l?.id) || o.isEmpty(l?.[e]))
121
+ return;
122
+ const f = l.id.toString(), d = l[e].toString();
123
+ a[f] = l;
124
+ const h = d === s.toString() ? S() : d;
125
+ o.isExistJsonKey(n, h) || (n[h] = []), n[h].push(l);
126
+ }), u.dataJson = a, u.dataGroup = n, J.value += 1;
127
+ }, g = (t, e) => {
128
+ const s = {
129
+ idx: t,
130
+ pId: e,
131
+ placeholder: x.value,
132
+ list: [],
133
+ sty: {},
134
+ selected: ""
135
+ };
136
+ if (!o.isEmpty(e)) {
137
+ const l = U(e);
138
+ s.list = o.getListClone(l);
139
+ }
140
+ const a = $.value, n = a.length;
141
+ n > 0 && (n > t ? s.placeholder = o.isEmpty(a[t]) ? x.value : a[t] : n === 1 && (s.placeholder = a[0]));
142
+ const r = G.value;
143
+ return r.length > t && (o.isEmpty(r[t]) || (s.sty.width = r[t], s.sty.flex = "none")), s;
144
+ }, _ = (t, e) => {
145
+ const { parentKey: s, topParentValue: a } = i;
146
+ let n = [];
147
+ if (e && e.indexOf(t) > -1)
148
+ return [];
149
+ const r = e ? e.concat([t]) : [t];
150
+ if (o.isExistJsonKey(u.parentIdsJson, t))
151
+ n = u.parentIdsJson[t];
152
+ else {
153
+ const l = I(t);
154
+ if (l != null) {
155
+ const f = l[s].toString();
156
+ if (f !== a.toString()) {
157
+ const d = I(f);
158
+ if (d != null) {
159
+ n.push(f);
160
+ const h = _(f, r);
161
+ h.length > 0 && (n = n.concat(h));
162
+ }
163
+ }
164
+ }
165
+ u.parentIdsJson[t] = n;
166
+ }
167
+ return n;
168
+ }, v = (t) => {
169
+ let e = o.isUndefined(t) ? i.value : t;
170
+ e != null && !o.isEmpty(e) && !o.isExistJsonKey(u.dataJson, e.toString()) && (e = "");
171
+ const s = [];
172
+ if (e == null || o.isEmpty(e))
173
+ s.push(g(0, S())), s.push(g(1, ""));
174
+ else {
175
+ const a = e.toString(), n = [..._(a)].reverse(), r = n.length;
176
+ if (r > 0) {
177
+ n.forEach((f, d) => {
178
+ const h = d === 0 ? S() : n[d - 1], L = g(d, h);
179
+ L.selected = f, s.push(L);
180
+ });
181
+ const l = g(r, n[r - 1]);
182
+ l.selected = a, s.push(l);
183
+ } else {
184
+ const l = g(0, S());
185
+ l.selected = a, s.push(l);
186
+ }
187
+ }
188
+ m.value = s;
189
+ }, q = () => {
190
+ w(i.list), v(), c.isFirstDataFinish = !0, c.lastValue = i.value;
191
+ };
192
+ st(() => {
193
+ nt(() => {
194
+ q();
195
+ });
196
+ }), N(
197
+ () => i.value,
198
+ (t) => {
199
+ t !== c.lastValue && c.isFirstDataFinish && (v(), c.lastValue = t);
200
+ }
201
+ ), N(
202
+ () => i.list,
203
+ (t) => {
204
+ if (!c.isFirstDataFinish) {
205
+ c.isFirstDataFinish = !0;
206
+ return;
207
+ }
208
+ u.parentIdsJson = {}, w(t);
209
+ const { value: e } = i, s = e != null && !o.isEmpty(e) && o.isExistJsonKey(u.dataJson, e.toString()) ? e : "";
210
+ v(s), c.lastValue = s;
211
+ }
212
+ );
213
+ const z = () => !0, A = (t, e) => {
214
+ let s = "";
215
+ if (o.isEmpty(t) && e === 0)
216
+ v("");
217
+ else if (o.isEmpty(t)) {
218
+ if (m.value.splice(e + 1), e > 0) {
219
+ const a = m.value[e - 1];
220
+ a && (s = a.selected);
221
+ }
222
+ } else {
223
+ const a = t.toString();
224
+ k(a) ? (m.value.splice(e + 1), m.value.push(g(e + 1, a))) : (s = t, m.value.splice(e + 1));
225
+ }
226
+ j(s);
227
+ }, W = () => c.lastValue, H = (t) => {
228
+ const e = _(t), s = e.length > 0 ? e.slice().reverse().concat([t]) : [t], a = [];
229
+ return s.forEach((n) => {
230
+ const r = u.dataJson[n];
231
+ r != null && !o.isEmpty(r.name) && a.push(r.name);
232
+ }), a;
233
+ }, Q = () => {
234
+ const t = c.lastValue;
235
+ let e = "";
236
+ return t != null && !o.isEmpty(t) && (e = H(t.toString()).join(" → ")), {
237
+ value: t,
238
+ show: e || (t != null ? t.toString() : "")
239
+ };
240
+ }, X = (t) => {
241
+ const e = [], s = /* @__PURE__ */ new Set();
242
+ let a = t;
243
+ for (; o.isNonEmptyString(a) && !s.has(a); ) {
244
+ s.add(a);
245
+ const n = I(a);
246
+ if (n == null) break;
247
+ o.isNonEmptyString(n.name) && e.unshift(n.name);
248
+ const r = n[i.parentKey], l = r != null ? String(r) : "";
249
+ if (l === "" || l === String(i.topParentValue)) break;
250
+ a = l;
251
+ }
252
+ return e;
253
+ }, Y = y(() => {
254
+ i.list, J.value;
255
+ const t = c.lastValue;
256
+ if (t == null || o.isEmpty(t))
257
+ return "";
258
+ const e = o.isString(i.plaintextLevelSeparator) ? i.plaintextLevelSeparator : " > ", s = X(t.toString());
259
+ return s.length > 0 ? s.join(e) : t.toString();
260
+ }), Z = y(
261
+ () => pt("selectCascade", i.plaintextEmptyText, Y.value, i.value)
262
+ );
263
+ return K({
264
+ getValue: W,
265
+ getValueData: Q,
266
+ setValue: (t) => {
267
+ v(t), c.lastValue = t;
268
+ }
269
+ }), (t, e) => p.isPlaintext ? (E(), V("div", {
270
+ key: 0,
271
+ id: B(P),
272
+ class: "cl-plaintext-value"
273
+ }, at(Z.value), 9, mt)) : (E(), V("div", {
274
+ key: 1,
275
+ id: B(P),
276
+ class: ot(R.value)
277
+ }, [
278
+ (E(!0), V(lt, null, it(m.value, (s, a) => (E(), V("div", {
279
+ key: `${O}-${a}`,
280
+ class: "selectCascade-item",
281
+ style: rt(s.sty)
282
+ }, [
283
+ F(ft, {
284
+ isShowMsg: p.isShowInMsg,
285
+ isCheck: p.isCheckValidate,
286
+ checkValue: s.selected,
287
+ rules: p.validateRules
288
+ }, {
289
+ default: ct(() => [
290
+ F(ht, {
291
+ isClear: p.isClear,
292
+ isSearch: p.isSearch,
293
+ placeholder: s.placeholder,
294
+ list: s.list,
295
+ disabled: p.disabled,
296
+ value: s.selected,
297
+ "onUpdate:value": (n) => s.selected = n,
298
+ onOpenBefore: z,
299
+ onOnChange: (n) => A(n, a)
300
+ }, null, 8, ["isClear", "isSearch", "placeholder", "list", "disabled", "value", "onUpdate:value", "onOnChange"])
301
+ ]),
302
+ _: 2
303
+ }, 1032, ["isShowMsg", "isCheck", "checkValue", "rules"])
304
+ ], 4))), 128))
305
+ ], 10, gt));
306
+ }
307
+ });
308
+ export {
309
+ Jt as _
310
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as A, useTemplateRef as J, ref as M, computed as b, onBeforeUnmount as U, watch as z, openBlock as v, createElementBlock as E, normalizeClass as P, unref as B, createVNode as j, withCtx as q, withKeys as f, withModifiers as h, toDisplayString as G, createBlock as H } from "vue";
2
2
  import l from "@cldemo/ui-kit/common/base";
3
3
  import Q from "@cldemo/ui-kit/common/Element";
4
- import { _ as T } from "./Index.vue_vue_type_script_setup_true_lang-D_XMW7K4.js";
4
+ import { _ as T } from "./Index.vue_vue_type_script_setup_true_lang-D4a5Iaue.js";
5
5
  import { _ } from "./Index.vue_vue_type_script_setup_true_lang-C2LGy18j.js";
6
6
  const W = ["id"], X = ["aria-label", "tabindex", "onKeydown"], ie = /* @__PURE__ */ A({
7
7
  name: "ClInputSearch",
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),H=require("@cldemo/ui-kit/common/log"),l=require("@cldemo/ui-kit/common/base"),Z=require("@cldemo/ui-kit/common/Element"),G=require("./Index.vue_vue_type_script_setup_true_lang-CW4fM0by.js"),te=require("@cldemo/ui-kit/common/Element/Event"),$=require("./Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js"),ne=["aria-disabled"],q=t.defineComponent({name:"ClInputnumberstepperButton",__name:"Button",props:{className:{},disabled:{type:Boolean},checkDownBeforeCallback:{type:Function}},emits:["onLongDownStart","onLongDownEnd"],setup(c,{emit:T}){const n=c,C=T,g=t.useTemplateRef("refElButton"),a={longDownInterval:null,isMoveBoundary:!1,isLongDownActive:!1,isKeyDown:!1,dragEvent:null,sessionSource:null},p=t.computed(()=>{const o=l.getJsonMerge({"inputNumberStepper-controls":!0},Z.getClassNameJson(n.className));return o["inputNumberStepper-controls-disabled"]=!!n.disabled,o}),y=()=>{C("onLongDownStart")},O=o=>{C("onLongDownEnd",o)},w=()=>{let o=!0;if(n.checkDownBeforeCallback){try{o=n.checkDownBeforeCallback()}catch(i){H.warn("ClInputnumberstepperButton","长按开始回调执行失败,按允许处理",i),o=!0}o=l.isBoolean(o)?o:!0}return o},s=()=>{a.longDownInterval&&(clearInterval(a.longDownInterval),a.longDownInterval=null)},x=o=>{a.isLongDownActive&&a.sessionSource!==o||(a.isLongDownActive=!0,a.sessionSource=o,y(),s(),a.longDownInterval=setInterval(()=>{n.disabled?D():y()},200))},k=o=>{if(a.sessionSource!=="mouse")return;const i=o.target;g.value===o.target||g.value?.contains(i)?a.isMoveBoundary&&(a.isMoveBoundary=!1,!n.disabled&&w()&&x("mouse")):(s(),a.isMoveBoundary=!0)},D=(o,i)=>{if(a.isLongDownActive){if(o&&a.sessionSource&&o!==a.sessionSource)return;s(),a.isLongDownActive=!1,a.sessionSource=null,a.isKeyDown=!1,O(i)}},F=()=>{const o={start(i){if(n.disabled)return!1;const B=i,_=i;let I=!1;return(B.buttons===1||i.type==="touchstart"||(_.touches?.length??0)>0)&&(I=w(),I&&(a.isMoveBoundary=!1,x("mouse"))),I},ing:i=>{k(i)},end:()=>{D("mouse")}};g.value&&(a.dragEvent=new te.Drag(g.value,o))};t.onMounted(()=>{t.nextTick(()=>{F()})}),t.onBeforeUnmount(()=>{D(),a.dragEvent&&(a.dragEvent.end(),a.dragEvent=null)});const R=o=>{const i=o.key;if(i==="Enter"||i===" "){if(n.disabled)return;o.preventDefault(),!a.isKeyDown&&!a.isLongDownActive&&w()&&(a.isKeyDown=!0,x("keyboard"))}},A=o=>{const i=o.key;(i==="Enter"||i===" ")&&a.isKeyDown&&D("keyboard")},N=()=>{(a.isKeyDown||a.isLongDownActive)&&D(void 0,!0)};return(o,i)=>(t.openBlock(),t.createElementBlock("span",{ref_key:"refElButton",ref:g,class:t.normalizeClass(p.value),role:"button",tabindex:"0","aria-disabled":n.disabled,onKeydown:R,onKeyup:A,onBlur:N},[t.renderSlot(o.$slots,"icon")],42,ne))}}),oe=["id"],ae=t.defineComponent({name:"ClInputNumberStepper",components:{ClInputNumber:G._sfc_main,ClInputnumberstepperButton:q,ClIconFont:$._sfc_main},__name:"Index",props:{id:String,value:{type:[String,Number],default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"large"},btnShowType:{type:String,default:"fixed"},btnTheme:{type:String,default:"leftRight",validator:c=>["leftRight","upDown"].indexOf(c)!==-1},btnShape:{type:String,default:"square",validator:c=>["square","circle"].indexOf(c)!==-1},placeholder:{type:String,default:""},isClean:{type:Boolean,default:!0},isTextRead:{type:Boolean,default:!1},min:Number,max:Number,isLoop:{type:Boolean,default:!1},decimal:{type:Number,default:0},fillZeroCount:{type:Number,default:0},btnStep:{type:Number,default:1},btnClsIconSub:{type:String,default:""},btnClsIconAdd:{type:String,default:""},operateBtnDownBeforeCallback:{type:Function,default:void 0},calculationOperateValueCallback:{type:Function,default:void 0},isPlaintext:{type:Boolean,default:!1},plaintextEmptyText:{type:String,default:void 0}},emits:["update:value","update:modelValue","onChange","onError"],setup(c,{emit:T}){const n=c,C=T,g=t.useTemplateRef("refElInput"),a=t.reactive({isFocus:!1}),p=t.ref(""),y=t.reactive({subtractDisabled:!1,addDisabled:!1}),O=n.id,w={upDown:{subtract:"angle-up",add:"angle-down"},leftRight:{subtract:"minus",add:"plus"}};let s=null;const x=()=>{const e=n.btnStep;return l.isFinite(e)&&e>0?e:1},k=t.computed(()=>{const e=n.decimal,u=x().toString();let S=e;if(u.indexOf(".")>-1){const r=u.split(".")[1].length;e<r&&(S=r)}return S===-1?-1:Math.max(0,Math.min(100,Math.round(S)))}),D=t.computed(()=>n.fillZeroCount>0&&l.isFinite(n.fillZeroCount)),F=t.computed(()=>{if(l.isNonEmptyString(n.btnClsIconSub))return"";const e=n.btnTheme||"leftRight";return w[e]?w[e].subtract:""}),R=t.computed(()=>{if(l.isNonEmptyString(n.btnClsIconAdd))return"";const e=n.btnTheme||"leftRight";return w[e]?w[e].add:""}),A=t.computed(()=>{if(n.isPlaintext){let u={"cl-plaintext-stepper":!0};return u=l.getJsonMerge(u,Z.getClassNameJson(n.className)),u}let e={"panel-input-number-stepper":!0,"inputNumberStepper-disabled":n.disabled||!1};return e=l.getJsonMerge(e,Z.getClassNameJson(n.className)),e[`inputNumberStepper-btn-${n.btnTheme||"leftRight"}`]=!0,e[`inputNumberStepper-btn-${n.btnShowType||"fixed"}`]=!0,(n.btnTheme||"leftRight")==="leftRight"&&n.btnShape==="circle"&&(e["inputNumberStepper-btnShape-circle"]=!0),e["inputNumberStepper-focus"]=a.isFocus,e[`inputNumberStepper-${n.size||"large"}`]=!0,e}),N=()=>{const e=p.value;C("update:value",e),C("update:modelValue",e),C("onChange",e)},o=e=>{l.isEmpty(e)||g.value?.setValue(e),p.value=e},i=(e,u)=>{l.isUndefined(e)&&(e=""),l.isString(e)&&(e=l.removeReplace(e));const S=e.toString();let r=e,K=!1,M=!1,V=!1;if(n.calculationOperateValueCallback){let d=null;try{const b=n.calculationOperateValueCallback({value:e,type:u});b&&(d=b)}catch{C("onError","数值计算回调执行失败")}d&&(l.isString(d.value)||typeof d.value=="number"&&l.isFinite(d.value))&&(r=d.value,K=d.subtractDisabled||!1,M=d.addDisabled||!1)}else{const d=u&&!l.isEmpty(u);if(d||!l.isEmpty(e)){const b=l.isEmpty(e)?0:Number(e);if(l.isFinite(b)){const h=n.min,m=n.max,{isLoop:v=!1}=n,E=l.isUndefined(h),L=l.isUndefined(m),z=x();let f=b;if(d){f+=z*(u==="subtract"?-1:1);const j=f.toString();if(j.indexOf(".")>-1){const ee=j.split(".")[1].length,P=k.value;P>=0&&ee>P&&(f=Number(f.toFixed(P)))}}!E&&f<=h?(v||(K=!0),r=f<h&&v&&!L?m:h,V=f!==r):!L&&f>=m?(v||(M=!0),r=f>m&&v&&!E?h:m,V=f!==r):r=f}}}if(typeof r=="number"&&k.value>0&&(r.toString().indexOf(".")>-1||S.indexOf(".")>-1)&&(r=r.toFixed(k.value)),!l.isString(r)&&!(typeof r=="number"&&l.isFinite(r))&&(r=""),D.value&&!l.isEmpty(r)&&l.isFinite(r)){const d=n.fillZeroCount;d>10&&H.warn("ClInputNumberStepper","fillZeroCount 超过 10,按 10 处理",d);const b=r.toString(),h=b.charAt(0)==="-",m=h?b.slice(1):b,v=m.indexOf("."),E=v>-1?m.slice(0,v):m,L=v>-1?m.slice(v):"",f=!/[eE]/.test(m)&&E.length<d?l.getFillZero(E,Math.min(d,10)):E;r=(h?"-":"")+f+L}return o(r.toString()),y.subtractDisabled=K,y.addDisabled=M,V},B=e=>{a.isFocus=e,e&&g.value?.focus()},_=e=>["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].indexOf(e.key)!==-1;t.onBeforeUnmount(()=>{s&&(clearTimeout(s),s=null)}),t.watch(()=>n.value,(e,u)=>{e!==u&&e!==p.value&&i(e)&&N()},{immediate:!0});const I=e=>{n.disabled||(e=l.removeReplace(e),o(e),s&&(clearTimeout(s),s=null),s=setTimeout(()=>{l.isEmpty(p.value)?(y.subtractDisabled=!1,y.addDisabled=!1):i(p.value),N()},100))},Q=e=>{if(!n.disabled&&!n.isTextRead&&_(e)){e.preventDefault(),s&&(clearTimeout(s),s=null);const u=e.key;u==="ArrowLeft"||u==="ArrowDown"?i(p.value,"subtract"):i(p.value,"add"),N(),B(!0)}},W=e=>{!n.disabled&&!n.isTextRead&&_(e)&&(s&&(clearTimeout(s),s=null),B(!0))},X=()=>{B(!0)},Y=e=>{B(!1),n.disabled||o(e)},J=e=>{s&&(clearTimeout(s),s=null),i(p.value,e)},U=e=>{s&&(clearTimeout(s),s=null),N(),e||B(!0)};return(e,u)=>(t.openBlock(),t.createElementBlock("div",{id:t.unref(O),class:t.normalizeClass(A.value)},[t.createVNode(G._sfc_main,{ref_key:"refElInput",ref:g,value:p.value,placeholder:c.placeholder,disabled:c.disabled,isReadonly:c.isTextRead,isClean:c.isClean,isNumber:!D.value,decimal:k.value,isPlaintext:c.isPlaintext,plaintextEmptyText:c.plaintextEmptyText,theme:"icon",onOnChange:I,onOnKeydown:Q,onOnKeyup:W,onOnFocus:X,onOnBlur:Y},t.createSlots({_:2},[e.$slots.textPrepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"textPrepend")]),key:"0"}:void 0]),1032,["value","placeholder","disabled","isReadonly","isClean","isNumber","decimal","isPlaintext","plaintextEmptyText"]),c.isPlaintext?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(q,{className:"inputNumberStepper-subtract","aria-label":"减少",disabled:c.disabled||y.subtractDisabled,checkDownBeforeCallback:c.operateBtnDownBeforeCallback,onOnLongDownStart:u[0]||(u[0]=S=>J("subtract")),onOnLongDownEnd:U},{icon:t.withCtx(()=>[t.createVNode($._sfc_main,{name:F.value,className:c.btnClsIconSub},null,8,["name","className"])]),_:1},8,["disabled","checkDownBeforeCallback"]),t.createVNode(q,{className:"inputNumberStepper-add","aria-label":"增加",disabled:c.disabled||y.addDisabled,checkDownBeforeCallback:c.operateBtnDownBeforeCallback,onOnLongDownStart:u[1]||(u[1]=S=>J("add")),onOnLongDownEnd:U},{icon:t.withCtx(()=>[t.createVNode($._sfc_main,{name:R.value,className:c.btnClsIconAdd},null,8,["name","className"])]),_:1},8,["disabled","checkDownBeforeCallback"])],64))],10,oe))}});exports._sfc_main=ae;
@@ -1,17 +1,18 @@
1
- import { defineComponent as U, ref as b, computed as _, onMounted as W, nextTick as w, watch as V, resolveDirective as X, openBlock as o, createElementBlock as c, unref as p, normalizeClass as D, toDisplayString as J, Fragment as m, renderList as Y, normalizeStyle as Z, createElementVNode as E, renderSlot as ee, withDirectives as M, createVNode as te, createTextVNode as ie, createBlock as P, withModifiers as se } from "vue";
1
+ import { defineComponent as W, ref as b, computed as f, onMounted as X, nextTick as w, watch as V, resolveDirective as Y, openBlock as o, createElementBlock as c, unref as p, normalizeClass as T, toDisplayString as D, Fragment as m, renderList as Z, normalizeStyle as ee, createElementVNode as E, renderSlot as te, withDirectives as P, createVNode as ie, createTextVNode as se, createBlock as J, withModifiers as ne } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import i from "@cldemo/ui-kit/common/base";
5
- import ne from "@cldemo/ui-kit/common/Element";
5
+ import { getPlaintextOutText as le } from "@cldemo/ui-kit/common/globalConfig";
6
+ import ae from "@cldemo/ui-kit/common/Element";
6
7
  import { _ as I } from "./Index.vue_vue_type_script_setup_true_lang-C2LGy18j.js";
7
- import { t as le } from "./index-BGMnJZqC.js";
8
- const ae = ["id"], oe = {
8
+ import { t as oe } from "./index-BGMnJZqC.js";
9
+ const ce = ["id"], re = {
9
10
  key: 0,
10
11
  class: "cl-plaintext-value"
11
- }, ce = ["id", "name", "value", "disabled", "checked", "onClick"], re = ["for"], ue = { key: 0 }, xe = /* @__PURE__ */ U({
12
+ }, ue = ["id", "name", "value", "disabled", "checked", "onClick"], de = ["for"], pe = { key: 0 }, be = /* @__PURE__ */ W({
12
13
  name: "ClCheckbox",
13
14
  directives: {
14
- cltooltip: le
15
+ cltooltip: oe
15
16
  },
16
17
  __name: "Index",
17
18
  props: {
@@ -67,6 +68,11 @@ const ae = ["id"], oe = {
67
68
  default: !1
68
69
  // desc: 是否纯文本只读模式,只渲染选中项文本不挂载复选框
69
70
  },
71
+ plaintextEmptyText: {
72
+ type: String,
73
+ default: void 0
74
+ // desc: 纯文本只读模式下值为空时的显示文本(默认 "-",显式传空串则显示空白;未显式传时依次读取组件配置段与 plaintextGlobal 段)
75
+ },
70
76
  plaintextSeparator: {
71
77
  type: String,
72
78
  default: ","
@@ -74,51 +80,53 @@ const ae = ["id"], oe = {
74
80
  }
75
81
  },
76
82
  emits: ["update:value", "update:modelValue", "onChange", "onInit", "onError", "onTipClick"],
77
- setup(h, { expose: T, emit: A }) {
78
- const n = h, v = A, f = `checkbox-${i.getRandom(5)}`, x = i.isEmpty(n.name) ? f + "_name" : n.name, q = n.id, a = b(i.split(n.value)), r = b(!1);
83
+ setup(h, { expose: M, emit: A }) {
84
+ const n = h, g = A, k = `checkbox-${i.getRandom(5)}`, _ = i.isEmpty(n.name) ? k + "_name" : n.name, q = n.id, a = b(i.split(n.value)), r = b(!1);
79
85
  let u = {};
80
- const N = b(0), g = {
86
+ const N = b(0), v = {
81
87
  isProcessing: !1,
82
88
  // 防止并发点击
83
89
  _initEmitted: !1
84
90
  // 防止重复 emit onInit
85
- }, L = _(() => {
91
+ }, L = f(() => {
86
92
  if (n.isPlaintext)
87
93
  return [];
88
94
  const e = n.list;
89
95
  return i.isArray(e) ? e.filter((s) => !i.isEmpty(s)) : [];
90
- }), j = _(() => {
96
+ }), j = f(() => {
91
97
  const e = i.isString(n.plaintextSeparator) ? n.plaintextSeparator : ",";
92
98
  n.list, N.value;
93
99
  const s = [];
94
100
  return a.value.forEach((l) => {
95
101
  const t = i.isExistJsonKey(u, l) ? u[l] : void 0;
96
- t && i.isNonEmptyString(t.name) && s.push(t.name);
97
- }), s.join(e);
98
- }), F = _(() => i.getJsonMerge(
102
+ s.push(t && i.isNonEmptyString(t.name) ? t.name : l);
103
+ }), s.filter((l) => i.isNonEmptyString(l)).join(e);
104
+ }), F = f(
105
+ () => le("checkbox", n.plaintextEmptyText, j.value, n.value)
106
+ ), K = f(() => i.getJsonMerge(
99
107
  { "panel-checkbox": !0 },
100
- ne.getClassNameJson(n.className)
101
- )), K = _(() => {
108
+ ae.getClassNameJson(n.className)
109
+ )), R = f(() => {
102
110
  const e = {
103
111
  checkbox: !0,
104
112
  "checkbox-default": !0
105
113
  };
106
114
  return e["checkbox-inline"] = n.isInline, e["checkbox-circle"] = n.circle, e;
107
- }), R = (e) => {
115
+ }), z = (e) => {
108
116
  const s = {}, { width: l } = n;
109
117
  return e && !i.isEmpty(e.width) ? s.width = e.width : i.isEmpty(l) || (s.width = n.width), s;
110
118
  }, B = (e) => {
111
- v("update:value", e), v("update:modelValue", e);
112
- }, z = (e) => {
119
+ g("update:value", e), g("update:modelValue", e);
120
+ }, O = (e) => {
113
121
  const s = [];
114
122
  i.isEmpty(e) || i.split(e).forEach((t) => {
115
123
  i.isExistJsonKey(u, t) && s.push(i.getJsonClone(u[t]));
116
124
  });
117
125
  const l = s.length > 0 && s.length === (n.list?.length ?? 0);
118
- B(e), v("onChange", e, s, l);
119
- }, k = () => {
120
- g._initEmitted || (g._initEmitted = !0, w(() => {
121
- v("onInit");
126
+ B(e), g("onChange", e, s, l);
127
+ }, x = () => {
128
+ v._initEmitted || (v._initEmitted = !0, w(() => {
129
+ g("onInit");
122
130
  }));
123
131
  }, $ = () => {
124
132
  const e = [];
@@ -139,26 +147,26 @@ const ae = ["id"], oe = {
139
147
  }, G = () => {
140
148
  r.value = (n.list?.length ?? 0) !== 0, C(n.list), y();
141
149
  };
142
- W(() => {
150
+ X(() => {
143
151
  w(() => {
144
152
  G();
145
153
  });
146
154
  }), V(r, (e) => {
147
- e && k();
155
+ e && x();
148
156
  }), V(
149
157
  () => n.list,
150
158
  (e) => {
151
- r.value || (r.value = !0, e.length === 0 && y(), k());
159
+ r.value || (r.value = !0, e.length === 0 && y(), x());
152
160
  }
153
161
  ), V([() => n.value, () => n.list], ([e, s]) => {
154
162
  const l = s;
155
- !r.value && l.length > 0 && (r.value = !0, k()), C(l), S(e), y();
163
+ !r.value && l.length > 0 && (r.value = !0, x()), C(l), S(e), y();
156
164
  });
157
165
  const H = (e) => {
158
- v("onTipClick", e);
159
- }, O = async (e) => {
160
- if (!(!e || e.isDisabled || n.disabled || g.isProcessing) && !i.isEmpty(e.id)) {
161
- g.isProcessing = !0;
166
+ g("onTipClick", e);
167
+ }, Q = async (e) => {
168
+ if (!(!e || e.isDisabled || n.disabled || v.isProcessing) && !i.isEmpty(e.id)) {
169
+ v.isProcessing = !0;
162
170
  try {
163
171
  const s = String(e.id ?? "");
164
172
  let l = i.getArrClone(a.value);
@@ -173,15 +181,15 @@ const ae = ["id"], oe = {
173
181
  }
174
182
  if (n.disabled || e.isDisabled)
175
183
  return;
176
- d && (a.value = l, z(t));
184
+ d && (a.value = l, O(t));
177
185
  } catch (s) {
178
- v("onError", s);
186
+ g("onError", s);
179
187
  } finally {
180
- g.isProcessing = !1;
188
+ v.isProcessing = !1;
181
189
  }
182
190
  }
183
191
  };
184
- return T({
192
+ return M({
185
193
  getValue: () => $().join(","),
186
194
  getValueData: () => {
187
195
  const e = [];
@@ -190,76 +198,76 @@ const ae = ["id"], oe = {
190
198
  }), e;
191
199
  },
192
200
  setValue: (e) => {
193
- g.isProcessing || (S(e), y());
201
+ v.isProcessing || (S(e), y());
194
202
  },
195
203
  runInitComplete: () => {
196
- r.value || (r.value = !0, C(n.list), S(n.value), y(), k());
204
+ r.value || (r.value = !0, C(n.list), S(n.value), y(), x());
197
205
  }
198
206
  }), (e, s) => {
199
- const l = X("cltooltip");
207
+ const l = Y("cltooltip");
200
208
  return o(), c("div", {
201
- class: D(F.value),
209
+ class: T(K.value),
202
210
  id: p(q)
203
211
  }, [
204
- h.isPlaintext ? (o(), c("div", oe, J(j.value), 1)) : (o(), c(m, { key: 1 }, [], 64)),
205
- (o(!0), c(m, null, Y(L.value, (t, d) => (o(), c(m, {
206
- key: `${f}-${t.id ?? ""}-${d}`
212
+ h.isPlaintext ? (o(), c("div", re, D(F.value), 1)) : (o(), c(m, { key: 1 }, [], 64)),
213
+ (o(!0), c(m, null, Z(L.value, (t, d) => (o(), c(m, {
214
+ key: `${k}-${t.id ?? ""}-${d}`
207
215
  }, [
208
216
  t.isShow || t.isShow === void 0 ? (o(), c("div", {
209
217
  key: 0,
210
- class: D(K.value),
211
- style: Z(R(t))
218
+ class: T(R.value),
219
+ style: ee(z(t))
212
220
  }, [
213
221
  E("span", null, [
214
222
  E("span", null, [
215
223
  E("input", {
216
224
  type: "checkbox",
217
- id: `${f}_${p(x)}_${t.id ?? ""}`,
218
- name: p(x),
225
+ id: `${k}_${p(_)}_${t.id ?? ""}`,
226
+ name: p(_),
219
227
  value: t.id ?? "",
220
228
  disabled: t.isDisabled || h.disabled,
221
229
  checked: a.value.includes(String(t.id ?? "")),
222
- onClick: (Q) => O(t)
223
- }, null, 8, ce),
230
+ onClick: (U) => Q(t)
231
+ }, null, 8, ue),
224
232
  E("label", {
225
- for: `${f}_${p(x)}_${t.id ?? ""}`
233
+ for: `${k}_${p(_)}_${t.id ?? ""}`
226
234
  }, [
227
- ee(e.$slots, "default", { data: t }, () => [
228
- t.icon && t.icon.length > 0 ? M((o(), c("span", ue, [
229
- te(I, {
235
+ te(e.$slots, "default", { data: t }, () => [
236
+ t.icon && t.icon.length > 0 ? P((o(), c("span", pe, [
237
+ ie(I, {
230
238
  name: t.icon
231
239
  }, null, 8, ["name"])
232
240
  ])), [
233
241
  [l, { html: t.name, className: "tooltip-modal" }]
234
242
  ]) : (o(), c(m, { key: 1 }, [
235
- ie(J(t.name), 1)
243
+ se(D(t.name), 1)
236
244
  ], 64))
237
245
  ])
238
- ], 8, re)
246
+ ], 8, de)
239
247
  ]),
240
248
  t.tipMsg && t.tipMsg.length > 0 ? (o(), c(m, { key: 0 }, [
241
- h.tipMode === "tooltip" ? M((o(), P(I, {
249
+ h.tipMode === "tooltip" ? P((o(), J(I, {
242
250
  key: 0,
243
251
  name: p(i).isNonEmptyString(t.tipIcon) ? void 0 : "question-circle",
244
252
  className: p(i).isNonEmptyString(t.tipIcon) ? t.tipIcon : void 0,
245
253
  class: "checkbox-icon-tip"
246
254
  }, null, 8, ["name", "className"])), [
247
255
  [l, { html: t.tipMsg, className: "tooltip-modal" }]
248
- ]) : (o(), P(I, {
256
+ ]) : (o(), J(I, {
249
257
  key: 1,
250
258
  name: p(i).isNonEmptyString(t.tipIcon) ? void 0 : "question-circle",
251
259
  className: p(i).isNonEmptyString(t.tipIcon) ? t.tipIcon : void 0,
252
260
  class: "checkbox-icon-tip",
253
- onClick: se((Q) => H(t), ["stop"])
261
+ onClick: ne((U) => H(t), ["stop"])
254
262
  }, null, 8, ["name", "className", "onClick"]))
255
263
  ], 64)) : (o(), c(m, { key: 1 }, [], 64))
256
264
  ])
257
265
  ], 6)) : (o(), c(m, { key: 1 }, [], 64))
258
266
  ], 64))), 128))
259
- ], 10, ae);
267
+ ], 10, ce);
260
268
  };
261
269
  }
262
270
  });
263
271
  export {
264
- xe as _
272
+ be as _
265
273
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o=require("@cldemo/ui-kit/common/base"),A=require("@cldemo/ui-kit/common/Element"),O=require("./Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js"),J=require("./Index.vue_vue_type_script_setup_true_lang-CY5fRV6o.js"),K=require("./Index.vue_vue_type_script_setup_true_lang-Dbf-3Nik.js"),T=require("./language-BJ4aVgHI.js"),j=["id"],z={class:"paginate-statistic"},U={class:"paginate-list"},R={class:"pagination",role:"navigation","aria-label":"pagination"},G=["tabindex","aria-label","onClick","onKeydown"],H={key:0},Q={key:1},W={key:0,class:"paginate-limit"},X={key:2,class:"paginate-jump"},B=10,Y=e.defineComponent({name:"ClPaginate",__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},isShowLimit:{type:Boolean,default:!0},limitValue:{type:Number,default:10},limitData:Array,isShowJump:{type:Boolean,default:!0},totalCount:{type:Number,default:0},currentPage:{type:Number,default:1}},emits:["onChange"],setup(m,{emit:N}){const l=m,P=N,{optPageLanguage:f,getPageLanguage:w}=T.useLanguage();w("paginate");const I=`paginate-${o.getRandom(5)}`,D=l.id,u=e.ref(""),d=e.ref(""),y=e.ref(-1),L=e.ref(-1),V=e.computed(()=>{let t={"panel-paginate":!0,"paginate-disabled":l.disabled};return t=o.getJsonMerge(t,A.getClassNameJson(l.className)),t}),h=e.computed(()=>Math.max(1,parseInt(u.value)||B)),v=e.computed(()=>{const t=o.isFinite(l.currentPage)?l.currentPage:1,n=l.totalCount>0?Math.ceil(l.totalCount/h.value):0;return n>0?Math.min(Math.max(1,t),n):t}),C=e.computed(()=>{const t=l.limitData;if(o.isArray(t)&&!o.isEmpty(t)){const s=o.getListClone(t).filter(i=>!o.isEmpty(i)&&!o.isEmpty(i.id));if(s.length>0)return s}const n=f.value.pageStrip,a=o.isNonEmptyString(n)?n:"";return[{id:10,name:`10${a}`},{id:20,name:`20${a}`},{id:30,name:`30${a}`},{id:50,name:`50${a}`},{id:100,name:`100${a}`}]}),$=e.computed(()=>{const t=h.value,n=v.value,a=l.totalCount;let s=(n-1)*t,i=n*t;a>0?(s=s+1,i=i>a?a:i,s>i&&(s=i)):(s=0,i=0);const b=f.value.statistic;return o.isNonEmptyString(b)?o.convertStringFormat(b,{s,e:i,_total:a}):""}),F=e.computed(()=>{let t=!1,n=!1,a=!1,s=!1,i=0;const b=h.value,E=l.totalCount;E>0&&(i=Math.ceil(E/b));const c=v.value;t=i>0?c===1:!0,n=t,a=i>0?c===i:!0,s=a;const p=[];if(p.push({icon:"angle-double-left",ariaLabel:"first page",active:!1,disabled:t,page:1}),p.push({icon:"angle-left",ariaLabel:"previous page",active:!1,disabled:n,page:t?1:c-1}),i>0){let r=[];if(i>7){const S=i-5+1+1;c<=4?(r=o.getArrByMinMax(1,5),r.push("…"),r.push(i)):c>=S?(r=o.getArrByMinMax(S-1,i),r.unshift("…"),r.unshift(1)):(r=o.getArrByMinMax(c-1,c+1),r.unshift("…"),r.unshift(1),r.push("…"),r.push(i))}else r=o.getArrByMinMax(1,i);r.forEach(_=>{p.push({title:_,active:_===c,isOmit:_==="…",page:_})})}return p.push({icon:"angle-right",ariaLabel:"next page",active:!1,disabled:s,page:a?i:c+1}),p.push({icon:"angle-double-right",ariaLabel:"last page",active:!1,disabled:a,page:i}),p}),g=(t,n)=>{const a=parseInt(String(t)),s=parseInt(String(n));o.isFinite(a)&&o.isFinite(s)&&(a!==y.value||s!==L.value)&&(y.value=a,L.value=s,P("onChange",a,s))},x=()=>{const t=!o.isEmpty(l.limitValue)&&o.isFinite(l.limitValue)?l.limitValue:B;let a=(t>0?t:B).toString();if(l.isShowLimit){const s=C.value.map(i=>i.id.toString());s.includes(a)||(a=s[0])}return a};u.value=x(),e.watch(()=>l.limitValue,()=>{const t=x();if(t!==u.value){u.value=t;const n=v.value;n!==l.currentPage&&g(n,t)}}),e.watch(()=>l.limitData,()=>{const t=x();t!==u.value&&(u.value=t,g(v.value,t))}),e.watch(()=>l.currentPage,()=>{y.value=-1,L.value=-1}),e.watch(()=>l.totalCount,()=>{const t=v.value;t!==l.currentPage&&g(t,u.value)});const k=t=>{!l.disabled&&!t.active&&!t.disabled&&!t.isOmit&&(d.value="",g(t.page,u.value))},q=t=>{if(l.disabled)return;C.value.some(a=>a.id.toString()===t)&&(d.value="",u.value=t,g(1,t))},M=t=>{if(l.disabled||!o.isNonEmptyString(t))return;const n=parseInt(t);if(o.isFinite(n)){const a=l.totalCount>0?Math.ceil(l.totalCount/h.value):0;if(n>=1&&(a===0||n<=a)){d.value="",g(n,u.value);return}}d.value=""};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(D),class:e.normalizeClass(V.value)},[e.createElementVNode("div",z,e.toDisplayString($.value),1),e.createElementVNode("div",U,[e.createElementVNode("ul",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(a,s)=>(e.openBlock(),e.createElementBlock("li",{key:`${I}-${s}`,class:e.normalizeClass({"paginate-disabled":a.disabled||m.disabled,"paginate-active":a.active,"paginate-omit":a.isOmit}),tabindex:a.disabled||m.disabled?-1:0,role:"button","aria-label":a.ariaLabel||String(a.page),onClick:i=>k(a),onKeydown:[e.withKeys(i=>k(a),["enter"]),e.withKeys(e.withModifiers(i=>k(a),["prevent"]),["space"])]},[a.icon?(e.openBlock(),e.createElementBlock("span",H,[e.createVNode(O._sfc_main,{name:a.icon},null,8,["name"])])):(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(a.title),1))],42,G))),128))])]),m.isShowLimit?(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(K._sfc_main,{list:C.value,value:u.value,disabled:m.disabled,transitionLeave:"dropdownLayer-close-no-anim",onOnChange:q},null,8,["list","value","disabled"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),m.isShowJump?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("span",null,e.toDisplayString(e.unref(f).jumpTo),1),e.createVNode(J._sfc_main,{value:d.value,"onUpdate:value":n[0]||(n[0]=a=>d.value=a),disabled:m.disabled,onOnKeyupEnter:M,onOnChangeBlur:M,onOnClear:M},null,8,["value","disabled"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(f).page),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,j))}});exports._sfc_main=Y;
1
+ "use strict";const e=require("vue"),o=require("@cldemo/ui-kit/common/base"),A=require("@cldemo/ui-kit/common/Element"),O=require("./Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js"),J=require("./Index.vue_vue_type_script_setup_true_lang-DXPZYc0c.js"),K=require("./Index.vue_vue_type_script_setup_true_lang-DvN-fBNd.js"),T=require("./language-BJ4aVgHI.js"),j=["id"],z={class:"paginate-statistic"},U={class:"paginate-list"},R={class:"pagination",role:"navigation","aria-label":"pagination"},G=["tabindex","aria-label","onClick","onKeydown"],H={key:0},Q={key:1},W={key:0,class:"paginate-limit"},X={key:2,class:"paginate-jump"},B=10,Y=e.defineComponent({name:"ClPaginate",__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},isShowLimit:{type:Boolean,default:!0},limitValue:{type:Number,default:10},limitData:Array,isShowJump:{type:Boolean,default:!0},totalCount:{type:Number,default:0},currentPage:{type:Number,default:1}},emits:["onChange"],setup(m,{emit:N}){const l=m,P=N,{optPageLanguage:f,getPageLanguage:w}=T.useLanguage();w("paginate");const I=`paginate-${o.getRandom(5)}`,D=l.id,u=e.ref(""),d=e.ref(""),y=e.ref(-1),L=e.ref(-1),V=e.computed(()=>{let t={"panel-paginate":!0,"paginate-disabled":l.disabled};return t=o.getJsonMerge(t,A.getClassNameJson(l.className)),t}),h=e.computed(()=>Math.max(1,parseInt(u.value)||B)),v=e.computed(()=>{const t=o.isFinite(l.currentPage)?l.currentPage:1,n=l.totalCount>0?Math.ceil(l.totalCount/h.value):0;return n>0?Math.min(Math.max(1,t),n):t}),C=e.computed(()=>{const t=l.limitData;if(o.isArray(t)&&!o.isEmpty(t)){const s=o.getListClone(t).filter(i=>!o.isEmpty(i)&&!o.isEmpty(i.id));if(s.length>0)return s}const n=f.value.pageStrip,a=o.isNonEmptyString(n)?n:"";return[{id:10,name:`10${a}`},{id:20,name:`20${a}`},{id:30,name:`30${a}`},{id:50,name:`50${a}`},{id:100,name:`100${a}`}]}),$=e.computed(()=>{const t=h.value,n=v.value,a=l.totalCount;let s=(n-1)*t,i=n*t;a>0?(s=s+1,i=i>a?a:i,s>i&&(s=i)):(s=0,i=0);const b=f.value.statistic;return o.isNonEmptyString(b)?o.convertStringFormat(b,{s,e:i,_total:a}):""}),F=e.computed(()=>{let t=!1,n=!1,a=!1,s=!1,i=0;const b=h.value,E=l.totalCount;E>0&&(i=Math.ceil(E/b));const c=v.value;t=i>0?c===1:!0,n=t,a=i>0?c===i:!0,s=a;const p=[];if(p.push({icon:"angle-double-left",ariaLabel:"first page",active:!1,disabled:t,page:1}),p.push({icon:"angle-left",ariaLabel:"previous page",active:!1,disabled:n,page:t?1:c-1}),i>0){let r=[];if(i>7){const S=i-5+1+1;c<=4?(r=o.getArrByMinMax(1,5),r.push("…"),r.push(i)):c>=S?(r=o.getArrByMinMax(S-1,i),r.unshift("…"),r.unshift(1)):(r=o.getArrByMinMax(c-1,c+1),r.unshift("…"),r.unshift(1),r.push("…"),r.push(i))}else r=o.getArrByMinMax(1,i);r.forEach(_=>{p.push({title:_,active:_===c,isOmit:_==="…",page:_})})}return p.push({icon:"angle-right",ariaLabel:"next page",active:!1,disabled:s,page:a?i:c+1}),p.push({icon:"angle-double-right",ariaLabel:"last page",active:!1,disabled:a,page:i}),p}),g=(t,n)=>{const a=parseInt(String(t)),s=parseInt(String(n));o.isFinite(a)&&o.isFinite(s)&&(a!==y.value||s!==L.value)&&(y.value=a,L.value=s,P("onChange",a,s))},x=()=>{const t=!o.isEmpty(l.limitValue)&&o.isFinite(l.limitValue)?l.limitValue:B;let a=(t>0?t:B).toString();if(l.isShowLimit){const s=C.value.map(i=>i.id.toString());s.includes(a)||(a=s[0])}return a};u.value=x(),e.watch(()=>l.limitValue,()=>{const t=x();if(t!==u.value){u.value=t;const n=v.value;n!==l.currentPage&&g(n,t)}}),e.watch(()=>l.limitData,()=>{const t=x();t!==u.value&&(u.value=t,g(v.value,t))}),e.watch(()=>l.currentPage,()=>{y.value=-1,L.value=-1}),e.watch(()=>l.totalCount,()=>{const t=v.value;t!==l.currentPage&&g(t,u.value)});const k=t=>{!l.disabled&&!t.active&&!t.disabled&&!t.isOmit&&(d.value="",g(t.page,u.value))},q=t=>{if(l.disabled)return;C.value.some(a=>a.id.toString()===t)&&(d.value="",u.value=t,g(1,t))},M=t=>{if(l.disabled||!o.isNonEmptyString(t))return;const n=parseInt(t);if(o.isFinite(n)){const a=l.totalCount>0?Math.ceil(l.totalCount/h.value):0;if(n>=1&&(a===0||n<=a)){d.value="",g(n,u.value);return}}d.value=""};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(D),class:e.normalizeClass(V.value)},[e.createElementVNode("div",z,e.toDisplayString($.value),1),e.createElementVNode("div",U,[e.createElementVNode("ul",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(a,s)=>(e.openBlock(),e.createElementBlock("li",{key:`${I}-${s}`,class:e.normalizeClass({"paginate-disabled":a.disabled||m.disabled,"paginate-active":a.active,"paginate-omit":a.isOmit}),tabindex:a.disabled||m.disabled?-1:0,role:"button","aria-label":a.ariaLabel||String(a.page),onClick:i=>k(a),onKeydown:[e.withKeys(i=>k(a),["enter"]),e.withKeys(e.withModifiers(i=>k(a),["prevent"]),["space"])]},[a.icon?(e.openBlock(),e.createElementBlock("span",H,[e.createVNode(O._sfc_main,{name:a.icon},null,8,["name"])])):(e.openBlock(),e.createElementBlock("span",Q,e.toDisplayString(a.title),1))],42,G))),128))])]),m.isShowLimit?(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(K._sfc_main,{list:C.value,value:u.value,disabled:m.disabled,transitionLeave:"dropdownLayer-close-no-anim",onOnChange:q},null,8,["list","value","disabled"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),m.isShowJump?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("span",null,e.toDisplayString(e.unref(f).jumpTo),1),e.createVNode(J._sfc_main,{value:d.value,"onUpdate:value":n[0]||(n[0]=a=>d.value=a),disabled:m.disabled,onOnKeyupEnter:M,onOnChangeBlur:M,onOnClear:M},null,8,["value","disabled"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(f).page),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,j))}});exports._sfc_main=Y;