hisonvue 1.1.18 → 1.1.20

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 (60) hide show
  1. package/dist/{HAccordion-kLooMayD.js → HAccordion-BCpczHV8.js} +1 -1
  2. package/dist/{HAccordion-DcBSqGEg.mjs → HAccordion-BMoSFHwf.mjs} +2 -2
  3. package/dist/{HBaggie-C6f9nC4M.mjs → HBaggie-CJvlgbDQ.mjs} +2 -2
  4. package/dist/{HBaggie-uyGznd4G.js → HBaggie-oMZLaa_F.js} +1 -1
  5. package/dist/{HBanner-BlFnKTdl.js → HBanner-C2_LbE2h.js} +1 -1
  6. package/dist/{HBanner-BJxs-91M.mjs → HBanner-DsRKDH1u.mjs} +2 -2
  7. package/dist/{HButton-C_VAbACh.mjs → HButton-rFSlupkR.mjs} +2 -2
  8. package/dist/{HButton-C0B-GYLI.js → HButton-yAD_RoyS.js} +1 -1
  9. package/dist/{HCalendar-FpKn-Qqp.js → HCalendar-CTlQGPMZ.js} +1 -1
  10. package/dist/{HCalendar-Db6pocNb.mjs → HCalendar-iWmcJSvC.mjs} +1 -1
  11. package/dist/{HCaption-DrFvAUQk.mjs → HCaption-DVmiGA4e.mjs} +1 -1
  12. package/dist/{HCaption-Ro_KdpAz.js → HCaption-c9m0kiX8.js} +1 -1
  13. package/dist/{HChart-Cc8h6tul.js → HChart-BiAYvoFC.js} +1 -1
  14. package/dist/{HChart-pHv4-Pox.mjs → HChart-RTqgX9Vw.mjs} +1 -1
  15. package/dist/{HDrawer-CSD8eE9O.js → HDrawer-CC6pLF5V.js} +1 -1
  16. package/dist/{HDrawer-BeWd8Wqh.mjs → HDrawer-_eAs8SUX.mjs} +1 -1
  17. package/dist/{HDropdown-B6GgKbRK.js → HDropdown-BQ86MUJn.js} +1 -1
  18. package/dist/{HDropdown-DL50k2zB.mjs → HDropdown-Jr1jdIcK.mjs} +2 -2
  19. package/dist/{HFileset-CZUHl9uC.mjs → HFileset-CuLQPIg0.mjs} +1 -1
  20. package/dist/{HFileset-Bv4JMkL8.js → HFileset-DzDl7B3M.js} +1 -1
  21. package/dist/{HGap-L0rf1Utr.mjs → HGap-2iQmQgTz.mjs} +1 -1
  22. package/dist/{HGap-DpEsjxzv.js → HGap-CEVavkgg.js} +1 -1
  23. package/dist/{HGrid-DARQl-Gk.js → HGrid-6zIauOhZ.js} +1 -1
  24. package/dist/{HGrid-WldfaDhY.mjs → HGrid-ifjYNehH.mjs} +1 -1
  25. package/dist/{HImagebox-BWYB9zcy.js → HImagebox-CIIOb3Vd.js} +1 -1
  26. package/dist/{HImagebox-BHo9AsJn.mjs → HImagebox-DwaNSiUE.mjs} +1 -1
  27. package/dist/{HInput-DpyeWPGZ.mjs → HInput-B7jIOO-G.mjs} +250 -212
  28. package/dist/HInput-CoawK6h1.js +1 -0
  29. package/dist/{HInputGroup-DVVfCSIz.js → HInputGroup-4FByzgDv.js} +1 -1
  30. package/dist/{HInputGroup-BT8F4jcD.mjs → HInputGroup-c6sx8xkm.mjs} +1 -1
  31. package/dist/{HLabel-B34Wc_Et.js → HLabel-BdJsUUwI.js} +1 -1
  32. package/dist/{HLabel-BsnPOH8t.mjs → HLabel-ClzEe4t5.mjs} +2 -2
  33. package/dist/{HLayout-DPJSRuCg.js → HLayout-cCfkCCnY.js} +1 -1
  34. package/dist/{HLayout-CHXrR60F.mjs → HLayout-odNbQHZs.mjs} +1 -1
  35. package/dist/{HList-CmfFvcuV.mjs → HList-C4Te9S2p.mjs} +2 -2
  36. package/dist/{HList-DDnoVe5Q.js → HList-DlESPK5m.js} +1 -1
  37. package/dist/{HModal-Dg2g4Cbj.js → HModal-CD42g96i.js} +1 -1
  38. package/dist/{HModal-Dsx3vGwQ.mjs → HModal-IPNLslSW.mjs} +1 -1
  39. package/dist/{HNote-D5rrvhzJ.js → HNote-D-0CwHiB.js} +1 -1
  40. package/dist/{HNote-CRQqzs_u.mjs → HNote-DOXVPQTE.mjs} +1 -1
  41. package/dist/{HPagination-qWDN1YCK.mjs → HPagination-71-p-_fA.mjs} +2 -2
  42. package/dist/{HPagination-CVrBuswv.js → HPagination-DAipfja0.js} +1 -1
  43. package/dist/{HParagraph-qW919L3G.js → HParagraph-D727CLzE.js} +1 -1
  44. package/dist/{HParagraph-B1LMahEG.mjs → HParagraph-DFr9VHuc.mjs} +1 -1
  45. package/dist/{HPopup-Dr9lLgvw.js → HPopup-BzNv0ETv.js} +1 -1
  46. package/dist/{HPopup-5Eo5ywZ0.mjs → HPopup-CKF03bB8.mjs} +1 -1
  47. package/dist/{HSpinner-Br78DP-B.mjs → HSpinner-DskT_CbT.mjs} +1 -1
  48. package/dist/{HSpinner-DiYsVDQ1.js → HSpinner-OrX8Lncm.js} +1 -1
  49. package/dist/{HTable-BLzHQoXE.js → HTable-CgFXqisG.js} +1 -1
  50. package/dist/{HTable-B7BQBLCX.mjs → HTable-D_wg634Z.mjs} +1 -1
  51. package/dist/hisonvue.cjs.js +1 -1
  52. package/dist/hisonvue.css +1 -1
  53. package/dist/hisonvue.d.ts +27 -0
  54. package/dist/hisonvue.es.js +2 -2
  55. package/dist/{index-CwT_wDHc.mjs → index-C4_ZZ_fO.mjs} +1 -1
  56. package/dist/{index-BMv0zuHq.js → index-Dndw65fe.js} +1 -1
  57. package/dist/{setButtonCssEvent-B3VPjEgJ.mjs → setButtonCssEvent-BEJDaHrp.mjs} +1 -1
  58. package/dist/{setButtonCssEvent-CH5pxVea.js → setButtonCssEvent-C0T9J9fO.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/HInput-ChxKbM9j.js +0 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as en, ref as r, computed as g, inject as de, onMounted as nn, onBeforeUnmount as on, watch as a, unref as tn, nextTick as ge, createElementBlock as b, openBlock as y, normalizeClass as f, normalizeStyle as I, createElementVNode as P, Fragment as be, renderList as un, toDisplayString as ye, withDirectives as $e, vShow as Te } from "vue";
2
- import { T as sn, y as x, N as ln, h as M, g as rn, u as dn, O as u, l as d, P as c, w as h, e as an, t as mn, a as vn, b as Ce, Q as ae, R as pn, U as fn, r as Mn, c as gn, d as bn } from "./index-CwT_wDHc.mjs";
3
- import { _ as yn } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const $n = {
1
+ import { defineComponent as tn, ref as r, computed as f, inject as ae, onMounted as un, onBeforeUnmount as sn, watch as a, unref as ln, nextTick as be, createElementBlock as b, openBlock as y, normalizeClass as M, normalizeStyle as P, createElementVNode as I, Fragment as ye, renderList as rn, toDisplayString as $e, withDirectives as Ce, vShow as Te } from "vue";
2
+ import { T as dn, y as c, N as an, h as g, g as mn, u as vn, O as u, l as d, P as _, w as N, e as pn, t as fn, a as Mn, b as ke, Q as me, R as gn, U as bn, r as yn, c as $n, d as Cn } from "./index-C4_ZZ_fO.mjs";
3
+ import { _ as Tn } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const kn = {
5
5
  /**
6
6
  * Unique identifier for the input.
7
7
  * - You can later retrieve its methods via `hison.component.getInput(id)`
@@ -76,7 +76,7 @@ const $n = {
76
76
  inputType: {
77
77
  type: String,
78
78
  required: !1,
79
- validator: (e) => ln.includes(e)
79
+ validator: (e) => an.includes(e)
80
80
  },
81
81
  /**
82
82
  * Format string used for displaying or formatting the value.
@@ -126,6 +126,16 @@ const $n = {
126
126
  * - Maps to the `placeholder` attribute
127
127
  */
128
128
  placeholder: { type: String, required: !1 },
129
+ /**
130
+ * Placeholder text color.
131
+ * - Semantic tokens: 'primary' | 'muted' | 'info' | 'success' | 'danger' | 'warning'
132
+ * - Or any valid CSS color string (e.g. '#fff', '#ffffff', 'rgb(...)', 'rgba(...)').
133
+ * - Default: 'primary'
134
+ */
135
+ placeholderColor: {
136
+ type: String,
137
+ default: "primary"
138
+ },
129
139
  /**
130
140
  * Edit mode of the input.
131
141
  * - Values: `'editable'`, `'readonly'`, `'disable'`
@@ -134,7 +144,7 @@ const $n = {
134
144
  */
135
145
  editMode: {
136
146
  type: String,
137
- default: x.editable,
147
+ default: c.editable,
138
148
  validator: (e) => ["editable", "disable", "readonly"].includes(e)
139
149
  },
140
150
  /**
@@ -175,7 +185,7 @@ const $n = {
175
185
  textAlign: {
176
186
  type: String,
177
187
  default: null,
178
- validator: (e) => e == null || sn.includes(e)
188
+ validator: (e) => e == null || dn.includes(e)
179
189
  },
180
190
  /**
181
191
  * Whether to show border (rendered as subtle box-shadow).
@@ -275,70 +285,70 @@ const $n = {
275
285
  default: "default",
276
286
  validator: (e) => ["default", "switch"].includes(e)
277
287
  }
278
- }, _ = /* @__PURE__ */ new WeakSet(), ee = /* @__PURE__ */ new WeakSet(), ke = (e) => {
288
+ }, ee = /* @__PURE__ */ new WeakSet(), ne = /* @__PURE__ */ new WeakSet(), we = (e) => {
279
289
  const n = e.currentTarget;
280
- if (M.event.cssEvent.input_onBeforeFocus(e) === !1) {
290
+ if (g.event.cssEvent.input_onBeforeFocus(e) === !1) {
281
291
  e.stopPropagation(), e.preventDefault();
282
292
  return;
283
293
  }
284
- n.classList.add("hison-input-on-active"), M.event.cssEvent.input_onAfterFocus(e);
285
- }, we = (e) => {
294
+ n.classList.add("hison-input-on-active"), g.event.cssEvent.input_onAfterFocus(e);
295
+ }, he = (e) => {
286
296
  const n = e.currentTarget;
287
- if (M.event.cssEvent.input_onBeforeBlur(e) === !1) {
297
+ if (g.event.cssEvent.input_onBeforeBlur(e) === !1) {
288
298
  e.stopPropagation(), e.preventDefault();
289
299
  return;
290
300
  }
291
- n.classList.remove("hison-input-on-active"), n.classList.remove("hison-input-on-mouseover"), M.event.cssEvent.input_onAfterBlur(e);
301
+ n.classList.remove("hison-input-on-active"), n.classList.remove("hison-input-on-mouseover"), g.event.cssEvent.input_onAfterBlur(e);
292
302
  }, Ne = (e) => {
293
303
  const n = e.currentTarget;
294
304
  if (!n.readOnly) {
295
- if (M.event.cssEvent.input_onBeforeMouseover(e) === !1) {
305
+ if (g.event.cssEvent.input_onBeforeMouseover(e) === !1) {
296
306
  e.stopPropagation(), e.preventDefault();
297
307
  return;
298
308
  }
299
- n.classList.add("hison-input-on-mouseover"), M.event.cssEvent.input_onAfterMouseover(e);
309
+ n.classList.add("hison-input-on-mouseover"), g.event.cssEvent.input_onAfterMouseover(e);
300
310
  }
301
- }, he = (e) => {
311
+ }, Le = (e) => {
302
312
  const n = e.currentTarget;
303
313
  if (!n.readOnly) {
304
- if (M.event.cssEvent.input_onBeforeMouseout(e) === !1) {
314
+ if (g.event.cssEvent.input_onBeforeMouseout(e) === !1) {
305
315
  e.stopPropagation(), e.preventDefault();
306
316
  return;
307
317
  }
308
- n.classList.remove("hison-input-on-mouseover"), M.event.cssEvent.input_onAfterMouseout(e);
318
+ n.classList.remove("hison-input-on-mouseover"), g.event.cssEvent.input_onAfterMouseout(e);
309
319
  }
310
- }, Le = (e) => {
320
+ }, Be = (e) => {
311
321
  const n = e.currentTarget;
312
322
  if (!n.readOnly) {
313
- if (M.event.cssEvent.input_onBeforeTouchstart(e) === !1) {
323
+ if (g.event.cssEvent.input_onBeforeTouchstart(e) === !1) {
314
324
  e.stopPropagation(), e.preventDefault();
315
325
  return;
316
326
  }
317
- n.classList.add("hison-input-on-mouseover"), M.event.cssEvent.input_onAfterTouchstart(e);
327
+ n.classList.add("hison-input-on-mouseover"), g.event.cssEvent.input_onAfterTouchstart(e);
318
328
  }
319
- }, Be = (e) => {
329
+ }, Fe = (e) => {
320
330
  const n = e.currentTarget;
321
331
  if (!n.readOnly) {
322
- if (M.event.cssEvent.input_onBeforeTouchend(e) === !1) {
332
+ if (g.event.cssEvent.input_onBeforeTouchend(e) === !1) {
323
333
  e.stopPropagation(), e.preventDefault();
324
334
  return;
325
335
  }
326
- n.classList.remove("hison-input-on-mouseover"), M.event.cssEvent.input_onAfterTouchend(e);
336
+ n.classList.remove("hison-input-on-mouseover"), g.event.cssEvent.input_onAfterTouchend(e);
327
337
  }
328
- }, Fe = (e) => {
338
+ }, Pe = (e) => {
329
339
  const n = e.currentTarget;
330
340
  n.readOnly || n.classList.remove("hison-input-on-mouseover");
331
- }, Tn = (e) => {
332
- _.has(e) || (_.add(e), e.addEventListener("mouseenter", Ne), e.addEventListener("mouseleave", he), e.addEventListener("touchstart", Le, { passive: !1, capture: !0 }), e.addEventListener("touchend", Be, { passive: !1, capture: !0 }), e.addEventListener("touchcancel", Fe, { passive: !1, capture: !0 }));
333
- }, Cn = (e) => {
334
- _.has(e) && (_.delete(e), e.removeEventListener("mouseenter", Ne), e.removeEventListener("mouseleave", he), e.removeEventListener("touchstart", Le, { capture: !0 }), e.removeEventListener("touchend", Be, { capture: !0 }), e.removeEventListener("touchcancel", Fe, { capture: !0 }), e.classList.remove("hison-input-on-mouseover"));
335
- }, kn = (e) => {
336
- ee.has(e) || (ee.add(e), e.addEventListener("focus", ke), e.addEventListener("blur", we));
337
341
  }, wn = (e) => {
338
- ee.has(e) && (ee.delete(e), e.removeEventListener("focus", ke), e.removeEventListener("blur", we), e.classList.remove("hison-input-on-active"), e.classList.remove("hison-input-on-mouseover"));
339
- }, Nn = en({
342
+ ee.has(e) || (ee.add(e), e.addEventListener("mouseenter", Ne), e.addEventListener("mouseleave", Le), e.addEventListener("touchstart", Be, { passive: !1, capture: !0 }), e.addEventListener("touchend", Fe, { passive: !1, capture: !0 }), e.addEventListener("touchcancel", Pe, { passive: !1, capture: !0 }));
343
+ }, hn = (e) => {
344
+ ee.has(e) && (ee.delete(e), e.removeEventListener("mouseenter", Ne), e.removeEventListener("mouseleave", Le), e.removeEventListener("touchstart", Be, { capture: !0 }), e.removeEventListener("touchend", Fe, { capture: !0 }), e.removeEventListener("touchcancel", Pe, { capture: !0 }), e.classList.remove("hison-input-on-mouseover"));
345
+ }, Nn = (e) => {
346
+ ne.has(e) || (ne.add(e), e.addEventListener("focus", we), e.addEventListener("blur", he));
347
+ }, Ln = (e) => {
348
+ ne.has(e) && (ne.delete(e), e.removeEventListener("focus", we), e.removeEventListener("blur", he), e.classList.remove("hison-input-on-active"), e.classList.remove("hison-input-on-mouseover"));
349
+ }, Bn = tn({
340
350
  name: "HInput",
341
- props: $n,
351
+ props: kn,
342
352
  inheritAttrs: !1,
343
353
  emits: [
344
354
  "update:modelValue",
@@ -382,9 +392,9 @@ const $n = {
382
392
  "contextmenu"
383
393
  ],
384
394
  setup(e, { emit: n }) {
385
- const $ = r(null), L = r(null), C = r(null), p = e.id ? e.id : rn(), o = r(e.name ?? p), Ie = g(() => o.value), ne = `hinput:${p}`, me = dn(), D = r([]), oe = () => {
386
- D.value = an(mn(e.class) || "", me.value), vn(D.value, "col") === -1 && D.value.push("hison-col-12"), Ce(D.value, "size", M.componentStyle.size), Ce(D.value, "color", "primary");
387
- }, l = r(e.inputType ?? u.text), te = g(() => {
395
+ const $ = r(null), L = r(null), T = r(null), p = e.id ? e.id : mn(), o = r(e.name ?? p), Ie = f(() => o.value), oe = `hinput:${p}`, ve = vn(), V = r([]), te = () => {
396
+ V.value = pn(fn(e.class) || "", ve.value), Mn(V.value, "col") === -1 && V.value.push("hison-col-12"), ke(V.value, "size", g.componentStyle.size), ke(V.value, "color", "primary");
397
+ }, l = r(e.inputType ?? u.text), ie = f(() => {
388
398
  switch (l.value) {
389
399
  case u.checkbox:
390
400
  return "checkbox";
@@ -399,7 +409,7 @@ const $n = {
399
409
  default:
400
410
  return "text";
401
411
  }
402
- }), Pe = g(() => {
412
+ }), Se = f(() => {
403
413
  switch (l.value) {
404
414
  case u.mask:
405
415
  case u.digit:
@@ -407,20 +417,20 @@ const $n = {
407
417
  default:
408
418
  return l.value;
409
419
  }
410
- }), K = r(e.toggleStyle ?? "default"), w = r(e.format ?? null), B = r(d.utils.isNumeric(e.maxNumber) ? Number(e.maxNumber) : null), F = r(d.utils.isNumeric(e.minNumber) ? Number(e.minNumber) : null), V = r(d.utils.isInteger(e.roundNumber) || d.utils.isNegativeInteger(e.roundNumber) || e.roundNumber === "0" ? Number(e.roundNumber) : null), A = r(d.utils.isPositiveInteger(e.maxLength) ? Number(e.maxLength) : null), S = r(d.utils.isPositiveInteger(e.maxByte) ? Number(e.maxByte) : null), ie = (t) => {
420
+ }), K = r(e.toggleStyle ?? "default"), w = r(e.format ?? null), B = r(d.utils.isNumeric(e.maxNumber) ? Number(e.maxNumber) : null), F = r(d.utils.isNumeric(e.minNumber) ? Number(e.minNumber) : null), q = r(d.utils.isInteger(e.roundNumber) || d.utils.isNegativeInteger(e.roundNumber) || e.roundNumber === "0" ? Number(e.roundNumber) : null), S = r(d.utils.isPositiveInteger(e.maxLength) ? Number(e.maxLength) : null), A = r(d.utils.isPositiveInteger(e.maxByte) ? Number(e.maxByte) : null), ue = (t) => {
411
421
  switch (t) {
412
422
  case u.number:
413
423
  case u.digit:
414
- return h.right;
424
+ return N.right;
415
425
  case u.date:
416
426
  case u.month:
417
427
  case u.time:
418
- return h.center;
428
+ return N.center;
419
429
  default:
420
- return h.left;
430
+ return N.left;
421
431
  }
422
- }, E = r(e.textAlign ?? ie(l.value)), Ae = g(() => ({ textAlign: E.value })), U = r(e.border ?? !0), Se = (t) => (t = String(t), A.value && (t = t.substring(0, A.value)), S.value && (t = d.utils.getCutByteLength(t, S.value)), t), Ee = (t) => (t = Number(t), B.value && t > B.value && (t = B.value), F.value && t < F.value && (t = F.value), V.value && (t = d.utils.getRound(t, V.value)), t), ue = (t) => {
423
- if (c(t))
432
+ }, E = r(e.textAlign ?? ue(l.value)), Ae = f(() => ({ textAlign: E.value })), U = r(e.border ?? !0), Ee = (t) => (t = String(t), S.value && (t = t.substring(0, S.value)), A.value && (t = d.utils.getCutByteLength(t, A.value)), t), De = (t) => (t = Number(t), B.value && t > B.value && (t = B.value), F.value && t < F.value && (t = F.value), q.value && (t = d.utils.getRound(t, q.value)), t), se = (t) => {
433
+ if (_(t))
424
434
  return l.value === u.checkbox || l.value === u.radio ? !1 : t;
425
435
  try {
426
436
  switch (l.value) {
@@ -430,19 +440,19 @@ const $n = {
430
440
  case u.mask:
431
441
  case u.digit:
432
442
  case u.textarea:
433
- l.value === u.mask && (t = pn(t, w.value ?? "")), l.value === u.digit && (t = fn(t)), t = Se(t);
443
+ l.value === u.mask && (t = gn(t, w.value ?? "")), l.value === u.digit && (t = bn(t)), t = Ee(t);
434
444
  break;
435
445
  case u.number:
436
- l.value === u.number && (t = Ee(t));
446
+ l.value === u.number && (t = De(t));
437
447
  break;
438
448
  case u.date:
439
- t && (t = d.utils.getDateWithFormat(t, ae.DateFormat["yyyy-MM-dd"]));
449
+ t && (t = d.utils.getDateWithFormat(t, me.DateFormat["yyyy-MM-dd"]));
440
450
  break;
441
451
  case u.month:
442
- t && (t = d.utils.getDateWithFormat(t, ae.YearMonthFormat["yyyy-MM"]));
452
+ t && (t = d.utils.getDateWithFormat(t, me.YearMonthFormat["yyyy-MM"]));
443
453
  break;
444
454
  case u.time:
445
- t && (t = d.utils.getDateWithFormat(t, ae.TimeFormat["HH:mm:ss"]));
455
+ t && (t = d.utils.getDateWithFormat(t, me.TimeFormat["HH:mm:ss"]));
446
456
  break;
447
457
  case u.checkbox:
448
458
  case u.radio:
@@ -454,20 +464,39 @@ const $n = {
454
464
  console.warn("[HInput] Failed to format value", t, i);
455
465
  }
456
466
  return t;
457
- }, s = r(ue(e.modelValue)), De = g(() => s.value), T = r(null), H = r(e.visible), O = r(e.title ?? ""), W = r(e.nullText ?? ""), k = r(e.editMode), Ve = g(() => k.value === x.disable), se = g(() => k.value === x.readonly), qe = g(() => U.value && !se.value ? "hison-border" : ""), Re = g(() => k.value !== x.editable ? [`hison-input-${k.value}`, `hison-input-${te.value}-${k.value}`] : []), j = r(e.required), Ke = g(() => j.value ? ["hison-input-required", `hison-input-${te.value}-required`] : []), z = r(e.placeholder ?? ""), Y = r(e.fontBold), Ue = g(() => {
458
- if (Y.value) return "hison-font-bold";
459
- }), Q = r(e.fontItalic), He = g(() => {
460
- if (Q.value) return "hison-font-italic";
461
- }), X = r(e.fontThruline), Oe = g(() => {
462
- if (X.value) return "hison-font-thruline";
463
- }), J = r(e.fontUnderline), We = g(() => {
464
- if (J.value) return "hison-font-underline";
465
- }), je = g(() => H.value ? "" : "hison-display-none"), le = r(!1), N = r(!1), Z = r(
467
+ }, s = r(se(e.modelValue)), Ve = f(() => s.value), C = r(null), H = r(e.visible), O = r(e.title ?? ""), W = r(e.nullText ?? ""), k = r(e.editMode), qe = f(() => k.value === c.disable), le = f(() => k.value === c.readonly), Re = f(() => U.value && !le.value ? "hison-border" : ""), Ke = f(() => k.value !== c.editable ? [`hison-input-${k.value}`, `hison-input-${ie.value}-${k.value}`] : []), j = r(e.required), Ue = f(() => j.value ? ["hison-input-required", `hison-input-${ie.value}-required`] : []), z = r(e.placeholder ?? ""), Y = r(e.placeholderColor ?? "primary"), He = (t) => {
468
+ if (!t) return null;
469
+ const i = t.trim();
470
+ return [
471
+ "primary",
472
+ "muted",
473
+ "info",
474
+ "success",
475
+ "danger",
476
+ "warning",
477
+ "custom1",
478
+ "custom2",
479
+ "custom3",
480
+ "custom4",
481
+ "custom5"
482
+ ].includes(i) ? `var(--hison-${i}-emptyTextColor)` : i;
483
+ }, Oe = f(() => {
484
+ const t = He(Y.value);
485
+ return t ? { "--hison-input-placeholder-color": t } : {};
486
+ }), Q = r(e.fontBold), We = f(() => {
487
+ if (Q.value) return "hison-font-bold";
488
+ }), X = r(e.fontItalic), je = f(() => {
489
+ if (X.value) return "hison-font-italic";
490
+ }), J = r(e.fontThruline), ze = f(() => {
491
+ if (J.value) return "hison-font-thruline";
492
+ }), Z = r(e.fontUnderline), Ye = f(() => {
493
+ if (Z.value) return "hison-font-underline";
494
+ }), Qe = f(() => H.value ? "" : "hison-display-none"), re = r(!1), h = r(!1), G = r(
466
495
  e.tabIndex !== null && e.tabIndex !== "" ? Number(e.tabIndex) : null
467
- ), ve = de("registerToInputGroup", null), m = de("notifyInputGroupStatus", null), q = de("radioMembershipChanged", null), re = (t) => {
496
+ ), pe = ae("registerToInputGroup", null), m = ae("notifyInputGroupStatus", null), R = ae("radioMembershipChanged", null), de = (t) => {
468
497
  if (l.value === u.checkbox || l.value === u.radio)
469
498
  return t ? e.checkedText : e.uncheckedText;
470
- if (c(t) || t === "") return W.value ?? "";
499
+ if (_(t) || t === "") return W.value ?? "";
471
500
  if (e.inputTextdHandler)
472
501
  return e.inputTextdHandler(t);
473
502
  let i = String(t);
@@ -489,53 +518,53 @@ const $n = {
489
518
  i = d.utils.getDateWithFormat(t, w.value ?? d.getTimeFormat());
490
519
  break;
491
520
  case u.select:
492
- const R = $.value, Me = R.selectedIndex;
493
- i = Me >= 0 ? R.options[Me].text : "";
521
+ const D = $.value, ge = D.selectedIndex;
522
+ i = ge >= 0 ? D.options[ge].text : "";
494
523
  break;
495
524
  }
496
- } catch (R) {
497
- console.warn("[HInput] Failed to format value", t, R), i = "";
525
+ } catch (D) {
526
+ console.warn("[HInput] Failed to format value", t, D), i = "";
498
527
  }
499
528
  return i;
500
- }, G = r(""), ze = (t) => {
501
- k.value === x.editable && (le.value = !0), ge(() => {
529
+ }, x = r(""), Xe = (t) => {
530
+ k.value === c.editable && (re.value = !0), be(() => {
502
531
  var i;
503
532
  (i = $.value) == null || i.focus();
504
533
  });
505
- }, Ye = (t) => {
506
- let i = $.value.value;
507
- (l.value === u.mask || l.value === u.digit || (A.value || S.value) && (l.value === u.text || l.value === u.email || l.value === u.password || l.value === u.textarea)) && (i = ue(i), $.value.value = i), s.value = i, N.value = !0, m == null || m(p, s.value), n("input", t, C.value, s.value), n("update:modelValue", s.value);
508
- }, Qe = (t) => {
509
- T.value = s.value, n("focus", t, C.value);
510
- }, Xe = (t) => {
511
- T.value !== s.value && (v(s.value, !0, !0), N.value = !0, m == null || m(p, s.value)), le.value = !1, n("blur", t, C.value);
512
- }, v = (t, i = !0, R = !1) => {
513
- s.value = i ? ue(t) : t, G.value = re(s.value), l.value === u.checkbox || l.value === u.radio ? $.value.checked = !!s.value : $.value.value = s.value, R && n("change", T.value, s.value, C.value);
514
534
  }, Je = (t) => {
515
- const i = t.target;
516
- v(i.value, !1, !0), N.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
535
+ let i = $.value.value;
536
+ (l.value === u.mask || l.value === u.digit || (S.value || A.value) && (l.value === u.text || l.value === u.email || l.value === u.password || l.value === u.textarea)) && (i = se(i), $.value.value = i), s.value = i, h.value = !0, m == null || m(p, s.value), n("input", t, T.value, s.value), n("update:modelValue", s.value);
517
537
  }, Ze = (t) => {
518
- const i = t.target;
519
- v(i.value, !1, !0), N.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
538
+ C.value = s.value, n("focus", t, T.value);
520
539
  }, Ge = (t) => {
521
- const i = t.target;
522
- v(i.checked, !1, !0), N.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
540
+ C.value !== s.value && (v(s.value, !0, !0), h.value = !0, m == null || m(p, s.value)), re.value = !1, n("blur", t, T.value);
541
+ }, v = (t, i = !0, D = !1) => {
542
+ s.value = i ? se(t) : t, x.value = de(s.value), l.value === u.checkbox || l.value === u.radio ? $.value.checked = !!s.value : $.value.value = s.value, D && n("change", C.value, s.value, T.value);
523
543
  }, xe = (t) => {
524
544
  const i = t.target;
525
- v(i.checked, !1, !0), N.value = !0, m && o.value ? m(o.value, i.checked ? p : null) : m == null || m(p, s.value), n("update:modelValue", s.value);
545
+ v(i.value, !1, !0), h.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
526
546
  }, ce = (t) => {
527
547
  const i = t.target;
528
- v(i.value, !1, !0), N.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
548
+ v(i.value, !1, !0), h.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
529
549
  }, _e = (t) => {
530
- if (se.value && (t.code === "Space" || t.code === "Enter")) {
550
+ const i = t.target;
551
+ v(i.checked, !1, !0), h.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
552
+ }, en = (t) => {
553
+ const i = t.target;
554
+ v(i.checked, !1, !0), h.value = !0, m && o.value ? m(o.value, i.checked ? p : null) : m == null || m(p, s.value), n("update:modelValue", s.value);
555
+ }, nn = (t) => {
556
+ const i = t.target;
557
+ v(i.value, !1, !0), h.value = !0, m == null || m(p, s.value), n("update:modelValue", s.value);
558
+ }, on = (t) => {
559
+ if (le.value && (t.code === "Space" || t.code === "Enter")) {
531
560
  t.preventDefault(), t.stopPropagation();
532
561
  return;
533
562
  }
534
- n("keydown", t, C.value);
535
- }, pe = () => {
536
- M.component.inputList[p] && M.component.inputList[p].isHisonvueComponent && console.warn(`[Hisonvue] The input ID is at risk of being duplicated. ${p}`), Mn(ne, () => {
537
- fe(), ge(pe);
538
- }), $.value && (oe(), L.value && Tn(L.value), l.value !== u.checkbox && l.value !== u.radio && l.value !== u.range && l.value !== u.color && kn($.value), v(s.value, !1), C.value = {
563
+ n("keydown", t, T.value);
564
+ }, fe = () => {
565
+ g.component.inputList[p] && g.component.inputList[p].isHisonvueComponent && console.warn(`[Hisonvue] The input ID is at risk of being duplicated. ${p}`), yn(oe, () => {
566
+ Me(), be(fe);
567
+ }), $.value && (te(), L.value && wn(L.value), l.value !== u.checkbox && l.value !== u.radio && l.value !== u.range && l.value !== u.color && Nn($.value), v(s.value, !1), T.value = {
539
568
  isHisonvueComponent: !0,
540
569
  getId: () => p,
541
570
  getType: () => "input",
@@ -543,12 +572,12 @@ const $n = {
543
572
  setName: (t) => {
544
573
  if (t === o.value) return;
545
574
  const i = o.value;
546
- o.value = t, l.value === u.radio && (q == null || q(p, i, t, !!s.value));
575
+ o.value = t, l.value === u.radio && (R == null || R(p, i, t, !!s.value));
547
576
  },
548
- getText: () => G.value,
577
+ getText: () => x.value,
549
578
  getValue: () => s.value,
550
579
  setValue: (t) => {
551
- T.value = s.value, s.value = t, v(s.value);
580
+ C.value = s.value, s.value = t, v(s.value);
552
581
  },
553
582
  getTitle: () => O.value,
554
583
  setTitle: (t) => {
@@ -560,15 +589,15 @@ const $n = {
560
589
  },
561
590
  getInputType: () => l.value,
562
591
  setInputType: (t) => {
563
- l.value = u[t], T.value = s.value, v(s.value), e.textAlign == null && (E.value = ie(l.value));
592
+ l.value = u[t], C.value = s.value, v(s.value), e.textAlign == null && (E.value = ue(l.value));
564
593
  },
565
594
  getFormat: () => w.value ?? "",
566
595
  setFormat: (t) => {
567
- w.value = t, T.value = s.value, v(s.value);
596
+ w.value = t, C.value = s.value, v(s.value);
568
597
  },
569
598
  getNullText: () => W.value,
570
599
  setNullText: (t) => {
571
- W.value = t, (c(s.value) || s.value === "") && (G.value = re(s.value));
600
+ W.value = t, (_(s.value) || s.value === "") && (x.value = de(s.value));
572
601
  },
573
602
  getEditMode: () => k.value,
574
603
  setEditMode: (t) => {
@@ -576,23 +605,23 @@ const $n = {
576
605
  },
577
606
  getMaxNumber: () => B.value,
578
607
  setMaxNumber: (t) => {
579
- d.utils.isNumeric(t) && (B.value = t, T.value = s.value, l.value === u.number && v(s.value));
608
+ d.utils.isNumeric(t) && (B.value = t, C.value = s.value, l.value === u.number && v(s.value));
580
609
  },
581
610
  getMinNumber: () => F.value,
582
611
  setMinNumber: (t) => {
583
- d.utils.isNumeric(t) && (F.value = t, T.value = s.value, l.value === u.number && v(s.value));
612
+ d.utils.isNumeric(t) && (F.value = t, C.value = s.value, l.value === u.number && v(s.value));
584
613
  },
585
- getRoundNumber: () => V.value,
614
+ getRoundNumber: () => q.value,
586
615
  setRoundNumber: (t) => {
587
- !d.utils.isPositiveInteger(t) && !d.utils.isNegativeInteger(t) && t !== 0 || (V.value = t, T.value = s.value, l.value === u.number && v(s.value));
616
+ !d.utils.isPositiveInteger(t) && !d.utils.isNegativeInteger(t) && t !== 0 || (q.value = t, C.value = s.value, l.value === u.number && v(s.value));
588
617
  },
589
- getMaxLength: () => A.value,
618
+ getMaxLength: () => S.value,
590
619
  setMaxLength: (t) => {
591
- d.utils.isPositiveInteger(t) && (A.value = t), T.value = s.value, v(s.value);
620
+ d.utils.isPositiveInteger(t) && (S.value = t), C.value = s.value, v(s.value);
592
621
  },
593
- getMaxByte: () => S.value,
622
+ getMaxByte: () => A.value,
594
623
  setMaxByte: (t) => {
595
- d.utils.isPositiveInteger(t) && (S.value = t), T.value = s.value, v(s.value);
624
+ d.utils.isPositiveInteger(t) && (A.value = t), C.value = s.value, v(s.value);
596
625
  },
597
626
  getRequired: () => j.value,
598
627
  setRequired: (t) => {
@@ -602,59 +631,64 @@ const $n = {
602
631
  setPlaceholder: (t) => {
603
632
  z.value = t;
604
633
  },
605
- isFontBold: () => Y.value,
634
+ getPlaceholderColor: () => Y.value,
635
+ setPlaceholderColor: (t) => {
636
+ const i = (t ?? "").trim();
637
+ Y.value = i.length > 0 ? i : "primary";
638
+ },
639
+ isFontBold: () => Q.value,
606
640
  setFontBold: (t) => {
607
- Y.value = t;
641
+ Q.value = t;
608
642
  },
609
- isFontItalic: () => Q.value,
643
+ isFontItalic: () => X.value,
610
644
  setFontItalic: (t) => {
611
- Q.value = t;
645
+ X.value = t;
612
646
  },
613
- isFontThruline: () => X.value,
647
+ isFontThruline: () => J.value,
614
648
  setFontThruline: (t) => {
615
- X.value = t;
649
+ J.value = t;
616
650
  },
617
- isFontUnderline: () => J.value,
651
+ isFontUnderline: () => Z.value,
618
652
  setFontUnderline: (t) => {
619
- J.value = t;
653
+ Z.value = t;
620
654
  },
621
655
  getTextAlign: () => E.value,
622
656
  setTextAlign: (t) => {
623
- (t === h.left || t === h.center || t === h.right) && (E.value = t);
657
+ (t === N.left || t === N.center || t === N.right) && (E.value = t);
624
658
  },
625
659
  isBorder: () => U.value,
626
660
  setBorder: (t) => {
627
661
  U.value = t;
628
662
  },
629
- isModified: () => N.value,
663
+ isModified: () => h.value,
630
664
  setModified: (t) => {
631
- N.value = t;
665
+ h.value = t;
632
666
  },
633
667
  getToggleStyle: () => K.value,
634
668
  setToggleStyle: (t) => {
635
669
  (t === "default" || t === "switch") && (K.value = t);
636
670
  },
637
- getTabIndex: () => Z.value,
671
+ getTabIndex: () => G.value,
638
672
  setTabIndex: (t) => {
639
- Z.value = t != null ? Number(t) : null;
673
+ G.value = t != null ? Number(t) : null;
640
674
  },
641
675
  focus: () => {
642
676
  var t;
643
677
  L.value ? L.value.focus() : (t = $.value) == null || t.focus();
644
678
  },
645
- reload: () => gn(ne)
646
- }, M.component.inputList[p] = C.value, ve && ve(p), n("mounted", C.value));
647
- }, fe = () => {
648
- bn(ne), delete M.component.inputList[p], l.value !== u.checkbox && l.value !== u.radio && l.value !== u.range && l.value !== u.color && wn($.value), L.value && Cn(L.value);
679
+ reload: () => $n(oe)
680
+ }, g.component.inputList[p] = T.value, pe && pe(p), n("mounted", T.value));
681
+ }, Me = () => {
682
+ Cn(oe), delete g.component.inputList[p], l.value !== u.checkbox && l.value !== u.radio && l.value !== u.range && l.value !== u.color && Ln($.value), L.value && hn(L.value);
649
683
  };
650
- return nn(pe), on(fe), a(me, (t) => {
651
- oe(), n("responsive-change", t);
684
+ return un(fe), sn(Me), a(ve, (t) => {
685
+ te(), n("responsive-change", t);
652
686
  }), a(() => e.modelValue, (t) => {
653
687
  v(t, !1);
654
688
  }), a(() => e.name, (t) => {
655
689
  if (t && t !== o.value) {
656
690
  const i = o.value;
657
- o.value = t, l.value === u.radio && (q == null || q(p, i, t, !!s.value));
691
+ o.value = t, l.value === u.radio && (R == null || R(p, i, t, !!s.value));
658
692
  }
659
693
  }), a(() => e.visible, (t) => {
660
694
  const i = !!t;
@@ -664,9 +698,9 @@ const $n = {
664
698
  i !== O.value && (O.value = i);
665
699
  }), a(() => e.nullText, (t) => {
666
700
  const i = t ?? "";
667
- i !== W.value && (W.value = i, (c(s.value) || s.value === "") && (G.value = re(s.value)));
701
+ i !== W.value && (W.value = i, (_(s.value) || s.value === "") && (x.value = de(s.value)));
668
702
  }), a(() => e.inputType, (t) => {
669
- t && t !== l.value && (l.value = t, e.textAlign == null && (E.value = ie(l.value)), v(s.value));
703
+ t && t !== l.value && (l.value = t, e.textAlign == null && (E.value = ue(l.value)), v(s.value));
670
704
  }), a(() => e.format, (t) => {
671
705
  const i = t ?? null;
672
706
  i !== w.value && (w.value = i, v(s.value));
@@ -678,93 +712,97 @@ const $n = {
678
712
  i !== F.value && (F.value = i, l.value === u.number && v(s.value));
679
713
  }), a(() => e.roundNumber, (t) => {
680
714
  const i = d.utils.isInteger(t) || d.utils.isNegativeInteger(t) || t === "0" ? Number(t) : null;
681
- i !== V.value && (V.value = i, l.value === u.number && v(s.value));
715
+ i !== q.value && (q.value = i, l.value === u.number && v(s.value));
682
716
  }), a(() => e.maxLength, (t) => {
683
717
  const i = d.utils.isPositiveInteger(t) ? Number(t) : null;
684
- i !== A.value && (A.value = i, v(s.value));
718
+ i !== S.value && (S.value = i, v(s.value));
685
719
  }), a(() => e.maxByte, (t) => {
686
720
  const i = d.utils.isPositiveInteger(t) ? Number(t) : null;
687
- i !== S.value && (S.value = i, v(s.value));
721
+ i !== A.value && (A.value = i, v(s.value));
688
722
  }), a(() => e.textAlign, (t) => {
689
- t && t !== E.value && (t === h.left || t === h.center || t === h.right) && (E.value = t);
723
+ t && t !== E.value && (t === N.left || t === N.center || t === N.right) && (E.value = t);
690
724
  }), a(() => e.border, (t) => {
691
725
  const i = !!t;
692
726
  i !== U.value && (U.value = i);
693
727
  }), a(() => e.placeholder, (t) => {
694
728
  const i = t ?? "";
695
729
  i !== z.value && (z.value = i);
730
+ }), a(() => e.placeholderColor, (t) => {
731
+ const i = t ?? "primary";
732
+ i !== Y.value && (Y.value = i);
696
733
  }), a(() => e.required, (t) => {
697
734
  const i = !!t;
698
735
  i !== j.value && (j.value = i);
699
736
  }), a(() => e.fontBold, (t) => {
700
737
  const i = !!t;
701
- i !== Y.value && (Y.value = i);
738
+ i !== Q.value && (Q.value = i);
702
739
  }), a(() => e.fontItalic, (t) => {
703
740
  const i = !!t;
704
- i !== Q.value && (Q.value = i);
741
+ i !== X.value && (X.value = i);
705
742
  }), a(() => e.fontThruline, (t) => {
706
743
  const i = !!t;
707
- i !== X.value && (X.value = i);
744
+ i !== J.value && (J.value = i);
708
745
  }), a(() => e.fontUnderline, (t) => {
709
746
  const i = !!t;
710
- i !== J.value && (J.value = i);
747
+ i !== Z.value && (Z.value = i);
711
748
  }), a(() => e.editMode, (t) => {
712
749
  t && t !== k.value && (k.value = t);
713
750
  }), a(() => e.tabIndex, (t) => {
714
751
  const i = t === null || t === "" ? null : Number(t);
715
- i !== Z.value && (Z.value = i);
752
+ i !== G.value && (G.value = i);
716
753
  }), a(() => e.class, () => {
717
- oe();
754
+ te();
718
755
  }), a(() => e.toggleStyle, (t) => {
719
756
  const i = t ?? "default";
720
757
  i !== K.value && (i === "default" || i === "switch") && (K.value = i);
721
758
  }), {
722
759
  inputRef: $,
723
760
  inputTextRef: L,
724
- inputMethods: g(() => tn(C)),
725
- inputValue: De,
726
- editing: le,
761
+ inputMethods: f(() => ln(T)),
762
+ inputValue: Ve,
763
+ editing: re,
727
764
  props: e,
728
765
  id: p,
729
766
  nameAttr: Ie,
730
- responsiveClassList: D,
731
- visibleClass: je,
732
- editModeClassList: Re,
733
- requiredClassList: Ke,
734
- fontBoldClass: Ue,
735
- fontItalicClass: He,
736
- fontThrulineClass: Oe,
737
- fontUnderlineClass: We,
767
+ responsiveClassList: V,
768
+ visibleClass: Qe,
769
+ editModeClassList: Ke,
770
+ requiredClassList: Ue,
771
+ fontBoldClass: We,
772
+ fontItalicClass: je,
773
+ fontThrulineClass: ze,
774
+ fontUnderlineClass: Ye,
738
775
  textAlignStyle: Ae,
739
- borderClass: qe,
740
- disable: Ve,
741
- readonly: se,
776
+ placeholderColorStyle: Oe,
777
+ borderClass: Re,
778
+ disable: qe,
779
+ readonly: le,
742
780
  inputType: l,
743
- inputExpressionType: te,
744
- inputAttrType: Pe,
781
+ inputExpressionType: ie,
782
+ inputAttrType: Se,
745
783
  title: O,
746
784
  placeholder: z,
747
785
  maxNumber: B,
748
786
  minNumber: F,
749
- spanText: G,
787
+ spanText: x,
750
788
  toggleStyle: K,
751
- tabIndex: Z,
752
- onInput: Ye,
753
- onTextInputFocus: ze,
754
- onFocus: Qe,
755
- onBlur: Xe,
756
- onRangeChange: Je,
757
- onColorChange: Ze,
758
- onCheckboxChange: Ge,
759
- onRadioChange: xe,
760
- onSelectChange: ce,
761
- onKeydown: _e
789
+ tabIndex: G,
790
+ onInput: Je,
791
+ onTextInputFocus: Xe,
792
+ onFocus: Ze,
793
+ onBlur: Ge,
794
+ onRangeChange: xe,
795
+ onColorChange: ce,
796
+ onCheckboxChange: _e,
797
+ onRadioChange: en,
798
+ onSelectChange: nn,
799
+ onKeydown: on
762
800
  };
763
801
  }
764
- }), hn = ["id", "name", "value", "disabled", "readonly", "title", "tabindex"], Ln = ["id", "name", "value", "disabled", "readonly", "checked", "title", "tabindex"], Bn = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], Fn = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], In = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], Pn = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], An = ["id", "name", "value", "disabled", "readonly", "title", "tabindex"], Sn = ["value"], En = ["id", "name", "value", "disabled", "readonly", "placeholder", "title", "maxlength", "tabindex"], Dn = ["id", "name", "value", "disabled", "readonly", "title", "placeholder", "tabindex"], Vn = ["id", "name", "value", "disabled", "readonly", "type", "title", "placeholder", "max", "min", "tabindex"];
765
- function qn(e, n, $, L, C, p) {
802
+ }), Fn = ["id", "name", "value", "disabled", "readonly", "title", "tabindex"], Pn = ["id", "name", "value", "disabled", "readonly", "checked", "title", "tabindex"], In = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], Sn = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], An = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], En = ["id", "name", "disabled", "readonly", "checked", "title", "tabindex"], Dn = ["id", "name", "value", "disabled", "readonly", "title", "tabindex"], Vn = ["value"], qn = ["id", "name", "value", "disabled", "readonly", "placeholder", "title", "maxlength", "tabindex"], Rn = ["id", "name", "value", "disabled", "readonly", "title", "placeholder", "tabindex"], Kn = ["id", "name", "value", "disabled", "readonly", "type", "title", "placeholder", "max", "min", "tabindex"];
803
+ function Un(e, n, $, L, T, p) {
766
804
  return y(), b("div", {
767
- class: f([
805
+ class: M([
768
806
  "hison-wrapper",
769
807
  "hison-s-input-margin-adjustment",
770
808
  ...e.responsiveClassList,
@@ -773,18 +811,18 @@ function qn(e, n, $, L, C, p) {
773
811
  }, [
774
812
  e.inputType === "range" ? (y(), b("div", {
775
813
  key: 0,
776
- class: f([
814
+ class: M([
777
815
  "hison-input",
778
816
  "hison-input-range-div"
779
817
  ]),
780
- style: I([e.textAlignStyle, e.props.style])
818
+ style: P([e.textAlignStyle, e.props.style])
781
819
  }, [
782
- P("input", {
820
+ I("input", {
783
821
  ref: "inputRef",
784
822
  id: `${e.id}`,
785
823
  name: `${e.nameAttr}`,
786
824
  type: "range",
787
- class: f([
825
+ class: M([
788
826
  `hison-input-${e.inputType}`,
789
827
  ...e.editModeClassList,
790
828
  ...e.requiredClassList
@@ -816,21 +854,21 @@ function qn(e, n, $, L, C, p) {
816
854
  onTouchmove: n[19] || (n[19] = (o) => e.$emit("touchmove", o, e.inputMethods)),
817
855
  onTouchcancel: n[20] || (n[20] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
818
856
  onContextmenu: n[21] || (n[21] = (o) => e.$emit("contextmenu", o, e.inputMethods))
819
- }, null, 42, hn)
857
+ }, null, 42, Fn)
820
858
  ], 4)) : e.inputType === "color" ? (y(), b("div", {
821
859
  key: 1,
822
- class: f([
860
+ class: M([
823
861
  "hison-input",
824
862
  "hison-input-color-div"
825
863
  ]),
826
- style: I([e.textAlignStyle, e.props.style])
864
+ style: P([e.textAlignStyle, e.props.style])
827
865
  }, [
828
- P("input", {
866
+ I("input", {
829
867
  ref: "inputRef",
830
868
  id: `${e.id}`,
831
869
  name: `${e.nameAttr}`,
832
870
  type: "color",
833
- class: f([
871
+ class: M([
834
872
  `hison-input-${e.inputType}`,
835
873
  ...e.editModeClassList,
836
874
  ...e.requiredClassList
@@ -863,14 +901,14 @@ function qn(e, n, $, L, C, p) {
863
901
  onTouchmove: n[41] || (n[41] = (o) => e.$emit("touchmove", o, e.inputMethods)),
864
902
  onTouchcancel: n[42] || (n[42] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
865
903
  onContextmenu: n[43] || (n[43] = (o) => e.$emit("contextmenu", o, e.inputMethods))
866
- }, null, 42, Ln)
904
+ }, null, 42, Pn)
867
905
  ], 4)) : e.inputType === "checkbox" ? (y(), b("div", {
868
906
  key: 2,
869
- class: f([
907
+ class: M([
870
908
  "hison-input",
871
909
  "hison-input-checkbox-div"
872
910
  ]),
873
- style: I([e.textAlignStyle, e.props.style])
911
+ style: P([e.textAlignStyle, e.props.style])
874
912
  }, [
875
913
  e.toggleStyle !== "switch" ? (y(), b("input", {
876
914
  key: 0,
@@ -878,7 +916,7 @@ function qn(e, n, $, L, C, p) {
878
916
  id: `${e.id}`,
879
917
  name: `${e.nameAttr}`,
880
918
  type: "checkbox",
881
- class: f([
919
+ class: M([
882
920
  `hison-input-${e.inputType}`,
883
921
  ...e.editModeClassList,
884
922
  ...e.requiredClassList
@@ -910,11 +948,11 @@ function qn(e, n, $, L, C, p) {
910
948
  onTouchmove: n[63] || (n[63] = (o) => e.$emit("touchmove", o, e.inputMethods)),
911
949
  onTouchcancel: n[64] || (n[64] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
912
950
  onContextmenu: n[65] || (n[65] = (o) => e.$emit("contextmenu", o, e.inputMethods))
913
- }, null, 42, Bn)) : (y(), b("label", {
951
+ }, null, 42, In)) : (y(), b("label", {
914
952
  key: 1,
915
- class: f(["hison-input-checkbox-switch", ...e.editModeClassList])
953
+ class: M(["hison-input-checkbox-switch", ...e.editModeClassList])
916
954
  }, [
917
- P("input", {
955
+ I("input", {
918
956
  ref: "inputRef",
919
957
  id: `${e.id}`,
920
958
  name: `${e.nameAttr}`,
@@ -947,9 +985,9 @@ function qn(e, n, $, L, C, p) {
947
985
  onTouchmove: n[85] || (n[85] = (o) => e.$emit("touchmove", o, e.inputMethods)),
948
986
  onTouchcancel: n[86] || (n[86] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
949
987
  onContextmenu: n[87] || (n[87] = (o) => e.$emit("contextmenu", o, e.inputMethods))
950
- }, null, 40, Fn),
951
- P("span", {
952
- class: f(["hison-switch-visual", [
988
+ }, null, 40, Sn),
989
+ I("span", {
990
+ class: M(["hison-switch-visual", [
953
991
  ...e.editModeClassList,
954
992
  ...e.requiredClassList
955
993
  ]]),
@@ -958,8 +996,8 @@ function qn(e, n, $, L, C, p) {
958
996
  ], 2))
959
997
  ], 4)) : e.inputType === "radio" ? (y(), b("div", {
960
998
  key: 3,
961
- class: f(["hison-input", "hison-input-radio-div"]),
962
- style: I([e.textAlignStyle, e.props.style])
999
+ class: M(["hison-input", "hison-input-radio-div"]),
1000
+ style: P([e.textAlignStyle, e.props.style])
963
1001
  }, [
964
1002
  e.toggleStyle !== "switch" ? (y(), b("input", {
965
1003
  key: 0,
@@ -967,7 +1005,7 @@ function qn(e, n, $, L, C, p) {
967
1005
  id: `${e.id}`,
968
1006
  name: `${e.nameAttr}`,
969
1007
  type: "radio",
970
- class: f([
1008
+ class: M([
971
1009
  `hison-input-${e.inputType}`,
972
1010
  "hison-input-radio--default",
973
1011
  ...e.editModeClassList,
@@ -1000,11 +1038,11 @@ function qn(e, n, $, L, C, p) {
1000
1038
  onTouchmove: n[107] || (n[107] = (o) => e.$emit("touchmove", o, e.inputMethods)),
1001
1039
  onTouchcancel: n[108] || (n[108] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
1002
1040
  onContextmenu: n[109] || (n[109] = (o) => e.$emit("contextmenu", o, e.inputMethods))
1003
- }, null, 42, In)) : (y(), b("label", {
1041
+ }, null, 42, An)) : (y(), b("label", {
1004
1042
  key: 1,
1005
- class: f(["hison-input-radio-switch", ...e.editModeClassList])
1043
+ class: M(["hison-input-radio-switch", ...e.editModeClassList])
1006
1044
  }, [
1007
- P("input", {
1045
+ I("input", {
1008
1046
  ref: "inputRef",
1009
1047
  id: `${e.id}`,
1010
1048
  name: `${e.nameAttr}`,
@@ -1037,9 +1075,9 @@ function qn(e, n, $, L, C, p) {
1037
1075
  onTouchmove: n[129] || (n[129] = (o) => e.$emit("touchmove", o, e.inputMethods)),
1038
1076
  onTouchcancel: n[130] || (n[130] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
1039
1077
  onContextmenu: n[131] || (n[131] = (o) => e.$emit("contextmenu", o, e.inputMethods))
1040
- }, null, 40, Pn),
1041
- P("span", {
1042
- class: f(["hison-switch-visual", [
1078
+ }, null, 40, En),
1079
+ I("span", {
1080
+ class: M(["hison-switch-visual", [
1043
1081
  ...e.editModeClassList,
1044
1082
  ...e.requiredClassList
1045
1083
  ]]),
@@ -1051,8 +1089,8 @@ function qn(e, n, $, L, C, p) {
1051
1089
  ref: "inputRef",
1052
1090
  id: `${e.id}`,
1053
1091
  name: `${e.nameAttr}`,
1054
- style: I([e.textAlignStyle, e.props.style]),
1055
- class: f([
1092
+ style: P([e.textAlignStyle, e.placeholderColorStyle, e.props.style]),
1093
+ class: M([
1056
1094
  "hison-input",
1057
1095
  `hison-input-${e.inputType}`,
1058
1096
  ...e.editModeClassList,
@@ -1091,16 +1129,16 @@ function qn(e, n, $, L, C, p) {
1091
1129
  onTouchcancel: n[152] || (n[152] = (o) => e.$emit("touchcancel", o, e.inputMethods)),
1092
1130
  onContextmenu: n[153] || (n[153] = (o) => e.$emit("contextmenu", o, e.inputMethods))
1093
1131
  }, [
1094
- (y(!0), b(be, null, un(e.props.options, (o) => (y(), b("option", {
1132
+ (y(!0), b(ye, null, rn(e.props.options, (o) => (y(), b("option", {
1095
1133
  key: o.value,
1096
1134
  value: o.value
1097
- }, ye(o.text), 9, Sn))), 128))
1098
- ], 46, An)) : e.inputType === "textarea" ? (y(), b("textarea", {
1135
+ }, $e(o.text), 9, Vn))), 128))
1136
+ ], 46, Dn)) : e.inputType === "textarea" ? (y(), b("textarea", {
1099
1137
  key: 5,
1100
1138
  ref: "inputRef",
1101
1139
  id: `${e.id}`,
1102
1140
  name: `${e.nameAttr}`,
1103
- class: f([
1141
+ class: M([
1104
1142
  "hison-input",
1105
1143
  `hison-input-${e.inputType}`,
1106
1144
  ...e.editModeClassList,
@@ -1112,7 +1150,7 @@ function qn(e, n, $, L, C, p) {
1112
1150
  e.borderClass
1113
1151
  ]),
1114
1152
  value: e.inputValue,
1115
- style: I([e.textAlignStyle, e.props.style]),
1153
+ style: P([e.textAlignStyle, e.placeholderColorStyle, e.props.style]),
1116
1154
  disabled: e.disable,
1117
1155
  readonly: e.readonly,
1118
1156
  placeholder: e.placeholder || void 0,
@@ -1122,12 +1160,12 @@ function qn(e, n, $, L, C, p) {
1122
1160
  onInput: n[154] || (n[154] = (...o) => e.onInput && e.onInput(...o)),
1123
1161
  onFocus: n[155] || (n[155] = (...o) => e.onFocus && e.onFocus(...o)),
1124
1162
  onBlur: n[156] || (n[156] = (...o) => e.onBlur && e.onBlur(...o))
1125
- }, ye(e.inputValue), 47, En)) : (y(), b(be, { key: 6 }, [
1126
- $e(P("input", {
1163
+ }, $e(e.inputValue), 47, qn)) : (y(), b(ye, { key: 6 }, [
1164
+ Ce(I("input", {
1127
1165
  ref: "inputTextRef",
1128
1166
  id: `input_text_${e.id}`,
1129
1167
  name: `input_text_${e.nameAttr}`,
1130
- class: f([
1168
+ class: M([
1131
1169
  "hison-input",
1132
1170
  `hison-input-text-${e.inputType}`,
1133
1171
  ...e.editModeClassList,
@@ -1140,7 +1178,7 @@ function qn(e, n, $, L, C, p) {
1140
1178
  ]),
1141
1179
  type: "text",
1142
1180
  value: e.spanText,
1143
- style: I([e.textAlignStyle, e.props.style]),
1181
+ style: P([e.textAlignStyle, e.placeholderColorStyle, e.props.style]),
1144
1182
  disabled: e.disable,
1145
1183
  readonly: e.readonly,
1146
1184
  title: e.title || void 0,
@@ -1165,21 +1203,21 @@ function qn(e, n, $, L, C, p) {
1165
1203
  onTouchend: n[173] || (n[173] = (o) => e.$emit("touchend", o, e.inputMethods)),
1166
1204
  onTouchmove: n[174] || (n[174] = (o) => e.$emit("touchmove", o, e.inputMethods)),
1167
1205
  onTouchcancel: n[175] || (n[175] = (o) => e.$emit("touchcancel", o, e.inputMethods))
1168
- }, null, 46, Dn), [
1206
+ }, null, 46, Rn), [
1169
1207
  [Te, !e.editing]
1170
1208
  ]),
1171
- $e(P("input", {
1209
+ Ce(I("input", {
1172
1210
  ref: "inputRef",
1173
1211
  id: `${e.id}`,
1174
1212
  name: `${e.nameAttr}`,
1175
- class: f([
1213
+ class: M([
1176
1214
  "hison-input",
1177
1215
  `hison-input-${e.inputType}`,
1178
1216
  ...e.editModeClassList,
1179
1217
  e.borderClass
1180
1218
  ]),
1181
1219
  value: e.inputValue,
1182
- style: I([e.textAlignStyle, e.props.style]),
1220
+ style: P([e.textAlignStyle, e.placeholderColorStyle, e.props.style]),
1183
1221
  disabled: e.disable,
1184
1222
  readonly: e.readonly,
1185
1223
  type: e.inputType,
@@ -1205,13 +1243,13 @@ function qn(e, n, $, L, C, p) {
1205
1243
  onPaste: n[190] || (n[190] = (o) => e.$emit("paste", o, e.inputMethods)),
1206
1244
  onWheel: n[191] || (n[191] = (o) => e.$emit("wheel", o, e.inputMethods)),
1207
1245
  onContextmenu: n[192] || (n[192] = (o) => e.$emit("contextmenu", o, e.inputMethods))
1208
- }, null, 46, Vn), [
1246
+ }, null, 46, Kn), [
1209
1247
  [Te, e.editing]
1210
1248
  ])
1211
1249
  ], 64))
1212
1250
  ], 2);
1213
1251
  }
1214
- const Hn = /* @__PURE__ */ yn(Nn, [["render", qn]]);
1252
+ const jn = /* @__PURE__ */ Tn(Bn, [["render", Un], ["__scopeId", "data-v-f3c99304"]]);
1215
1253
  export {
1216
- Hn as default
1254
+ jn as default
1217
1255
  };