@quidgest/ui 0.16.3 → 0.16.4

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 (95) hide show
  1. package/dist/manifest/components.json +6 -0
  2. package/dist/ui.css +809 -31
  3. package/dist/ui.esm.js +5247 -4805
  4. package/dist/ui.js +24 -24
  5. package/dist/ui.min.css +2 -1
  6. package/dist/ui.min.js +959 -933
  7. package/dist/ui.scss +462 -39
  8. package/esm/_virtual/_plugin-vue_export-helper.js +9 -0
  9. package/esm/components/QCombobox/QCombobox.d.ts +14 -0
  10. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  11. package/esm/components/QCombobox/QCombobox.vue.js +9 -8
  12. package/esm/components/QCombobox/index.d.ts +7 -0
  13. package/esm/components/QCombobox/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/QDialog.d.ts +4 -1
  15. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  16. package/esm/components/QDialog/QDialog.vue.js +115 -95
  17. package/esm/components/QDialog/index.d.ts +12 -1
  18. package/esm/components/QDialog/index.d.ts.map +1 -1
  19. package/esm/components/QDialog/types.d.ts +9 -0
  20. package/esm/components/QDialog/types.d.ts.map +1 -1
  21. package/esm/components/QDivider/QDivider.d.ts +21 -0
  22. package/esm/components/QDivider/QDivider.d.ts.map +1 -0
  23. package/esm/components/QDivider/QDivider.vue.js +57 -0
  24. package/esm/components/QDivider/QDivider.vue2.js +4 -0
  25. package/esm/components/QDivider/index.d.ts +25 -0
  26. package/esm/components/QDivider/index.d.ts.map +1 -0
  27. package/esm/components/QDivider/index.js +6 -0
  28. package/esm/components/QDivider/types.d.ts +11 -0
  29. package/esm/components/QDivider/types.d.ts.map +1 -0
  30. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +14 -0
  31. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  32. package/esm/components/QGrid/QCol.d.ts +19 -0
  33. package/esm/components/QGrid/QCol.d.ts.map +1 -0
  34. package/esm/components/QGrid/QCol.vue.js +46 -0
  35. package/esm/components/QGrid/QCol.vue2.js +4 -0
  36. package/esm/components/QGrid/QContainer.d.ts +19 -0
  37. package/esm/components/QGrid/QContainer.d.ts.map +1 -0
  38. package/esm/components/QGrid/QContainer.vue.js +24 -0
  39. package/esm/components/QGrid/QContainer.vue2.js +4 -0
  40. package/esm/components/QGrid/QRow.d.ts +23 -0
  41. package/esm/components/QGrid/QRow.d.ts.map +1 -0
  42. package/esm/components/QGrid/QRow.vue.js +36 -0
  43. package/esm/components/QGrid/QRow.vue2.js +4 -0
  44. package/esm/components/QGrid/QSpacer.d.ts +3 -0
  45. package/esm/components/QGrid/QSpacer.d.ts.map +1 -0
  46. package/esm/components/QGrid/QSpacer.vue.js +10 -0
  47. package/esm/components/QGrid/index.d.ts +66 -0
  48. package/esm/components/QGrid/index.d.ts.map +1 -0
  49. package/esm/components/QGrid/index.js +12 -0
  50. package/esm/components/QGrid/types.d.ts +47 -0
  51. package/esm/components/QGrid/types.d.ts.map +1 -0
  52. package/esm/components/QList/QList.d.ts +1 -0
  53. package/esm/components/QList/QList.d.ts.map +1 -1
  54. package/esm/components/QList/QList.vue.js +130 -120
  55. package/esm/components/QList/QListItem.d.ts.map +1 -1
  56. package/esm/components/QList/QListItem.vue.js +57 -43
  57. package/esm/components/QList/index.d.ts +7 -0
  58. package/esm/components/QList/index.d.ts.map +1 -1
  59. package/esm/components/QList/types.d.ts +8 -0
  60. package/esm/components/QList/types.d.ts.map +1 -1
  61. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  62. package/esm/components/QOverlay/QOverlay.vue.js +29 -27
  63. package/esm/components/QOverlay/index.d.ts +3 -0
  64. package/esm/components/QOverlay/index.d.ts.map +1 -1
  65. package/esm/components/QOverlay/types.d.ts +4 -0
  66. package/esm/components/QOverlay/types.d.ts.map +1 -1
  67. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +8 -7
  68. package/esm/components/QSelect/QSelect.d.ts +14 -0
  69. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  70. package/esm/components/QSelect/QSelect.vue.js +1 -0
  71. package/esm/components/QSelect/index.d.ts +7 -0
  72. package/esm/components/QSelect/index.d.ts.map +1 -1
  73. package/esm/components/QSidebar/QSidebar.d.ts +39 -0
  74. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -0
  75. package/esm/components/QSidebar/QSidebar.vue.js +155 -0
  76. package/esm/components/QSidebar/QSidebar.vue2.js +4 -0
  77. package/esm/components/QSidebar/QSidebarAnchor.d.ts +219 -0
  78. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -0
  79. package/esm/components/QSidebar/QSidebarAnchor.vue.js +110 -0
  80. package/esm/components/QSidebar/QSidebarAnchor.vue2.js +4 -0
  81. package/esm/components/QSidebar/QSidebarPanel.d.ts +41 -0
  82. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -0
  83. package/esm/components/QSidebar/QSidebarPanel.vue.js +90 -0
  84. package/esm/components/QSidebar/QSidebarPanel.vue2.js +4 -0
  85. package/esm/components/QSidebar/index.d.ts +72 -0
  86. package/esm/components/QSidebar/index.d.ts.map +1 -0
  87. package/esm/components/QSidebar/index.js +6 -0
  88. package/esm/components/QSidebar/types.d.ts +63 -0
  89. package/esm/components/QSidebar/types.d.ts.map +1 -0
  90. package/esm/components/QToggleGroup/types.d.ts +1 -1
  91. package/esm/components/index.d.ts +3 -0
  92. package/esm/components/index.d.ts.map +1 -1
  93. package/esm/components/index.js +71 -62
  94. package/esm/index.d.ts +6 -0
  95. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as ue, mergeModels as I, useModel as ce, computed as d, reactive as P, watch as V, ref as _, nextTick as g, onMounted as fe, onBeforeUnmount as pe, createElementBlock as k, openBlock as u, Fragment as ve, createBlock as B, createCommentVNode as m, Teleport as me, createVNode as T, Transition as z, withCtx as L, normalizeClass as F, normalizeStyle as Q, unref as C, createElementVNode as ye, mergeProps as he, renderSlot as we } from "vue";
1
+ import { defineComponent as ue, mergeModels as A, useModel as ce, computed as d, reactive as I, watch as P, ref as _, nextTick as g, onMounted as fe, onBeforeUnmount as pe, createElementBlock as k, openBlock as u, Fragment as ve, createBlock as B, createCommentVNode as m, Teleport as me, createVNode as T, Transition as z, withCtx as L, normalizeClass as F, normalizeStyle as Q, unref as C, createElementVNode as ye, mergeProps as he, renderSlot as we } from "vue";
2
2
  import { QDismissibleLayer as ge } from "../QDismissibleLayer/index.js";
3
3
  import { QFocusTrap as ke } from "../QFocusTrap/index.js";
4
4
  import { QRemoveScrollBar as Le } from "../QRemoveScrollBar/index.js";
5
5
  import { getSideFromPlacement as Ee, computePosition as be } from "../../composables/overlay.js";
6
6
  import { useTheme as _e } from "../../composables/theme.js";
7
7
  import { getElement as Be } from "../../utils/getElement.js";
8
- const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
8
+ const Te = ["id"], Ce = ["role"], $e = /* @__PURE__ */ ue({
9
9
  inheritAttrs: !1,
10
10
  __name: "QOverlay",
11
- props: /* @__PURE__ */ I({
11
+ props: /* @__PURE__ */ A({
12
12
  id: {},
13
13
  class: {},
14
14
  anchor: {},
@@ -29,12 +29,13 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
29
29
  transition: { default: "fade" },
30
30
  trigger: { default: "click" },
31
31
  width: { default: "auto" },
32
- focusTrap: { type: Boolean }
32
+ focusTrap: { type: Boolean },
33
+ centerVertically: { type: Boolean }
33
34
  }, {
34
35
  modelValue: { type: Boolean },
35
36
  modelModifiers: {}
36
37
  }),
37
- emits: /* @__PURE__ */ I(["enter", "leave"], ["update:modelValue"]),
38
+ emits: /* @__PURE__ */ A(["enter", "leave"], ["update:modelValue"]),
38
39
  setup(x, { emit: U }) {
39
40
  const t = x, S = U, r = ce(x, "modelValue"), { class: N } = _e(), W = d(() => [
40
41
  "q-overlay",
@@ -42,21 +43,22 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
42
43
  N.value,
43
44
  {
44
45
  "q-overlay--independent": f.value,
45
- "q-overlay--inverted": t.appearance === "inverted"
46
+ "q-overlay--inverted": t.appearance === "inverted",
47
+ "q-overlay--center": t.centerVertically
46
48
  },
47
49
  t.class
48
- ]), f = d(() => t.anchor === void 0), D = d(() => r.value && !t.nonModal), j = d(() => (r.value || o.animating) && t.scrollLock), G = d(() => !t.inline && (r.value || o.animating)), o = P({
50
+ ]), f = d(() => t.anchor === void 0), q = d(() => r.value && !t.nonModal), j = d(() => (r.value || o.animating) && t.scrollLock), G = d(() => !t.inline && (r.value || o.animating)), o = I({
49
51
  animating: !1,
50
52
  top: 0,
51
53
  left: 0,
52
54
  width: 0,
53
55
  placement: t.placement
54
- }), a = P({
56
+ }), a = I({
55
57
  top: void 0,
56
58
  left: void 0,
57
59
  hidden: !0
58
60
  });
59
- V(r, ee);
61
+ P(r, ee);
60
62
  const H = d(() => {
61
63
  if (f.value) return;
62
64
  const e = l(), s = t.width === "anchor", n = s ? e == null ? void 0 : e.getBoundingClientRect().width : void 0;
@@ -91,29 +93,29 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
91
93
  );
92
94
  o.left = n.overlayCoords.x, o.top = n.overlayCoords.y, o.placement = n.placement, a.hidden = n.arrowCoords === void 0, n.arrowCoords && (a.top = n.arrowCoords.y, a.left = n.arrowCoords.x);
93
95
  }
94
- V(
96
+ P(
95
97
  () => t.placement,
96
98
  () => g(i)
97
99
  );
98
100
  let p;
99
101
  function w() {
100
- R(0);
102
+ O(0);
101
103
  }
102
- function O() {
103
- R(t.delay);
104
+ function D() {
105
+ O(t.delay);
104
106
  }
105
- function R(e) {
106
- p && q(), p = window.setTimeout(() => {
107
+ function O(e) {
108
+ p && R(), p = window.setTimeout(() => {
107
109
  r.value = !0;
108
110
  }, e);
109
111
  }
110
112
  function c() {
111
- if (p && q(), r.value = !1, t.anchor && t.trigger === "click") {
113
+ if (p && R(), r.value = !1, t.anchor && t.trigger === "click") {
112
114
  const e = l();
113
115
  g(() => e == null ? void 0 : e.focus());
114
116
  }
115
117
  }
116
- function q() {
118
+ function R() {
117
119
  clearTimeout(p), p = void 0;
118
120
  }
119
121
  function K() {
@@ -141,7 +143,7 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
141
143
  t.persistent && e.preventDefault();
142
144
  }
143
145
  function ne(e) {
144
- var A;
146
+ var $;
145
147
  if (t.persistent) {
146
148
  e.preventDefault();
147
149
  return;
@@ -149,7 +151,7 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
149
151
  let s = !1;
150
152
  e.defaultPrevented || e.detail.originalEvent.type === "pointerdown" && (s = !0);
151
153
  const n = e.detail.originalEvent.target;
152
- if ((A = l()) == null ? void 0 : A.contains(n)) {
154
+ if (($ = l()) == null ? void 0 : $.contains(n)) {
153
155
  e.preventDefault();
154
156
  return;
155
157
  }
@@ -172,7 +174,7 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
172
174
  e.addEventListener("click", w);
173
175
  break;
174
176
  case "hover":
175
- e.addEventListener("mouseenter", O), e.addEventListener("mouseleave", c), e.addEventListener("focusin", w), e.addEventListener("focusout", c);
177
+ e.addEventListener("mouseenter", D), e.addEventListener("mouseleave", c), e.addEventListener("focusin", w), e.addEventListener("focusout", c);
176
178
  break;
177
179
  }
178
180
  }
@@ -184,7 +186,7 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
184
186
  e.removeEventListener("click", w);
185
187
  break;
186
188
  case "hover":
187
- e.removeEventListener("mouseenter", O), e.removeEventListener("mouseleave", c), e.removeEventListener("focusin", w), e.removeEventListener("focusout", c);
189
+ e.removeEventListener("mouseenter", D), e.removeEventListener("mouseleave", c), e.removeEventListener("focusin", w), e.removeEventListener("focusout", c);
188
190
  break;
189
191
  }
190
192
  }
@@ -195,12 +197,12 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
195
197
  window.removeEventListener("resize", i), t.scrollLock || window.removeEventListener("scroll", i);
196
198
  }
197
199
  let b;
198
- function $() {
199
- l() ? (i(), b = window.setTimeout($, 100)) : c();
200
+ function V() {
201
+ l() ? (i(), b = window.setTimeout(V, 100)) : c();
200
202
  }
201
203
  function se() {
202
204
  var e;
203
- f.value || (ie(), t.spy ? $() : i()), (f.value || t.trigger === "click") && ((e = h.value) == null || e.focus());
205
+ f.value || (ie(), t.spy ? V() : i()), (f.value || t.trigger === "click") && ((e = h.value) == null || e.focus());
204
206
  }
205
207
  function de() {
206
208
  f.value || le(), t.spy && (clearTimeout(b), b = void 0);
@@ -220,7 +222,7 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
220
222
  appear: ""
221
223
  }, {
222
224
  default: L(() => [
223
- D.value ? (u(), k(
225
+ q.value ? (u(), k(
224
226
  "div",
225
227
  {
226
228
  key: 0,
@@ -273,7 +275,7 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
273
275
  ref: h,
274
276
  class: "q-overlay__content",
275
277
  tabindex: "-1",
276
- role: D.value ? "dialog" : void 0
278
+ role: q.value ? "dialog" : void 0
277
279
  }, e.$attrs), [
278
280
  t.arrow ? (u(), k(
279
281
  "div",
@@ -313,5 +315,5 @@ const Te = ["id"], Ce = ["role"], Ae = /* @__PURE__ */ ue({
313
315
  }
314
316
  });
315
317
  export {
316
- Ae as default
318
+ $e as default
317
319
  };
@@ -22,6 +22,7 @@ declare const QOverlay: {
22
22
  trigger?: import('../../composables/overlay').Trigger;
23
23
  width?: "auto" | "anchor";
24
24
  focusTrap?: boolean;
25
+ centerVertically?: boolean;
25
26
  }> & Readonly<{
26
27
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
28
  onEnter?: (() => any) | undefined;
@@ -74,6 +75,7 @@ declare const QOverlay: {
74
75
  trigger?: import('../../composables/overlay').Trigger;
75
76
  width?: "auto" | "anchor";
76
77
  focusTrap?: boolean;
78
+ centerVertically?: boolean;
77
79
  }> & Readonly<{
78
80
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
79
81
  onEnter?: (() => any) | undefined;
@@ -114,6 +116,7 @@ declare const QOverlay: {
114
116
  trigger?: import('../../composables/overlay').Trigger;
115
117
  width?: "auto" | "anchor";
116
118
  focusTrap?: boolean;
119
+ centerVertically?: boolean;
117
120
  }> & Readonly<{
118
121
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
119
122
  onEnter?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,YAAY,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -89,5 +89,9 @@ export type QOverlayProps = QBaseComponentProps & {
89
89
  * When enabled, focus will be constrained to elements within the overlay.
90
90
  */
91
91
  focusTrap?: boolean;
92
+ /**
93
+ * Whether to vertically align the overlay to the center (true) or top (false)
94
+ */
95
+ centerVertically?: boolean;
92
96
  };
93
97
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;OAGG;IACH,GAAG,CAA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EpB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAEzB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, mergeModels as u, useModel as f, computed as h, createBlock as d, openBlock as r, unref as i, withCtx as v, createElementVNode as c, createElementBlock as y, createCommentVNode as m, createVNode as g, toDisplayString as B } from "vue";
1
+ import { defineComponent as p, mergeModels as u, useModel as f, computed as h, createBlock as d, openBlock as r, unref as c, withCtx as y, createElementVNode as i, createElementBlock as v, createCommentVNode as m, createVNode as g, toDisplayString as B } from "vue";
2
2
  import { QMeter as _ } from "../QMeter/index.js";
3
3
  import { QOverlay as V } from "../QOverlay/index.js";
4
4
  import k from "./QPasswordFieldMessages.vue.js";
@@ -30,6 +30,7 @@ const w = { class: "q-password-field__meter" }, M = {
30
30
  trigger: {},
31
31
  width: {},
32
32
  focusTrap: { type: Boolean },
33
+ centerVertically: { type: Boolean },
33
34
  messages: {},
34
35
  score: {},
35
36
  levels: {}
@@ -54,7 +55,7 @@ const w = { class: "q-password-field__meter" }, M = {
54
55
  }
55
56
  return o.levels[o.levels.length - 1];
56
57
  });
57
- return (t, l) => (r(), d(i(V), {
58
+ return (t, l) => (r(), d(c(V), {
58
59
  modelValue: n.value,
59
60
  "onUpdate:modelValue": l[0] || (l[0] = (e) => n.value = e),
60
61
  trigger: "manual",
@@ -63,17 +64,17 @@ const w = { class: "q-password-field__meter" }, M = {
63
64
  "non-modal": "",
64
65
  placement: "bottom"
65
66
  }, {
66
- default: v(() => {
67
+ default: y(() => {
67
68
  var e;
68
69
  return [
69
- c("div", w, [
70
- s.value ? (r(), y("div", M, [
71
- g(i(_), {
70
+ i("div", w, [
71
+ s.value ? (r(), v("div", M, [
72
+ g(c(_), {
72
73
  "model-value": o.score,
73
74
  max: 1,
74
75
  color: s.value.color
75
76
  }, null, 8, ["model-value", "color"]),
76
- c(
77
+ i(
77
78
  "span",
78
79
  null,
79
80
  B(s.value.label),
@@ -101,6 +101,8 @@ declare function __VLS_template(): {
101
101
  readonly itemLabel?: string | undefined;
102
102
  readonly disabled?: boolean | undefined;
103
103
  readonly selectable?: boolean | undefined;
104
+ readonly multiple?: boolean | undefined;
105
+ readonly required?: boolean | undefined;
104
106
  readonly onClick?: ((key: any) => any) | undefined;
105
107
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
106
108
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -205,6 +207,8 @@ declare function __VLS_template(): {
205
207
  itemLabel?: string;
206
208
  disabled?: boolean;
207
209
  selectable?: boolean;
210
+ multiple?: boolean;
211
+ required?: boolean;
208
212
  }> & Readonly<{
209
213
  onClick?: ((key: any) => any) | undefined;
210
214
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -255,6 +259,8 @@ declare function __VLS_template(): {
255
259
  itemLabel?: string;
256
260
  disabled?: boolean;
257
261
  selectable?: boolean;
262
+ multiple?: boolean;
263
+ required?: boolean;
258
264
  }> & Readonly<{
259
265
  onClick?: ((key: any) => any) | undefined;
260
266
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -265,6 +271,7 @@ declare function __VLS_template(): {
265
271
  getLastFocusableItemIndex: () => number;
266
272
  }> & {} & import('vue').ComponentCustomProperties & {} & {
267
273
  $slots: {
274
+ default?(_: {}): any;
268
275
  item?(_: {
269
276
  item: import('../QList/types').Item;
270
277
  element: HTMLLIElement | undefined;
@@ -383,6 +390,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
383
390
  readonly itemLabel?: string | undefined;
384
391
  readonly disabled?: boolean | undefined;
385
392
  readonly selectable?: boolean | undefined;
393
+ readonly multiple?: boolean | undefined;
394
+ readonly required?: boolean | undefined;
386
395
  readonly onClick?: ((key: any) => any) | undefined;
387
396
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
388
397
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -487,6 +496,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
487
496
  itemLabel?: string;
488
497
  disabled?: boolean;
489
498
  selectable?: boolean;
499
+ multiple?: boolean;
500
+ required?: boolean;
490
501
  }> & Readonly<{
491
502
  onClick?: ((key: any) => any) | undefined;
492
503
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -537,6 +548,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
537
548
  itemLabel?: string;
538
549
  disabled?: boolean;
539
550
  selectable?: boolean;
551
+ multiple?: boolean;
552
+ required?: boolean;
540
553
  }> & Readonly<{
541
554
  onClick?: ((key: any) => any) | undefined;
542
555
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -547,6 +560,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
547
560
  getLastFocusableItemIndex: () => number;
548
561
  }> & {} & import('vue').ComponentCustomProperties & {} & {
549
562
  $slots: {
563
+ default?(_: {}): any;
550
564
  item?(_: {
551
565
  item: import('../QList/types').Item;
552
566
  element: HTMLLIElement | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AA0HA;AAwSC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAatD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAA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;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjE9yB;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA8BoqB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArB7yB,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"}
@@ -245,6 +245,7 @@ const de = {
245
245
  ref: x,
246
246
  class: "q-select__items",
247
247
  selectable: "",
248
+ required: "",
248
249
  "model-value": p.value,
249
250
  items: e.items,
250
251
  groups: l.groups,
@@ -126,6 +126,8 @@ declare const QSelect: {
126
126
  readonly itemLabel?: string | undefined;
127
127
  readonly disabled?: boolean | undefined;
128
128
  readonly selectable?: boolean | undefined;
129
+ readonly multiple?: boolean | undefined;
130
+ readonly required?: boolean | undefined;
129
131
  readonly onClick?: ((key: any) => any) | undefined;
130
132
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
131
133
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -230,6 +232,8 @@ declare const QSelect: {
230
232
  itemLabel?: string;
231
233
  disabled?: boolean;
232
234
  selectable?: boolean;
235
+ multiple?: boolean;
236
+ required?: boolean;
233
237
  }> & Readonly<{
234
238
  onClick?: ((key: any) => any) | undefined;
235
239
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -280,6 +284,8 @@ declare const QSelect: {
280
284
  itemLabel?: string;
281
285
  disabled?: boolean;
282
286
  selectable?: boolean;
287
+ multiple?: boolean;
288
+ required?: boolean;
283
289
  }> & Readonly<{
284
290
  onClick?: ((key: any) => any) | undefined;
285
291
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -290,6 +296,7 @@ declare const QSelect: {
290
296
  getLastFocusableItemIndex: () => number;
291
297
  }> & {} & import('vue').ComponentCustomProperties & {} & {
292
298
  $slots: {
299
+ default?(_: {}): any;
293
300
  item?(_: {
294
301
  item: import('../QList/types').Item;
295
302
  element: HTMLLIElement | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIuwzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJj2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIuwzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJj2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { QSidebarProps } from './types';
2
+ type __VLS_Props = QSidebarProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Partial<Record<`anchor:${string}`, (_: {
9
+ item: import('./types').QSidebarAnchorItemProps;
10
+ }) => any>> & Partial<Record<`header.prepend:${string}`, (_: {}) => any>> & Partial<Record<`header:${string}`, (_: {}) => any>> & Partial<Record<`header.append:${string}`, (_: {}) => any>> & Partial<Record<`content:${string}`, (_: {}) => any>> & Partial<Record<`footer:${string}`, (_: {}) => any>>;
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: string) => any;
17
+ } & {
18
+ resize: (width: number) => any;
19
+ "click:item": (id: string) => any;
20
+ "resize:start": () => any;
21
+ "resize:end": (finalWidth: number) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
+ onResize?: ((width: number) => any) | undefined;
25
+ "onClick:item"?: ((id: string) => any) | undefined;
26
+ "onResize:start"?: (() => any) | undefined;
27
+ "onResize:end"?: ((finalWidth: number) => any) | undefined;
28
+ }>, {
29
+ position: "left" | "right";
30
+ anchorWidth: number;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
39
+ //# sourceMappingURL=QSidebar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebar.vue"],"names":[],"mappings":"AAgEA;AAgOC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAsJlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;;UAhBmC,GAAG,2DACnB,GAAG,mDACH,GAAG,0DACH,GAAG,oDACH,GAAG,mDACH,GAAG;;;EAgBvE;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;wFASnB,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"}
@@ -0,0 +1,155 @@
1
+ import { defineComponent as P, mergeModels as z, useModel as x, ref as b, watch as W, computed as r, createElementBlock as A, openBlock as w, normalizeStyle as N, normalizeClass as I, createVNode as k, createSlots as y, renderList as Q, withCtx as o, renderSlot as s, Transition as T, createBlock as U, createCommentVNode as j } from "vue";
2
+ import D from "./QSidebarAnchor.vue.js";
3
+ import F from "./QSidebarPanel.vue.js";
4
+ const K = /* @__PURE__ */ P({
5
+ __name: "QSidebar",
6
+ props: /* @__PURE__ */ z({
7
+ anchorWidth: { default: 50 },
8
+ showLabels: { type: Boolean },
9
+ panels: {},
10
+ position: { default: "left" }
11
+ }, {
12
+ modelValue: {},
13
+ modelModifiers: {}
14
+ }),
15
+ emits: /* @__PURE__ */ z(["click:item", "resize", "resize:start", "resize:end"], ["update:modelValue"]),
16
+ setup(f, { emit: V }) {
17
+ const a = f, u = V, n = x(f, "modelValue"), m = b();
18
+ W(
19
+ n,
20
+ (e) => {
21
+ e && (m.value = e);
22
+ },
23
+ { immediate: !0 }
24
+ );
25
+ const i = r(() => a.panels.find((e) => e.id === m.value)), h = r(() => !!i.value), t = b(), q = r(() => {
26
+ if (t.value !== void 0)
27
+ return h.value ? typeof t.value == "number" ? `${a.anchorWidth + t.value}px` : `calc(${a.anchorWidth}px + ${t.value})` : `${a.anchorWidth}px`;
28
+ }), C = r(() => {
29
+ var e, l, d, v, p, c, $;
30
+ return [
31
+ "q-sidebar",
32
+ `q-sidebar--${((e = i.value) == null ? void 0 : e.initialWidth) ?? "small"}`,
33
+ `q-sidebar--${a.position}`,
34
+ {
35
+ "q-sidebar--expanded": h.value,
36
+ [`q-sidebar--min-${(l = i.value) == null ? void 0 : l.minWidth}`]: ((d = i.value) == null ? void 0 : d.resizable) && ((v = i.value) == null ? void 0 : v.minWidth) !== void 0,
37
+ [`q-sidebar--max-${(p = i.value) == null ? void 0 : p.maxWidth}`]: ((c = i.value) == null ? void 0 : c.resizable) && (($ = i.value) == null ? void 0 : $.maxWidth) !== void 0
38
+ }
39
+ ];
40
+ }), R = r(() => a.position === "left" ? "right" : "left");
41
+ function S() {
42
+ u("resize:start");
43
+ }
44
+ function g(e) {
45
+ t.value = e, u("resize", e);
46
+ }
47
+ function B() {
48
+ u("resize:end", t.value);
49
+ }
50
+ function L(e) {
51
+ u("click:item", e);
52
+ }
53
+ function E() {
54
+ n.value || (m.value = void 0);
55
+ }
56
+ function M() {
57
+ var l;
58
+ const e = (l = i.value) == null ? void 0 : l.initialWidth;
59
+ typeof e == "number" ? t.value = e : t.value = void 0;
60
+ }
61
+ return W([() => a.anchorWidth, i], M, { immediate: !0, deep: !0 }), (e, l) => (w(), A(
62
+ "div",
63
+ {
64
+ class: I(C.value),
65
+ style: N({ width: q.value })
66
+ },
67
+ [
68
+ k(D, {
69
+ modelValue: n.value,
70
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => n.value = d),
71
+ panels: a.panels,
72
+ "anchor-width": a.anchorWidth,
73
+ "show-labels": a.showLabels,
74
+ "onClick:item": L
75
+ }, y({
76
+ _: 2
77
+ /* DYNAMIC */
78
+ }, [
79
+ Q(a.panels, (d) => ({
80
+ name: d.id,
81
+ fn: o(() => [
82
+ s(e.$slots, `anchor:${d.id}`, { item: d })
83
+ ])
84
+ }))
85
+ ]), 1032, ["modelValue", "panels", "anchor-width", "show-labels"]),
86
+ k(T, {
87
+ name: e.position === "left" ? "slide-right" : "slide-left",
88
+ onAfterLeave: E
89
+ }, {
90
+ default: o(() => [
91
+ n.value && i.value ? (w(), U(F, {
92
+ key: 0,
93
+ "show-grip": "",
94
+ title: i.value.title,
95
+ "initial-width": i.value.initialWidth,
96
+ "min-width": i.value.minWidth,
97
+ "max-width": i.value.maxWidth,
98
+ resizable: i.value.resizable,
99
+ "resize-position": R.value,
100
+ "onResize:start": S,
101
+ onResize: g,
102
+ "onResize:end": B
103
+ }, y({
104
+ _: 2
105
+ /* DYNAMIC */
106
+ }, [
107
+ e.$slots[`header.prepend:${n.value}`] ? {
108
+ name: "header.prepend",
109
+ fn: o(() => [
110
+ s(e.$slots, `header.prepend:${n.value}`)
111
+ ]),
112
+ key: "0"
113
+ } : void 0,
114
+ e.$slots[`header:${n.value}`] ? {
115
+ name: "header",
116
+ fn: o(() => [
117
+ s(e.$slots, `header:${n.value}`)
118
+ ]),
119
+ key: "1"
120
+ } : void 0,
121
+ e.$slots[`header.append:${n.value}`] ? {
122
+ name: "header.append",
123
+ fn: o(() => [
124
+ s(e.$slots, `header.append:${n.value}`)
125
+ ]),
126
+ key: "2"
127
+ } : void 0,
128
+ e.$slots[`content:${n.value}`] ? {
129
+ name: "content",
130
+ fn: o(() => [
131
+ s(e.$slots, `content:${n.value}`)
132
+ ]),
133
+ key: "3"
134
+ } : void 0,
135
+ e.$slots[`footer:${n.value}`] ? {
136
+ name: "footer",
137
+ fn: o(() => [
138
+ s(e.$slots, `footer:${n.value}`)
139
+ ]),
140
+ key: "4"
141
+ } : void 0
142
+ ]), 1032, ["title", "initial-width", "min-width", "max-width", "resizable", "resize-position"])) : j("v-if", !0)
143
+ ]),
144
+ _: 3
145
+ /* FORWARDED */
146
+ }, 8, ["name"])
147
+ ],
148
+ 6
149
+ /* CLASS, STYLE */
150
+ ));
151
+ }
152
+ });
153
+ export {
154
+ K as default
155
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QSidebar.vue.js";
2
+ export {
3
+ f as default
4
+ };