@porsche-design-system/components-vue 2.19.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1638 -0
- package/LICENSE +59 -0
- package/OSS_NOTICE +20981 -0
- package/PorscheDesignSystemProvider.vue.d.ts +33 -0
- package/PorscheDesignSystemProvider.vue.js +16 -0
- package/PorscheDesignSystemProvider.vue2.js +5 -0
- package/lib/components/AccordionWrapper.vue.d.ts +90 -0
- package/lib/components/AccordionWrapper.vue.js +33 -0
- package/lib/components/AccordionWrapper.vue2.js +5 -0
- package/lib/components/BannerWrapper.vue.d.ts +71 -0
- package/lib/components/BannerWrapper.vue.js +31 -0
- package/lib/components/BannerWrapper.vue2.js +5 -0
- package/lib/components/ButtonGroupWrapper.vue.d.ts +46 -0
- package/lib/components/ButtonGroupWrapper.vue.js +27 -0
- package/lib/components/ButtonGroupWrapper.vue2.js +5 -0
- package/lib/components/ButtonPureWrapper.vue.d.ts +179 -0
- package/lib/components/ButtonPureWrapper.vue.js +40 -0
- package/lib/components/ButtonPureWrapper.vue2.js +5 -0
- package/lib/components/ButtonWrapper.vue.d.ts +135 -0
- package/lib/components/ButtonWrapper.vue.js +36 -0
- package/lib/components/ButtonWrapper.vue2.js +5 -0
- package/lib/components/CarouselWrapper.vue.d.ts +112 -0
- package/lib/components/CarouselWrapper.vue.js +35 -0
- package/lib/components/CarouselWrapper.vue2.js +5 -0
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +73 -0
- package/lib/components/CheckboxWrapperWrapper.vue.js +30 -0
- package/lib/components/CheckboxWrapperWrapper.vue2.js +5 -0
- package/lib/components/ContentWrapperWrapper.vue.d.ts +62 -0
- package/lib/components/ContentWrapperWrapper.vue.js +29 -0
- package/lib/components/ContentWrapperWrapper.vue2.js +5 -0
- package/lib/components/DividerWrapper.vue.d.ts +55 -0
- package/lib/components/DividerWrapper.vue.js +24 -0
- package/lib/components/DividerWrapper.vue2.js +5 -0
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +84 -0
- package/lib/components/FieldsetWrapperWrapper.vue.js +31 -0
- package/lib/components/FieldsetWrapperWrapper.vue2.js +5 -0
- package/lib/components/FlexItemWrapper.vue.d.ts +95 -0
- package/lib/components/FlexItemWrapper.vue.js +32 -0
- package/lib/components/FlexItemWrapper.vue2.js +5 -0
- package/lib/components/FlexWrapper.vue.d.ts +95 -0
- package/lib/components/FlexWrapper.vue.js +32 -0
- package/lib/components/FlexWrapper.vue2.js +5 -0
- package/lib/components/GridItemWrapper.vue.d.ts +51 -0
- package/lib/components/GridItemWrapper.vue.js +28 -0
- package/lib/components/GridItemWrapper.vue2.js +5 -0
- package/lib/components/GridWrapper.vue.d.ts +70 -0
- package/lib/components/GridWrapper.vue.js +29 -0
- package/lib/components/GridWrapper.vue2.js +5 -0
- package/lib/components/HeadlineWrapper.vue.d.ts +92 -0
- package/lib/components/HeadlineWrapper.vue.js +32 -0
- package/lib/components/HeadlineWrapper.vue2.js +5 -0
- package/lib/components/IconWrapper.vue.d.ts +93 -0
- package/lib/components/IconWrapper.vue.js +28 -0
- package/lib/components/IconWrapper.vue2.js +5 -0
- package/lib/components/InlineNotificationWrapper.vue.d.ts +121 -0
- package/lib/components/InlineNotificationWrapper.vue.js +35 -0
- package/lib/components/InlineNotificationWrapper.vue2.js +5 -0
- package/lib/components/LinkPureWrapper.vue.d.ts +168 -0
- package/lib/components/LinkPureWrapper.vue.js +40 -0
- package/lib/components/LinkPureWrapper.vue2.js +5 -0
- package/lib/components/LinkSocialWrapper.vue.d.ts +94 -0
- package/lib/components/LinkSocialWrapper.vue.js +33 -0
- package/lib/components/LinkSocialWrapper.vue2.js +5 -0
- package/lib/components/LinkTileWrapper.vue.d.ts +154 -0
- package/lib/components/LinkTileWrapper.vue.js +39 -0
- package/lib/components/LinkTileWrapper.vue2.js +5 -0
- package/lib/components/LinkWrapper.vue.d.ts +124 -0
- package/lib/components/LinkWrapper.vue.js +36 -0
- package/lib/components/LinkWrapper.vue2.js +5 -0
- package/lib/components/MarqueWrapper.vue.d.ts +71 -0
- package/lib/components/MarqueWrapper.vue.js +26 -0
- package/lib/components/MarqueWrapper.vue2.js +5 -0
- package/lib/components/ModalWrapper.vue.d.ts +93 -0
- package/lib/components/ModalWrapper.vue.js +33 -0
- package/lib/components/ModalWrapper.vue2.js +5 -0
- package/lib/components/PaginationWrapper.vue.d.ts +131 -0
- package/lib/components/PaginationWrapper.vue.js +31 -0
- package/lib/components/PaginationWrapper.vue2.js +5 -0
- package/lib/components/PopoverWrapper.vue.d.ts +56 -0
- package/lib/components/PopoverWrapper.vue.js +29 -0
- package/lib/components/PopoverWrapper.vue2.js +5 -0
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +73 -0
- package/lib/components/RadioButtonWrapperWrapper.vue.js +30 -0
- package/lib/components/RadioButtonWrapperWrapper.vue2.js +5 -0
- package/lib/components/ScrollerWrapper.vue.d.ts +70 -0
- package/lib/components/ScrollerWrapper.vue.js +30 -0
- package/lib/components/ScrollerWrapper.vue2.js +5 -0
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +72 -0
- package/lib/components/SegmentedControlItemWrapper.vue.js +31 -0
- package/lib/components/SegmentedControlItemWrapper.vue2.js +5 -0
- package/lib/components/SegmentedControlWrapper.vue.d.ts +63 -0
- package/lib/components/SegmentedControlWrapper.vue.js +30 -0
- package/lib/components/SegmentedControlWrapper.vue2.js +5 -0
- package/lib/components/SelectWrapperWrapper.vue.d.ts +128 -0
- package/lib/components/SelectWrapperWrapper.vue.js +35 -0
- package/lib/components/SelectWrapperWrapper.vue2.js +5 -0
- package/lib/components/SpinnerWrapper.vue.d.ts +52 -0
- package/lib/components/SpinnerWrapper.vue.js +24 -0
- package/lib/components/SpinnerWrapper.vue2.js +5 -0
- package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +47 -0
- package/lib/components/StepperHorizontalItemWrapper.vue.js +28 -0
- package/lib/components/StepperHorizontalItemWrapper.vue2.js +5 -0
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +49 -0
- package/lib/components/StepperHorizontalWrapper.vue.js +29 -0
- package/lib/components/StepperHorizontalWrapper.vue2.js +5 -0
- package/lib/components/SwitchWrapper.vue.d.ts +123 -0
- package/lib/components/SwitchWrapper.vue.js +35 -0
- package/lib/components/SwitchWrapper.vue2.js +5 -0
- package/lib/components/TableBodyWrapper.vue.d.ts +9 -0
- package/lib/components/TableBodyWrapper.vue.js +17 -0
- package/lib/components/TableBodyWrapper.vue2.js +5 -0
- package/lib/components/TableCellWrapper.vue.d.ts +39 -0
- package/lib/components/TableCellWrapper.vue.js +27 -0
- package/lib/components/TableCellWrapper.vue2.js +5 -0
- package/lib/components/TableHeadCellWrapper.vue.d.ts +59 -0
- package/lib/components/TableHeadCellWrapper.vue.js +29 -0
- package/lib/components/TableHeadCellWrapper.vue2.js +5 -0
- package/lib/components/TableHeadRowWrapper.vue.d.ts +9 -0
- package/lib/components/TableHeadRowWrapper.vue.js +17 -0
- package/lib/components/TableHeadRowWrapper.vue2.js +5 -0
- package/lib/components/TableHeadWrapper.vue.d.ts +9 -0
- package/lib/components/TableHeadWrapper.vue.js +17 -0
- package/lib/components/TableHeadWrapper.vue2.js +5 -0
- package/lib/components/TableRowWrapper.vue.d.ts +9 -0
- package/lib/components/TableRowWrapper.vue.js +17 -0
- package/lib/components/TableRowWrapper.vue2.js +5 -0
- package/lib/components/TableWrapper.vue.d.ts +32 -0
- package/lib/components/TableWrapper.vue.js +28 -0
- package/lib/components/TableWrapper.vue2.js +5 -0
- package/lib/components/TabsBarWrapper.vue.d.ts +85 -0
- package/lib/components/TabsBarWrapper.vue.js +32 -0
- package/lib/components/TabsBarWrapper.vue2.js +5 -0
- package/lib/components/TabsItemWrapper.vue.d.ts +28 -0
- package/lib/components/TabsItemWrapper.vue.js +27 -0
- package/lib/components/TabsItemWrapper.vue2.js +5 -0
- package/lib/components/TabsWrapper.vue.d.ts +88 -0
- package/lib/components/TabsWrapper.vue.js +32 -0
- package/lib/components/TabsWrapper.vue2.js +5 -0
- package/lib/components/TagDismissibleWrapper.vue.d.ts +56 -0
- package/lib/components/TagDismissibleWrapper.vue.js +29 -0
- package/lib/components/TagDismissibleWrapper.vue2.js +5 -0
- package/lib/components/TagWrapper.vue.d.ts +67 -0
- package/lib/components/TagWrapper.vue.js +30 -0
- package/lib/components/TagWrapper.vue2.js +5 -0
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +140 -0
- package/lib/components/TextFieldWrapperWrapper.vue.js +37 -0
- package/lib/components/TextFieldWrapperWrapper.vue2.js +5 -0
- package/lib/components/TextListItemWrapper.vue.d.ts +9 -0
- package/lib/components/TextListItemWrapper.vue.js +17 -0
- package/lib/components/TextListItemWrapper.vue2.js +5 -0
- package/lib/components/TextListWrapper.vue.d.ts +62 -0
- package/lib/components/TextListWrapper.vue.js +29 -0
- package/lib/components/TextListWrapper.vue2.js +5 -0
- package/lib/components/TextWrapper.vue.d.ts +106 -0
- package/lib/components/TextWrapper.vue.js +33 -0
- package/lib/components/TextWrapper.vue2.js +5 -0
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +95 -0
- package/lib/components/TextareaWrapperWrapper.vue.js +32 -0
- package/lib/components/TextareaWrapperWrapper.vue2.js +5 -0
- package/lib/components/ToastWrapper.vue.d.ts +33 -0
- package/lib/components/ToastWrapper.vue.js +22 -0
- package/lib/components/ToastWrapper.vue2.js +5 -0
- package/lib/components/index.d.ts +52 -0
- package/lib/types.d.ts +738 -0
- package/package.json +28 -0
- package/partials/esm/partials.js +1 -0
- package/partials/package.json +6 -0
- package/partials/partials.d.ts +1 -0
- package/partials/partials.js +12 -0
- package/public-api.d.ts +5 -0
- package/public-api.js +112 -0
- package/utilities/js/esm/js.js +1 -0
- package/utilities/js/js.d.ts +1 -0
- package/utilities/js/js.js +12 -0
- package/utilities/js/package.json +6 -0
- package/utilities/scss.scss +1 -0
- package/utils.d.ts +9 -0
- package/utils.js +28 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, NumberOfPageLinks, PageChangeEvent, Theme } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Index of the currently active page.
|
|
5
|
+
*/
|
|
6
|
+
activePage: number;
|
|
7
|
+
/**
|
|
8
|
+
* Aria label what the pagination is used for.
|
|
9
|
+
*/
|
|
10
|
+
allyLabel?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Aria label for next page icon.
|
|
13
|
+
*/
|
|
14
|
+
allyLabelNext?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Aria label for page navigation.
|
|
17
|
+
*/
|
|
18
|
+
allyLabelPage?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Aria label for previous page icon.
|
|
21
|
+
*/
|
|
22
|
+
allyLabelPrev?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The total count of items which should be shown per page.
|
|
25
|
+
*/
|
|
26
|
+
itemsPerPage?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum number of page links rendered
|
|
29
|
+
*/
|
|
30
|
+
maxNumberOfPageLinks?: BreakpointCustomizable<5 | 7> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Adapts the color when used on dark background.
|
|
33
|
+
*/
|
|
34
|
+
theme?: "light" | "dark" | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The total count of items.
|
|
37
|
+
*/
|
|
38
|
+
totalItemsCount: number;
|
|
39
|
+
}>, {
|
|
40
|
+
activePage: number;
|
|
41
|
+
allyLabel: string;
|
|
42
|
+
allyLabelNext: string;
|
|
43
|
+
allyLabelPage: string;
|
|
44
|
+
allyLabelPrev: string;
|
|
45
|
+
itemsPerPage: number;
|
|
46
|
+
maxNumberOfPageLinks: () => {
|
|
47
|
+
base: number;
|
|
48
|
+
xs: number;
|
|
49
|
+
};
|
|
50
|
+
theme: string;
|
|
51
|
+
totalItemsCount: number;
|
|
52
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
pageChange: (value: PageChangeEvent) => void;
|
|
54
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
55
|
+
/**
|
|
56
|
+
* Index of the currently active page.
|
|
57
|
+
*/
|
|
58
|
+
activePage: number;
|
|
59
|
+
/**
|
|
60
|
+
* Aria label what the pagination is used for.
|
|
61
|
+
*/
|
|
62
|
+
allyLabel?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Aria label for next page icon.
|
|
65
|
+
*/
|
|
66
|
+
allyLabelNext?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Aria label for page navigation.
|
|
69
|
+
*/
|
|
70
|
+
allyLabelPage?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Aria label for previous page icon.
|
|
73
|
+
*/
|
|
74
|
+
allyLabelPrev?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The total count of items which should be shown per page.
|
|
77
|
+
*/
|
|
78
|
+
itemsPerPage?: number | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* The maximum number of page links rendered
|
|
81
|
+
*/
|
|
82
|
+
maxNumberOfPageLinks?: BreakpointCustomizable<5 | 7> | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Adapts the color when used on dark background.
|
|
85
|
+
*/
|
|
86
|
+
theme?: "light" | "dark" | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The total count of items.
|
|
89
|
+
*/
|
|
90
|
+
totalItemsCount: number;
|
|
91
|
+
}>, {
|
|
92
|
+
activePage: number;
|
|
93
|
+
allyLabel: string;
|
|
94
|
+
allyLabelNext: string;
|
|
95
|
+
allyLabelPage: string;
|
|
96
|
+
allyLabelPrev: string;
|
|
97
|
+
itemsPerPage: number;
|
|
98
|
+
maxNumberOfPageLinks: () => {
|
|
99
|
+
base: number;
|
|
100
|
+
xs: number;
|
|
101
|
+
};
|
|
102
|
+
theme: string;
|
|
103
|
+
totalItemsCount: number;
|
|
104
|
+
}>>> & {
|
|
105
|
+
onPageChange?: ((value: PageChangeEvent) => any) | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
theme: Theme;
|
|
108
|
+
activePage: number;
|
|
109
|
+
allyLabel: string;
|
|
110
|
+
allyLabelNext: string;
|
|
111
|
+
allyLabelPage: string;
|
|
112
|
+
allyLabelPrev: string;
|
|
113
|
+
itemsPerPage: number;
|
|
114
|
+
maxNumberOfPageLinks: BreakpointCustomizable<NumberOfPageLinks>;
|
|
115
|
+
totalItemsCount: number;
|
|
116
|
+
}>;
|
|
117
|
+
export default _default;
|
|
118
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
119
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
120
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
121
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
122
|
+
} : {
|
|
123
|
+
type: import('vue').PropType<T[K]>;
|
|
124
|
+
required: true;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
type __VLS_WithDefaults<P, D> = {
|
|
128
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
129
|
+
default: D[K];
|
|
130
|
+
} : P[K];
|
|
131
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as r, ref as p, onMounted as f, onUpdated as s, openBlock as u, createBlock as i, resolveDynamicComponent as m, unref as d } from "vue";
|
|
2
|
+
import { getPrefixedTagName as g, syncProperties as t, addEventListenerToElementRef as c } from "../../utils.js";
|
|
3
|
+
const x = /* @__PURE__ */ r({
|
|
4
|
+
__name: "PaginationWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
activePage: { default: 1 },
|
|
7
|
+
allyLabel: { default: "Pagination" },
|
|
8
|
+
allyLabelNext: { default: "Next page" },
|
|
9
|
+
allyLabelPage: { default: "Page" },
|
|
10
|
+
allyLabelPrev: { default: "Previous page" },
|
|
11
|
+
itemsPerPage: { default: 1 },
|
|
12
|
+
maxNumberOfPageLinks: { default: () => ({ base: 5, xs: 7 }) },
|
|
13
|
+
theme: { default: "light" },
|
|
14
|
+
totalItemsCount: { default: 1 }
|
|
15
|
+
},
|
|
16
|
+
emits: ["pageChange"],
|
|
17
|
+
setup(n, { emit: o }) {
|
|
18
|
+
const a = n, l = g("p-pagination"), e = p();
|
|
19
|
+
return f(() => {
|
|
20
|
+
t(e.value, a), c(e.value, "pageChange", o);
|
|
21
|
+
}), s(() => {
|
|
22
|
+
t(e.value, a);
|
|
23
|
+
}), (P, v) => (u(), i(m(d(l)), {
|
|
24
|
+
ref_key: "pdsComponentRef",
|
|
25
|
+
ref: e
|
|
26
|
+
}, null, 512));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
x as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, PopoverDirection } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Add ARIA attributes.
|
|
5
|
+
*/
|
|
6
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Descriptive text to show additional information when popover is open
|
|
9
|
+
*/
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
|
|
13
|
+
*/
|
|
14
|
+
direction?: "top" | "left" | "right" | "bottom" | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
direction: string;
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
/**
|
|
19
|
+
* Add ARIA attributes.
|
|
20
|
+
*/
|
|
21
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Descriptive text to show additional information when popover is open
|
|
24
|
+
*/
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "top" | "left" | "right" | "bottom" | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
direction: string;
|
|
32
|
+
}>>>, {
|
|
33
|
+
direction: PopoverDirection;
|
|
34
|
+
}>, {
|
|
35
|
+
default: (_: {}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
40
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
+
} : {
|
|
43
|
+
type: import('vue').PropType<T[K]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type __VLS_WithDefaults<P, D> = {
|
|
48
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
49
|
+
default: D[K];
|
|
50
|
+
} : P[K];
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as a, ref as s, onMounted as f, onUpdated as l, openBlock as c, createBlock as d, resolveDynamicComponent as m, unref as i, withCtx as u, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as C, syncProperties as t } from "../../utils.js";
|
|
3
|
+
const x = /* @__PURE__ */ a({
|
|
4
|
+
__name: "PopoverWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
aria: null,
|
|
7
|
+
description: null,
|
|
8
|
+
direction: { default: "bottom" }
|
|
9
|
+
},
|
|
10
|
+
setup(n) {
|
|
11
|
+
const o = n, r = C("p-popover"), e = s();
|
|
12
|
+
return f(() => {
|
|
13
|
+
t(e.value, o);
|
|
14
|
+
}), l(() => {
|
|
15
|
+
t(e.value, o);
|
|
16
|
+
}), (p, v) => (c(), d(m(i(r)), {
|
|
17
|
+
ref_key: "pdsComponentRef",
|
|
18
|
+
ref: e
|
|
19
|
+
}, {
|
|
20
|
+
default: u(() => [
|
|
21
|
+
_(p.$slots, "default")
|
|
22
|
+
]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 512));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
x as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, FormState } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
5
|
+
*/
|
|
6
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The label text.
|
|
9
|
+
*/
|
|
10
|
+
label?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The message styled depending on validation state.
|
|
13
|
+
*/
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The validation state.
|
|
17
|
+
*/
|
|
18
|
+
state?: "success" | "none" | "error" | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
hideLabel: boolean;
|
|
21
|
+
label: string;
|
|
22
|
+
message: string;
|
|
23
|
+
state: string;
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
25
|
+
/**
|
|
26
|
+
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
27
|
+
*/
|
|
28
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The label text.
|
|
31
|
+
*/
|
|
32
|
+
label?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The message styled depending on validation state.
|
|
35
|
+
*/
|
|
36
|
+
message?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The validation state.
|
|
39
|
+
*/
|
|
40
|
+
state?: "success" | "none" | "error" | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
hideLabel: boolean;
|
|
43
|
+
label: string;
|
|
44
|
+
message: string;
|
|
45
|
+
state: string;
|
|
46
|
+
}>>>, {
|
|
47
|
+
label: string;
|
|
48
|
+
state: FormState;
|
|
49
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
50
|
+
message: string;
|
|
51
|
+
}>, {
|
|
52
|
+
default: (_: {}) => any;
|
|
53
|
+
}>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
56
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: import('vue').PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type __VLS_WithDefaults<P, D> = {
|
|
65
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
66
|
+
default: D[K];
|
|
67
|
+
} : P[K];
|
|
68
|
+
};
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as p, ref as s, onMounted as f, onUpdated as d, openBlock as l, createBlock as u, resolveDynamicComponent as m, unref as c, withCtx as i, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as C, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ p({
|
|
4
|
+
__name: "RadioButtonWrapperWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
hideLabel: { default: !1 },
|
|
7
|
+
label: { default: "" },
|
|
8
|
+
message: { default: "" },
|
|
9
|
+
state: { default: "none" }
|
|
10
|
+
},
|
|
11
|
+
setup(n) {
|
|
12
|
+
const t = n, a = C("p-radio-button-wrapper"), e = s();
|
|
13
|
+
return f(() => {
|
|
14
|
+
o(e.value, t);
|
|
15
|
+
}), d(() => {
|
|
16
|
+
o(e.value, t);
|
|
17
|
+
}), (r, b) => (l(), u(m(c(a)), {
|
|
18
|
+
ref_key: "pdsComponentRef",
|
|
19
|
+
ref: e
|
|
20
|
+
}, {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
_(r.$slots, "default")
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 512));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
k as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { GradientColorTheme, ScrollIndicatorPosition, ScrollToPosition, ThemeExtendedElectric } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Adapts the background gradient color of prev and next button.
|
|
5
|
+
*/
|
|
6
|
+
gradientColorScheme?: "default" | "surface" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the vertical position of scroll indicator icon
|
|
9
|
+
*/
|
|
10
|
+
scrollIndicatorPosition?: "top" | "center" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Scrolls the scroll area to the left either smooth or immediately
|
|
13
|
+
*/
|
|
14
|
+
scrollToPosition?: ScrollToPosition | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Adapts the color when used on dark background.
|
|
17
|
+
*/
|
|
18
|
+
theme?: "light" | "dark" | "light-electric" | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
gradientColorScheme: string;
|
|
21
|
+
scrollIndicatorPosition: string;
|
|
22
|
+
theme: string;
|
|
23
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
/**
|
|
25
|
+
* Adapts the background gradient color of prev and next button.
|
|
26
|
+
*/
|
|
27
|
+
gradientColorScheme?: "default" | "surface" | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the vertical position of scroll indicator icon
|
|
30
|
+
*/
|
|
31
|
+
scrollIndicatorPosition?: "top" | "center" | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Scrolls the scroll area to the left either smooth or immediately
|
|
34
|
+
*/
|
|
35
|
+
scrollToPosition?: ScrollToPosition | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Adapts the color when used on dark background.
|
|
38
|
+
*/
|
|
39
|
+
theme?: "light" | "dark" | "light-electric" | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
gradientColorScheme: string;
|
|
42
|
+
scrollIndicatorPosition: string;
|
|
43
|
+
theme: string;
|
|
44
|
+
}>>>, {
|
|
45
|
+
theme: ThemeExtendedElectric;
|
|
46
|
+
gradientColorScheme: GradientColorTheme;
|
|
47
|
+
scrollIndicatorPosition: ScrollIndicatorPosition;
|
|
48
|
+
}>, {
|
|
49
|
+
default: (_: {}) => any;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithDefaults<P, D> = {
|
|
62
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
63
|
+
default: D[K];
|
|
64
|
+
} : P[K];
|
|
65
|
+
};
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as s, onUpdated as c, openBlock as f, createBlock as d, resolveDynamicComponent as i, unref as m, withCtx as u, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as t } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ a({
|
|
4
|
+
__name: "ScrollerWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
gradientColorScheme: { default: "default" },
|
|
7
|
+
scrollIndicatorPosition: { default: "center" },
|
|
8
|
+
scrollToPosition: null,
|
|
9
|
+
theme: { default: "light" }
|
|
10
|
+
},
|
|
11
|
+
setup(r) {
|
|
12
|
+
const o = r, n = _("p-scroller"), e = p();
|
|
13
|
+
return s(() => {
|
|
14
|
+
t(e.value, o);
|
|
15
|
+
}), c(() => {
|
|
16
|
+
t(e.value, o);
|
|
17
|
+
}), (l, g) => (f(), d(i(m(n)), {
|
|
18
|
+
ref_key: "pdsComponentRef",
|
|
19
|
+
ref: e
|
|
20
|
+
}, {
|
|
21
|
+
default: u(() => [
|
|
22
|
+
C(l.$slots, "default")
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 512));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
k as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { IconName } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The icon shown.
|
|
9
|
+
*/
|
|
10
|
+
icon?: IconName | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* A URL path to a custom icon.
|
|
13
|
+
*/
|
|
14
|
+
iconSource?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The label text.
|
|
17
|
+
*/
|
|
18
|
+
label?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The value of this item which is emitted by the parent element if it becomes selected. This property is **required**.
|
|
21
|
+
*/
|
|
22
|
+
value: string | number;
|
|
23
|
+
}>, {
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
26
|
+
/**
|
|
27
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The icon shown.
|
|
32
|
+
*/
|
|
33
|
+
icon?: IconName | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* A URL path to a custom icon.
|
|
36
|
+
*/
|
|
37
|
+
iconSource?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The label text.
|
|
40
|
+
*/
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The value of this item which is emitted by the parent element if it becomes selected. This property is **required**.
|
|
44
|
+
*/
|
|
45
|
+
value: string | number;
|
|
46
|
+
}>, {
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
}>>>, {
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
}>, {
|
|
51
|
+
default: (_: {}) => any;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
56
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
57
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
58
|
+
} : {
|
|
59
|
+
type: import('vue').PropType<T[K]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type __VLS_WithDefaults<P, D> = {
|
|
64
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
65
|
+
default: D[K];
|
|
66
|
+
} : P[K];
|
|
67
|
+
};
|
|
68
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as s, onUpdated as m, openBlock as u, createBlock as c, resolveDynamicComponent as d, unref as f, withCtx as i, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as n } from "../../utils.js";
|
|
3
|
+
const b = /* @__PURE__ */ a({
|
|
4
|
+
__name: "SegmentedControlItemWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: { type: Boolean, default: !1 },
|
|
7
|
+
icon: null,
|
|
8
|
+
iconSource: null,
|
|
9
|
+
label: null,
|
|
10
|
+
value: null
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const o = t, l = _("p-segmented-control-item"), e = p();
|
|
14
|
+
return s(() => {
|
|
15
|
+
n(e.value, o);
|
|
16
|
+
}), m(() => {
|
|
17
|
+
n(e.value, o);
|
|
18
|
+
}), (r, g) => (u(), c(d(f(l)), {
|
|
19
|
+
ref_key: "pdsComponentRef",
|
|
20
|
+
ref: e
|
|
21
|
+
}, {
|
|
22
|
+
default: i(() => [
|
|
23
|
+
C(r.$slots, "default")
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 512));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
b as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { SegmentedControlBackgroundColor, SegmentedControlChangeEvent, Theme } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Background color variations
|
|
5
|
+
*/
|
|
6
|
+
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Adapts the segmented-control color depending on the theme.
|
|
9
|
+
*/
|
|
10
|
+
theme?: "light" | "dark" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the initial value of the segmented-control.
|
|
13
|
+
*/
|
|
14
|
+
value?: string | number | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
theme: string;
|
|
18
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
segmentedControlChange: (value: SegmentedControlChangeEvent) => void;
|
|
20
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
21
|
+
/**
|
|
22
|
+
* Background color variations
|
|
23
|
+
*/
|
|
24
|
+
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Adapts the segmented-control color depending on the theme.
|
|
27
|
+
*/
|
|
28
|
+
theme?: "light" | "dark" | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the initial value of the segmented-control.
|
|
31
|
+
*/
|
|
32
|
+
value?: string | number | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
theme: string;
|
|
36
|
+
}>>> & {
|
|
37
|
+
onSegmentedControlChange?: ((value: SegmentedControlChangeEvent) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
theme: Theme;
|
|
40
|
+
backgroundColor: SegmentedControlBackgroundColor;
|
|
41
|
+
}>, {
|
|
42
|
+
default: (_: {}) => any;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
47
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
48
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
49
|
+
} : {
|
|
50
|
+
type: import('vue').PropType<T[K]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type __VLS_WithDefaults<P, D> = {
|
|
55
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
56
|
+
default: D[K];
|
|
57
|
+
} : P[K];
|
|
58
|
+
};
|
|
59
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|