@bitrix24/b24ui-nuxt 0.6.5 → 0.6.7
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/meta.d.mts +3187 -765
- package/dist/meta.mjs +3187 -765
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Advice.vue.d.ts +3 -26
- package/dist/runtime/components/Alert.vue.d.ts +7 -22
- package/dist/runtime/components/App.vue.d.ts +2 -2
- package/dist/runtime/components/Avatar.vue.d.ts +4 -25
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -11
- package/dist/runtime/components/Badge.vue.d.ts +3 -24
- package/dist/runtime/components/Button.vue.d.ts +3 -30
- package/dist/runtime/components/ButtonGroup.vue.d.ts +3 -26
- package/dist/runtime/components/Calendar.vue.d.ts +6 -2
- package/dist/runtime/components/Checkbox.vue.d.ts +10 -13
- package/dist/runtime/components/Chip.vue.d.ts +10 -24
- package/dist/runtime/components/Collapsible.vue.d.ts +7 -22
- package/dist/runtime/components/Container.vue.d.ts +2 -11
- package/dist/runtime/components/Countdown.vue.d.ts +14 -30
- package/dist/runtime/components/DescriptionList.vue +12 -0
- package/dist/runtime/components/DescriptionList.vue.d.ts +12 -36
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -24
- package/dist/runtime/components/DropdownMenuContent.vue +4 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +19 -6
- package/dist/runtime/components/Form.vue.d.ts +5 -2
- package/dist/runtime/components/FormField.vue.d.ts +2 -11
- package/dist/runtime/components/Input.vue.d.ts +16 -31
- package/dist/runtime/components/InputMenu.vue +6 -2
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -3
- package/dist/runtime/components/InputNumber.vue.d.ts +12 -25
- package/dist/runtime/components/Kbd.vue.d.ts +3 -24
- package/dist/runtime/components/Link.vue.d.ts +3 -36
- package/dist/runtime/components/LinkBase.vue.d.ts +4 -27
- package/dist/runtime/components/Modal.vue +11 -9
- package/dist/runtime/components/Modal.vue.d.ts +12 -29
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +2 -2
- package/dist/runtime/components/Navbar.vue.d.ts +3 -24
- package/dist/runtime/components/NavbarDivider.vue.d.ts +3 -24
- package/dist/runtime/components/NavbarSection.vue.d.ts +3 -24
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +3 -24
- package/dist/runtime/components/NavigationMenu.vue +4 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -20
- package/dist/runtime/components/Popover.vue +9 -6
- package/dist/runtime/components/Popover.vue.d.ts +10 -26
- package/dist/runtime/components/Progress.vue.d.ts +9 -40
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -2
- package/dist/runtime/components/Range.vue.d.ts +12 -31
- package/dist/runtime/components/Select.vue +5 -0
- package/dist/runtime/components/Select.vue.d.ts +10 -2
- package/dist/runtime/components/SelectMenu.vue +5 -1
- package/dist/runtime/components/SelectMenu.vue.d.ts +17 -3
- package/dist/runtime/components/Separator.vue.d.ts +3 -24
- package/dist/runtime/components/Sidebar.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarBody.vue.d.ts +3 -26
- package/dist/runtime/components/SidebarFooter.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarHeader.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarHeading.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarLayout.vue +4 -0
- package/dist/runtime/components/SidebarLayout.vue.d.ts +8 -29
- package/dist/runtime/components/SidebarSection.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +3 -24
- package/dist/runtime/components/Skeleton.vue +8 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +3 -12
- package/dist/runtime/components/Slideover.vue +11 -9
- package/dist/runtime/components/Slideover.vue.d.ts +12 -30
- package/dist/runtime/components/StackedLayout.vue +4 -0
- package/dist/runtime/components/StackedLayout.vue.d.ts +8 -29
- package/dist/runtime/components/Switch.vue.d.ts +10 -13
- package/dist/runtime/components/Tabs.vue.d.ts +4 -20
- package/dist/runtime/components/Textarea.vue.d.ts +16 -33
- package/dist/runtime/components/Toast.vue.d.ts +86 -24
- package/dist/runtime/components/Toaster.vue.d.ts +3 -30
- package/dist/runtime/components/Tooltip.vue.d.ts +7 -22
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +4 -27
- package/dist/runtime/composables/usePortal.js +2 -9
- package/dist/runtime/inertia/components/Link.vue.d.ts +3 -34
- package/dist/runtime/prose/A.vue.d.ts +2 -11
- package/dist/runtime/prose/Blockquote.vue.d.ts +2 -11
- package/dist/runtime/prose/Code.vue.d.ts +2 -11
- package/dist/runtime/prose/Em.vue.d.ts +2 -11
- package/dist/runtime/prose/H1.vue.d.ts +2 -11
- package/dist/runtime/prose/H2.vue.d.ts +2 -11
- package/dist/runtime/prose/H3.vue.d.ts +2 -11
- package/dist/runtime/prose/H4.vue.d.ts +2 -11
- package/dist/runtime/prose/H5.vue.d.ts +2 -11
- package/dist/runtime/prose/H6.vue.d.ts +2 -11
- package/dist/runtime/prose/Hr.vue.d.ts +1 -10
- package/dist/runtime/prose/Img.vue.d.ts +1 -10
- package/dist/runtime/prose/Li.vue.d.ts +2 -11
- package/dist/runtime/prose/Ol.vue.d.ts +2 -11
- package/dist/runtime/prose/P.vue.d.ts +2 -11
- package/dist/runtime/prose/Pre.vue.d.ts +3 -24
- package/dist/runtime/prose/Strong.vue.d.ts +2 -11
- package/dist/runtime/prose/Table.vue.d.ts +3 -32
- package/dist/runtime/prose/Tbody.vue.d.ts +2 -11
- package/dist/runtime/prose/Td.vue.d.ts +2 -11
- package/dist/runtime/prose/Th.vue.d.ts +2 -11
- package/dist/runtime/prose/Thead.vue.d.ts +2 -11
- package/dist/runtime/prose/Tr.vue.d.ts +2 -11
- package/dist/runtime/prose/Ul.vue.d.ts +2 -11
- package/dist/runtime/vue/components/Link.vue.d.ts +3 -36
- package/package.json +10 -11
|
@@ -14,33 +14,12 @@ export interface SidebarFooterProps {
|
|
|
14
14
|
export interface SidebarFooterSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default:
|
|
18
|
-
as: string;
|
|
19
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarFooterProps>, {
|
|
20
|
-
as: string;
|
|
21
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarFooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarFooterProps> & Readonly<{}>, {
|
|
22
18
|
as: any;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarFooterSlots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
22
|
new (): {
|
|
41
23
|
$slots: S;
|
|
42
24
|
};
|
|
43
25
|
};
|
|
44
|
-
type __VLS_PrettifyLocal<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
@@ -14,33 +14,12 @@ export interface SidebarHeaderProps {
|
|
|
14
14
|
export interface SidebarHeaderSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default:
|
|
18
|
-
as: string;
|
|
19
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarHeaderProps>, {
|
|
20
|
-
as: string;
|
|
21
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarHeaderProps> & Readonly<{}>, {
|
|
22
18
|
as: any;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarHeaderSlots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
22
|
new (): {
|
|
41
23
|
$slots: S;
|
|
42
24
|
};
|
|
43
25
|
};
|
|
44
|
-
type __VLS_PrettifyLocal<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
@@ -14,33 +14,12 @@ export interface SidebarHeadingProps {
|
|
|
14
14
|
export interface SidebarHeadingSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default:
|
|
18
|
-
as: string;
|
|
19
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarHeadingProps>, {
|
|
20
|
-
as: string;
|
|
21
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarHeadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarHeadingProps> & Readonly<{}>, {
|
|
22
18
|
as: any;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarHeadingSlots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
22
|
new (): {
|
|
41
23
|
$slots: S;
|
|
42
24
|
};
|
|
43
25
|
};
|
|
44
|
-
type __VLS_PrettifyLocal<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
@@ -108,6 +108,8 @@ const handleNavigationClick = () => {
|
|
|
108
108
|
</header>
|
|
109
109
|
|
|
110
110
|
<!-- Page Content -->
|
|
111
|
+
<slot name="content-top" />
|
|
112
|
+
|
|
111
113
|
<template v-if="!!slots.default">
|
|
112
114
|
<main :class="b24ui.container({ class: props.b24ui?.container })">
|
|
113
115
|
<div :class="b24ui.containerWrapper({ class: props.b24ui?.containerWrapper })">
|
|
@@ -117,5 +119,7 @@ const handleNavigationClick = () => {
|
|
|
117
119
|
</div>
|
|
118
120
|
</main>
|
|
119
121
|
</template>
|
|
122
|
+
|
|
123
|
+
<slot name="content-bottom" />
|
|
120
124
|
</Primitive>
|
|
121
125
|
</template>
|
|
@@ -18,48 +18,27 @@ export interface SidebarLayoutSlots {
|
|
|
18
18
|
* @param props
|
|
19
19
|
* @param props.handleClick - Handler for navigation click events
|
|
20
20
|
*/
|
|
21
|
-
sidebar(props: {
|
|
21
|
+
'sidebar'(props: {
|
|
22
22
|
handleClick: () => void;
|
|
23
23
|
}): any;
|
|
24
24
|
/**
|
|
25
25
|
* Menu for mobile screen sizes.
|
|
26
26
|
*/
|
|
27
|
-
navbar(props?: {}): any;
|
|
27
|
+
'navbar'(props?: {}): any;
|
|
28
28
|
/**
|
|
29
29
|
* The page content.
|
|
30
30
|
*/
|
|
31
|
-
default(props?: {}): any;
|
|
31
|
+
'default'(props?: {}): any;
|
|
32
|
+
'content-top': (props?: {}) => any;
|
|
33
|
+
'content-bottom': (props?: {}) => any;
|
|
32
34
|
}
|
|
33
|
-
declare const _default:
|
|
34
|
-
as: string;
|
|
35
|
-
useLightContent: boolean;
|
|
36
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarLayoutProps>, {
|
|
37
|
-
as: string;
|
|
38
|
-
useLightContent: boolean;
|
|
39
|
-
}>>> & Readonly<{}>, {
|
|
35
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarLayoutProps> & Readonly<{}>, {
|
|
40
36
|
as: any;
|
|
41
37
|
useLightContent: boolean;
|
|
42
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarLayoutSlots>;
|
|
43
39
|
export default _default;
|
|
44
|
-
type
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
-
type __VLS_TypePropsToOption<T> = {
|
|
51
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
-
} : {
|
|
54
|
-
type: import('vue').PropType<T[K]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
41
|
new (): {
|
|
60
42
|
$slots: S;
|
|
61
43
|
};
|
|
62
44
|
};
|
|
63
|
-
type __VLS_PrettifyLocal<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
@@ -14,33 +14,12 @@ export interface SidebarSectionProps {
|
|
|
14
14
|
export interface SidebarSectionSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default:
|
|
18
|
-
as: string;
|
|
19
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarSectionProps>, {
|
|
20
|
-
as: string;
|
|
21
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarSectionProps> & Readonly<{}>, {
|
|
22
18
|
as: any;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarSectionSlots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
22
|
new (): {
|
|
41
23
|
$slots: S;
|
|
42
24
|
};
|
|
43
25
|
};
|
|
44
|
-
type __VLS_PrettifyLocal<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
@@ -14,33 +14,12 @@ export interface SidebarSpacerProps {
|
|
|
14
14
|
export interface SidebarSpacerSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default:
|
|
18
|
-
as: string;
|
|
19
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarSpacerProps>, {
|
|
20
|
-
as: string;
|
|
21
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SidebarSpacerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SidebarSpacerProps> & Readonly<{}>, {
|
|
22
18
|
as: any;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarSpacerSlots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
22
|
new (): {
|
|
41
23
|
$slots: S;
|
|
42
24
|
};
|
|
43
25
|
};
|
|
44
|
-
type __VLS_PrettifyLocal<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
@@ -16,7 +16,14 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.skeleto
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<Primitive
|
|
19
|
+
<Primitive
|
|
20
|
+
:as="as"
|
|
21
|
+
aria-busy="true"
|
|
22
|
+
aria-label="loading"
|
|
23
|
+
aria-live="polite"
|
|
24
|
+
role="alert"
|
|
25
|
+
:class="b24ui({ class: props.class })"
|
|
26
|
+
>
|
|
20
27
|
<slot />
|
|
21
28
|
</Primitive>
|
|
22
29
|
</template>
|
|
@@ -6,20 +6,11 @@ export interface SkeletonProps {
|
|
|
6
6
|
as?: any;
|
|
7
7
|
class?: any;
|
|
8
8
|
}
|
|
9
|
-
declare const _default:
|
|
10
|
-
default
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
|
+
default?: (props: {}) => any;
|
|
11
11
|
}>;
|
|
12
12
|
export default _default;
|
|
13
|
-
type
|
|
14
|
-
type __VLS_TypePropsToOption<T> = {
|
|
15
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
-
} : {
|
|
18
|
-
type: import('vue').PropType<T[K]>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
14
|
new (): {
|
|
24
15
|
$slots: S;
|
|
25
16
|
};
|
|
@@ -31,7 +31,7 @@ const props = defineProps({
|
|
|
31
31
|
defaultOpen: { type: Boolean, required: false },
|
|
32
32
|
modal: { type: Boolean, required: false, default: true }
|
|
33
33
|
});
|
|
34
|
-
const emits = defineEmits(["after:leave", "update:open"]);
|
|
34
|
+
const emits = defineEmits(["after:leave", "close:prevent", "update:open"]);
|
|
35
35
|
const slots = defineSlots();
|
|
36
36
|
const { t } = useLocale();
|
|
37
37
|
const appConfig = useAppConfig();
|
|
@@ -39,18 +39,20 @@ const rootProps = useForwardPropsEmits(reactivePick(props, "open", "defaultOpen"
|
|
|
39
39
|
const portalProps = usePortal(toRef(() => props.portal));
|
|
40
40
|
const contentProps = toRef(() => props.content);
|
|
41
41
|
const contentEvents = computed(() => {
|
|
42
|
-
const
|
|
42
|
+
const defaultEvents = {
|
|
43
43
|
closeAutoFocus: (e) => e.preventDefault()
|
|
44
44
|
};
|
|
45
45
|
if (!props.dismissible) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
const events = ["pointerDownOutside", "interactOutside", "escapeKeyDown", "closeAutoFocus"];
|
|
47
|
+
return events.reduce((acc, curr) => {
|
|
48
|
+
acc[curr] = (e) => {
|
|
49
|
+
e.preventDefault();
|
|
50
|
+
emits("close:prevent");
|
|
51
|
+
};
|
|
52
|
+
return acc;
|
|
53
|
+
}, {});
|
|
52
54
|
}
|
|
53
|
-
return
|
|
55
|
+
return defaultEvents;
|
|
54
56
|
});
|
|
55
57
|
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.slideover || {} })({
|
|
56
58
|
transition: props.transition,
|
|
@@ -64,6 +64,7 @@ export interface SlideoverProps extends DialogRootProps {
|
|
|
64
64
|
}
|
|
65
65
|
export interface SlideoverEmits extends DialogRootEmits {
|
|
66
66
|
'after:leave': [];
|
|
67
|
+
'close:prevent': [];
|
|
67
68
|
}
|
|
68
69
|
export interface SlideoverSlots {
|
|
69
70
|
default(props: {
|
|
@@ -81,17 +82,15 @@ export interface SlideoverSlots {
|
|
|
81
82
|
body(props?: {}): any;
|
|
82
83
|
footer(props?: {}): any;
|
|
83
84
|
}
|
|
84
|
-
declare const _default:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
overlayBlur: string;
|
|
94
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
85
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
"update:open": (value: boolean) => any;
|
|
87
|
+
"after:leave": () => any;
|
|
88
|
+
"close:prevent": () => any;
|
|
89
|
+
}, string, import("vue").PublicProps, Readonly<SlideoverProps> & Readonly<{
|
|
90
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
91
|
+
"onAfter:leave"?: (() => any) | undefined;
|
|
92
|
+
"onClose:prevent"?: (() => any) | undefined;
|
|
93
|
+
}>, {
|
|
95
94
|
close: boolean | Partial<ButtonProps>;
|
|
96
95
|
modal: boolean;
|
|
97
96
|
transition: boolean;
|
|
@@ -101,27 +100,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
101
100
|
overlayBlur: Slideover["variants"]["overlayBlur"];
|
|
102
101
|
dismissible: boolean;
|
|
103
102
|
scrollbarThin: boolean;
|
|
104
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
103
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SlideoverSlots>;
|
|
105
104
|
export default _default;
|
|
106
|
-
type
|
|
107
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
108
|
-
default: D[K];
|
|
109
|
-
}> : P[K];
|
|
110
|
-
};
|
|
111
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
112
|
-
type __VLS_TypePropsToOption<T> = {
|
|
113
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
114
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
115
|
-
} : {
|
|
116
|
-
type: import('vue').PropType<T[K]>;
|
|
117
|
-
required: true;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
105
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
121
106
|
new (): {
|
|
122
107
|
$slots: S;
|
|
123
108
|
};
|
|
124
109
|
};
|
|
125
|
-
type __VLS_PrettifyLocal<T> = {
|
|
126
|
-
[K in keyof T]: T[K];
|
|
127
|
-
} & {};
|
|
@@ -100,6 +100,8 @@ const handleNavigationClick = () => {
|
|
|
100
100
|
</header>
|
|
101
101
|
|
|
102
102
|
<!-- Page Content -->
|
|
103
|
+
<slot name="content-top" />
|
|
104
|
+
|
|
103
105
|
<template v-if="!!slots.default">
|
|
104
106
|
<main :class="b24ui.container({ class: props.b24ui?.container })">
|
|
105
107
|
<div :class="b24ui.containerWrapper({ class: props.b24ui?.containerWrapper })">
|
|
@@ -109,5 +111,7 @@ const handleNavigationClick = () => {
|
|
|
109
111
|
</div>
|
|
110
112
|
</main>
|
|
111
113
|
</template>
|
|
114
|
+
|
|
115
|
+
<slot name="content-bottom" />
|
|
112
116
|
</Primitive>
|
|
113
117
|
</template>
|
|
@@ -18,48 +18,27 @@ export interface StackedLayoutSlots {
|
|
|
18
18
|
* @param props
|
|
19
19
|
* @param props.handleClick - Handler for navigation click events
|
|
20
20
|
*/
|
|
21
|
-
sidebar(props: {
|
|
21
|
+
'sidebar'(props: {
|
|
22
22
|
handleClick: () => void;
|
|
23
23
|
}): any;
|
|
24
24
|
/**
|
|
25
25
|
* Menu for desktop screen sizes.
|
|
26
26
|
*/
|
|
27
|
-
navbar(props?: {}): any;
|
|
27
|
+
'navbar'(props?: {}): any;
|
|
28
28
|
/**
|
|
29
29
|
* The page content.
|
|
30
30
|
*/
|
|
31
|
-
default(props?: {}): any;
|
|
31
|
+
'default'(props?: {}): any;
|
|
32
|
+
'content-top': (props?: {}) => any;
|
|
33
|
+
'content-bottom': (props?: {}) => any;
|
|
32
34
|
}
|
|
33
|
-
declare const _default:
|
|
34
|
-
as: string;
|
|
35
|
-
useLightContent: boolean;
|
|
36
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<StackedLayoutProps>, {
|
|
37
|
-
as: string;
|
|
38
|
-
useLightContent: boolean;
|
|
39
|
-
}>>> & Readonly<{}>, {
|
|
35
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<StackedLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackedLayoutProps> & Readonly<{}>, {
|
|
40
36
|
as: any;
|
|
41
37
|
useLightContent: boolean;
|
|
42
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, StackedLayoutSlots>;
|
|
43
39
|
export default _default;
|
|
44
|
-
type
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
-
type __VLS_TypePropsToOption<T> = {
|
|
51
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
-
} : {
|
|
54
|
-
type: import('vue').PropType<T[K]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
41
|
new (): {
|
|
60
42
|
$slots: S;
|
|
61
43
|
};
|
|
62
44
|
};
|
|
63
|
-
type __VLS_PrettifyLocal<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
@@ -55,22 +55,19 @@ export interface SwitchSlots {
|
|
|
55
55
|
description?: string;
|
|
56
56
|
}): any;
|
|
57
57
|
}
|
|
58
|
-
declare const _default:
|
|
58
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SwitchProps & {
|
|
59
59
|
modelValue?: boolean;
|
|
60
|
-
}
|
|
60
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
change: (payload: Event) => any;
|
|
62
|
+
"update:modelValue": (value: boolean) => any;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<SwitchProps & {
|
|
61
64
|
modelValue?: boolean;
|
|
62
|
-
} &
|
|
65
|
+
}> & Readonly<{
|
|
66
|
+
onChange?: ((payload: Event) => any) | undefined;
|
|
67
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
68
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SwitchSlots>;
|
|
63
69
|
export default _default;
|
|
64
|
-
type
|
|
65
|
-
type __VLS_TypePropsToOption<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
-
} : {
|
|
69
|
-
type: import('vue').PropType<T[K]>;
|
|
70
|
-
required: true;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
74
71
|
new (): {
|
|
75
72
|
$slots: S;
|
|
76
73
|
};
|
|
@@ -72,28 +72,12 @@ export type TabsSlots<T extends TabsItem = TabsItem> = {
|
|
|
72
72
|
index: number;
|
|
73
73
|
}>;
|
|
74
74
|
declare const _default: <T extends TabsItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
75
|
-
props: __VLS_PrettifyLocal<
|
|
75
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
76
|
+
readonly "onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
77
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & TabsProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
76
78
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
77
79
|
attrs: any;
|
|
78
|
-
slots:
|
|
79
|
-
leading: SlotProps<T>;
|
|
80
|
-
default: SlotProps<T>;
|
|
81
|
-
trailing: SlotProps<T>;
|
|
82
|
-
content: SlotProps<T>;
|
|
83
|
-
'list-leading': (props?: {}) => any;
|
|
84
|
-
'list-trailing': (props?: {}) => any;
|
|
85
|
-
} & DynamicSlots<T, undefined, {
|
|
86
|
-
index: number;
|
|
87
|
-
}>> & {
|
|
88
|
-
leading: SlotProps<T>;
|
|
89
|
-
default: SlotProps<T>;
|
|
90
|
-
trailing: SlotProps<T>;
|
|
91
|
-
content: SlotProps<T>;
|
|
92
|
-
'list-leading': (props?: {}) => any;
|
|
93
|
-
'list-trailing': (props?: {}) => any;
|
|
94
|
-
} & DynamicSlots<T, undefined, {
|
|
95
|
-
index: number;
|
|
96
|
-
}>;
|
|
80
|
+
slots: TabsSlots<T>;
|
|
97
81
|
emit: (evt: "update:modelValue", payload: string | number) => void;
|
|
98
82
|
}>) => import("vue").VNode & {
|
|
99
83
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -94,48 +94,31 @@ export interface TextareaSlots {
|
|
|
94
94
|
default(props?: {}): any;
|
|
95
95
|
trailing(props?: {}): any;
|
|
96
96
|
}
|
|
97
|
-
declare const _default:
|
|
97
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TextareaProps & {
|
|
98
98
|
modelValue?: string | number | null;
|
|
99
|
-
}
|
|
100
|
-
rows: number;
|
|
101
|
-
maxrows: number;
|
|
102
|
-
autofocusDelay: number;
|
|
103
|
-
autoresizeDelay: number;
|
|
104
|
-
}>>, {
|
|
99
|
+
}, {
|
|
105
100
|
textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
106
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
101
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
102
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
103
|
+
} & {
|
|
104
|
+
blur: (event: FocusEvent) => any;
|
|
105
|
+
change: (event: Event) => any;
|
|
106
|
+
"update:modelValue": (payload: string | number) => any;
|
|
107
|
+
}, string, import("vue").PublicProps, Readonly<TextareaProps & {
|
|
107
108
|
modelValue?: string | number | null;
|
|
108
|
-
} &
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}>>> & Readonly<{}>, {
|
|
109
|
+
}> & Readonly<{
|
|
110
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
111
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
112
|
+
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
113
|
+
}>, {
|
|
114
114
|
autofocusDelay: number;
|
|
115
115
|
autoresizeDelay: number;
|
|
116
116
|
rows: number;
|
|
117
117
|
maxrows: number;
|
|
118
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TextareaSlots>;
|
|
119
119
|
export default _default;
|
|
120
|
-
type
|
|
121
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
122
|
-
default: D[K];
|
|
123
|
-
}> : P[K];
|
|
124
|
-
};
|
|
125
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
126
|
-
type __VLS_TypePropsToOption<T> = {
|
|
127
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
128
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
129
|
-
} : {
|
|
130
|
-
type: import('vue').PropType<T[K]>;
|
|
131
|
-
required: true;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
120
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
135
121
|
new (): {
|
|
136
122
|
$slots: S;
|
|
137
123
|
};
|
|
138
124
|
};
|
|
139
|
-
type __VLS_PrettifyLocal<T> = {
|
|
140
|
-
[K in keyof T]: T[K];
|
|
141
|
-
} & {};
|