@quidgest/ui 0.17.9 → 0.18.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/dist/json/api.json +169 -17
- package/dist/manifest/components.json +2 -0
- package/dist/ui.css +231 -25
- package/dist/ui.esm.js +573 -608
- package/dist/ui.js +457 -493
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +457 -493
- package/dist/ui.scss +225 -27
- 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/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/QTabs/QTab.d.ts +172 -0
- package/esm/components/QTabs/QTab.d.ts.map +1 -0
- package/esm/components/QTabs/QTab.vue.js +122 -0
- package/esm/components/QTabs/QTab2.vue.js +5 -0
- package/esm/components/QTabs/QTabs.d.ts +35 -0
- package/esm/components/QTabs/QTabs.d.ts.map +1 -0
- package/esm/components/QTabs/QTabs.vue.js +83 -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 +78 -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 +164 -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 +106 -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 +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +17 -14
- 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 +2 -0
- 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 +6 -6
- 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,164 @@
|
|
|
1
|
+
declare const QTabs: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
5
|
+
direction?: import('./types').QTabsDirection;
|
|
6
|
+
align?: import('./types').QTabsAlign;
|
|
7
|
+
variant?: import('./types').QTabsVariant;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string) => any;
|
|
13
|
+
}, import('vue').PublicProps, {
|
|
14
|
+
variant: import('./types').QTabsVariant;
|
|
15
|
+
direction: import('./types').QTabsDirection;
|
|
16
|
+
align: import('./types').QTabsAlign;
|
|
17
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
|
+
tabListEl: HTMLDivElement;
|
|
19
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<{
|
|
27
|
+
modelValue?: string;
|
|
28
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
29
|
+
direction?: import('./types').QTabsDirection;
|
|
30
|
+
align?: import('./types').QTabsAlign;
|
|
31
|
+
variant?: import('./types').QTabsVariant;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}> & Readonly<{
|
|
34
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, {
|
|
36
|
+
variant: import('./types').QTabsVariant;
|
|
37
|
+
direction: import('./types').QTabsDirection;
|
|
38
|
+
align: import('./types').QTabsAlign;
|
|
39
|
+
}>;
|
|
40
|
+
__isFragment?: never;
|
|
41
|
+
__isTeleport?: never;
|
|
42
|
+
__isSuspense?: never;
|
|
43
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
44
|
+
modelValue?: string;
|
|
45
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
46
|
+
direction?: import('./types').QTabsDirection;
|
|
47
|
+
align?: import('./types').QTabsAlign;
|
|
48
|
+
variant?: import('./types').QTabsVariant;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
}> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
"update:modelValue": (value: string) => any;
|
|
54
|
+
}, string, {
|
|
55
|
+
variant: import('./types').QTabsVariant;
|
|
56
|
+
direction: import('./types').QTabsDirection;
|
|
57
|
+
align: import('./types').QTabsAlign;
|
|
58
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
59
|
+
$slots: {
|
|
60
|
+
default?(_: {}): any;
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
declare const QTab: {
|
|
64
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QTabProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
65
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
66
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
67
|
+
tabBtn: ({
|
|
68
|
+
$: import('vue').ComponentInternalInstance;
|
|
69
|
+
$data: {};
|
|
70
|
+
$props: {
|
|
71
|
+
readonly id?: string | undefined;
|
|
72
|
+
readonly class?: string | unknown[] | undefined;
|
|
73
|
+
readonly label?: string | undefined;
|
|
74
|
+
readonly variant?: import('..').QButtonVariant | undefined;
|
|
75
|
+
readonly color?: string | undefined;
|
|
76
|
+
readonly borderless?: boolean | undefined;
|
|
77
|
+
readonly elevated?: boolean | undefined;
|
|
78
|
+
readonly block?: boolean | undefined;
|
|
79
|
+
readonly size?: import('..').QButtonSize | undefined;
|
|
80
|
+
readonly iconPos?: import('..').QButtonIconPosition | undefined;
|
|
81
|
+
readonly pill?: boolean | undefined;
|
|
82
|
+
readonly disabled?: boolean | undefined;
|
|
83
|
+
readonly loading?: boolean | undefined;
|
|
84
|
+
readonly onClick?: ((event: Event) => any) | undefined;
|
|
85
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
86
|
+
$attrs: import('vue').Attrs;
|
|
87
|
+
$refs: {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
$slots: Readonly<{
|
|
91
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
94
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
95
|
+
$host: Element | null;
|
|
96
|
+
$emit: (event: "click", event: Event) => void;
|
|
97
|
+
$el: HTMLButtonElement;
|
|
98
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QButtonProps> & Readonly<{
|
|
99
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
100
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
101
|
+
click: (event: Event) => any;
|
|
102
|
+
}, string, {
|
|
103
|
+
size: import('..').QButtonSize;
|
|
104
|
+
variant: import('..').QButtonVariant;
|
|
105
|
+
color: string;
|
|
106
|
+
iconPos: import('..').QButtonIconPosition;
|
|
107
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
108
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
109
|
+
created?: (() => void) | (() => void)[];
|
|
110
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
111
|
+
mounted?: (() => void) | (() => void)[];
|
|
112
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
113
|
+
updated?: (() => void) | (() => void)[];
|
|
114
|
+
activated?: (() => void) | (() => void)[];
|
|
115
|
+
deactivated?: (() => void) | (() => void)[];
|
|
116
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
117
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
118
|
+
destroyed?: (() => void) | (() => void)[];
|
|
119
|
+
unmounted?: (() => void) | (() => void)[];
|
|
120
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
121
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
122
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
123
|
+
};
|
|
124
|
+
$forceUpdate: () => void;
|
|
125
|
+
$nextTick: typeof import('vue').nextTick;
|
|
126
|
+
$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;
|
|
127
|
+
} & Readonly<{
|
|
128
|
+
size: import('..').QButtonSize;
|
|
129
|
+
variant: import('..').QButtonVariant;
|
|
130
|
+
color: string;
|
|
131
|
+
iconPos: import('..').QButtonIconPosition;
|
|
132
|
+
}> & Omit<Readonly<import('..').QButtonProps> & Readonly<{
|
|
133
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
134
|
+
}>, "size" | "variant" | "color" | "iconPos"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
135
|
+
$slots: {
|
|
136
|
+
default?(_: {}): any;
|
|
137
|
+
append?(_: {}): any;
|
|
138
|
+
};
|
|
139
|
+
}) | null;
|
|
140
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
141
|
+
P: {};
|
|
142
|
+
B: {};
|
|
143
|
+
D: {};
|
|
144
|
+
C: {};
|
|
145
|
+
M: {};
|
|
146
|
+
Defaults: {};
|
|
147
|
+
}, Readonly<import('./types').QTabProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
148
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
149
|
+
}>;
|
|
150
|
+
__isFragment?: never;
|
|
151
|
+
__isTeleport?: never;
|
|
152
|
+
__isSuspense?: never;
|
|
153
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QTabProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
154
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
155
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
156
|
+
$slots: {
|
|
157
|
+
'title.prepend'?(_: {}): any;
|
|
158
|
+
'title.append'?(_: {}): any;
|
|
159
|
+
default?(_: {}): any;
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
export { QTabs, QTab };
|
|
163
|
+
export * from './types';
|
|
164
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0B,CAAA;AACrC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAOy30B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPt90B,CAAA;AAGnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;AAGtB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { DEFAULT_TEXTS } from './constants';
|
|
2
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Layout direction of the tab list.
|
|
5
|
+
*
|
|
6
|
+
* - `horizontal` — tabs in a row, panels below
|
|
7
|
+
* - `vertical` — tabs in a column, panels beside
|
|
8
|
+
*/
|
|
9
|
+
export type QTabsDirection = 'horizontal' | 'vertical';
|
|
10
|
+
/**
|
|
11
|
+
* How tab buttons are distributed along the tab list main axis
|
|
12
|
+
* (the axis defined by {@link QTabsDirection}).
|
|
13
|
+
*
|
|
14
|
+
* - `start` — pack at the start
|
|
15
|
+
* - `end` — pack at the end
|
|
16
|
+
* - `center` — center the tabs
|
|
17
|
+
* - `justify` — spread with space between (`space-between`)
|
|
18
|
+
*/
|
|
19
|
+
export type QTabsAlign = 'start' | 'end' | 'center' | 'justify';
|
|
20
|
+
/**
|
|
21
|
+
* Visual style of the tab list.
|
|
22
|
+
*
|
|
23
|
+
* - `line` — underline indicator on a shared baseline
|
|
24
|
+
* - `card` — bordered folder tabs that merge into the panel
|
|
25
|
+
*/
|
|
26
|
+
export type QTabsVariant = 'line' | 'card';
|
|
27
|
+
/**
|
|
28
|
+
* Props for the QTabs component.
|
|
29
|
+
*
|
|
30
|
+
* @extends QBaseComponentProps
|
|
31
|
+
*/
|
|
32
|
+
export type QTabsProps = QBaseComponentProps & {
|
|
33
|
+
/**
|
|
34
|
+
* Orientation of the tab list.
|
|
35
|
+
*
|
|
36
|
+
* Also mapped to `aria-orientation` on the tablist.
|
|
37
|
+
*
|
|
38
|
+
* @default 'horizontal'
|
|
39
|
+
* @category Presentation
|
|
40
|
+
*/
|
|
41
|
+
direction?: QTabsDirection;
|
|
42
|
+
/**
|
|
43
|
+
* Distribution of tabs along the tab list main axis.
|
|
44
|
+
*
|
|
45
|
+
* @default 'start'
|
|
46
|
+
* @category Presentation
|
|
47
|
+
*/
|
|
48
|
+
align?: QTabsAlign;
|
|
49
|
+
/**
|
|
50
|
+
* Visual style of the tabs.
|
|
51
|
+
*
|
|
52
|
+
* @default 'line'
|
|
53
|
+
* @category Presentation
|
|
54
|
+
*/
|
|
55
|
+
variant?: QTabsVariant;
|
|
56
|
+
/**
|
|
57
|
+
* If true, disables all nested tabs via defaults cascade.
|
|
58
|
+
*
|
|
59
|
+
* @category State
|
|
60
|
+
*/
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Props for the QTab component.
|
|
65
|
+
*
|
|
66
|
+
* @extends QBaseComponentProps
|
|
67
|
+
*/
|
|
68
|
+
export type QTabProps = QBaseComponentProps & {
|
|
69
|
+
/**
|
|
70
|
+
* The label text shown on the tab trigger.
|
|
71
|
+
*
|
|
72
|
+
* @category Content
|
|
73
|
+
*/
|
|
74
|
+
title?: string;
|
|
75
|
+
/**
|
|
76
|
+
* If true, shows a required asterisk next to the title.
|
|
77
|
+
*
|
|
78
|
+
* The asterisk is decorative (`aria-hidden`); {@link QRequiredIndicator}
|
|
79
|
+
* with `announce` exposes the state to assistive tech via `.q-sr-only`
|
|
80
|
+
* (from `texts.required`) and hosts may also set `aria-required`.
|
|
81
|
+
*
|
|
82
|
+
* @category Presentation
|
|
83
|
+
*/
|
|
84
|
+
required?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* If true, the tab cannot be selected or focused via keyboard navigation.
|
|
87
|
+
*
|
|
88
|
+
* @category State
|
|
89
|
+
*/
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Identity used by `v-model` on `QTabs`.
|
|
93
|
+
*
|
|
94
|
+
* Auto-generated when omitted; prefer an explicit value for controlled usage.
|
|
95
|
+
*
|
|
96
|
+
* @category Identification
|
|
97
|
+
*/
|
|
98
|
+
value?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Custom accessible strings.
|
|
101
|
+
*
|
|
102
|
+
* @category Configuration
|
|
103
|
+
*/
|
|
104
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAA;AAEtD;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG;IAC9C;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;IAElB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,mBAAmB,GAAG;IAC7C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DEFAULT_TEXTS } from './constants';
|
|
2
|
+
import { QRequiredIndicatorProps } from '.';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<QRequiredIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QRequiredIndicatorProps> & Readonly<{}>, {
|
|
4
|
+
texts: typeof DEFAULT_TEXTS;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=QRequiredIndicator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QRequiredIndicator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue"],"names":[],"mappings":"AAcA;AA6BC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;;;;AA0DjD,wBAQG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DEFAULT_TEXTS as e } from "./constants.js";
|
|
2
|
+
import { createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, toDisplayString as s } from "vue";
|
|
3
|
+
//#region src/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "q-sr-only"
|
|
7
|
+
}, l = /*@__PURE__*/ i({
|
|
8
|
+
__name: "QRequiredIndicator",
|
|
9
|
+
props: {
|
|
10
|
+
id: {},
|
|
11
|
+
class: {},
|
|
12
|
+
announce: { type: Boolean },
|
|
13
|
+
texts: { default: () => e }
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
let i = e;
|
|
17
|
+
return (e, l) => (o(), n("span", { class: a(["q-required-indicator", i.class]) }, [l[0] ||= r("span", {
|
|
18
|
+
class: "q-required-indicator__mark",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}, " * ", -1), i.announce ? (o(), n("span", c, s(i.texts.required), 1)) : t("v-if", !0)], 2));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { l as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QRequiredIndicator/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const QRequiredIndicator: import('vue').DefineComponent<import('./types').QRequiredIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QRequiredIndicatorProps> & Readonly<{}>, {
|
|
2
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
3
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
4
|
+
export { QRequiredIndicator };
|
|
5
|
+
export * from './types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QRequiredIndicator/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,kBAAkB;;yFAAuC,CAAA;AAG/D,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAG7B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QBaseComponentProps } from '../../../types/component';
|
|
2
|
+
import { DEFAULT_TEXTS } from './constants';
|
|
3
|
+
export type QRequiredIndicatorProps = QBaseComponentProps & {
|
|
4
|
+
/**
|
|
5
|
+
* When true, exposes required state to assistive tech via `.q-sr-only`
|
|
6
|
+
* (from `texts.required`). When false, only the decorative asterisk is shown.
|
|
7
|
+
*
|
|
8
|
+
* @category Accessibility
|
|
9
|
+
*/
|
|
10
|
+
announce?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Custom accessible strings.
|
|
13
|
+
*
|
|
14
|
+
* @category Configuration
|
|
15
|
+
*/
|
|
16
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QRequiredIndicator/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG;IAC3D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QSafeTriangleProps } from '.';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<QSafeTriangleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QSafeTriangleProps> & Readonly<{}>, {
|
|
3
|
+
width: number;
|
|
4
|
+
path: string;
|
|
5
|
+
top: number;
|
|
6
|
+
height: number;
|
|
7
|
+
left: number;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=QSafeTriangle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QSafeTriangle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QSafeTriangle/QSafeTriangle.vue"],"names":[],"mappings":"AAaA;AAuCC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;;;;;;;;AAuF5C,wBAQG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Teleport as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeStyle as s, openBlock as c } from "vue";
|
|
2
|
+
//#region src/components/__internal__/QSafeTriangle/QSafeTriangle.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var l = ["d"], u = /*@__PURE__*/ o({
|
|
4
|
+
__name: "QSafeTriangle",
|
|
5
|
+
props: {
|
|
6
|
+
top: { default: 0 },
|
|
7
|
+
left: { default: 0 },
|
|
8
|
+
width: { default: 0 },
|
|
9
|
+
height: { default: 0 },
|
|
10
|
+
path: { default: "" }
|
|
11
|
+
},
|
|
12
|
+
setup(o) {
|
|
13
|
+
let u = o, d = t(() => ({
|
|
14
|
+
top: `${u.top}px`,
|
|
15
|
+
left: `${u.left}px`,
|
|
16
|
+
width: `${u.width}px`,
|
|
17
|
+
height: `${u.height}px`
|
|
18
|
+
}));
|
|
19
|
+
return (t, o) => (c(), n(e, { to: "body" }, [u.path ? (c(), i("svg", {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "q-safe-triangle",
|
|
22
|
+
"aria-hidden": "true",
|
|
23
|
+
style: s(d.value)
|
|
24
|
+
}, [a("path", {
|
|
25
|
+
class: "q-safe-triangle__path",
|
|
26
|
+
d: u.path
|
|
27
|
+
}, null, 8, l)], 4)) : r("v-if", !0)]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { u as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const QSafeTriangle: import('vue').DefineComponent<import('./types').QSafeTriangleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QSafeTriangleProps> & Readonly<{}>, {
|
|
2
|
+
width: number;
|
|
3
|
+
path: string;
|
|
4
|
+
top: number;
|
|
5
|
+
height: number;
|
|
6
|
+
left: number;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export { QSafeTriangle };
|
|
9
|
+
export * from './types';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QSafeTriangle/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,aAAa;;;;;;6EAAkC,CAAA;AAGrD,OAAO,EAAE,aAAa,EAAE,CAAA;AAGxB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type QSafeTriangleProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Fixed position of the SVG container from the viewport top edge.
|
|
4
|
+
*
|
|
5
|
+
* @category Presentation
|
|
6
|
+
*/
|
|
7
|
+
top?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Fixed position of the SVG container from the viewport left edge.
|
|
10
|
+
*
|
|
11
|
+
* @category Presentation
|
|
12
|
+
*/
|
|
13
|
+
left?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Width of the SVG container.
|
|
16
|
+
*
|
|
17
|
+
* @category Presentation
|
|
18
|
+
*/
|
|
19
|
+
width?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Height of the SVG container.
|
|
22
|
+
*
|
|
23
|
+
* @category Presentation
|
|
24
|
+
*/
|
|
25
|
+
height?: number;
|
|
26
|
+
/**
|
|
27
|
+
* SVG path data for the safe triangle.
|
|
28
|
+
*
|
|
29
|
+
* @category Presentation
|
|
30
|
+
*/
|
|
31
|
+
path?: string;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QSafeTriangle/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -38,6 +38,7 @@ export * from './QSidebar';
|
|
|
38
38
|
export * from './QSkeletonLoader';
|
|
39
39
|
export * from './QSpinnerLoader';
|
|
40
40
|
export * from './QSwitch';
|
|
41
|
+
export * from './QTabs';
|
|
41
42
|
export * from './QTextArea';
|
|
42
43
|
export * from './QTextField';
|
|
43
44
|
export * from './QThemeProvider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -42,13 +42,14 @@ import { QRadioButton as Q, QRadioGroup as $ } from "./QRadioGroup/index.js";
|
|
|
42
42
|
import { QSelect as ne } from "./QSelect/index.js";
|
|
43
43
|
import { QToggle as re } from "./QToggle/index.js";
|
|
44
44
|
import { QSidebar as ie } from "./QSidebar/index.js";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
45
|
+
import { QTab as ae, QTabs as oe } from "./QTabs/index.js";
|
|
46
|
+
import { QTextArea as se } from "./QTextArea/index.js";
|
|
47
|
+
import { QThemeProvider as ce } from "./QThemeProvider/index.js";
|
|
48
|
+
import { QToast as le, QToaster as ue } from "./QToast/index.js";
|
|
49
|
+
import { QToggleGroup as de, QToggleGroupItem as fe } from "./QToggleGroup/index.js";
|
|
50
|
+
import { QTooltip as pe } from "./QTooltip/index.js";
|
|
50
51
|
//#region src/components/index.ts
|
|
51
|
-
var
|
|
52
|
+
var me = /* @__PURE__ */ ee({
|
|
52
53
|
DEFAULT_TEXTS: () => b,
|
|
53
54
|
QAccordion: () => c,
|
|
54
55
|
QAccordionItem: () => l,
|
|
@@ -105,15 +106,17 @@ var fe = /* @__PURE__ */ ee({
|
|
|
105
106
|
QSpacer: () => B,
|
|
106
107
|
QSpinnerLoader: () => e,
|
|
107
108
|
QSwitch: () => A,
|
|
108
|
-
|
|
109
|
+
QTab: () => ae,
|
|
110
|
+
QTabs: () => oe,
|
|
111
|
+
QTextArea: () => se,
|
|
109
112
|
QTextField: () => x,
|
|
110
|
-
QThemeProvider: () =>
|
|
111
|
-
QToast: () =>
|
|
112
|
-
QToaster: () =>
|
|
113
|
+
QThemeProvider: () => ce,
|
|
114
|
+
QToast: () => le,
|
|
115
|
+
QToaster: () => ue,
|
|
113
116
|
QToggle: () => re,
|
|
114
|
-
QToggleGroup: () =>
|
|
115
|
-
QToggleGroupItem: () =>
|
|
116
|
-
QTooltip: () =>
|
|
117
|
+
QToggleGroup: () => de,
|
|
118
|
+
QToggleGroupItem: () => fe,
|
|
119
|
+
QTooltip: () => pe
|
|
117
120
|
});
|
|
118
121
|
//#endregion
|
|
119
|
-
export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel, L as QCol, s as QCollapsible, S as QColorPicker, k as QCombobox, R as QContainer, j as QDateTimePicker, M as QDefaultsProvider, N as QDialog, P as QDialogProvider, E as QDismissibleLayer, F as QDivider, te as QDropdownMenu, y as QField, I as QFileUpload, D as QFocusWrap, V as QGroupBox, r as QIcon, i as QIconFont, a as QIconImg, o as QIconSvg, H as QInputGroup, g as QLabel, U as QLineLoader, C as QList, w as QListItem, T as QListItemGroup, W as QMeter, G as QObfuscation, O as QOverlay, K as QPasswordField, q as QPopover, J as QPropertyList, Y as QPropertyListGroup, X as QPropertyListPanel, Z as QPropertyListRow, Q as QRadioButton, $ as QRadioGroup, z as QRow, ne as QSelect, ie as QSidebar, m as QSkeletonLoader, B as QSpacer, e as QSpinnerLoader, A as QSwitch, ae as QTextArea, x as QTextField,
|
|
122
|
+
export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel, L as QCol, s as QCollapsible, S as QColorPicker, k as QCombobox, R as QContainer, j as QDateTimePicker, M as QDefaultsProvider, N as QDialog, P as QDialogProvider, E as QDismissibleLayer, F as QDivider, te as QDropdownMenu, y as QField, I as QFileUpload, D as QFocusWrap, V as QGroupBox, r as QIcon, i as QIconFont, a as QIconImg, o as QIconSvg, H as QInputGroup, g as QLabel, U as QLineLoader, C as QList, w as QListItem, T as QListItemGroup, W as QMeter, G as QObfuscation, O as QOverlay, K as QPasswordField, q as QPopover, J as QPropertyList, Y as QPropertyListGroup, X as QPropertyListPanel, Z as QPropertyListRow, Q as QRadioButton, $ as QRadioGroup, z as QRow, ne as QSelect, ie as QSidebar, m as QSkeletonLoader, B as QSpacer, e as QSpinnerLoader, A as QSwitch, ae as QTab, oe as QTabs, se as QTextArea, x as QTextField, ce as QThemeProvider, le as QToast, ue as QToaster, re as QToggle, de as QToggleGroup, fe as QToggleGroupItem, pe as QTooltip, me as components_exports };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Placement } from '../overlay';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
type UseSafeTriangleOptions = {
|
|
4
|
+
enabled: Ref<boolean>;
|
|
5
|
+
placement: Ref<Placement>;
|
|
6
|
+
getParentRect: () => DOMRect | null;
|
|
7
|
+
getContentRect: () => DOMRect | null;
|
|
8
|
+
getContentRoot: () => HTMLElement | null;
|
|
9
|
+
shouldSuppressLeave: () => boolean;
|
|
10
|
+
onLeave: () => void;
|
|
11
|
+
/** Called when the pointer enters the open submenu (or a deeper nested menu). */
|
|
12
|
+
onEnterContent?: (clientX: number, clientY: number) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Tracks pointer movement and exposes safe triangle geometry for nested submenus.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useSafeTriangle(options: UseSafeTriangleOptions): {
|
|
18
|
+
visible: Ref<boolean, boolean>;
|
|
19
|
+
top: Ref<number, number>;
|
|
20
|
+
left: Ref<number, number>;
|
|
21
|
+
width: Ref<number, number>;
|
|
22
|
+
height: Ref<number, number>;
|
|
23
|
+
path: Ref<string, string>;
|
|
24
|
+
refresh: (clientX?: number, clientY?: number) => void;
|
|
25
|
+
getLastPointer: () => {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useSafeTriangle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAW3C,OAAO,EAA+B,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAE3D,KAAK,sBAAsB,GAAG;IAC7B,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IACzB,aAAa,EAAE,MAAM,OAAO,GAAG,IAAI,CAAA;IACnC,cAAc,EAAE,MAAM,OAAO,GAAG,IAAI,CAAA;IACpC,cAAc,EAAE,MAAM,WAAW,GAAG,IAAI,CAAA;IACxC,mBAAmB,EAAE,MAAM,OAAO,CAAA;IAClC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,iFAAiF;IACjF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3D,CAAA;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB;;;;;;;wBA4HnC,MAAM,YAAY,MAAM;;;;;EA0DnD"}
|