amelia-booking-ui 0.0.420 → 0.0.421

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.
@@ -1,4 +1,4 @@
1
- import { _ as s, a as A, b as e, c as o, d as t, e as n, A as r, f as u, g as i, h as l, i as p, j as c, k as d, l as S, m as b, n as I, o as B, p as T, q as g, r as k, t as h, u as D, v as M, x as w, y as C, z as P, B as G, C as v, D as x, E as F, F as O, G as U, I as E, aa as L, J as R, K as f, L as Q, M as j, O as q, P as y, Q as z, R as H, S as J, T as K, U as N, V, W, X, Y, H as Z, Z as _, a1 as $, $ as aa, a0 as ma, a2 as sa, a3 as Aa, a6 as ea, a4 as oa, a5 as ta, a7 as na, a8 as ra, a9 as ua, ab as ia } from "./chunks/index-Bsbwwc5K.mjs";
1
+ import { _ as s, a as A, b as e, c as o, d as t, e as n, A as r, f as u, g as i, h as l, i as p, j as c, k as d, l as S, m as b, n as I, o as B, p as T, q as g, r as k, t as h, u as D, v as M, x as w, y as C, z as P, B as G, C as v, D as x, E as F, F as O, G as U, I as E, aa as L, J as R, K as f, L as Q, M as j, O as q, P as y, Q as z, R as H, S as J, T as K, U as N, V, W, X, Y, H as Z, Z as _, a1 as $, $ as aa, a0 as ma, a2 as sa, a3 as Aa, a6 as ea, a4 as oa, a5 as ta, a7 as na, a8 as ra, a9 as ua, ab as ia } from "./chunks/index-C9YpgM7K.mjs";
2
2
  export {
3
3
  s as AmAlert,
4
4
  A as AmAvatar,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, defineAsyncComponent as m, useAttrs as h, computed as t, createBlock as l, openBlock as n, resolveDynamicComponent as s, normalizeStyle as S, normalizeClass as a, withCtx as j, renderSlot as u, createElementBlock as C, createCommentVNode as d, unref as r, createVNode as _ } from "vue";
2
- import { s as O } from "./index-Bsbwwc5K.mjs";
2
+ import { s as O } from "./index-C9YpgM7K.mjs";
3
3
  const A = {
4
4
  key: 0,
5
5
  class: "m-btn-loader-container"
@@ -28,7 +28,7 @@ const A = {
28
28
  justify: { default: "center" }
29
29
  },
30
30
  setup(v) {
31
- const o = v, y = m(() => import("./MazSpinner.DZT5jj-c-CnA4Vqqp.mjs")), c = m(() => import("./MazIcon.B5hPzeLk-BLy8XJB-.mjs")), { href: b, to: g } = h(), p = t(() => b ? "a" : g ? "router-link" : "button"), z = t(() => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`), f = t(
31
+ const o = v, y = m(() => import("./MazSpinner.DZT5jj-c-C0pMM1pv.mjs")), c = m(() => import("./MazIcon.B5hPzeLk-C71rThjY.mjs")), { href: b, to: g } = h(), p = t(() => b ? "a" : g ? "router-link" : "button"), z = t(() => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`), f = t(
32
32
  () => (o.loading || o.disabled) && p.value === "button"
33
33
  ), B = t(() => f.value ? "--cursor-default" : "--cursor-pointer"), k = t(() => `--is-${o.variant}`), x = t(() => o.loading && o.variant === "button"), I = t(() => p.value === "button" ? o.type : void 0), i = t(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "maz-text-xl");
34
34
  return (e, F) => (n(), l(s(p.value), {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as E, computed as o, ref as N, createElementBlock as b, openBlock as x, normalizeStyle as t, normalizeClass as n, unref as s, createElementVNode as u, mergeProps as $, createVNode as A, renderSlot as I, createCommentVNode as D, createTextVNode as K, toDisplayString as y } from "vue";
2
- import { s as M, w as P } from "./index-Bsbwwc5K.mjs";
2
+ import { s as M, w as P } from "./index-C9YpgM7K.mjs";
3
3
  import T from "./check.C9Q_W85g-DmgtOx7Q.mjs";
4
4
  const F = ["for", "aria-checked"], H = ["id", "checked", "disabled", "name"], J = { class: "m-checkbox__text" }, R = /* @__PURE__ */ E({
5
5
  inheritAttrs: !1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, ref as f, computed as m, onMounted as x, createElementBlock as L, createCommentVNode as k, watchEffect as T, openBlock as H, mergeProps as N, nextTick as $ } from "vue";
2
- import { N as C } from "./index-Bsbwwc5K.mjs";
2
+ import { N as C } from "./index-C9YpgM7K.mjs";
3
3
  const P = ["innerHTML"], G = /* @__PURE__ */ z({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, createElementBlock as o, openBlock as n, normalizeClass as r, createElementVNode as l } from "vue";
2
- import { s as a } from "./index-Bsbwwc5K.mjs";
2
+ import { s as a } from "./index-C9YpgM7K.mjs";
3
3
  const p = ["width", "height"], i = /* @__PURE__ */ t({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -39184,21 +39184,22 @@ const Dr = () => {
39184
39184
  popperBackground: { default: "level-2-foreground" },
39185
39185
  rangeSeparator: { default: "-" },
39186
39186
  loading: { type: Boolean },
39187
- cellClassName: {}
39187
+ cellClassName: {},
39188
+ valueFormat: {}
39188
39189
  },
39189
39190
  emits: ["update:modelValue", "change"],
39190
39191
  setup(t, { emit: e }) {
39191
- Jn((c) => ({
39192
- "5b2c043f": i.value
39192
+ Jn((u) => ({
39193
+ d1429788: c.value
39193
39194
  }));
39194
- const n = t, r = e, l = B(), o = n.prefixIcon ? Rt({
39195
+ const n = t, r = e, l = B(), o = B(), a = n.prefixIcon ? Rt({
39195
39196
  render() {
39196
39197
  return gt(_t, {
39197
39198
  name: n.prefixIcon,
39198
39199
  color: n.prefixIconColor
39199
39200
  });
39200
39201
  }
39201
- }) : null, a = Rt({
39202
+ }) : null, s = Rt({
39202
39203
  render() {
39203
39204
  return gt(_t, {
39204
39205
  name: "close-circle",
@@ -39208,44 +39209,50 @@ const Dr = () => {
39208
39209
  }
39209
39210
  });
39210
39211
  Ie.en.weekStart = n.weekStart !== void 0 ? n.weekStart : 1;
39211
- const s = _({
39212
+ const i = _({
39212
39213
  get() {
39213
39214
  return n.modelValue;
39214
39215
  },
39215
- set(c) {
39216
- r("update:modelValue", c), Te(() => {
39217
- const u = l.value.querySelector(".el-input__inner"), h = l.value.querySelectorAll(".el-range-input");
39218
- u ? u.blur() : h.length && h.forEach((m) => m.blur());
39219
- });
39216
+ set(u) {
39217
+ const h = n.modelValue;
39218
+ if (Array.isArray(u) && Array.isArray(h)) {
39219
+ if (u.length === h.length && u.every((m, v) => m === h[v]))
39220
+ return;
39221
+ } else if (u === h)
39222
+ return;
39223
+ Te(() => {
39224
+ o.value.blur();
39225
+ }), r("update:modelValue", u);
39220
39226
  }
39221
- }), i = _(() => n.prefixIconColorWhenActive || n.prefixIconColor);
39222
- return (c, u) => {
39223
- const h = vge, m = Nme;
39227
+ }), c = _(() => n.prefixIconColorWhenActive || n.prefixIconColor);
39228
+ return (u, h) => {
39229
+ const m = vge, v = Nme;
39224
39230
  return f(), g("div", {
39225
39231
  ref_key: "amDatePickerRef",
39226
39232
  ref: l,
39227
39233
  class: "am-date-picker"
39228
39234
  }, [
39229
- D(m, null, {
39235
+ D(v, null, {
39230
39236
  default: I(() => [
39231
- D(h, Oe({
39232
- modelValue: s.value,
39233
- "onUpdate:modelValue": u[0] || (u[0] = (v) => s.value = v),
39237
+ D(m, Oe({
39238
+ modelValue: i.value,
39239
+ "onUpdate:modelValue": h[0] || (h[0] = (w) => i.value = w),
39234
39240
  class: ["am-input am-input__size__default", {
39235
- "has-value": Array.isArray(s.value) ? s.value.length > 0 : s.value,
39241
+ "has-value": Array.isArray(i.value) ? i.value.length > 0 : i.value,
39236
39242
  "is-clearable": n.clearable
39237
- }]
39238
- }, { ...c.$props, ...c.$attrs }, {
39243
+ }],
39244
+ ref_key: "elDatePickerRef",
39245
+ ref: o
39246
+ }, { ...u.$props, ...u.$attrs }, {
39239
39247
  "popper-class": `am-date-picker-popper ${n.type === "daterange" ? "am-date-range-popper" : ""} ${n.popperBackground}`,
39240
39248
  "popper-options": { placement: "bottom-start" },
39241
- "prefix-icon": p(o),
39242
- "clear-icon": a.value,
39249
+ "prefix-icon": p(a),
39250
+ "clear-icon": s.value,
39243
39251
  "range-separator": n.rangeSeparator,
39244
- "cell-class-name": (v) => {
39245
- const w = n.cellClassName?.(v) || "", y = n.loading ? "is-loading" : "";
39246
- return [w, y].filter(Boolean).join(" ");
39247
- },
39248
- onChange: u[1] || (u[1] = () => r("change", s.value))
39252
+ "cell-class-name": (w) => {
39253
+ const y = n.cellClassName?.(w) || "", b = n.loading ? "is-loading" : "";
39254
+ return [y, b].filter(Boolean).join(" ");
39255
+ }
39249
39256
  }), null, 16, ["modelValue", "class", "popper-class", "prefix-icon", "clear-icon", "range-separator", "cell-class-name"])
39250
39257
  ]),
39251
39258
  _: 1
@@ -61694,7 +61701,7 @@ const zLe = {
61694
61701
  },
61695
61702
  emits: ["intersecting", "loading", "loaded", "error"],
61696
61703
  setup(t) {
61697
- const e = t, n = D0(() => import("./MazSpinner.DZT5jj-c-CnA4Vqqp.mjs")), r = _(() => e.image || e.src), l = _(() => {
61704
+ const e = t, n = D0(() => import("./MazSpinner.DZT5jj-c-C0pMM1pv.mjs")), r = _(() => e.image || e.src), l = _(() => {
61698
61705
  var o;
61699
61706
  return typeof r.value == "string" ? [{ srcset: r.value }] : (o = r.value) == null ? void 0 : o.sources;
61700
61707
  });
@@ -61943,7 +61950,7 @@ const HLe = ["for"], qLe = {
61943
61950
  },
61944
61951
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
61945
61952
  setup(t, { emit: e }) {
61946
- const n = t, r = e, l = D0(() => import("./MazBtn.1qp5aQ4N-CHK9yVG9.mjs")), o = D0(() => import("./MazIcon.B5hPzeLk-BLy8XJB-.mjs")), a = D0(() => import("./eye-slash.BoO00xzs-CULY_lvM.mjs")), s = D0(() => import("./eye.f8zAUc30-Yr89kafZ.mjs")), i = D0(() => import("./check.C9Q_W85g-DmgtOx7Q.mjs")), c = B(!1), u = B(!1), h = B(), m = j7({
61953
+ const n = t, r = e, l = D0(() => import("./MazBtn.1qp5aQ4N-BxuxMDOq.mjs")), o = D0(() => import("./MazIcon.B5hPzeLk-C71rThjY.mjs")), a = D0(() => import("./eye-slash.BoO00xzs-CULY_lvM.mjs")), s = D0(() => import("./eye.f8zAUc30-Yr89kafZ.mjs")), i = D0(() => import("./check.C9Q_W85g-DmgtOx7Q.mjs")), c = B(!1), u = B(!1), h = B(), m = j7({
61947
61954
  componentName: "MazInput",
61948
61955
  providedId: n.id
61949
61956
  });
@@ -62222,7 +62229,7 @@ const HLe = ["for"], qLe = {
62222
62229
  },
62223
62230
  emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
62224
62231
  setup(t, { expose: e, emit: n }) {
62225
- const r = t, l = n, o = D0(() => import("./MazCheckbox.UAnkvAoS-Bz8kN8fa.mjs")), a = D0(() => import("./magnifying-glass.-nBiyXot-CuA_mltt.mjs")), s = D0(() => import("./chevron-down.BkvtON3b-RNrTKYcy.mjs")), i = D0(() => import("./no-symbol.CIgKzsrB-3PuxVsDY.mjs"));
62232
+ const r = t, l = n, o = D0(() => import("./MazCheckbox.UAnkvAoS-CNQqQL6C.mjs")), a = D0(() => import("./magnifying-glass.-nBiyXot-CuA_mltt.mjs")), s = D0(() => import("./chevron-down.BkvtON3b-RNrTKYcy.mjs")), i = D0(() => import("./no-symbol.CIgKzsrB-3PuxVsDY.mjs"));
62226
62233
  e({
62227
62234
  /** Method to open the option list */
62228
62235
  openList: G,
@@ -12,6 +12,7 @@ interface Props {
12
12
  rangeSeparator?: string;
13
13
  loading?: boolean;
14
14
  cellClassName?: (date: Date) => string;
15
+ valueFormat?: string;
15
16
  }
16
17
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
18
  change: (...args: any[]) => void;
@@ -28,5 +29,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
28
29
  rangeSeparator: string;
29
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
30
31
  amDatePickerRef: HTMLDivElement;
32
+ elDatePickerRef: unknown;
31
33
  }, HTMLDivElement>;
32
34
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amelia-booking-ui",
3
- "version": "0.0.420",
3
+ "version": "0.0.421",
4
4
  "description": "A Vue 3 component library for Amelia Booking Plugin.",
5
5
  "type": "module",
6
6
  "repository": {