amelia-booking-ui 0.0.460 → 0.0.461

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.
@@ -38499,14 +38499,15 @@ const Ol = () => {
38499
38499
  infoType: { default: "default" },
38500
38500
  infoText: {},
38501
38501
  staticLabel: { type: Boolean, default: !1 },
38502
- warning: { type: Boolean, default: !1 }
38502
+ warning: { type: Boolean, default: !1 },
38503
+ forceHasValue: { type: Boolean, default: !1 }
38503
38504
  },
38504
38505
  emits: ["translate"],
38505
38506
  setup(t, { expose: e, emit: n }) {
38506
38507
  Wn((q) => ({
38507
- "47b96e1f": q.labelBackground
38508
+ a6a485d8: q.labelBackground
38508
38509
  }));
38509
- const l = ye("$t", (q) => q), { isMobile: r } = Ol(), o = t, a = n, s = E(null), i = E(!1), c = E(!1), u = E(!1), h = E(!1), v = E(!1);
38510
+ const l = ye("$t", (q) => q), { isMobile: r } = Ol(), o = t, a = n, s = E(null), i = E(o.forceHasValue), c = E(!1), u = E(!1), h = E(!1), v = E(!1);
38510
38511
  let m = null, w = null, y = null;
38511
38512
  e1(async () => {
38512
38513
  const q = s.value?.querySelector(".el-input__inner");
@@ -38528,6 +38529,8 @@ const Ol = () => {
38528
38529
  });
38529
38530
  const b = (q) => {
38530
38531
  const J = () => {
38532
+ if (o.forceHasValue)
38533
+ return i.value = !0;
38531
38534
  i.value = q.value !== "";
38532
38535
  };
38533
38536
  J(), q.addEventListener("input", J), q.addEventListener("blur", J);
@@ -38608,6 +38611,8 @@ const Ol = () => {
38608
38611
  }, O = () => {
38609
38612
  Se(() => {
38610
38613
  const q = s.value?.querySelector(".el-input__inner"), J = s.value?.querySelector(".el-textarea__inner"), B = s.value?.querySelector(".el-select");
38614
+ if (o.forceHasValue)
38615
+ return i.value = !0;
38611
38616
  q ? i.value = q.value !== "" : J ? i.value = J.value !== "" : B && M();
38612
38617
  });
38613
38618
  }, P = () => {
@@ -15,6 +15,7 @@ export interface FormItemProps {
15
15
  infoText?: string;
16
16
  staticLabel?: boolean;
17
17
  warning?: boolean;
18
+ forceHasValue?: boolean;
18
19
  }
19
20
  declare function __VLS_template(): {
20
21
  attrs: Partial<{}>;
@@ -41,6 +42,7 @@ declare const __VLS_component: import('vue').DefineComponent<FormItemProps, {
41
42
  showInfo: boolean;
42
43
  infoType: "default" | "success" | "warning" | "info" | "error";
43
44
  staticLabel: boolean;
45
+ forceHasValue: boolean;
44
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
45
47
  formItem: HTMLDivElement;
46
48
  }, HTMLDivElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amelia-booking-ui",
3
- "version": "0.0.460",
3
+ "version": "0.0.461",
4
4
  "description": "A Vue 3 component library for Amelia Booking Plugin.",
5
5
  "type": "module",
6
6
  "repository": {