@schwarzdavid/ui-kit 0.0.1-alpha.19 → 0.0.1-alpha.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.
package/dist/main.js CHANGED
@@ -1,41 +1,41 @@
1
1
  import { Fragment as e, Teleport as t, TransitionGroup as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createVNode as l, defineComponent as u, hasInjectionContext as d, inject as f, isRef as p, markRaw as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onBeforeUpdate as x, onMounted as S, onScopeDispose as C, openBlock as w, provide as T, readonly as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReadonly as j, shallowRef as M, toDisplayString as N, toValue as ee, unref as P, useAttrs as te, useSlots as ne, useTemplateRef as F, vShow as re, watch as I, watchEffect as ie, withCtx as L, withDirectives as ae, withKeys as oe, withModifiers as se } from "vue";
2
- import { useDisplay as ce } from "vuetify";
3
- import { useI18n as le } from "vue-i18n";
4
- import { VAlert as ue, VBottomSheet as de, VBtn as R, VCard as fe, VDialog as z, VIcon as pe, VOverlay as me, VProgressCircular as he } from "vuetify/components";
5
- import { merge as B } from "lodash-es";
6
- import ge from "@vuelidate/core";
2
+ import { useDisplay as R } from "vuetify";
3
+ import { useI18n as ce } from "vue-i18n";
4
+ import { VAlert as le, VBottomSheet as ue, VBtn as z, VCard as de, VDialog as B, VIcon as fe, VOverlay as pe, VProgressCircular as me } from "vuetify/components";
5
+ import { merge as V } from "lodash-es";
6
+ import he from "@vuelidate/core";
7
7
  //#region lib/internal/createId.ts
8
- function _e(e) {
8
+ function ge(e) {
9
9
  let t = Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
10
10
  return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
11
11
  }
12
- function V() {
12
+ function H() {
13
13
  let e = globalThis.crypto;
14
14
  if (e.randomUUID) return e.randomUUID();
15
15
  let t = globalThis.crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
16
- return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, _e(t);
16
+ return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, ge(t);
17
17
  }
18
18
  //#endregion
19
19
  //#region lib/plugin/constants/errors.ts
20
- var H = {
20
+ var U = {
21
21
  NOT_INSTALLED: "@schwarzdavid/ui-kit is not available in this context. Install it with app.use(createUIKit()) and call its composables inside setup() or app.runWithContext().",
22
22
  DIALOG_ENTRY_CONTEXT_MISSING: "useDialogEntry() must be called inside a dialog preset rendered by UiKitOutlet.",
23
23
  DIALOG_FORM_CONTEXT_MISSING: "useDialogForm() must be called inside a component rendered by the form dialog preset.",
24
24
  TOAST_ENTRY_CONTEXT_MISSING: "useToastEntry() must be called inside a toast component rendered by UiKitOutlet."
25
- }, U = Symbol("@schwarzdavid/ui-kit");
25
+ }, W = Symbol("@schwarzdavid/ui-kit");
26
26
  //#endregion
27
27
  //#region lib/plugin/composables/usePluginContext.ts
28
- function W() {
29
- let e = d() ? f(U, null) : null;
30
- if (!e) throw Error(H.NOT_INSTALLED);
28
+ function G() {
29
+ let e = d() ? f(W, null) : null;
30
+ if (!e) throw Error(U.NOT_INSTALLED);
31
31
  return e;
32
32
  }
33
33
  //#endregion
34
34
  //#region lib/composables/dialog/internal/useDialogQueue.ts
35
- function G() {
36
- let { dialogQueue: e } = W();
35
+ function K() {
36
+ let { dialogQueue: e } = G();
37
37
  function t(t) {
38
- let r = V(), i = (e) => {
38
+ let r = H(), i = (e) => {
39
39
  n(r), t.resolve(e);
40
40
  }, a = (e) => {
41
41
  n(r), t.reject(e);
@@ -59,23 +59,23 @@ function G() {
59
59
  }
60
60
  //#endregion
61
61
  //#region lib/composables/dialog/constants/injectionKeys.ts
62
- var K = Symbol("@schwarzdavid/ui-kit:dialog-entry"), ve = Symbol("@schwarzdavid/ui-kit:dialog-form"), q = /* @__PURE__ */ u({
62
+ var q = Symbol("@schwarzdavid/ui-kit:dialog-entry"), _e = Symbol("@schwarzdavid/ui-kit:dialog-form"), J = /* @__PURE__ */ u({
63
63
  __name: "DialogEntryProvider",
64
64
  props: { entry: {} },
65
65
  setup(e) {
66
66
  let t = e;
67
- return T(K, {
67
+ return T(q, {
68
68
  id: t.entry.id,
69
69
  data: t.entry.data,
70
70
  resolve: t.entry.resolve,
71
71
  reject: t.entry.reject
72
72
  }), (t, n) => (w(), i(A(e.entry.component)));
73
73
  }
74
- }), ye = /* @__PURE__ */ u({
74
+ }), ve = /* @__PURE__ */ u({
75
75
  __name: "DialogOutlet",
76
76
  setup(t) {
77
- let { queue: n } = G();
78
- return (t, r) => (w(!0), o(e, null, O(P(n), (e) => (w(), i(q, {
77
+ let { queue: n } = K();
78
+ return (t, r) => (w(!0), o(e, null, O(P(n), (e) => (w(), i(J, {
79
79
  key: e.id,
80
80
  entry: e
81
81
  }, null, 8, ["entry"]))), 128));
@@ -83,13 +83,13 @@ var K = Symbol("@schwarzdavid/ui-kit:dialog-entry"), ve = Symbol("@schwarzdavid/
83
83
  });
84
84
  //#endregion
85
85
  //#region lib/composables/internal/useMaybeTranslation.ts
86
- function J() {
87
- let e = le({ useScope: "global" }), t = (t) => e.availableLocales.some((n) => e.te(t, n));
86
+ function Y() {
87
+ let e = ce({ useScope: "global" }), t = (t) => e.availableLocales.some((n) => e.te(t, n));
88
88
  return (n, r = !0) => r && t(n) ? e.t(n) : n;
89
89
  }
90
90
  //#endregion
91
91
  //#region lib/components/internal/MaybeTranslation.vue
92
- var Y = /* @__PURE__ */ u({
92
+ var X = /* @__PURE__ */ u({
93
93
  __name: "MaybeTranslation",
94
94
  props: {
95
95
  content: {},
@@ -99,14 +99,14 @@ var Y = /* @__PURE__ */ u({
99
99
  }
100
100
  },
101
101
  setup(e) {
102
- let t = e, n = J(), i = r(() => n(t.content, t.translate));
102
+ let t = e, n = Y(), i = r(() => n(t.content, t.translate));
103
103
  return (e, t) => N(i.value);
104
104
  }
105
105
  });
106
106
  //#endregion
107
107
  //#region lib/composables/toast/internal/useToastQueue.ts
108
- function X() {
109
- let { toastQueue: e, toastTimers: t } = W();
108
+ function ye() {
109
+ let { toastQueue: e, toastTimers: t } = G();
110
110
  function n(t) {
111
111
  return e.value.find((e) => e.id === t);
112
112
  }
@@ -142,7 +142,7 @@ function X() {
142
142
  !i?.holds.delete(n) || i.holds.size > 0 || r(e, i);
143
143
  }
144
144
  function u(n) {
145
- let i = V(), a = m({
145
+ let i = H(), a = m({
146
146
  ...n,
147
147
  id: i
148
148
  });
@@ -173,7 +173,7 @@ var be = Symbol("@schwarzdavid/ui-kit:toast-entry"), xe = /* @__PURE__ */ u({
173
173
  __name: "ToastEntryProvider",
174
174
  props: { entry: {} },
175
175
  setup(e) {
176
- let t = e, { options: n } = W(), { close: a, trigger: o, pause: s, resume: c } = X(), l = r(() => n.components.toast);
176
+ let t = e, { options: n } = G(), { close: a, trigger: o, pause: s, resume: c } = ye(), l = r(() => n.components.toast);
177
177
  function u(e) {
178
178
  let n = e.currentTarget;
179
179
  n instanceof Node && e.relatedTarget instanceof Node && n.contains(e.relatedTarget) || c(t.entry.id, "focus");
@@ -202,7 +202,7 @@ var be = Symbol("@schwarzdavid/ui-kit:toast-entry"), xe = /* @__PURE__ */ u({
202
202
  }, Ce = /* @__PURE__ */ u({
203
203
  __name: "ToastOutlet",
204
204
  setup(t) {
205
- let { queue: r, pause: c, resume: u } = X(), { xs: d } = ce(), f = M(null), p = /* @__PURE__ */ new WeakSet();
205
+ let { queue: r, pause: c, resume: u } = ye(), { xs: d } = R(), f = M(null), p = /* @__PURE__ */ new WeakSet();
206
206
  I(() => r.value.at(-1), (e) => {
207
207
  e && e.type !== Z.ERROR && !p.has(e) && (p.add(e), f.value = null, g(() => {
208
208
  f.value = e;
@@ -225,7 +225,7 @@ var be = Symbol("@schwarzdavid/ui-kit:toast-entry"), xe = /* @__PURE__ */ u({
225
225
  e.style.width = `${t.toFixed()}px`;
226
226
  }
227
227
  }
228
- return (t, c) => (w(), o(e, null, [s("div", Se, [f.value ? (w(), i(Y, {
228
+ return (t, c) => (w(), o(e, null, [s("div", Se, [f.value ? (w(), i(X, {
229
229
  key: 0,
230
230
  content: f.value.message,
231
231
  translate: f.value.translateMessage
@@ -246,7 +246,7 @@ var be = Symbol("@schwarzdavid/ui-kit:toast-entry"), xe = /* @__PURE__ */ u({
246
246
  //#endregion
247
247
  //#region lib/composables/loading-overlay/useLoadingOverlay.ts
248
248
  function we() {
249
- return W().loadingOverlay;
249
+ return G().loadingOverlay;
250
250
  }
251
251
  //#endregion
252
252
  //#region lib/composables/loading-overlay/components/LoadingOverlay.vue
@@ -254,13 +254,13 @@ var Te = /* @__PURE__ */ u({
254
254
  __name: "LoadingOverlay",
255
255
  setup(e) {
256
256
  let t = we();
257
- return (e, n) => (w(), i(P(me), {
257
+ return (e, n) => (w(), i(P(pe), {
258
258
  modelValue: P(t),
259
259
  "onUpdate:modelValue": n[0] ||= (e) => p(t) ? t.value = e : null,
260
260
  persistent: "",
261
261
  class: "d-flex align-center justify-center"
262
262
  }, {
263
- default: L(() => [l(P(he), {
263
+ default: L(() => [l(P(me), {
264
264
  indeterminate: "",
265
265
  color: "primary",
266
266
  size: "100"
@@ -272,7 +272,7 @@ var Te = /* @__PURE__ */ u({
272
272
  __name: "UiKitOutlet",
273
273
  setup(t) {
274
274
  return (t, n) => (w(), o(e, null, [
275
- l(ye),
275
+ l(ve),
276
276
  l(Ce),
277
277
  l(Te)
278
278
  ], 64));
@@ -481,7 +481,7 @@ var Q = {
481
481
  "closed"
482
482
  ],
483
483
  setup(e, { emit: t }) {
484
- let n = e, c = t, u = ne(), { options: d } = W(), f = J(), p = F("surface"), m = F("body"), g = F("preview"), v = F("content"), C = D(!!u.preview);
484
+ let n = e, c = t, u = ne(), { options: d } = G(), f = Y(), p = F("surface"), m = F("body"), g = F("preview"), v = F("content"), C = D(!!u.preview);
485
485
  x(() => {
486
486
  C.value = !!u.preview;
487
487
  });
@@ -494,123 +494,123 @@ var Q = {
494
494
  function N() {
495
495
  return n.stage && T.value.includes(n.stage) ? n.stage : T.value[0];
496
496
  }
497
- let ee = r(() => d.i18n.messages), te = r(() => f(M.value ? ee.value.collapse : ee.value.expand)), ie = r(() => f(ee.value.close)), ce = D({
497
+ let ee = r(() => d.i18n.messages), te = r(() => f(M.value ? ee.value.collapse : ee.value.expand)), ie = r(() => f(ee.value.close)), R = D({
498
498
  chrome: 0,
499
499
  preview: 0,
500
500
  content: 0
501
- }), le = D(0);
502
- function ue(e) {
501
+ }), ce = D(0);
502
+ function le(e) {
503
503
  let t = getComputedStyle(e);
504
504
  return (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
505
505
  }
506
- function fe(e) {
506
+ function de(e) {
507
507
  if (!e) return 0;
508
508
  if (e.style.display !== "none") return e.offsetHeight;
509
509
  e.style.display = "";
510
510
  let t = e.offsetHeight;
511
511
  return e.style.display = "none", t;
512
512
  }
513
- function z() {
513
+ function B() {
514
514
  let e = p.value, t = m.value;
515
- le.value = window.innerHeight, e && t && (ce.value = {
516
- chrome: e.offsetHeight - t.offsetHeight + ue(t),
517
- preview: fe(g.value),
518
- content: fe(v.value)
515
+ ce.value = window.innerHeight, e && t && (R.value = {
516
+ chrome: e.offsetHeight - t.offsetHeight + le(t),
517
+ preview: de(g.value),
518
+ content: de(v.value)
519
519
  });
520
520
  }
521
- function pe(e) {
522
- let { chrome: t, preview: n, content: r } = ce.value;
523
- return e === "fullscreen" ? le.value : e === "preview" ? t + n : Math.min(t + r, Ye * le.value);
524
- }
525
- function me() {
526
- return z(), T.value.map(pe);
521
+ function fe(e) {
522
+ let { chrome: t, preview: n, content: r } = R.value;
523
+ return e === "fullscreen" ? ce.value : e === "preview" ? t + n : Math.min(t + r, Ye * ce.value);
527
524
  }
528
- let he = null, B = D(null), ge = r(() => n.modelValue ? null : B.value);
529
- function _e(e) {
530
- B.value = e, c("update:modelValue", !1), c("close");
525
+ function pe() {
526
+ return B(), T.value.map(fe);
531
527
  }
532
- function V() {
533
- _e(null);
528
+ let me = null, V = D(null), he = r(() => n.modelValue ? null : V.value);
529
+ function ge(e) {
530
+ V.value = e, c("update:modelValue", !1), c("close");
534
531
  }
535
532
  function H() {
536
- _e(he);
533
+ ge(null);
534
+ }
535
+ function U() {
536
+ ge(me);
537
537
  }
538
- let { dragging: U, offset: G } = Fe({
538
+ let { dragging: W, offset: K } = Fe({
539
539
  surface: p,
540
540
  body: m,
541
- heights: me,
541
+ heights: pe,
542
542
  current: j,
543
543
  dismissible: r(() => !n.persistent),
544
- onDismiss: H
545
- }), K = D([]);
546
- I(U, (e) => {
547
- K.value = e ? me() : [], e && (he = null, B.value = null);
548
- }, { flush: "sync" }), I(G, (e) => {
549
- U.value && K.value.length && (he = {
550
- height: K.value[j.value],
544
+ onDismiss: U
545
+ }), q = D([]);
546
+ I(W, (e) => {
547
+ q.value = e ? pe() : [], e && (me = null, V.value = null);
548
+ }, { flush: "sync" }), I(K, (e) => {
549
+ W.value && q.value.length && (me = {
550
+ height: q.value[j.value],
551
551
  offset: Math.max(e, 0)
552
552
  });
553
553
  }, { flush: "sync" });
554
- let ve = r(() => {
555
- if (ge.value) {
556
- let { height: e, offset: t } = ge.value;
554
+ let _e = r(() => {
555
+ if (he.value) {
556
+ let { height: e, offset: t } = he.value;
557
557
  return {
558
558
  height: `${String(e)}px`,
559
559
  transform: `translateY(${String(t)}px)`
560
560
  };
561
561
  }
562
- if (U.value && K.value.length) {
563
- let e = K.value[j.value];
564
- if (G.value >= 0) return {
562
+ if (W.value && q.value.length) {
563
+ let e = q.value[j.value];
564
+ if (K.value >= 0) return {
565
565
  height: `${String(e)}px`,
566
- transform: `translateY(${String(G.value)}px)`
566
+ transform: `translateY(${String(K.value)}px)`
567
567
  };
568
- let t = K.value[K.value.length - 1], n = e - G.value, r = Math.min(n, t) + Math.max(n - t, 0) * Xe;
568
+ let t = q.value[q.value.length - 1], n = e - K.value, r = Math.min(n, t) + Math.max(n - t, 0) * Xe;
569
569
  return { height: `${String(r)}px` };
570
570
  }
571
- let { chrome: e, preview: t, content: n } = ce.value;
571
+ let { chrome: e, preview: t, content: n } = R.value;
572
572
  return O.value === "preview" && e + t > 0 ? { height: `${String(e + t)}px` } : O.value === "content" && e + n > 0 ? { height: `min(${String(e + n)}px, 90dvh)` } : {};
573
- }), q = null;
574
- function ye() {
575
- q?.disconnect(), q = null;
573
+ }), J = null;
574
+ function ve() {
575
+ J?.disconnect(), J = null;
576
576
  let e = [g.value, v.value].filter((e) => !!e);
577
- e.length && typeof ResizeObserver < "u" && (q = new ResizeObserver(() => {
578
- U.value || z();
577
+ e.length && typeof ResizeObserver < "u" && (J = new ResizeObserver(() => {
578
+ W.value || B();
579
579
  }), e.forEach((e) => {
580
- q?.observe(e);
580
+ J?.observe(e);
581
581
  }));
582
582
  }
583
- I([g, v], ye, { flush: "post" }), S(() => {
584
- le.value = window.innerHeight, window.addEventListener("resize", z);
583
+ I([g, v], ve, { flush: "post" }), S(() => {
584
+ ce.value = window.innerHeight, window.addEventListener("resize", B);
585
585
  }), b(() => {
586
- q?.disconnect(), window.removeEventListener("resize", z);
586
+ J?.disconnect(), window.removeEventListener("resize", B);
587
587
  });
588
- function X() {
588
+ function ye() {
589
589
  O.value !== n.stage && c("update:stage", O.value);
590
590
  }
591
591
  I(() => n.stage, (e) => {
592
- e && T.value.includes(e) ? E.value = e : X();
592
+ e && T.value.includes(e) ? E.value = e : ye();
593
593
  }), I(T, (e) => {
594
594
  e.includes(E.value) || (E.value = e[0]);
595
595
  }), I(() => n.modelValue, (e) => {
596
- e && (B.value = null, E.value = N());
597
- }), I(O, X, { immediate: !0 }), I(O, z, { flush: "post" });
596
+ e && (V.value = null, E.value = N());
597
+ }), I(O, ye, { immediate: !0 }), I(O, B, { flush: "post" });
598
598
  function be() {
599
599
  j.value = M.value ? 0 : T.value.length - 1;
600
600
  }
601
601
  function xe() {
602
- B.value = null, c("closed");
602
+ V.value = null, c("closed");
603
603
  }
604
604
  function Z() {
605
- n.persistent || V();
605
+ n.persistent || H();
606
606
  }
607
607
  function Se() {
608
- d.dialog.closeOnOverlayClick && !n.persistent && V();
608
+ d.dialog.closeOnOverlayClick && !n.persistent && H();
609
609
  }
610
610
  function Ce() {
611
611
  n.form && c("submit");
612
612
  }
613
- return (t, n) => (w(), i(P(de), {
613
+ return (t, n) => (w(), i(P(ue), {
614
614
  "model-value": e.modelValue,
615
615
  persistent: "",
616
616
  "no-click-animation": "",
@@ -626,10 +626,10 @@ var Q = {
626
626
  ref_key: "surface",
627
627
  ref: p,
628
628
  class: _(["ui-sheet", [`ui-sheet--${O.value}`, {
629
- "ui-sheet--dragging": P(U),
630
- "ui-sheet--dismissing": !!ge.value
629
+ "ui-sheet--dragging": P(W),
630
+ "ui-sheet--dismissing": !!he.value
631
631
  }]]),
632
- style: y(ve.value)
632
+ style: y(_e.value)
633
633
  }, [(w(), i(A(e.form ? "form" : "div"), h({ class: "ui-sheet__layout" }, e.form ? { novalidate: !0 } : {}, { onSubmit: se(Ce, ["prevent"]) }), {
634
634
  default: L(() => [
635
635
  T.value.length > 1 ? (w(), o("button", {
@@ -640,12 +640,12 @@ var Q = {
640
640
  onClick: be
641
641
  }, [...n[1] ||= [s("span", { class: "ui-sheet__grip" }, null, -1)]], 8, He)) : (w(), o("div", Ue, [...n[2] ||= [s("span", { class: "ui-sheet__grip" }, null, -1)]])),
642
642
  s("header", We, [
643
- e.title ? (w(), o("h2", Ge, [l(Y, {
643
+ e.title ? (w(), o("h2", Ge, [l(X, {
644
644
  content: e.title,
645
645
  translate: e.translateTitle
646
646
  }, null, 8, ["content", "translate"])])) : a("", !0),
647
647
  k(t.$slots, "header"),
648
- e.closable && O.value === "fullscreen" ? (w(), i(P(R), {
648
+ e.closable && O.value !== "preview" ? (w(), i(P(z), {
649
649
  key: 1,
650
650
  variant: "text",
651
651
  density: "comfortable",
@@ -653,7 +653,7 @@ var Q = {
653
653
  "aria-label": ie.value,
654
654
  disabled: e.persistent,
655
655
  class: "ui-sheet__close",
656
- onClick: V
656
+ onClick: H
657
657
  }, null, 8, [
658
658
  "icon",
659
659
  "aria-label",
@@ -677,10 +677,10 @@ var Q = {
677
677
  //#region lib/composables/dialog/internal/useDialogCta.ts
678
678
  function $(e, t) {
679
679
  let n = {
680
- text: W().options.i18n.messages[t],
680
+ text: G().options.i18n.messages[t],
681
681
  translateText: !0
682
682
  };
683
- return B(n, e);
683
+ return V(n, e);
684
684
  }
685
685
  //#endregion
686
686
  //#region lib/composables/dialog/internal/dialogWidths.ts
@@ -694,10 +694,10 @@ function $e(e) {
694
694
  }
695
695
  //#endregion
696
696
  //#region lib/components/sheet/UiResponsiveDialog.vue?vue&type=script&setup=true&lang.ts
697
- var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt = { class: "ui-dialog__body" }, rt = {
697
+ var et = { class: "ui-responsive-dialog__sheet-section" }, tt = { class: "ui-dialog__header" }, nt = { class: "ui-dialog__title" }, rt = { class: "ui-dialog__body" }, it = {
698
698
  key: 0,
699
699
  class: "ui-dialog__footer"
700
- }, it = /* @__PURE__ */ u({
700
+ }, at = /* @__PURE__ */ u({
701
701
  inheritAttrs: !1,
702
702
  __name: "UiResponsiveDialog",
703
703
  props: {
@@ -735,7 +735,7 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
735
735
  "update:stage"
736
736
  ],
737
737
  setup(n, { emit: u }) {
738
- let d = n, f = u, p = ne(), m = te(), { options: g } = W(), { mobile: _ } = ce(), v = J(), y = $(void 0, "close"), b = r(() => v(y.text, y.translateText)), x = r(() => $e(d.width)), S = M(null), C = !1;
738
+ let d = n, f = u, p = ne(), m = te(), { options: g } = G(), { mobile: _ } = R(), v = Y(), y = $(void 0, "close"), b = r(() => v(y.text, y.translateText)), x = r(() => $e(d.width)), S = M(null), C = !1;
739
739
  function T(e) {
740
740
  e instanceof HTMLElement && (S.value = e);
741
741
  }
@@ -777,13 +777,13 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
777
777
  }), c({
778
778
  default: L(() => [s("div", {
779
779
  ref: T,
780
- class: "ui-responsive-dialog__slot"
780
+ class: "ui-responsive-dialog__sheet-section"
781
781
  }, null, 512)]),
782
782
  _: 2
783
783
  }, [
784
784
  P(p).preview ? {
785
785
  name: "preview",
786
- fn: L(() => [k(r.$slots, "preview")]),
786
+ fn: L(() => [s("div", et, [k(r.$slots, "preview")])]),
787
787
  key: "0"
788
788
  } : void 0,
789
789
  P(p).header ? {
@@ -805,7 +805,7 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
805
805
  "closable",
806
806
  "persistent",
807
807
  "form"
808
- ])) : (w(), i(P(z), h({ key: 1 }, P(m), {
808
+ ])) : (w(), i(P(B), h({ key: 1 }, P(m), {
809
809
  "model-value": n.modelValue,
810
810
  "max-width": x.value,
811
811
  persistent: "",
@@ -817,7 +817,7 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
817
817
  onAfterEnter: u[5] ||= (e) => f("opened"),
818
818
  onAfterLeave: E
819
819
  }), {
820
- default: L(() => [l(P(fe), {
820
+ default: L(() => [l(P(de), {
821
821
  variant: "flat",
822
822
  border: !1,
823
823
  rounded: !1,
@@ -825,13 +825,13 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
825
825
  }, {
826
826
  default: L(() => [(w(), i(A(n.form ? "form" : "div"), h({ class: "ui-dialog__layout" }, n.form ? { novalidate: !0 } : {}, { onSubmit: se(N, ["prevent"]) }), {
827
827
  default: L(() => [
828
- s("header", et, [
829
- s("h2", tt, [l(Y, {
828
+ s("header", tt, [
829
+ s("h2", nt, [l(X, {
830
830
  content: n.title,
831
831
  translate: n.translateTitle
832
832
  }, null, 8, ["content", "translate"])]),
833
833
  k(r.$slots, "header"),
834
- n.closable ? (w(), i(P(R), {
834
+ n.closable ? (w(), i(P(z), {
835
835
  key: 0,
836
836
  variant: "text",
837
837
  density: "comfortable",
@@ -846,11 +846,11 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
846
846
  "disabled"
847
847
  ])) : a("", !0)
848
848
  ]),
849
- s("div", nt, [s("div", {
849
+ s("div", rt, [s("div", {
850
850
  ref: T,
851
851
  class: "ui-responsive-dialog__slot"
852
852
  }, null, 512)]),
853
- P(p).actions ? (w(), o("footer", rt, [k(r.$slots, "actions")])) : a("", !0)
853
+ P(p).actions ? (w(), o("footer", it, [k(r.$slots, "actions")])) : a("", !0)
854
854
  ]),
855
855
  _: 3
856
856
  }, 16))]),
@@ -869,8 +869,8 @@ var et = { class: "ui-dialog__header" }, tt = { class: "ui-dialog__title" }, nt
869
869
  });
870
870
  //#endregion
871
871
  //#region lib/composables/dialog/useDialog.ts
872
- function at() {
873
- let e = G(), { options: { components: { dialog: t } } } = W();
872
+ function ot() {
873
+ let e = K(), { options: { components: { dialog: t } } } = G();
874
874
  function n(n, r) {
875
875
  let i = typeof n == "string" ? {
876
876
  title: n,
@@ -923,16 +923,16 @@ function at() {
923
923
  }
924
924
  //#endregion
925
925
  //#region lib/composables/dialog/useDialogEntry.ts
926
- function ot() {
927
- let e = d() ? f(K, null) : null;
928
- if (!e) throw Error(H.DIALOG_ENTRY_CONTEXT_MISSING);
926
+ function st() {
927
+ let e = d() ? f(q, null) : null;
928
+ if (!e) throw Error(U.DIALOG_ENTRY_CONTEXT_MISSING);
929
929
  return e;
930
930
  }
931
931
  //#endregion
932
932
  //#region lib/composables/dialog/useDialogForm.ts
933
- function st(e) {
934
- let t = d() ? f(ve, null) : null;
935
- if (!t) throw Error(H.DIALOG_FORM_CONTEXT_MISSING);
933
+ function ct(e) {
934
+ let t = d() ? f(_e, null) : null;
935
+ if (!t) throw Error(U.DIALOG_FORM_CONTEXT_MISSING);
936
936
  return t.register(e), {
937
937
  submit: t.submit,
938
938
  loading: t.loading
@@ -940,13 +940,13 @@ function st(e) {
940
940
  }
941
941
  //#endregion
942
942
  //#region lib/composables/dialog/presets/ConfirmDialogProps.ts
943
- var ct = /* @__PURE__ */ function(e) {
943
+ var lt = /* @__PURE__ */ function(e) {
944
944
  return e.DEFAULT = "primary", e.WARNING = "warning", e.DANGER = "error", e;
945
945
  }({});
946
946
  //#endregion
947
947
  //#region lib/composables/toast/useToast.ts
948
- function lt() {
949
- let e = X(), { options: { toast: t } } = W();
948
+ function ut() {
949
+ let e = ye(), { options: { toast: t } } = G();
950
950
  function n(e) {
951
951
  return e === Z.ERROR ? t.errorTimeout : t.timeout;
952
952
  }
@@ -971,24 +971,24 @@ function lt() {
971
971
  }
972
972
  //#endregion
973
973
  //#region lib/composables/toast/useToastEntry.ts
974
- function ut() {
974
+ function dt() {
975
975
  let e = d() ? f(be, null) : null;
976
- if (!e) throw Error(H.TOAST_ENTRY_CONTEXT_MISSING);
976
+ if (!e) throw Error(U.TOAST_ENTRY_CONTEXT_MISSING);
977
977
  return e;
978
978
  }
979
979
  //#endregion
980
980
  //#region lib/composables/loading/useLoading.ts
981
- function dt(e) {
981
+ function ft(e) {
982
982
  return e ? new Promise((t) => {
983
983
  setTimeout(t, e);
984
984
  }) : Promise.resolve();
985
985
  }
986
- function ft(e, t = {}) {
987
- let { options: { loading: n } } = W(), r = t.delay ?? n.delay, i = t.overlay ?? n.overlay, a = D(!1), o = we(), s = e;
986
+ function pt(e, t = {}) {
987
+ let { options: { loading: n } } = G(), r = t.delay ?? n.delay, i = t.overlay ?? n.overlay, a = D(!1), o = we(), s = e;
988
988
  async function c(...e) {
989
989
  a.value = !0, i && (o.value = !0);
990
990
  try {
991
- let [t] = await Promise.all([s(...e), dt(r)]);
991
+ let [t] = await Promise.all([s(...e), ft(r)]);
992
992
  return t;
993
993
  } finally {
994
994
  a.value = !1, i && (o.value = !1);
@@ -1001,57 +1001,57 @@ function ft(e, t = {}) {
1001
1001
  }
1002
1002
  //#endregion
1003
1003
  //#region lib/composables/dialog/components/dialog/presets/InfoDialog.vue?vue&type=script&setup=true&lang.ts
1004
- var pt = {
1004
+ var mt = {
1005
1005
  key: 0,
1006
1006
  class: "ui-dialog__text"
1007
- }, mt = /* @__PURE__ */ u({
1007
+ }, ht = /* @__PURE__ */ u({
1008
1008
  __name: "InfoDialog",
1009
1009
  setup(t) {
1010
- let { data: n, resolve: s } = ot(), u = n.defaultCta === !1 ? null : $(n.defaultCta, "close"), d = r(() => n.additionalCta ?? []), f = r(() => u !== null || d.value.length > 0), p = D(!0), m = r(() => "props" in n ? n.props : {}), g = null;
1011
- function _(e) {
1012
- "action" in e ? e.action() : y(e.value);
1010
+ let { data: n, resolve: s } = st(), u = n.defaultCta === !1 ? null : $(n.defaultCta, "close"), d = r(() => n.additionalCta ?? []), { mobile: f } = R(), p = r(() => u !== null && !f.value), m = r(() => p.value || d.value.length > 0), g = D(!0), _ = r(() => "props" in n ? n.props : {}), y = null;
1011
+ function b(e) {
1012
+ "action" in e ? e.action() : x(e.value);
1013
1013
  }
1014
- function y(e) {
1015
- p.value &&= (g = e, !1);
1014
+ function x(e) {
1015
+ g.value &&= (y = e, !1);
1016
1016
  }
1017
- function b() {
1018
- y(null);
1017
+ function S() {
1018
+ x(null);
1019
1019
  }
1020
- function x() {
1021
- s(g);
1020
+ function C() {
1021
+ s(y);
1022
1022
  }
1023
- return (t, r) => (w(), i(it, {
1024
- "model-value": p.value,
1023
+ return (t, r) => (w(), i(at, {
1024
+ "model-value": g.value,
1025
1025
  title: P(n).title,
1026
1026
  "translate-title": P(n).translateTitle,
1027
1027
  width: P(n).width ?? "sm",
1028
- onClose: b,
1029
- onClosed: x
1028
+ onClose: S,
1029
+ onClosed: C
1030
1030
  }, c({
1031
- default: L(() => ["content" in P(n) ? (w(), o("p", pt, [l(Y, {
1031
+ default: L(() => ["content" in P(n) ? (w(), o("p", mt, [l(X, {
1032
1032
  content: P(n).content,
1033
1033
  translate: P(n).translateContent
1034
- }, null, 8, ["content", "translate"])])) : (w(), i(A(P(n).component), v(h({ key: 1 }, m.value)), null, 16))]),
1034
+ }, null, 8, ["content", "translate"])])) : (w(), i(A(P(n).component), v(h({ key: 1 }, _.value)), null, 16))]),
1035
1035
  _: 2
1036
- }, [f.value ? {
1036
+ }, [m.value ? {
1037
1037
  name: "actions",
1038
- fn: L(() => [(w(!0), o(e, null, O(d.value, (e, t) => (w(), i(P(R), {
1038
+ fn: L(() => [(w(!0), o(e, null, O(d.value, (e, t) => (w(), i(P(z), {
1039
1039
  key: t,
1040
1040
  variant: "text",
1041
- onClick: () => _(e)
1041
+ onClick: () => b(e)
1042
1042
  }, {
1043
- default: L(() => [l(Y, {
1043
+ default: L(() => [l(X, {
1044
1044
  content: e.text,
1045
1045
  translate: e.translateText
1046
1046
  }, null, 8, ["content", "translate"])]),
1047
1047
  _: 2
1048
- }, 1032, ["onClick"]))), 128)), P(u) ? (w(), i(P(R), {
1048
+ }, 1032, ["onClick"]))), 128)), p.value && P(u) ? (w(), i(P(z), {
1049
1049
  key: 0,
1050
1050
  variant: "flat",
1051
1051
  color: "primary",
1052
- onClick: b
1052
+ onClick: S
1053
1053
  }, {
1054
- default: L(() => [l(Y, {
1054
+ default: L(() => [l(X, {
1055
1055
  content: P(u).text,
1056
1056
  translate: P(u).translateText
1057
1057
  }, null, 8, ["content", "translate"])]),
@@ -1065,13 +1065,13 @@ var pt = {
1065
1065
  "width"
1066
1066
  ]));
1067
1067
  }
1068
- }), ht = {
1068
+ }), gt = {
1069
1069
  key: 0,
1070
1070
  class: "ui-dialog__text"
1071
- }, gt = /* @__PURE__ */ u({
1071
+ }, _t = /* @__PURE__ */ u({
1072
1072
  __name: "ConfirmDialog",
1073
1073
  setup(t) {
1074
- let { data: n, resolve: a, reject: s } = ot(), c = $(n.confirmCta, "yes"), u = $(n.rejectCta, "no"), d = D(!0), f = {
1074
+ let { data: n, resolve: a, reject: s } = st(), c = $(n.confirmCta, "yes"), u = $(n.rejectCta, "no"), d = D(!0), f = {
1075
1075
  reject: null,
1076
1076
  confirm: null
1077
1077
  }, p = r(() => n.highlightCta ?? "confirm"), m = r(() => n.level ?? "primary"), g = r(() => "props" in n ? n.props : {}), _ = r(() => {
@@ -1100,12 +1100,12 @@ var pt = {
1100
1100
  d.value &&= (y = !0, !1);
1101
1101
  }
1102
1102
  function C() {
1103
- f[n.level === ct.DANGER ? "reject" : "confirm"]?.focus();
1103
+ f[n.level === lt.DANGER ? "reject" : "confirm"]?.focus();
1104
1104
  }
1105
1105
  function T() {
1106
1106
  !y && n.throwOnReject ? s() : a(y);
1107
1107
  }
1108
- return (t, r) => (w(), i(it, {
1108
+ return (t, r) => (w(), i(at, {
1109
1109
  "model-value": d.value,
1110
1110
  title: P(n).title,
1111
1111
  "translate-title": P(n).translateTitle,
@@ -1116,7 +1116,7 @@ var pt = {
1116
1116
  onOpened: C,
1117
1117
  onClosed: T
1118
1118
  }, {
1119
- actions: L(() => [(w(!0), o(e, null, O(_.value, (e) => (w(), i(P(R), {
1119
+ actions: L(() => [(w(!0), o(e, null, O(_.value, (e) => (w(), i(P(z), {
1120
1120
  key: e.key,
1121
1121
  ref_for: !0,
1122
1122
  ref: (t) => b(e.key, t),
@@ -1124,7 +1124,7 @@ var pt = {
1124
1124
  color: e.color,
1125
1125
  onClick: e.onClick
1126
1126
  }, {
1127
- default: L(() => [l(Y, {
1127
+ default: L(() => [l(X, {
1128
1128
  content: e.cta.text,
1129
1129
  translate: e.cta.translateText
1130
1130
  }, null, 8, ["content", "translate"])]),
@@ -1134,7 +1134,7 @@ var pt = {
1134
1134
  "color",
1135
1135
  "onClick"
1136
1136
  ]))), 128))]),
1137
- default: L(() => ["content" in P(n) ? (w(), o("p", ht, [l(Y, {
1137
+ default: L(() => ["content" in P(n) ? (w(), o("p", gt, [l(X, {
1138
1138
  content: P(n).content,
1139
1139
  translate: P(n).translateContent
1140
1140
  }, null, 8, ["content", "translate"])])) : (w(), i(A(P(n).component), v(h({ key: 1 }, g.value)), null, 16))]),
@@ -1150,39 +1150,39 @@ var pt = {
1150
1150
  });
1151
1151
  //#endregion
1152
1152
  //#region lib/composables/dialog/internal/declaresProp.ts
1153
- function _t(e, t) {
1153
+ function vt(e, t) {
1154
1154
  let n = e.props;
1155
1155
  return Array.isArray(n) ? n.includes(t) : typeof n == "object" && !!n && t in n;
1156
1156
  }
1157
1157
  //#endregion
1158
1158
  //#region lib/composables/dialog/internal/isEmptyValue.ts
1159
- function vt(e) {
1159
+ function yt(e) {
1160
1160
  let t = Object.getPrototypeOf(e);
1161
1161
  return t === Object.prototype || t === null;
1162
1162
  }
1163
- function yt(e) {
1164
- return e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : e instanceof Date ? Number.isNaN(e.getTime()) : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" && vt(e) && Object.keys(e).length === 0;
1163
+ function bt(e) {
1164
+ return e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : e instanceof Date ? Number.isNaN(e.getTime()) : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" && yt(e) && Object.keys(e).length === 0;
1165
1165
  }
1166
1166
  //#endregion
1167
1167
  //#region lib/internal/toErrorMessage.ts
1168
- function bt(e, t) {
1168
+ function xt(e, t) {
1169
1169
  return e instanceof Error ? e.message : typeof e == "string" ? e : typeof e == "object" && e && "message" in e && typeof e.message == "string" ? e.message : t;
1170
1170
  }
1171
1171
  //#endregion
1172
1172
  //#region lib/composables/dialog/components/dialog/presets/FormDialog.vue
1173
- var xt = /* @__PURE__ */ u({
1173
+ var St = /* @__PURE__ */ u({
1174
1174
  __name: "FormDialog",
1175
1175
  setup(e) {
1176
- let { data: t, resolve: n, reject: o } = ot(), { options: c } = W(), u = J(), d = $(t.saveCta, "save"), f = $(t.abortCta, "cancel"), p = r(() => u(c.i18n.messages.saveFailed, !0)), m = r(() => u(c.i18n.messages.unknownError, !0)), g = D(!0), _ = D(null), y = D(ee(t.initialValue) ?? null), b = M(null), x = M(null), S = F("content"), C = ge(), { loading: E, action: O } = ft(I), k = D(!1), j = r(() => !!t.required && b.value === null && yt(y.value)), N = r(() => {
1176
+ let { data: t, resolve: n, reject: o } = st(), { options: c } = G(), u = Y(), d = $(t.saveCta, "save"), f = $(t.abortCta, "cancel"), p = r(() => u(c.i18n.messages.saveFailed, !0)), m = r(() => u(c.i18n.messages.unknownError, !0)), g = D(!0), _ = D(null), y = D(ee(t.initialValue) ?? null), b = M(null), x = M(null), S = F("content"), C = he(), { loading: E, action: O } = pt(I), k = D(!1), j = r(() => !!t.required && b.value === null && bt(y.value)), N = r(() => {
1177
1177
  let e = { ...t.props };
1178
- return _t(t.component, "modelValue") && (e.modelValue = y.value, e["onUpdate:modelValue"] = (e) => {
1178
+ return vt(t.component, "modelValue") && (e.modelValue = y.value, e["onUpdate:modelValue"] = (e) => {
1179
1179
  y.value = e;
1180
- }), _t(t.component, "toolbar") && (e.toolbar = x.value), e;
1180
+ }), vt(t.component, "toolbar") && (e.toolbar = x.value), e;
1181
1181
  }), te = null;
1182
1182
  function ne(e) {
1183
1183
  e instanceof HTMLDivElement && (x.value = e);
1184
1184
  }
1185
- T(ve, {
1185
+ T(_e, {
1186
1186
  register(e) {
1187
1187
  b.value = e;
1188
1188
  },
@@ -1196,7 +1196,7 @@ var xt = /* @__PURE__ */ u({
1196
1196
  if (!await C.value.$validate() || !g.value) return;
1197
1197
  _.value = null, await O();
1198
1198
  } catch (e) {
1199
- _.value = bt(e, m.value);
1199
+ _.value = xt(e, m.value);
1200
1200
  } finally {
1201
1201
  k.value = !1;
1202
1202
  }
@@ -1215,7 +1215,7 @@ var xt = /* @__PURE__ */ u({
1215
1215
  function oe() {
1216
1216
  t.required && te === null ? o() : n(te);
1217
1217
  }
1218
- return (e, n) => (w(), i(it, {
1218
+ return (e, n) => (w(), i(at, {
1219
1219
  "model-value": g.value,
1220
1220
  title: P(t).title,
1221
1221
  "translate-title": P(t).translateTitle,
@@ -1231,30 +1231,30 @@ var xt = /* @__PURE__ */ u({
1231
1231
  ref: ne,
1232
1232
  class: "ui-dialog__toolbar"
1233
1233
  }, null, 512)]),
1234
- actions: L(() => [l(P(R), {
1234
+ actions: L(() => [l(P(z), {
1235
1235
  variant: "text",
1236
1236
  disabled: P(E),
1237
1237
  onClick: ie
1238
1238
  }, {
1239
- default: L(() => [l(Y, {
1239
+ default: L(() => [l(X, {
1240
1240
  content: P(f).text,
1241
1241
  translate: P(f).translateText
1242
1242
  }, null, 8, ["content", "translate"])]),
1243
1243
  _: 1
1244
- }, 8, ["disabled"]), l(P(R), {
1244
+ }, 8, ["disabled"]), l(P(z), {
1245
1245
  variant: "flat",
1246
1246
  color: "primary",
1247
1247
  type: "submit",
1248
1248
  disabled: j.value,
1249
1249
  loading: P(E)
1250
1250
  }, {
1251
- default: L(() => [l(Y, {
1251
+ default: L(() => [l(X, {
1252
1252
  content: P(d).text,
1253
1253
  translate: P(d).translateText
1254
1254
  }, null, 8, ["content", "translate"])]),
1255
1255
  _: 1
1256
1256
  }, 8, ["disabled", "loading"])]),
1257
- default: L(() => [_.value === null ? a("", !0) : (w(), i(P(ue), {
1257
+ default: L(() => [_.value === null ? a("", !0) : (w(), i(P(le), {
1258
1258
  key: 0,
1259
1259
  type: "error",
1260
1260
  variant: "tonal",
@@ -1280,7 +1280,7 @@ var xt = /* @__PURE__ */ u({
1280
1280
  "persistent"
1281
1281
  ]));
1282
1282
  }
1283
- }), St = ["role"], Ct = { class: "ui-toast__message" }, wt = /* @__PURE__ */ u({
1283
+ }), Ct = ["role"], wt = { class: "ui-toast__message" }, Tt = /* @__PURE__ */ u({
1284
1284
  __name: "ToastEntry",
1285
1285
  setup(e) {
1286
1286
  let t = {
@@ -1288,34 +1288,34 @@ var xt = /* @__PURE__ */ u({
1288
1288
  [Z.SUCCESS]: Q.success,
1289
1289
  [Z.INFO]: Q.info,
1290
1290
  [Z.WARNING]: Q.warning
1291
- }, { entry: n, close: c, trigger: u } = ut(), { options: d } = W(), f = J(), p = r(() => f(d.i18n.messages.close, !0)), m = r(() => t[n.type]), h = r(() => n.type === Z.ERROR ? "alert" : void 0);
1291
+ }, { entry: n, close: c, trigger: u } = dt(), { options: d } = G(), f = Y(), p = r(() => f(d.i18n.messages.close, !0)), m = r(() => t[n.type]), h = r(() => n.type === Z.ERROR ? "alert" : void 0);
1292
1292
  return (e, t) => (w(), o("div", {
1293
1293
  class: "ui-toast",
1294
1294
  role: h.value
1295
1295
  }, [
1296
- l(P(pe), {
1296
+ l(P(fe), {
1297
1297
  icon: m.value,
1298
1298
  size: "20",
1299
1299
  class: "ui-toast__icon"
1300
1300
  }, null, 8, ["icon"]),
1301
- s("span", Ct, [l(Y, {
1301
+ s("span", wt, [l(X, {
1302
1302
  content: P(n).message,
1303
1303
  translate: P(n).translateMessage
1304
1304
  }, null, 8, ["content", "translate"])]),
1305
- P(n).action ? (w(), i(P(R), {
1305
+ P(n).action ? (w(), i(P(z), {
1306
1306
  key: 0,
1307
1307
  variant: "text",
1308
1308
  size: "small",
1309
1309
  class: "ui-toast__action",
1310
1310
  onClick: P(u)
1311
1311
  }, {
1312
- default: L(() => [l(Y, {
1312
+ default: L(() => [l(X, {
1313
1313
  content: P(n).action.text,
1314
1314
  translate: P(n).action.translateText ?? !0
1315
1315
  }, null, 8, ["content", "translate"])]),
1316
1316
  _: 1
1317
1317
  }, 8, ["onClick"])) : a("", !0),
1318
- l(P(R), {
1318
+ l(P(z), {
1319
1319
  variant: "text",
1320
1320
  size: "small",
1321
1321
  icon: P(Q).close,
@@ -1327,9 +1327,9 @@ var xt = /* @__PURE__ */ u({
1327
1327
  "aria-label",
1328
1328
  "onClick"
1329
1329
  ])
1330
- ], 8, St));
1330
+ ], 8, Ct));
1331
1331
  }
1332
- }), Tt = () => ({
1332
+ }), Et = () => ({
1333
1333
  loading: {
1334
1334
  delay: 2e3,
1335
1335
  overlay: !1
@@ -1352,17 +1352,17 @@ var xt = /* @__PURE__ */ u({
1352
1352
  } },
1353
1353
  components: {
1354
1354
  dialog: {
1355
- info: m(mt),
1356
- confirm: m(gt),
1357
- form: m(xt)
1355
+ info: m(ht),
1356
+ confirm: m(_t),
1357
+ form: m(St)
1358
1358
  },
1359
- toast: m(wt)
1359
+ toast: m(Tt)
1360
1360
  }
1361
1361
  });
1362
1362
  //#endregion
1363
1363
  //#region lib/plugin/helper/resolvePluginOptions.ts
1364
- function Et(e = {}) {
1365
- let { components: t, ...n } = e, r = Tt(), i = B(r, n);
1364
+ function Dt(e = {}) {
1365
+ let { components: t, ...n } = e, r = Et(), i = V(r, n);
1366
1366
  return i.components = {
1367
1367
  dialog: {
1368
1368
  info: m(t?.dialog?.info ?? r.components.dialog.info),
@@ -1374,7 +1374,7 @@ function Et(e = {}) {
1374
1374
  }
1375
1375
  //#endregion
1376
1376
  //#region lib/plugin/helper/createPluginContext.ts
1377
- function Dt(e) {
1377
+ function Ot(e) {
1378
1378
  return {
1379
1379
  dialogQueue: D([]),
1380
1380
  toastQueue: D([]),
@@ -1385,10 +1385,10 @@ function Dt(e) {
1385
1385
  }
1386
1386
  //#endregion
1387
1387
  //#region lib/plugin/createUIKit.ts
1388
- function Ot(e) {
1388
+ function kt(e) {
1389
1389
  return (t) => {
1390
- t.provide(U, Dt(Et(e)));
1390
+ t.provide(W, Ot(Dt(e)));
1391
1391
  };
1392
1392
  }
1393
1393
  //#endregion
1394
- export { ct as ConfirmDialogLevel, Z as ToastType, Ze as UiBottomSheet, Ee as UiKitOutlet, it as UiResponsiveDialog, Ot as createUIKit, at as useDialog, ot as useDialogEntry, st as useDialogForm, ft as useLoading, we as useLoadingOverlay, lt as useToast, ut as useToastEntry };
1394
+ export { lt as ConfirmDialogLevel, Z as ToastType, Ze as UiBottomSheet, Ee as UiKitOutlet, at as UiResponsiveDialog, kt as createUIKit, ot as useDialog, st as useDialogEntry, ct as useDialogForm, pt as useLoading, we as useLoadingOverlay, ut as useToast, dt as useToastEntry };
@@ -0,0 +1 @@
1
+ export {}
package/dist/ui-kit.css CHANGED
@@ -1,2 +1,2 @@
1
- .ui-toast-outlet__announcer{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ui-toast-outlet{z-index:9999;pointer-events:none;flex-direction:column;gap:8px;width:calc(100% - 32px);max-width:560px;display:flex;position:fixed;bottom:16px;left:50%;transform:translate(-50%)}.ui-toast-outlet--mobile{width:calc(100% - 16px);bottom:8px}.ui-toast-move,.ui-toast-enter-active,.ui-toast-leave-active{transition:opacity .2s,transform .2s}.ui-toast-enter-from,.ui-toast-leave-to{opacity:0;transform:translateY(8px)}.ui-toast-leave-active{position:absolute}@media (prefers-reduced-motion:reduce){.ui-toast-move,.ui-toast-enter-active,.ui-toast-leave-active{transition-duration:0s}.ui-toast-enter-from,.ui-toast-leave-to{transform:none}}.v-bottom-sheet>.v-bottom-sheet__content.v-overlay__content.ui-sheet-overlay{max-height:100%;box-shadow:none;margin:0}.ui-sheet{--ui-sheet-border:rgba(var(--v-border-color), var(--v-border-opacity));--ui-sheet-motion:.25s cubic-bezier(.2, 0, 0, 1);background:rgb(var(--v-theme-surface));max-height:100dvh;color:rgb(var(--v-theme-ink,var(--v-theme-on-surface)));box-shadow:var(--v-shadow-lg,0 -4px 8px #1d1b1614, 0 -16px 48px #1d1b162e);transition:height var(--ui-sheet-motion), transform var(--ui-sheet-motion), border-radius var(--ui-sheet-motion);border-radius:16px 16px 0 0;flex-direction:column;display:flex;overflow:hidden}.ui-sheet--content{max-height:90dvh}.ui-sheet--fullscreen{border-radius:0;height:100dvh}.ui-sheet--dragging,.ui-sheet--dismissing{-webkit-user-select:none;user-select:none;max-height:none;transition:none}.ui-sheet__layout{flex-direction:column;flex:auto;min-height:0;display:flex}.ui-sheet__handle{width:100%;color:inherit;cursor:grab;touch-action:none;background:0 0;border:0;flex:none;justify-content:center;padding:10px 0 6px;display:flex}.ui-sheet__handle:focus-visible{outline:none}.ui-sheet__handle:focus-visible .ui-sheet__grip{box-shadow:0 0 0 2px rgb(var(--v-theme-primary))}.ui-sheet--dragging .ui-sheet__handle{cursor:grabbing}.ui-sheet__grip{background:rgb(var(--v-theme-ink-3,var(--v-theme-on-surface)));opacity:.4;border-radius:2px;width:32px;height:4px}.ui-sheet__header{touch-action:none;flex:none;align-items:center;gap:12px;min-height:40px;padding:0 16px 0 24px;display:flex}.ui-sheet--fullscreen .ui-sheet__header{border-bottom:1px solid var(--ui-sheet-border);padding-bottom:8px}.ui-sheet__title{overflow-wrap:anywhere;flex:1;margin:0;font-size:1.25rem;font-weight:600;line-height:1.75rem}.ui-sheet__body{overscroll-behavior:contain;flex:auto;min-height:0;padding:16px 24px 8px;font-size:.875rem;line-height:1.25rem;overflow-y:auto}.ui-sheet__preview,.ui-sheet__content{align-content:start;gap:20px;display:grid}.ui-sheet__footer{padding:12px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-sheet-border);flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.ui-sheet{transition:none}}.ui-responsive-dialog__slot{display:contents}.ui-dialog{background:rgb(var(--v-theme-surface));max-height:calc(100dvh - 48px);color:rgb(var(--v-theme-ink,var(--v-theme-on-surface)));box-shadow:var(--v-shadow-lg,0 4px 8px #1d1b1614, 0 24px 48px #1d1b162e);border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.ui-dialog__layout{flex-direction:column;flex:auto;min-height:0;display:flex}.ui-dialog__header{align-items:flex-start;gap:12px;padding:20px 16px 0 24px;display:flex}.ui-dialog__title{overflow-wrap:anywhere;flex:1;margin:4px 0 0;font-size:1.25rem;font-weight:600;line-height:1.75rem}.ui-dialog__body{flex:auto;align-content:start;gap:20px;min-height:0;padding:16px 24px 8px;font-size:.875rem;line-height:1.25rem;display:grid;overflow-y:auto}.ui-dialog__text{margin:0}.ui-dialog__footer{justify-content:flex-end;align-items:center;gap:8px;padding:16px 24px 20px;display:flex}.ui-dialog__toolbar{display:contents}.ui-toast{background:rgb(var(--v-theme-surface-inverse,var(--v-theme-surface-variant)));min-height:48px;color:rgb(var(--v-theme-on-surface-inverse,var(--v-theme-on-surface-variant)));box-shadow:var(--v-shadow-lg,0 4px 8px #1d1b1614, 0 24px 48px #1d1b162e);pointer-events:auto;border-radius:10px;align-items:center;gap:12px;padding:6px 6px 6px 16px;font-size:.875rem;line-height:1.25rem;display:flex}.ui-toast__icon{flex:none}.ui-toast__message{overflow-wrap:anywhere;flex:1;min-width:0;padding:8px 0}.ui-toast__action{color:rgb(var(--v-theme-inverse-primary,var(--v-theme-primary)));font-weight:600}.ui-toast__close{color:inherit}
1
+ .ui-toast-outlet__announcer{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ui-toast-outlet{z-index:9999;pointer-events:none;flex-direction:column;gap:8px;width:calc(100% - 32px);max-width:560px;display:flex;position:fixed;bottom:16px;left:50%;transform:translate(-50%)}.ui-toast-outlet--mobile{width:calc(100% - 16px);bottom:8px}.ui-toast-move,.ui-toast-enter-active,.ui-toast-leave-active{transition:opacity .2s,transform .2s}.ui-toast-enter-from,.ui-toast-leave-to{opacity:0;transform:translateY(8px)}.ui-toast-leave-active{position:absolute}@media (prefers-reduced-motion:reduce){.ui-toast-move,.ui-toast-enter-active,.ui-toast-leave-active{transition-duration:0s}.ui-toast-enter-from,.ui-toast-leave-to{transform:none}}.v-bottom-sheet>.v-bottom-sheet__content.v-overlay__content.ui-sheet-overlay{max-height:100%;box-shadow:none;margin:0 auto}.ui-sheet{--ui-sheet-border:rgba(var(--v-border-color), var(--v-border-opacity));--ui-sheet-motion:.25s cubic-bezier(.2, 0, 0, 1);background:rgb(var(--v-theme-surface));max-height:100dvh;color:rgb(var(--v-theme-ink,var(--v-theme-on-surface)));box-shadow:var(--v-shadow-lg,0 -4px 8px #1d1b1614, 0 -16px 48px #1d1b162e);transition:height var(--ui-sheet-motion), transform var(--ui-sheet-motion), border-radius var(--ui-sheet-motion);border-radius:16px 16px 0 0;flex-direction:column;display:flex;overflow:hidden}.ui-sheet--content{max-height:90dvh}.ui-sheet--fullscreen{border-radius:0;height:100dvh}.ui-sheet--dragging,.ui-sheet--dismissing{-webkit-user-select:none;user-select:none;max-height:none;transition:none}.ui-sheet__layout{flex-direction:column;flex:auto;min-height:0;display:flex}.ui-sheet__handle{width:100%;color:inherit;cursor:grab;touch-action:none;background:0 0;border:0;flex:none;justify-content:center;padding:10px 0 6px;display:flex}.ui-sheet__handle:focus-visible{outline:none}.ui-sheet__handle:focus-visible .ui-sheet__grip{box-shadow:0 0 0 2px rgb(var(--v-theme-primary))}.ui-sheet--dragging .ui-sheet__handle{cursor:grabbing}.ui-sheet__grip{background:rgb(var(--v-theme-ink-3,var(--v-theme-on-surface)));opacity:.4;border-radius:2px;width:32px;height:4px}.ui-sheet__header{touch-action:none;flex:none;align-items:center;gap:12px;min-height:40px;padding:0 16px 0 24px;display:flex}.ui-sheet--fullscreen .ui-sheet__header{border-bottom:1px solid var(--ui-sheet-border);padding-bottom:8px}.ui-sheet__close{margin-inline-start:auto}.ui-sheet__title{overflow-wrap:anywhere;flex:1;margin:0;font-size:1.25rem;font-weight:600;line-height:1.75rem}.ui-sheet__body{overscroll-behavior:contain;flex:auto;min-height:0;padding:16px 0 8px;font-size:.875rem;line-height:1.25rem;overflow-y:auto}.ui-sheet__preview,.ui-sheet__content{align-content:start;gap:20px;display:grid}.ui-sheet__footer{padding:12px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-sheet-border);flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.ui-sheet{transition:none}}.ui-responsive-dialog__slot{display:contents}.ui-responsive-dialog__sheet-section{align-content:start;gap:20px;padding:0 24px;display:grid}.ui-dialog{background:rgb(var(--v-theme-surface));max-height:calc(100dvh - 48px);color:rgb(var(--v-theme-ink,var(--v-theme-on-surface)));box-shadow:var(--v-shadow-lg,0 4px 8px #1d1b1614, 0 24px 48px #1d1b162e);border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.ui-dialog__layout{flex-direction:column;flex:auto;min-height:0;display:flex}.ui-dialog__header{align-items:flex-start;gap:12px;padding:20px 16px 0 24px;display:flex}.ui-dialog__title{overflow-wrap:anywhere;flex:1;margin:4px 0 0;font-size:1.25rem;font-weight:600;line-height:1.75rem}.ui-dialog__body{flex:auto;align-content:start;gap:20px;min-height:0;padding:16px 24px 8px;font-size:.875rem;line-height:1.25rem;display:grid;overflow-y:auto}.ui-dialog__text{margin:0}.ui-dialog__footer{justify-content:flex-end;align-items:center;gap:8px;padding:16px 24px 20px;display:flex}.ui-dialog__toolbar{display:contents}.ui-toast{background:rgb(var(--v-theme-surface-inverse,var(--v-theme-surface-variant)));min-height:48px;color:rgb(var(--v-theme-on-surface-inverse,var(--v-theme-on-surface-variant)));box-shadow:var(--v-shadow-lg,0 4px 8px #1d1b1614, 0 24px 48px #1d1b162e);pointer-events:auto;border-radius:10px;align-items:center;gap:12px;padding:6px 6px 6px 16px;font-size:.875rem;line-height:1.25rem;display:flex}.ui-toast__icon{flex:none}.ui-toast__message{overflow-wrap:anywhere;flex:1;min-width:0;padding:8px 0}.ui-toast__action{color:rgb(var(--v-theme-inverse-primary,var(--v-theme-primary)));font-weight:600}.ui-toast__close{color:inherit}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schwarzdavid/ui-kit",
3
- "version": "0.0.1-alpha.19",
3
+ "version": "0.0.1-alpha.20",
4
4
  "description": "Vue 3 + Vuetify composables and components for dialogs, toasts, loading states and Vuelidate helpers",
5
5
  "keywords": [
6
6
  "vue",
@@ -60,7 +60,10 @@
60
60
  },
61
61
  "./vuetify/settings.scss": "./dist/vuetify/settings.scss",
62
62
  "./vuetify/settings": "./dist/vuetify/settings.scss",
63
- "./styles": "./dist/ui-kit.css"
63
+ "./styles": {
64
+ "types": "./dist/styles.d.ts",
65
+ "default": "./dist/ui-kit.css"
66
+ }
64
67
  },
65
68
  "peerDependencies": {
66
69
  "@vuelidate/core": "^2.0.0",