@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,135 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, IconName, ThemeExtendedElectric, ButtonType, ButtonVariant } 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" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
13
|
+
*/
|
|
14
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The icon shown.
|
|
17
|
+
*/
|
|
18
|
+
icon?: IconName | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A URL path to a custom icon.
|
|
21
|
+
*/
|
|
22
|
+
iconSource?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* To remove the element from tab order.
|
|
29
|
+
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
30
|
+
*/
|
|
31
|
+
tabbable?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Adapts the button color depending on the theme.
|
|
34
|
+
*/
|
|
35
|
+
theme?: "light" | "dark" | "light-electric" | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Specifies the type of the button.
|
|
38
|
+
*/
|
|
39
|
+
type?: "reset" | "button" | "submit" | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The style variant of the button.
|
|
42
|
+
*/
|
|
43
|
+
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
hideLabel: boolean;
|
|
47
|
+
icon: string;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
tabbable: boolean;
|
|
50
|
+
theme: string;
|
|
51
|
+
type: string;
|
|
52
|
+
variant: string;
|
|
53
|
+
}>, {}, 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<{
|
|
54
|
+
/**
|
|
55
|
+
* Add ARIA attributes.
|
|
56
|
+
*/
|
|
57
|
+
aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
60
|
+
*/
|
|
61
|
+
disabled?: boolean | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
64
|
+
*/
|
|
65
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The icon shown.
|
|
68
|
+
*/
|
|
69
|
+
icon?: IconName | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A URL path to a custom icon.
|
|
72
|
+
*/
|
|
73
|
+
iconSource?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
76
|
+
*/
|
|
77
|
+
loading?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* To remove the element from tab order.
|
|
80
|
+
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
81
|
+
*/
|
|
82
|
+
tabbable?: boolean | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Adapts the button color depending on the theme.
|
|
85
|
+
*/
|
|
86
|
+
theme?: "light" | "dark" | "light-electric" | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies the type of the button.
|
|
89
|
+
*/
|
|
90
|
+
type?: "reset" | "button" | "submit" | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* The style variant of the button.
|
|
93
|
+
*/
|
|
94
|
+
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
95
|
+
}>, {
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
hideLabel: boolean;
|
|
98
|
+
icon: string;
|
|
99
|
+
loading: boolean;
|
|
100
|
+
tabbable: boolean;
|
|
101
|
+
theme: string;
|
|
102
|
+
type: string;
|
|
103
|
+
variant: string;
|
|
104
|
+
}>>>, {
|
|
105
|
+
theme: ThemeExtendedElectric;
|
|
106
|
+
type: ButtonType;
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
109
|
+
icon: IconName;
|
|
110
|
+
loading: boolean;
|
|
111
|
+
tabbable: boolean;
|
|
112
|
+
variant: ButtonVariant;
|
|
113
|
+
}>, {
|
|
114
|
+
default: (_: {}) => any;
|
|
115
|
+
}>;
|
|
116
|
+
export default _default;
|
|
117
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
118
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
119
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
120
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
121
|
+
} : {
|
|
122
|
+
type: import('vue').PropType<T[K]>;
|
|
123
|
+
required: true;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
type __VLS_WithDefaults<P, D> = {
|
|
127
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
128
|
+
default: D[K];
|
|
129
|
+
} : P[K];
|
|
130
|
+
};
|
|
131
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as r, ref as d, onMounted as f, onUpdated as p, openBlock as u, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as b } from "vue";
|
|
2
|
+
import { getPrefixedTagName as y, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const B = /* @__PURE__ */ r({
|
|
4
|
+
__name: "ButtonWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
aria: null,
|
|
7
|
+
disabled: { type: Boolean, default: !1 },
|
|
8
|
+
hideLabel: { default: !1 },
|
|
9
|
+
icon: { default: "arrow-head-right" },
|
|
10
|
+
iconSource: null,
|
|
11
|
+
loading: { type: Boolean, default: !1 },
|
|
12
|
+
tabbable: { type: Boolean, default: !0 },
|
|
13
|
+
theme: { default: "light" },
|
|
14
|
+
type: { default: "submit" },
|
|
15
|
+
variant: { default: "secondary" }
|
|
16
|
+
},
|
|
17
|
+
setup(a) {
|
|
18
|
+
const t = a, n = y("p-button"), e = d();
|
|
19
|
+
return f(() => {
|
|
20
|
+
o(e.value, t);
|
|
21
|
+
}), p(() => {
|
|
22
|
+
o(e.value, t);
|
|
23
|
+
}), (l, h) => (u(), s(i(c(n)), {
|
|
24
|
+
ref_key: "pdsComponentRef",
|
|
25
|
+
ref: e
|
|
26
|
+
}, {
|
|
27
|
+
default: m(() => [
|
|
28
|
+
b(l.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 512));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
B as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, CarouselChangeEvent, Theme } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Defines the description used in the carousel.
|
|
5
|
+
*/
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* If true, the carousel will not show pagination bullets at the bottom.
|
|
9
|
+
*/
|
|
10
|
+
disablePagination?: BreakpointCustomizable<boolean> | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the heading used in the carousel.
|
|
13
|
+
*/
|
|
14
|
+
heading?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
17
|
+
*/
|
|
18
|
+
intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the slides should rewind from last to first slide and vice versa.
|
|
21
|
+
*/
|
|
22
|
+
rewind?: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the amount of slides visible at the same time.
|
|
25
|
+
*/
|
|
26
|
+
slidesPerPage?: BreakpointCustomizable<number> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Adapts the color when used on dark background.
|
|
29
|
+
*/
|
|
30
|
+
theme?: "light" | "dark" | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the content should receive a padding to the sides to be aligned on the grid when used full width and not within content-wrapper.
|
|
33
|
+
*/
|
|
34
|
+
wrapContent?: boolean | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
disablePagination: boolean;
|
|
37
|
+
intl: () => {};
|
|
38
|
+
rewind: boolean;
|
|
39
|
+
slidesPerPage: number;
|
|
40
|
+
theme: string;
|
|
41
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
carouselChange: (value: CarouselChangeEvent) => void;
|
|
43
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
44
|
+
/**
|
|
45
|
+
* Defines the description used in the carousel.
|
|
46
|
+
*/
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* If true, the carousel will not show pagination bullets at the bottom.
|
|
50
|
+
*/
|
|
51
|
+
disablePagination?: BreakpointCustomizable<boolean> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the heading used in the carousel.
|
|
54
|
+
*/
|
|
55
|
+
heading?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
58
|
+
*/
|
|
59
|
+
intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the slides should rewind from last to first slide and vice versa.
|
|
62
|
+
*/
|
|
63
|
+
rewind?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the amount of slides visible at the same time.
|
|
66
|
+
*/
|
|
67
|
+
slidesPerPage?: BreakpointCustomizable<number> | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Adapts the color when used on dark background.
|
|
70
|
+
*/
|
|
71
|
+
theme?: "light" | "dark" | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the content should receive a padding to the sides to be aligned on the grid when used full width and not within content-wrapper.
|
|
74
|
+
*/
|
|
75
|
+
wrapContent?: boolean | undefined;
|
|
76
|
+
}>, {
|
|
77
|
+
disablePagination: boolean;
|
|
78
|
+
intl: () => {};
|
|
79
|
+
rewind: boolean;
|
|
80
|
+
slidesPerPage: number;
|
|
81
|
+
theme: string;
|
|
82
|
+
}>>> & {
|
|
83
|
+
onCarouselChange?: ((value: CarouselChangeEvent) => any) | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
theme: Theme;
|
|
86
|
+
disablePagination: BreakpointCustomizable<boolean>;
|
|
87
|
+
intl: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
|
|
88
|
+
rewind: boolean;
|
|
89
|
+
slidesPerPage: BreakpointCustomizable<number>;
|
|
90
|
+
}>, {
|
|
91
|
+
default: (_: {}) => any;
|
|
92
|
+
}>;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type __VLS_WithDefaults<P, D> = {
|
|
104
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
105
|
+
default: D[K];
|
|
106
|
+
} : P[K];
|
|
107
|
+
};
|
|
108
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
109
|
+
new (): {
|
|
110
|
+
$slots: S;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as s, ref as p, onMounted as d, onUpdated as u, openBlock as f, createBlock as i, resolveDynamicComponent as c, unref as m, withCtx as C, renderSlot as g } from "vue";
|
|
2
|
+
import { getPrefixedTagName as h, syncProperties as n, addEventListenerToElementRef as _ } from "../../utils.js";
|
|
3
|
+
const w = /* @__PURE__ */ s({
|
|
4
|
+
__name: "CarouselWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
description: null,
|
|
7
|
+
disablePagination: { default: !1 },
|
|
8
|
+
heading: null,
|
|
9
|
+
intl: { default: () => ({}) },
|
|
10
|
+
rewind: { type: Boolean, default: !0 },
|
|
11
|
+
slidesPerPage: { default: 1 },
|
|
12
|
+
theme: { default: "light" },
|
|
13
|
+
wrapContent: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["carouselChange"],
|
|
16
|
+
setup(o, { emit: a }) {
|
|
17
|
+
const t = o, r = h("p-carousel"), e = p();
|
|
18
|
+
return d(() => {
|
|
19
|
+
n(e.value, t), _(e.value, "carouselChange", a);
|
|
20
|
+
}), u(() => {
|
|
21
|
+
n(e.value, t);
|
|
22
|
+
}), (l, v) => (f(), i(c(m(r)), {
|
|
23
|
+
ref_key: "pdsComponentRef",
|
|
24
|
+
ref: e
|
|
25
|
+
}, {
|
|
26
|
+
default: C(() => [
|
|
27
|
+
g(l.$slots, "default")
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 512));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
w as default
|
|
35
|
+
};
|
|
@@ -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 l, openBlock as d, createBlock as c, resolveDynamicComponent as m, unref as u, withCtx as i, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as t } from "../../utils.js";
|
|
3
|
+
const x = /* @__PURE__ */ p({
|
|
4
|
+
__name: "CheckboxWrapperWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
hideLabel: { default: !1 },
|
|
7
|
+
label: { default: "" },
|
|
8
|
+
message: { default: "" },
|
|
9
|
+
state: { default: "none" }
|
|
10
|
+
},
|
|
11
|
+
setup(n) {
|
|
12
|
+
const o = n, r = _("p-checkbox-wrapper"), e = s();
|
|
13
|
+
return f(() => {
|
|
14
|
+
t(e.value, o);
|
|
15
|
+
}), l(() => {
|
|
16
|
+
t(e.value, o);
|
|
17
|
+
}), (a, b) => (d(), c(m(u(r)), {
|
|
18
|
+
ref_key: "pdsComponentRef",
|
|
19
|
+
ref: e
|
|
20
|
+
}, {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
C(a.$slots, "default")
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 512));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
x as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ContentWrapperBackgroundColor, Theme, ContentWrapperWidth } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Defines the background color.
|
|
5
|
+
*/
|
|
6
|
+
backgroundColor?: "default" | "transparent" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Adapts the color when used on dark background.
|
|
9
|
+
*/
|
|
10
|
+
theme?: "light" | "dark" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
|
|
13
|
+
*/
|
|
14
|
+
width?: "basic" | "extended" | "fluid" | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
theme: string;
|
|
18
|
+
width: string;
|
|
19
|
+
}>, {}, 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<{
|
|
20
|
+
/**
|
|
21
|
+
* Defines the background color.
|
|
22
|
+
*/
|
|
23
|
+
backgroundColor?: "default" | "transparent" | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Adapts the color when used on dark background.
|
|
26
|
+
*/
|
|
27
|
+
theme?: "light" | "dark" | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
|
|
30
|
+
*/
|
|
31
|
+
width?: "basic" | "extended" | "fluid" | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
theme: string;
|
|
35
|
+
width: string;
|
|
36
|
+
}>>>, {
|
|
37
|
+
theme: Theme;
|
|
38
|
+
width: ContentWrapperWidth;
|
|
39
|
+
backgroundColor: ContentWrapperBackgroundColor;
|
|
40
|
+
}>, {
|
|
41
|
+
default: (_: {}) => any;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
} : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as a, ref as s, onMounted as f, onUpdated as d, openBlock as c, createBlock as l, resolveDynamicComponent as m, unref as u, withCtx as i, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const w = /* @__PURE__ */ a({
|
|
4
|
+
__name: "ContentWrapperWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
backgroundColor: { default: "transparent" },
|
|
7
|
+
theme: { default: "light" },
|
|
8
|
+
width: { default: "basic" }
|
|
9
|
+
},
|
|
10
|
+
setup(n) {
|
|
11
|
+
const t = n, r = _("p-content-wrapper"), e = s();
|
|
12
|
+
return f(() => {
|
|
13
|
+
o(e.value, t);
|
|
14
|
+
}), d(() => {
|
|
15
|
+
o(e.value, t);
|
|
16
|
+
}), (p, g) => (c(), l(m(u(r)), {
|
|
17
|
+
ref_key: "pdsComponentRef",
|
|
18
|
+
ref: e
|
|
19
|
+
}, {
|
|
20
|
+
default: i(() => [
|
|
21
|
+
C(p.$slots, "default")
|
|
22
|
+
]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 512));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
w as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { DividerColor, DividerOrientation, Theme } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Defines color depending on theme.
|
|
5
|
+
*/
|
|
6
|
+
color?: "neutral-contrast-high" | "neutral-contrast-medium" | "neutral-contrast-low" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Defines orientation.
|
|
9
|
+
*/
|
|
10
|
+
orientation?: DividerOrientation | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Adapts color depending on theme.
|
|
13
|
+
*/
|
|
14
|
+
theme?: "light" | "dark" | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
color: string;
|
|
17
|
+
orientation: string;
|
|
18
|
+
theme: string;
|
|
19
|
+
}>, {}, 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<{
|
|
20
|
+
/**
|
|
21
|
+
* Defines color depending on theme.
|
|
22
|
+
*/
|
|
23
|
+
color?: "neutral-contrast-high" | "neutral-contrast-medium" | "neutral-contrast-low" | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Defines orientation.
|
|
26
|
+
*/
|
|
27
|
+
orientation?: DividerOrientation | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Adapts color depending on theme.
|
|
30
|
+
*/
|
|
31
|
+
theme?: "light" | "dark" | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
color: string;
|
|
34
|
+
orientation: string;
|
|
35
|
+
theme: string;
|
|
36
|
+
}>>>, {
|
|
37
|
+
theme: Theme;
|
|
38
|
+
color: DividerColor;
|
|
39
|
+
orientation: DividerOrientation;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
44
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
+
} : {
|
|
47
|
+
type: import('vue').PropType<T[K]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
53
|
+
default: D[K];
|
|
54
|
+
} : P[K];
|
|
55
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as l, onUpdated as c, openBlock as f, createBlock as i, resolveDynamicComponent as s, unref as d } from "vue";
|
|
2
|
+
import { getPrefixedTagName as m, syncProperties as t } from "../../utils.js";
|
|
3
|
+
const g = /* @__PURE__ */ a({
|
|
4
|
+
__name: "DividerWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
color: { default: "neutral-contrast-low" },
|
|
7
|
+
orientation: { default: "horizontal" },
|
|
8
|
+
theme: { default: "light" }
|
|
9
|
+
},
|
|
10
|
+
setup(n) {
|
|
11
|
+
const o = n, r = m("p-divider"), e = p();
|
|
12
|
+
return l(() => {
|
|
13
|
+
t(e.value, o);
|
|
14
|
+
}), c(() => {
|
|
15
|
+
t(e.value, o);
|
|
16
|
+
}), (u, _) => (f(), i(s(d(r)), {
|
|
17
|
+
ref_key: "pdsComponentRef",
|
|
18
|
+
ref: e
|
|
19
|
+
}, null, 512));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
g as default
|
|
24
|
+
};
|