@porsche-design-system/components-vue 3.0.0-alpha.2 → 3.0.0-alpha.3
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 +302 -0
- package/lib/components/AccordionWrapper.vue.d.ts +3 -0
- package/lib/components/AccordionWrapper.vue.js +13 -13
- package/lib/components/BannerWrapper.vue.d.ts +28 -0
- package/lib/components/BannerWrapper.vue.js +11 -9
- package/lib/components/ButtonPureWrapper.vue.d.ts +11 -11
- package/lib/components/ButtonWrapper.vue.d.ts +5 -5
- package/lib/components/CarouselWrapper.vue.d.ts +16 -5
- package/lib/components/CarouselWrapper.vue.js +14 -13
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/DisplayWrapper.vue.d.ts +2 -2
- package/lib/components/DividerWrapper.vue.d.ts +14 -6
- package/lib/components/DividerWrapper.vue.js +11 -10
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/GridItemWrapper.vue.d.ts +4 -4
- package/lib/components/HeadingWrapper.vue.d.ts +2 -2
- package/lib/components/IconWrapper.vue.d.ts +4 -4
- package/lib/components/InlineNotificationWrapper.vue.d.ts +3 -3
- package/lib/components/LinkPureWrapper.vue.d.ts +10 -10
- package/lib/components/LinkSocialWrapper.vue.d.ts +5 -5
- package/lib/components/LinkTileWrapper.vue.d.ts +4 -4
- package/lib/components/LinkTileWrapper.vue.js +1 -1
- package/lib/components/LinkWrapper.vue.d.ts +4 -4
- package/lib/components/MarqueWrapper.vue.d.ts +2 -2
- package/lib/components/ModalWrapper.vue.d.ts +16 -5
- package/lib/components/ModalWrapper.vue.js +13 -12
- package/lib/components/PaginationWrapper.vue.d.ts +38 -26
- package/lib/components/PaginationWrapper.vue.js +17 -16
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ScrollerWrapper.vue.d.ts +27 -11
- package/lib/components/ScrollerWrapper.vue.js +15 -13
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -2
- package/lib/components/SegmentedControlWrapper.vue.d.ts +5 -2
- package/lib/components/SegmentedControlWrapper.vue.js +12 -12
- package/lib/components/SelectWrapperWrapper.vue.d.ts +4 -4
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +6 -3
- package/lib/components/StepperHorizontalWrapper.vue.js +13 -13
- package/lib/components/SwitchWrapper.vue.d.ts +6 -3
- package/lib/components/SwitchWrapper.vue.js +13 -13
- package/lib/components/TableWrapper.vue.d.ts +3 -0
- package/lib/components/TableWrapper.vue.js +10 -10
- package/lib/components/TabsBarWrapper.vue.d.ts +21 -10
- package/lib/components/TabsBarWrapper.vue.js +15 -14
- package/lib/components/TabsWrapper.vue.d.ts +21 -10
- package/lib/components/TabsWrapper.vue.js +15 -14
- package/lib/components/TagDismissibleWrapper.vue.d.ts +2 -2
- package/lib/components/TagWrapper.vue.d.ts +2 -2
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextFieldWrapperWrapper.vue.js +7 -6
- package/lib/components/TextListWrapper.vue.d.ts +16 -11
- package/lib/components/TextListWrapper.vue.js +11 -10
- package/lib/components/TextWrapper.vue.d.ts +2 -2
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
- package/lib/types.d.ts +95 -30
- package/package.json +2 -2
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const P = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as d, ref as s, onMounted as p, onUpdated as i, openBlock as f, createBlock as c, resolveDynamicComponent as m, unref as g, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as a, addEventListenerToElementRef as o } from "../../utils.js";
|
|
3
|
+
const P = /* @__PURE__ */ d({
|
|
4
4
|
__name: "CarouselWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
alignHeader: { default: "left" },
|
|
7
7
|
description: null,
|
|
8
|
-
disablePagination:
|
|
8
|
+
disablePagination: null,
|
|
9
9
|
heading: null,
|
|
10
10
|
intl: { default: () => ({}) },
|
|
11
|
+
pagination: { default: !0 },
|
|
11
12
|
rewind: { type: Boolean, default: !0 },
|
|
12
13
|
slidesPerPage: { default: 1 },
|
|
13
14
|
theme: { default: "light" },
|
|
14
15
|
width: { default: "basic" },
|
|
15
16
|
wrapContent: { type: Boolean }
|
|
16
17
|
},
|
|
17
|
-
emits: ["carouselChange"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
18
|
+
emits: ["carouselChange", "change"],
|
|
19
|
+
setup(l, { emit: t }) {
|
|
20
|
+
const n = l, r = _("p-carousel"), e = s();
|
|
20
21
|
return p(() => {
|
|
21
|
-
n(e.value, t),
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
}), (
|
|
22
|
+
a(e.value, n), o(e.value, "carouselChange", t), o(e.value, "change", t);
|
|
23
|
+
}), i(() => {
|
|
24
|
+
a(e.value, n);
|
|
25
|
+
}), (u, v) => (f(), c(m(g(r)), {
|
|
25
26
|
ref_key: "pdsComponentRef",
|
|
26
27
|
ref: e
|
|
27
28
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
C(
|
|
29
|
+
default: h(() => [
|
|
30
|
+
C(u.$slots, "default")
|
|
30
31
|
]),
|
|
31
32
|
_: 3
|
|
32
33
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
@@ -56,7 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
56
|
}>>>, {
|
|
57
57
|
label: string;
|
|
58
58
|
theme: Theme;
|
|
59
|
-
state:
|
|
59
|
+
state: CheckboxWrapperState;
|
|
60
60
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
61
61
|
message: string;
|
|
62
62
|
}>, {
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
18
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Sets a custom HTML tag depending on the usage of the display component.
|
|
21
21
|
*/
|
|
@@ -46,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
46
|
/**
|
|
47
47
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
48
48
|
*/
|
|
49
|
-
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
49
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* Sets a custom HTML tag depending on the usage of the display component.
|
|
52
52
|
*/
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type { DividerColor, BreakpointCustomizable,
|
|
1
|
+
import type { DividerColor, BreakpointCustomizable, DividerDirection, Theme } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines color depending on theme.
|
|
5
5
|
*/
|
|
6
6
|
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
7
7
|
/**
|
|
8
|
-
* Defines
|
|
8
|
+
* Defines direction.
|
|
9
|
+
*/
|
|
10
|
+
direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
|
|
9
13
|
*/
|
|
10
14
|
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
15
|
/**
|
|
@@ -14,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
18
|
theme?: "light" | "dark" | undefined;
|
|
15
19
|
}>, {
|
|
16
20
|
color: string;
|
|
17
|
-
|
|
21
|
+
direction: string;
|
|
18
22
|
theme: string;
|
|
19
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
24
|
/**
|
|
@@ -22,7 +26,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
26
|
*/
|
|
23
27
|
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
24
28
|
/**
|
|
25
|
-
* Defines
|
|
29
|
+
* Defines direction.
|
|
30
|
+
*/
|
|
31
|
+
direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
|
|
26
34
|
*/
|
|
27
35
|
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
28
36
|
/**
|
|
@@ -31,12 +39,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
31
39
|
theme?: "light" | "dark" | undefined;
|
|
32
40
|
}>, {
|
|
33
41
|
color: string;
|
|
34
|
-
|
|
42
|
+
direction: string;
|
|
35
43
|
theme: string;
|
|
36
44
|
}>>>, {
|
|
37
45
|
theme: Theme;
|
|
46
|
+
direction: BreakpointCustomizable<DividerDirection>;
|
|
38
47
|
color: DividerColor;
|
|
39
|
-
orientation: BreakpointCustomizable<DividerOrientation>;
|
|
40
48
|
}>;
|
|
41
49
|
export default _default;
|
|
42
50
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineComponent as p, ref as a, onMounted as
|
|
2
|
-
import { getPrefixedTagName as m, syncProperties as
|
|
1
|
+
import { defineComponent as p, ref as a, onMounted as i, onUpdated as l, openBlock as c, createBlock as d, resolveDynamicComponent as f, unref as s } from "vue";
|
|
2
|
+
import { getPrefixedTagName as m, syncProperties as n } from "../../utils.js";
|
|
3
3
|
const g = /* @__PURE__ */ p({
|
|
4
4
|
__name: "DividerWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "contrast-low" },
|
|
7
|
-
|
|
7
|
+
direction: { default: "horizontal" },
|
|
8
|
+
orientation: null,
|
|
8
9
|
theme: { default: "light" }
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const o =
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
}), (u, _) => (
|
|
11
|
+
setup(t) {
|
|
12
|
+
const o = t, r = m("p-divider"), e = a();
|
|
13
|
+
return i(() => {
|
|
14
|
+
n(e.value, o);
|
|
15
|
+
}), l(() => {
|
|
16
|
+
n(e.value, o);
|
|
17
|
+
}), (u, _) => (c(), d(f(s(r)), {
|
|
17
18
|
ref_key: "pdsComponentRef",
|
|
18
19
|
ref: e
|
|
19
20
|
}, null, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldsetWrapperLabelSize,
|
|
1
|
+
import type { FieldsetWrapperLabelSize, FieldsetWrapperState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* The label text.
|
|
@@ -66,7 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
66
66
|
}>>>, {
|
|
67
67
|
label: string;
|
|
68
68
|
theme: Theme;
|
|
69
|
-
state:
|
|
69
|
+
state: FieldsetWrapperState;
|
|
70
70
|
message: string;
|
|
71
71
|
labelSize: FieldsetWrapperLabelSize;
|
|
72
72
|
required: boolean;
|
|
@@ -4,11 +4,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
/**
|
|
5
5
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
6
6
|
*/
|
|
7
|
-
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 |
|
|
7
|
+
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 | 7 | 5 | 1 | 8 | 9 | 10 | 11> | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* The size of the column. Can be between 1 and 12. Also defines the size of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
10
10
|
*/
|
|
11
|
-
size?: BreakpointCustomizable<3 | 4 | 6 | 2 |
|
|
11
|
+
size?: BreakpointCustomizable<3 | 4 | 6 | 2 | 7 | 5 | 1 | 12 | 8 | 9 | 10 | 11> | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
offset: number;
|
|
14
14
|
size: number;
|
|
@@ -16,11 +16,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
/**
|
|
17
17
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
18
18
|
*/
|
|
19
|
-
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 |
|
|
19
|
+
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 | 7 | 5 | 1 | 8 | 9 | 10 | 11> | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* The size of the column. Can be between 1 and 12. Also defines the size of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
22
22
|
*/
|
|
23
|
-
size?: BreakpointCustomizable<3 | 4 | 6 | 2 |
|
|
23
|
+
size?: BreakpointCustomizable<3 | 4 | 6 | 2 | 7 | 5 | 1 | 12 | 8 | 9 | 10 | 11> | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
offset: number;
|
|
26
26
|
size: number;
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-large"
|
|
18
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-large"> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Sets a custom HTML tag depending on the usage of the heading component.
|
|
21
21
|
*/
|
|
@@ -46,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
46
|
/**
|
|
47
47
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
48
48
|
*/
|
|
49
|
-
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-large"
|
|
49
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-large"> | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* Sets a custom HTML tag depending on the usage of the heading component.
|
|
52
52
|
*/
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
/**
|
|
8
8
|
* Basic color variations depending on theme property.
|
|
9
9
|
*/
|
|
10
|
-
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "disabled" | undefined;
|
|
10
|
+
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "state-disabled" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Has no effect anymore
|
|
13
13
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
/**
|
|
21
21
|
* The size of the icon.
|
|
22
22
|
*/
|
|
23
|
-
size?: "inherit" | "x-small" | "small" | "medium" | "large" | "x-large" | undefined;
|
|
23
|
+
size?: "inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Specifies a whole icon path which can be used for custom icons.
|
|
26
26
|
*/
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
43
|
/**
|
|
44
44
|
* Basic color variations depending on theme property.
|
|
45
45
|
*/
|
|
46
|
-
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "disabled" | undefined;
|
|
46
|
+
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "state-disabled" | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* Has no effect anymore
|
|
49
49
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
56
56
|
/**
|
|
57
57
|
* The size of the icon.
|
|
58
58
|
*/
|
|
59
|
-
size?: "inherit" | "x-small" | "small" | "medium" | "large" | "x-large" | undefined;
|
|
59
|
+
size?: "inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Specifies a whole icon path which can be used for custom icons.
|
|
62
62
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InlineNotificationActionIcon, InlineNotificationState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Action icon of the inline-notification.
|
|
@@ -91,10 +91,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
91
91
|
}, {
|
|
92
92
|
heading: string;
|
|
93
93
|
theme: Theme;
|
|
94
|
+
description: string;
|
|
94
95
|
persistent: boolean;
|
|
95
96
|
state: InlineNotificationState;
|
|
96
|
-
|
|
97
|
-
actionIcon: IconName;
|
|
97
|
+
actionIcon: InlineNotificationActionIcon;
|
|
98
98
|
actionLoading: boolean;
|
|
99
99
|
}>, {
|
|
100
100
|
default: (_: {}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureIcon, LinkPureSize, LinkPureTarget, Theme, LinkPureWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Display link in active state.
|
|
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
/**
|
|
28
28
|
* The icon shown. By choosing 'none', no icon is displayed
|
|
29
29
|
*/
|
|
30
|
-
icon?: LinkButtonIconName | undefined;
|
|
30
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* A URL path to a custom icon.
|
|
33
33
|
*/
|
|
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
39
|
/**
|
|
40
40
|
* Size of the link.
|
|
41
41
|
*/
|
|
42
|
-
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
42
|
+
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Stretches the area between icon and label to max available space.
|
|
45
45
|
*/
|
|
@@ -100,7 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
100
|
/**
|
|
101
101
|
* The icon shown. By choosing 'none', no icon is displayed
|
|
102
102
|
*/
|
|
103
|
-
icon?: LinkButtonIconName | undefined;
|
|
103
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* A URL path to a custom icon.
|
|
106
106
|
*/
|
|
@@ -112,7 +112,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
112
112
|
/**
|
|
113
113
|
* Size of the link.
|
|
114
114
|
*/
|
|
115
|
-
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
115
|
+
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
116
116
|
/**
|
|
117
117
|
* Stretches the area between icon and label to max available space.
|
|
118
118
|
*/
|
|
@@ -146,15 +146,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
146
146
|
underline: boolean;
|
|
147
147
|
weight: string;
|
|
148
148
|
}>>>, {
|
|
149
|
-
weight:
|
|
149
|
+
weight: LinkPureWeight;
|
|
150
150
|
stretch: BreakpointCustomizable<boolean>;
|
|
151
|
-
size: BreakpointCustomizable<
|
|
151
|
+
size: BreakpointCustomizable<LinkPureSize>;
|
|
152
152
|
theme: Theme;
|
|
153
153
|
active: boolean;
|
|
154
|
-
alignLabel: BreakpointCustomizable<
|
|
154
|
+
alignLabel: BreakpointCustomizable<LinkPureAlignLabel>;
|
|
155
155
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
156
|
-
icon:
|
|
157
|
-
target:
|
|
156
|
+
icon: LinkPureIcon;
|
|
157
|
+
target: LinkPureTarget;
|
|
158
158
|
underline: boolean;
|
|
159
159
|
}>, {
|
|
160
160
|
default: (_: {}) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
2
|
-
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social instead. */
|
|
1
|
+
import type { BreakpointCustomizable, LinkSocialIcon, LinkSocialTarget, Theme } from '../types';
|
|
2
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social icon instead. */
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
/**
|
|
5
5
|
* Show or hide label.
|
|
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
12
|
/**
|
|
13
13
|
* The icon shown.
|
|
14
14
|
*/
|
|
15
|
-
icon?:
|
|
15
|
+
icon?: LinkSocialIcon | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* A URL path to a custom icon.
|
|
18
18
|
*/
|
|
@@ -45,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
45
45
|
/**
|
|
46
46
|
* The icon shown.
|
|
47
47
|
*/
|
|
48
|
-
icon?:
|
|
48
|
+
icon?: LinkSocialIcon | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* A URL path to a custom icon.
|
|
51
51
|
*/
|
|
@@ -69,7 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
69
69
|
}>>>, {
|
|
70
70
|
theme: Theme;
|
|
71
71
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
72
|
-
target:
|
|
72
|
+
target: LinkSocialTarget;
|
|
73
73
|
}>, {
|
|
74
74
|
default: (_: {}) => any;
|
|
75
75
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LinkTileAlign, SelectedAriaAttributes, BreakpointCustomizable, LinkTileAspectRatio, LinkTileSize,
|
|
1
|
+
import type { LinkTileAlign, SelectedAriaAttributes, BreakpointCustomizable, LinkTileAspectRatio, LinkTileSize, LinkTileTarget, LinkTileWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Alignment of link and description.
|
|
@@ -51,7 +51,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
51
51
|
/**
|
|
52
52
|
* Font weight of the description.
|
|
53
53
|
*/
|
|
54
|
-
weight?: BreakpointCustomizable<"regular" | "semibold"> | undefined;
|
|
54
|
+
weight?: BreakpointCustomizable<"regular" | "semi-bold" | "semibold"> | undefined;
|
|
55
55
|
}>, {
|
|
56
56
|
align: string;
|
|
57
57
|
aspectRatio: string;
|
|
@@ -112,7 +112,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
112
112
|
/**
|
|
113
113
|
* Font weight of the description.
|
|
114
114
|
*/
|
|
115
|
-
weight?: BreakpointCustomizable<"regular" | "semibold"> | undefined;
|
|
115
|
+
weight?: BreakpointCustomizable<"regular" | "semi-bold" | "semibold"> | undefined;
|
|
116
116
|
}>, {
|
|
117
117
|
align: string;
|
|
118
118
|
aspectRatio: string;
|
|
@@ -126,7 +126,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
126
126
|
compact: BreakpointCustomizable<boolean>;
|
|
127
127
|
size: BreakpointCustomizable<LinkTileSize>;
|
|
128
128
|
align: LinkTileAlign;
|
|
129
|
-
target:
|
|
129
|
+
target: LinkTileTarget;
|
|
130
130
|
aspectRatio: BreakpointCustomizable<LinkTileAspectRatio>;
|
|
131
131
|
gradient: boolean;
|
|
132
132
|
}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, BreakpointCustomizable,
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, LinkIcon, LinkTarget, Theme, LinkVariant } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
/**
|
|
20
20
|
* The icon shown. By choosing 'none', no icon is displayed.
|
|
21
21
|
*/
|
|
22
|
-
icon?: LinkButtonIconName | undefined;
|
|
22
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* A URL path to a custom icon.
|
|
25
25
|
*/
|
|
@@ -66,7 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
66
66
|
/**
|
|
67
67
|
* The icon shown. By choosing 'none', no icon is displayed.
|
|
68
68
|
*/
|
|
69
|
-
icon?: LinkButtonIconName | undefined;
|
|
69
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* A URL path to a custom icon.
|
|
72
72
|
*/
|
|
@@ -96,7 +96,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
96
96
|
}>>>, {
|
|
97
97
|
theme: Theme;
|
|
98
98
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
99
|
-
icon:
|
|
99
|
+
icon: LinkIcon;
|
|
100
100
|
variant: LinkVariant;
|
|
101
101
|
target: LinkTarget;
|
|
102
102
|
}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, MarqueSize,
|
|
1
|
+
import type { SelectedAriaAttributes, MarqueSize, MarqueTarget } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
51
51
|
trademark: boolean;
|
|
52
52
|
}>>>, {
|
|
53
53
|
size: MarqueSize;
|
|
54
|
-
target:
|
|
54
|
+
target: MarqueTarget;
|
|
55
55
|
trademark: boolean;
|
|
56
56
|
}>;
|
|
57
57
|
export default _default;
|
|
@@ -9,9 +9,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
*/
|
|
10
10
|
disableBackdropClick?: boolean | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* If true, the modal will not have a
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. If true, the modal will not have a dismiss button.
|
|
13
13
|
*/
|
|
14
14
|
disableCloseButton?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* If false, the modal will not have a dismiss button.
|
|
17
|
+
*/
|
|
18
|
+
dismissButton?: boolean | undefined;
|
|
15
19
|
/**
|
|
16
20
|
* If true the modal uses max viewport height and width. Should only be used for mobile.
|
|
17
21
|
*/
|
|
@@ -26,11 +30,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
30
|
open: boolean;
|
|
27
31
|
}>, {
|
|
28
32
|
disableBackdropClick: boolean;
|
|
29
|
-
|
|
33
|
+
dismissButton: boolean;
|
|
30
34
|
fullscreen: boolean;
|
|
31
35
|
open: boolean;
|
|
32
36
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
37
|
close: (value?: void | undefined) => void;
|
|
38
|
+
} & {
|
|
39
|
+
dismiss: (value?: void | undefined) => void;
|
|
34
40
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
41
|
/**
|
|
36
42
|
* Add ARIA attributes.
|
|
@@ -41,9 +47,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
41
47
|
*/
|
|
42
48
|
disableBackdropClick?: boolean | undefined;
|
|
43
49
|
/**
|
|
44
|
-
* If true, the modal will not have a
|
|
50
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. If true, the modal will not have a dismiss button.
|
|
45
51
|
*/
|
|
46
52
|
disableCloseButton?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* If false, the modal will not have a dismiss button.
|
|
55
|
+
*/
|
|
56
|
+
dismissButton?: boolean | undefined;
|
|
47
57
|
/**
|
|
48
58
|
* If true the modal uses max viewport height and width. Should only be used for mobile.
|
|
49
59
|
*/
|
|
@@ -58,15 +68,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
68
|
open: boolean;
|
|
59
69
|
}>, {
|
|
60
70
|
disableBackdropClick: boolean;
|
|
61
|
-
|
|
71
|
+
dismissButton: boolean;
|
|
62
72
|
fullscreen: boolean;
|
|
63
73
|
open: boolean;
|
|
64
74
|
}>>> & {
|
|
75
|
+
onDismiss?: ((value?: void | undefined) => any) | undefined;
|
|
65
76
|
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
66
77
|
}, {
|
|
67
78
|
open: boolean;
|
|
68
79
|
disableBackdropClick: boolean;
|
|
69
|
-
|
|
80
|
+
dismissButton: boolean;
|
|
70
81
|
fullscreen: BreakpointCustomizable<boolean>;
|
|
71
82
|
}>, {
|
|
72
83
|
default: (_: {}) => any;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as _, syncProperties as
|
|
3
|
-
const b = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as p, ref as d, onMounted as f, onUpdated as u, openBlock as i, createBlock as m, resolveDynamicComponent as c, unref as B, withCtx as C, renderSlot as y } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as n, addEventListenerToElementRef as a } from "../../utils.js";
|
|
3
|
+
const b = /* @__PURE__ */ p({
|
|
4
4
|
__name: "ModalWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: null,
|
|
7
7
|
disableBackdropClick: { type: Boolean, default: !1 },
|
|
8
|
-
disableCloseButton: { type: Boolean
|
|
8
|
+
disableCloseButton: { type: Boolean },
|
|
9
|
+
dismissButton: { type: Boolean, default: !0 },
|
|
9
10
|
fullscreen: { default: !1 },
|
|
10
11
|
heading: null,
|
|
11
12
|
open: { type: Boolean, default: !1 }
|
|
12
13
|
},
|
|
13
|
-
emits: ["close"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
14
|
+
emits: ["close", "dismiss"],
|
|
15
|
+
setup(l, { emit: o }) {
|
|
16
|
+
const t = l, s = _("p-modal"), e = d();
|
|
16
17
|
return f(() => {
|
|
17
|
-
t(e.value, o),
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
}), (r,
|
|
18
|
+
n(e.value, t), a(e.value, "close", o), a(e.value, "dismiss", o);
|
|
19
|
+
}), u(() => {
|
|
20
|
+
n(e.value, t);
|
|
21
|
+
}), (r, v) => (i(), m(c(B(s)), {
|
|
21
22
|
ref_key: "pdsComponentRef",
|
|
22
23
|
ref: e
|
|
23
24
|
}, {
|
|
24
25
|
default: C(() => [
|
|
25
|
-
|
|
26
|
+
y(r.$slots, "default")
|
|
26
27
|
]),
|
|
27
28
|
_: 3
|
|
28
29
|
}, 512));
|