@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,32 @@
|
|
|
1
|
+
import { defineComponent as r, ref as p, onMounted as f, onUpdated as d, openBlock as s, createBlock as u, resolveDynamicComponent as i, unref as m, withCtx as c, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as g, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const y = /* @__PURE__ */ r({
|
|
4
|
+
__name: "HeadlineWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
align: { default: "left" },
|
|
7
|
+
color: { default: "default" },
|
|
8
|
+
ellipsis: { type: Boolean, default: !1 },
|
|
9
|
+
tag: null,
|
|
10
|
+
theme: { default: "light" },
|
|
11
|
+
variant: { default: "headline-1" }
|
|
12
|
+
},
|
|
13
|
+
setup(n) {
|
|
14
|
+
const t = n, a = g("p-headline"), e = p();
|
|
15
|
+
return f(() => {
|
|
16
|
+
o(e.value, t);
|
|
17
|
+
}), d(() => {
|
|
18
|
+
o(e.value, t);
|
|
19
|
+
}), (l, h) => (s(), u(i(m(a)), {
|
|
20
|
+
ref_key: "pdsComponentRef",
|
|
21
|
+
ref: e
|
|
22
|
+
}, {
|
|
23
|
+
default: c(() => [
|
|
24
|
+
_(l.$slots, "default")
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 512));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
y as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, TextColor, IconName, IconSize, ThemeExtendedElectricDark } 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
|
+
* Basic color variations depending on theme property.
|
|
9
|
+
*/
|
|
10
|
+
color?: "default" | "inherit" | "brand" | "neutral-contrast-high" | "neutral-contrast-medium" | "neutral-contrast-low" | "notification-success" | "notification-warning" | "notification-error" | "notification-neutral" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* If enabled, icon will be loaded lazily when it's visible in the viewport.
|
|
13
|
+
*/
|
|
14
|
+
lazy?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies which icon to use.
|
|
17
|
+
*/
|
|
18
|
+
name?: IconName | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the icon.
|
|
21
|
+
*/
|
|
22
|
+
size?: "small" | "medium" | "large" | "inherit" | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Specifies a whole icon path which can be used for custom icons.
|
|
25
|
+
*/
|
|
26
|
+
source?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
29
|
+
*/
|
|
30
|
+
theme?: "light" | "dark" | "light-electric" | "dark-electric" | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
color: string;
|
|
33
|
+
lazy: boolean;
|
|
34
|
+
name: string;
|
|
35
|
+
size: string;
|
|
36
|
+
theme: string;
|
|
37
|
+
}>, {}, 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<{
|
|
38
|
+
/**
|
|
39
|
+
* Add ARIA attributes.
|
|
40
|
+
*/
|
|
41
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Basic color variations depending on theme property.
|
|
44
|
+
*/
|
|
45
|
+
color?: "default" | "inherit" | "brand" | "neutral-contrast-high" | "neutral-contrast-medium" | "neutral-contrast-low" | "notification-success" | "notification-warning" | "notification-error" | "notification-neutral" | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* If enabled, icon will be loaded lazily when it's visible in the viewport.
|
|
48
|
+
*/
|
|
49
|
+
lazy?: boolean | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies which icon to use.
|
|
52
|
+
*/
|
|
53
|
+
name?: IconName | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The size of the icon.
|
|
56
|
+
*/
|
|
57
|
+
size?: "small" | "medium" | "large" | "inherit" | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies a whole icon path which can be used for custom icons.
|
|
60
|
+
*/
|
|
61
|
+
source?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
64
|
+
*/
|
|
65
|
+
theme?: "light" | "dark" | "light-electric" | "dark-electric" | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
color: string;
|
|
68
|
+
lazy: boolean;
|
|
69
|
+
name: string;
|
|
70
|
+
size: string;
|
|
71
|
+
theme: string;
|
|
72
|
+
}>>>, {
|
|
73
|
+
size: IconSize;
|
|
74
|
+
theme: ThemeExtendedElectricDark;
|
|
75
|
+
color: TextColor;
|
|
76
|
+
lazy: boolean;
|
|
77
|
+
name: IconName;
|
|
78
|
+
}>;
|
|
79
|
+
export default _default;
|
|
80
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
81
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
82
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
83
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
84
|
+
} : {
|
|
85
|
+
type: import('vue').PropType<T[K]>;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
type __VLS_WithDefaults<P, D> = {
|
|
90
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
91
|
+
default: D[K];
|
|
92
|
+
} : P[K];
|
|
93
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as r, ref as l, onMounted as p, onUpdated as f, openBlock as s, createBlock as u, resolveDynamicComponent as c, unref as m } from "vue";
|
|
2
|
+
import { getPrefixedTagName as d, syncProperties as n } from "../../utils.js";
|
|
3
|
+
const y = /* @__PURE__ */ r({
|
|
4
|
+
__name: "IconWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
aria: null,
|
|
7
|
+
color: { default: "default" },
|
|
8
|
+
lazy: { type: Boolean, default: !1 },
|
|
9
|
+
name: { default: "arrow-head-right" },
|
|
10
|
+
size: { default: "small" },
|
|
11
|
+
source: null,
|
|
12
|
+
theme: { default: "light" }
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
const o = t, a = d("p-icon"), e = l();
|
|
16
|
+
return p(() => {
|
|
17
|
+
n(e.value, o);
|
|
18
|
+
}), f(() => {
|
|
19
|
+
n(e.value, o);
|
|
20
|
+
}), (i, _) => (s(), u(c(m(a)), {
|
|
21
|
+
ref_key: "pdsComponentRef",
|
|
22
|
+
ref: e
|
|
23
|
+
}, null, 512));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
y as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { IconName, InlineNotificationState, Theme } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Action icon of the inline-notification.
|
|
5
|
+
*/
|
|
6
|
+
actionIcon?: IconName | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Action label of the inline-notification.
|
|
9
|
+
*/
|
|
10
|
+
actionLabel?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
13
|
+
*/
|
|
14
|
+
actionLoading?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Description of the inline-notification.
|
|
17
|
+
*/
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Heading of the inline-notification.
|
|
21
|
+
*/
|
|
22
|
+
heading?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Defines if the inline-notification can be closed/removed by the user.
|
|
25
|
+
*/
|
|
26
|
+
persistent?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* State of the inline-notification.
|
|
29
|
+
*/
|
|
30
|
+
state?: "success" | "warning" | "error" | "neutral" | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Adapts the inline-notification color depending on the theme.
|
|
33
|
+
*/
|
|
34
|
+
theme?: "light" | "dark" | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
actionIcon: string;
|
|
37
|
+
actionLoading: boolean;
|
|
38
|
+
description: string;
|
|
39
|
+
heading: string;
|
|
40
|
+
persistent: boolean;
|
|
41
|
+
state: string;
|
|
42
|
+
theme: string;
|
|
43
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
action: (value?: void | undefined) => void;
|
|
45
|
+
} & {
|
|
46
|
+
dismiss: (value?: void | undefined) => void;
|
|
47
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
48
|
+
/**
|
|
49
|
+
* Action icon of the inline-notification.
|
|
50
|
+
*/
|
|
51
|
+
actionIcon?: IconName | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Action label of the inline-notification.
|
|
54
|
+
*/
|
|
55
|
+
actionLabel?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
58
|
+
*/
|
|
59
|
+
actionLoading?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Description of the inline-notification.
|
|
62
|
+
*/
|
|
63
|
+
description?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Heading of the inline-notification.
|
|
66
|
+
*/
|
|
67
|
+
heading?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Defines if the inline-notification can be closed/removed by the user.
|
|
70
|
+
*/
|
|
71
|
+
persistent?: boolean | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* State of the inline-notification.
|
|
74
|
+
*/
|
|
75
|
+
state?: "success" | "warning" | "error" | "neutral" | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Adapts the inline-notification color depending on the theme.
|
|
78
|
+
*/
|
|
79
|
+
theme?: "light" | "dark" | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
actionIcon: string;
|
|
82
|
+
actionLoading: boolean;
|
|
83
|
+
description: string;
|
|
84
|
+
heading: string;
|
|
85
|
+
persistent: boolean;
|
|
86
|
+
state: string;
|
|
87
|
+
theme: string;
|
|
88
|
+
}>>> & {
|
|
89
|
+
onDismiss?: ((value?: void | undefined) => any) | undefined;
|
|
90
|
+
onAction?: ((value?: void | undefined) => any) | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
heading: string;
|
|
93
|
+
theme: Theme;
|
|
94
|
+
persistent: boolean;
|
|
95
|
+
state: InlineNotificationState;
|
|
96
|
+
description: string;
|
|
97
|
+
actionIcon: IconName;
|
|
98
|
+
actionLoading: boolean;
|
|
99
|
+
}>, {
|
|
100
|
+
default: (_: {}) => any;
|
|
101
|
+
}>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
104
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
105
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
106
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
107
|
+
} : {
|
|
108
|
+
type: import('vue').PropType<T[K]>;
|
|
109
|
+
required: true;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
type __VLS_WithDefaults<P, D> = {
|
|
113
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
114
|
+
default: D[K];
|
|
115
|
+
} : P[K];
|
|
116
|
+
};
|
|
117
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
118
|
+
new (): {
|
|
119
|
+
$slots: S;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as s, ref as d, onMounted as f, onUpdated as p, openBlock as c, createBlock as u, resolveDynamicComponent as m, unref as g, withCtx as h, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as v, syncProperties as o, addEventListenerToElementRef as a } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ s({
|
|
4
|
+
__name: "InlineNotificationWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
actionIcon: { default: "arrow-head-right" },
|
|
7
|
+
actionLabel: null,
|
|
8
|
+
actionLoading: { type: Boolean, default: !1 },
|
|
9
|
+
description: { default: "" },
|
|
10
|
+
heading: { default: "" },
|
|
11
|
+
persistent: { type: Boolean, default: !1 },
|
|
12
|
+
state: { default: "neutral" },
|
|
13
|
+
theme: { default: "light" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["action", "dismiss"],
|
|
16
|
+
setup(i, { emit: t }) {
|
|
17
|
+
const n = i, l = v("p-inline-notification"), e = d();
|
|
18
|
+
return f(() => {
|
|
19
|
+
o(e.value, n), a(e.value, "action", t), a(e.value, "dismiss", t);
|
|
20
|
+
}), p(() => {
|
|
21
|
+
o(e.value, n);
|
|
22
|
+
}), (r, C) => (c(), u(m(g(l)), {
|
|
23
|
+
ref_key: "pdsComponentRef",
|
|
24
|
+
ref: e
|
|
25
|
+
}, {
|
|
26
|
+
default: h(() => [
|
|
27
|
+
_(r.$slots, "default")
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 512));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
k as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { AlignLabel, SelectedAriaAttributes, BreakpointCustomizable, LinkButtonPureIconName, TextSize, LinkTarget, ThemeExtendedElectricDark, TextWeight } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Display link in active state.
|
|
5
|
+
*/
|
|
6
|
+
active?: boolean | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Aligns the label.
|
|
9
|
+
*/
|
|
10
|
+
alignLabel?: AlignLabel | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Add ARIA attributes.
|
|
13
|
+
*/
|
|
14
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
17
|
+
*/
|
|
18
|
+
download?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
21
|
+
*/
|
|
22
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
25
|
+
*/
|
|
26
|
+
href?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The icon shown. By choosing 'none', no icon is displayed
|
|
29
|
+
*/
|
|
30
|
+
icon?: LinkButtonPureIconName | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* A URL path to a custom icon.
|
|
33
|
+
*/
|
|
34
|
+
iconSource?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the relationship of the target object to the link object.
|
|
37
|
+
*/
|
|
38
|
+
rel?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Size of the link.
|
|
41
|
+
*/
|
|
42
|
+
size?: BreakpointCustomizable<"x-small" | "small" | "medium" | "large" | "x-large" | "inherit"> | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Stretches the area between icon and label to max available space.
|
|
45
|
+
*/
|
|
46
|
+
stretch?: BreakpointCustomizable<boolean> | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Target attribute where the link should be opened.
|
|
49
|
+
*/
|
|
50
|
+
target?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Adapts the button color depending on the theme.
|
|
53
|
+
*/
|
|
54
|
+
theme?: "light" | "dark" | "light-electric" | "dark-electric" | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The weight of the text (only has effect with visible label).
|
|
57
|
+
*/
|
|
58
|
+
weight?: "thin" | "regular" | "semibold" | "bold" | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
active: boolean;
|
|
61
|
+
alignLabel: string;
|
|
62
|
+
hideLabel: boolean;
|
|
63
|
+
icon: string;
|
|
64
|
+
size: string;
|
|
65
|
+
stretch: boolean;
|
|
66
|
+
target: string;
|
|
67
|
+
theme: string;
|
|
68
|
+
weight: string;
|
|
69
|
+
}>, {}, 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<{
|
|
70
|
+
/**
|
|
71
|
+
* Display link in active state.
|
|
72
|
+
*/
|
|
73
|
+
active?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Aligns the label.
|
|
76
|
+
*/
|
|
77
|
+
alignLabel?: AlignLabel | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Add ARIA attributes.
|
|
80
|
+
*/
|
|
81
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
84
|
+
*/
|
|
85
|
+
download?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
88
|
+
*/
|
|
89
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
92
|
+
*/
|
|
93
|
+
href?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* The icon shown. By choosing 'none', no icon is displayed
|
|
96
|
+
*/
|
|
97
|
+
icon?: LinkButtonPureIconName | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* A URL path to a custom icon.
|
|
100
|
+
*/
|
|
101
|
+
iconSource?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Specifies the relationship of the target object to the link object.
|
|
104
|
+
*/
|
|
105
|
+
rel?: string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Size of the link.
|
|
108
|
+
*/
|
|
109
|
+
size?: BreakpointCustomizable<"x-small" | "small" | "medium" | "large" | "x-large" | "inherit"> | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Stretches the area between icon and label to max available space.
|
|
112
|
+
*/
|
|
113
|
+
stretch?: BreakpointCustomizable<boolean> | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Target attribute where the link should be opened.
|
|
116
|
+
*/
|
|
117
|
+
target?: string | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Adapts the button color depending on the theme.
|
|
120
|
+
*/
|
|
121
|
+
theme?: "light" | "dark" | "light-electric" | "dark-electric" | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* The weight of the text (only has effect with visible label).
|
|
124
|
+
*/
|
|
125
|
+
weight?: "thin" | "regular" | "semibold" | "bold" | undefined;
|
|
126
|
+
}>, {
|
|
127
|
+
active: boolean;
|
|
128
|
+
alignLabel: string;
|
|
129
|
+
hideLabel: boolean;
|
|
130
|
+
icon: string;
|
|
131
|
+
size: string;
|
|
132
|
+
stretch: boolean;
|
|
133
|
+
target: string;
|
|
134
|
+
theme: string;
|
|
135
|
+
weight: string;
|
|
136
|
+
}>>>, {
|
|
137
|
+
weight: TextWeight;
|
|
138
|
+
stretch: BreakpointCustomizable<boolean>;
|
|
139
|
+
size: BreakpointCustomizable<TextSize>;
|
|
140
|
+
theme: ThemeExtendedElectricDark;
|
|
141
|
+
active: boolean;
|
|
142
|
+
alignLabel: AlignLabel;
|
|
143
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
144
|
+
icon: LinkButtonPureIconName;
|
|
145
|
+
target: LinkTarget;
|
|
146
|
+
}>, {
|
|
147
|
+
default: (_: {}) => any;
|
|
148
|
+
}>;
|
|
149
|
+
export default _default;
|
|
150
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
151
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
152
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
153
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
154
|
+
} : {
|
|
155
|
+
type: import('vue').PropType<T[K]>;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
type __VLS_WithDefaults<P, D> = {
|
|
160
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
161
|
+
default: D[K];
|
|
162
|
+
} : P[K];
|
|
163
|
+
};
|
|
164
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
165
|
+
new (): {
|
|
166
|
+
$slots: S;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as r, ref as f, onMounted as u, onUpdated as d, openBlock as p, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as h } from "vue";
|
|
2
|
+
import { getPrefixedTagName as g, syncProperties as l } from "../../utils.js";
|
|
3
|
+
const w = /* @__PURE__ */ r({
|
|
4
|
+
__name: "LinkPureWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
active: { type: Boolean, default: !1 },
|
|
7
|
+
alignLabel: { default: "right" },
|
|
8
|
+
aria: null,
|
|
9
|
+
download: null,
|
|
10
|
+
hideLabel: { default: !1 },
|
|
11
|
+
href: null,
|
|
12
|
+
icon: { default: "arrow-head-right" },
|
|
13
|
+
iconSource: null,
|
|
14
|
+
rel: null,
|
|
15
|
+
size: { default: "small" },
|
|
16
|
+
stretch: { default: !1 },
|
|
17
|
+
target: { default: "_self" },
|
|
18
|
+
theme: { default: "light" },
|
|
19
|
+
weight: { default: "regular" }
|
|
20
|
+
},
|
|
21
|
+
setup(a) {
|
|
22
|
+
const t = a, n = g("p-link-pure"), e = f();
|
|
23
|
+
return u(() => {
|
|
24
|
+
l(e.value, t);
|
|
25
|
+
}), d(() => {
|
|
26
|
+
l(e.value, t);
|
|
27
|
+
}), (o, _) => (p(), s(i(c(n)), {
|
|
28
|
+
ref_key: "pdsComponentRef",
|
|
29
|
+
ref: e
|
|
30
|
+
}, {
|
|
31
|
+
default: m(() => [
|
|
32
|
+
h(o.$slots, "default")
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 512));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
w as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, SocialIconName, LinkTarget, Theme } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Show or hide label.
|
|
5
|
+
*/
|
|
6
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
9
|
+
*/
|
|
10
|
+
href?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The icon shown.
|
|
13
|
+
*/
|
|
14
|
+
icon?: SocialIconName | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* A URL path to a custom icon.
|
|
17
|
+
*/
|
|
18
|
+
iconSource?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the relationship of the target object to the link object.
|
|
21
|
+
*/
|
|
22
|
+
rel?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Target attribute where the link should be opened.
|
|
25
|
+
*/
|
|
26
|
+
target?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Adapts the link color when used on dark background.
|
|
29
|
+
*/
|
|
30
|
+
theme?: "light" | "dark" | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
hideLabel: boolean;
|
|
33
|
+
target: string;
|
|
34
|
+
theme: string;
|
|
35
|
+
}>, {}, 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<{
|
|
36
|
+
/**
|
|
37
|
+
* Show or hide label.
|
|
38
|
+
*/
|
|
39
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
42
|
+
*/
|
|
43
|
+
href?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The icon shown.
|
|
46
|
+
*/
|
|
47
|
+
icon?: SocialIconName | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* A URL path to a custom icon.
|
|
50
|
+
*/
|
|
51
|
+
iconSource?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the relationship of the target object to the link object.
|
|
54
|
+
*/
|
|
55
|
+
rel?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Target attribute where the link should be opened.
|
|
58
|
+
*/
|
|
59
|
+
target?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Adapts the link color when used on dark background.
|
|
62
|
+
*/
|
|
63
|
+
theme?: "light" | "dark" | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
hideLabel: boolean;
|
|
66
|
+
target: string;
|
|
67
|
+
theme: string;
|
|
68
|
+
}>>>, {
|
|
69
|
+
theme: Theme;
|
|
70
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
71
|
+
target: LinkTarget;
|
|
72
|
+
}>, {
|
|
73
|
+
default: (_: {}) => any;
|
|
74
|
+
}>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
77
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
78
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
79
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
80
|
+
} : {
|
|
81
|
+
type: import('vue').PropType<T[K]>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
type __VLS_WithDefaults<P, D> = {
|
|
86
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
87
|
+
default: D[K];
|
|
88
|
+
} : P[K];
|
|
89
|
+
};
|
|
90
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
91
|
+
new (): {
|
|
92
|
+
$slots: S;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as f, onUpdated as s, openBlock as u, createBlock as c, resolveDynamicComponent as i, unref as d, withCtx as m, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as h, syncProperties as n } from "../../utils.js";
|
|
3
|
+
const v = /* @__PURE__ */ a({
|
|
4
|
+
__name: "LinkSocialWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
hideLabel: { default: !1 },
|
|
7
|
+
href: null,
|
|
8
|
+
icon: null,
|
|
9
|
+
iconSource: null,
|
|
10
|
+
rel: null,
|
|
11
|
+
target: { default: "_self" },
|
|
12
|
+
theme: { default: "light" }
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
const o = t, l = h("p-link-social"), e = p();
|
|
16
|
+
return f(() => {
|
|
17
|
+
n(e.value, o);
|
|
18
|
+
}), s(() => {
|
|
19
|
+
n(e.value, o);
|
|
20
|
+
}), (r, C) => (u(), c(i(d(l)), {
|
|
21
|
+
ref_key: "pdsComponentRef",
|
|
22
|
+
ref: e
|
|
23
|
+
}, {
|
|
24
|
+
default: m(() => [
|
|
25
|
+
_(r.$slots, "default")
|
|
26
|
+
]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 512));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
v as default
|
|
33
|
+
};
|