@quidgest/ui 0.32.0 → 0.32.1

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 (68) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/json/api.json +198 -28
  3. package/dist/ui.css +291 -108
  4. package/dist/ui.esm.js +989 -966
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.scss +433 -105
  7. package/lib/components/QAlert/QAlert.d.ts.map +1 -1
  8. package/lib/components/QAlert/QAlert.vue.js +13 -3
  9. package/lib/components/QAlert/types.d.ts +12 -0
  10. package/lib/components/QAlert/types.d.ts.map +1 -1
  11. package/lib/components/QBadge/QBadge.d.ts.map +1 -1
  12. package/lib/components/QBadge/QBadge.vue.js +20 -12
  13. package/lib/components/QBadge/types.d.ts +11 -0
  14. package/lib/components/QBadge/types.d.ts.map +1 -1
  15. package/lib/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  16. package/lib/components/QDateTimePicker/QDateTimePicker.vue.js +596 -574
  17. package/lib/components/QDefaultsProvider/QDefaultsProvider.vue.js +4 -2
  18. package/lib/components/QDefaultsProvider/types.d.ts +10 -0
  19. package/lib/components/QDefaultsProvider/types.d.ts.map +1 -1
  20. package/lib/components/QDrawer/QDrawer.d.ts.map +1 -1
  21. package/lib/components/QDrawer/QDrawer.vue.js +204 -201
  22. package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  23. package/lib/components/QDropdownMenu/QDropdownMenuContent.vue.js +95 -83
  24. package/lib/components/QField/types.d.ts +4 -4
  25. package/lib/components/QGauge/QGauge.d.ts.map +1 -1
  26. package/lib/components/QGauge/QGauge.vue.js +149 -121
  27. package/lib/components/QGauge/types.d.ts +16 -1
  28. package/lib/components/QGauge/types.d.ts.map +1 -1
  29. package/lib/components/QInputGroup/QInputGroup.d.ts +8 -7
  30. package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  31. package/lib/components/QInputGroup/QInputGroup.vue.js +82 -43
  32. package/lib/components/QLabel/QLabel.d.ts.map +1 -1
  33. package/lib/components/QLabel/QLabel.vue.js +1 -0
  34. package/lib/components/QList/QListItem.d.ts.map +1 -1
  35. package/lib/components/QList/QListItem.vue.js +39 -32
  36. package/lib/components/QMeter/types.d.ts +3 -0
  37. package/lib/components/QMeter/types.d.ts.map +1 -1
  38. package/lib/components/QOverlay/QOverlay.d.ts.map +1 -1
  39. package/lib/components/QOverlay/QOverlay.vue.js +88 -85
  40. package/lib/components/QPhoneField/QPhoneField.d.ts +6 -0
  41. package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  42. package/lib/components/QPhoneField/QPhoneField.vue.js +1 -1
  43. package/lib/components/QPhoneField/index.d.ts +3 -0
  44. package/lib/components/QPhoneField/index.d.ts.map +1 -1
  45. package/lib/components/QProgress/QProgress.d.ts.map +1 -1
  46. package/lib/components/QProgress/QProgress.vue.js +66 -47
  47. package/lib/components/QProgress/types.d.ts +3 -0
  48. package/lib/components/QProgress/types.d.ts.map +1 -1
  49. package/lib/components/QRadioGroup/QRadioGroup.d.ts +1 -1
  50. package/lib/components/QRadioGroup/index.d.ts +3 -3
  51. package/lib/components/QSelect/QSelect.d.ts +6 -0
  52. package/lib/components/QSelect/QSelect.d.ts.map +1 -1
  53. package/lib/components/QSelect/index.d.ts +3 -0
  54. package/lib/components/QSelect/index.d.ts.map +1 -1
  55. package/lib/components/QToast/QToaster.d.ts.map +1 -1
  56. package/lib/components/QToast/QToaster.vue.js +61 -58
  57. package/lib/composables/defaults.d.ts +25 -1
  58. package/lib/composables/defaults.d.ts.map +1 -1
  59. package/lib/composables/defaults.js +15 -7
  60. package/lib/composables/useColor/index.d.ts +2 -0
  61. package/lib/composables/useColor/index.d.ts.map +1 -1
  62. package/lib/composables/useColor/index.js +25 -19
  63. package/lib/composables/useColor/types.d.ts +12 -0
  64. package/lib/composables/useColor/types.d.ts.map +1 -1
  65. package/lib/utils/bidi.d.ts +27 -0
  66. package/lib/utils/bidi.d.ts.map +1 -0
  67. package/lib/utils/bidi.js +15 -0
  68. package/package.json +1 -1
@@ -6,10 +6,12 @@ var i = /*@__PURE__*/ t({
6
6
  props: {
7
7
  id: {},
8
8
  class: {},
9
- defaults: {}
9
+ defaults: {},
10
+ local: { type: Boolean }
10
11
  },
11
12
  setup(t) {
12
- return e(r(t, "defaults")), (e, t) => n(e.$slots, "default");
13
+ let i = t;
14
+ return e(r(i, "defaults"), { local: r(i, "local") }), (e, t) => n(e.$slots, "default");
13
15
  }
14
16
  });
15
17
  //#endregion
@@ -11,5 +11,15 @@ export type QDefaultsProviderProps = QBaseComponentProps & {
11
11
  * @category Configuration
12
12
  */
13
13
  defaults: QDefaults;
14
+ /**
15
+ * Keeps the defaults out of what is drawn on its own surface, over the page, but declared in
16
+ * the slot: overlays (dialogs, popovers, menus), temporary drawers and toasts. They reach every
17
+ * other component in it. For defaults that depend on where the content is drawn, such as the
18
+ * `surface` of buttons on a colored banner. The defaults the app sets, and those of other
19
+ * providers, still reach them.
20
+ *
21
+ * @category Configuration
22
+ */
23
+ local?: boolean;
14
24
  };
15
25
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDefaultsProvider/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IAC1D;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,CAAA;CACnB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDefaultsProvider/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IAC1D;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,CAAA;IAEnB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDrawer/QDrawer.vue"],"names":[],"mappings":"AAkKA;AA0uBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAiB,MAAM,aAAa,CAAA;AAgBzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAkBrC,KAAK,WAAW,GAAG,YAAY,CAAC;AA6jBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoZT,OAAO,IAA6B;;wBApBrB,GAAG;sBACL,GAAG;wBACD,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;EAiB/B;AA4DD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;wCA5jCpB,oBA7hBK;;;;;;;;;;;;;;;;;;;;;;;;OAmmDJ,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":"QDrawer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDrawer/QDrawer.vue"],"names":[],"mappings":"AAkKA;AA+uBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAiB,MAAM,aAAa,CAAA;AAiBzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAkBrC,KAAK,WAAW,GAAG,YAAY,CAAC;AAikBjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoZT,OAAO,IAA6B;;wBApBrB,GAAG;sBACL,GAAG;wBACD,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;EAiB/B;AA4DD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;wCAjkCpB,oBApiBC;;;;;;;;;;;;;;;;;;;;;;;;OA+mDA,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,45 +1,46 @@
1
- import { useId as e } from "../../composables/useId/index.js";
2
- import { QIcon as t } from "../QIcon/index.js";
3
- import { QDismissibleLayer as n } from "../QDismissibleLayer/index.js";
4
- import { QRemoveScrollBar as r } from "../QRemoveScrollBar/index.js";
5
- import { QFocusWrap as ee } from "../QFocusWrap/index.js";
6
- import { useOverlayScopeItem as i } from "../../composables/useOverlayScope/index.js";
7
- import { addModalLayer as te, removeModalLayer as a } from "../QOverlay/layers.js";
8
- import { hasSlotContent as o } from "../../utils/slots.js";
9
- import { QButton as ne } from "../QButton/index.js";
10
- import { DEFAULT_ICONS as s, DEFAULT_TEXTS as re } from "./constants.js";
11
- import { QResizeButtons as ie, QResizeHandle as ae } from "../__internal__/QResizeHandle/index.js";
12
- import { DEFAULT_RAIL_WIDTH as c } from "../../utils/railWidth.js";
13
- import { Teleport as oe, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as se, createVNode as h, defineComponent as g, guardReactiveProps as ce, mergeModels as _, nextTick as le, normalizeClass as v, normalizeProps as ue, normalizeStyle as de, onBeforeUnmount as fe, onMounted as pe, openBlock as y, ref as b, renderSlot as x, resolveDynamicComponent as S, toDisplayString as me, toRef as he, unref as C, useModel as ge, useSlots as _e, useTemplateRef as ve, watch as w, withCtx as T, withModifiers as ye } from "vue";
1
+ import { provideOuterDefaults as e } from "../../composables/defaults.js";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
+ import { QIcon as n } from "../QIcon/index.js";
4
+ import { QDismissibleLayer as r } from "../QDismissibleLayer/index.js";
5
+ import { QRemoveScrollBar as ee } from "../QRemoveScrollBar/index.js";
6
+ import { QFocusWrap as te } from "../QFocusWrap/index.js";
7
+ import { useOverlayScopeItem as ne } from "../../composables/useOverlayScope/index.js";
8
+ import { addModalLayer as re, removeModalLayer as ie } from "../QOverlay/layers.js";
9
+ import { hasSlotContent as i } from "../../utils/slots.js";
10
+ import { QButton as ae } from "../QButton/index.js";
11
+ import { DEFAULT_ICONS as a, DEFAULT_TEXTS as o } from "./constants.js";
12
+ import { QResizeButtons as oe, QResizeHandle as se } from "../__internal__/QResizeHandle/index.js";
13
+ import { DEFAULT_RAIL_WIDTH as s } from "../../utils/railWidth.js";
14
+ import { Teleport as ce, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as le, createVNode as m, defineComponent as h, guardReactiveProps as ue, mergeModels as g, nextTick as de, normalizeClass as _, normalizeProps as fe, normalizeStyle as pe, onBeforeUnmount as me, onMounted as he, openBlock as v, ref as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as ge, toRef as _e, unref as S, useModel as ve, useSlots as ye, useTemplateRef as be, watch as C, withCtx as w, withModifiers as xe } from "vue";
14
15
  //#region src/components/QDrawer/QDrawer.vue?vue&type=script&setup=true&lang.ts
15
- var be = [
16
+ var Se = [
16
17
  "role",
17
18
  "aria-modal",
18
19
  "aria-labelledby",
19
20
  "aria-label",
20
21
  "tabindex"
21
- ], xe = { class: "q-drawer__inner" }, Se = {
22
+ ], Ce = { class: "q-drawer__inner" }, we = {
22
23
  key: 0,
23
24
  class: "q-drawer__rail"
24
- }, Ce = { class: "q-drawer__expanded" }, we = {
25
+ }, Te = { class: "q-drawer__expanded" }, Ee = {
25
26
  key: 0,
26
27
  class: "q-drawer__header"
27
- }, Te = {
28
+ }, De = {
28
29
  key: 1,
29
30
  class: "q-drawer__prepend"
30
- }, Ee = { class: "q-drawer__content" }, De = {
31
+ }, Oe = { class: "q-drawer__content" }, ke = {
31
32
  key: 2,
32
33
  class: "q-drawer__append"
33
- }, Oe = {
34
+ }, Ae = {
34
35
  key: 3,
35
36
  class: "q-drawer__footer"
36
- }, ke = {
37
+ }, je = {
37
38
  key: 0,
38
39
  ref: "layer",
39
40
  class: "q-drawer__layer"
40
- }, E = /*@__PURE__*/ g({
41
+ }, T = /*@__PURE__*/ h({
41
42
  __name: "QDrawer",
42
- props: /*@__PURE__*/ _({
43
+ props: /*@__PURE__*/ g({
43
44
  id: {},
44
45
  class: {},
45
46
  location: { default: "left" },
@@ -54,7 +55,7 @@ var be = [
54
55
  },
55
56
  railExpand: { default: "beside" },
56
57
  width: { default: 280 },
57
- railWidth: { default: c },
58
+ railWidth: { default: s },
58
59
  minWidth: { default: 50 },
59
60
  maxWidth: {},
60
61
  resizable: {
@@ -103,8 +104,8 @@ var be = [
103
104
  type: Boolean,
104
105
  default: !1
105
106
  },
106
- icons: { default: () => s },
107
- texts: { default: () => re }
107
+ icons: { default: () => a },
108
+ texts: { default: () => o }
108
109
  }, {
109
110
  modelValue: {
110
111
  type: Boolean,
@@ -112,275 +113,277 @@ var be = [
112
113
  },
113
114
  modelModifiers: {}
114
115
  }),
115
- emits: /*@__PURE__*/ _([
116
+ emits: /*@__PURE__*/ g([
116
117
  "resize",
117
118
  "resize:start",
118
119
  "resize:end"
119
120
  ], ["update:modelValue"]),
120
- setup(s, { emit: re }) {
121
- let c = s, g = re, _ = ge(s, "modelValue"), E = e(he(c, "id")), D = _e(), O = u(() => `${E.value}_title`), k = ve("surface"), A = ve("layer");
122
- i(k);
123
- let j = u(() => _.value), M = u(() => c.mode === "temporary"), Ae = u(() => M.value && (j.value || G.value)), N = u(() => M.value && !!c.focusWrap && j.value), je = u(() => M.value && j.value), Me = u(() => M.value && c.scrollLock && (j.value || G.value)), Ne = u(() => M.value ? "div" : "aside"), Pe = u(() => N.value ? !0 : void 0), Fe = u(() => c.location === "left" ? "slide-right" : "slide-left"), Ie = u(() => c.headingLevel !== void 0 && c.headingLevel >= 1 && c.headingLevel <= 6 ? `h${c.headingLevel}` : "div");
124
- function Le() {
125
- return !!c.title && !o(D.header) && !o(D.drawer);
121
+ setup(a, { emit: o }) {
122
+ let s = a, h = o, g = ve(a, "modelValue"), T = t(_e(s, "id")), E = ye(), Me = l(() => `${T.value}_title`), D = be("surface"), O = be("layer");
123
+ ne(D);
124
+ let k = l(() => g.value), A = l(() => s.mode === "temporary");
125
+ e(A);
126
+ let Ne = l(() => A.value && (k.value || K.value)), j = l(() => A.value && !!s.focusWrap && k.value), Pe = l(() => A.value && k.value), Fe = l(() => A.value && s.scrollLock && (k.value || K.value)), Ie = l(() => A.value ? "div" : "aside"), Le = l(() => j.value ? !0 : void 0), Re = l(() => s.location === "left" ? "slide-right" : "slide-left"), ze = l(() => s.headingLevel !== void 0 && s.headingLevel >= 1 && s.headingLevel <= 6 ? `h${s.headingLevel}` : "div");
127
+ function Be() {
128
+ return !!s.title && !i(E.header) && !i(E.drawer);
126
129
  }
127
- function Re() {
128
- return !!c.title || o(D.header) || o(D["header.prepend"]) || o(D["header.append"]) || c.dismissible || !!W.value;
130
+ function Ve() {
131
+ return !!s.title || i(E.header) || i(E["header.prepend"]) || i(E["header.append"]) || s.dismissible || !!G.value;
129
132
  }
130
- function P() {
131
- return c.rail && o(D.rail);
133
+ function M() {
134
+ return s.rail && i(E.rail);
132
135
  }
133
- let F = b(!1), I = b(!1), L = b(!1), R;
134
- function z() {
135
- return P() && c.expandOnHover && F.value;
136
+ let N = y(!1), P = y(!1), F = y(!1), I;
137
+ function L() {
138
+ return M() && s.expandOnHover && N.value;
136
139
  }
137
- function B() {
138
- return z() && I.value;
140
+ function R() {
141
+ return L() && P.value;
139
142
  }
140
- function ze() {
141
- return P() && !(c.railExpand === "replace" && B());
143
+ function He() {
144
+ return M() && !(s.railExpand === "replace" && R());
142
145
  }
143
- function Be() {
144
- return P() && c.expandOnHover && L.value;
146
+ function Ue() {
147
+ return M() && s.expandOnHover && F.value;
145
148
  }
146
- function Ve(e) {
149
+ function z(e) {
147
150
  let t = getComputedStyle(e).getPropertyValue("--q-transition-duration").trim() || "0s", n = parseFloat(t);
148
151
  return Number.isNaN(n) ? 0 : t.endsWith("ms") ? n : n * 1e3;
149
152
  }
150
- function V() {
151
- R !== void 0 && (clearTimeout(R), R = void 0);
153
+ function B() {
154
+ I !== void 0 && (clearTimeout(I), I = void 0);
152
155
  }
153
- function He() {
154
- V();
155
- let e = k.value, t = e ? Ve(e) : 0;
156
+ function We() {
157
+ B();
158
+ let e = D.value, t = e ? z(e) : 0;
156
159
  if (t <= 0) {
157
- I.value = !0;
160
+ P.value = !0;
158
161
  return;
159
162
  }
160
- R = setTimeout(() => {
161
- R = void 0, F.value && (I.value = !0);
163
+ I = setTimeout(() => {
164
+ I = void 0, N.value && (P.value = !0);
162
165
  }, t);
163
166
  }
164
- function Ue() {
165
- V();
166
- let e = k.value, t = e ? Ve(e) : 0;
167
+ function Ge() {
168
+ B();
169
+ let e = D.value, t = e ? z(e) : 0;
167
170
  if (t <= 0) {
168
- L.value = !1;
171
+ F.value = !1;
169
172
  return;
170
173
  }
171
- R = setTimeout(() => {
172
- R = void 0, F.value || (L.value = !1);
174
+ I = setTimeout(() => {
175
+ I = void 0, N.value || (F.value = !1);
173
176
  }, t);
174
177
  }
175
- function We(e) {
178
+ function Ke(e) {
176
179
  if (e.target === e.currentTarget && e.propertyName === "width") {
177
- if (V(), F.value) {
178
- I.value = !0;
180
+ if (B(), N.value) {
181
+ P.value = !0;
179
182
  return;
180
183
  }
181
- L.value = !1;
184
+ F.value = !1;
182
185
  }
183
186
  }
184
- function Ge() {
185
- !P() || !c.expandOnHover || F.value || (V(), F.value = !0, c.railExpand !== "replace" && (L.value = !0), He());
187
+ function V() {
188
+ !M() || !s.expandOnHover || N.value || (B(), N.value = !0, s.railExpand !== "replace" && (F.value = !0), We());
186
189
  }
187
- function Ke() {
188
- Je();
190
+ function qe() {
191
+ H();
189
192
  }
190
- function qe(e) {
193
+ function Je(e) {
191
194
  let t = e.relatedTarget ?? document.activeElement;
192
- t && k.value?.contains(t) || Je();
193
- }
194
- function Je() {
195
- V(), I.value = !1, le(() => {
196
- F.value = !1, Ue();
197
- });
195
+ t && D.value?.contains(t) || H();
198
196
  }
199
197
  function H() {
200
- if (!P()) return Le() ? O.value : void 0;
198
+ B(), P.value = !1, de(() => {
199
+ N.value = !1, Ge();
200
+ });
201
201
  }
202
202
  function U() {
203
- if (!H()) return c.label ? c.label : c.title ? c.title : c.texts.drawer;
203
+ if (!M()) return Be() ? Me.value : void 0;
204
+ }
205
+ function W() {
206
+ if (!U()) return s.label ? s.label : s.title ? s.title : s.texts.drawer;
204
207
  }
205
208
  function Ye() {
206
- return H();
209
+ return U();
207
210
  }
208
211
  function Xe() {
209
- return U();
212
+ return W();
210
213
  }
211
- let Ze = u(() => c.location === "left" ? "right" : "left"), W = u(() => c.resizable && !c.rail), G = b(!1), K = b(), q = b(!1);
212
- w(() => q.value && N.value ? A.value : null, (e, t) => {
213
- t && a(t), e && te(e);
214
+ let Ze = l(() => s.location === "left" ? "right" : "left"), G = l(() => s.resizable && !s.rail), K = y(!1), q = y(), J = y(!1);
215
+ C(() => J.value && j.value ? O.value : null, (e, t) => {
216
+ t && ie(t), e && re(e);
214
217
  });
215
- let J = b({
218
+ let Y = y({
216
219
  now: 0,
217
220
  min: 0,
218
221
  max: 0
219
222
  });
220
- function Y() {
221
- let e = k.value?.getBoundingClientRect().width || 0, t = K.value ?? (typeof c.width == "number" ? c.width : 280), n = Math.round(K.value ?? (e || t)), r = Math.max(Math.round(c.minWidth), 0);
222
- return J.value = {
223
+ function X() {
224
+ let e = D.value?.getBoundingClientRect().width || 0, t = q.value ?? (typeof s.width == "number" ? s.width : 280), n = Math.round(q.value ?? (e || t)), r = Math.max(Math.round(s.minWidth), 0);
225
+ return Y.value = {
223
226
  now: n,
224
227
  min: r,
225
- max: Math.max(Math.round(c.maxWidth ?? window.innerWidth), r)
226
- }, J.value;
228
+ max: Math.max(Math.round(s.maxWidth ?? window.innerWidth), r)
229
+ }, Y.value;
227
230
  }
228
231
  function Qe() {
229
- return k.value?.getBoundingClientRect().width || K.value || 0;
232
+ return D.value?.getBoundingClientRect().width || q.value || 0;
230
233
  }
231
- let X = b(!1);
234
+ let Z = y(!1);
232
235
  function $e() {
233
- X.value = !0, g("resize:start");
236
+ Z.value = !0, h("resize:start");
234
237
  }
235
238
  function et(e) {
236
- X.value = !1, Y(), g("resize:end", J.value.now || e);
239
+ Z.value = !1, X(), h("resize:end", Y.value.now || e);
237
240
  }
238
- w(_, () => {
239
- G.value = !0;
241
+ C(g, () => {
242
+ K.value = !0;
240
243
  });
241
244
  function tt() {
242
- q.value = !0;
245
+ J.value = !0;
243
246
  }
244
247
  function nt() {
245
- q.value = !1;
248
+ J.value = !1;
246
249
  }
247
250
  function rt() {
248
- G.value = !1;
251
+ K.value = !1;
249
252
  }
250
- let it = u(() => [
253
+ let it = l(() => [
251
254
  "q-drawer",
252
- `q-drawer--${c.location}`,
253
- `q-drawer--${c.mode}`,
255
+ `q-drawer--${s.location}`,
256
+ `q-drawer--${s.mode}`,
254
257
  {
255
- "q-drawer--rail": c.rail,
256
- "q-drawer--expand-on-hover": c.rail && c.expandOnHover,
257
- "q-drawer--rail-expand-beside": c.rail && c.railExpand === "beside",
258
- "q-drawer--rail-expand-replace": c.rail && c.railExpand === "replace",
259
- "q-drawer--resizable": W.value,
260
- "q-drawer--resizing": X.value
258
+ "q-drawer--rail": s.rail,
259
+ "q-drawer--expand-on-hover": s.rail && s.expandOnHover,
260
+ "q-drawer--rail-expand-beside": s.rail && s.railExpand === "beside",
261
+ "q-drawer--rail-expand-replace": s.rail && s.railExpand === "replace",
262
+ "q-drawer--resizable": G.value,
263
+ "q-drawer--resizing": Z.value
261
264
  },
262
- c.class
265
+ s.class
263
266
  ]);
264
- function Z(e) {
267
+ function Q(e) {
265
268
  return typeof e == "number" ? `calc(${e}px * var(--q-density-scale))` : e;
266
269
  }
267
- let at = u(() => c.rail ? Z(c.railWidth) : Z(c.width)), ot = u(() => Z(c.width)), st = u(() => ({
268
- "--q-drawer-width": K.value === void 0 ? at.value : `${K.value}px`,
270
+ let at = l(() => s.rail ? Q(s.railWidth) : Q(s.width)), ot = l(() => Q(s.width)), st = l(() => ({
271
+ "--q-drawer-width": q.value === void 0 ? at.value : `${q.value}px`,
269
272
  "--q-drawer-expanded-width": ot.value
270
273
  }));
271
274
  function ct() {
272
- _.value = !1;
275
+ g.value = !1;
273
276
  }
274
277
  function lt() {
275
278
  ct();
276
279
  }
277
280
  function ut(e) {
278
- c.persistent && e.preventDefault();
281
+ s.persistent && e.preventDefault();
279
282
  }
280
283
  function dt(e) {
281
- let t = c.maxWidth ?? window.innerWidth, n = Math.min(Math.max(e, c.minWidth), t);
282
- K.value = n, g("resize", n), J.value = {
283
- ...J.value,
284
+ let t = s.maxWidth ?? window.innerWidth, n = Math.min(Math.max(e, s.minWidth), t);
285
+ q.value = n, h("resize", n), Y.value = {
286
+ ...Y.value,
284
287
  now: Math.round(n)
285
288
  };
286
289
  }
287
- w(() => c.rail, (e) => {
288
- e && (K.value = void 0);
289
- }), w(() => [
290
- c.minWidth,
291
- c.maxWidth,
292
- c.width,
293
- K.value
290
+ C(() => s.rail, (e) => {
291
+ e && (q.value = void 0);
292
+ }), C(() => [
293
+ s.minWidth,
294
+ s.maxWidth,
295
+ s.width,
296
+ q.value
294
297
  ], () => {
295
- k.value && Y();
298
+ D.value && X();
296
299
  });
297
- let Q = null;
298
- function $(e) {
299
- Q?.disconnect(), Q = null, e && (Q = new ResizeObserver(Y), Q.observe(e), Y());
300
- }
301
- return pe(() => $(k.value)), w(k, (e) => $(e)), fe(() => {
302
- V(), A.value && a(A.value), Q?.disconnect(), Q = null, G.value = !1, q.value = !1;
303
- }), (e, i) => (y(), d(oe, {
304
- disabled: !M.value || c.inline,
305
- to: c.attach
300
+ let $ = null;
301
+ function ft(e) {
302
+ $?.disconnect(), $ = null, e && ($ = new ResizeObserver(X), $.observe(e), X());
303
+ }
304
+ return he(() => ft(D.value)), C(D, (e) => ft(e)), me(() => {
305
+ B(), O.value && ie(O.value), $?.disconnect(), $ = null, K.value = !1, J.value = !1;
306
+ }), (e, t) => (v(), u(ce, {
307
+ disabled: !A.value || s.inline,
308
+ to: s.attach
306
309
  }, [
307
- h(l, {
310
+ m(c, {
308
311
  name: "fade",
309
312
  appear: ""
310
313
  }, {
311
- default: T(() => [Ae.value ? (y(), p("div", {
314
+ default: w(() => [Ne.value ? (v(), f("div", {
312
315
  key: 0,
313
- class: v(["q-drawer__underlay", { "q-drawer__underlay--blur": c.backdropBlur }]),
316
+ class: _(["q-drawer__underlay", { "q-drawer__underlay--blur": s.backdropBlur }]),
314
317
  "aria-hidden": "true",
315
- onMousedown: i[0] ||= ye(() => {}, ["prevent"])
316
- }, null, 34)) : f("", !0)]),
318
+ onMousedown: t[0] ||= xe(() => {}, ["prevent"])
319
+ }, null, 34)) : d("", !0)]),
317
320
  _: 1
318
321
  }),
319
- h(l, {
320
- name: Fe.value,
322
+ m(c, {
323
+ name: Re.value,
321
324
  appear: "",
322
325
  onAfterEnter: tt,
323
326
  onLeave: nt,
324
327
  onAfterLeave: rt
325
328
  }, {
326
- default: T(() => [j.value ? (y(), d(S(Ne.value), {
329
+ default: w(() => [k.value ? (v(), u(x(Ie.value), {
327
330
  key: 0,
328
- id: C(E),
331
+ id: S(T),
329
332
  ref: "surface",
330
- class: v([it.value, {
331
- "q-drawer--has-rail-slot": P(),
332
- "q-drawer--rail-open": z(),
333
- "q-drawer--rail-panel": B(),
334
- "q-drawer--rail-divider": Be()
333
+ class: _([it.value, {
334
+ "q-drawer--has-rail-slot": M(),
335
+ "q-drawer--rail-open": L(),
336
+ "q-drawer--rail-panel": R(),
337
+ "q-drawer--rail-divider": Ue()
335
338
  }]),
336
- style: de(st.value),
337
- "aria-labelledby": M.value ? void 0 : H(),
338
- "aria-label": M.value ? void 0 : U(),
339
- onMouseenter: Ge,
340
- onMouseleave: Ke,
341
- onFocusin: Ge,
342
- onFocusout: qe,
343
- onTransitionend: We
339
+ style: pe(st.value),
340
+ "aria-labelledby": A.value ? void 0 : U(),
341
+ "aria-label": A.value ? void 0 : W(),
342
+ onMouseenter: V,
343
+ onMouseleave: qe,
344
+ onFocusin: V,
345
+ onFocusout: Je,
346
+ onTransitionend: Ke
344
347
  }, {
345
- default: T(() => [(y(), d(S(M.value ? C(n) : "div"), {
348
+ default: w(() => [(v(), u(x(A.value ? S(r) : "div"), {
346
349
  onDismiss: lt,
347
350
  onInteractOutside: ut
348
351
  }, {
349
- default: T(() => [h(C(ee), {
350
- active: je.value,
351
- wrap: N.value,
352
- "initial-focus": c.initialFocus,
353
- "focus-within-on-activate": c.focusWithinOnActivate,
354
- "closing-focus": c.closingFocus,
355
- "return-focus-on-deactivate": c.returnFocusOnDeactivate
352
+ default: w(() => [m(S(te), {
353
+ active: Pe.value,
354
+ wrap: j.value,
355
+ "initial-focus": s.initialFocus,
356
+ "focus-within-on-activate": s.focusWithinOnActivate,
357
+ "closing-focus": s.closingFocus,
358
+ "return-focus-on-deactivate": s.returnFocusOnDeactivate
356
359
  }, {
357
- default: T(() => [m("div", {
360
+ default: w(() => [p("div", {
358
361
  class: "q-drawer__dialog",
359
- role: M.value ? "dialog" : void 0,
360
- "aria-modal": Pe.value,
361
- "aria-labelledby": M.value ? H() : void 0,
362
- "aria-label": M.value ? U() : void 0,
363
- tabindex: M.value ? -1 : void 0
364
- }, [m("div", xe, [x(e.$slots, "drawer", {}, () => [ze() ? (y(), p("div", Se, [x(e.$slots, "rail")])) : f("", !0), m("div", Ce, [
365
- Re() ? (y(), p("div", we, [
366
- x(e.$slots, "header", {}, () => [
367
- x(e.$slots, "header.prepend"),
368
- c.title ? (y(), d(S(Ie.value), {
362
+ role: A.value ? "dialog" : void 0,
363
+ "aria-modal": Le.value,
364
+ "aria-labelledby": A.value ? U() : void 0,
365
+ "aria-label": A.value ? W() : void 0,
366
+ tabindex: A.value ? -1 : void 0
367
+ }, [p("div", Ce, [b(e.$slots, "drawer", {}, () => [He() ? (v(), f("div", we, [b(e.$slots, "rail")])) : d("", !0), p("div", Te, [
368
+ Ve() ? (v(), f("div", Ee, [
369
+ b(e.$slots, "header", {}, () => [
370
+ b(e.$slots, "header.prepend"),
371
+ s.title ? (v(), u(x(ze.value), {
369
372
  key: 0,
370
- id: O.value,
373
+ id: Me.value,
371
374
  class: "q-drawer__title"
372
375
  }, {
373
- default: T(() => [se(me(c.title), 1)]),
376
+ default: w(() => [le(ge(s.title), 1)]),
374
377
  _: 1
375
- }, 8, ["id"])) : f("", !0),
376
- x(e.$slots, "header.append")
378
+ }, 8, ["id"])) : d("", !0),
379
+ b(e.$slots, "header.append")
377
380
  ]),
378
- W.value ? (y(), d(C(ie), {
381
+ G.value ? (v(), u(S(oe), {
379
382
  key: 0,
380
- size: J.value,
381
- measure: Y,
382
- icons: c.icons,
383
- texts: c.texts,
383
+ size: Y.value,
384
+ measure: X,
385
+ icons: s.icons,
386
+ texts: s.texts,
384
387
  "shrink-test-id": "q-drawer-shrink",
385
388
  "grow-test-id": "q-drawer-grow",
386
389
  onResize: dt,
@@ -390,31 +393,31 @@ var be = [
390
393
  "size",
391
394
  "icons",
392
395
  "texts"
393
- ])) : f("", !0),
394
- c.dismissible ? (y(), d(C(ne), {
396
+ ])) : d("", !0),
397
+ s.dismissible ? (v(), u(S(ae), {
395
398
  key: 1,
396
399
  class: "q-drawer__close",
397
400
  variant: "text",
398
- "aria-label": c.texts.close,
401
+ "aria-label": s.texts.close,
399
402
  onClick: ct
400
403
  }, {
401
- default: T(() => [h(C(t), ue(ce(c.icons.close)), null, 16)]),
404
+ default: w(() => [m(S(n), fe(ue(s.icons.close)), null, 16)]),
402
405
  _: 1
403
- }, 8, ["aria-label"])) : f("", !0)
404
- ])) : f("", !0),
405
- C(o)(e.$slots.prepend) ? (y(), p("div", Te, [x(e.$slots, "prepend")])) : f("", !0),
406
- m("div", Ee, [x(e.$slots, "default")]),
407
- C(o)(e.$slots.append) ? (y(), p("div", De, [x(e.$slots, "append")])) : f("", !0),
408
- C(o)(e.$slots.footer) ? (y(), p("div", Oe, [x(e.$slots, "footer")])) : f("", !0)
409
- ])]), W.value ? (y(), d(C(ae), {
406
+ }, 8, ["aria-label"])) : d("", !0)
407
+ ])) : d("", !0),
408
+ S(i)(e.$slots.prepend) ? (v(), f("div", De, [b(e.$slots, "prepend")])) : d("", !0),
409
+ p("div", Oe, [b(e.$slots, "default")]),
410
+ S(i)(e.$slots.append) ? (v(), f("div", ke, [b(e.$slots, "append")])) : d("", !0),
411
+ S(i)(e.$slots.footer) ? (v(), f("div", Ae, [b(e.$slots, "footer")])) : d("", !0)
412
+ ])]), G.value ? (v(), u(S(se), {
410
413
  key: 0,
411
414
  class: "q-drawer__handle",
412
415
  edge: Ze.value,
413
- size: J.value,
414
- measure: Y,
416
+ size: Y.value,
417
+ measure: X,
415
418
  "get-width": Qe,
416
- "show-grip": c.showGrip,
417
- enabled: c.resizable && !c.rail,
419
+ "show-grip": s.showGrip,
420
+ enabled: s.resizable && !s.rail,
418
421
  "labelled-by": Ye(),
419
422
  label: Xe(),
420
423
  "handle-test-id": "q-drawer-handle",
@@ -428,7 +431,7 @@ var be = [
428
431
  "enabled",
429
432
  "labelled-by",
430
433
  "label"
431
- ])) : f("", !0)]), N.value ? (y(), p("div", ke, null, 512)) : f("", !0)], 8, be)]),
434
+ ])) : d("", !0)]), j.value ? (v(), f("div", je, null, 512)) : d("", !0)], 8, Se)]),
432
435
  _: 3
433
436
  }, 8, [
434
437
  "active",
@@ -447,12 +450,12 @@ var be = [
447
450
  "style",
448
451
  "aria-labelledby",
449
452
  "aria-label"
450
- ])) : f("", !0)]),
453
+ ])) : d("", !0)]),
451
454
  _: 3
452
455
  }, 8, ["name"]),
453
- Me.value ? (y(), d(C(r), { key: 0 })) : f("", !0)
456
+ Fe.value ? (v(), u(S(ee), { key: 0 })) : d("", !0)
454
457
  ], 8, ["disabled", "to"]));
455
458
  }
456
459
  });
457
460
  //#endregion
458
- export { E as default };
461
+ export { T as default };