@quidgest/ui 0.16.53 → 0.16.55

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,5 +1,5 @@
1
1
  import { defineComponent as a, h as s } from "vue";
2
- const o = {}, h = a({
2
+ const i = {}, h = a({
3
3
  name: "InlineSvg",
4
4
  inheritAttrs: !1,
5
5
  props: {
@@ -78,11 +78,11 @@ const o = {}, h = a({
78
78
  */
79
79
  async getSource(t) {
80
80
  try {
81
- o[t] || (o[t] = u(this.download(t))), this.svgElSource && o[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
82
- const e = await o[t];
81
+ i[t] || (i[t] = u(this.download(t))), this.svgElSource && i[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
82
+ const e = await i[t];
83
83
  this.svgElSource = e, await this.$nextTick(), this.$emit("loaded", this.$el);
84
84
  } catch (e) {
85
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete o[t], this.$emit("error", e);
85
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete i[t], this.$emit("error", e);
86
86
  }
87
87
  },
88
88
  /**
@@ -93,9 +93,9 @@ const o = {}, h = a({
93
93
  async download(t) {
94
94
  const e = await fetch(t);
95
95
  if (!e.ok) throw new Error("Error loading SVG");
96
- const r = await e.text(), i = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
97
- if (!i) throw new Error("Loaded file is not a valid SVG");
98
- return i;
96
+ const r = await e.text(), o = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
97
+ if (!o) throw new Error("Loaded file is not a valid SVG");
98
+ return o;
99
99
  }
100
100
  },
101
101
  render() {
@@ -103,7 +103,7 @@ const o = {}, h = a({
103
103
  const t = this.getSvgContent(this.svgElSource);
104
104
  if (!t) return s("div", this.$attrs);
105
105
  const e = {};
106
- return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
106
+ return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, this.$attrs.id || delete e.id, s("svg", e);
107
107
  },
108
108
  expose: []
109
109
  });
@@ -24,6 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
24
24
  placement: import('..').QOverlayPlacement;
25
25
  arrow: boolean;
26
26
  attach: string;
27
+ headingLevel: number;
27
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
30
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAkCA;AA6DC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAuBlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsFT,OAAO,IAA6B;;wBAbtB,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/QPopover.vue"],"names":[],"mappings":"AAsCA;AAyEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA6BlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6FT,OAAO,IAA6B;;wBAbtB,GAAG;kCACO,GAAG;iCACH,GAAG;yBACX,GAAG;;;;EAehC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,17 +1,18 @@
1
- import { defineComponent as c, mergeModels as m, useModel as u, createBlock as h, openBlock as o, unref as f, normalizeClass as y, withCtx as _, createElementVNode as d, createElementBlock as l, createCommentVNode as v, renderSlot as a, Fragment as k, toDisplayString as i } from "vue";
2
- import { QOverlay as B } from "../QOverlay/index.js";
3
- const V = { class: "q-popover__content" }, g = {
1
+ import { defineComponent as u, mergeModels as h, useModel as v, computed as f, createBlock as s, openBlock as a, unref as y, normalizeClass as g, withCtx as i, createElementVNode as _, createElementBlock as l, createCommentVNode as k, renderSlot as o, Fragment as V, resolveDynamicComponent as B, createTextVNode as L, toDisplayString as p } from "vue";
2
+ import { QOverlay as $ } from "../QOverlay/index.js";
3
+ const b = { class: "q-popover__content" }, w = {
4
4
  key: 0,
5
5
  class: "q-popover__header"
6
- }, $ = { class: "q-popover__title" }, b = ["innerHTML"], w = { key: 1 }, C = /* @__PURE__ */ c({
6
+ }, C = ["innerHTML"], M = { key: 1 }, N = /* @__PURE__ */ u({
7
7
  inheritAttrs: !1,
8
8
  __name: "QPopover",
9
- props: /* @__PURE__ */ m({
9
+ props: /* @__PURE__ */ h({
10
10
  id: {},
11
11
  class: {},
12
12
  anchor: {},
13
13
  text: {},
14
14
  title: {},
15
+ headingLevel: { default: 2 },
15
16
  arrow: { type: Boolean, default: !0 },
16
17
  placement: { default: "right" },
17
18
  attach: { default: "body" },
@@ -24,12 +25,12 @@ const V = { class: "q-popover__content" }, g = {
24
25
  }),
25
26
  emits: ["update:modelValue"],
26
27
  setup(n) {
27
- const e = n, s = u(n, "modelValue");
28
- return (t, r) => (o(), h(f(B), {
28
+ const e = n, d = v(n, "modelValue"), c = f(() => e.headingLevel >= 1 && e.headingLevel <= 6 ? "h" + e.headingLevel : "div");
29
+ return (t, r) => (a(), s(y($), {
29
30
  id: e.id,
30
- modelValue: s.value,
31
- "onUpdate:modelValue": r[0] || (r[0] = (p) => s.value = p),
32
- class: y(["q-popover", e.class]),
31
+ modelValue: d.value,
32
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => d.value = m),
33
+ class: g(["q-popover", e.class]),
33
34
  trigger: "click",
34
35
  anchor: e.anchor,
35
36
  arrow: e.arrow,
@@ -38,35 +39,39 @@ const V = { class: "q-popover__content" }, g = {
38
39
  disabled: e.disabled,
39
40
  placement: e.placement
40
41
  }, {
41
- default: _(() => [
42
- d("div", V, [
43
- e.title || t.$slots.header ? (o(), l("div", g, [
44
- t.$slots.header ? a(t.$slots, "header", { key: 0 }) : (o(), l(
45
- k,
42
+ default: i(() => [
43
+ _("div", b, [
44
+ e.title || t.$slots.header ? (a(), l("div", w, [
45
+ t.$slots.header ? o(t.$slots, "header", { key: 0 }) : (a(), l(
46
+ V,
46
47
  { key: 1 },
47
48
  [
48
- a(t.$slots, "header.prepend"),
49
- d(
50
- "h4",
51
- $,
52
- i(e.title),
53
- 1
54
- /* TEXT */
55
- ),
56
- a(t.$slots, "header.append")
49
+ o(t.$slots, "header.prepend"),
50
+ (a(), s(B(c.value), { class: "q-popover__title" }, {
51
+ default: i(() => [
52
+ L(
53
+ p(e.title),
54
+ 1
55
+ /* TEXT */
56
+ )
57
+ ]),
58
+ _: 1
59
+ /* STABLE */
60
+ })),
61
+ o(t.$slots, "header.append")
57
62
  ],
58
63
  64
59
64
  /* STABLE_FRAGMENT */
60
65
  ))
61
- ])) : v("v-if", !0),
62
- a(t.$slots, "default", {}, () => [
63
- e.html ? (o(), l("span", {
66
+ ])) : k("v-if", !0),
67
+ o(t.$slots, "default", {}, () => [
68
+ e.html ? (a(), l("span", {
64
69
  key: 0,
65
70
  innerHTML: e.text
66
- }, null, 8, b)) : (o(), l(
71
+ }, null, 8, C)) : (a(), l(
67
72
  "span",
68
- w,
69
- i(e.text),
73
+ M,
74
+ p(e.text),
70
75
  1
71
76
  /* TEXT */
72
77
  ))
@@ -79,5 +84,5 @@ const V = { class: "q-popover__content" }, g = {
79
84
  }
80
85
  });
81
86
  export {
82
- C as default
87
+ N as default
83
88
  };
@@ -5,6 +5,7 @@ declare const QPopover: {
5
5
  anchor: import('../../utils/getElement').Selector;
6
6
  text?: string;
7
7
  title?: string;
8
+ headingLevel?: number;
8
9
  arrow?: boolean;
9
10
  placement?: import('..').QOverlayPlacement;
10
11
  attach?: string;
@@ -20,6 +21,7 @@ declare const QPopover: {
20
21
  placement: import('..').QOverlayPlacement;
21
22
  arrow: boolean;
22
23
  attach: string;
24
+ headingLevel: number;
23
25
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
24
26
  P: {};
25
27
  B: {};
@@ -33,6 +35,7 @@ declare const QPopover: {
33
35
  anchor: import('../../utils/getElement').Selector;
34
36
  text?: string;
35
37
  title?: string;
38
+ headingLevel?: number;
36
39
  arrow?: boolean;
37
40
  placement?: import('..').QOverlayPlacement;
38
41
  attach?: string;
@@ -46,6 +49,7 @@ declare const QPopover: {
46
49
  placement: import('..').QOverlayPlacement;
47
50
  arrow: boolean;
48
51
  attach: string;
52
+ headingLevel: number;
49
53
  }>;
50
54
  __isFragment?: never;
51
55
  __isTeleport?: never;
@@ -56,6 +60,7 @@ declare const QPopover: {
56
60
  anchor: import('../../utils/getElement').Selector;
57
61
  text?: string;
58
62
  title?: string;
63
+ headingLevel?: number;
59
64
  arrow?: boolean;
60
65
  placement?: import('..').QOverlayPlacement;
61
66
  attach?: string;
@@ -71,6 +76,7 @@ declare const QPopover: {
71
76
  placement: import('..').QOverlayPlacement;
72
77
  arrow: boolean;
73
78
  attach: string;
79
+ headingLevel: number;
74
80
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
75
81
  $slots: {
76
82
  header?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,cAAc,SAAS,CAAA"}
@@ -20,6 +20,12 @@ export type QPopoverProps = QBaseComponentProps & {
20
20
  * @category Content
21
21
  */
22
22
  title?: string;
23
+ /**
24
+ * The heading level of the title of the popover.
25
+ *
26
+ * @category Content
27
+ */
28
+ headingLevel?: number;
23
29
  /**
24
30
  * Whether the popover has an arrow pointing to the target.
25
31
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;;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AF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyYxD;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAhbT,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAubvD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,21 +1,21 @@
1
- import { defineComponent as fe, mergeModels as Z, useModel as me, toRef as I, ref as ee, useTemplateRef as g, onMounted as pe, computed as q, nextTick as z, watch as T, createElementBlock as c, openBlock as a, Fragment as y, createVNode as $, unref as o, normalizeClass as ve, createSlots as be, withCtx as f, withDirectives as ye, createBlock as m, createCommentVNode as p, renderList as le, createTextVNode as w, mergeProps as B, toDisplayString as h, normalizeProps as te, createElementVNode as ae, vModelText as ge, renderSlot as k, withModifiers as he } from "vue";
1
+ import { defineComponent as fe, mergeModels as Z, useModel as me, toRef as z, ref as ee, useTemplateRef as g, onMounted as pe, computed as q, nextTick as $, watch as D, createElementBlock as c, openBlock as a, Fragment as y, createVNode as T, unref as o, normalizeClass as ve, createSlots as be, withCtx as f, withDirectives as ye, createBlock as m, createCommentVNode as p, renderList as le, createTextVNode as w, mergeProps as B, toDisplayString as h, normalizeProps as te, createElementVNode as ae, vModelText as ge, renderSlot as k, withModifiers as he } from "vue";
2
2
  import { DEFAULT_TEXTS as ke, DEFAULT_ICONS as _e } from "./constants.js";
3
- import { QBadge as D } from "../QBadge/index.js";
3
+ import { QBadge as M } from "../QBadge/index.js";
4
4
  import { QButton as qe } from "../QButton/index.js";
5
5
  import { QField as we } from "../QField/index.js";
6
- import { QIcon as M } from "../QIcon/index.js";
6
+ import { QIcon as Q } from "../QIcon/index.js";
7
7
  import { QList as Be } from "../QList/index.js";
8
8
  import { QOverlay as Ce } from "../QOverlay/index.js";
9
9
  import { QSpinnerLoader as Ve } from "../QSpinnerLoader/index.js";
10
10
  import { QChevron as Le } from "../__internal__/QChevron/index.js";
11
11
  import { QClearButton as Ee } from "../__internal__/QClearButton/index.js";
12
12
  import { useId as xe } from "../../composables/uid.js";
13
- import { useGroup as Te } from "../../composables/useGroup/index.js";
14
- const $e = {
13
+ import { useGroup as $e } from "../../composables/useGroup/index.js";
14
+ const De = {
15
15
  key: 0,
16
16
  ref: "badgesContainer",
17
17
  class: "q-select__badge-container"
18
- }, De = {
18
+ }, Te = {
19
19
  key: 1,
20
20
  class: "q-select__value"
21
21
  }, Me = {
@@ -55,10 +55,10 @@ const $e = {
55
55
  }),
56
56
  emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
57
57
  setup(O, { emit: oe }) {
58
- const e = O, C = oe, r = me(O, "modelValue"), Q = xe(I(e, "id")), { active: F } = Te({
58
+ const e = O, C = oe, r = me(O, "modelValue"), R = xe(z(e, "id")), { active: F } = $e({
59
59
  active: r,
60
- required: I(e, "required"),
61
- multiple: I(e, "multiple")
60
+ required: z(e, "required"),
61
+ multiple: z(e, "multiple")
62
62
  }), u = ee(!1), V = ee(0), K = g("trigger"), ie = g("input"), ne = g("list"), U = g("content"), N = g("badgesContainer"), W = g("allBadges");
63
63
  pe(x);
64
64
  const P = q(() => s.value.length === 0), s = q(() => {
@@ -73,7 +73,7 @@ const $e = {
73
73
  return (t = e.items) == null || t.forEach((d, i) => {
74
74
  l.set(d.key, i);
75
75
  }), l;
76
- }), R = q(
76
+ }), S = q(
77
77
  () => {
78
78
  var l;
79
79
  return (l = s.value) == null ? void 0 : l.map((t) => t[e.itemLabel]).join(", ");
@@ -88,11 +88,11 @@ const $e = {
88
88
  function se(l) {
89
89
  e.multiple && l < r.value.length && (!e.required || r.value.length > 1) ? F.value = r.value.toSpliced(l, 1) : _();
90
90
  }
91
- function S(l) {
91
+ function A(l) {
92
92
  Array.isArray(l) ? (r.value = l.sort((t, d) => H.value.get(t) - H.value.get(d)), x()) : (r.value = l, E());
93
93
  }
94
94
  function _() {
95
- S(e.emptyValue), J();
95
+ A(e.emptyValue), J();
96
96
  }
97
97
  function re(l) {
98
98
  var t, d, i;
@@ -107,17 +107,15 @@ const $e = {
107
107
  function X() {
108
108
  e.readonly || e.disabled || (u.value ? E() : G());
109
109
  }
110
- function A(l) {
110
+ function I(l) {
111
111
  !l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && G(), ["Escape", "Tab"].includes(l.key) && (u.value ? E() : L.value && l.key === "Escape" && _()), L.value && l.key === "Delete" && _());
112
112
  }
113
113
  function de(l) {
114
- l.key.length === 1 && l.preventDefault(), A(l);
114
+ l.key.length === 1 && l.preventDefault(), I(l);
115
115
  }
116
- function ue() {
117
- setTimeout(() => {
118
- var l;
119
- e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
120
- }, 0);
116
+ async function ue() {
117
+ var l;
118
+ await $(), e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
121
119
  }
122
120
  function ce() {
123
121
  J(), C("hide");
@@ -132,7 +130,7 @@ const $e = {
132
130
  }
133
131
  async function x() {
134
132
  var n;
135
- if (await z(), await z(), !e.multiple || !e.badges || !N.value) return;
133
+ if (await $(), await $(), !e.multiple || !e.badges || !N.value) return;
136
134
  let l = 0, t = 0;
137
135
  const d = N.value.offsetWidth, i = 4;
138
136
  for (const b of W.value ?? []) {
@@ -143,19 +141,19 @@ const $e = {
143
141
  }
144
142
  V.value = (((n = W.value) == null ? void 0 : n.length) ?? 0) - t;
145
143
  }
146
- return T(
144
+ return D(
147
145
  () => e.loading,
148
146
  (l) => {
149
- !l && u.value && z(Y);
147
+ !l && u.value && $(Y);
150
148
  }
151
- ), T(() => e.badges, x), T(() => e.clearable, x), T(F, S), (l, t) => {
149
+ ), D(() => e.badges, x), D(() => e.clearable, x), D(F, A), (l, t) => {
152
150
  var d;
153
151
  return a(), c(
154
152
  y,
155
153
  null,
156
154
  [
157
- $(o(we), {
158
- id: o(Q),
155
+ T(o(we), {
156
+ id: o(R),
159
157
  ref: "trigger",
160
158
  label: e.label,
161
159
  required: e.required,
@@ -173,7 +171,7 @@ const $e = {
173
171
  size: e.size,
174
172
  invalid: e.invalid,
175
173
  onClick: X,
176
- onKeydown: A
174
+ onKeydown: I
177
175
  }, be({
178
176
  append: f(() => [
179
177
  k(l.$slots, "append"),
@@ -195,7 +193,7 @@ const $e = {
195
193
  onClick: X
196
194
  }, {
197
195
  default: f(() => [
198
- $(o(Le), {
196
+ T(o(Le), {
199
197
  "model-value": u.value,
200
198
  icons: e.icons
201
199
  }, null, 8, ["model-value", "icons"])
@@ -225,7 +223,7 @@ const $e = {
225
223
  [
226
224
  e.badges ? (a(), c(
227
225
  "span",
228
- $e,
226
+ De,
229
227
  [
230
228
  e.multiple ? (a(), c(
231
229
  y,
@@ -238,7 +236,7 @@ const $e = {
238
236
  y,
239
237
  { key: n },
240
238
  [
241
- n < r.value.length - V.value ? (a(), m(o(D), {
239
+ n < r.value.length - V.value ? (a(), m(o(M), {
242
240
  key: 0,
243
241
  pill: "",
244
242
  disabled: e.readonly || e.disabled,
@@ -250,7 +248,7 @@ const $e = {
250
248
  var b, v;
251
249
  return [
252
250
  (b = s.value[n]) != null && b.icon ? (a(), m(
253
- o(M),
251
+ o(Q),
254
252
  B({
255
253
  key: 0,
256
254
  ref_for: !0
@@ -276,7 +274,7 @@ const $e = {
276
274
  128
277
275
  /* KEYED_FRAGMENT */
278
276
  )),
279
- V.value > 0 ? (a(), m(o(D), {
277
+ V.value > 0 ? (a(), m(o(M), {
280
278
  key: 0,
281
279
  pill: "",
282
280
  class: "q-select__badge-count",
@@ -295,7 +293,7 @@ const $e = {
295
293
  (a(!0), c(
296
294
  y,
297
295
  null,
298
- le(r.value, (i, n) => (a(), m(o(D), {
296
+ le(r.value, (i, n) => (a(), m(o(M), {
299
297
  key: n,
300
298
  ref_for: !0,
301
299
  ref: "allBadges",
@@ -308,7 +306,7 @@ const $e = {
308
306
  var b, v;
309
307
  return [
310
308
  (b = s.value[n]) != null && b.icon ? (a(), m(
311
- o(M),
309
+ o(Q),
312
310
  B({
313
311
  key: 0,
314
312
  ref_for: !0
@@ -333,7 +331,7 @@ const $e = {
333
331
  ],
334
332
  64
335
333
  /* STABLE_FRAGMENT */
336
- )) : (a(), m(o(D), {
334
+ )) : (a(), m(o(M), {
337
335
  key: 1,
338
336
  pill: "",
339
337
  disabled: e.readonly || e.disabled,
@@ -345,7 +343,7 @@ const $e = {
345
343
  var i, n;
346
344
  return [
347
345
  (i = s.value[0]) != null && i.icon ? (a(), m(
348
- o(M),
346
+ o(Q),
349
347
  te(B({ key: 0 }, s.value[0].icon)),
350
348
  null,
351
349
  16
@@ -366,8 +364,8 @@ const $e = {
366
364
  /* NEED_PATCH */
367
365
  )) : (a(), c(
368
366
  "span",
369
- De,
370
- h(R.value),
367
+ Te,
368
+ h(S.value),
371
369
  1
372
370
  /* TEXT */
373
371
  ))
@@ -376,10 +374,10 @@ const $e = {
376
374
  /* STABLE_FRAGMENT */
377
375
  )),
378
376
  ye(ae("input", B({
379
- id: `${o(Q)}_input`,
377
+ id: `${o(R)}_input`,
380
378
  ref: "input"
381
379
  }, l.$attrs, {
382
- "onUpdate:modelValue": t[0] || (t[0] = (i) => R.value = i),
380
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => S.value = i),
383
381
  class: "q-select__input",
384
382
  inputmode: "none",
385
383
  type: "text",
@@ -391,7 +389,7 @@ const $e = {
391
389
  "aria-keyshortcuts": L.value ? "Delete" : void 0,
392
390
  onKeydown: de
393
391
  }), null, 16, Qe), [
394
- [ge, R.value]
392
+ [ge, S.value]
395
393
  ])
396
394
  ]),
397
395
  _: 2
@@ -402,7 +400,7 @@ const $e = {
402
400
  fn: f(() => [
403
401
  k(l.$slots, "prepend"),
404
402
  s.value.length === 1 && s.value[0].icon && !e.badges ? (a(), m(
405
- o(M),
403
+ o(Q),
406
404
  te(B({ key: 0 }, s.value[0].icon)),
407
405
  null,
408
406
  16
@@ -419,7 +417,7 @@ const $e = {
419
417
  key: "1"
420
418
  } : void 0
421
419
  ]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "size", "invalid"]),
422
- $(o(Ce), {
420
+ T(o(Ce), {
423
421
  modelValue: u.value,
424
422
  "onUpdate:modelValue": t[1] || (t[1] = (i) => u.value = i),
425
423
  spy: "",
@@ -437,15 +435,15 @@ const $e = {
437
435
  ae("div", {
438
436
  ref: "content",
439
437
  "data-testid": "combobox-dropdown",
440
- "data-key": o(Q),
438
+ "data-key": o(R),
441
439
  class: "q-select__body",
442
440
  tabindex: "-1",
443
441
  onFocusout: re,
444
- onKeydown: he(A, ["stop"])
442
+ onKeydown: he(I, ["stop"])
445
443
  }, [
446
444
  k(l.$slots, "body.prepend"),
447
445
  e.loading ? (a(), c("div", Se, [
448
- $(o(Ve), { size: 24 })
446
+ T(o(Ve), { size: 24 })
449
447
  ])) : (a(), m(o(Be), {
450
448
  key: 1,
451
449
  ref: "list",
@@ -458,7 +456,7 @@ const $e = {
458
456
  groups: l.groups,
459
457
  "item-label": e.itemLabel,
460
458
  "item-value": e.itemValue,
461
- "onUpdate:modelValue": S
459
+ "onUpdate:modelValue": A
462
460
  }, {
463
461
  item: f(({ item: i }) => [
464
462
  k(l.$slots, "item", { item: i })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.16.53",
4
+ "version": "0.16.55",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",