@defaultusr/dai-ui 1.1.11 → 1.1.12

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 (2) hide show
  1. package/dist/main.js +29 -30
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Combobox as te, ComboboxInput as oe, injectCombobox as ae, ComboboxOptions as le, ComboboxOption as ie, useFormControl as A, PopoverDialog as ne, MenuItems as se, MenuItem as re, Tab as de, TabList as ue } from "vue-composable-ui";
2
- import { Menu as St, Popover as Ut, TabContainer as Dt, TabPanel as Nt } from "vue-composable-ui";
3
- import { reactive as ce, watch as T, onUnmounted as Y, defineComponent as v, createElementBlock as u, openBlock as l, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as m, createCommentVNode as h, createElementVNode as d, computed as _, createVNode as V, normalizeProps as fe, guardReactiveProps as me, withCtx as c, Transition as P, mergeModels as M, useModel as $, useId as L, mergeProps as x, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as D, onMounted as j, withDirectives as O, renderList as N, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as R, TransitionGroup as ke, withModifiers as $e } from "vue";
2
+ import { Menu as St, Popover as Ut, TabContainer as Nt, TabPanel as Xt } from "vue-composable-ui";
3
+ import { reactive as ce, watch as T, onUnmounted as K, defineComponent as v, createElementBlock as u, openBlock as l, renderSlot as p, createTextVNode as E, toDisplayString as k, normalizeClass as w, createBlock as m, createCommentVNode as h, createElementVNode as d, computed as _, createVNode as V, normalizeProps as fe, guardReactiveProps as me, withCtx as c, Transition as P, mergeModels as M, useModel as $, useId as L, mergeProps as x, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as N, onMounted as j, withDirectives as O, renderList as X, vModelSelect as pe, vModelText as he, vModelCheckbox as be, vModelRadio as ye, resolveDynamicComponent as ge, nextTick as we, normalizeStyle as U, Teleport as R, TransitionGroup as ke, withModifiers as $e } from "vue";
4
4
  import './assets/main.css';function xe(e, ...t) {
5
5
  let o = [];
6
6
  const i = ce(t);
@@ -16,7 +16,7 @@ import './assets/main.css';function xe(e, ...t) {
16
16
  s(), a();
17
17
  },
18
18
  { immediate: !0 }
19
- ), Y(s), {
19
+ ), K(s), {
20
20
  classList: i
21
21
  };
22
22
  }
@@ -32,7 +32,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
32
32
  ])
33
33
  ]));
34
34
  }
35
- }), Be = { class: "dai-hint" }, X = /* @__PURE__ */ v({
35
+ }), Be = { class: "dai-hint" }, D = /* @__PURE__ */ v({
36
36
  __name: "hint",
37
37
  props: {
38
38
  text: {}
@@ -129,7 +129,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
129
129
  ]),
130
130
  _: 3
131
131
  }, 16),
132
- e.hint ? (l(), m(X, {
132
+ e.hint ? (l(), m(D, {
133
133
  key: 0,
134
134
  text: e.hint,
135
135
  class: "dai-form-control__hint"
@@ -226,8 +226,7 @@ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
226
226
  t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 });
227
227
  }
228
228
  return (i, a) => (l(), u("button", x(r(t).activatorAttrs.value, {
229
- onKeydown: a[0] || (a[0] = //@ts-ignore
230
- (...s) => r(t).activatorOnKeyDown && r(t).activatorOnKeyDown(...s)),
229
+ onKeydown: a[0] || (a[0] = (s) => r(t).activatorOnKeyDown(s)),
231
230
  onClick: o,
232
231
  type: "button",
233
232
  class: "dai-form-control__input-group__control dai-combobox-btn"
@@ -318,13 +317,13 @@ function Fe(e, t) {
318
317
  p(e.$slots, "default")
319
318
  ]);
320
319
  }
321
- const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
320
+ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
322
321
  key: 0,
323
322
  xmlns: "http://www.w3.org/2000/svg",
324
323
  fill: "none",
325
324
  viewBox: "0 0 24 24",
326
325
  stroke: "currentColor"
327
- }, De = {
326
+ }, Ne = {
328
327
  key: 1,
329
328
  xmlns: "http://www.w3.org/2000/svg",
330
329
  fill: "none",
@@ -373,7 +372,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
373
372
  n,
374
373
  t.validators,
375
374
  t.showValidationError
376
- ), f = D(!1);
375
+ ), f = N(!1);
377
376
  T(a, () => {
378
377
  s.value = n.value?.files || null;
379
378
  });
@@ -425,12 +424,12 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
425
424
  class: "dai-form-control__input-group__control dai-form-control__input"
426
425
  }), null, 16, Se),
427
426
  p(B.$slots, "append"),
428
- t.type === "password" && a.value ? (l(), m(K, {
427
+ t.type === "password" && a.value ? (l(), m(Y, {
429
428
  key: 0,
430
429
  onClick: W
431
430
  }, {
432
431
  default: c(() => [
433
- f.value ? (l(), u("svg", De, [...z[2] || (z[2] = [
432
+ f.value ? (l(), u("svg", Ne, [...z[2] || (z[2] = [
434
433
  d("path", {
435
434
  "stroke-linecap": "round",
436
435
  "stroke-linejoin": "round",
@@ -454,7 +453,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
454
453
  ]),
455
454
  _: 1
456
455
  })) : h("", !0),
457
- e.clearable && a.value && !t.disabled ? (l(), m(K, {
456
+ e.clearable && a.value && !t.disabled ? (l(), m(Y, {
458
457
  key: 1,
459
458
  onClick: J
460
459
  }, {
@@ -479,7 +478,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
479
478
  _: 3
480
479
  }, 16, ["label-for", "validation-message", "invalid", "class"]));
481
480
  }
482
- }), Ne = ["id"], Xe = ["value"], $t = /* @__PURE__ */ v({
481
+ }), Xe = ["id"], De = ["value"], $t = /* @__PURE__ */ v({
483
482
  inheritAttrs: !1,
484
483
  __name: "select",
485
484
  props: /* @__PURE__ */ M({
@@ -530,12 +529,12 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
530
529
  class: "dai-form-control__input-group__control dai-select"
531
530
  }), [
532
531
  p(b.$slots, "default", {}, () => [
533
- (l(!0), u(I, null, N(e.options, (f) => (l(), u("option", {
532
+ (l(!0), u(I, null, X(e.options, (f) => (l(), u("option", {
534
533
  value: f[e.optionValue],
535
534
  key: f[e.optionValue]
536
- }, k(f[e.optionText]), 9, Xe))), 128))
535
+ }, k(f[e.optionText]), 9, De))), 128))
537
536
  ])
538
- ], 16, Ne), [
537
+ ], 16, Xe), [
539
538
  [pe, i.value]
540
539
  ]),
541
540
  y[1] || (y[1] = d("svg", {
@@ -592,7 +591,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
592
591
  V(r(qe), { placeholder: e.placeholder }, null, 8, ["placeholder"]),
593
592
  V(r(Te), null, {
594
593
  default: c(() => [
595
- (l(!0), u(I, null, N(e.options, (s) => (l(), m(r(Ae), {
594
+ (l(!0), u(I, null, X(e.options, (s) => (l(), m(r(Ae), {
596
595
  key: s[e.optionValue],
597
596
  value: s[e.optionValue]
598
597
  }, {
@@ -657,7 +656,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
657
656
  _: 1
658
657
  }, 16, ["label-for", "validation-message", "invalid", "class"]));
659
658
  }
660
- }), Ke = ["id"], Bt = /* @__PURE__ */ v({
659
+ }), Ye = ["id"], Bt = /* @__PURE__ */ v({
661
660
  inheritAttrs: !1,
662
661
  __name: "checkbox",
663
662
  props: /* @__PURE__ */ M({
@@ -691,7 +690,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
691
690
  [`dai-checkbox--${e.color}`]: e.color,
692
691
  "dai-checkbox--invalid": !r(s)
693
692
  }]
694
- }), null, 16, Ke), [
693
+ }), null, 16, Ye), [
695
694
  [be, o.value]
696
695
  ]),
697
696
  e.label || n.$slots.default ? (l(), m(F, {
@@ -705,7 +704,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
705
704
  ]),
706
705
  _: 3
707
706
  }, 8, ["for"])) : h("", !0),
708
- e.hint || n.$slots.hint ? (l(), m(X, {
707
+ e.hint || n.$slots.hint ? (l(), m(D, {
709
708
  key: 1,
710
709
  class: "dai-checkbox-control__hint"
711
710
  }, {
@@ -718,7 +717,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
718
717
  })) : h("", !0)
719
718
  ], 2));
720
719
  }
721
- }), Ye = { class: "flex items-center h-5" }, Re = ["value", "id"], Ze = {
720
+ }), Ke = { class: "flex items-center h-5" }, Re = ["value", "id"], Ze = {
722
721
  key: 0,
723
722
  class: "text-sm"
724
723
  }, Ge = ["for"], Qe = {
@@ -748,7 +747,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
748
747
  return (n, g) => (l(), u("div", {
749
748
  class: w(["flex items-start gap-3", n.$attrs.class])
750
749
  }, [
751
- d("div", Ye, [
750
+ d("div", Ke, [
752
751
  O(d("input", x({
753
752
  type: "radio",
754
753
  ref_key: "formElement",
@@ -812,7 +811,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
812
811
  ]),
813
812
  _: 3
814
813
  }, 8, ["for"])) : h("", !0),
815
- e.hint || i.$slots.hint ? (l(), m(X, {
814
+ e.hint || i.$slots.hint ? (l(), m(D, {
816
815
  key: 1,
817
816
  class: "dai-switch-control__hint"
818
817
  }, {
@@ -989,7 +988,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
989
988
  }), Tt = /* @__PURE__ */ v({
990
989
  __name: "tabList",
991
990
  setup(e) {
992
- const t = q("tablist"), o = q("slider"), i = D({});
991
+ const t = q("tablist"), o = q("slider"), i = N({});
993
992
  function a() {
994
993
  if (!o.value) return;
995
994
  const s = t.value?.$el;
@@ -1047,7 +1046,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1047
1046
  }
1048
1047
  return j(() => {
1049
1048
  window.addEventListener("click", s, { passive: !0 });
1050
- }), Y(() => {
1049
+ }), K(() => {
1051
1050
  window.removeEventListener("click", s);
1052
1051
  }), (n, g) => (l(), m(R, { to: "body" }, [
1053
1052
  V(P, {
@@ -1189,7 +1188,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1189
1188
  }),
1190
1189
  emits: ["update:queue"],
1191
1190
  setup(e) {
1192
- const t = e, o = $(e, "queue"), i = D([]);
1191
+ const t = e, o = $(e, "queue"), i = N([]);
1193
1192
  let a = 0;
1194
1193
  function s() {
1195
1194
  o.value.length === 0 || i.value.length >= t.length || (i.value.push({ ...o.value[0], id: a++, show: !0 }), o.value.shift());
@@ -1225,7 +1224,7 @@ const K = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern
1225
1224
  "leave-active-class": "dai-notification-queue__item--anim-out"
1226
1225
  }, {
1227
1226
  default: c(() => [
1228
- (l(!0), u(I, null, N(i.value, (f) => (l(), m(ft, {
1227
+ (l(!0), u(I, null, X(i.value, (f) => (l(), m(ft, {
1229
1228
  key: f.id,
1230
1229
  color: f.color,
1231
1230
  icon: f.type,
@@ -1350,9 +1349,9 @@ export {
1350
1349
  xt as Selectbox,
1351
1350
  Mt as Switch,
1352
1351
  qt as Tab,
1353
- Dt as TabContainer,
1352
+ Nt as TabContainer,
1354
1353
  Tt as TabList,
1355
- Nt as TabPanel,
1354
+ Xt as TabPanel,
1356
1355
  _t as Textarea,
1357
1356
  xe as useClassList
1358
1357
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defaultusr/dai-ui",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"