@porsche-design-system/components-vue 3.0.0-alpha.1 → 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 (68) hide show
  1. package/CHANGELOG.md +351 -3
  2. package/OSS_NOTICE +65234 -2280
  3. package/README.md +25 -2
  4. package/lib/components/AccordionWrapper.vue.d.ts +3 -0
  5. package/lib/components/AccordionWrapper.vue.js +13 -13
  6. package/lib/components/BannerWrapper.vue.d.ts +30 -2
  7. package/lib/components/BannerWrapper.vue.js +11 -9
  8. package/lib/components/ButtonPureWrapper.vue.d.ts +13 -13
  9. package/lib/components/ButtonWrapper.vue.d.ts +5 -5
  10. package/lib/components/CarouselWrapper.vue.d.ts +43 -8
  11. package/lib/components/CarouselWrapper.vue.js +18 -15
  12. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
  13. package/lib/components/ContentWrapperWrapper.vue.d.ts +2 -2
  14. package/lib/components/ContentWrapperWrapper.vue.js +5 -5
  15. package/lib/components/DisplayWrapper.vue.d.ts +2 -2
  16. package/lib/components/DividerWrapper.vue.d.ts +16 -8
  17. package/lib/components/DividerWrapper.vue.js +13 -12
  18. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +2 -2
  19. package/lib/components/GridItemWrapper.vue.d.ts +4 -4
  20. package/lib/components/HeadingWrapper.vue.d.ts +2 -2
  21. package/lib/components/IconWrapper.vue.d.ts +4 -4
  22. package/lib/components/InlineNotificationWrapper.vue.d.ts +3 -3
  23. package/lib/components/LinkPureWrapper.vue.d.ts +12 -12
  24. package/lib/components/LinkSocialWrapper.vue.d.ts +5 -5
  25. package/lib/components/LinkTileWrapper.vue.d.ts +4 -4
  26. package/lib/components/LinkTileWrapper.vue.js +1 -1
  27. package/lib/components/LinkWrapper.vue.d.ts +4 -4
  28. package/lib/components/MarqueWrapper.vue.d.ts +2 -2
  29. package/lib/components/ModalWrapper.vue.d.ts +16 -5
  30. package/lib/components/ModalWrapper.vue.js +13 -12
  31. package/lib/components/ModelSignatureWrapper.vue.d.ts +66 -0
  32. package/lib/components/ModelSignatureWrapper.vue.js +25 -0
  33. package/lib/components/ModelSignatureWrapper.vue2.js +4 -0
  34. package/lib/components/PaginationWrapper.vue.d.ts +38 -26
  35. package/lib/components/PaginationWrapper.vue.js +17 -16
  36. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +2 -2
  37. package/lib/components/ScrollerWrapper.vue.d.ts +27 -11
  38. package/lib/components/ScrollerWrapper.vue.js +15 -13
  39. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -2
  40. package/lib/components/SegmentedControlWrapper.vue.d.ts +5 -2
  41. package/lib/components/SegmentedControlWrapper.vue.js +12 -12
  42. package/lib/components/SelectWrapperWrapper.vue.d.ts +4 -4
  43. package/lib/components/StepperHorizontalWrapper.vue.d.ts +6 -3
  44. package/lib/components/StepperHorizontalWrapper.vue.js +13 -13
  45. package/lib/components/SwitchWrapper.vue.d.ts +6 -3
  46. package/lib/components/SwitchWrapper.vue.js +13 -13
  47. package/lib/components/TableWrapper.vue.d.ts +3 -0
  48. package/lib/components/TableWrapper.vue.js +10 -10
  49. package/lib/components/TabsBarWrapper.vue.d.ts +21 -10
  50. package/lib/components/TabsBarWrapper.vue.js +15 -14
  51. package/lib/components/TabsWrapper.vue.d.ts +21 -10
  52. package/lib/components/TabsWrapper.vue.js +15 -14
  53. package/lib/components/TagDismissibleWrapper.vue.d.ts +2 -2
  54. package/lib/components/TagWrapper.vue.d.ts +2 -2
  55. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +16 -8
  56. package/lib/components/TextFieldWrapperWrapper.vue.js +7 -6
  57. package/lib/components/TextListWrapper.vue.d.ts +18 -13
  58. package/lib/components/TextListWrapper.vue.js +11 -10
  59. package/lib/components/TextWrapper.vue.d.ts +6 -6
  60. package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
  61. package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
  62. package/lib/components/index.d.ts +1 -0
  63. package/lib/types.d.ts +164 -60
  64. package/package.json +2 -2
  65. package/plugin.d.ts +14 -0
  66. package/plugin.js +28 -0
  67. package/public-api.d.ts +1 -0
  68. package/public-api.js +83 -78
package/CHANGELOG.md CHANGED
@@ -9,6 +9,354 @@ 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
+
314
+ ### [3.0.0-alpha.2] - 2023-02-27
315
+
316
+ #### 🤖 Property deprecations 🤖
317
+
318
+ ##### Carousel:
319
+
320
+ - Prop `wrap-content` is deprecated.
321
+
322
+ ```diff
323
+ - <p-carousel wrap-content="true"></p-carousel>
324
+ + <p-carousel></p-carousel>
325
+ ```
326
+
327
+ ##### Divider:
328
+
329
+ - Prop values `neutral-contrast-low | neutral-contrast-medium | neutral-contrast-high` of `color` prop are deprecated.
330
+
331
+ ```diff
332
+ - <p-divider color="neutral-contrast-low"></p-divider>
333
+ + <p-divider color="contrast-low"></p-divider>
334
+
335
+ - <p-divider color="neutral-contrast-medium"></p-divider>
336
+ + <p-divider color="contrast-medium"></p-divider>
337
+
338
+ - <p-divider color="neutral-contrast-high"></p-divider>
339
+ + <p-divider color="contrast-high"></p-divider>
340
+ ```
341
+
342
+ #### Changed
343
+
344
+ - `Divider`, `Button Group`, `Carousel` and `Text List` match new design language
345
+ - Background color of `Scroller`'s `prev` and `next` buttons in dark theme
346
+ - Partials: Removed deprecated `withoutTags` option for all partials, please use `format: 'jsx'` instead
347
+ - `Content Wrapper` default value of prop `width` has changed from `basic` to `extended`
348
+
349
+ #### Added
350
+
351
+ - `Model Signature`
352
+ - Props `align-header` and `width` for `Carousel`
353
+ - Vue: plugin functions `createPorscheDesignSystem` and `usePorscheDesignSystemPlugin`
354
+
355
+ #### Fixed
356
+
357
+ - `Radio Button Wrapper` keyboard arrow navigation
358
+ - `Button Pure` and `Link Pure` lagging active state background when scrolling on iOS
359
+
12
360
  ### [3.0.0-alpha.1] - 2023-02-16
13
361
 
14
362
  #### Added
@@ -19,7 +367,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
19
367
 
20
368
  #### Changed
21
369
 
22
- - `Stepper Horizontal` matches new design language.
370
+ - `Stepper Horizontal` matches new design language
23
371
  - Styles: Optimize design tokens "spacing", "typography" and "theme" provided by styles sub-package
24
372
  `@porsche-design-system/components-{js|angular|react|vue}/styles`
25
373
  - Styles: Use calc() instead of max() to calculate padding for `gridStyle` (JS) and `pds-grid` (SCSS)
@@ -411,10 +759,10 @@ to the new values since those ones will be removed with next major version.
411
759
  `Radio Button Wrapper`, `Popover`, `Modal`, `Select Wrapper`, `Tag`, `Tag Dismissible`, `Textarea Wrapper`,
412
760
  `Inline Notification`, `Banner`, `Toast`, `Grid`, `Flex`, `Pagination`, `Scroller`, `Accordion`, `Text`,
413
761
  `Text Field Wrapper`, `Content Wrapper`, `Segmented Control`, `Tabs`, `Tabs Bar`, `Headline` and `Fieldset Wrapper`
414
- matches new design language.
762
+ match new design language
415
763
  - `Icon` supports
416
764
  `primary | contrast-low | contrast-medium | contrast-high | notification-success | notification-warning | notification-error | notification-info | inherit`
417
- for `color` prop.
765
+ for `color` prop
418
766
  - Default value of prop `width` of `Banner` has changed from `basic` to `extended`
419
767
  - Default value of prop `action-icon` of `Inline Notification` has changed from `arrow-head-right` to `arrow-right`
420
768
  - Default value of prop `name` of `Icon` has changed from `arrow-head-right` to `arrow-right`