@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.
Files changed (56) hide show
  1. package/CHANGELOG.md +302 -0
  2. package/lib/components/AccordionWrapper.vue.d.ts +3 -0
  3. package/lib/components/AccordionWrapper.vue.js +13 -13
  4. package/lib/components/BannerWrapper.vue.d.ts +28 -0
  5. package/lib/components/BannerWrapper.vue.js +11 -9
  6. package/lib/components/ButtonPureWrapper.vue.d.ts +11 -11
  7. package/lib/components/ButtonWrapper.vue.d.ts +5 -5
  8. package/lib/components/CarouselWrapper.vue.d.ts +16 -5
  9. package/lib/components/CarouselWrapper.vue.js +14 -13
  10. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
  11. package/lib/components/DisplayWrapper.vue.d.ts +2 -2
  12. package/lib/components/DividerWrapper.vue.d.ts +14 -6
  13. package/lib/components/DividerWrapper.vue.js +11 -10
  14. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +2 -2
  15. package/lib/components/GridItemWrapper.vue.d.ts +4 -4
  16. package/lib/components/HeadingWrapper.vue.d.ts +2 -2
  17. package/lib/components/IconWrapper.vue.d.ts +4 -4
  18. package/lib/components/InlineNotificationWrapper.vue.d.ts +3 -3
  19. package/lib/components/LinkPureWrapper.vue.d.ts +10 -10
  20. package/lib/components/LinkSocialWrapper.vue.d.ts +5 -5
  21. package/lib/components/LinkTileWrapper.vue.d.ts +4 -4
  22. package/lib/components/LinkTileWrapper.vue.js +1 -1
  23. package/lib/components/LinkWrapper.vue.d.ts +4 -4
  24. package/lib/components/MarqueWrapper.vue.d.ts +2 -2
  25. package/lib/components/ModalWrapper.vue.d.ts +16 -5
  26. package/lib/components/ModalWrapper.vue.js +13 -12
  27. package/lib/components/PaginationWrapper.vue.d.ts +38 -26
  28. package/lib/components/PaginationWrapper.vue.js +17 -16
  29. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +2 -2
  30. package/lib/components/ScrollerWrapper.vue.d.ts +27 -11
  31. package/lib/components/ScrollerWrapper.vue.js +15 -13
  32. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -2
  33. package/lib/components/SegmentedControlWrapper.vue.d.ts +5 -2
  34. package/lib/components/SegmentedControlWrapper.vue.js +12 -12
  35. package/lib/components/SelectWrapperWrapper.vue.d.ts +4 -4
  36. package/lib/components/StepperHorizontalWrapper.vue.d.ts +6 -3
  37. package/lib/components/StepperHorizontalWrapper.vue.js +13 -13
  38. package/lib/components/SwitchWrapper.vue.d.ts +6 -3
  39. package/lib/components/SwitchWrapper.vue.js +13 -13
  40. package/lib/components/TableWrapper.vue.d.ts +3 -0
  41. package/lib/components/TableWrapper.vue.js +10 -10
  42. package/lib/components/TabsBarWrapper.vue.d.ts +21 -10
  43. package/lib/components/TabsBarWrapper.vue.js +15 -14
  44. package/lib/components/TabsWrapper.vue.d.ts +21 -10
  45. package/lib/components/TabsWrapper.vue.js +15 -14
  46. package/lib/components/TagDismissibleWrapper.vue.d.ts +2 -2
  47. package/lib/components/TagWrapper.vue.d.ts +2 -2
  48. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +16 -8
  49. package/lib/components/TextFieldWrapperWrapper.vue.js +7 -6
  50. package/lib/components/TextListWrapper.vue.d.ts +16 -11
  51. package/lib/components/TextListWrapper.vue.js +11 -10
  52. package/lib/components/TextWrapper.vue.d.ts +2 -2
  53. package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
  54. package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
  55. package/lib/types.d.ts +95 -30
  56. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -9,6 +9,308 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9
9
 
10
10
  ### [Unreleased]
11
11
 
12
+ ### [3.0.0-alpha.3] - 2023-03-17
13
+
14
+ #### 🤖 Property deprecations 🤖
15
+
16
+ ##### Accordion:
17
+
18
+ - Event `accordionChange` is deprecated, use `change` event instead.
19
+
20
+ ```diff
21
+ - <PAccordion onAccordionChange={(e: CustomEvent<AccordionChangeEvent>) => {}} />
22
+ + <PAccordion onChange={(e: CustomEvent<AccordionChangeEvent>) => {}} />
23
+ ```
24
+
25
+ #### Banner:
26
+
27
+ - Named `slot="title"` is deprecated, use `heading` prop or `slot="heading"` instead.
28
+
29
+ ```diff
30
+ <p-banner>
31
+ - <span slot="title">Some heading</span>
32
+ + <span slot="heading">Some heading</span>
33
+ <span slot="description">Some notification description.</span>
34
+ </p-banner>
35
+
36
+ -<p-banner>
37
+ +<p-banner heading="Some heading" description="Some notification description.">
38
+ - <span slot="title">Some heading</span>
39
+ - <span slot="description">Some notification description.</span>
40
+ </p-banner>
41
+ ```
42
+
43
+ ##### Carousel:
44
+
45
+ - Prop `disablePagination` is deprecated, use `pagination` instead.
46
+ - Event `carouselChange` is deprecated, use `change` event instead.
47
+
48
+ ```diff
49
+ - <p-carousel disable-pagination="true"></p-carousel>
50
+ + <p-carousel pagination="false"></p-carousel>
51
+
52
+ - <PCarousel onCarouselChange={(e: CustomEvent<CarouselChangeEvent>) => {}} />
53
+ + <PCarousel onChange={(e: CustomEvent<CarouselChangeEvent>) => {}} />
54
+ ```
55
+
56
+ ##### Divider:
57
+
58
+ - Prop `orientation` is deprecated, use `direction` instead.
59
+
60
+ ```diff
61
+ - <p-divider orientation="horizontal"></p-divider>
62
+ + <p-divider direction="horizontal"></p-divider>
63
+ ```
64
+
65
+ ##### Icon:
66
+
67
+ - Prop `colors`'s value `disabled` is removed, use `state-disabled` instead.
68
+
69
+ ```diff
70
+ - <p-icon color="disabled"></p-icon>
71
+ + <p-icon color="state-disabled"></p-icon>
72
+ ```
73
+
74
+ ##### Link Tile:
75
+
76
+ - Prop `weight`'s value `semibold` is deprecated, use `semi-bold` instead.
77
+
78
+ ```diff
79
+ - <p-link-tile weight="semibold"></p-link-tile>
80
+ + <p-link-tile weight="semi-bold"></p-link-tile>
81
+ ```
82
+
83
+ #### Modal:
84
+
85
+ - Prop `disableCloseButton` is deprecated, use `dismissButton` instead.
86
+ - Event `close` is deprecated, use `dismiss` event instead.
87
+
88
+ ```diff
89
+ - <p-modal disable-close-button="true"></p-modal>
90
+ + <p-modal dismiss-button="false"></p-modal>
91
+
92
+ - <PModal onClose={(e: CustomEvent<void>) => {}} />
93
+ + <PModal onDismiss={(e: CustomEvent<void>) => {}} />
94
+ ```
95
+
96
+ ##### Pagination:
97
+
98
+ - Props `allyLabelNext`, `allyLabelPage`, `allyLabelPrev` and `allyLabel` are deprecated.
99
+ - Event `pageChange` is deprecated, use `change` event instead.
100
+
101
+ ```diff
102
+ - <p-pagination ally-label="Paginierung" ally-label-prev="Vorherige Seite" ally-label-next="Nächste Seite" ally-label-page="Seite"></p-pagination>
103
+ + <p-pagination intl="{root: 'Paginierung', prev: 'Vorherige Seite', next: 'Nächste Seite', page: 'Seite'}"></p-pagination>
104
+
105
+ - <PPagination onPageChange={(e: CustomEvent<PageChangeEvent>) => {}} />
106
+ + <PPagination onChange={(e: CustomEvent<PaginationChangeEvent>) => {}} />
107
+ ```
108
+
109
+ ##### Scroller:
110
+
111
+ - Prop `gradientColorScheme` is deprecated, use `gradientColor` instead.
112
+ - Prop `scrollIndicatorPosition` is deprecated, use `alignScrollIndicator` instead.
113
+
114
+ ```diff
115
+ - <p-scroller gradient-color-scheme="surface"></p-scroller>
116
+ + <p-scroller gradient-color="background-surface"></p-scroller>
117
+
118
+ - <p-scroller scroll-indicator-position="top"></p-scroller>
119
+ + <p-scroller align-scroll-indicator="top"></p-scroller>
120
+ ```
121
+
122
+ #### Segmented Control:
123
+
124
+ - Event `segmentedControlChange` is deprecated, use `change` event instead.
125
+
126
+ ```diff
127
+ - <PSegmentedControl onSegmentedControlChange={(e: CustomEvent<SegmentedControlChangeEvent>) => {}} />
128
+ + <PSegmentedControl onChange={(e: CustomEvent<SegmentedControlChangeEvent>) => {}} />
129
+ ```
130
+
131
+ #### Stepper Horizontal:
132
+
133
+ - Event `stepChange` is deprecated, use `change` event instead.
134
+
135
+ ```diff
136
+ - <PStepperHorizontal onStepChange={(e: CustomEvent<StepChangeEvent>) => {}} />
137
+ + <PStepperHorizontal onChange={(e: CustomEvent<StepperHorizontalChangeEvent>) => {}} />
138
+ ```
139
+
140
+ #### Switch:
141
+
142
+ - Event `switchChange` is deprecated, use `change` event instead.
143
+
144
+ ```diff
145
+ - <PSwitch onSwitchChange={(e: CustomEvent<SwitchChangeEvent>) => {}} />
146
+ + <PSwitch onChange={(e: CustomEvent<SwitchChangeEvent>) => {}} />
147
+ ```
148
+
149
+ #### Table:
150
+
151
+ - Event `sortingChange` is deprecated, use `change` event instead.
152
+
153
+ ```diff
154
+ - <PTable onSortingChange={(e: CustomEvent<SortingChangeEvent>) => {}} />
155
+ + <PTable onChange={(e: CustomEvent<TableChangeEvent>) => {}} />
156
+ ```
157
+
158
+ ##### Tabs:
159
+
160
+ - Prop `gradientColorScheme` is deprecated, use `gradientColor` instead.
161
+ - Prop `weight`'s value `semibold` is deprecated, use `semi-bold` instead.
162
+ - Event `tabChange` is deprecated, use `change` event instead.
163
+
164
+ ```diff
165
+ - <p-tabs gradient-color-scheme="surface"></p-tabs>
166
+ + <p-tabs gradient-color="background-surface"></p-tabs>
167
+
168
+ - <p-tabs weight="semibold"></p-tabs>
169
+ + <p-tabs weight="semi-bold"></p-tabs>
170
+
171
+ - <PTabs onTabChange={(e: CustomEvent<TabChangeEvent>) => {}} />
172
+ + <PTabs onChange={(e: CustomEvent<TabsChangeEvent>) => {}} />
173
+ ```
174
+
175
+ ##### Tabs Bar:
176
+
177
+ - Prop `gradientColorScheme` is deprecated, use `gradientColor` instead.
178
+ - Prop `weight`'s value `semibold` is deprecated, use `semi-bold` instead.
179
+ - Event `tabChange` is deprecated, use `change` event instead.
180
+
181
+ ```diff
182
+ - <p-tabs-bar gradient-color-scheme="surface"></p-tabs-bar>
183
+ + <p-tabs-bar gradient-color="background-surface"></p-tabs-bar>
184
+
185
+ - <p-tabs-bar weight="semibold"></p-tabs>
186
+ + <p-tabs-bar weight="semi-bold"></p-tabs>
187
+
188
+ - <PTabsBar onTabChange={(e: CustomEvent<TabChangeEvent>) => {}} />
189
+ + <PTabsBar onChange={(e: CustomEvent<TabsChangeEvent>) => {}} />
190
+ ```
191
+
192
+ ##### Tag:
193
+
194
+ - Prop `color`'s value `notification-warning`, `notification-success` and `notification-error` are deprecated, use
195
+ `notification-warning-soft`, `notification-success-soft` and `notification-error-soft` instead.
196
+
197
+ ```diff
198
+ - <p-tag color="notification-warning"></p-tag>
199
+ + <p-tag color="notification-warning-soft"></p-tag>
200
+
201
+ - <p-tag color="notification-success"></p-tag>
202
+ + <p-tag color="notification-success-soft"></p-tag>
203
+
204
+ - <p-tag color="notification-error"></p-tag>
205
+ + <p-tag color="notification-error-soft"></p-tag>
206
+ ```
207
+
208
+ ##### Text Field Wrapper:
209
+
210
+ - Prop `showCharacterCount` is deprecated, use `showCounter` instead.
211
+
212
+ ```diff
213
+ -<p-text-field-wrapper show-character-count="false">
214
+ +<p-text-field-wrapper show-counter="false">
215
+ <input type="text" maxlength="20" />
216
+ </p-text-field-wrapper>
217
+ ```
218
+
219
+ ##### Textarea Wrapper:
220
+
221
+ - Prop `showCharacterCount` is deprecated, use `showCounter` instead.
222
+
223
+ ```diff
224
+ -<p-textarea-wrapper show-character-count="false">
225
+ +<p-textarea-wrapper show-counter="false">
226
+ <textarea maxlength="80"></textarea>
227
+ </p-textarea-wrapper>
228
+ ```
229
+
230
+ ##### Text List
231
+
232
+ - Props `listType` and `orderType` are deprecated, use `type` instead.
233
+
234
+ ```diff
235
+ - <p-text-list list-type="unordered"></p-text-list>
236
+ + <p-text-list type="unordered"></p-text-list>
237
+
238
+ - <p-text-list list-type="ordered" order-type="numbered"></p-text-list>
239
+ + <p-text-list type="numbered"></p-text-list>
240
+
241
+ - <p-text-list list-type="ordered" order-type="alphabetically"></p-text-list>
242
+ + <p-text-list type="alphabetically"></p-text-list>
243
+ ```
244
+
245
+ #### Added
246
+
247
+ - `Text`, `Icon`, `Button Pure` and `Link Pure` support value `xx-small` for prop `size`
248
+ - `Display` supports value `small` for prop `size`
249
+ - Partials: `getInitialStyles` supports multi prefix, e.g.
250
+ `getInitialStyles({ prefix: ['', 'some-prefix', 'another-prefix'] });`
251
+ - Styles: `displaySmallStyle` and `pds-display-small`
252
+ - Styles: `textXXSmallStyle` and `pds-text-xx-small`
253
+ - Styles: `fontSizeDisplaySmall` and `$pds-font-size-display-small`
254
+ - Styles: `fontSizeTextXXSmall` and `$pds-font-size-text-xx-small`
255
+ - Styles: `getHoverStyle` and `pds-hover`
256
+ - `Banner` has `heading` and `description` prop as well as `slot="heading"` and deprecated `slot="title"`
257
+ - Custom events have consistent names across components and deprecated old event names
258
+ - `Accordion` emits `change` and deprecated `accordionChange` event
259
+ - `Carousel` emits `change` and deprecated `carouselChange` event
260
+ - `Modal` emits `dismiss` and deprecated `close` event
261
+ - `Pagination` emits `change` and deprecated `pageChange` event
262
+ - `Segmented Control` emits `change` and deprecated `segmentedControlChange` event
263
+ - `Stepper Horizontal` emits `change` and deprecated `stepChange` event
264
+ - `Switch` emits `change`and deprecated `switchChange` event
265
+ - `Table` emits `change`and deprecated `sortingChange` event
266
+ - `Tabs` emits `change`and deprecated `tabChange` event
267
+ - `Tabs Bar` emits `change`and deprecated `tabChange` event
268
+ - Props have consistent names across components and deprecated old props
269
+ - `Carousel` got `pagination` prop and deprecated `disablePagination` prop
270
+ - `Divider` got `direction` prop and deprecated `orientation` prop
271
+ - `Modal` got `dismissButton` prop and deprecated `disableCloseButton` prop
272
+ - `Pagination` got `intl` prop and deprecated `allyLabelNext`, `allyLabelPage`, `allyLabelPrev` and `allyLabel` props
273
+ - `Scroller` got `gradientColor` prop and deprecated `gradientColorScheme` prop
274
+ - `Scroller` got `alignScrollIndicator` prop and deprecated `scrollIndicatorPosition` prop
275
+ - `Tabs` got `gradientColor` prop and deprecated `gradientColorScheme` prop
276
+ - `Tabs Bar` got `gradientColor` prop and deprecated `gradientColorScheme` prop
277
+ - `Text Field Wrapper` got `showCounter` prop and deprecated `showCharacterCount` prop
278
+ - `Textarea Wrapper` got `showCounter` prop and deprecated `showCharacterCount` prop
279
+ - `Text List` got `type` prop and deprecated `listType` and `orderType` prop
280
+ - Props have consistent values across components and deprecated old values
281
+ - `Icon` prop `color` got value `state-disabled` and removed `disabled` value
282
+ - `Link Tile` prop `weight` got value `semi-bold` and deprecated `semibold` value
283
+ - `Tabs Bar` and `Tabs` prop `weight` got value `semi-bold` and deprecated `semibold` value
284
+ - `Tag` prop `color` got values `notification-info-soft`, `notification-warning-soft`, `notification-success-soft`,
285
+ `notification-error-soft` and deprecated `notification-warning`, `notification-success`, `notification-error` values
286
+
287
+ #### Changed
288
+
289
+ - `Display` uses font-weight regular and font-style normal
290
+ - Partials: `getInitialStyles` matches new design language
291
+ - Partials: All component related, slotted Light DOM styles have been moved to `getInitialStyles`
292
+ - Styles: `getFocusStyle` and `pds-focus` doesn't need `theme` parameter anymore
293
+ - Styles: `breakpoint{Base|XS|S|M|L|XL|XXL}` and `$pds-breakpoint-{base|xs|s|m|l|xl|xxl}` are provided as number without
294
+ unit (px)
295
+ - `Link Tile` matches new design language
296
+ - Typings for all component props start with the component name, e.g. `SwitchAlignLabel`, `TabsBarGradientColor` or
297
+ `LinkPureIcon`
298
+ - `Icon` prop `color` value `disabled` is renamed to `state-disabled`
299
+ - `Tag` prop `color` value `notification-info` is renamed to `notification-info-soft`
300
+
301
+ #### Fixed
302
+
303
+ - `Text Field Wrapper` calendar and time indicator icons respect color definition in dark theme
304
+ - `Text Field Wrapper` has correct height when type date or time is used
305
+ - Partials: Typings of return value with and without options parameter
306
+ - `Modal` scrolling behavior on mouse drag
307
+
308
+ #### Removed
309
+
310
+ - `Heading`: value `xxx-large` for prop `size`
311
+ - Styles: `headingXXXLargeStyle` and `pds-heading-xxx-large`
312
+ - Styles: `fontSizeHeadingXXLarge` and `$pds-font-size-heading-xx-large`
313
+
12
314
  ### [3.0.0-alpha.2] - 2023-02-27
13
315
 
14
316
  #### 🤖 Property deprecations 🤖
@@ -30,6 +30,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
30
30
  theme: string;
31
31
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
32
  accordionChange: (value: AccordionChangeEvent) => void;
33
+ } & {
34
+ change: (value: AccordionChangeEvent) => void;
33
35
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
34
36
  /**
35
37
  * Displays the Accordion as compact version with thinner border and smaller paddings.
@@ -60,6 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
60
62
  tag: string;
61
63
  theme: string;
62
64
  }>>> & {
65
+ onChange?: ((value: AccordionChangeEvent) => any) | undefined;
63
66
  onAccordionChange?: ((value: AccordionChangeEvent) => any) | undefined;
64
67
  }, {
65
68
  size: BreakpointCustomizable<AccordionSize>;
@@ -1,6 +1,6 @@
1
- import { defineComponent as c, ref as l, onMounted as d, onUpdated as s, openBlock as f, createBlock as m, resolveDynamicComponent as i, unref as u, withCtx as g, renderSlot as h } from "vue";
2
- import { getPrefixedTagName as C, syncProperties as n, addEventListenerToElementRef as _ } from "../../utils.js";
3
- const k = /* @__PURE__ */ c({
1
+ import { defineComponent as l, ref as d, onMounted as s, onUpdated as f, openBlock as m, createBlock as i, resolveDynamicComponent as u, unref as g, withCtx as h, renderSlot as C } from "vue";
2
+ import { getPrefixedTagName as _, syncProperties as t, addEventListenerToElementRef as a } from "../../utils.js";
3
+ const k = /* @__PURE__ */ l({
4
4
  __name: "AccordionWrapper",
5
5
  props: {
6
6
  compact: { type: Boolean },
@@ -10,19 +10,19 @@ const k = /* @__PURE__ */ c({
10
10
  tag: { default: "h2" },
11
11
  theme: { default: "light" }
12
12
  },
13
- emits: ["accordionChange"],
14
- setup(t, { emit: a }) {
15
- const o = t, r = C("p-accordion"), e = l();
16
- return d(() => {
17
- n(e.value, o), _(e.value, "accordionChange", a);
18
- }), s(() => {
19
- n(e.value, o);
20
- }), (p, v) => (f(), m(i(u(r)), {
13
+ emits: ["accordionChange", "change"],
14
+ setup(r, { emit: o }) {
15
+ const n = r, p = _("p-accordion"), e = d();
16
+ return s(() => {
17
+ t(e.value, n), a(e.value, "accordionChange", o), a(e.value, "change", o);
18
+ }), f(() => {
19
+ t(e.value, n);
20
+ }), (c, v) => (m(), i(u(g(p)), {
21
21
  ref_key: "pdsComponentRef",
22
22
  ref: e
23
23
  }, {
24
- default: g(() => [
25
- h(p.$slots, "default")
24
+ default: h(() => [
25
+ C(c.$slots, "default")
26
26
  ]),
27
27
  _: 3
28
28
  }, 512));
@@ -1,5 +1,16 @@
1
1
  import type { BannerState, Theme, BannerWidth } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ /**
4
+ * Description of the banner.
5
+ */
6
+ description?: string | undefined;
7
+ /**
8
+ * Heading of the banner.
9
+ */
10
+ heading?: string | undefined;
11
+ /**
12
+ * Defines if the banner can be closed/removed by the user.
13
+ */
3
14
  persistent?: boolean | undefined;
4
15
  /**
5
16
  * State of the banner.
@@ -14,6 +25,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
25
  */
15
26
  width?: "extended" | "basic" | "fluid" | undefined;
16
27
  }>, {
28
+ description: string;
29
+ heading: string;
17
30
  persistent: boolean;
18
31
  state: string;
19
32
  theme: string;
@@ -21,6 +34,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
34
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
35
  dismiss: (value?: void | undefined) => void;
23
36
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
37
+ /**
38
+ * Description of the banner.
39
+ */
40
+ description?: string | undefined;
41
+ /**
42
+ * Heading of the banner.
43
+ */
44
+ heading?: string | undefined;
45
+ /**
46
+ * Defines if the banner can be closed/removed by the user.
47
+ */
24
48
  persistent?: boolean | undefined;
25
49
  /**
26
50
  * State of the banner.
@@ -35,6 +59,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
59
  */
36
60
  width?: "extended" | "basic" | "fluid" | undefined;
37
61
  }>, {
62
+ description: string;
63
+ heading: string;
38
64
  persistent: boolean;
39
65
  state: string;
40
66
  theme: string;
@@ -42,7 +68,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
42
68
  }>>> & {
43
69
  onDismiss?: ((value?: void | undefined) => any) | undefined;
44
70
  }, {
71
+ heading: string;
45
72
  theme: Theme;
73
+ description: string;
46
74
  persistent: boolean;
47
75
  state: BannerState;
48
76
  width: BannerWidth;
@@ -1,26 +1,28 @@
1
- import { defineComponent as p, ref as d, onMounted as f, onUpdated as l, openBlock as i, createBlock as m, resolveDynamicComponent as u, unref as c, withCtx as _, renderSlot as C } from "vue";
2
- import { getPrefixedTagName as h, syncProperties as n, addEventListenerToElementRef as v } from "../../utils.js";
3
- const B = /* @__PURE__ */ p({
1
+ import { defineComponent as d, ref as p, onMounted as f, onUpdated as i, openBlock as l, createBlock as m, resolveDynamicComponent as u, unref as c, withCtx as _, renderSlot as h } from "vue";
2
+ import { getPrefixedTagName as C, syncProperties as n, addEventListenerToElementRef as g } from "../../utils.js";
3
+ const B = /* @__PURE__ */ d({
4
4
  __name: "BannerWrapper",
5
5
  props: {
6
+ description: { default: "" },
7
+ heading: { default: "" },
6
8
  persistent: { type: Boolean, default: !1 },
7
9
  state: { default: "info" },
8
10
  theme: { default: "light" },
9
11
  width: { default: "extended" }
10
12
  },
11
13
  emits: ["dismiss"],
12
- setup(o, { emit: r }) {
13
- const t = o, s = h("p-banner"), e = d();
14
+ setup(o, { emit: a }) {
15
+ const t = o, r = C("p-banner"), e = p();
14
16
  return f(() => {
15
- n(e.value, t), v(e.value, "dismiss", r);
16
- }), l(() => {
17
+ n(e.value, t), g(e.value, "dismiss", a);
18
+ }), i(() => {
17
19
  n(e.value, t);
18
- }), (a, g) => (i(), m(u(c(s)), {
20
+ }), (s, v) => (l(), m(u(c(r)), {
19
21
  ref_key: "pdsComponentRef",
20
22
  ref: e
21
23
  }, {
22
24
  default: _(() => [
23
- C(a.$slots, "default")
25
+ h(s.$slots, "default")
24
26
  ]),
25
27
  _: 3
26
28
  }, 512));
@@ -1,4 +1,4 @@
1
- import type { BreakpointCustomizable, AlignLabel, SelectedAriaAttributes, LinkButtonIconName, TextSize, Theme, ButtonType, TextWeight } from '../types';
1
+ import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * Display button in active state.
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  /**
24
24
  * The icon shown.
25
25
  */
26
- icon?: LinkButtonIconName | undefined;
26
+ icon?: import("../types").LinkButtonIconName | undefined;
27
27
  /**
28
28
  * A URL path to a custom icon.
29
29
  */
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
35
  /**
36
36
  * Size of the button.
37
37
  */
38
- size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
38
+ size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
39
39
  /**
40
40
  * Stretches the area between icon and label to max available space.
41
41
  */
@@ -89,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
89
  /**
90
90
  * The icon shown.
91
91
  */
92
- icon?: LinkButtonIconName | undefined;
92
+ icon?: import("../types").LinkButtonIconName | undefined;
93
93
  /**
94
94
  * A URL path to a custom icon.
95
95
  */
@@ -101,7 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
101
101
  /**
102
102
  * Size of the button.
103
103
  */
104
- size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
104
+ size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
105
105
  /**
106
106
  * Stretches the area between icon and label to max available space.
107
107
  */
@@ -132,16 +132,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
132
132
  type: string;
133
133
  weight: string;
134
134
  }>>>, {
135
- weight: TextWeight;
135
+ weight: ButtonPureWeight;
136
136
  stretch: BreakpointCustomizable<boolean>;
137
- disabled: boolean;
138
- size: BreakpointCustomizable<TextSize>;
137
+ size: BreakpointCustomizable<ButtonPureSize>;
139
138
  theme: Theme;
140
- type: ButtonType;
139
+ type: ButtonPureType;
141
140
  active: boolean;
142
- alignLabel: BreakpointCustomizable<AlignLabel>;
141
+ alignLabel: BreakpointCustomizable<ButtonPureAlignLabel>;
142
+ disabled: boolean;
143
143
  hideLabel: BreakpointCustomizable<boolean>;
144
- icon: LinkButtonIconName;
144
+ icon: ButtonPureIcon;
145
145
  loading: boolean;
146
146
  }>, {
147
147
  default: (_: {}) => any;
@@ -1,4 +1,4 @@
1
- import type { SelectedAriaAttributes, BreakpointCustomizable, LinkButtonIconName, Theme, ButtonType, ButtonVariant } from '../types';
1
+ import type { SelectedAriaAttributes, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * Add ARIA attributes.
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  /**
16
16
  * The icon shown. By choosing 'none', no icon is displayed.
17
17
  */
18
- icon?: LinkButtonIconName | undefined;
18
+ icon?: import("../types").LinkButtonIconName | undefined;
19
19
  /**
20
20
  * A URL path to a custom icon.
21
21
  */
@@ -60,7 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
60
60
  /**
61
61
  * The icon shown. By choosing 'none', no icon is displayed.
62
62
  */
63
- icon?: LinkButtonIconName | undefined;
63
+ icon?: import("../types").LinkButtonIconName | undefined;
64
64
  /**
65
65
  * A URL path to a custom icon.
66
66
  */
@@ -90,11 +90,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
90
90
  type: string;
91
91
  variant: string;
92
92
  }>>>, {
93
- disabled: boolean;
94
93
  theme: Theme;
95
94
  type: ButtonType;
95
+ disabled: boolean;
96
96
  hideLabel: BreakpointCustomizable<boolean>;
97
- icon: LinkButtonIconName;
97
+ icon: ButtonIcon;
98
98
  loading: boolean;
99
99
  variant: ButtonVariant;
100
100
  }>, {
@@ -9,7 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
9
9
  */
10
10
  description?: string | undefined;
11
11
  /**
12
- * If true, the carousel will not show pagination bullets at the bottom.
12
+ * @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
13
13
  */
14
14
  disablePagination?: BreakpointCustomizable<boolean> | undefined;
15
15
  /**
@@ -20,6 +20,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
20
  * Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
21
21
  */
22
22
  intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
23
+ /**
24
+ * If false, the carousel will not show pagination bullets at the bottom.
25
+ */
26
+ pagination?: BreakpointCustomizable<boolean> | undefined;
23
27
  /**
24
28
  * Whether the slides should rewind from last to first slide and vice versa.
25
29
  */
@@ -43,14 +47,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
47
  wrapContent?: boolean | undefined;
44
48
  }>, {
45
49
  alignHeader: string;
46
- disablePagination: boolean;
47
50
  intl: () => {};
51
+ pagination: boolean;
48
52
  rewind: boolean;
49
53
  slidesPerPage: number;
50
54
  theme: string;
51
55
  width: string;
52
56
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
57
  carouselChange: (value: CarouselChangeEvent) => void;
58
+ } & {
59
+ change: (value: CarouselChangeEvent) => void;
54
60
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
55
61
  /**
56
62
  * Alignment of heading and description
@@ -61,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
61
67
  */
62
68
  description?: string | undefined;
63
69
  /**
64
- * If true, the carousel will not show pagination bullets at the bottom.
70
+ * @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
65
71
  */
66
72
  disablePagination?: BreakpointCustomizable<boolean> | undefined;
67
73
  /**
@@ -72,6 +78,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
72
78
  * Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
73
79
  */
74
80
  intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
81
+ /**
82
+ * If false, the carousel will not show pagination bullets at the bottom.
83
+ */
84
+ pagination?: BreakpointCustomizable<boolean> | undefined;
75
85
  /**
76
86
  * Whether the slides should rewind from last to first slide and vice versa.
77
87
  */
@@ -95,20 +105,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
95
105
  wrapContent?: boolean | undefined;
96
106
  }>, {
97
107
  alignHeader: string;
98
- disablePagination: boolean;
99
108
  intl: () => {};
109
+ pagination: boolean;
100
110
  rewind: boolean;
101
111
  slidesPerPage: number;
102
112
  theme: string;
103
113
  width: string;
104
114
  }>>> & {
115
+ onChange?: ((value: CarouselChangeEvent) => any) | undefined;
105
116
  onCarouselChange?: ((value: CarouselChangeEvent) => any) | undefined;
106
117
  }, {
107
118
  theme: Theme;
108
119
  width: CarouselWidth;
109
120
  alignHeader: CarouselAlignHeader;
110
- disablePagination: BreakpointCustomizable<boolean>;
111
121
  intl: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
122
+ pagination: BreakpointCustomizable<boolean>;
112
123
  rewind: boolean;
113
124
  slidesPerPage: BreakpointCustomizable<number>;
114
125
  }>, {