@defaultusr/dai-ui 1.1.8 → 1.1.10

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 +20 -16
  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
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 R, defineComponent as v, createElementBlock as u, openBlock as a, 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 x, useId as L, mergeProps as _, unref as r, inject as ve, Fragment as I, useTemplateRef as q, ref as N, onMounted as j, withDirectives as F, 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 Z, TransitionGroup as ke, withModifiers as $e } from "vue";
3
+ import { reactive as ce, watch as T, onUnmounted as R, defineComponent as v, createElementBlock as u, openBlock as a, 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 x, useId as L, mergeProps as _, 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 Z, 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 l = ce(t);
@@ -20,7 +20,7 @@ import './assets/main.css';function xe(e, ...t) {
20
20
  classList: l
21
21
  };
22
22
  }
23
- const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
23
+ const _e = { class: "dai-label" }, F = /* @__PURE__ */ v({
24
24
  __name: "label",
25
25
  props: {
26
26
  text: {}
@@ -69,7 +69,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
69
69
  "dai-form-control__input-group--invalid": e.invalid
70
70
  }])
71
71
  }, [
72
- e.label ? (a(), m(O, {
72
+ e.label ? (a(), m(F, {
73
73
  key: 0,
74
74
  text: e.label,
75
75
  for: e.labelFor,
@@ -112,7 +112,7 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
112
112
  "dai-form-control--lg": l.value === "large"
113
113
  }])
114
114
  }, [
115
- e.label && e.labelPosition !== "inside" ? (a(), m(O, {
115
+ e.label && e.labelPosition !== "inside" ? (a(), m(F, {
116
116
  key: 0,
117
117
  for: e.labelFor,
118
118
  text: e.label
@@ -222,11 +222,15 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
222
222
  const t = ve(ae);
223
223
  if (!t)
224
224
  throw new Error("Combobox injectable context is not provided");
225
- const o = $(() => ({
225
+ $(() => ({
226
226
  ...t.activatorAttrs.value,
227
227
  onclick: () => t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 })
228
228
  }));
229
- return (l, i) => (a(), u("button", _(o.value, {
229
+ function o() {
230
+ t.isOpen.value ? t.close({ focus: !0 }) : t.open({ focus: !1 });
231
+ }
232
+ return (l, i) => (a(), u("button", _(r(t).activatorAttrs.value, {
233
+ onClick: o,
230
234
  type: "button",
231
235
  class: "dai-form-control__input-group__control dai-combobox-btn"
232
236
  }), [
@@ -305,18 +309,18 @@ const _e = { class: "dai-label" }, O = /* @__PURE__ */ v({
305
309
  for (const [l, i] of t)
306
310
  o[l] = i;
307
311
  return o;
308
- }, je = {}, Fe = {
312
+ }, je = {}, Oe = {
309
313
  type: "button",
310
314
  class: "dai-form-control__input-group__addon dai-form-control__input-group__addon--btn",
311
315
  tabindex: "-1",
312
316
  "aria-hidden": "true"
313
317
  };
314
- function Oe(e, t) {
315
- return a(), u("button", Fe, [
318
+ function Fe(e, t) {
319
+ return a(), u("button", Oe, [
316
320
  p(e.$slots, "default")
317
321
  ]);
318
322
  }
319
- const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
323
+ const Y = /* @__PURE__ */ Ie(je, [["render", Fe]]), Se = ["id", "type", "pattern", "title", "autocomplete", "value"], Ue = {
320
324
  key: 0,
321
325
  xmlns: "http://www.w3.org/2000/svg",
322
326
  fill: "none",
@@ -519,7 +523,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
519
523
  class: b.$attrs.class
520
524
  }), {
521
525
  default: c(() => [
522
- F(d("select", _({
526
+ O(d("select", _({
523
527
  ref_key: "formElement",
524
528
  ref: i
525
529
  }, { ...b.$attrs, class: void 0 }, {
@@ -637,7 +641,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
637
641
  class: y.$attrs.class
638
642
  }), {
639
643
  default: c(() => [
640
- F(d("textarea", _({
644
+ O(d("textarea", _({
641
645
  ref_key: "formElement",
642
646
  ref: i
643
647
  }, { ...y.$attrs, class: void 0 }, {
@@ -678,7 +682,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
678
682
  return (n, g) => (a(), u("div", {
679
683
  class: w(["dai-checkbox-control", n.$attrs.class])
680
684
  }, [
681
- F(d("input", _({
685
+ O(d("input", _({
682
686
  ref_key: "formElement",
683
687
  ref: i,
684
688
  "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
@@ -692,7 +696,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
692
696
  }), null, 16, Ye), [
693
697
  [be, o.value]
694
698
  ]),
695
- e.label || n.$slots.default ? (a(), m(O, {
699
+ e.label || n.$slots.default ? (a(), m(F, {
696
700
  key: 0,
697
701
  for: r(l)
698
702
  }, {
@@ -747,7 +751,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
747
751
  class: w(["flex items-start gap-3", n.$attrs.class])
748
752
  }, [
749
753
  d("div", Re, [
750
- F(d("input", _({
754
+ O(d("input", _({
751
755
  type: "radio",
752
756
  ref_key: "formElement",
753
757
  ref: i,
@@ -799,7 +803,7 @@ const Y = /* @__PURE__ */ Ie(je, [["render", Oe]]), Se = ["id", "type", "pattern
799
803
  class: "dai-switch__thumb"
800
804
  }, null, -1)
801
805
  ])], 10, Je),
802
- e.label || l.$slots.default ? (a(), m(O, {
806
+ e.label || l.$slots.default ? (a(), m(F, {
803
807
  key: 0,
804
808
  for: r(o)
805
809
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defaultusr/dai-ui",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"