@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,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const k = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as l, ref as c, onMounted as f, onUpdated as m, openBlock as d, createBlock as u, resolveDynamicComponent as i, unref as g, withCtx as C, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as h, syncProperties as t, addEventListenerToElementRef as r } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ l({
|
|
4
4
|
__name: "TableWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
caption: null
|
|
7
7
|
},
|
|
8
|
-
emits: ["sortingChange"],
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
8
|
+
emits: ["change", "sortingChange"],
|
|
9
|
+
setup(a, { emit: n }) {
|
|
10
|
+
const o = a, p = h("p-table"), e = c();
|
|
11
11
|
return f(() => {
|
|
12
|
-
o(e.value, n),
|
|
12
|
+
t(e.value, o), r(e.value, "change", n), r(e.value, "sortingChange", n);
|
|
13
13
|
}), m(() => {
|
|
14
|
-
|
|
15
|
-
}), (
|
|
14
|
+
t(e.value, o);
|
|
15
|
+
}), (s, v) => (d(), u(i(g(p)), {
|
|
16
16
|
ref_key: "pdsComponentRef",
|
|
17
17
|
ref: e
|
|
18
18
|
}, {
|
|
19
19
|
default: C(() => [
|
|
20
|
-
|
|
20
|
+
_(s.$slots, "default")
|
|
21
21
|
]),
|
|
22
22
|
_: 3
|
|
23
23
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TabsBarGradientColor, TabsBarChangeEvent, BreakpointCustomizable, TabsBarSize, Theme, TabsBarWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines which tab to be visualized as selected (zero-based numbering), undefined if none should be selected.
|
|
@@ -7,6 +7,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
/**
|
|
8
8
|
* Adapts the background gradient color of prev and next button.
|
|
9
9
|
*/
|
|
10
|
+
gradientColor?: "background-base" | "background-surface" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
|
|
13
|
+
*/
|
|
10
14
|
gradientColorScheme?: "default" | "surface" | undefined;
|
|
11
15
|
/**
|
|
12
16
|
* The text size.
|
|
@@ -19,14 +23,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
23
|
/**
|
|
20
24
|
* The text weight.
|
|
21
25
|
*/
|
|
22
|
-
weight?: "regular" | "semibold" | undefined;
|
|
26
|
+
weight?: "regular" | "semi-bold" | "semibold" | undefined;
|
|
23
27
|
}>, {
|
|
24
|
-
|
|
28
|
+
gradientColor: string;
|
|
25
29
|
size: string;
|
|
26
30
|
theme: string;
|
|
27
31
|
weight: string;
|
|
28
32
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
|
|
33
|
+
change: (value: TabsBarChangeEvent) => void;
|
|
34
|
+
} & {
|
|
35
|
+
tabChange: (value: TabsBarChangeEvent) => void;
|
|
30
36
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
31
37
|
/**
|
|
32
38
|
* Defines which tab to be visualized as selected (zero-based numbering), undefined if none should be selected.
|
|
@@ -35,6 +41,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
41
|
/**
|
|
36
42
|
* Adapts the background gradient color of prev and next button.
|
|
37
43
|
*/
|
|
44
|
+
gradientColor?: "background-base" | "background-surface" | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
|
|
47
|
+
*/
|
|
38
48
|
gradientColorScheme?: "default" | "surface" | undefined;
|
|
39
49
|
/**
|
|
40
50
|
* The text size.
|
|
@@ -47,19 +57,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
57
|
/**
|
|
48
58
|
* The text weight.
|
|
49
59
|
*/
|
|
50
|
-
weight?: "regular" | "semibold" | undefined;
|
|
60
|
+
weight?: "regular" | "semi-bold" | "semibold" | undefined;
|
|
51
61
|
}>, {
|
|
52
|
-
|
|
62
|
+
gradientColor: string;
|
|
53
63
|
size: string;
|
|
54
64
|
theme: string;
|
|
55
65
|
weight: string;
|
|
56
66
|
}>>> & {
|
|
57
|
-
|
|
67
|
+
onChange?: ((value: TabsBarChangeEvent) => any) | undefined;
|
|
68
|
+
onTabChange?: ((value: TabsBarChangeEvent) => any) | undefined;
|
|
58
69
|
}, {
|
|
59
|
-
weight:
|
|
60
|
-
size: BreakpointCustomizable<
|
|
70
|
+
weight: TabsBarWeight;
|
|
71
|
+
size: BreakpointCustomizable<TabsBarSize>;
|
|
61
72
|
theme: Theme;
|
|
62
|
-
|
|
73
|
+
gradientColor: TabsBarGradientColor;
|
|
63
74
|
}>, {
|
|
64
75
|
default: (_: {}) => any;
|
|
65
76
|
}>;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as d, ref as p, onMounted as u, onUpdated as f, openBlock as c, createBlock as m, resolveDynamicComponent as i, unref as g, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as b, syncProperties as n, addEventListenerToElementRef as o } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ d({
|
|
4
4
|
__name: "TabsBarWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
activeTabIndex: null,
|
|
7
|
-
|
|
7
|
+
gradientColor: { default: "background-base" },
|
|
8
|
+
gradientColorScheme: null,
|
|
8
9
|
size: { default: "small" },
|
|
9
10
|
theme: { default: "light" },
|
|
10
11
|
weight: { default: "regular" }
|
|
11
12
|
},
|
|
12
|
-
emits: ["tabChange"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
a(e.value, t),
|
|
13
|
+
emits: ["change", "tabChange"],
|
|
14
|
+
setup(r, { emit: t }) {
|
|
15
|
+
const a = r, l = b("p-tabs-bar"), e = p();
|
|
16
|
+
return u(() => {
|
|
17
|
+
n(e.value, a), o(e.value, "change", t), o(e.value, "tabChange", t);
|
|
17
18
|
}), f(() => {
|
|
18
|
-
|
|
19
|
-
}), (
|
|
19
|
+
n(e.value, a);
|
|
20
|
+
}), (s, v) => (c(), m(i(g(l)), {
|
|
20
21
|
ref_key: "pdsComponentRef",
|
|
21
22
|
ref: e
|
|
22
23
|
}, {
|
|
23
|
-
default:
|
|
24
|
-
C(
|
|
24
|
+
default: h(() => [
|
|
25
|
+
C(s.$slots, "default")
|
|
25
26
|
]),
|
|
26
27
|
_: 3
|
|
27
28
|
}, 512));
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
k as default
|
|
32
33
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TabsGradientColor, BreakpointCustomizable, TabsSize, Theme, TabsWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines which tab to be visualized as selected (zero-based numbering).
|
|
@@ -7,6 +7,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
/**
|
|
8
8
|
* Adapts the background gradient color of prev and next button.
|
|
9
9
|
*/
|
|
10
|
+
gradientColor?: "background-base" | "background-surface" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
|
|
13
|
+
*/
|
|
10
14
|
gradientColorScheme?: "default" | "surface" | undefined;
|
|
11
15
|
/**
|
|
12
16
|
* The text size.
|
|
@@ -19,15 +23,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
23
|
/**
|
|
20
24
|
* The text weight.
|
|
21
25
|
*/
|
|
22
|
-
weight?: "regular" | "semibold" | undefined;
|
|
26
|
+
weight?: "regular" | "semi-bold" | "semibold" | undefined;
|
|
23
27
|
}>, {
|
|
24
28
|
activeTabIndex: number;
|
|
25
|
-
|
|
29
|
+
gradientColor: string;
|
|
26
30
|
size: string;
|
|
27
31
|
theme: string;
|
|
28
32
|
weight: string;
|
|
29
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
-
|
|
34
|
+
change: (value: import("../types").TabsBarChangeEvent) => void;
|
|
35
|
+
} & {
|
|
36
|
+
tabChange: (value: import("../types").TabsBarChangeEvent) => void;
|
|
31
37
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
32
38
|
/**
|
|
33
39
|
* Defines which tab to be visualized as selected (zero-based numbering).
|
|
@@ -36,6 +42,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
42
|
/**
|
|
37
43
|
* Adapts the background gradient color of prev and next button.
|
|
38
44
|
*/
|
|
45
|
+
gradientColor?: "background-base" | "background-surface" | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
|
|
48
|
+
*/
|
|
39
49
|
gradientColorScheme?: "default" | "surface" | undefined;
|
|
40
50
|
/**
|
|
41
51
|
* The text size.
|
|
@@ -48,20 +58,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
58
|
/**
|
|
49
59
|
* The text weight.
|
|
50
60
|
*/
|
|
51
|
-
weight?: "regular" | "semibold" | undefined;
|
|
61
|
+
weight?: "regular" | "semi-bold" | "semibold" | undefined;
|
|
52
62
|
}>, {
|
|
53
63
|
activeTabIndex: number;
|
|
54
|
-
|
|
64
|
+
gradientColor: string;
|
|
55
65
|
size: string;
|
|
56
66
|
theme: string;
|
|
57
67
|
weight: string;
|
|
58
68
|
}>>> & {
|
|
59
|
-
|
|
69
|
+
onChange?: ((value: import("../types").TabsBarChangeEvent) => any) | undefined;
|
|
70
|
+
onTabChange?: ((value: import("../types").TabsBarChangeEvent) => any) | undefined;
|
|
60
71
|
}, {
|
|
61
|
-
weight:
|
|
62
|
-
size: BreakpointCustomizable<
|
|
72
|
+
weight: TabsWeight;
|
|
73
|
+
size: BreakpointCustomizable<TabsSize>;
|
|
63
74
|
theme: Theme;
|
|
64
|
-
|
|
75
|
+
gradientColor: TabsGradientColor;
|
|
65
76
|
activeTabIndex: number;
|
|
66
77
|
}>, {
|
|
67
78
|
default: (_: {}) => any;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as d, ref as p, onMounted as f, onUpdated as u, openBlock as c, createBlock as m, resolveDynamicComponent as i, unref as g, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as b, syncProperties as n, addEventListenerToElementRef as o } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ d({
|
|
4
4
|
__name: "TabsWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
activeTabIndex: { default: 0 },
|
|
7
|
-
|
|
7
|
+
gradientColor: { default: "background-base" },
|
|
8
|
+
gradientColorScheme: null,
|
|
8
9
|
size: { default: "small" },
|
|
9
10
|
theme: { default: "light" },
|
|
10
11
|
weight: { default: "regular" }
|
|
11
12
|
},
|
|
12
|
-
emits: ["tabChange"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
13
|
+
emits: ["change", "tabChange"],
|
|
14
|
+
setup(r, { emit: t }) {
|
|
15
|
+
const a = r, l = b("p-tabs"), e = p();
|
|
15
16
|
return f(() => {
|
|
16
|
-
a(e.value, t),
|
|
17
|
-
}),
|
|
18
|
-
|
|
19
|
-
}), (
|
|
17
|
+
n(e.value, a), o(e.value, "change", t), o(e.value, "tabChange", t);
|
|
18
|
+
}), u(() => {
|
|
19
|
+
n(e.value, a);
|
|
20
|
+
}), (s, v) => (c(), m(i(g(l)), {
|
|
20
21
|
ref_key: "pdsComponentRef",
|
|
21
22
|
ref: e
|
|
22
23
|
}, {
|
|
23
|
-
default:
|
|
24
|
-
C(
|
|
24
|
+
default: h(() => [
|
|
25
|
+
C(s.$slots, "default")
|
|
25
26
|
]),
|
|
26
27
|
_: 3
|
|
27
28
|
}, 512));
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
k as default
|
|
32
33
|
};
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
/**
|
|
8
8
|
* Background color variations
|
|
9
9
|
*/
|
|
10
|
-
color?: "background-
|
|
10
|
+
color?: "background-base" | "background-surface" | "background-default" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* The label text.
|
|
13
13
|
*/
|
|
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
/**
|
|
28
28
|
* Background color variations
|
|
29
29
|
*/
|
|
30
|
-
color?: "background-
|
|
30
|
+
color?: "background-base" | "background-surface" | "background-default" | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The label text.
|
|
33
33
|
*/
|
|
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
3
3
|
/**
|
|
4
4
|
* Background color variations depending on theme property.
|
|
5
5
|
*/
|
|
6
|
-
color?: "
|
|
6
|
+
color?: "background-base" | "background-surface" | "primary" | "notification-success" | "notification-warning" | "notification-error" | "neutral-contrast-high" | "notification-neutral" | "background-default" | "notification-info-soft" | "notification-warning-soft" | "notification-success-soft" | "notification-error-soft" | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* The icon shown.
|
|
9
9
|
*/
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
/**
|
|
24
24
|
* Background color variations depending on theme property.
|
|
25
25
|
*/
|
|
26
|
-
color?: "
|
|
26
|
+
color?: "background-base" | "background-surface" | "primary" | "notification-success" | "notification-warning" | "notification-error" | "neutral-contrast-high" | "notification-neutral" | "background-default" | "notification-info-soft" | "notification-warning-soft" | "notification-success-soft" | "notification-error-soft" | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* The icon shown.
|
|
29
29
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, TextFieldWrapperState, Theme, TextFieldWrapperUnitPosition } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Action icon can be set to `locate` for `input type="search"` in order to display an action button.
|
|
@@ -25,9 +25,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
25
|
*/
|
|
26
26
|
message?: string | undefined;
|
|
27
27
|
/**
|
|
28
|
-
* Show or hide max character count.
|
|
28
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
29
29
|
*/
|
|
30
30
|
showCharacterCount?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Show or hide max character count.
|
|
33
|
+
*/
|
|
34
|
+
showCounter?: boolean | undefined;
|
|
31
35
|
/**
|
|
32
36
|
* The validation state.
|
|
33
37
|
*/
|
|
@@ -50,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
54
|
hideLabel: boolean;
|
|
51
55
|
label: string;
|
|
52
56
|
message: string;
|
|
53
|
-
|
|
57
|
+
showCounter: boolean;
|
|
54
58
|
state: string;
|
|
55
59
|
theme: string;
|
|
56
60
|
unit: string;
|
|
@@ -83,9 +87,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
83
87
|
*/
|
|
84
88
|
message?: string | undefined;
|
|
85
89
|
/**
|
|
86
|
-
* Show or hide max character count.
|
|
90
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
87
91
|
*/
|
|
88
92
|
showCharacterCount?: boolean | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Show or hide max character count.
|
|
95
|
+
*/
|
|
96
|
+
showCounter?: boolean | undefined;
|
|
89
97
|
/**
|
|
90
98
|
* The validation state.
|
|
91
99
|
*/
|
|
@@ -108,7 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
108
116
|
hideLabel: boolean;
|
|
109
117
|
label: string;
|
|
110
118
|
message: string;
|
|
111
|
-
|
|
119
|
+
showCounter: boolean;
|
|
112
120
|
state: string;
|
|
113
121
|
theme: string;
|
|
114
122
|
unit: string;
|
|
@@ -118,12 +126,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
118
126
|
}, {
|
|
119
127
|
label: string;
|
|
120
128
|
theme: Theme;
|
|
121
|
-
state: FormState;
|
|
122
|
-
hideLabel: BreakpointCustomizable<boolean>;
|
|
123
129
|
description: string;
|
|
130
|
+
state: TextFieldWrapperState;
|
|
131
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
124
132
|
message: string;
|
|
125
133
|
actionLoading: boolean;
|
|
126
|
-
|
|
134
|
+
showCounter: boolean;
|
|
127
135
|
unit: string;
|
|
128
136
|
unitPosition: TextFieldWrapperUnitPosition;
|
|
129
137
|
}>, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, ref as f, onMounted as d, onUpdated as s, openBlock as u, createBlock as i, resolveDynamicComponent as c, unref as m, withCtx as C, renderSlot as h } from "vue";
|
|
2
2
|
import { getPrefixedTagName as _, syncProperties as o, addEventListenerToElementRef as g } from "../../utils.js";
|
|
3
|
-
const w = /* @__PURE__ */
|
|
3
|
+
const w = /* @__PURE__ */ p({
|
|
4
4
|
__name: "TextFieldWrapperWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
actionIcon: null,
|
|
@@ -9,7 +9,8 @@ const w = /* @__PURE__ */ f({
|
|
|
9
9
|
hideLabel: { default: !1 },
|
|
10
10
|
label: { default: "" },
|
|
11
11
|
message: { default: "" },
|
|
12
|
-
showCharacterCount: { type: Boolean
|
|
12
|
+
showCharacterCount: { type: Boolean },
|
|
13
|
+
showCounter: { type: Boolean, default: !0 },
|
|
13
14
|
state: { default: "none" },
|
|
14
15
|
theme: { default: "light" },
|
|
15
16
|
unit: { default: "" },
|
|
@@ -17,12 +18,12 @@ const w = /* @__PURE__ */ f({
|
|
|
17
18
|
},
|
|
18
19
|
emits: ["action"],
|
|
19
20
|
setup(n, { emit: a }) {
|
|
20
|
-
const t = n, l = _("p-text-field-wrapper"), e =
|
|
21
|
+
const t = n, l = _("p-text-field-wrapper"), e = f();
|
|
21
22
|
return d(() => {
|
|
22
23
|
o(e.value, t), g(e.value, "action", a);
|
|
23
|
-
}),
|
|
24
|
+
}), s(() => {
|
|
24
25
|
o(e.value, t);
|
|
25
|
-
}), (r, x) => (
|
|
26
|
+
}), (r, x) => (u(), i(c(m(l)), {
|
|
26
27
|
ref_key: "pdsComponentRef",
|
|
27
28
|
ref: e
|
|
28
29
|
}, {
|
|
@@ -1,42 +1,47 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Theme, TextListType } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
|
-
* The type of the list.
|
|
4
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The type of the list.
|
|
5
5
|
*/
|
|
6
6
|
listType?: "unordered" | "ordered" | undefined;
|
|
7
7
|
/**
|
|
8
|
-
* The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
8
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
9
9
|
*/
|
|
10
10
|
orderType?: "numbered" | "alphabetically" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Adapts the text color depending on the theme.
|
|
13
13
|
*/
|
|
14
14
|
theme?: "light" | "dark" | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The list style type.
|
|
17
|
+
*/
|
|
18
|
+
type?: "unordered" | "numbered" | "alphabetically" | undefined;
|
|
15
19
|
}>, {
|
|
16
|
-
listType: string;
|
|
17
|
-
orderType: string;
|
|
18
20
|
theme: string;
|
|
21
|
+
type: string;
|
|
19
22
|
}>, {}, 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
23
|
/**
|
|
21
|
-
* The type of the list.
|
|
24
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The type of the list.
|
|
22
25
|
*/
|
|
23
26
|
listType?: "unordered" | "ordered" | undefined;
|
|
24
27
|
/**
|
|
25
|
-
* The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
28
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
26
29
|
*/
|
|
27
30
|
orderType?: "numbered" | "alphabetically" | undefined;
|
|
28
31
|
/**
|
|
29
32
|
* Adapts the text color depending on the theme.
|
|
30
33
|
*/
|
|
31
34
|
theme?: "light" | "dark" | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The list style type.
|
|
37
|
+
*/
|
|
38
|
+
type?: "unordered" | "numbered" | "alphabetically" | undefined;
|
|
32
39
|
}>, {
|
|
33
|
-
listType: string;
|
|
34
|
-
orderType: string;
|
|
35
40
|
theme: string;
|
|
41
|
+
type: string;
|
|
36
42
|
}>>>, {
|
|
37
43
|
theme: Theme;
|
|
38
|
-
|
|
39
|
-
orderType: OrderType;
|
|
44
|
+
type: TextListType;
|
|
40
45
|
}>, {
|
|
41
46
|
default: (_: {}) => any;
|
|
42
47
|
}>;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const g = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as l, ref as s, onMounted as a, onUpdated as d, openBlock as f, createBlock as u, resolveDynamicComponent as m, unref as c, withCtx as i, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as y, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const g = /* @__PURE__ */ l({
|
|
4
4
|
__name: "TextListWrapper",
|
|
5
5
|
props: {
|
|
6
|
-
listType:
|
|
7
|
-
orderType:
|
|
8
|
-
theme: { default: "light" }
|
|
6
|
+
listType: null,
|
|
7
|
+
orderType: null,
|
|
8
|
+
theme: { default: "light" },
|
|
9
|
+
type: { default: "unordered" }
|
|
9
10
|
},
|
|
10
11
|
setup(n) {
|
|
11
|
-
const t = n, r =
|
|
12
|
-
return
|
|
12
|
+
const t = n, r = y("p-text-list"), e = s();
|
|
13
|
+
return a(() => {
|
|
13
14
|
o(e.value, t);
|
|
14
|
-
}),
|
|
15
|
+
}), d(() => {
|
|
15
16
|
o(e.value, t);
|
|
16
|
-
}), (p,
|
|
17
|
+
}), (p, C) => (f(), u(m(c(r)), {
|
|
17
18
|
ref_key: "pdsComponentRef",
|
|
18
19
|
ref: e
|
|
19
20
|
}, {
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Size of the text. 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" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
18
|
+
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Sets a custom HTML tag depending on the usage of the text component.
|
|
21
21
|
*/
|
|
@@ -52,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
52
52
|
/**
|
|
53
53
|
* Size of the text. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
54
54
|
*/
|
|
55
|
-
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
55
|
+
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
56
56
|
/**
|
|
57
57
|
* Sets a custom HTML tag depending on the usage of the text component.
|
|
58
58
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, TextareaWrapperState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* The description text.
|
|
@@ -17,9 +17,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
17
|
*/
|
|
18
18
|
message?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* Show or hide max character count.
|
|
20
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
21
21
|
*/
|
|
22
22
|
showCharacterCount?: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Show or hide max character count.
|
|
25
|
+
*/
|
|
26
|
+
showCounter?: boolean | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* The validation state.
|
|
25
29
|
*/
|
|
@@ -33,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
37
|
hideLabel: boolean;
|
|
34
38
|
label: string;
|
|
35
39
|
message: string;
|
|
36
|
-
|
|
40
|
+
showCounter: boolean;
|
|
37
41
|
state: string;
|
|
38
42
|
theme: string;
|
|
39
43
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -54,9 +58,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
54
58
|
*/
|
|
55
59
|
message?: string | undefined;
|
|
56
60
|
/**
|
|
57
|
-
* Show or hide max character count.
|
|
61
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
58
62
|
*/
|
|
59
63
|
showCharacterCount?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Show or hide max character count.
|
|
66
|
+
*/
|
|
67
|
+
showCounter?: boolean | undefined;
|
|
60
68
|
/**
|
|
61
69
|
* The validation state.
|
|
62
70
|
*/
|
|
@@ -70,17 +78,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
70
78
|
hideLabel: boolean;
|
|
71
79
|
label: string;
|
|
72
80
|
message: string;
|
|
73
|
-
|
|
81
|
+
showCounter: boolean;
|
|
74
82
|
state: string;
|
|
75
83
|
theme: string;
|
|
76
84
|
}>>>, {
|
|
77
85
|
label: string;
|
|
78
86
|
theme: Theme;
|
|
79
|
-
state: FormState;
|
|
80
|
-
hideLabel: BreakpointCustomizable<boolean>;
|
|
81
87
|
description: string;
|
|
88
|
+
state: TextareaWrapperState;
|
|
89
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
82
90
|
message: string;
|
|
83
|
-
|
|
91
|
+
showCounter: boolean;
|
|
84
92
|
}>, {
|
|
85
93
|
default: (_: {}) => any;
|
|
86
94
|
}>;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as p, ref as l, onMounted as
|
|
2
|
-
import { getPrefixedTagName as h, syncProperties as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, ref as l, onMounted as s, onUpdated as f, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as c, withCtx as i, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as h, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const x = /* @__PURE__ */ p({
|
|
4
4
|
__name: "TextareaWrapperWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
description: { default: "" },
|
|
7
7
|
hideLabel: { default: !1 },
|
|
8
8
|
label: { default: "" },
|
|
9
9
|
message: { default: "" },
|
|
10
|
-
showCharacterCount: { type: Boolean
|
|
10
|
+
showCharacterCount: { type: Boolean },
|
|
11
|
+
showCounter: { type: Boolean, default: !0 },
|
|
11
12
|
state: { default: "none" },
|
|
12
13
|
theme: { default: "light" }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const t =
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
|
|
15
|
+
setup(a) {
|
|
16
|
+
const t = a, r = h("p-textarea-wrapper"), e = l();
|
|
17
|
+
return s(() => {
|
|
18
|
+
o(e.value, t);
|
|
19
|
+
}), f(() => {
|
|
20
|
+
o(e.value, t);
|
|
20
21
|
}), (n, _) => (d(), u(m(c(r)), {
|
|
21
22
|
ref_key: "pdsComponentRef",
|
|
22
23
|
ref: e
|
|
@@ -29,5 +30,5 @@ const w = /* @__PURE__ */ p({
|
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
x as default
|
|
33
34
|
};
|