@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,154 @@
|
|
|
1
|
+
import type { LinkTileAlign, SelectedAriaAttributes, BreakpointCustomizable, LinkTileAspectRatio, LinkTileSize, LinkTarget, LinkTileWeight } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Alignment of link and description.
|
|
5
|
+
*/
|
|
6
|
+
align?: "top" | "bottom" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Add ARIA attributes.
|
|
9
|
+
*/
|
|
10
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Aspect ratio of the link-tile.
|
|
13
|
+
*/
|
|
14
|
+
aspectRatio?: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16"> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Displays the tile-link as compact version with description and link icon only.
|
|
17
|
+
*/
|
|
18
|
+
compact?: BreakpointCustomizable<boolean> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Description text.
|
|
21
|
+
*/
|
|
22
|
+
description: string;
|
|
23
|
+
/**
|
|
24
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
25
|
+
*/
|
|
26
|
+
download?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Show gradient.
|
|
29
|
+
*/
|
|
30
|
+
gradient?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* href of the `<a>`.
|
|
33
|
+
*/
|
|
34
|
+
href: string;
|
|
35
|
+
/**
|
|
36
|
+
* Label of the <a />.
|
|
37
|
+
*/
|
|
38
|
+
label: string;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the relationship of the target object to the link object.
|
|
41
|
+
*/
|
|
42
|
+
rel?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Font size of the description.
|
|
45
|
+
*/
|
|
46
|
+
size?: BreakpointCustomizable<"default" | "inherit"> | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Target attribute where the link should be opened.
|
|
49
|
+
*/
|
|
50
|
+
target?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Font weight of the description.
|
|
53
|
+
*/
|
|
54
|
+
weight?: BreakpointCustomizable<"regular" | "semibold"> | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
align: string;
|
|
57
|
+
aspectRatio: string;
|
|
58
|
+
compact: boolean;
|
|
59
|
+
gradient: boolean;
|
|
60
|
+
size: string;
|
|
61
|
+
target: string;
|
|
62
|
+
weight: string;
|
|
63
|
+
}>, {}, 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<{
|
|
64
|
+
/**
|
|
65
|
+
* Alignment of link and description.
|
|
66
|
+
*/
|
|
67
|
+
align?: "top" | "bottom" | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Add ARIA attributes.
|
|
70
|
+
*/
|
|
71
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Aspect ratio of the link-tile.
|
|
74
|
+
*/
|
|
75
|
+
aspectRatio?: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16"> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Displays the tile-link as compact version with description and link icon only.
|
|
78
|
+
*/
|
|
79
|
+
compact?: BreakpointCustomizable<boolean> | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Description text.
|
|
82
|
+
*/
|
|
83
|
+
description: string;
|
|
84
|
+
/**
|
|
85
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
86
|
+
*/
|
|
87
|
+
download?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Show gradient.
|
|
90
|
+
*/
|
|
91
|
+
gradient?: boolean | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* href of the `<a>`.
|
|
94
|
+
*/
|
|
95
|
+
href: string;
|
|
96
|
+
/**
|
|
97
|
+
* Label of the <a />.
|
|
98
|
+
*/
|
|
99
|
+
label: string;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies the relationship of the target object to the link object.
|
|
102
|
+
*/
|
|
103
|
+
rel?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Font size of the description.
|
|
106
|
+
*/
|
|
107
|
+
size?: BreakpointCustomizable<"default" | "inherit"> | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Target attribute where the link should be opened.
|
|
110
|
+
*/
|
|
111
|
+
target?: string | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Font weight of the description.
|
|
114
|
+
*/
|
|
115
|
+
weight?: BreakpointCustomizable<"regular" | "semibold"> | undefined;
|
|
116
|
+
}>, {
|
|
117
|
+
align: string;
|
|
118
|
+
aspectRatio: string;
|
|
119
|
+
compact: boolean;
|
|
120
|
+
gradient: boolean;
|
|
121
|
+
size: string;
|
|
122
|
+
target: string;
|
|
123
|
+
weight: string;
|
|
124
|
+
}>>>, {
|
|
125
|
+
weight: BreakpointCustomizable<LinkTileWeight>;
|
|
126
|
+
compact: BreakpointCustomizable<boolean>;
|
|
127
|
+
size: BreakpointCustomizable<LinkTileSize>;
|
|
128
|
+
align: LinkTileAlign;
|
|
129
|
+
target: LinkTarget;
|
|
130
|
+
aspectRatio: BreakpointCustomizable<LinkTileAspectRatio>;
|
|
131
|
+
gradient: boolean;
|
|
132
|
+
}>, {
|
|
133
|
+
default: (_: {}) => any;
|
|
134
|
+
}>;
|
|
135
|
+
export default _default;
|
|
136
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
137
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
138
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
139
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
140
|
+
} : {
|
|
141
|
+
type: import('vue').PropType<T[K]>;
|
|
142
|
+
required: true;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
type __VLS_WithDefaults<P, D> = {
|
|
146
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
147
|
+
default: D[K];
|
|
148
|
+
} : P[K];
|
|
149
|
+
};
|
|
150
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
151
|
+
new (): {
|
|
152
|
+
$slots: S;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as r, ref as f, onMounted as p, onUpdated as u, openBlock as d, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as g, syncProperties as l } from "../../utils.js";
|
|
3
|
+
const h = /* @__PURE__ */ r({
|
|
4
|
+
__name: "LinkTileWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
align: { default: "bottom" },
|
|
7
|
+
aria: null,
|
|
8
|
+
aspectRatio: { default: "4:3" },
|
|
9
|
+
compact: { default: !1 },
|
|
10
|
+
description: null,
|
|
11
|
+
download: null,
|
|
12
|
+
gradient: { type: Boolean, default: !0 },
|
|
13
|
+
href: null,
|
|
14
|
+
label: null,
|
|
15
|
+
rel: null,
|
|
16
|
+
size: { default: "default" },
|
|
17
|
+
target: { default: "_self" },
|
|
18
|
+
weight: { default: "semibold" }
|
|
19
|
+
},
|
|
20
|
+
setup(o) {
|
|
21
|
+
const t = o, n = g("p-link-tile"), e = f();
|
|
22
|
+
return p(() => {
|
|
23
|
+
l(e.value, t);
|
|
24
|
+
}), u(() => {
|
|
25
|
+
l(e.value, t);
|
|
26
|
+
}), (a, C) => (d(), s(i(c(n)), {
|
|
27
|
+
ref_key: "pdsComponentRef",
|
|
28
|
+
ref: e
|
|
29
|
+
}, {
|
|
30
|
+
default: m(() => [
|
|
31
|
+
_(a.$slots, "default")
|
|
32
|
+
]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 512));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
h as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, IconName, LinkTarget, ThemeExtendedElectric, LinkVariant } 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
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
9
|
+
*/
|
|
10
|
+
download?: string | 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
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
17
|
+
*/
|
|
18
|
+
href?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The icon shown.
|
|
21
|
+
*/
|
|
22
|
+
icon?: IconName | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* A URL path to a custom icon.
|
|
25
|
+
*/
|
|
26
|
+
iconSource?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the relationship of the target object to the link object.
|
|
29
|
+
*/
|
|
30
|
+
rel?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Target attribute where the link should be opened.
|
|
33
|
+
*/
|
|
34
|
+
target?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Adapts the link color when used on dark background.
|
|
37
|
+
*/
|
|
38
|
+
theme?: "light" | "dark" | "light-electric" | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The style variant of the link.
|
|
41
|
+
*/
|
|
42
|
+
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
hideLabel: boolean;
|
|
45
|
+
icon: string;
|
|
46
|
+
target: string;
|
|
47
|
+
theme: string;
|
|
48
|
+
variant: string;
|
|
49
|
+
}>, {}, 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<{
|
|
50
|
+
/**
|
|
51
|
+
* Add ARIA attributes.
|
|
52
|
+
*/
|
|
53
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
56
|
+
*/
|
|
57
|
+
download?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
60
|
+
*/
|
|
61
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
64
|
+
*/
|
|
65
|
+
href?: string | 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
|
+
* Specifies the relationship of the target object to the link object.
|
|
76
|
+
*/
|
|
77
|
+
rel?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Target attribute where the link should be opened.
|
|
80
|
+
*/
|
|
81
|
+
target?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Adapts the link color when used on dark background.
|
|
84
|
+
*/
|
|
85
|
+
theme?: "light" | "dark" | "light-electric" | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The style variant of the link.
|
|
88
|
+
*/
|
|
89
|
+
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
hideLabel: boolean;
|
|
92
|
+
icon: string;
|
|
93
|
+
target: string;
|
|
94
|
+
theme: string;
|
|
95
|
+
variant: string;
|
|
96
|
+
}>>>, {
|
|
97
|
+
theme: ThemeExtendedElectric;
|
|
98
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
99
|
+
icon: IconName;
|
|
100
|
+
variant: LinkVariant;
|
|
101
|
+
target: LinkTarget;
|
|
102
|
+
}>, {
|
|
103
|
+
default: (_: {}) => any;
|
|
104
|
+
}>;
|
|
105
|
+
export default _default;
|
|
106
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
107
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
108
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
109
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
110
|
+
} : {
|
|
111
|
+
type: import('vue').PropType<T[K]>;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
type __VLS_WithDefaults<P, D> = {
|
|
116
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
117
|
+
default: D[K];
|
|
118
|
+
} : P[K];
|
|
119
|
+
};
|
|
120
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as l, ref as f, onMounted as d, onUpdated as p, openBlock as u, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as h } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const v = /* @__PURE__ */ l({
|
|
4
|
+
__name: "LinkWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
aria: null,
|
|
7
|
+
download: null,
|
|
8
|
+
hideLabel: { default: !1 },
|
|
9
|
+
href: null,
|
|
10
|
+
icon: { default: "arrow-head-right" },
|
|
11
|
+
iconSource: null,
|
|
12
|
+
rel: null,
|
|
13
|
+
target: { default: "_self" },
|
|
14
|
+
theme: { default: "light" },
|
|
15
|
+
variant: { default: "secondary" }
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const n = t, r = _("p-link"), e = f();
|
|
19
|
+
return d(() => {
|
|
20
|
+
o(e.value, n);
|
|
21
|
+
}), p(() => {
|
|
22
|
+
o(e.value, n);
|
|
23
|
+
}), (a, g) => (u(), s(i(c(r)), {
|
|
24
|
+
ref_key: "pdsComponentRef",
|
|
25
|
+
ref: e
|
|
26
|
+
}, {
|
|
27
|
+
default: m(() => [
|
|
28
|
+
h(a.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 512));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
v as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, MarqueSize, LinkTarget } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Add ARIA attributes.
|
|
5
|
+
*/
|
|
6
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
9
|
+
*/
|
|
10
|
+
href?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Adapts sizing of marque.
|
|
13
|
+
*/
|
|
14
|
+
size?: "small" | "medium" | "responsive" | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Target attribute where the link should be opened.
|
|
17
|
+
*/
|
|
18
|
+
target?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Show/hide trademark sign.
|
|
21
|
+
*/
|
|
22
|
+
trademark?: boolean | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
size: string;
|
|
25
|
+
target: string;
|
|
26
|
+
trademark: boolean;
|
|
27
|
+
}>, {}, 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<{
|
|
28
|
+
/**
|
|
29
|
+
* Add ARIA attributes.
|
|
30
|
+
*/
|
|
31
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
34
|
+
*/
|
|
35
|
+
href?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Adapts sizing of marque.
|
|
38
|
+
*/
|
|
39
|
+
size?: "small" | "medium" | "responsive" | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Target attribute where the link should be opened.
|
|
42
|
+
*/
|
|
43
|
+
target?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Show/hide trademark sign.
|
|
46
|
+
*/
|
|
47
|
+
trademark?: boolean | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
size: string;
|
|
50
|
+
target: string;
|
|
51
|
+
trademark: boolean;
|
|
52
|
+
}>>>, {
|
|
53
|
+
size: MarqueSize;
|
|
54
|
+
target: LinkTarget;
|
|
55
|
+
trademark: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
} : P[K];
|
|
71
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as s, onUpdated as f, openBlock as l, createBlock as u, resolveDynamicComponent as m, unref as c } from "vue";
|
|
2
|
+
import { getPrefixedTagName as d, syncProperties as n } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ a({
|
|
4
|
+
__name: "MarqueWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
aria: null,
|
|
7
|
+
href: null,
|
|
8
|
+
size: { default: "responsive" },
|
|
9
|
+
target: { default: "_self" },
|
|
10
|
+
trademark: { type: Boolean, default: !0 }
|
|
11
|
+
},
|
|
12
|
+
setup(r) {
|
|
13
|
+
const o = r, t = d("p-marque"), e = p();
|
|
14
|
+
return s(() => {
|
|
15
|
+
n(e.value, o);
|
|
16
|
+
}), f(() => {
|
|
17
|
+
n(e.value, o);
|
|
18
|
+
}), (i, _) => (l(), u(m(c(t)), {
|
|
19
|
+
ref_key: "pdsComponentRef",
|
|
20
|
+
ref: e
|
|
21
|
+
}, null, 512));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
k as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable } 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
|
+
* If true, the modal will not be closable via backdrop click.
|
|
9
|
+
*/
|
|
10
|
+
disableBackdropClick?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the modal will not have a close button.
|
|
13
|
+
*/
|
|
14
|
+
disableCloseButton?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* If true the modal uses max viewport height and width. Should only be used for mobile.
|
|
17
|
+
*/
|
|
18
|
+
fullscreen?: BreakpointCustomizable<boolean> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The title of the modal
|
|
21
|
+
*/
|
|
22
|
+
heading?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the modal is open.
|
|
25
|
+
*/
|
|
26
|
+
open: boolean;
|
|
27
|
+
}>, {
|
|
28
|
+
disableBackdropClick: boolean;
|
|
29
|
+
disableCloseButton: boolean;
|
|
30
|
+
fullscreen: boolean;
|
|
31
|
+
open: boolean;
|
|
32
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
close: (value?: void | undefined) => void;
|
|
34
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
+
/**
|
|
36
|
+
* Add ARIA attributes.
|
|
37
|
+
*/
|
|
38
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* If true, the modal will not be closable via backdrop click.
|
|
41
|
+
*/
|
|
42
|
+
disableBackdropClick?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* If true, the modal will not have a close button.
|
|
45
|
+
*/
|
|
46
|
+
disableCloseButton?: boolean | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* If true the modal uses max viewport height and width. Should only be used for mobile.
|
|
49
|
+
*/
|
|
50
|
+
fullscreen?: BreakpointCustomizable<boolean> | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The title of the modal
|
|
53
|
+
*/
|
|
54
|
+
heading?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* If true, the modal is open.
|
|
57
|
+
*/
|
|
58
|
+
open: boolean;
|
|
59
|
+
}>, {
|
|
60
|
+
disableBackdropClick: boolean;
|
|
61
|
+
disableCloseButton: boolean;
|
|
62
|
+
fullscreen: boolean;
|
|
63
|
+
open: boolean;
|
|
64
|
+
}>>> & {
|
|
65
|
+
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
open: boolean;
|
|
68
|
+
disableBackdropClick: boolean;
|
|
69
|
+
disableCloseButton: boolean;
|
|
70
|
+
fullscreen: BreakpointCustomizable<boolean>;
|
|
71
|
+
}>, {
|
|
72
|
+
default: (_: {}) => any;
|
|
73
|
+
}>;
|
|
74
|
+
export default _default;
|
|
75
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
76
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
77
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
78
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
79
|
+
} : {
|
|
80
|
+
type: import('vue').PropType<T[K]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
type __VLS_WithDefaults<P, D> = {
|
|
85
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
86
|
+
default: D[K];
|
|
87
|
+
} : P[K];
|
|
88
|
+
};
|
|
89
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
90
|
+
new (): {
|
|
91
|
+
$slots: S;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as s, ref as p, onMounted as f, onUpdated as d, openBlock as u, createBlock as c, resolveDynamicComponent as m, unref as i, withCtx as C, renderSlot as B } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as t, addEventListenerToElementRef as y } from "../../utils.js";
|
|
3
|
+
const b = /* @__PURE__ */ s({
|
|
4
|
+
__name: "ModalWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
aria: null,
|
|
7
|
+
disableBackdropClick: { type: Boolean, default: !1 },
|
|
8
|
+
disableCloseButton: { type: Boolean, default: !1 },
|
|
9
|
+
fullscreen: { default: !1 },
|
|
10
|
+
heading: null,
|
|
11
|
+
open: { type: Boolean, default: !1 }
|
|
12
|
+
},
|
|
13
|
+
emits: ["close"],
|
|
14
|
+
setup(n, { emit: a }) {
|
|
15
|
+
const o = n, l = _("p-modal"), e = p();
|
|
16
|
+
return f(() => {
|
|
17
|
+
t(e.value, o), y(e.value, "close", a);
|
|
18
|
+
}), d(() => {
|
|
19
|
+
t(e.value, o);
|
|
20
|
+
}), (r, k) => (u(), c(m(i(l)), {
|
|
21
|
+
ref_key: "pdsComponentRef",
|
|
22
|
+
ref: e
|
|
23
|
+
}, {
|
|
24
|
+
default: C(() => [
|
|
25
|
+
B(r.$slots, "default")
|
|
26
|
+
]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 512));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
b as default
|
|
33
|
+
};
|