@quidgest/ui 0.18.0 → 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.
- package/CHANGELOG.md +79 -0
- package/dist/json/api.json +136 -129
- package/dist/manifest/components.json +2 -1
- package/dist/ui.css +242 -155
- package/dist/ui.esm.js +365 -343
- package/dist/ui.js +121 -99
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +121 -99
- package/dist/ui.scss +225 -151
- package/esm/components/QGrid/QCol.vue.js +1 -1
- package/esm/components/{QGroupBox/QGroupBox.d.ts → QSection/QSection.d.ts} +4 -4
- package/esm/components/QSection/QSection.d.ts.map +1 -0
- package/esm/components/{QGroupBox/QGroupBox.vue.js → QSection/QSection.vue.js} +8 -8
- package/esm/components/QSection/QSection2.vue.js +5 -0
- package/esm/components/{QGroupBox → QSection}/index.d.ts +8 -8
- package/esm/components/QSection/index.d.ts.map +1 -0
- package/esm/components/QSection/index.js +6 -0
- package/esm/components/QSection/types.d.ts +32 -0
- package/esm/components/QSection/types.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebar.d.ts +53 -6
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +76 -106
- package/esm/components/QSidebar/QSidebarAnchor.d.ts +24 -210
- package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +47 -59
- package/esm/components/QSidebar/QSidebarItem.d.ts +213 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebarItem.vue.js +130 -0
- package/esm/components/QSidebar/QSidebarItem2.vue.js +5 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts +1 -7
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +4 -10
- package/esm/components/QSidebar/context.d.ts +108 -0
- package/esm/components/QSidebar/context.d.ts.map +1 -0
- package/esm/components/QSidebar/context.js +4 -0
- package/esm/components/QSidebar/index.d.ts +166 -8
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/index.js +3 -2
- package/esm/components/QSidebar/types.d.ts +77 -42
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts +1 -0
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +2 -1
- package/esm/components/QTabs/QTabs.d.ts +2 -0
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +125 -46
- package/esm/components/QTabs/context.d.ts +10 -3
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +2 -0
- package/esm/components/QTabs/index.d.ts.map +1 -1
- package/esm/components/QTabs/types.d.ts +3 -1
- package/esm/components/QTabs/types.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -1
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +41 -40
- package/esm/index.d.ts +2 -1
- package/package.json +7 -6
- package/esm/components/QGroupBox/QGroupBox.d.ts.map +0 -1
- package/esm/components/QGroupBox/QGroupBox2.vue.js +0 -5
- package/esm/components/QGroupBox/index.d.ts.map +0 -1
- package/esm/components/QGroupBox/index.js +0 -6
- package/esm/components/QGroupBox/types.d.ts +0 -32
- package/esm/components/QGroupBox/types.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').
|
|
3
|
-
variant: import('./types').
|
|
1
|
+
declare const QSection: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QSectionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
variant: import('./types').QSectionVariant;
|
|
4
4
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
5
5
|
P: {};
|
|
6
6
|
B: {};
|
|
@@ -8,19 +8,19 @@ declare const QGroupBox: {
|
|
|
8
8
|
C: {};
|
|
9
9
|
M: {};
|
|
10
10
|
Defaults: {};
|
|
11
|
-
}, Readonly<import('./types').
|
|
12
|
-
variant: import('./types').
|
|
11
|
+
}, Readonly<import('./types').QSectionProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
12
|
+
variant: import('./types').QSectionVariant;
|
|
13
13
|
}>;
|
|
14
14
|
__isFragment?: never;
|
|
15
15
|
__isTeleport?: never;
|
|
16
16
|
__isSuspense?: never;
|
|
17
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./types').
|
|
18
|
-
variant: import('./types').
|
|
17
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QSectionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
18
|
+
variant: import('./types').QSectionVariant;
|
|
19
19
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
20
20
|
$slots: {
|
|
21
21
|
default?(_: {}): any;
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
|
-
export {
|
|
24
|
+
export { QSection };
|
|
25
25
|
export * from './types';
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSection/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA;AAGnB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
2
|
+
/**
|
|
3
|
+
* QSection visual style variants.
|
|
4
|
+
*/
|
|
5
|
+
export type QSectionVariant = 'default' | 'background' | 'minor' | 'minor-border-top' | 'title-background';
|
|
6
|
+
export type QSectionProps = QBaseComponentProps & {
|
|
7
|
+
/**
|
|
8
|
+
* The title of the section.
|
|
9
|
+
*
|
|
10
|
+
* @category Content
|
|
11
|
+
*/
|
|
12
|
+
title?: string;
|
|
13
|
+
/**
|
|
14
|
+
* If true, the section has no borders.
|
|
15
|
+
*
|
|
16
|
+
* @category Presentation
|
|
17
|
+
*/
|
|
18
|
+
borderless?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The styling variant of the section.
|
|
21
|
+
*
|
|
22
|
+
* @category Presentation
|
|
23
|
+
*/
|
|
24
|
+
variant?: QSectionVariant;
|
|
25
|
+
/**
|
|
26
|
+
* If true, the section spans the full width of its container.
|
|
27
|
+
*
|
|
28
|
+
* @category Presentation
|
|
29
|
+
*/
|
|
30
|
+
block?: boolean;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSection/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,eAAe,GACxB,SAAS,GACT,YAAY,GACZ,OAAO,GACP,kBAAkB,GAClB,kBAAkB,CAAA;AAErB,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAA;IAEzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA"}
|
|
@@ -1,14 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SidebarItemRegistration } from './context';
|
|
2
|
+
import { QSidebarProps } from './types';
|
|
2
3
|
type __VLS_Props = QSidebarProps;
|
|
3
4
|
type __VLS_PublicProps = {
|
|
4
5
|
modelValue?: string;
|
|
5
6
|
} & __VLS_Props;
|
|
6
7
|
declare function __VLS_template(): {
|
|
7
8
|
attrs: Partial<{}>;
|
|
8
|
-
slots:
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
refs: {
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
anchor: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
14
|
+
anchorWidth?: number;
|
|
15
|
+
modelValue?: string;
|
|
16
|
+
items: SidebarItemRegistration[];
|
|
17
|
+
}> & Readonly<{}>, {
|
|
18
|
+
itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
20
|
+
items: HTMLDivElement;
|
|
21
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
22
|
+
P: {};
|
|
23
|
+
B: {};
|
|
24
|
+
D: {};
|
|
25
|
+
C: {};
|
|
26
|
+
M: {};
|
|
27
|
+
Defaults: {};
|
|
28
|
+
}, Readonly<{
|
|
29
|
+
anchorWidth?: number;
|
|
30
|
+
modelValue?: string;
|
|
31
|
+
items: SidebarItemRegistration[];
|
|
32
|
+
}> & Readonly<{}>, {
|
|
33
|
+
itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
34
|
+
}, {}, {}, {}, {}> | null;
|
|
35
|
+
};
|
|
12
36
|
rootEl: HTMLDivElement;
|
|
13
37
|
};
|
|
14
38
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -28,7 +52,30 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
28
52
|
}>, {
|
|
29
53
|
position: "left" | "right";
|
|
30
54
|
anchorWidth: number;
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
56
|
+
anchor: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
57
|
+
anchorWidth?: number;
|
|
58
|
+
modelValue?: string;
|
|
59
|
+
items: SidebarItemRegistration[];
|
|
60
|
+
}> & Readonly<{}>, {
|
|
61
|
+
itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
62
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
63
|
+
items: HTMLDivElement;
|
|
64
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
65
|
+
P: {};
|
|
66
|
+
B: {};
|
|
67
|
+
D: {};
|
|
68
|
+
C: {};
|
|
69
|
+
M: {};
|
|
70
|
+
Defaults: {};
|
|
71
|
+
}, Readonly<{
|
|
72
|
+
anchorWidth?: number;
|
|
73
|
+
modelValue?: string;
|
|
74
|
+
items: SidebarItemRegistration[];
|
|
75
|
+
}> & Readonly<{}>, {
|
|
76
|
+
itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
77
|
+
}, {}, {}, {}, {}> | null;
|
|
78
|
+
}, HTMLDivElement>;
|
|
32
79
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
80
|
export default _default;
|
|
34
81
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebar.vue"],"names":[],"mappings":"AAgBA;AAqOC,OAAO,KAAK,EAAkB,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AAqMlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAiDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB/B;AAeD,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,11 +1,13 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "./
|
|
3
|
-
import {
|
|
1
|
+
import { useGroup as e } from "../../composables/useGroup/index.js";
|
|
2
|
+
import t from "./QSidebarAnchor2.vue.js";
|
|
3
|
+
import { SidebarSymbol as n } from "./context.js";
|
|
4
|
+
import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, mergeModels as c, normalizeClass as l, normalizeStyle as u, openBlock as d, provide as f, ref as p, renderSlot as m, shallowRef as h, useModel as g, useTemplateRef as _, watch as v } from "vue";
|
|
4
5
|
//#region src/components/QSidebar/QSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var b = /*@__PURE__*/
|
|
6
|
+
var y = ["id"], b = { class: "q-sidebar__panels" }, x = /*@__PURE__*/ s({
|
|
6
7
|
__name: "QSidebar",
|
|
7
|
-
props: /*@__PURE__*/
|
|
8
|
-
|
|
8
|
+
props: /*@__PURE__*/ c({
|
|
9
|
+
id: {},
|
|
10
|
+
class: {},
|
|
9
11
|
anchorWidth: { default: 50 },
|
|
10
12
|
showLabels: { type: Boolean },
|
|
11
13
|
position: { default: "left" }
|
|
@@ -13,122 +15,90 @@ var b = /*@__PURE__*/ l({
|
|
|
13
15
|
modelValue: {},
|
|
14
16
|
modelModifiers: {}
|
|
15
17
|
}),
|
|
16
|
-
emits: /*@__PURE__*/
|
|
18
|
+
emits: /*@__PURE__*/ c([
|
|
17
19
|
"click:item",
|
|
18
20
|
"resize",
|
|
19
21
|
"resize:start",
|
|
20
22
|
"resize:end"
|
|
21
23
|
], ["update:modelValue"]),
|
|
22
|
-
setup(
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
setup(s, { emit: c }) {
|
|
25
|
+
let x = s, S = c, C = g(s, "modelValue"), { active: w } = e({
|
|
26
|
+
active: C,
|
|
27
|
+
required: !1
|
|
28
|
+
});
|
|
29
|
+
v(w, (e) => {
|
|
30
|
+
C.value = e;
|
|
31
|
+
});
|
|
32
|
+
let T = _("anchor"), E = h([]), D = p(), O = p(!1), k = p();
|
|
33
|
+
function A() {
|
|
34
|
+
k.value = void 0;
|
|
35
|
+
}
|
|
36
|
+
v(C, (e, t) => {
|
|
37
|
+
O.value = !e || !t, e && t && A(), e && (D.value = e);
|
|
26
38
|
}, { immediate: !0 });
|
|
27
|
-
let
|
|
28
|
-
if (
|
|
29
|
-
}),
|
|
39
|
+
let j = r(() => E.value.find((e) => e.value === D.value)), M = r(() => !!j.value), N = r(() => {
|
|
40
|
+
if (!(!j.value?.resizable.value || k.value === void 0)) return { width: `${(x.anchorWidth ?? 0) + k.value}px` };
|
|
41
|
+
}), P = r(() => [
|
|
30
42
|
"q-sidebar",
|
|
31
|
-
`q-sidebar--${
|
|
32
|
-
`q-sidebar--${
|
|
43
|
+
`q-sidebar--${j.value?.initialWidth.value ?? "small"}`,
|
|
44
|
+
`q-sidebar--${x.position}`,
|
|
45
|
+
x.class,
|
|
33
46
|
{
|
|
34
|
-
"q-sidebar--expanded":
|
|
35
|
-
[`q-sidebar--min-${
|
|
36
|
-
[`q-sidebar--max-${
|
|
47
|
+
"q-sidebar--expanded": M.value,
|
|
48
|
+
[`q-sidebar--min-${j.value?.minWidth.value}`]: !!j.value?.resizable.value && j.value?.minWidth.value !== void 0,
|
|
49
|
+
[`q-sidebar--max-${j.value?.maxWidth.value}`]: !!j.value?.resizable.value && j.value?.maxWidth.value !== void 0
|
|
37
50
|
}
|
|
38
|
-
])
|
|
39
|
-
function
|
|
40
|
-
|
|
51
|
+
]);
|
|
52
|
+
function F(e) {
|
|
53
|
+
E.value = [...E.value, e];
|
|
54
|
+
}
|
|
55
|
+
function I(e) {
|
|
56
|
+
E.value = E.value.filter((t) => t.value !== e);
|
|
41
57
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
58
|
+
function L(e) {
|
|
59
|
+
S("click:item", e);
|
|
44
60
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
61
|
+
function R() {
|
|
62
|
+
S("resize:start");
|
|
47
63
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
64
|
+
function z(e) {
|
|
65
|
+
k.value = e, S("resize", e);
|
|
50
66
|
}
|
|
51
|
-
function
|
|
52
|
-
S
|
|
67
|
+
function B(e) {
|
|
68
|
+
S("resize:end", e);
|
|
53
69
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
typeof e == "number" ? E.value = e : E.value = void 0;
|
|
70
|
+
function V() {
|
|
71
|
+
C.value || (D.value = void 0, A());
|
|
57
72
|
}
|
|
58
|
-
return v(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
return v(() => x.anchorWidth, A), f(n, {
|
|
74
|
+
anchorItemsEl: r(() => T.value?.itemsEl ?? null),
|
|
75
|
+
position: r(() => x.position ?? "left"),
|
|
76
|
+
showLabels: r(() => !!x.showLabels),
|
|
77
|
+
anchorWidth: r(() => x.anchorWidth),
|
|
78
|
+
animatePanel: r(() => O.value),
|
|
79
|
+
items: E,
|
|
80
|
+
register: F,
|
|
81
|
+
unregister: I,
|
|
82
|
+
onItemClick: L,
|
|
83
|
+
onResizeStart: R,
|
|
84
|
+
onPanelResize: z,
|
|
85
|
+
onResizeEnd: B,
|
|
86
|
+
onPanelAfterLeave: V
|
|
87
|
+
}), (e, n) => (d(), i("div", {
|
|
88
|
+
id: x.id,
|
|
89
|
+
class: l(P.value),
|
|
90
|
+
style: u(N.value)
|
|
91
|
+
}, [o(t, {
|
|
92
|
+
ref: "anchor",
|
|
93
|
+
"anchor-width": x.anchorWidth,
|
|
94
|
+
"model-value": C.value,
|
|
95
|
+
items: E.value
|
|
96
|
+
}, null, 8, [
|
|
77
97
|
"anchor-width",
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onAfterLeave: P
|
|
82
|
-
}, {
|
|
83
|
-
default: y(() => [S.value && w.value ? (p(), i(t, {
|
|
84
|
-
key: 0,
|
|
85
|
-
"show-grip": "",
|
|
86
|
-
title: w.value.title,
|
|
87
|
-
"initial-width": w.value.initialWidth,
|
|
88
|
-
"min-width": w.value.minWidth,
|
|
89
|
-
"max-width": w.value.maxWidth,
|
|
90
|
-
resizable: w.value.resizable,
|
|
91
|
-
"resize-position": k.value,
|
|
92
|
-
"onResize:start": A,
|
|
93
|
-
onResize: j,
|
|
94
|
-
"onResize:end": M
|
|
95
|
-
}, s({ _: 2 }, [
|
|
96
|
-
r.$slots[`header.prepend:${S.value}`] ? {
|
|
97
|
-
name: "header.prepend",
|
|
98
|
-
fn: y(() => [g(r.$slots, `header.prepend:${S.value}`)]),
|
|
99
|
-
key: "0"
|
|
100
|
-
} : void 0,
|
|
101
|
-
r.$slots[`header:${S.value}`] ? {
|
|
102
|
-
name: "header",
|
|
103
|
-
fn: y(() => [g(r.$slots, `header:${S.value}`)]),
|
|
104
|
-
key: "1"
|
|
105
|
-
} : void 0,
|
|
106
|
-
r.$slots[`header.append:${S.value}`] ? {
|
|
107
|
-
name: "header.append",
|
|
108
|
-
fn: y(() => [g(r.$slots, `header.append:${S.value}`)]),
|
|
109
|
-
key: "2"
|
|
110
|
-
} : void 0,
|
|
111
|
-
r.$slots[`content:${S.value}`] ? {
|
|
112
|
-
name: "content",
|
|
113
|
-
fn: y(() => [g(r.$slots, `content:${S.value}`)]),
|
|
114
|
-
key: "3"
|
|
115
|
-
} : void 0,
|
|
116
|
-
r.$slots[`footer:${S.value}`] ? {
|
|
117
|
-
name: "footer",
|
|
118
|
-
fn: y(() => [g(r.$slots, `footer:${S.value}`)]),
|
|
119
|
-
key: "4"
|
|
120
|
-
} : void 0
|
|
121
|
-
]), 1032, [
|
|
122
|
-
"title",
|
|
123
|
-
"initial-width",
|
|
124
|
-
"min-width",
|
|
125
|
-
"max-width",
|
|
126
|
-
"resizable",
|
|
127
|
-
"resize-position"
|
|
128
|
-
])) : a("v-if", !0)]),
|
|
129
|
-
_: 3
|
|
130
|
-
}, 8, ["name"])], 6));
|
|
98
|
+
"model-value",
|
|
99
|
+
"items"
|
|
100
|
+
]), a("div", b, [m(e.$slots, "default")])], 14, y));
|
|
131
101
|
}
|
|
132
102
|
});
|
|
133
103
|
//#endregion
|
|
134
|
-
export {
|
|
104
|
+
export { x as default };
|
|
@@ -1,215 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
1
|
+
import { SidebarItemRegistration } from './context';
|
|
2
|
+
/** Internal props for the anchor strip (not part of the public package API). */
|
|
3
|
+
type QSidebarAnchorProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Width of the anchor section in pixels.
|
|
6
|
+
*
|
|
7
|
+
* @category Presentation
|
|
8
|
+
*/
|
|
9
|
+
anchorWidth?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Currently active sidebar item value.
|
|
12
|
+
*
|
|
13
|
+
* @category State
|
|
14
|
+
*/
|
|
5
15
|
modelValue?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
refs: {
|
|
13
|
-
itemRefs: (({
|
|
14
|
-
$: import('vue').ComponentInternalInstance;
|
|
15
|
-
$data: {};
|
|
16
|
-
$props: {
|
|
17
|
-
readonly modelValue?: boolean | undefined;
|
|
18
|
-
readonly id?: string | undefined;
|
|
19
|
-
readonly class?: string | unknown[] | undefined;
|
|
20
|
-
readonly label?: string | undefined;
|
|
21
|
-
readonly variant?: import('..').QButtonVariant | undefined;
|
|
22
|
-
readonly color?: string | undefined;
|
|
23
|
-
readonly borderless?: boolean | undefined;
|
|
24
|
-
readonly elevated?: boolean | undefined;
|
|
25
|
-
readonly block?: boolean | undefined;
|
|
26
|
-
readonly size?: import('..').QButtonSize | undefined;
|
|
27
|
-
readonly iconPos?: import('..').QButtonIconPosition | undefined;
|
|
28
|
-
readonly pill?: boolean | undefined;
|
|
29
|
-
readonly disabled?: boolean | undefined;
|
|
30
|
-
readonly loading?: boolean | undefined;
|
|
31
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
32
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
33
|
-
$attrs: import('vue').Attrs;
|
|
34
|
-
$refs: {
|
|
35
|
-
[x: string]: unknown;
|
|
36
|
-
};
|
|
37
|
-
$slots: Readonly<{
|
|
38
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
39
|
-
}>;
|
|
40
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
41
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
42
|
-
$host: Element | null;
|
|
43
|
-
$emit: (event: "update:modelValue", value: boolean) => void;
|
|
44
|
-
$el: HTMLButtonElement;
|
|
45
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
46
|
-
modelValue?: boolean;
|
|
47
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
48
|
-
label?: string;
|
|
49
|
-
variant?: import('..').QButtonVariant;
|
|
50
|
-
color?: string;
|
|
51
|
-
borderless?: boolean;
|
|
52
|
-
elevated?: boolean;
|
|
53
|
-
block?: boolean;
|
|
54
|
-
size?: import('..').QButtonSize;
|
|
55
|
-
iconPos?: import('..').QButtonIconPosition;
|
|
56
|
-
pill?: boolean;
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
loading?: boolean;
|
|
59
|
-
}> & Readonly<{
|
|
60
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
61
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
-
"update:modelValue": (value: boolean) => any;
|
|
63
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
64
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
65
|
-
created?: (() => void) | (() => void)[];
|
|
66
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
67
|
-
mounted?: (() => void) | (() => void)[];
|
|
68
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
69
|
-
updated?: (() => void) | (() => void)[];
|
|
70
|
-
activated?: (() => void) | (() => void)[];
|
|
71
|
-
deactivated?: (() => void) | (() => void)[];
|
|
72
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
73
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
74
|
-
destroyed?: (() => void) | (() => void)[];
|
|
75
|
-
unmounted?: (() => void) | (() => void)[];
|
|
76
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
77
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
78
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
79
|
-
};
|
|
80
|
-
$forceUpdate: () => void;
|
|
81
|
-
$nextTick: typeof nextTick;
|
|
82
|
-
$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;
|
|
83
|
-
} & Readonly<{}> & Omit<Readonly<{
|
|
84
|
-
modelValue?: boolean;
|
|
85
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
86
|
-
label?: string;
|
|
87
|
-
variant?: import('..').QButtonVariant;
|
|
88
|
-
color?: string;
|
|
89
|
-
borderless?: boolean;
|
|
90
|
-
elevated?: boolean;
|
|
91
|
-
block?: boolean;
|
|
92
|
-
size?: import('..').QButtonSize;
|
|
93
|
-
iconPos?: import('..').QButtonIconPosition;
|
|
94
|
-
pill?: boolean;
|
|
95
|
-
disabled?: boolean;
|
|
96
|
-
loading?: boolean;
|
|
97
|
-
}> & Readonly<{
|
|
98
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
99
|
-
}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
100
|
-
$slots: {
|
|
101
|
-
default?(_: {}): any;
|
|
102
|
-
};
|
|
103
|
-
}) | null)[];
|
|
104
|
-
};
|
|
105
|
-
rootEl: HTMLDivElement;
|
|
16
|
+
/**
|
|
17
|
+
* Registered sidebar items used to position the active indicator.
|
|
18
|
+
*
|
|
19
|
+
* @category Configuration
|
|
20
|
+
*/
|
|
21
|
+
items: SidebarItemRegistration[];
|
|
106
22
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"click:item": (id: string) => any;
|
|
112
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
113
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
114
|
-
"onClick:item"?: ((id: string) => any) | undefined;
|
|
115
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
116
|
-
itemRefs: (({
|
|
117
|
-
$: import('vue').ComponentInternalInstance;
|
|
118
|
-
$data: {};
|
|
119
|
-
$props: {
|
|
120
|
-
readonly modelValue?: boolean | undefined;
|
|
121
|
-
readonly id?: string | undefined;
|
|
122
|
-
readonly class?: string | unknown[] | undefined;
|
|
123
|
-
readonly label?: string | undefined;
|
|
124
|
-
readonly variant?: import('..').QButtonVariant | undefined;
|
|
125
|
-
readonly color?: string | undefined;
|
|
126
|
-
readonly borderless?: boolean | undefined;
|
|
127
|
-
readonly elevated?: boolean | undefined;
|
|
128
|
-
readonly block?: boolean | undefined;
|
|
129
|
-
readonly size?: import('..').QButtonSize | undefined;
|
|
130
|
-
readonly iconPos?: import('..').QButtonIconPosition | undefined;
|
|
131
|
-
readonly pill?: boolean | undefined;
|
|
132
|
-
readonly disabled?: boolean | undefined;
|
|
133
|
-
readonly loading?: boolean | undefined;
|
|
134
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
135
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
136
|
-
$attrs: import('vue').Attrs;
|
|
137
|
-
$refs: {
|
|
138
|
-
[x: string]: unknown;
|
|
139
|
-
};
|
|
140
|
-
$slots: Readonly<{
|
|
141
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
142
|
-
}>;
|
|
143
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
144
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
145
|
-
$host: Element | null;
|
|
146
|
-
$emit: (event: "update:modelValue", value: boolean) => void;
|
|
147
|
-
$el: HTMLButtonElement;
|
|
148
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
149
|
-
modelValue?: boolean;
|
|
150
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
151
|
-
label?: string;
|
|
152
|
-
variant?: import('..').QButtonVariant;
|
|
153
|
-
color?: string;
|
|
154
|
-
borderless?: boolean;
|
|
155
|
-
elevated?: boolean;
|
|
156
|
-
block?: boolean;
|
|
157
|
-
size?: import('..').QButtonSize;
|
|
158
|
-
iconPos?: import('..').QButtonIconPosition;
|
|
159
|
-
pill?: boolean;
|
|
160
|
-
disabled?: boolean;
|
|
161
|
-
loading?: boolean;
|
|
162
|
-
}> & Readonly<{
|
|
163
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
164
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
165
|
-
"update:modelValue": (value: boolean) => any;
|
|
166
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
167
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
168
|
-
created?: (() => void) | (() => void)[];
|
|
169
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
170
|
-
mounted?: (() => void) | (() => void)[];
|
|
171
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
172
|
-
updated?: (() => void) | (() => void)[];
|
|
173
|
-
activated?: (() => void) | (() => void)[];
|
|
174
|
-
deactivated?: (() => void) | (() => void)[];
|
|
175
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
176
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
177
|
-
destroyed?: (() => void) | (() => void)[];
|
|
178
|
-
unmounted?: (() => void) | (() => void)[];
|
|
179
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
180
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
181
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
182
|
-
};
|
|
183
|
-
$forceUpdate: () => void;
|
|
184
|
-
$nextTick: typeof nextTick;
|
|
185
|
-
$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;
|
|
186
|
-
} & Readonly<{}> & Omit<Readonly<{
|
|
187
|
-
modelValue?: boolean;
|
|
188
|
-
} & import('../../types/component').QBaseComponentProps & {
|
|
189
|
-
label?: string;
|
|
190
|
-
variant?: import('..').QButtonVariant;
|
|
191
|
-
color?: string;
|
|
192
|
-
borderless?: boolean;
|
|
193
|
-
elevated?: boolean;
|
|
194
|
-
block?: boolean;
|
|
195
|
-
size?: import('..').QButtonSize;
|
|
196
|
-
iconPos?: import('..').QButtonIconPosition;
|
|
197
|
-
pill?: boolean;
|
|
198
|
-
disabled?: boolean;
|
|
199
|
-
loading?: boolean;
|
|
200
|
-
}> & Readonly<{
|
|
201
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
202
|
-
}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
203
|
-
$slots: {
|
|
204
|
-
default?(_: {}): any;
|
|
205
|
-
};
|
|
206
|
-
}) | null)[];
|
|
23
|
+
declare const _default: import('vue').DefineComponent<QSidebarAnchorProps, {
|
|
24
|
+
itemsEl: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QSidebarAnchorProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
items: HTMLDivElement;
|
|
207
27
|
}, HTMLDivElement>;
|
|
208
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
209
28
|
export default _default;
|
|
210
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
211
|
-
new (): {
|
|
212
|
-
$slots: S;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
29
|
//# sourceMappingURL=QSidebarAnchor.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSidebarAnchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarAnchor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSidebarAnchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSidebar/QSidebarAnchor.vue"],"names":[],"mappings":"AAaA;AAyIC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAKxD,gFAAgF;AAChF,KAAK,mBAAmB,GAAG;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,KAAK,EAAE,uBAAuB,EAAE,CAAA;CAChC,CAAA;;;;;;AAgJF,wBASG"}
|