@quidgest/ui 0.16.43 → 0.16.44

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 (52) hide show
  1. package/dist/json/api.json +36 -57
  2. package/dist/manifest/components.json +0 -1
  3. package/dist/ui.css +1 -1
  4. package/dist/ui.esm.js +5246 -5170
  5. package/dist/ui.js +24 -20
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.min.js +657 -650
  8. package/dist/ui.scss +2 -2
  9. package/esm/components/QDialog/QDialog.d.ts +1 -0
  10. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  11. package/esm/components/QDialog/QDialog.vue.js +50 -48
  12. package/esm/components/QDialog/index.d.ts +6 -0
  13. package/esm/components/QDialog/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/types.d.ts +7 -0
  15. package/esm/components/QDialog/types.d.ts.map +1 -1
  16. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +2 -0
  17. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
  18. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +23 -17
  19. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +4 -0
  20. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  21. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +70 -68
  22. package/esm/components/QDropdownMenu/index.d.ts +2 -0
  23. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  24. package/esm/components/QOverlay/QOverlay.d.ts +1 -0
  25. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  26. package/esm/components/QOverlay/QOverlay.vue.js +114 -111
  27. package/esm/components/QOverlay/index.d.ts +6 -0
  28. package/esm/components/QOverlay/index.d.ts.map +1 -1
  29. package/esm/components/QOverlay/types.d.ts +7 -0
  30. package/esm/components/QOverlay/types.d.ts.map +1 -1
  31. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +12 -11
  32. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  33. package/esm/components/QPopover/QPopover.vue.js +14 -13
  34. package/esm/components/QSelect/QSelect.vue.js +1 -2
  35. package/esm/components/index.d.ts +0 -1
  36. package/esm/components/index.d.ts.map +1 -1
  37. package/esm/components/index.js +70 -72
  38. package/esm/composables/useDialog/index.d.ts +1 -0
  39. package/esm/composables/useDialog/index.d.ts.map +1 -1
  40. package/esm/index.d.ts +0 -1
  41. package/esm/vendors/focus-trap-vue/dist/focus-trap-vue.esm-browser.js +104 -0
  42. package/package.json +3 -2
  43. package/esm/components/QFocusTrap/QFocusTrap.d.ts +0 -28
  44. package/esm/components/QFocusTrap/QFocusTrap.d.ts.map +0 -1
  45. package/esm/components/QFocusTrap/QFocusTrap.vue.js +0 -32
  46. package/esm/components/QFocusTrap/QFocusTrap.vue2.js +0 -4
  47. package/esm/components/QFocusTrap/index.d.ts +0 -37
  48. package/esm/components/QFocusTrap/index.d.ts.map +0 -1
  49. package/esm/components/QFocusTrap/index.js +0 -6
  50. package/esm/components/QFocusTrap/types.d.ts +0 -6
  51. package/esm/components/QFocusTrap/types.d.ts.map +0 -1
  52. package/esm/vendors/@vueuse/integrations/useFocusTrap/component.js +0 -24
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, mergeModels as x, useModel as C, ref as A, computed as M, useTemplateRef as U, resolveComponent as z, createBlock as q, openBlock as d, unref as y, normalizeClass as H, withCtx as r, createElementVNode as j, withModifiers as G, createVNode as E, renderSlot as f, createElementBlock as R, createCommentVNode as k, toDisplayString as J, Fragment as W, normalizeProps as b, guardReactiveProps as V, mergeProps as X, nextTick as Y } from "vue";
1
+ import { defineComponent as F, mergeModels as _, useModel as A, ref as M, computed as q, useTemplateRef as U, resolveComponent as z, createBlock as x, openBlock as f, unref as y, normalizeClass as H, withCtx as d, createElementVNode as j, withModifiers as G, renderSlot as l, createVNode as E, createElementBlock as R, createCommentVNode as k, toDisplayString as J, Fragment as W, normalizeProps as b, guardReactiveProps as V, mergeProps as X, nextTick as Y } from "vue";
2
2
  import { QList as Z } from "../QList/index.js";
3
3
  import { QOverlay as K } from "../QOverlay/index.js";
4
4
  import { QIcon as ee } from "../QIcon/index.js";
@@ -8,7 +8,7 @@ const oe = {
8
8
  class: "q-dropdown-menu__extra"
9
9
  }, re = /* @__PURE__ */ F({
10
10
  __name: "QDropdownMenuContent",
11
- props: /* @__PURE__ */ x({
11
+ props: /* @__PURE__ */ _({
12
12
  id: {},
13
13
  class: {},
14
14
  activator: {},
@@ -32,23 +32,23 @@ const oe = {
32
32
  highlighted: {},
33
33
  highlightedModifiers: {}
34
34
  }),
35
- emits: /* @__PURE__ */ x(["select", "hide", "focus-previous"], ["update:modelValue", "update:highlighted"]),
36
- setup(u, { emit: P }) {
37
- const e = u, c = P, m = C(u, "modelValue"), i = C(u, "highlighted"), s = A(void 0), _ = A([]), S = M(() => e.depth !== 0 ? e.offset : 4), B = M(() => e.depth !== 0 ? e.crossOffset : void 0), p = U("qListRef");
38
- function D(t) {
35
+ emits: /* @__PURE__ */ _(["select", "hide", "focus-previous"], ["update:modelValue", "update:highlighted"]),
36
+ setup(u, { emit: $ }) {
37
+ const t = u, c = $, m = A(u, "modelValue"), s = A(u, "highlighted"), i = M(void 0), I = M([]), P = q(() => t.depth !== 0 ? t.offset : 4), S = q(() => t.depth !== 0 ? t.crossOffset : void 0), p = U("qListRef");
38
+ function B(e) {
39
39
  var o;
40
- const n = (o = e.items) == null ? void 0 : o.find((l) => l[e.itemValue] === t);
41
- _.value = (n == null ? void 0 : n.items) ?? [];
42
- const a = _.value.length > 0;
43
- i.value = t, a ? g(t) : I(t);
40
+ const n = (o = t.items) == null ? void 0 : o.find((r) => r[t.itemValue] === e);
41
+ I.value = (n == null ? void 0 : n.items) ?? [];
42
+ const a = I.value.length > 0;
43
+ s.value = e, a ? g(e) : L(e);
44
44
  }
45
- function O(t) {
45
+ function D(e) {
46
46
  var n;
47
- if (t.key)
48
- switch (["Enter", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(t.key) && (t.preventDefault(), t.stopPropagation()), t.key) {
47
+ if (e.key)
48
+ switch (["Enter", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key) {
49
49
  case "ArrowRight":
50
50
  const a = (n = p.value) == null ? void 0 : n.getActiveItemIndex();
51
- e.items && (a || a === 0) && e.items[a] && (i.value = e.items[a].key, g(e.items[a].key));
51
+ t.items && (a || a === 0) && t.items[a] && (s.value = t.items[a].key, g(t.items[a].key));
52
52
  break;
53
53
  case "ArrowLeft":
54
54
  h();
@@ -59,89 +59,90 @@ const oe = {
59
59
  break;
60
60
  }
61
61
  }
62
- function $(t) {
63
- e.trigger === "hover" && (i.value = t, g(t));
62
+ function O(e) {
63
+ t.trigger === "hover" && (s.value = e, g(e));
64
64
  }
65
- function I(t) {
66
- c("select", t), v();
65
+ function L(e) {
66
+ c("select", e), v();
67
67
  }
68
68
  function N() {
69
69
  h();
70
70
  }
71
71
  function h() {
72
- s.value = void 0, i.value = void 0, m.value = !1, c("focus-previous");
72
+ i.value = void 0, s.value = void 0, m.value = !1, c("focus-previous");
73
73
  }
74
74
  function v() {
75
75
  h(), c("hide");
76
76
  }
77
- function g(t) {
78
- s.value = t;
77
+ function g(e) {
78
+ i.value = e;
79
79
  }
80
80
  function Q() {
81
81
  var a, o;
82
- const t = (a = e.items) == null ? void 0 : a.findIndex(
83
- (l) => l[e.itemValue] === s.value
82
+ const e = (a = t.items) == null ? void 0 : a.findIndex(
83
+ (r) => r[t.itemValue] === i.value
84
84
  );
85
- if (!t && t !== 0) return;
86
- const n = (o = p.value) == null ? void 0 : o.getItem(t);
87
- s.value = void 0, i.value = void 0, n == null || n.focus();
85
+ if (!e && e !== 0) return;
86
+ const n = (o = p.value) == null ? void 0 : o.getItem(e);
87
+ i.value = void 0, s.value = void 0, n == null || n.focus();
88
88
  }
89
89
  function T() {
90
90
  Y(() => {
91
- var t;
92
- return (t = p.value) == null ? void 0 : t.$el.focus();
91
+ var e;
92
+ return (e = p.value) == null ? void 0 : e.$el.focus();
93
93
  });
94
94
  }
95
- return (t, n) => {
95
+ return (e, n) => {
96
96
  const a = z("q-dropdown-menu-content", !0);
97
- return d(), q(y(K), {
98
- id: e.id,
97
+ return f(), x(y(K), {
98
+ id: t.id,
99
99
  modelValue: m.value,
100
100
  "onUpdate:modelValue": n[0] || (n[0] = (o) => m.value = o),
101
- anchor: e.activator,
102
- appearance: e.appearance,
103
- inline: e.inline,
104
- delay: e.delay,
105
- offset: S.value,
106
- "cross-offset": B.value,
107
- placement: e.placement,
108
- transition: e.transition,
109
- class: H(e.class),
101
+ anchor: t.activator,
102
+ appearance: t.appearance,
103
+ inline: t.inline,
104
+ delay: t.delay,
105
+ offset: P.value,
106
+ "cross-offset": S.value,
107
+ placement: t.placement,
108
+ transition: t.transition,
109
+ class: H(t.class),
110
110
  "scroll-lock": "",
111
111
  "non-modal": "",
112
112
  onEnter: T,
113
113
  onLeave: N
114
114
  }, {
115
- default: r(() => [
115
+ default: d(() => [
116
116
  j(
117
117
  "div",
118
118
  {
119
119
  class: "q-dropdown-menu__body",
120
120
  "data-testid": "dropdown-content",
121
121
  tabindex: "-1",
122
- onKeydown: G(O, ["stop"])
122
+ onKeydown: G(D, ["stop"])
123
123
  },
124
124
  [
125
+ l(e.$slots, "prepend"),
125
126
  E(y(Z), {
126
127
  ref: "qListRef",
127
128
  class: "q-dropdown-menu__items",
128
- highlighted: i.value,
129
- items: e.items,
130
- groups: e.groups,
131
- "item-label": e.itemLabel,
132
- "item-value": e.itemValue,
129
+ highlighted: s.value,
130
+ items: t.items,
131
+ groups: t.groups,
132
+ "item-label": t.itemLabel,
133
+ "item-value": t.itemValue,
133
134
  selectable: !1,
134
- onClick: D,
135
- "onMouseenter:item": $
135
+ onClick: B,
136
+ "onMouseenter:item": O
136
137
  }, {
137
- item: r(({ item: o }) => [
138
- f(t.$slots, "item", { item: o })
138
+ item: d(({ item: o }) => [
139
+ l(e.$slots, "item", { item: o })
139
140
  ]),
140
- "item.append": r(({ item: o, element: l }) => {
141
- var L;
141
+ "item.append": d(({ item: o, element: r }) => {
142
+ var C;
142
143
  return [
143
- f(t.$slots, "item.append", { item: o }, () => [
144
- o.extraInfo ? (d(), R(
144
+ l(e.$slots, "item.append", { item: o }, () => [
145
+ o.extraInfo ? (f(), R(
145
146
  "span",
146
147
  oe,
147
148
  J(o.extraInfo),
@@ -149,38 +150,38 @@ const oe = {
149
150
  /* TEXT */
150
151
  )) : k("v-if", !0)
151
152
  ]),
152
- ((L = o.items) == null ? void 0 : L.length) > 0 ? (d(), R(
153
+ ((C = o.items) == null ? void 0 : C.length) > 0 ? (f(), R(
153
154
  W,
154
155
  { key: 0 },
155
156
  [
156
157
  E(
157
158
  y(ee),
158
- b(V(e.icons.expand)),
159
+ b(V(t.icons.expand)),
159
160
  null,
160
161
  16
161
162
  /* FULL_PROPS */
162
163
  ),
163
- s.value === o.key ? (d(), q(a, X({
164
+ i.value === o.key ? (f(), x(a, X({
164
165
  key: 0,
165
166
  "model-value": u.modelValue
166
- }, e, {
167
- activator: l,
167
+ }, t, {
168
+ activator: r,
168
169
  items: o.items,
169
170
  groups: o.groups,
170
- depth: e.depth + 1,
171
- delay: e.delay,
171
+ depth: t.depth + 1,
172
+ delay: t.delay,
172
173
  placement: "right-start",
173
174
  "non-modal": "",
174
175
  inline: "",
175
176
  onHide: v,
176
- onSelect: I,
177
+ onSelect: L,
177
178
  onFocusPrevious: Q
178
179
  }), {
179
- item: r((w) => [
180
- f(t.$slots, "item", b(V(w)))
180
+ item: d((w) => [
181
+ l(e.$slots, "item", b(V(w)))
181
182
  ]),
182
- "item.append": r((w) => [
183
- f(t.$slots, "item.append", b(V(w)))
183
+ "item.append": d((w) => [
184
+ l(e.$slots, "item.append", b(V(w)))
184
185
  ]),
185
186
  _: 2
186
187
  /* DYNAMIC */
@@ -193,7 +194,8 @@ const oe = {
193
194
  }),
194
195
  _: 3
195
196
  /* FORWARDED */
196
- }, 8, ["highlighted", "items", "groups", "item-label", "item-value"])
197
+ }, 8, ["highlighted", "items", "groups", "item-label", "item-value"]),
198
+ l(e.$slots, "append")
197
199
  ],
198
200
  32
199
201
  /* NEED_HYDRATION */
@@ -77,6 +77,8 @@ declare const QDropdownMenu: {
77
77
  select: (item: any) => any;
78
78
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
79
79
  $slots: {
80
+ prepend?(_: {}): any;
81
+ append?(_: {}): any;
80
82
  item?(_: {
81
83
  item: import('..').Item;
82
84
  }): any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AAGrD,OAAO,EAAE,aAAa,EAAE,CAAA;AAGxB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA;AAGrD,OAAO,EAAE,aAAa,EAAE,CAAA;AAGxB,cAAc,SAAS,CAAA"}
@@ -35,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
35
35
  attach: string;
36
36
  delay: number;
37
37
  trigger: import('../../composables/overlay').Trigger;
38
+ returnFocusOnDeactivate: boolean;
38
39
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
40
  overlayContainerRef: HTMLDivElement;
40
41
  overlayRef: HTMLDivElement;
@@ -1 +1 @@
1
- {"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA4DA;AAghBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAoclC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;OASnB,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":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AA8DA;AAshBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAyclC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6KT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA+BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;OASnB,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"}