@quidgest/ui 0.17.9 → 0.19.0

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 (135) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/dist/json/api.json +302 -143
  3. package/dist/manifest/components.json +4 -1
  4. package/dist/ui.css +460 -167
  5. package/dist/ui.esm.js +618 -631
  6. package/dist/ui.js +490 -504
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +490 -504
  9. package/dist/ui.scss +439 -167
  10. package/esm/components/QAccordion/QAccordionItem.vue.js +1 -0
  11. package/esm/components/QCarousel/QCarousel.vue.js +1 -1
  12. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  13. package/esm/components/QCheckbox/QCheckbox.vue.js +2 -0
  14. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -1
  15. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  16. package/esm/components/QCollapsible/QCollapsible.vue.js +50 -47
  17. package/esm/components/QCollapsible/constants.d.ts +6 -0
  18. package/esm/components/QCollapsible/constants.d.ts.map +1 -1
  19. package/esm/components/QCollapsible/constants.js +3 -2
  20. package/esm/components/QCollapsible/index.d.ts +6 -0
  21. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  22. package/esm/components/QCollapsible/types.d.ts +11 -1
  23. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  24. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  25. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +505 -597
  26. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +32 -16
  27. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  28. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +179 -86
  29. package/esm/components/QDropdownMenu/types.d.ts +6 -0
  30. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  31. package/esm/components/QField/types.d.ts +3 -0
  32. package/esm/components/QField/types.d.ts.map +1 -1
  33. package/esm/components/QGrid/QCol.vue.js +1 -1
  34. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  35. package/esm/components/QLabel/QLabel.vue.js +19 -17
  36. package/esm/components/QLabel/types.d.ts +3 -0
  37. package/esm/components/QLabel/types.d.ts.map +1 -1
  38. package/esm/components/{QGroupBox/QGroupBox.d.ts → QSection/QSection.d.ts} +4 -4
  39. package/esm/components/QSection/QSection.d.ts.map +1 -0
  40. package/esm/components/{QGroupBox/QGroupBox.vue.js → QSection/QSection.vue.js} +8 -8
  41. package/esm/components/QSection/QSection2.vue.js +5 -0
  42. package/esm/components/{QGroupBox → QSection}/index.d.ts +8 -8
  43. package/esm/components/QSection/index.d.ts.map +1 -0
  44. package/esm/components/QSection/index.js +6 -0
  45. package/esm/components/QSection/types.d.ts +32 -0
  46. package/esm/components/QSection/types.d.ts.map +1 -0
  47. package/esm/components/QSidebar/QSidebar.d.ts +53 -6
  48. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  49. package/esm/components/QSidebar/QSidebar.vue.js +76 -106
  50. package/esm/components/QSidebar/QSidebarAnchor.d.ts +24 -210
  51. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  52. package/esm/components/QSidebar/QSidebarAnchor.vue.js +47 -59
  53. package/esm/components/QSidebar/QSidebarItem.d.ts +213 -0
  54. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -0
  55. package/esm/components/QSidebar/QSidebarItem.vue.js +130 -0
  56. package/esm/components/QSidebar/QSidebarItem2.vue.js +5 -0
  57. package/esm/components/QSidebar/QSidebarPanel.d.ts +1 -7
  58. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
  59. package/esm/components/QSidebar/QSidebarPanel.vue.js +4 -10
  60. package/esm/components/QSidebar/context.d.ts +108 -0
  61. package/esm/components/QSidebar/context.d.ts.map +1 -0
  62. package/esm/components/QSidebar/context.js +4 -0
  63. package/esm/components/QSidebar/index.d.ts +166 -8
  64. package/esm/components/QSidebar/index.d.ts.map +1 -1
  65. package/esm/components/QSidebar/index.js +3 -2
  66. package/esm/components/QSidebar/types.d.ts +77 -42
  67. package/esm/components/QSidebar/types.d.ts.map +1 -1
  68. package/esm/components/QTabs/QTab.d.ts +173 -0
  69. package/esm/components/QTabs/QTab.d.ts.map +1 -0
  70. package/esm/components/QTabs/QTab.vue.js +123 -0
  71. package/esm/components/QTabs/QTab2.vue.js +5 -0
  72. package/esm/components/QTabs/QTabs.d.ts +37 -0
  73. package/esm/components/QTabs/QTabs.d.ts.map +1 -0
  74. package/esm/components/QTabs/QTabs.vue.js +162 -0
  75. package/esm/components/QTabs/QTabs2.vue.js +5 -0
  76. package/esm/components/QTabs/constants.d.ts +5 -0
  77. package/esm/components/QTabs/constants.d.ts.map +1 -0
  78. package/esm/components/QTabs/context.d.ts +85 -0
  79. package/esm/components/QTabs/context.d.ts.map +1 -0
  80. package/esm/components/QTabs/context.js +4 -0
  81. package/esm/components/QTabs/index.d.ts +166 -0
  82. package/esm/components/QTabs/index.d.ts.map +1 -0
  83. package/esm/components/QTabs/index.js +7 -0
  84. package/esm/components/QTabs/types.d.ts +108 -0
  85. package/esm/components/QTabs/types.d.ts.map +1 -0
  86. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts +7 -0
  87. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts.map +1 -0
  88. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +24 -0
  89. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator2.vue.js +5 -0
  90. package/esm/components/__internal__/QRequiredIndicator/constants.d.ts +7 -0
  91. package/esm/components/__internal__/QRequiredIndicator/constants.d.ts.map +1 -0
  92. package/esm/components/__internal__/QRequiredIndicator/constants.js +4 -0
  93. package/esm/components/__internal__/QRequiredIndicator/index.d.ts +6 -0
  94. package/esm/components/__internal__/QRequiredIndicator/index.d.ts.map +1 -0
  95. package/esm/components/__internal__/QRequiredIndicator/index.js +6 -0
  96. package/esm/components/__internal__/QRequiredIndicator/types.d.ts +18 -0
  97. package/esm/components/__internal__/QRequiredIndicator/types.d.ts.map +1 -0
  98. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +10 -0
  99. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts.map +1 -0
  100. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +31 -0
  101. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle2.vue.js +5 -0
  102. package/esm/components/__internal__/QSafeTriangle/index.d.ts +10 -0
  103. package/esm/components/__internal__/QSafeTriangle/index.d.ts.map +1 -0
  104. package/esm/components/__internal__/QSafeTriangle/index.js +6 -0
  105. package/esm/components/__internal__/QSafeTriangle/types.d.ts +33 -0
  106. package/esm/components/__internal__/QSafeTriangle/types.d.ts.map +1 -0
  107. package/esm/components/index.d.ts +2 -1
  108. package/esm/components/index.d.ts.map +1 -1
  109. package/esm/components/index.js +41 -37
  110. package/esm/composables/useSafeTriangle/index.d.ts +31 -0
  111. package/esm/composables/useSafeTriangle/index.d.ts.map +1 -0
  112. package/esm/composables/useSafeTriangle/index.js +87 -0
  113. package/esm/index.d.ts +4 -1
  114. package/esm/utils/date.d.ts +36 -1
  115. package/esm/utils/date.d.ts.map +1 -1
  116. package/esm/utils/date.js +90 -1
  117. package/esm/utils/index.d.ts +1 -0
  118. package/esm/utils/index.d.ts.map +1 -1
  119. package/esm/utils/index.js +30 -24
  120. package/esm/utils/mask.d.ts +17 -0
  121. package/esm/utils/mask.d.ts.map +1 -0
  122. package/esm/utils/mask.js +154 -0
  123. package/esm/utils/safeTriangle.d.ts +68 -0
  124. package/esm/utils/safeTriangle.d.ts.map +1 -0
  125. package/esm/utils/safeTriangle.js +83 -0
  126. package/package.json +7 -6
  127. package/esm/components/QGroupBox/QGroupBox.d.ts.map +0 -1
  128. package/esm/components/QGroupBox/QGroupBox2.vue.js +0 -5
  129. package/esm/components/QGroupBox/index.d.ts.map +0 -1
  130. package/esm/components/QGroupBox/index.js +0 -6
  131. package/esm/components/QGroupBox/types.d.ts +0 -32
  132. package/esm/components/QGroupBox/types.d.ts.map +0 -1
  133. package/esm/composables/useInputMask/index.d.ts +0 -50
  134. package/esm/composables/useInputMask/index.d.ts.map +0 -1
  135. package/esm/composables/useInputMask/index.js +0 -408
@@ -0,0 +1,130 @@
1
+ import { useGroupItem as e } from "../../composables/useGroup/index.js";
2
+ import { QIcon as t } from "../QIcon/index.js";
3
+ import { useId as n } from "../../composables/uid.js";
4
+ import { SidebarSymbol as r } from "./context.js";
5
+ import { QToggle as i } from "../QToggle/index.js";
6
+ import a from "./QSidebarPanel2.vue.js";
7
+ import { Fragment as o, Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createSlots as p, createVNode as m, defineComponent as h, inject as g, mergeProps as _, normalizeClass as v, normalizeProps as y, onBeforeMount as b, onBeforeUnmount as x, openBlock as S, renderSlot as C, toRef as w, unref as T, useTemplateRef as E, withCtx as D } from "vue";
8
+ //#region src/components/QSidebar/QSidebarItem.vue?vue&type=script&setup=true&lang.ts
9
+ var O = /*@__PURE__*/ h({
10
+ __name: "QSidebarItem",
11
+ props: {
12
+ id: {},
13
+ class: {},
14
+ title: {},
15
+ icon: {},
16
+ value: {},
17
+ resizable: { type: Boolean },
18
+ showGrip: {
19
+ type: Boolean,
20
+ default: !0
21
+ },
22
+ initialWidth: { default: "medium" },
23
+ minWidth: { default: "small" },
24
+ maxWidth: { default: "block" }
25
+ },
26
+ setup(h) {
27
+ let O = h, k = g(r);
28
+ if (!k) throw Error("QSidebarItem: Failed to retrieve sidebar context. Ensure the component is used within a QSidebar context.");
29
+ let A = n(w(O, "value")), j = n(w(O, "id")), M = n(), N = e(A);
30
+ if (!N) throw Error("QSidebarItem: Failed to retrieve group item. Ensure the component is used within a QSidebar context.");
31
+ let P = k, F = N, I = E("anchor"), L = l(() => P.anchorItemsEl.value), R = l(() => P.position.value === "left" ? "right" : "left"), z = l(() => P.position.value === "left" ? "slide-right" : "slide-left");
32
+ function B() {
33
+ F.toggle(), P.onItemClick(A.value);
34
+ }
35
+ function V() {
36
+ P.onPanelAfterLeave();
37
+ }
38
+ return b(() => {
39
+ P.register({
40
+ value: A.value,
41
+ resizable: w(O, "resizable"),
42
+ initialWidth: w(O, "initialWidth"),
43
+ minWidth: w(O, "minWidth"),
44
+ maxWidth: w(O, "maxWidth"),
45
+ anchorRef: I
46
+ });
47
+ }), x(() => {
48
+ P.unregister(A.value);
49
+ }), (e, n) => (S(), f(o, null, [L.value ? (S(), u(s, {
50
+ key: 0,
51
+ to: L.value
52
+ }, [m(T(i), {
53
+ id: T(j),
54
+ ref: "anchor",
55
+ "data-testid": "q-sidebar-panel-button",
56
+ borderless: "",
57
+ "icon-pos": "top",
58
+ class: v(["q-sidebar__item", O.class]),
59
+ "model-value": T(F).isActive.value,
60
+ "aria-controls": T(M),
61
+ label: T(P).showLabels.value ? O.title : void 0,
62
+ title: T(P).showLabels.value ? void 0 : O.title,
63
+ "onUpdate:modelValue": B
64
+ }, {
65
+ default: D(() => [C(e.$slots, "anchor", {}, () => [O.icon ? (S(), u(T(t), y(_({ key: 0 }, O.icon)), null, 16)) : d("v-if", !0)])]),
66
+ _: 3
67
+ }, 8, [
68
+ "id",
69
+ "class",
70
+ "model-value",
71
+ "aria-controls",
72
+ "label",
73
+ "title"
74
+ ])], 8, ["to"])) : d("v-if", !0), m(c, {
75
+ name: z.value,
76
+ css: T(P).animatePanel.value,
77
+ onAfterLeave: V
78
+ }, {
79
+ default: D(() => [T(F).isActive.value ? (S(), u(a, {
80
+ key: 0,
81
+ id: T(M),
82
+ "aria-labelledby": T(j),
83
+ title: O.title,
84
+ resizable: O.resizable,
85
+ "show-grip": O.showGrip,
86
+ "resize-position": R.value,
87
+ "onResize:start": T(P).onResizeStart,
88
+ onResize: T(P).onPanelResize,
89
+ "onResize:end": T(P).onResizeEnd
90
+ }, p({
91
+ content: D(() => [C(e.$slots, "default")]),
92
+ _: 2
93
+ }, [
94
+ e.$slots["header.prepend"] ? {
95
+ name: "header.prepend",
96
+ fn: D(() => [C(e.$slots, "header.prepend")]),
97
+ key: "0"
98
+ } : void 0,
99
+ e.$slots.header ? {
100
+ name: "header",
101
+ fn: D(() => [C(e.$slots, "header")]),
102
+ key: "1"
103
+ } : void 0,
104
+ e.$slots["header.append"] ? {
105
+ name: "header.append",
106
+ fn: D(() => [C(e.$slots, "header.append")]),
107
+ key: "2"
108
+ } : void 0,
109
+ e.$slots.footer ? {
110
+ name: "footer",
111
+ fn: D(() => [C(e.$slots, "footer")]),
112
+ key: "3"
113
+ } : void 0
114
+ ]), 1032, [
115
+ "id",
116
+ "aria-labelledby",
117
+ "title",
118
+ "resizable",
119
+ "show-grip",
120
+ "resize-position",
121
+ "onResize:start",
122
+ "onResize",
123
+ "onResize:end"
124
+ ])) : d("v-if", !0)]),
125
+ _: 3
126
+ }, 8, ["name", "css"])], 64));
127
+ }
128
+ });
129
+ //#endregion
130
+ export { O as default };
@@ -0,0 +1,5 @@
1
+ import e from "./QSidebarItem.vue.js";
2
+ //#region src/components/QSidebar/QSidebarItem.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -22,13 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<QSidebarPanelProps,
22
22
  onResize?: ((width: number) => any) | undefined;
23
23
  "onResize:start"?: (() => any) | undefined;
24
24
  "onResize:end"?: ((finalWidth: number) => any) | undefined;
25
- }>, {
26
- showGrip: boolean;
27
- initialWidth: import('./types').QSidebarPanelSize;
28
- minWidth: import('./types').QSidebarPanelSize;
29
- maxWidth: import('./types').QSidebarPanelSize;
30
- resizePosition: "left" | "right";
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
26
  panel: HTMLDivElement;
33
27
  }, HTMLDivElement>;
34
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"QSidebarPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarPanel.vue"],"names":[],"mappings":"AAsCA;AAwIC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAuG5C,iBAAS,cAAc;WAsET,OAAO,IAA6B;;wBAftB,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;;;EAgB9B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;kBAUnB,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":"QSidebarPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarPanel.vue"],"names":[],"mappings":"AAuCA;AAmIC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;AA0F5C,iBAAS,cAAc;WAuET,OAAO,IAA6B;;wBAftB,GAAG;kCACO,GAAG;iCACJ,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;;;EAgB9B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,8 @@ import { createCommentVNode as e, createElementBlock as t, createElementVNode as
2
2
  //#region src/components/QSidebar/QSidebarPanel.vue?vue&type=script&setup=true&lang.ts
3
3
  var d = {
4
4
  ref: "panel",
5
- class: "q-sidebar-panel"
5
+ class: "q-sidebar-panel",
6
+ role: "region"
6
7
  }, f = { class: "q-sidebar-panel__header" }, p = {
7
8
  key: 0,
8
9
  class: "q-sidebar-panel__title"
@@ -16,16 +17,9 @@ var d = {
16
17
  __name: "QSidebarPanel",
17
18
  props: {
18
19
  title: {},
19
- icon: {},
20
20
  resizable: { type: Boolean },
21
- showGrip: {
22
- type: Boolean,
23
- default: !0
24
- },
25
- initialWidth: { default: "medium" },
26
- minWidth: { default: "small" },
27
- maxWidth: { default: "large" },
28
- resizePosition: { default: "right" }
21
+ showGrip: { type: Boolean },
22
+ resizePosition: {}
29
23
  },
30
24
  emits: [
31
25
  "resize",
@@ -0,0 +1,108 @@
1
+ import { ComputedRef, InjectionKey, Ref, ShallowRef } from 'vue';
2
+ import { QSidebarPanelSize } from './types';
3
+ /**
4
+ * Metadata registered by each {@link QSidebarItem} with its parent {@link QSidebar}.
5
+ */
6
+ export type SidebarItemRegistration = {
7
+ /**
8
+ * Identity of the item, matching the value used by `v-model` on `QSidebar`.
9
+ */
10
+ value: string;
11
+ /**
12
+ * Whether the panel can be resized by the user.
13
+ */
14
+ resizable: Ref<boolean | undefined>;
15
+ /**
16
+ * Initial panel width preset.
17
+ */
18
+ initialWidth: Ref<QSidebarPanelSize | undefined>;
19
+ /**
20
+ * Minimum allowed panel width preset.
21
+ */
22
+ minWidth: Ref<QSidebarPanelSize | undefined>;
23
+ /**
24
+ * Maximum allowed panel width preset.
25
+ */
26
+ maxWidth: Ref<QSidebarPanelSize | undefined>;
27
+ /**
28
+ * Template ref for the anchor toggle element (indicator positioning).
29
+ */
30
+ anchorRef: Ref<{
31
+ $el?: HTMLElement;
32
+ } | HTMLElement | null>;
33
+ };
34
+ /**
35
+ * Provide/inject context shared between {@link QSidebar} and its {@link QSidebarItem} children.
36
+ */
37
+ export type SidebarContext = {
38
+ /**
39
+ * DOM element that hosts teleported anchor toggles.
40
+ */
41
+ anchorItemsEl: ComputedRef<HTMLElement | null>;
42
+ /**
43
+ * Sidebar position on the screen.
44
+ */
45
+ position: ComputedRef<'left' | 'right'>;
46
+ /**
47
+ * Whether anchor labels are shown alongside icons.
48
+ */
49
+ showLabels: ComputedRef<boolean>;
50
+ /**
51
+ * Width of the anchor section in pixels.
52
+ */
53
+ anchorWidth: ComputedRef<number | undefined>;
54
+ /**
55
+ * Whether panel enter/leave should use the slide CSS transition.
56
+ * True for open/close; false when switching between two open items
57
+ * so the root width can change without a competing slide animation.
58
+ */
59
+ animatePanel: ComputedRef<boolean>;
60
+ /**
61
+ * Registered sidebar items in mount order.
62
+ */
63
+ items: ShallowRef<SidebarItemRegistration[]>;
64
+ /**
65
+ * Registers an item with the parent sidebar.
66
+ *
67
+ * @param item - Item metadata to register.
68
+ */
69
+ register: (item: SidebarItemRegistration) => void;
70
+ /**
71
+ * Removes a previously registered item (typically on unmount).
72
+ *
73
+ * @param value - The item `value` to remove.
74
+ */
75
+ unregister: (value: string) => void;
76
+ /**
77
+ * Notifies the parent that an anchor item was clicked.
78
+ *
79
+ * @param value - The clicked item value.
80
+ */
81
+ onItemClick: (value: string) => void;
82
+ /**
83
+ * Notifies the parent that panel resizing started.
84
+ */
85
+ onResizeStart: () => void;
86
+ /**
87
+ * Notifies the parent of an in-progress panel resize.
88
+ *
89
+ * @param width - The new panel width in pixels.
90
+ */
91
+ onPanelResize: (width: number) => void;
92
+ /**
93
+ * Notifies the parent that panel resizing ended.
94
+ *
95
+ * @param width - The final panel width in pixels.
96
+ */
97
+ onResizeEnd: (width: number) => void;
98
+ /**
99
+ * Notifies the parent that a panel leave transition finished.
100
+ * Used to clear expanded sizing after the close animation.
101
+ */
102
+ onPanelAfterLeave: () => void;
103
+ };
104
+ /**
105
+ * Injection key for the {@link SidebarContext} provided by `QSidebar`.
106
+ */
107
+ export declare const SidebarSymbol: InjectionKey<SidebarContext>;
108
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAEnC;;OAEG;IACH,YAAY,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAEhD;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAE5C;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAE5C;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;CAC1D,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,aAAa,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAE9C;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,MAAM,GAAG,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACH,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEhC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAE5C;;;;OAIG;IACH,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAElC;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC,uBAAuB,EAAE,CAAC,CAAA;IAE5C;;;;OAIG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAA;IAEjD;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;OAIG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEpC;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAA;IAEzB;;;;OAIG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEtC;;;;OAIG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEpC;;;OAGG;IACH,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC7B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,cAAc,CAAuB,CAAA"}
@@ -0,0 +1,4 @@
1
+ //#region src/components/QSidebar/context.ts
2
+ var e = Symbol("q-sidebar");
3
+ //#endregion
4
+ export { e as SidebarSymbol };
@@ -1,7 +1,9 @@
1
1
  declare const QSidebar: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
3
  modelValue?: string;
4
- } & import('./types').QSidebarAnchorProps & {
4
+ } & import('../../types/component').QBaseComponentProps & {
5
+ anchorWidth?: number;
6
+ showLabels?: boolean;
5
7
  position?: "left" | "right";
6
8
  }> & Readonly<{
7
9
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -19,7 +21,30 @@ declare const QSidebar: {
19
21
  }, import('vue').PublicProps, {
20
22
  position: "left" | "right";
21
23
  anchorWidth: number;
22
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
24
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
25
+ anchor: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
26
+ anchorWidth?: number;
27
+ modelValue?: string;
28
+ items: import('./context').SidebarItemRegistration[];
29
+ }> & Readonly<{}>, {
30
+ itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
31
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
32
+ items: HTMLDivElement;
33
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
34
+ P: {};
35
+ B: {};
36
+ D: {};
37
+ C: {};
38
+ M: {};
39
+ Defaults: {};
40
+ }, Readonly<{
41
+ anchorWidth?: number;
42
+ modelValue?: string;
43
+ items: import('./context').SidebarItemRegistration[];
44
+ }> & Readonly<{}>, {
45
+ itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
46
+ }, {}, {}, {}, {}> | null;
47
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
23
48
  P: {};
24
49
  B: {};
25
50
  D: {};
@@ -28,7 +53,9 @@ declare const QSidebar: {
28
53
  Defaults: {};
29
54
  }, Readonly<{
30
55
  modelValue?: string;
31
- } & import('./types').QSidebarAnchorProps & {
56
+ } & import('../../types/component').QBaseComponentProps & {
57
+ anchorWidth?: number;
58
+ showLabels?: boolean;
32
59
  position?: "left" | "right";
33
60
  }> & Readonly<{
34
61
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -45,7 +72,9 @@ declare const QSidebar: {
45
72
  __isSuspense?: never;
46
73
  } & import('vue').ComponentOptionsBase<Readonly<{
47
74
  modelValue?: string;
48
- } & import('./types').QSidebarAnchorProps & {
75
+ } & import('../../types/component').QBaseComponentProps & {
76
+ anchorWidth?: number;
77
+ showLabels?: boolean;
49
78
  position?: "left" | "right";
50
79
  }> & Readonly<{
51
80
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -64,10 +93,139 @@ declare const QSidebar: {
64
93
  position: "left" | "right";
65
94
  anchorWidth: number;
66
95
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
67
- $slots: Partial<Record<`anchor:${string}`, (_: {
68
- item: import('./types').QSidebarAnchorItemConfig;
69
- }) => 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>>;
96
+ $slots: {
97
+ default?(_: {}): any;
98
+ };
70
99
  });
71
- export { QSidebar };
100
+ declare const QSidebarItem: {
101
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
102
+ showGrip: boolean;
103
+ initialWidth: import('./types').QSidebarPanelSize;
104
+ minWidth: import('./types').QSidebarPanelSize;
105
+ maxWidth: import('./types').QSidebarPanelSize;
106
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
107
+ anchor: ({
108
+ $: import('vue').ComponentInternalInstance;
109
+ $data: {};
110
+ $props: {
111
+ readonly modelValue?: boolean | undefined;
112
+ readonly id?: string | undefined;
113
+ readonly class?: string | unknown[] | undefined;
114
+ readonly label?: string | undefined;
115
+ readonly variant?: import('..').QButtonVariant | undefined;
116
+ readonly color?: string | undefined;
117
+ readonly borderless?: boolean | undefined;
118
+ readonly elevated?: boolean | undefined;
119
+ readonly block?: boolean | undefined;
120
+ readonly size?: import('..').QButtonSize | undefined;
121
+ readonly iconPos?: import('..').QButtonIconPosition | undefined;
122
+ readonly pill?: boolean | undefined;
123
+ readonly disabled?: boolean | undefined;
124
+ readonly loading?: boolean | undefined;
125
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
126
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
127
+ $attrs: import('vue').Attrs;
128
+ $refs: {
129
+ [x: string]: unknown;
130
+ };
131
+ $slots: Readonly<{
132
+ [name: string]: import('vue').Slot<any> | undefined;
133
+ }>;
134
+ $root: import('vue').ComponentPublicInstance | null;
135
+ $parent: import('vue').ComponentPublicInstance | null;
136
+ $host: Element | null;
137
+ $emit: (event: "update:modelValue", value: boolean) => void;
138
+ $el: HTMLButtonElement;
139
+ $options: import('vue').ComponentOptionsBase<Readonly<{
140
+ modelValue?: boolean;
141
+ } & import('../../types/component').QBaseComponentProps & {
142
+ label?: string;
143
+ variant?: import('..').QButtonVariant;
144
+ color?: string;
145
+ borderless?: boolean;
146
+ elevated?: boolean;
147
+ block?: boolean;
148
+ size?: import('..').QButtonSize;
149
+ iconPos?: import('..').QButtonIconPosition;
150
+ pill?: boolean;
151
+ disabled?: boolean;
152
+ loading?: boolean;
153
+ }> & Readonly<{
154
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
155
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
156
+ "update:modelValue": (value: boolean) => any;
157
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
158
+ beforeCreate?: (() => void) | (() => void)[];
159
+ created?: (() => void) | (() => void)[];
160
+ beforeMount?: (() => void) | (() => void)[];
161
+ mounted?: (() => void) | (() => void)[];
162
+ beforeUpdate?: (() => void) | (() => void)[];
163
+ updated?: (() => void) | (() => void)[];
164
+ activated?: (() => void) | (() => void)[];
165
+ deactivated?: (() => void) | (() => void)[];
166
+ beforeDestroy?: (() => void) | (() => void)[];
167
+ beforeUnmount?: (() => void) | (() => void)[];
168
+ destroyed?: (() => void) | (() => void)[];
169
+ unmounted?: (() => void) | (() => void)[];
170
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
171
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
172
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
173
+ };
174
+ $forceUpdate: () => void;
175
+ $nextTick: typeof import('vue').nextTick;
176
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
177
+ } & Readonly<{}> & Omit<Readonly<{
178
+ modelValue?: boolean;
179
+ } & import('../../types/component').QBaseComponentProps & {
180
+ label?: string;
181
+ variant?: import('..').QButtonVariant;
182
+ color?: string;
183
+ borderless?: boolean;
184
+ elevated?: boolean;
185
+ block?: boolean;
186
+ size?: import('..').QButtonSize;
187
+ iconPos?: import('..').QButtonIconPosition;
188
+ pill?: boolean;
189
+ disabled?: boolean;
190
+ loading?: boolean;
191
+ }> & Readonly<{
192
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
193
+ }>, never> & {} & import('vue').ComponentCustomProperties & {} & {
194
+ $slots: {
195
+ default?(_: {}): any;
196
+ };
197
+ }) | null;
198
+ }, any, import('vue').ComponentProvideOptions, {
199
+ P: {};
200
+ B: {};
201
+ D: {};
202
+ C: {};
203
+ M: {};
204
+ Defaults: {};
205
+ }, Readonly<import('./types').QSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, {
206
+ showGrip: boolean;
207
+ initialWidth: import('./types').QSidebarPanelSize;
208
+ minWidth: import('./types').QSidebarPanelSize;
209
+ maxWidth: import('./types').QSidebarPanelSize;
210
+ }>;
211
+ __isFragment?: never;
212
+ __isTeleport?: never;
213
+ __isSuspense?: never;
214
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').QSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
215
+ showGrip: boolean;
216
+ initialWidth: import('./types').QSidebarPanelSize;
217
+ minWidth: import('./types').QSidebarPanelSize;
218
+ maxWidth: import('./types').QSidebarPanelSize;
219
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
220
+ $slots: {
221
+ anchor?(_: {}): any;
222
+ 'header.prepend'?(_: {}): any;
223
+ header?(_: {}): any;
224
+ 'header.append'?(_: {}): any;
225
+ default?(_: {}): any;
226
+ footer?(_: {}): any;
227
+ };
228
+ });
229
+ export { QSidebar, QSidebarItem };
72
230
  export * from './types';
73
231
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/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/QSidebar/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAC3C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO0z0B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAP/40B,CAAA;AAGnD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAA;AAGjC,cAAc,SAAS,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { setupPropsProxy as e } from "../../utils/setupPropsProxy.js";
2
2
  import t from "./QSidebar2.vue.js";
3
+ import n from "./QSidebarItem2.vue.js";
3
4
  //#region src/components/QSidebar/index.ts
4
- var n = e(t);
5
+ var r = e(t), i = e(n);
5
6
  //#endregion
6
- export { n as QSidebar };
7
+ export { r as QSidebar, i as QSidebarItem };