@cldemo/ui-kit 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/buildLibs/all/index.cjs +8 -8
  2. package/buildLibs/all/index.js +12157 -12048
  3. package/buildLibs/common/globalConfig.cjs +1 -1
  4. package/buildLibs/common/globalConfig.js +29 -15
  5. package/buildLibs/common/i18n/en.cjs +1 -1
  6. package/buildLibs/common/i18n/en.js +3 -1
  7. package/buildLibs/common/i18n/zh_CN.cjs +1 -1
  8. package/buildLibs/common/i18n/zh_CN.js +3 -1
  9. package/buildLibs/common/index.cjs +1 -1
  10. package/buildLibs/common/index.js +26 -24
  11. package/buildLibs/mobile/index.cjs +5 -5
  12. package/buildLibs/mobile/index.js +5902 -5852
  13. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CKoVf-v1.js → Index.vue_vue_type_script_setup_true_lang-88gNFuK4.js} +2 -2
  14. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-BQXxDHbe.js +254 -0
  15. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-D0g1xGPL.js → Index.vue_vue_type_script_setup_true_lang-BR0S3Sfl.js} +3 -3
  16. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-RRUPY9bd.js → Index.vue_vue_type_script_setup_true_lang-BrfAVhNV.js} +153 -145
  17. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DdLVG0R0.js → Index.vue_vue_type_script_setup_true_lang-Bw_jRoEX.js} +67 -59
  18. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-C6Zd584S.js +2536 -0
  19. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BOcOO9-n.js → Index.vue_vue_type_script_setup_true_lang-CD66oCaI.js} +386 -375
  20. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CEBiLDTm.js +310 -0
  21. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-C0DgaU5I.js → Index.vue_vue_type_script_setup_true_lang-CRlBvcCg.js} +53 -47
  22. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DqZBB8fM.js → Index.vue_vue_type_script_setup_true_lang-CdYh3Pzs.js} +1 -1
  23. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-XiSSYx4X.js → Index.vue_vue_type_script_setup_true_lang-D7YeNBdk.js} +120 -113
  24. package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKMVQrVU.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-D9sq4n9i.js} +66 -60
  25. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CRKrLCa6.js → Index.vue_vue_type_script_setup_true_lang-DFeBj9IN.js} +209 -201
  26. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-D7bJ5UAn.js → Index.vue_vue_type_script_setup_true_lang-DY3tZQZe.js} +63 -55
  27. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-D_73B6av.js +1533 -0
  28. package/buildLibs/modules/shared/{Validate.vue_vue_type_script_setup_true_lang-3s_3ut9M.js → Validate.vue_vue_type_script_setup_true_lang-hn1Tat7L.js} +102 -92
  29. package/buildLibs/types/All/index.d.ts +1 -1
  30. package/buildLibs/types/Common/globalConfig.d.ts +29 -0
  31. package/buildLibs/types/Common/globalTypes.d.ts +11 -0
  32. package/buildLibs/types/Common/i18n/en.d.ts +2 -0
  33. package/buildLibs/types/Common/i18n/zh_CN.d.ts +2 -0
  34. package/buildLibs/types/Common/index.d.ts +1 -1
  35. package/buildLibs/types/Element/CheckBox/Index.vue.d.ts +9 -0
  36. package/buildLibs/types/Element/Input/Index.vue.d.ts +9 -0
  37. package/buildLibs/types/Element/InputNumber/Index.vue.d.ts +9 -0
  38. package/buildLibs/types/Element/InputNumberStepper/Index.vue.d.ts +9 -0
  39. package/buildLibs/types/Element/InputTextarea/Index.vue.d.ts +9 -0
  40. package/buildLibs/types/Element/Radio/Index.vue.d.ts +9 -0
  41. package/buildLibs/types/Web/DateTime/Index.vue.d.ts +9 -0
  42. package/buildLibs/types/Web/FileUpload/Index.vue.d.ts +9 -0
  43. package/buildLibs/types/Web/Select/Index.vue.d.ts +9 -0
  44. package/buildLibs/types/Web/SelectCascade/Index.vue.d.ts +9 -0
  45. package/buildLibs/types/Web/SelectMove/Index.vue.d.ts +9 -0
  46. package/buildLibs/types/Web/SelectTag/Index.vue.d.ts +9 -0
  47. package/buildLibs/types/Web/SelectTree/Index.vue.d.ts +9 -0
  48. package/buildLibs/types/Web/Tree/Index.vue.d.ts +9 -0
  49. package/buildLibs/types/Web/componentsInstalls.d.ts +90 -0
  50. package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
  51. package/buildLibs/utils/Element/ClCheckbox.js +1 -1
  52. package/buildLibs/utils/Element/ClInput.cjs +1 -1
  53. package/buildLibs/utils/Element/ClInput.js +1 -1
  54. package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
  55. package/buildLibs/utils/Element/ClInputCaptcha.js +1 -1
  56. package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
  57. package/buildLibs/utils/Element/ClInputNumber.js +1 -1
  58. package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
  59. package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
  60. package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
  61. package/buildLibs/utils/Element/ClInputPassword.js +1 -1
  62. package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
  63. package/buildLibs/utils/Element/ClInputSearch.js +1 -1
  64. package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
  65. package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
  66. package/buildLibs/utils/Element/ClRadio.cjs +1 -1
  67. package/buildLibs/utils/Element/ClRadio.js +1 -1
  68. package/buildLibs/utils/Element/__provide__/Validate.cjs +1 -1
  69. package/buildLibs/utils/Element/__provide__/Validate.js +13 -3
  70. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C1OgPpoJ.js → Index.vue_vue_type_script_setup_true_lang-0S6ab-Lp.js} +120 -113
  71. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-neC9NxKi.js → Index.vue_vue_type_script_setup_true_lang-2Fe9SkjL.js} +209 -201
  72. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-2THK822S.js +254 -0
  73. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BO4cal3i.js → Index.vue_vue_type_script_setup_true_lang-2dwwjiTV.js} +386 -375
  74. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-5itnjwU_.js +1 -0
  75. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-ChnRq_PS.js → Index.vue_vue_type_script_setup_true_lang-B0MJO0JM.js} +2 -2
  76. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BIO6Me43.js +1 -0
  77. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BN9ybiKv.js +1 -0
  78. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BpG7AHvM.js +1 -0
  79. package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-CAe8mhTl.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-CATwJnes.js} +66 -60
  80. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CW4fM0by.js +1 -0
  81. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DxYJbPyJ.js → Index.vue_vue_type_script_setup_true_lang-C_exHzjc.js} +3 -3
  82. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CsCn637u.js +2 -0
  83. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D_XMW7K4.js → Index.vue_vue_type_script_setup_true_lang-D4a5Iaue.js} +153 -145
  84. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DXPZYc0c.js +1 -0
  85. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DY4m6Xyj.js +1 -0
  86. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZCt32jb.js +1533 -0
  87. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZF2gj7X.js +2536 -0
  88. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-De1eNjwC.js +1 -0
  89. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C6Evk0-z.js → Index.vue_vue_type_script_setup_true_lang-DtAy8lm9.js} +53 -47
  90. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DvN-fBNd.js +1 -0
  91. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DwBf338f.js +1 -0
  92. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cg_benGj.js → Index.vue_vue_type_script_setup_true_lang-F9tBnc_7.js} +63 -55
  93. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HfnOtuMz.js +310 -0
  94. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dwkuei2j.js → Index.vue_vue_type_script_setup_true_lang-VjIva6RM.js} +1 -1
  95. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-j7gxlOeM.js +1 -0
  96. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CgdGs-U2.js → Index.vue_vue_type_script_setup_true_lang-lKDQFZtY.js} +67 -59
  97. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dzm58mMQ.js → Index.vue_vue_type_script_setup_true_lang-nAMiORzN.js} +1 -1
  98. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CizRrQsH.js → Index.vue_vue_type_script_setup_true_lang-oovIcT38.js} +1 -1
  99. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BIFHYrzc.js → Index.vue_vue_type_script_setup_true_lang-qqnmaRnk.js} +1 -1
  100. package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
  101. package/buildLibs/utils/Web/ClColorPicker.js +1 -1
  102. package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
  103. package/buildLibs/utils/Web/ClCropperPreview.js +1 -1
  104. package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
  105. package/buildLibs/utils/Web/ClDateTime.js +1 -1
  106. package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
  107. package/buildLibs/utils/Web/ClFileUpload.js +1 -1
  108. package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
  109. package/buildLibs/utils/Web/ClInputTag.js +1 -1
  110. package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
  111. package/buildLibs/utils/Web/ClPaginate.js +1 -1
  112. package/buildLibs/utils/Web/ClSelect.cjs +1 -1
  113. package/buildLibs/utils/Web/ClSelect.js +1 -1
  114. package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
  115. package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
  116. package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
  117. package/buildLibs/utils/Web/ClSelectMove.js +655 -647
  118. package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
  119. package/buildLibs/utils/Web/ClSelectTag.js +1 -1
  120. package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
  121. package/buildLibs/utils/Web/ClSelectTree.js +71 -63
  122. package/buildLibs/utils/Web/ClTable.cjs +1 -1
  123. package/buildLibs/utils/Web/ClTable.js +1 -1
  124. package/buildLibs/utils/Web/ClTree.cjs +1 -1
  125. package/buildLibs/utils/Web/ClTree.js +1 -1
  126. package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
  127. package/buildLibs/utils/Web/ClXEditable.js +10 -10
  128. package/buildLibs/web/index.cjs +7 -7
  129. package/buildLibs/web/index.js +10792 -10685
  130. package/docs/components/Element/Checkbox.md +2 -1
  131. package/docs/components/Element/Form.md +15 -0
  132. package/docs/components/Element/Input.md +2 -1
  133. package/docs/components/Element/InputNumber.md +2 -1
  134. package/docs/components/Element/InputNumberStepper.md +2 -1
  135. package/docs/components/Element/InputTextarea.md +2 -1
  136. package/docs/components/Element/Radio.md +2 -1
  137. package/docs/components/Web/DateTime.md +2 -1
  138. package/docs/components/Web/FileUpload.md +2 -1
  139. package/docs/components/Web/Select.md +2 -1
  140. package/docs/components/Web/SelectCascade.md +1 -0
  141. package/docs/components/Web/SelectMove.md +2 -1
  142. package/docs/components/Web/SelectTag.md +1 -0
  143. package/docs/components/Web/SelectTree.md +2 -1
  144. package/docs/components/Web/Tree.md +2 -1
  145. package/package.json +1 -1
  146. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CiNidFJt.js +0 -246
  147. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-DC6727pS.js +0 -2528
  148. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-EXqjkKwS.js +0 -302
  149. package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-Hg16dgRQ.js +0 -1527
  150. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-5aX79Fcf.js +0 -1
  151. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BRvOcf4B.js +0 -1
  152. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ba8Z8fOP.js +0 -1
  153. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjNP5odR.js +0 -1
  154. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CQ3RGLek.js +0 -302
  155. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CY5fRV6o.js +0 -1
  156. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CYN4r-Mx.js +0 -1
  157. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C_7ArHlU.js +0 -1
  158. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CuJjJvft.js +0 -2
  159. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CwjigRBx.js +0 -2528
  160. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D6cmq0Tf.js +0 -1527
  161. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dbf-3Nik.js +0 -1
  162. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DgD_gHit.js +0 -1
  163. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-FowII7_3.js +0 -1
  164. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-c7oxeU_j.js +0 -246
  165. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-vLqCsSbV.js +0 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as re, reactive as ce, ref as x, computed as A, onMounted as ue, nextTick as O, watch as Q, openBlock as p, createElementBlock as f, normalizeClass as M, unref as R, toDisplayString as F, Fragment as J, withKeys as w, withModifiers as V, normalizeStyle as U, createElementVNode as de, renderList as pe, renderSlot as fe, createCommentVNode as me } from "vue";
2
- import s from "@cldemo/ui-kit/common/base";
3
- import ye from "@cldemo/ui-kit/common/Element";
4
- import { getGlobalConfig as ge } from "@cldemo/ui-kit/common/globalConfig";
5
- import { a as he } from "./language-CZZEj4e3.js";
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 ve = ["id"], Ee = {
7
+ const be = ["id"], Se = {
8
8
  key: 0,
9
9
  class: "cl-plaintext-value"
10
- }, be = {
10
+ }, xe = {
11
11
  key: 2,
12
12
  class: "selectTag-container"
13
- }, Se = ["aria-selected", "aria-disabled", "tabindex"], Ce = ["aria-selected", "aria-disabled", "tabindex", "onClick", "onKeydown"], ke = ["innerHTML"], xe = { key: 1 }, $e = /* @__PURE__ */ re({
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, I, _, l) => !0,
74
+ onChange: (c, T, I, s) => !0,
70
75
  // desc: 选中值变更时触发(radio 模式 info 为单对象,checkbox 模式为数组;changeInfo 为变更前旧值快照)
71
- onInit: (c, I, _) => !0,
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: I, emit: _ }) {
77
- const l = c, h = _, { optPageLanguage: W, getPageLanguage: X } = he();
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-${s.getRandom(5)}`, Z = l.id, K = ce({
84
+ const Y = `s-${l.getRandom(5)}`, Z = s.id, J = ue({
80
85
  theme: ""
81
- }), v = x(!1), N = (e) => {
86
+ }), v = A(!1), N = (e) => {
82
87
  let t = [];
83
- return s.isEmpty(e) || (t = e.toString().split(",")), t;
84
- }, r = x(N(l.value));
88
+ return l.isEmpty(e) || (t = e.toString().split(",")), t;
89
+ }, r = A(N(s.value));
85
90
  let E = [], d = {};
86
- const P = x(0), g = x(!1);
87
- let b = 0;
88
- const ee = A(() => {
89
- const e = l.list;
90
- return s.isArray(e) ? e.filter((t) => !s.isEmpty(t)) : [];
91
- }), te = A(() => {
92
- const e = s.isString(l.plaintextSeparator) ? l.plaintextSeparator : ",";
93
- l.list, P.value;
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 = s.isExistJsonKey(d, i) ? d[i] : void 0;
97
- n && s.isNonEmptyString(n.name) && t.push(n.name);
98
- }), t.join(e);
99
- }), ie = A(() => {
100
- const { theme: e } = l, t = {
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 = K.theme;
104
- return e && (i = e), s.isEmpty(i) || (t[`selectTag-${i}`] = !0), s.getJsonMerge(t, ye.getClassNameJson(l.className));
105
- }), se = A(() => {
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 s.isEmpty(l.width) || (e.width = l.width), e;
108
- }), S = (e) => {
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 (!s.isEqualArr(r.value, e)) {
112
- const t = s.getArrClone(r.value), i = y(t);
113
- r.value = s.getArrClone(e);
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
- l.isShowAll && (v.value = a), S(n), h("onChange", n, o, a, {
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
- }, le = () => {
121
- O(() => {
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
- s.isEmpty(e) || e.forEach((o) => {
128
- s.isExistJsonKey(d, o) && t.push(s.getJsonClone(d[o]));
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 l.type === "radio" ? (a = {}, t.length > 0 && (a = t[0])) : a = t, { value: i, info: a, isAll: n };
133
- }, H = (e) => !s.isEmpty(e.id) && r.value.includes(e.id.toString()), ae = (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" : s.isEmpty(e.width) ? s.isEmpty(l.width) || (t.width = l.width) : t.width = e.width, t;
136
- }, ne = () => {
137
- const e = ge("selectTag");
138
- e?.theme && (K.theme = e.theme);
139
- }, T = (e) => {
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 && !s.isEmpty(i.type) ? i.type : l.type;
149
+ const i = d[e[0]], n = i && !l.isEmpty(i.type) ? i.type : s.type;
143
150
  e.forEach((a) => {
144
- if (s.isExistJsonKey(d, a)) {
151
+ if (l.isExistJsonKey(d, a)) {
145
152
  const o = d[a];
146
- if ((s.isEmpty(o.type) ? l.type : o.type) === n)
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 = [], !s.isEmpty(e)) {
161
- const t = s.getArrClone(r.value);
167
+ if (d = {}, E = [], !l.isEmpty(e)) {
168
+ const t = l.getArrClone(r.value);
162
169
  e.forEach((i) => {
163
- if (s.isEmpty(i?.id))
170
+ if (l.isEmpty(i?.id))
164
171
  return;
165
172
  const n = i.id.toString();
166
- d[n] = i, i.isDisabled ? s.isExistValue(t, n) && E.push(n) : E.push(n);
173
+ d[n] = i, i.isDisabled ? l.isExistValue(t, n) && E.push(n) : E.push(n);
167
174
  });
168
175
  }
169
- P.value += 1;
176
+ K.value += 1;
170
177
  }, k = () => {
171
178
  if (g.value) {
172
179
  let e = [];
173
- s.isEmpty(r.value) || (e = T(r.value), s.isEqualArr(r.value, e) || (r.value = e, S(e.join(",")))), l.isShowAll && (v.value = e.length > 0 && e.length === E.length);
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 (l.type === "radio" && l.isInitRadioValue && s.isEmpty(r.value) && !s.isEmpty(l.list)) {
177
- const e = l.list.find((t) => !t.isDisabled);
178
- if (e && !s.isEmpty(e.id)) {
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], S(t);
187
+ r.value = [t], x(t);
181
188
  }
182
189
  }
183
190
  }, D = (e) => {
184
191
  const t = N(e);
185
- s.isEqualArr(r.value, t) || (r.value = t, S(t.join(",")));
186
- }, oe = () => {
187
- ne(), g.value = !s.isEmpty(l.list), C(l.list), B(), k();
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
- ue(() => {
190
- O(() => {
191
- oe();
196
+ de(() => {
197
+ G(() => {
198
+ re();
192
199
  });
193
200
  }), Q(g, (e) => {
194
- e && le();
201
+ e && ae();
195
202
  }), Q(
196
- [() => l.list, () => l.value, () => l.type],
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 (!l.disabled && !s.isEmpty(l.list)) {
204
- const e = ++b;
205
- if (!l.list.some((o) => !o.isDisabled))
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
- l.list.forEach((o) => {
209
- if (s.isEmpty(o.id))
215
+ s.list.forEach((o) => {
216
+ if (l.isEmpty(o.id))
210
217
  return;
211
218
  const u = o.id.toString();
212
- o.isDisabled ? s.isExistValue(r.value, u) && i.push(u) : v.value || i.push(u);
219
+ o.isDisabled ? l.isExistValue(r.value, u) && i.push(u) : v.value || i.push(u);
213
220
  });
214
- const n = T(i);
221
+ const n = _(i);
215
222
  let a = !0;
216
- if (l.checkChangeBefore) {
217
- const { value: o } = y(n), u = y(s.getArrClone(r.value));
223
+ if (s.checkChangeBefore) {
224
+ const { value: o } = y(n), u = y(l.getArrClone(r.value));
218
225
  try {
219
- a = await l.checkChangeBefore(o, u.value), a = s.isBoolean(a) ? a : !0;
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 === b && j(n);
231
+ a && e === S && j(n);
225
232
  }
226
233
  }, $ = async (e) => {
227
- if (!e.isDisabled && !l.disabled && !s.isEmpty(e.id)) {
228
- const t = ++b;
229
- let i = l.type;
230
- i = s.isEmpty(e.type) ? i : e.type;
231
- const n = s.getArrClone(r.value);
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
- s.isEqualArr(n, [o]) ? a = l.isRadioClickCancel ? [] : n : a = [o];
244
+ l.isEqualArr(n, [o]) ? a = s.isRadioClickCancel ? [] : n : a = [o];
238
245
  else {
239
246
  const m = d[n[0]];
240
- (m && !s.isEmpty(m.type) ? m.type : l.type) === "radio" ? a = [o] : s.isExistValue(n, o) ? a = s.getArrRemoveById(n, o) : (a = s.getArrClone(n), a.push(o));
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 (l.checkChangeBefore) {
244
- const { value: m } = y(a), G = y(n);
250
+ if (s.checkChangeBefore) {
251
+ const { value: m } = y(a), z = y(n);
245
252
  try {
246
- u = await l.checkChangeBefore(m, G.value), u = s.isBoolean(u) ? u : !0;
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 === b && j(a);
258
+ u && t === S && j(a);
252
259
  }
253
- }, z = () => T(r.value).join(",");
254
- return I({
255
- getValue: z,
260
+ }, O = () => _(r.value).join(",");
261
+ return T({
262
+ getValue: O,
256
263
  getValueData: () => {
257
- const { value: e, info: t } = y(z().split(","));
258
- return l.type === "radio" && s.isEmpty(e) ? null : t;
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(l.list), k();
268
+ D(e), C(s.list), k();
262
269
  },
263
270
  runInitComplete: () => {
264
- g.value || (g.value = !0, D(l.value), C(l.list), B(), k());
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: R(Z),
268
- class: M(ie.value)
274
+ id: P(Z),
275
+ class: M(le.value)
269
276
  }, [
270
- c.isPlaintext ? (p(), f("div", Ee, F(te.value), 1)) : (p(), f(J, { key: 1 }, [], 64)),
271
- c.isPlaintext ? me("", !0) : (p(), f("ul", be, [
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
- de("span", null, F(c.showAllLabel || R(W).checkboxAll), 1)
291
- ], 46, Se)) : (p(), f(J, { key: 1 }, [], 64)),
292
- (p(!0), f(J, null, pe(ee.value, (i, n) => (p(), f("li", {
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(ae(i)),
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
- fe(e.$slots, "default", { data: i }, () => [
317
+ me(e.$slots, "default", { data: i }, () => [
311
318
  i.isHtml ? (p(), f("span", {
312
319
  key: 0,
313
- innerHTML: R(s).encodeHTML(i.name)
314
- }, null, 8, ke)) : (p(), f("span", xe, F(i.name), 1))
320
+ innerHTML: P(l).encodeHTML(i.name)
321
+ }, null, 8, Ae)) : (p(), f("span", we, R(i.name), 1))
315
322
  ])
316
- ], 46, Ce))), 128))
323
+ ], 46, ke))), 128))
317
324
  ]))
318
- ], 10, ve));
325
+ ], 10, be));
319
326
  }
320
327
  });
321
328
  export {
322
- $e as _
329
+ Me as _
323
330
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as X, useTemplateRef as Y, ref as T, computed as F, onMounted as _, watch as S, openBlock as ee, createBlock as te, unref as ne, createSlots as ae, withCtx as I, renderSlot as N, nextTick as B } from "vue";
1
+ import { defineComponent as X, useTemplateRef as Y, ref as T, computed as S, onMounted as _, watch as F, openBlock as ee, createBlock as te, unref as ne, createSlots as ae, withCtx as x, renderSlot as I, nextTick as B } from "vue";
2
2
  import l from "@cldemo/ui-kit/common/base";
3
- import V from "@cldemo/ui-kit/common/Element";
4
- import { _ as w } from "./Index.vue_vue_type_script_setup_true_lang-D_XMW7K4.js";
3
+ import N from "@cldemo/ui-kit/common/Element";
4
+ import { _ as w } from "./Index.vue_vue_type_script_setup_true_lang-BrfAVhNV.js";
5
5
  const pe = /* @__PURE__ */ X({
6
6
  name: "ClInputNumber",
7
7
  components: {
@@ -87,7 +87,7 @@ const pe = /* @__PURE__ */ X({
87
87
  type: Number,
88
88
  default: 0,
89
89
  // desc: 小数位数(-1 为不限制)
90
- validator: (s) => s >= -1 && s <= 100 && s % 1 === 0
90
+ validator: (i) => i >= -1 && i <= 100 && i % 1 === 0
91
91
  },
92
92
  isThousand: {
93
93
  type: Boolean,
@@ -103,26 +103,31 @@ const pe = /* @__PURE__ */ X({
103
103
  type: Number,
104
104
  default: 200,
105
105
  // desc: 变更延迟时间(毫秒)
106
- validator: (s) => l.isFinite(s) && s >= 0
106
+ validator: (i) => l.isFinite(i) && i >= 0
107
107
  },
108
108
  isPlaintext: {
109
109
  type: Boolean,
110
110
  default: !1
111
111
  // desc: 是否纯文本只读模式,只渲染显示文本(含千分位与小数位)不挂载输入框
112
+ },
113
+ plaintextEmptyText: {
114
+ type: String,
115
+ default: void 0
116
+ // desc: 纯文本只读模式下值为空时的显示文本(默认 "-",显式传空串则显示空白;未显式传时依次读取组件配置段与 plaintextGlobal 段)
112
117
  }
113
118
  },
114
119
  emits: ["update:value", "update:modelValue", "onChange", "onFocus", "onBlur", "onChangeBlur", "onKeyupEnter", "onClear", "onInit", "onKeydown", "onKeyup", "onChangeDelay"],
115
- setup(s, { expose: O, emit: R }) {
116
- const u = s, m = R, k = u.id, y = Y("refElInput"), c = T(u.value), f = T(u.value), K = F(() => {
120
+ setup(i, { expose: O, emit: R }) {
121
+ const u = i, m = R, k = u.id, y = Y("refElInput"), c = T(u.value), f = T(u.value), K = S(() => {
117
122
  let e = { "panel-input-number": !0 };
118
- return e = l.getJsonMerge(e, V.getClassNameJson(u.className)), l.getStringByJson(e, " ");
119
- }), $ = F(() => l.isNonEmptyString(u.inputmode) ? u.inputmode : u.decimal === 0 ? "numeric" : "decimal"), C = (e) => {
123
+ return e = l.getJsonMerge(e, N.getClassNameJson(u.className)), l.getStringByJson(e, " ");
124
+ }), $ = S(() => l.isNonEmptyString(u.inputmode) ? u.inputmode : u.decimal === 0 ? "numeric" : "decimal"), E = (e) => {
120
125
  if (e !== f.value) {
121
126
  f.value = e;
122
127
  const t = d(e);
123
128
  m("update:value", t), m("update:modelValue", t), m("onChange", t);
124
129
  }
125
- }, b = (e) => {
130
+ }, V = (e) => {
126
131
  let t = l.isNumber(e);
127
132
  if (!t)
128
133
  if (l.isNaN(+e))
@@ -133,11 +138,11 @@ const pe = /* @__PURE__ */ X({
133
138
  }
134
139
  return t;
135
140
  }, h = (e, t, n = !0, a = !0) => {
136
- let i = e;
141
+ let s = e;
137
142
  if (u.isNumber) {
138
143
  let o = l.removeReplace(e);
139
144
  if (o.length > 0)
140
- if (b(o)) {
145
+ if (V(o)) {
141
146
  if (o !== "-") {
142
147
  const { decimal: r } = u;
143
148
  if (n && r !== 0 && (r === -1 || r >= 0 && r <= 100) && r !== -1) {
@@ -159,27 +164,27 @@ const pe = /* @__PURE__ */ X({
159
164
  o = t;
160
165
  else
161
166
  o = "";
162
- i = o;
167
+ s = o;
163
168
  }
164
- return i;
169
+ return s;
165
170
  }, D = (e, t) => {
166
171
  const n = t.split(""), a = new RegExp(
167
172
  "^" + n.map((p) => p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join(".*?")
168
- ), i = e.match(a);
173
+ ), s = e.match(a);
169
174
  let o;
170
- return i && (o = i[0].length), o;
175
+ return s && (o = s[0].length), o;
171
176
  }, L = (e, t, n) => {
172
- const a = V.getFocusSelection(e);
173
- let i = t.substring(0, a.start);
174
- i = l.removeReplace(i);
177
+ const a = N.getFocusSelection(e);
178
+ let s = t.substring(0, a.start);
179
+ s = l.removeReplace(s);
175
180
  const o = t.substring(a.start);
176
- let p = b(i);
177
- i.indexOf(".") > -1 && o.indexOf(".") > -1 && (p = !1);
181
+ let p = V(s);
182
+ s.indexOf(".") > -1 && o.indexOf(".") > -1 && (p = !1);
178
183
  let r = a.start;
179
- p ? r = D(n, i) : r = n.lastIndexOf(o), (l.isUndefined(r) || r > n.length || r < 0) && (r = n.length), B(() => {
180
- V.setFocusSelection(e, r, r);
184
+ p ? r = D(n, s) : r = n.lastIndexOf(o), (l.isUndefined(r) || r > n.length || r < 0) && (r = n.length), B(() => {
185
+ N.setFocusSelection(e, r, r);
181
186
  });
182
- }, x = () => {
187
+ }, C = () => {
183
188
  const e = c.value;
184
189
  if (l.isEmpty(e))
185
190
  return e;
@@ -196,8 +201,8 @@ const pe = /* @__PURE__ */ X({
196
201
  t = p.indexOf("e") > -1 ? t : p;
197
202
  }
198
203
  }
199
- const a = t.split("."), i = l.isEmpty(a[0]) ? "0" : a[0];
200
- a[0] = u.isThousand ? l.getFormatThousands(i) : i, n === 0 ? t = a[0] : a.length === 2 ? (a[1] = n === -1 ? a[1] : l.getFillZero(a[1], n, "r"), t = a.join(".")) : t = a[0];
204
+ const a = t.split("."), s = l.isEmpty(a[0]) ? "0" : a[0];
205
+ a[0] = u.isThousand ? l.getFormatThousands(s) : s, n === 0 ? t = a[0] : a.length === 2 ? (a[1] = n === -1 ? a[1] : l.getFillZero(a[1], n, "r"), t = a.join(".")) : t = a[0];
201
206
  }
202
207
  return t;
203
208
  }
@@ -205,12 +210,12 @@ const pe = /* @__PURE__ */ X({
205
210
  let t = "";
206
211
  if (!l.isEmpty(e) && (t = e.toString(), u.isNumber && t !== "-")) {
207
212
  const { decimal: n } = u, a = t.split(".");
208
- let i = l.removeReplace(a[0]);
213
+ let s = l.removeReplace(a[0]);
209
214
  if (a.length === 2 && n !== 0) {
210
215
  let o = "";
211
- n === -1 ? o = a[1] : o = l.getFillZero(a[1], n, "r"), i += `.${o}`;
216
+ n === -1 ? o = a[1] : o = l.getFillZero(a[1], n, "r"), s += `.${o}`;
212
217
  }
213
- t = i;
218
+ t = s;
214
219
  }
215
220
  return t;
216
221
  }, P = () => {
@@ -223,14 +228,14 @@ const pe = /* @__PURE__ */ X({
223
228
  };
224
229
  _(() => {
225
230
  J();
226
- }), S(
231
+ }), F(
227
232
  () => u.value,
228
233
  (e, t) => {
229
234
  if (e !== t && e !== c.value) {
230
235
  let n = !0;
231
236
  if (u.isNumber) {
232
- const a = l.removeReplace(e), i = l.removeReplace(c.value), o = l.isEmpty(a), p = l.isEmpty(i);
233
- o && p ? n = !1 : !o && !p && (n = Number(a) !== Number(i));
237
+ const a = l.removeReplace(e), s = l.removeReplace(c.value), o = l.isEmpty(a), p = l.isEmpty(s);
238
+ o && p ? n = !1 : !o && !p && (n = Number(a) !== Number(s));
234
239
  }
235
240
  if (n) {
236
241
  const a = h(e, t);
@@ -238,23 +243,23 @@ const pe = /* @__PURE__ */ X({
238
243
  }
239
244
  }
240
245
  }
241
- ), S([() => u.isNumber, () => u.decimal, () => u.isThousand], () => {
246
+ ), F([() => u.isNumber, () => u.decimal, () => u.isThousand], () => {
242
247
  const e = h(c.value, "");
243
- c.value = e, C(e);
248
+ c.value = e, E(e);
244
249
  });
245
250
  const M = (e) => {
246
251
  const t = h(e, f.value, !1, u.isImmediateThousand);
247
252
  c.value = t, y.value?.setValue(t), u.isNumber && B(() => {
248
253
  const n = y.value?.getInputElement();
249
254
  n && c.value === t && L(n, e, String(t));
250
- }), C(t);
255
+ }), E(t);
251
256
  }, U = () => {
252
- const e = x();
257
+ const e = C();
253
258
  c.value = e, f.value = e;
254
259
  const t = d(e);
255
260
  m("onFocus", t);
256
261
  }, j = () => {
257
- const e = x();
262
+ const e = C();
258
263
  c.value = e, f.value = e;
259
264
  const t = d(e);
260
265
  m("onBlur", t);
@@ -272,11 +277,11 @@ const pe = /* @__PURE__ */ X({
272
277
  m("onInit");
273
278
  }, Q = (e) => {
274
279
  m("onChangeDelay", d(e));
275
- }, E = () => d(c.value);
280
+ }, b = () => d(c.value);
276
281
  return O({
277
- getValue: E,
282
+ getValue: b,
278
283
  getValueData: () => ({
279
- value: E(),
284
+ value: b(),
280
285
  show: l.isEmpty(c.value) ? "" : c.value.toString()
281
286
  }),
282
287
  setValue: (e, t) => {
@@ -295,21 +300,22 @@ const pe = /* @__PURE__ */ X({
295
300
  ref: y,
296
301
  id: ne(k),
297
302
  value: c.value,
298
- name: s.name,
303
+ name: i.name,
299
304
  className: K.value,
300
- inputType: s.inputType,
305
+ inputType: i.inputType,
301
306
  inputmode: $.value,
302
- autocomplete: s.autocomplete,
303
- placeholder: s.placeholder,
304
- label: s.label,
305
- isFloating: s.isFloating,
306
- disabled: s.disabled,
307
- isReadonly: s.isReadonly,
308
- isClean: s.isClean,
309
- width: s.width,
310
- theme: s.theme,
311
- isPlaintext: s.isPlaintext,
312
- changeDelayTime: s.changeDelayTime,
307
+ autocomplete: i.autocomplete,
308
+ placeholder: i.placeholder,
309
+ label: i.label,
310
+ isFloating: i.isFloating,
311
+ disabled: i.disabled,
312
+ isReadonly: i.isReadonly,
313
+ isClean: i.isClean,
314
+ width: i.width,
315
+ theme: i.theme,
316
+ isPlaintext: i.isPlaintext,
317
+ plaintextEmptyText: i.plaintextEmptyText,
318
+ changeDelayTime: i.changeDelayTime,
313
319
  onOnChange: M,
314
320
  onOnFocus: U,
315
321
  onOnBlur: j,
@@ -323,26 +329,26 @@ const pe = /* @__PURE__ */ X({
323
329
  }, ae({ _: 2 }, [
324
330
  e.$slots.prepend ? {
325
331
  name: "prepend",
326
- fn: I(() => [
327
- N(e.$slots, "prepend")
332
+ fn: x(() => [
333
+ I(e.$slots, "prepend")
328
334
  ]),
329
335
  key: "0"
330
336
  } : void 0,
331
337
  e.$slots.append ? {
332
338
  name: "append",
333
- fn: I(() => [
334
- N(e.$slots, "append")
339
+ fn: x(() => [
340
+ I(e.$slots, "append")
335
341
  ]),
336
342
  key: "1"
337
343
  } : void 0,
338
344
  e.$slots.suffix ? {
339
345
  name: "suffix",
340
- fn: I(() => [
341
- N(e.$slots, "suffix")
346
+ fn: x(() => [
347
+ I(e.$slots, "suffix")
342
348
  ]),
343
349
  key: "2"
344
350
  } : void 0
345
- ]), 1032, ["id", "value", "name", "className", "inputType", "inputmode", "autocomplete", "placeholder", "label", "isFloating", "disabled", "isReadonly", "isClean", "width", "theme", "isPlaintext", "changeDelayTime"]));
351
+ ]), 1032, ["id", "value", "name", "className", "inputType", "inputmode", "autocomplete", "placeholder", "label", "isFloating", "disabled", "isReadonly", "isClean", "width", "theme", "isPlaintext", "plaintextEmptyText", "changeDelayTime"]));
346
352
  }
347
353
  });
348
354
  export {