@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.
Files changed (101) hide show
  1. package/dist/meta.d.mts +3187 -765
  2. package/dist/meta.mjs +3187 -765
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +1 -1
  5. package/dist/runtime/components/Advice.vue.d.ts +3 -26
  6. package/dist/runtime/components/Alert.vue.d.ts +7 -22
  7. package/dist/runtime/components/App.vue.d.ts +2 -2
  8. package/dist/runtime/components/Avatar.vue.d.ts +4 -25
  9. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -11
  10. package/dist/runtime/components/Badge.vue.d.ts +3 -24
  11. package/dist/runtime/components/Button.vue.d.ts +3 -30
  12. package/dist/runtime/components/ButtonGroup.vue.d.ts +3 -26
  13. package/dist/runtime/components/Calendar.vue.d.ts +6 -2
  14. package/dist/runtime/components/Checkbox.vue.d.ts +10 -13
  15. package/dist/runtime/components/Chip.vue.d.ts +10 -24
  16. package/dist/runtime/components/Collapsible.vue.d.ts +7 -22
  17. package/dist/runtime/components/Container.vue.d.ts +2 -11
  18. package/dist/runtime/components/Countdown.vue.d.ts +14 -30
  19. package/dist/runtime/components/DescriptionList.vue +12 -0
  20. package/dist/runtime/components/DescriptionList.vue.d.ts +12 -36
  21. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -24
  22. package/dist/runtime/components/DropdownMenuContent.vue +4 -0
  23. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +19 -6
  24. package/dist/runtime/components/Form.vue.d.ts +5 -2
  25. package/dist/runtime/components/FormField.vue.d.ts +2 -11
  26. package/dist/runtime/components/Input.vue.d.ts +16 -31
  27. package/dist/runtime/components/InputMenu.vue +6 -2
  28. package/dist/runtime/components/InputMenu.vue.d.ts +17 -3
  29. package/dist/runtime/components/InputNumber.vue.d.ts +12 -25
  30. package/dist/runtime/components/Kbd.vue.d.ts +3 -24
  31. package/dist/runtime/components/Link.vue.d.ts +3 -36
  32. package/dist/runtime/components/LinkBase.vue.d.ts +4 -27
  33. package/dist/runtime/components/Modal.vue +11 -9
  34. package/dist/runtime/components/Modal.vue.d.ts +12 -29
  35. package/dist/runtime/components/ModalDialogClose.vue.d.ts +2 -2
  36. package/dist/runtime/components/Navbar.vue.d.ts +3 -24
  37. package/dist/runtime/components/NavbarDivider.vue.d.ts +3 -24
  38. package/dist/runtime/components/NavbarSection.vue.d.ts +3 -24
  39. package/dist/runtime/components/NavbarSpacer.vue.d.ts +3 -24
  40. package/dist/runtime/components/NavigationMenu.vue +4 -0
  41. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -20
  42. package/dist/runtime/components/Popover.vue +9 -6
  43. package/dist/runtime/components/Popover.vue.d.ts +10 -26
  44. package/dist/runtime/components/Progress.vue.d.ts +9 -40
  45. package/dist/runtime/components/RadioGroup.vue.d.ts +5 -2
  46. package/dist/runtime/components/Range.vue.d.ts +12 -31
  47. package/dist/runtime/components/Select.vue +5 -0
  48. package/dist/runtime/components/Select.vue.d.ts +10 -2
  49. package/dist/runtime/components/SelectMenu.vue +5 -1
  50. package/dist/runtime/components/SelectMenu.vue.d.ts +17 -3
  51. package/dist/runtime/components/Separator.vue.d.ts +3 -24
  52. package/dist/runtime/components/Sidebar.vue.d.ts +3 -24
  53. package/dist/runtime/components/SidebarBody.vue.d.ts +3 -26
  54. package/dist/runtime/components/SidebarFooter.vue.d.ts +3 -24
  55. package/dist/runtime/components/SidebarHeader.vue.d.ts +3 -24
  56. package/dist/runtime/components/SidebarHeading.vue.d.ts +3 -24
  57. package/dist/runtime/components/SidebarLayout.vue +4 -0
  58. package/dist/runtime/components/SidebarLayout.vue.d.ts +8 -29
  59. package/dist/runtime/components/SidebarSection.vue.d.ts +3 -24
  60. package/dist/runtime/components/SidebarSpacer.vue.d.ts +3 -24
  61. package/dist/runtime/components/Skeleton.vue +8 -1
  62. package/dist/runtime/components/Skeleton.vue.d.ts +3 -12
  63. package/dist/runtime/components/Slideover.vue +11 -9
  64. package/dist/runtime/components/Slideover.vue.d.ts +12 -30
  65. package/dist/runtime/components/StackedLayout.vue +4 -0
  66. package/dist/runtime/components/StackedLayout.vue.d.ts +8 -29
  67. package/dist/runtime/components/Switch.vue.d.ts +10 -13
  68. package/dist/runtime/components/Tabs.vue.d.ts +4 -20
  69. package/dist/runtime/components/Textarea.vue.d.ts +16 -33
  70. package/dist/runtime/components/Toast.vue.d.ts +86 -24
  71. package/dist/runtime/components/Toaster.vue.d.ts +3 -30
  72. package/dist/runtime/components/Tooltip.vue.d.ts +7 -22
  73. package/dist/runtime/components/content/TableWrapper.vue.d.ts +4 -27
  74. package/dist/runtime/composables/usePortal.js +2 -9
  75. package/dist/runtime/inertia/components/Link.vue.d.ts +3 -34
  76. package/dist/runtime/prose/A.vue.d.ts +2 -11
  77. package/dist/runtime/prose/Blockquote.vue.d.ts +2 -11
  78. package/dist/runtime/prose/Code.vue.d.ts +2 -11
  79. package/dist/runtime/prose/Em.vue.d.ts +2 -11
  80. package/dist/runtime/prose/H1.vue.d.ts +2 -11
  81. package/dist/runtime/prose/H2.vue.d.ts +2 -11
  82. package/dist/runtime/prose/H3.vue.d.ts +2 -11
  83. package/dist/runtime/prose/H4.vue.d.ts +2 -11
  84. package/dist/runtime/prose/H5.vue.d.ts +2 -11
  85. package/dist/runtime/prose/H6.vue.d.ts +2 -11
  86. package/dist/runtime/prose/Hr.vue.d.ts +1 -10
  87. package/dist/runtime/prose/Img.vue.d.ts +1 -10
  88. package/dist/runtime/prose/Li.vue.d.ts +2 -11
  89. package/dist/runtime/prose/Ol.vue.d.ts +2 -11
  90. package/dist/runtime/prose/P.vue.d.ts +2 -11
  91. package/dist/runtime/prose/Pre.vue.d.ts +3 -24
  92. package/dist/runtime/prose/Strong.vue.d.ts +2 -11
  93. package/dist/runtime/prose/Table.vue.d.ts +3 -32
  94. package/dist/runtime/prose/Tbody.vue.d.ts +2 -11
  95. package/dist/runtime/prose/Td.vue.d.ts +2 -11
  96. package/dist/runtime/prose/Th.vue.d.ts +2 -11
  97. package/dist/runtime/prose/Thead.vue.d.ts +2 -11
  98. package/dist/runtime/prose/Tr.vue.d.ts +2 -11
  99. package/dist/runtime/prose/Ul.vue.d.ts +2 -11
  100. package/dist/runtime/vue/components/Link.vue.d.ts +3 -36
  101. 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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarFooterProps>, {
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, true, {}, any>, Readonly<SidebarFooterSlots> & SidebarFooterSlots>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarFooterSlots>;
24
20
  export default _default;
25
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarHeaderProps>, {
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, true, {}, any>, Readonly<SidebarHeaderSlots> & SidebarHeaderSlots>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarHeaderSlots>;
24
20
  export default _default;
25
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarHeadingProps>, {
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, true, {}, any>, Readonly<SidebarHeadingSlots> & SidebarHeadingSlots>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarHeadingSlots>;
24
20
  export default _default;
25
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarLayoutProps>, {
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, true, {}, any>, Readonly<SidebarLayoutSlots> & SidebarLayoutSlots>;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarLayoutSlots>;
43
39
  export default _default;
44
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarSectionProps>, {
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, true, {}, any>, Readonly<SidebarSectionSlots> & SidebarSectionSlots>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarSectionSlots>;
24
20
  export default _default;
25
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SidebarSpacerProps>, {
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, true, {}, any>, Readonly<SidebarSpacerSlots> & SidebarSpacerSlots>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SidebarSpacerSlots>;
24
20
  export default _default;
25
- type __VLS_WithDefaults<P, D> = {
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 :as="as" :class="b24ui({ class: props.class })">
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<SkeletonProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<SkeletonProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
10
- default?(_: {}): any;
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 __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
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 events = {
42
+ const defaultEvents = {
43
43
  closeAutoFocus: (e) => e.preventDefault()
44
44
  };
45
45
  if (!props.dismissible) {
46
- return {
47
- pointerDownOutside: (e) => e.preventDefault(),
48
- interactOutside: (e) => e.preventDefault(),
49
- escapeKeyDown: (e) => e.preventDefault(),
50
- ...events
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 events;
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SlideoverProps>, {
85
- close: boolean;
86
- portal: boolean;
87
- overlay: boolean;
88
- transition: boolean;
89
- modal: boolean;
90
- dismissible: boolean;
91
- side: string;
92
- scrollbarThin: boolean;
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, true, {}, any>, Readonly<SlideoverSlots> & SlideoverSlots>;
103
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SlideoverSlots>;
105
104
  export default _default;
106
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<StackedLayoutProps>, {
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, true, {}, any>, Readonly<StackedLayoutSlots> & StackedLayoutSlots>;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, StackedLayoutSlots>;
43
39
  export default _default;
44
- type __VLS_WithDefaults<P, D> = {
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
58
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SwitchProps & {
59
59
  modelValue?: boolean;
60
- } & SwitchProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
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
- } & SwitchProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<SwitchSlots> & SwitchSlots>;
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 __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
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<any & TabsProps<T> & Partial<{}>> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
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: Readonly<{
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: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
97
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TextareaProps & {
98
98
  modelValue?: string | number | null;
99
- } & TextareaProps>, {
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, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
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
- } & TextareaProps>, {
109
- rows: number;
110
- maxrows: number;
111
- autofocusDelay: number;
112
- autoresizeDelay: number;
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, true, {}, any>, Readonly<TextareaSlots> & TextareaSlots>;
118
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TextareaSlots>;
119
119
  export default _default;
120
- type __VLS_WithDefaults<P, D> = {
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
- } & {};