@porsche-design-system/components-vue 3.8.0 → 3.9.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 +44 -2
- package/cjs/PorscheDesignSystemProvider.vue.cjs +1 -1
- package/cjs/lib/components/AccordionWrapper.vue.cjs +1 -1
- package/cjs/lib/components/BannerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonGroupWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonPureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonTileWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonWrapper.vue.cjs +1 -1
- package/cjs/lib/components/CarouselWrapper.vue.cjs +1 -1
- package/cjs/lib/components/CheckboxWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ContentWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/CrestWrapper.vue.cjs +1 -1
- package/cjs/lib/components/DisplayWrapper.vue.cjs +1 -1
- package/cjs/lib/components/DividerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FieldsetWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FieldsetWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlexItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlexWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlyoutWrapper.vue.cjs +1 -1
- package/cjs/lib/components/GridItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/GridWrapper.vue.cjs +1 -1
- package/cjs/lib/components/HeadingWrapper.vue.cjs +1 -1
- package/cjs/lib/components/HeadlineWrapper.vue.cjs +1 -1
- package/cjs/lib/components/IconWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InlineNotificationWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkPureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkSocialWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkTileModelSignatureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkTileWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MarqueWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ModalWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ModelSignatureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MultiSelectOptionWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MultiSelectWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PaginationWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PinCodeWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PopoverWrapper.vue.cjs +1 -1
- package/cjs/lib/components/RadioButtonWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ScrollerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SegmentedControlItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SegmentedControlWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SelectWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SpinnerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/StepperHorizontalItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/StepperHorizontalWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SwitchWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableBodyWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableCellWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableHeadCellWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableHeadRowWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableHeadWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableRowWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TabsBarWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TabsItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TabsWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TagDismissibleWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TagWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextFieldWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextListItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextListWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextareaWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ToastWrapper.vue.cjs +1 -1
- package/cjs/lib/components/WordmarkWrapper.vue.cjs +1 -1
- package/cjs/utils.cjs +1 -1
- package/esm/PorscheDesignSystemProvider.vue.d.ts +31 -17
- package/esm/PorscheDesignSystemProvider.vue.mjs +11 -8
- package/esm/lib/components/AccordionWrapper.vue.d.ts +52 -48
- package/esm/lib/components/AccordionWrapper.vue.mjs +14 -14
- package/esm/lib/components/BannerWrapper.vue.d.ts +67 -67
- package/esm/lib/components/BannerWrapper.vue.mjs +14 -14
- package/esm/lib/components/ButtonGroupWrapper.vue.d.ts +33 -16
- package/esm/lib/components/ButtonGroupWrapper.vue.mjs +7 -11
- package/esm/lib/components/ButtonPureWrapper.vue.d.ts +104 -105
- package/esm/lib/components/ButtonPureWrapper.vue.mjs +15 -15
- package/esm/lib/components/ButtonTileWrapper.vue.d.ts +105 -120
- package/esm/lib/components/ButtonTileWrapper.vue.mjs +7 -11
- package/esm/lib/components/ButtonWrapper.vue.d.ts +79 -73
- package/esm/lib/components/ButtonWrapper.vue.mjs +15 -15
- package/esm/lib/components/CarouselWrapper.vue.d.ts +89 -98
- package/esm/lib/components/CarouselWrapper.vue.mjs +14 -14
- package/esm/lib/components/CheckboxWrapperWrapper.vue.d.ts +57 -53
- package/esm/lib/components/CheckboxWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/ContentWrapperWrapper.vue.d.ts +41 -28
- package/esm/lib/components/ContentWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/CrestWrapper.vue.d.ts +37 -24
- package/esm/lib/components/CrestWrapper.vue.mjs +7 -11
- package/esm/lib/components/DisplayWrapper.vue.d.ts +55 -51
- package/esm/lib/components/DisplayWrapper.vue.mjs +12 -14
- package/esm/lib/components/DividerWrapper.vue.d.ts +43 -35
- package/esm/lib/components/DividerWrapper.vue.mjs +11 -13
- package/esm/lib/components/FieldsetWrapper.vue.d.ts +57 -52
- package/esm/lib/components/FieldsetWrapper.vue.mjs +13 -15
- package/esm/lib/components/FieldsetWrapperWrapper.vue.d.ts +57 -52
- package/esm/lib/components/FieldsetWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/FlexItemWrapper.vue.d.ts +59 -52
- package/esm/lib/components/FlexItemWrapper.vue.mjs +9 -13
- package/esm/lib/components/FlexWrapper.vue.d.ts +59 -52
- package/esm/lib/components/FlexWrapper.vue.mjs +8 -12
- package/esm/lib/components/FlyoutWrapper.vue.d.ts +44 -38
- package/esm/lib/components/FlyoutWrapper.vue.mjs +13 -13
- package/esm/lib/components/GridItemWrapper.vue.d.ts +35 -20
- package/esm/lib/components/GridItemWrapper.vue.mjs +8 -12
- package/esm/lib/components/GridWrapper.vue.d.ts +48 -34
- package/esm/lib/components/GridWrapper.vue.mjs +8 -12
- package/esm/lib/components/HeadingWrapper.vue.d.ts +55 -51
- package/esm/lib/components/HeadingWrapper.vue.mjs +13 -15
- package/esm/lib/components/HeadlineWrapper.vue.d.ts +55 -51
- package/esm/lib/components/HeadlineWrapper.vue.mjs +13 -15
- package/esm/lib/components/IconWrapper.vue.d.ts +59 -56
- package/esm/lib/components/IconWrapper.vue.mjs +11 -13
- package/esm/lib/components/InlineNotificationWrapper.vue.d.ts +72 -73
- package/esm/lib/components/InlineNotificationWrapper.vue.mjs +14 -14
- package/esm/lib/components/LinkPureWrapper.vue.d.ts +102 -115
- package/esm/lib/components/LinkPureWrapper.vue.mjs +13 -15
- package/esm/lib/components/LinkSocialWrapper.vue.d.ts +55 -53
- package/esm/lib/components/LinkSocialWrapper.vue.mjs +13 -15
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +65 -62
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.mjs +9 -13
- package/esm/lib/components/LinkTileWrapper.vue.d.ts +95 -110
- package/esm/lib/components/LinkTileWrapper.vue.mjs +6 -10
- package/esm/lib/components/LinkWrapper.vue.d.ts +71 -75
- package/esm/lib/components/LinkWrapper.vue.mjs +13 -15
- package/esm/lib/components/MarqueWrapper.vue.d.ts +55 -48
- package/esm/lib/components/MarqueWrapper.vue.mjs +6 -10
- package/esm/lib/components/ModalWrapper.vue.d.ts +65 -66
- package/esm/lib/components/ModalWrapper.vue.mjs +14 -14
- package/esm/lib/components/ModelSignatureWrapper.vue.d.ts +45 -36
- package/esm/lib/components/ModelSignatureWrapper.vue.mjs +11 -13
- package/esm/lib/components/MultiSelectOptionWrapper.vue.d.ts +32 -19
- package/esm/lib/components/MultiSelectOptionWrapper.vue.mjs +8 -12
- package/esm/lib/components/MultiSelectWrapper.vue.d.ts +87 -95
- package/esm/lib/components/MultiSelectWrapper.vue.mjs +14 -14
- package/esm/lib/components/PaginationWrapper.vue.d.ts +92 -102
- package/esm/lib/components/PaginationWrapper.vue.mjs +12 -12
- package/esm/lib/components/PinCodeWrapper.vue.d.ts +100 -110
- package/esm/lib/components/PinCodeWrapper.vue.mjs +14 -14
- package/esm/lib/components/PopoverWrapper.vue.d.ts +41 -33
- package/esm/lib/components/PopoverWrapper.vue.mjs +13 -15
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.d.ts +57 -53
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/ScrollerWrapper.vue.d.ts +61 -61
- package/esm/lib/components/ScrollerWrapper.vue.mjs +13 -15
- package/esm/lib/components/SegmentedControlItemWrapper.vue.d.ts +45 -37
- package/esm/lib/components/SegmentedControlItemWrapper.vue.mjs +8 -12
- package/esm/lib/components/SegmentedControlWrapper.vue.d.ts +42 -34
- package/esm/lib/components/SegmentedControlWrapper.vue.mjs +14 -14
- package/esm/lib/components/SelectWrapperWrapper.vue.d.ts +75 -77
- package/esm/lib/components/SelectWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/SpinnerWrapper.vue.d.ts +37 -27
- package/esm/lib/components/SpinnerWrapper.vue.mjs +11 -13
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.d.ts +33 -17
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.mjs +7 -11
- package/esm/lib/components/StepperHorizontalWrapper.vue.d.ts +31 -22
- package/esm/lib/components/StepperHorizontalWrapper.vue.mjs +14 -14
- package/esm/lib/components/SwitchWrapper.vue.d.ts +64 -62
- package/esm/lib/components/SwitchWrapper.vue.mjs +14 -14
- package/esm/lib/components/TableBodyWrapper.vue.mjs +6 -6
- package/esm/lib/components/TableCellWrapper.vue.d.ts +28 -11
- package/esm/lib/components/TableCellWrapper.vue.mjs +6 -10
- package/esm/lib/components/TableHeadCellWrapper.vue.d.ts +38 -25
- package/esm/lib/components/TableHeadCellWrapper.vue.mjs +8 -12
- package/esm/lib/components/TableHeadRowWrapper.vue.mjs +6 -6
- package/esm/lib/components/TableHeadWrapper.vue.mjs +8 -8
- package/esm/lib/components/TableRowWrapper.vue.mjs +4 -4
- package/esm/lib/components/TableWrapper.vue.d.ts +23 -21
- package/esm/lib/components/TableWrapper.vue.mjs +14 -14
- package/esm/lib/components/TabsBarWrapper.vue.d.ts +54 -50
- package/esm/lib/components/TabsBarWrapper.vue.mjs +13 -13
- package/esm/lib/components/TabsItemWrapper.vue.d.ts +16 -11
- package/esm/lib/components/TabsItemWrapper.vue.mjs +8 -12
- package/esm/lib/components/TabsWrapper.vue.d.ts +56 -52
- package/esm/lib/components/TabsWrapper.vue.mjs +13 -13
- package/esm/lib/components/TagDismissibleWrapper.vue.d.ts +41 -33
- package/esm/lib/components/TagDismissibleWrapper.vue.mjs +13 -15
- package/esm/lib/components/TagWrapper.vue.d.ts +41 -32
- package/esm/lib/components/TagWrapper.vue.mjs +13 -15
- package/esm/lib/components/TextFieldWrapperWrapper.vue.d.ts +96 -106
- package/esm/lib/components/TextFieldWrapperWrapper.vue.mjs +14 -14
- package/esm/lib/components/TextListItemWrapper.vue.mjs +6 -6
- package/esm/lib/components/TextListWrapper.vue.d.ts +41 -32
- package/esm/lib/components/TextListWrapper.vue.mjs +13 -15
- package/esm/lib/components/TextWrapper.vue.d.ts +63 -61
- package/esm/lib/components/TextWrapper.vue.mjs +13 -15
- package/esm/lib/components/TextareaWrapperWrapper.vue.d.ts +67 -67
- package/esm/lib/components/TextareaWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/ToastWrapper.vue.d.ts +17 -13
- package/esm/lib/components/ToastWrapper.vue.mjs +11 -13
- package/esm/lib/components/WordmarkWrapper.vue.d.ts +47 -41
- package/esm/lib/components/WordmarkWrapper.vue.mjs +11 -13
- package/esm/lib/types.d.ts +15 -0
- package/esm/utils.d.ts +5 -4
- package/esm/utils.mjs +12 -10
- package/package.json +2 -2
|
@@ -1,112 +1,94 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, SelectedAriaAttributes } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
alignLabel:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
hideLabel: {
|
|
90
|
-
type: import("vue").PropType<BreakpointCustomizable<boolean>>;
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
icon: {
|
|
94
|
-
type: import("vue").PropType<import("../types").LinkButtonIconName>;
|
|
95
|
-
default: string;
|
|
96
|
-
};
|
|
97
|
-
iconSource: {
|
|
98
|
-
type: import("vue").PropType<string>;
|
|
99
|
-
};
|
|
100
|
-
loading: {
|
|
101
|
-
type: import("vue").PropType<boolean>;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
}>>, {
|
|
1
|
+
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
|
|
2
|
+
type PButtonPureProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Display button in active state.
|
|
5
|
+
*/
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Aligns the label.
|
|
9
|
+
*/
|
|
10
|
+
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
11
|
+
/**
|
|
12
|
+
* Add ARIA attributes.
|
|
13
|
+
*/
|
|
14
|
+
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
15
|
+
/**
|
|
16
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
21
|
+
*/
|
|
22
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* The icon shown.
|
|
25
|
+
*/
|
|
26
|
+
icon?: ButtonPureIcon;
|
|
27
|
+
/**
|
|
28
|
+
* A URL path to a custom icon.
|
|
29
|
+
*/
|
|
30
|
+
iconSource?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
33
|
+
*/
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form.
|
|
37
|
+
*/
|
|
38
|
+
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Size of the button.
|
|
41
|
+
*/
|
|
42
|
+
size?: BreakpointCustomizable<ButtonPureSize>;
|
|
43
|
+
/**
|
|
44
|
+
* Stretches the area between icon and label to max available space.
|
|
45
|
+
*/
|
|
46
|
+
stretch?: BreakpointCustomizable<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Adapts the button color depending on the theme.
|
|
49
|
+
*/
|
|
50
|
+
theme?: Theme;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the type of the button.
|
|
53
|
+
*/
|
|
54
|
+
type?: ButtonPureType;
|
|
55
|
+
/**
|
|
56
|
+
* Defines the value associated with the button's name when it's submitted with the form data. This value is passed to the server in params when the form is submitted using this button.
|
|
57
|
+
*/
|
|
58
|
+
value?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The weight of the text (only has effect with visible label).
|
|
61
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
62
|
+
*/
|
|
63
|
+
weight?: ButtonPureWeight;
|
|
64
|
+
};
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonPureProps>, {
|
|
66
|
+
active: boolean;
|
|
67
|
+
alignLabel: string;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
hideLabel: boolean;
|
|
70
|
+
icon: string;
|
|
71
|
+
loading: boolean;
|
|
72
|
+
size: string;
|
|
73
|
+
stretch: boolean;
|
|
74
|
+
type: string;
|
|
75
|
+
weight: string;
|
|
76
|
+
}>, {}, 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<PButtonPureProps>, {
|
|
77
|
+
active: boolean;
|
|
78
|
+
alignLabel: string;
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
hideLabel: boolean;
|
|
81
|
+
icon: string;
|
|
82
|
+
loading: boolean;
|
|
83
|
+
size: string;
|
|
84
|
+
stretch: boolean;
|
|
85
|
+
type: string;
|
|
86
|
+
weight: string;
|
|
87
|
+
}>>>, {
|
|
105
88
|
weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
|
|
106
89
|
stretch: BreakpointCustomizable<boolean>;
|
|
107
90
|
type: "button" | "reset" | "submit";
|
|
108
91
|
size: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large">;
|
|
109
|
-
theme: "light" | "dark" | "auto";
|
|
110
92
|
active: boolean;
|
|
111
93
|
alignLabel: BreakpointCustomizable<"start" | "end" | "left" | "right">;
|
|
112
94
|
disabled: boolean;
|
|
@@ -117,6 +99,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
117
99
|
default?(_: {}): any;
|
|
118
100
|
}>;
|
|
119
101
|
export default _default;
|
|
102
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
103
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
104
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
105
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
106
|
+
} : {
|
|
107
|
+
type: import('vue').PropType<T[K]>;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
type __VLS_WithDefaults<P, D> = {
|
|
112
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
113
|
+
default: D[K];
|
|
114
|
+
}> : P[K];
|
|
115
|
+
};
|
|
116
|
+
type __VLS_Prettify<T> = {
|
|
117
|
+
[K in keyof T]: T[K];
|
|
118
|
+
} & {};
|
|
120
119
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
121
120
|
new (): {
|
|
122
121
|
$slots: S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as u, inject as p, onMounted as d, onUpdated as c, watch as i, openBlock as m, createBlock as h, resolveDynamicComponent as y, unref as _, withCtx as b, renderSlot as g } from "vue";
|
|
2
|
+
import { usePrefix as B, themeInjectionKey as C, syncProperties as l } from "../../utils.mjs";
|
|
3
|
+
const k = /* @__PURE__ */ f({
|
|
4
4
|
__name: "ButtonPureWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
active: { type: Boolean, default: !1 },
|
|
@@ -11,29 +11,29 @@ const B = /* @__PURE__ */ r({
|
|
|
11
11
|
icon: { default: "arrow-right" },
|
|
12
12
|
iconSource: {},
|
|
13
13
|
loading: { type: Boolean, default: !1 },
|
|
14
|
+
name: {},
|
|
14
15
|
size: { default: "small" },
|
|
15
16
|
stretch: { default: !1 },
|
|
16
|
-
theme: {
|
|
17
|
+
theme: {},
|
|
17
18
|
type: { default: "submit" },
|
|
19
|
+
value: {},
|
|
18
20
|
weight: { default: "regular" }
|
|
19
21
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
a(e.value, t);
|
|
26
|
-
}), (n, y) => (p(), s(i(c(l)), {
|
|
22
|
+
setup(r) {
|
|
23
|
+
const s = B("p-button-pure"), e = r, t = u(), a = p(C), n = () => l(t, { ...e, theme: e.theme || a.value });
|
|
24
|
+
return d(n), c(n), i(a, (o) => {
|
|
25
|
+
l(t, { theme: e.theme || o });
|
|
26
|
+
}), (o, w) => (m(), h(y(_(s)), {
|
|
27
27
|
ref_key: "pdsComponentRef",
|
|
28
|
-
ref:
|
|
28
|
+
ref: t
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
g(
|
|
30
|
+
default: b(() => [
|
|
31
|
+
g(o.$slots, "default")
|
|
32
32
|
]),
|
|
33
33
|
_: 3
|
|
34
34
|
}, 512));
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
k as default
|
|
39
39
|
};
|
|
@@ -1,123 +1,91 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, BreakpointCustomizable } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
disabled
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
weight
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
disabled: {
|
|
90
|
-
type: import("vue").PropType<boolean>;
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
icon: {
|
|
94
|
-
type: import("vue").PropType<import("../types").LinkButtonIconName>;
|
|
95
|
-
default: string;
|
|
96
|
-
};
|
|
97
|
-
iconSource: {
|
|
98
|
-
type: import("vue").PropType<string>;
|
|
99
|
-
};
|
|
100
|
-
loading: {
|
|
101
|
-
type: import("vue").PropType<boolean>;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
align: {
|
|
105
|
-
type: import("vue").PropType<"top" | "bottom">;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
aspectRatio: {
|
|
109
|
-
type: import("vue").PropType<BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">>;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
background: {
|
|
113
|
-
type: import("vue").PropType<"light" | "dark" | "auto">;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
gradient: {
|
|
117
|
-
type: import("vue").PropType<boolean>;
|
|
118
|
-
default: boolean;
|
|
119
|
-
};
|
|
120
|
-
}>>, {
|
|
1
|
+
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileBackground, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
2
|
+
type PButtonTileProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Alignment of button and description.
|
|
5
|
+
*/
|
|
6
|
+
align?: ButtonTileAlign;
|
|
7
|
+
/**
|
|
8
|
+
* Add ARIA attributes.
|
|
9
|
+
*/
|
|
10
|
+
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
11
|
+
/**
|
|
12
|
+
* Aspect ratio of the button-tile.
|
|
13
|
+
*/
|
|
14
|
+
aspectRatio?: BreakpointCustomizable<ButtonTileAspectRatio>;
|
|
15
|
+
/**
|
|
16
|
+
* Adapts the description and button theme when used on light background image.
|
|
17
|
+
*/
|
|
18
|
+
background?: ButtonTileBackground;
|
|
19
|
+
/**
|
|
20
|
+
* Displays the button-tile as compact version with description and button icon only.
|
|
21
|
+
*/
|
|
22
|
+
compact?: BreakpointCustomizable<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Description text.
|
|
25
|
+
*/
|
|
26
|
+
description: string;
|
|
27
|
+
/**
|
|
28
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Show gradient.
|
|
33
|
+
*/
|
|
34
|
+
gradient?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
37
|
+
*/
|
|
38
|
+
icon?: ButtonTileIcon;
|
|
39
|
+
/**
|
|
40
|
+
* A URL path to a custom icon.
|
|
41
|
+
*/
|
|
42
|
+
iconSource?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Label of the button.
|
|
45
|
+
*/
|
|
46
|
+
label: string;
|
|
47
|
+
/**
|
|
48
|
+
* Disables the button-tile and shows a loading indicator. No events will be triggered while loading state is active.
|
|
49
|
+
*/
|
|
50
|
+
loading?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Font size of the description.
|
|
53
|
+
*/
|
|
54
|
+
size?: BreakpointCustomizable<ButtonTileSize>;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the type of the button.
|
|
57
|
+
*/
|
|
58
|
+
type?: ButtonTileType;
|
|
59
|
+
/**
|
|
60
|
+
* Font weight of the description.
|
|
61
|
+
*/
|
|
62
|
+
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
63
|
+
};
|
|
64
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonTileProps>, {
|
|
65
|
+
align: string;
|
|
66
|
+
aspectRatio: string;
|
|
67
|
+
background: string;
|
|
68
|
+
compact: boolean;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
gradient: boolean;
|
|
71
|
+
icon: string;
|
|
72
|
+
loading: boolean;
|
|
73
|
+
size: string;
|
|
74
|
+
type: string;
|
|
75
|
+
weight: string;
|
|
76
|
+
}>, {}, 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<PButtonTileProps>, {
|
|
77
|
+
align: string;
|
|
78
|
+
aspectRatio: string;
|
|
79
|
+
background: string;
|
|
80
|
+
compact: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
gradient: boolean;
|
|
83
|
+
icon: string;
|
|
84
|
+
loading: boolean;
|
|
85
|
+
size: string;
|
|
86
|
+
type: string;
|
|
87
|
+
weight: string;
|
|
88
|
+
}>>>, {
|
|
121
89
|
weight: BreakpointCustomizable<"regular" | "semi-bold">;
|
|
122
90
|
type: "button" | "reset" | "submit";
|
|
123
91
|
compact: BreakpointCustomizable<boolean>;
|
|
@@ -133,6 +101,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
133
101
|
default?(_: {}): any;
|
|
134
102
|
}>;
|
|
135
103
|
export default _default;
|
|
104
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
105
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
106
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
107
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
108
|
+
} : {
|
|
109
|
+
type: import('vue').PropType<T[K]>;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
type __VLS_WithDefaults<P, D> = {
|
|
114
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
115
|
+
default: D[K];
|
|
116
|
+
}> : P[K];
|
|
117
|
+
};
|
|
118
|
+
type __VLS_Prettify<T> = {
|
|
119
|
+
[K in keyof T]: T[K];
|
|
120
|
+
} & {};
|
|
136
121
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
137
122
|
new (): {
|
|
138
123
|
$slots: S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, ref as d, onMounted as f, onUpdated as p, openBlock as s, createBlock as u, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as b } from "vue";
|
|
2
|
+
import { usePrefix as y, syncProperties as _ } from "../../utils.mjs";
|
|
3
|
+
const k = /* @__PURE__ */ r({
|
|
4
4
|
__name: "ButtonTileWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
align: { default: "bottom" },
|
|
@@ -19,13 +19,9 @@ const C = /* @__PURE__ */ d({
|
|
|
19
19
|
type: { default: "submit" },
|
|
20
20
|
weight: { default: "semi-bold" }
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
return f(() => {
|
|
25
|
-
o(e.value, t);
|
|
26
|
-
}), p(() => {
|
|
27
|
-
o(e.value, t);
|
|
28
|
-
}), (l, y) => (u(), s(i(c(n)), {
|
|
22
|
+
setup(o) {
|
|
23
|
+
const n = y("p-button-tile"), a = o, e = d(), t = () => _(e, a);
|
|
24
|
+
return f(t), p(t), (l, g) => (s(), u(i(c(n)), {
|
|
29
25
|
ref_key: "pdsComponentRef",
|
|
30
26
|
ref: e
|
|
31
27
|
}, {
|
|
@@ -37,5 +33,5 @@ const C = /* @__PURE__ */ d({
|
|
|
37
33
|
}
|
|
38
34
|
});
|
|
39
35
|
export {
|
|
40
|
-
|
|
36
|
+
k as default
|
|
41
37
|
};
|