@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.
- package/CHANGELOG.md +79 -0
- package/dist/json/api.json +302 -143
- package/dist/manifest/components.json +4 -1
- package/dist/ui.css +460 -167
- package/dist/ui.esm.js +618 -631
- package/dist/ui.js +490 -504
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +490 -504
- package/dist/ui.scss +439 -167
- package/esm/components/QAccordion/QAccordionItem.vue.js +1 -0
- package/esm/components/QCarousel/QCarousel.vue.js +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +2 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts +2 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +50 -47
- package/esm/components/QCollapsible/constants.d.ts +6 -0
- package/esm/components/QCollapsible/constants.d.ts.map +1 -1
- package/esm/components/QCollapsible/constants.js +3 -2
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +11 -1
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +505 -597
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +32 -16
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +179 -86
- package/esm/components/QDropdownMenu/types.d.ts +6 -0
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/types.d.ts +3 -0
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.vue.js +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +19 -17
- package/esm/components/QLabel/types.d.ts +3 -0
- package/esm/components/QLabel/types.d.ts.map +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 +173 -0
- package/esm/components/QTabs/QTab.d.ts.map +1 -0
- package/esm/components/QTabs/QTab.vue.js +123 -0
- package/esm/components/QTabs/QTab2.vue.js +5 -0
- package/esm/components/QTabs/QTabs.d.ts +37 -0
- package/esm/components/QTabs/QTabs.d.ts.map +1 -0
- package/esm/components/QTabs/QTabs.vue.js +162 -0
- package/esm/components/QTabs/QTabs2.vue.js +5 -0
- package/esm/components/QTabs/constants.d.ts +5 -0
- package/esm/components/QTabs/constants.d.ts.map +1 -0
- package/esm/components/QTabs/context.d.ts +85 -0
- package/esm/components/QTabs/context.d.ts.map +1 -0
- package/esm/components/QTabs/context.js +4 -0
- package/esm/components/QTabs/index.d.ts +166 -0
- package/esm/components/QTabs/index.d.ts.map +1 -0
- package/esm/components/QTabs/index.js +7 -0
- package/esm/components/QTabs/types.d.ts +108 -0
- package/esm/components/QTabs/types.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts +7 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +24 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator2.vue.js +5 -0
- package/esm/components/__internal__/QRequiredIndicator/constants.d.ts +7 -0
- package/esm/components/__internal__/QRequiredIndicator/constants.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/constants.js +4 -0
- package/esm/components/__internal__/QRequiredIndicator/index.d.ts +6 -0
- package/esm/components/__internal__/QRequiredIndicator/index.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/index.js +6 -0
- package/esm/components/__internal__/QRequiredIndicator/types.d.ts +18 -0
- package/esm/components/__internal__/QRequiredIndicator/types.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +10 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +31 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle2.vue.js +5 -0
- package/esm/components/__internal__/QSafeTriangle/index.d.ts +10 -0
- package/esm/components/__internal__/QSafeTriangle/index.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/index.js +6 -0
- package/esm/components/__internal__/QSafeTriangle/types.d.ts +33 -0
- package/esm/components/__internal__/QSafeTriangle/types.d.ts.map +1 -0
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +41 -37
- package/esm/composables/useSafeTriangle/index.d.ts +31 -0
- package/esm/composables/useSafeTriangle/index.d.ts.map +1 -0
- package/esm/composables/useSafeTriangle/index.js +87 -0
- package/esm/index.d.ts +4 -1
- package/esm/utils/date.d.ts +36 -1
- package/esm/utils/date.d.ts.map +1 -1
- package/esm/utils/date.js +90 -1
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +30 -24
- package/esm/utils/mask.d.ts +17 -0
- package/esm/utils/mask.d.ts.map +1 -0
- package/esm/utils/mask.js +154 -0
- package/esm/utils/safeTriangle.d.ts +68 -0
- package/esm/utils/safeTriangle.d.ts.map +1 -0
- package/esm/utils/safeTriangle.js +83 -0
- 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
- package/esm/composables/useInputMask/index.d.ts +0 -50
- package/esm/composables/useInputMask/index.d.ts.map +0 -1
- package/esm/composables/useInputMask/index.js +0 -408
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSection/QSection.vue"],"names":[],"mappings":"AAcA;AA4CC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AA8BvC,iBAAS,cAAc;WAkCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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,10 +1,10 @@
|
|
|
1
1
|
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c } from "vue";
|
|
2
|
-
//#region src/components/
|
|
2
|
+
//#region src/components/QSection/QSection.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var l = ["id"], u = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "q-
|
|
6
|
-
}, d = { class: "q-
|
|
7
|
-
__name: "
|
|
5
|
+
class: "q-section__title"
|
|
6
|
+
}, d = { class: "q-section__content" }, f = /*@__PURE__*/ i({
|
|
7
|
+
__name: "QSection",
|
|
8
8
|
props: {
|
|
9
9
|
id: {},
|
|
10
10
|
class: {},
|
|
@@ -15,11 +15,11 @@ var l = ["id"], u = {
|
|
|
15
15
|
},
|
|
16
16
|
setup(i) {
|
|
17
17
|
let f = i, p = e(() => [
|
|
18
|
-
"q-
|
|
19
|
-
f.variant === "default" ? void 0 : `q-
|
|
18
|
+
"q-section",
|
|
19
|
+
f.variant === "default" ? void 0 : `q-section--${f.variant}`,
|
|
20
20
|
{
|
|
21
|
-
"q-
|
|
22
|
-
"q-
|
|
21
|
+
"q-section--block": f.block,
|
|
22
|
+
"q-section--borderless": f.borderless
|
|
23
23
|
},
|
|
24
24
|
f.class
|
|
25
25
|
]);
|
|
@@ -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 };
|