@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.
- package/CHANGELOG.md +351 -3
- package/OSS_NOTICE +65234 -2280
- package/README.md +25 -2
- package/lib/components/AccordionWrapper.vue.d.ts +3 -0
- package/lib/components/AccordionWrapper.vue.js +13 -13
- package/lib/components/BannerWrapper.vue.d.ts +30 -2
- package/lib/components/BannerWrapper.vue.js +11 -9
- package/lib/components/ButtonPureWrapper.vue.d.ts +13 -13
- package/lib/components/ButtonWrapper.vue.d.ts +5 -5
- package/lib/components/CarouselWrapper.vue.d.ts +43 -8
- package/lib/components/CarouselWrapper.vue.js +18 -15
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ContentWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ContentWrapperWrapper.vue.js +5 -5
- package/lib/components/DisplayWrapper.vue.d.ts +2 -2
- package/lib/components/DividerWrapper.vue.d.ts +16 -8
- package/lib/components/DividerWrapper.vue.js +13 -12
- 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 +12 -12
- 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/ModelSignatureWrapper.vue.d.ts +66 -0
- package/lib/components/ModelSignatureWrapper.vue.js +25 -0
- package/lib/components/ModelSignatureWrapper.vue2.js +4 -0
- 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 +18 -13
- package/lib/components/TextListWrapper.vue.js +11 -10
- package/lib/components/TextWrapper.vue.d.ts +6 -6
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
- package/lib/components/index.d.ts +1 -0
- package/lib/types.d.ts +164 -60
- package/package.json +2 -2
- package/plugin.d.ts +14 -0
- package/plugin.js +28 -0
- package/public-api.d.ts +1 -0
- package/public-api.js +83 -78
|
@@ -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
|
};
|
|
@@ -23,6 +23,7 @@ export { default as PLinkSocial } from './LinkSocialWrapper.vue';
|
|
|
23
23
|
export { default as PLinkTile } from './LinkTileWrapper.vue';
|
|
24
24
|
export { default as PMarque } from './MarqueWrapper.vue';
|
|
25
25
|
export { default as PModal } from './ModalWrapper.vue';
|
|
26
|
+
export { default as PModelSignature } from './ModelSignatureWrapper.vue';
|
|
26
27
|
export { default as PPagination } from './PaginationWrapper.vue';
|
|
27
28
|
export { default as PPopover } from './PopoverWrapper.vue';
|
|
28
29
|
export { default as PRadioButtonWrapper } from './RadioButtonWrapperWrapper.vue';
|
package/lib/types.d.ts
CHANGED
|
@@ -209,12 +209,18 @@ export declare type BreakpointValues<T> = {
|
|
|
209
209
|
base: T;
|
|
210
210
|
};
|
|
211
211
|
export declare type BreakpointCustomizable<T> = T | BreakpointValues<T>;
|
|
212
|
-
declare const
|
|
212
|
+
declare const GRADIENT_COLOR_SCHEMES: readonly [
|
|
213
213
|
"default",
|
|
214
214
|
"surface"
|
|
215
215
|
];
|
|
216
|
-
|
|
217
|
-
export declare type
|
|
216
|
+
/** @deprecated */
|
|
217
|
+
export declare type ScrollerGradientColorScheme = typeof GRADIENT_COLOR_SCHEMES[number];
|
|
218
|
+
declare const GRADIENT_COLORS: readonly [
|
|
219
|
+
"background-base",
|
|
220
|
+
"background-surface"
|
|
221
|
+
];
|
|
222
|
+
export declare type ScrollerGradientColor = typeof GRADIENT_COLORS[number];
|
|
223
|
+
export declare type ScrollerScrollToPosition = {
|
|
218
224
|
scrollPosition: number;
|
|
219
225
|
isSmooth?: boolean;
|
|
220
226
|
} | string;
|
|
@@ -222,7 +228,9 @@ declare const SCROLL_INDICATOR_POSITIONS: readonly [
|
|
|
222
228
|
"top",
|
|
223
229
|
"center"
|
|
224
230
|
];
|
|
225
|
-
|
|
231
|
+
/** @deprecated */
|
|
232
|
+
export declare type ScrollerScrollIndicatorPosition = typeof SCROLL_INDICATOR_POSITIONS[number];
|
|
233
|
+
export declare type ScrollerAlignScrollIndicator = ScrollerScrollIndicatorPosition;
|
|
226
234
|
declare const THEMES: readonly [
|
|
227
235
|
"light",
|
|
228
236
|
"dark"
|
|
@@ -262,23 +270,24 @@ declare const TEXT_ALIGNS: readonly [
|
|
|
262
270
|
export declare type TextAlign = typeof TEXT_ALIGNS[number];
|
|
263
271
|
declare const TEXT_COLORS: readonly [
|
|
264
272
|
"primary",
|
|
265
|
-
"brand",
|
|
266
|
-
"default",
|
|
267
273
|
"contrast-low",
|
|
268
|
-
"neutral-contrast-low",
|
|
269
274
|
"contrast-medium",
|
|
270
|
-
"neutral-contrast-medium",
|
|
271
275
|
"contrast-high",
|
|
272
|
-
"neutral-contrast-high",
|
|
273
276
|
"notification-success",
|
|
274
277
|
"notification-warning",
|
|
275
278
|
"notification-error",
|
|
276
279
|
"notification-info",
|
|
277
|
-
"
|
|
278
|
-
"
|
|
280
|
+
"inherit",
|
|
281
|
+
"brand",
|
|
282
|
+
"default",
|
|
283
|
+
"neutral-contrast-low",
|
|
284
|
+
"neutral-contrast-medium",
|
|
285
|
+
"neutral-contrast-high",
|
|
286
|
+
"notification-neutral"
|
|
279
287
|
];
|
|
280
288
|
export declare type TextColor = typeof TEXT_COLORS[number];
|
|
281
289
|
declare const TEXT_SIZES: readonly [
|
|
290
|
+
"xx-small",
|
|
282
291
|
"x-small",
|
|
283
292
|
"small",
|
|
284
293
|
"medium",
|
|
@@ -288,11 +297,11 @@ declare const TEXT_SIZES: readonly [
|
|
|
288
297
|
];
|
|
289
298
|
export declare type TextSize = typeof TEXT_SIZES[number];
|
|
290
299
|
declare const TEXT_WEIGHTS: readonly [
|
|
291
|
-
"thin",
|
|
292
300
|
"regular",
|
|
293
|
-
"semibold",
|
|
294
301
|
"semi-bold",
|
|
295
|
-
"bold"
|
|
302
|
+
"bold",
|
|
303
|
+
"thin",
|
|
304
|
+
"semibold"
|
|
296
305
|
];
|
|
297
306
|
export declare type TextWeight = typeof TEXT_WEIGHTS[number];
|
|
298
307
|
declare const LINK_TARGETS: readonly [
|
|
@@ -503,28 +512,46 @@ export declare type AccordionChangeEvent = {
|
|
|
503
512
|
};
|
|
504
513
|
export declare type AccordionTag = HeadingTag;
|
|
505
514
|
declare const BANNER_STATES: readonly [
|
|
506
|
-
"error",
|
|
507
|
-
"warning",
|
|
508
515
|
"info",
|
|
516
|
+
"warning",
|
|
517
|
+
"error",
|
|
509
518
|
"neutral"
|
|
510
519
|
];
|
|
511
520
|
export declare type BannerState = typeof BANNER_STATES[number];
|
|
512
521
|
declare const BANNER_WIDTHS: readonly [
|
|
513
|
-
"basic",
|
|
514
522
|
"extended",
|
|
523
|
+
"basic",
|
|
515
524
|
"fluid"
|
|
516
525
|
];
|
|
517
526
|
export declare type BannerWidth = typeof BANNER_WIDTHS[number];
|
|
527
|
+
export declare type ButtonIcon = LinkButtonIconName;
|
|
518
528
|
declare const BUTTON_GROUP_DIRECTIONS: readonly [
|
|
519
529
|
"row",
|
|
520
530
|
"column"
|
|
521
531
|
];
|
|
522
532
|
export declare type ButtonGroupDirection = typeof BUTTON_GROUP_DIRECTIONS[number];
|
|
533
|
+
export declare type ButtonPureType = ButtonType;
|
|
534
|
+
export declare type ButtonPureIcon = LinkButtonIconName;
|
|
535
|
+
export declare type ButtonPureAriaAttribute = ButtonAriaAttribute;
|
|
536
|
+
export declare type ButtonPureAlignLabel = AlignLabel;
|
|
537
|
+
export declare type ButtonPureWeight = TextWeight;
|
|
538
|
+
export declare type ButtonPureSize = TextSize;
|
|
539
|
+
declare const CAROUSEL_WIDTHS: readonly [
|
|
540
|
+
"basic",
|
|
541
|
+
"extended"
|
|
542
|
+
];
|
|
543
|
+
export declare type CarouselWidth = typeof CAROUSEL_WIDTHS[number];
|
|
544
|
+
declare const CAROUSEL_ALIGN_HEADERS: readonly [
|
|
545
|
+
"left",
|
|
546
|
+
"center"
|
|
547
|
+
];
|
|
548
|
+
export declare type CarouselAlignHeader = typeof CAROUSEL_ALIGN_HEADERS[number];
|
|
523
549
|
export declare type CarouselInternationalization = Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
|
|
524
550
|
export declare type CarouselChangeEvent = {
|
|
525
551
|
activeIndex: number;
|
|
526
552
|
previousIndex: number;
|
|
527
553
|
};
|
|
554
|
+
export declare type CheckboxWrapperState = FormState;
|
|
528
555
|
declare const CONTENT_WRAPPER_BACKGROUND_COLORS: readonly [
|
|
529
556
|
"transparent",
|
|
530
557
|
"default"
|
|
@@ -548,6 +575,7 @@ declare const DISPLAY_TAGS: readonly [
|
|
|
548
575
|
];
|
|
549
576
|
export declare type DisplayTag = typeof DISPLAY_TAGS[number];
|
|
550
577
|
declare const DISPLAY_SIZES: readonly [
|
|
578
|
+
"small",
|
|
551
579
|
"medium",
|
|
552
580
|
"large",
|
|
553
581
|
"inherit"
|
|
@@ -560,21 +588,26 @@ declare const DISPLAY_COLORS: readonly [
|
|
|
560
588
|
export declare type DisplayColor = typeof DISPLAY_COLORS[number];
|
|
561
589
|
export declare type DisplayAlign = TextAlign;
|
|
562
590
|
declare const DIVIDER_COLORS: readonly [
|
|
591
|
+
"contrast-low",
|
|
592
|
+
"contrast-medium",
|
|
593
|
+
"contrast-high",
|
|
563
594
|
"neutral-contrast-high",
|
|
564
595
|
"neutral-contrast-medium",
|
|
565
596
|
"neutral-contrast-low"
|
|
566
597
|
];
|
|
567
598
|
export declare type DividerColor = typeof DIVIDER_COLORS[number];
|
|
568
|
-
declare const
|
|
599
|
+
declare const DIVIDER_DIRECTIONS: readonly [
|
|
569
600
|
"vertical",
|
|
570
601
|
"horizontal"
|
|
571
602
|
];
|
|
572
|
-
export declare type
|
|
603
|
+
export declare type DividerDirection = typeof DIVIDER_DIRECTIONS[number];
|
|
604
|
+
export declare type DividerOrientation = DividerDirection;
|
|
573
605
|
declare const FIELDSET_WRAPPER_LABEL_SIZES: readonly [
|
|
574
606
|
"small",
|
|
575
607
|
"medium"
|
|
576
608
|
];
|
|
577
609
|
export declare type FieldsetWrapperLabelSize = typeof FIELDSET_WRAPPER_LABEL_SIZES[number];
|
|
610
|
+
export declare type FieldsetWrapperState = FormState;
|
|
578
611
|
export declare type FlexInline = boolean;
|
|
579
612
|
declare const FLEX_WRAPS: readonly [
|
|
580
613
|
"nowrap",
|
|
@@ -715,7 +748,6 @@ declare const HEADING_SIZES: readonly [
|
|
|
715
748
|
"large",
|
|
716
749
|
"x-large",
|
|
717
750
|
"xx-large",
|
|
718
|
-
"xxx-large",
|
|
719
751
|
"inherit"
|
|
720
752
|
];
|
|
721
753
|
export declare type HeadingSize = typeof HEADING_SIZES[number];
|
|
@@ -759,38 +791,48 @@ export declare type IconAriaAttribute = typeof ICON_ARIA_ATTRIBUTES[number];
|
|
|
759
791
|
export declare type IconSize = TextSize;
|
|
760
792
|
declare const ICON_COLORS: readonly [
|
|
761
793
|
"primary",
|
|
762
|
-
"brand",
|
|
763
|
-
"default",
|
|
764
794
|
"contrast-low",
|
|
765
|
-
"neutral-contrast-low",
|
|
766
795
|
"contrast-medium",
|
|
767
|
-
"neutral-contrast-medium",
|
|
768
796
|
"contrast-high",
|
|
769
|
-
"neutral-contrast-high",
|
|
770
797
|
"notification-success",
|
|
771
798
|
"notification-warning",
|
|
772
799
|
"notification-error",
|
|
773
800
|
"notification-info",
|
|
774
|
-
"notification-neutral",
|
|
775
801
|
"inherit",
|
|
776
|
-
"
|
|
802
|
+
"brand",
|
|
803
|
+
"default",
|
|
804
|
+
"neutral-contrast-low",
|
|
805
|
+
"neutral-contrast-medium",
|
|
806
|
+
"neutral-contrast-high",
|
|
807
|
+
"notification-neutral",
|
|
808
|
+
"state-disabled"
|
|
777
809
|
];
|
|
778
810
|
export declare type IconColor = typeof ICON_COLORS[number];
|
|
779
811
|
declare const INLINE_NOTIFICATION_STATES: readonly [
|
|
780
|
-
"
|
|
781
|
-
"warning",
|
|
812
|
+
"success",
|
|
782
813
|
"info",
|
|
783
|
-
"
|
|
784
|
-
"
|
|
814
|
+
"warning",
|
|
815
|
+
"error",
|
|
816
|
+
"neutral"
|
|
785
817
|
];
|
|
786
818
|
export declare type InlineNotificationState = typeof INLINE_NOTIFICATION_STATES[number];
|
|
819
|
+
export declare type InlineNotificationActionIcon = IconName;
|
|
787
820
|
declare const LINK_ARIA_ATTRIBUTES: readonly [
|
|
788
821
|
"aria-label"
|
|
789
822
|
];
|
|
790
823
|
export declare type LinkAriaAttribute = typeof LINK_ARIA_ATTRIBUTES[number];
|
|
791
|
-
export declare type
|
|
824
|
+
export declare type LinkIcon = LinkButtonIconName;
|
|
825
|
+
export declare type LinkPureIcon = LinkButtonIconName;
|
|
826
|
+
export declare type LinkPureAriaAttribute = LinkAriaAttribute;
|
|
827
|
+
export declare type LinkPureAlignLabel = AlignLabel;
|
|
828
|
+
export declare type LinkPureWeight = TextWeight;
|
|
829
|
+
export declare type LinkPureSize = TextSize;
|
|
830
|
+
export declare type LinkPureTarget = LinkTarget;
|
|
831
|
+
export declare type LinkSocialIcon = Extract<IconName, "logo-facebook" | "logo-google" | "logo-instagram" | "logo-linkedin" | "logo-pinterest" | "logo-twitter" | "logo-wechat" | "logo-whatsapp" | "logo-xing" | "logo-youtube" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-foursquare" | "logo-gmail" | "logo-hatena" | "logo-kaixin" | "logo-kakaotalk" | "logo-naver" | "logo-qq-share" | "logo-qq" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-viber" | "logo-vk" | "logo-weibo" | "logo-yahoo" | "logo-youku">;
|
|
832
|
+
export declare type LinkSocialTarget = LinkTarget;
|
|
792
833
|
declare const LINK_TILE_WEIGHTS: readonly [
|
|
793
834
|
"regular",
|
|
835
|
+
"semi-bold",
|
|
794
836
|
"semibold"
|
|
795
837
|
];
|
|
796
838
|
export declare type LinkTileWeight = typeof LINK_TILE_WEIGHTS[number];
|
|
@@ -812,12 +854,15 @@ declare const LINK_TILE_ASPECT_RATIOS: readonly [
|
|
|
812
854
|
"9:16"
|
|
813
855
|
];
|
|
814
856
|
export declare type LinkTileAspectRatio = typeof LINK_TILE_ASPECT_RATIOS[number];
|
|
857
|
+
export declare type LinkTileTarget = LinkTarget;
|
|
858
|
+
export declare type LinkTileAriaAttribute = LinkAriaAttribute;
|
|
815
859
|
declare const MARQUE_SIZES: readonly [
|
|
816
860
|
"responsive",
|
|
817
861
|
"small",
|
|
818
862
|
"medium"
|
|
819
863
|
];
|
|
820
864
|
export declare type MarqueSize = typeof MARQUE_SIZES[number];
|
|
865
|
+
export declare type MarqueTarget = LinkTarget;
|
|
821
866
|
declare const MARQUE_ARIA_ATTRIBUTES: readonly [
|
|
822
867
|
"aria-label"
|
|
823
868
|
];
|
|
@@ -825,16 +870,43 @@ export declare type MarqueAriaAttribute = typeof MARQUE_ARIA_ATTRIBUTES[number];
|
|
|
825
870
|
declare const MODAL_ARIA_ATTRIBUTES: readonly [
|
|
826
871
|
"aria-label"
|
|
827
872
|
];
|
|
828
|
-
export declare type ModalAriaAttribute = typeof MODAL_ARIA_ATTRIBUTES[number];
|
|
873
|
+
export declare type ModalAriaAttribute = (typeof MODAL_ARIA_ATTRIBUTES)[number];
|
|
874
|
+
declare const MODEL_SIGNATURES_MANIFEST: {
|
|
875
|
+
"718": string;
|
|
876
|
+
"911": string;
|
|
877
|
+
boxster: string;
|
|
878
|
+
cayenne: string;
|
|
879
|
+
cayman: string;
|
|
880
|
+
macan: string;
|
|
881
|
+
panamera: string;
|
|
882
|
+
taycan: string;
|
|
883
|
+
"turbo-s": string;
|
|
884
|
+
turbo: string;
|
|
885
|
+
};
|
|
886
|
+
declare const MODEL_SIGNATURE_SIZES: readonly [
|
|
887
|
+
"small",
|
|
888
|
+
"inherit"
|
|
889
|
+
];
|
|
890
|
+
export declare type ModelSignatureSize = typeof MODEL_SIGNATURE_SIZES[number];
|
|
891
|
+
export declare type ModelSignatureModel = keyof typeof MODEL_SIGNATURES_MANIFEST;
|
|
892
|
+
declare const MODEL_SIGNATURE_COLORS: readonly [
|
|
893
|
+
"primary",
|
|
894
|
+
"contrast-low",
|
|
895
|
+
"contrast-medium",
|
|
896
|
+
"contrast-high",
|
|
897
|
+
"inherit"
|
|
898
|
+
];
|
|
899
|
+
export declare type ModelSignatureColor = typeof MODEL_SIGNATURE_COLORS[number];
|
|
829
900
|
declare const PAGINATION_NUMBER_OF_PAGE_LINKS: readonly [
|
|
830
901
|
5,
|
|
831
902
|
7
|
|
832
903
|
];
|
|
833
|
-
export declare type
|
|
834
|
-
export declare type
|
|
904
|
+
export declare type PaginationMaxNumberOfPageLinks = typeof PAGINATION_NUMBER_OF_PAGE_LINKS[number];
|
|
905
|
+
export declare type PaginationChangeEvent = {
|
|
835
906
|
page: number;
|
|
836
907
|
previousPage: number;
|
|
837
908
|
};
|
|
909
|
+
export declare type PaginationInternationalization = Partial<Record<"root" | "prev" | "next" | "page", string>>;
|
|
838
910
|
declare const POPOVER_DIRECTIONS: readonly [
|
|
839
911
|
"top",
|
|
840
912
|
"right",
|
|
@@ -842,6 +914,11 @@ declare const POPOVER_DIRECTIONS: readonly [
|
|
|
842
914
|
"left"
|
|
843
915
|
];
|
|
844
916
|
export declare type PopoverDirection = typeof POPOVER_DIRECTIONS[number];
|
|
917
|
+
declare const POPOVER_ARIA_ATTRIBUTES: readonly [
|
|
918
|
+
"aria-label"
|
|
919
|
+
];
|
|
920
|
+
export declare type PopoverAriaAttribute = typeof POPOVER_ARIA_ATTRIBUTES[number];
|
|
921
|
+
export declare type RadioButtonWrapperState = FormState;
|
|
845
922
|
declare const SEGMENTED_CONTROL_BACKGROUND_COLORS: readonly [
|
|
846
923
|
"background-surface",
|
|
847
924
|
"background-default"
|
|
@@ -850,12 +927,14 @@ export declare type SegmentedControlBackgroundColor = typeof SEGMENTED_CONTROL_B
|
|
|
850
927
|
export declare type SegmentedControlChangeEvent = {
|
|
851
928
|
value: string | number;
|
|
852
929
|
};
|
|
930
|
+
export declare type SegmentedControlItemIcon = LinkButtonIconName;
|
|
853
931
|
declare const DROPDOWN_DIRECTIONS: readonly [
|
|
854
932
|
"down",
|
|
855
933
|
"up",
|
|
856
934
|
"auto"
|
|
857
935
|
];
|
|
858
|
-
export declare type
|
|
936
|
+
export declare type SelectWrapperDropdownDirection = typeof DROPDOWN_DIRECTIONS[number];
|
|
937
|
+
export declare type SelectWrapperState = FormState;
|
|
859
938
|
declare const SPINNER_SIZES: readonly [
|
|
860
939
|
"small",
|
|
861
940
|
"medium",
|
|
@@ -872,7 +951,7 @@ declare const STEPPER_HORIZONTAL_SIZES: readonly [
|
|
|
872
951
|
"medium"
|
|
873
952
|
];
|
|
874
953
|
export declare type StepperHorizontalSize = typeof STEPPER_HORIZONTAL_SIZES[number];
|
|
875
|
-
export declare type
|
|
954
|
+
export declare type StepperHorizontalChangeEvent = {
|
|
876
955
|
activeStepIndex: number;
|
|
877
956
|
};
|
|
878
957
|
declare const STEPPER_ITEM_STATES: readonly [
|
|
@@ -880,7 +959,8 @@ declare const STEPPER_ITEM_STATES: readonly [
|
|
|
880
959
|
"complete",
|
|
881
960
|
"warning"
|
|
882
961
|
];
|
|
883
|
-
export declare type
|
|
962
|
+
export declare type StepperHorizontalItemState = typeof STEPPER_ITEM_STATES[number];
|
|
963
|
+
export declare type SwitchAlignLabel = AlignLabel;
|
|
884
964
|
export declare type SwitchChangeEvent = {
|
|
885
965
|
checked: boolean;
|
|
886
966
|
};
|
|
@@ -890,44 +970,57 @@ export declare type TableHeadCellSort = {
|
|
|
890
970
|
active?: boolean;
|
|
891
971
|
direction?: Direction;
|
|
892
972
|
};
|
|
893
|
-
export declare type
|
|
894
|
-
declare const
|
|
973
|
+
export declare type TableChangeEvent = TableHeadCellSort;
|
|
974
|
+
declare const TABS_BAR_SIZES: readonly [
|
|
895
975
|
"small",
|
|
896
976
|
"medium"
|
|
897
977
|
];
|
|
898
|
-
export declare type
|
|
899
|
-
declare const
|
|
978
|
+
export declare type TabsBarSize = typeof TABS_BAR_SIZES[number];
|
|
979
|
+
declare const TABS_BAR_WEIGHTS: readonly [
|
|
900
980
|
"regular",
|
|
981
|
+
"semi-bold",
|
|
901
982
|
"semibold"
|
|
902
983
|
];
|
|
903
|
-
export declare type
|
|
904
|
-
export declare type
|
|
984
|
+
export declare type TabsBarWeight = typeof TABS_BAR_WEIGHTS[number];
|
|
985
|
+
export declare type TabsBarChangeEvent = {
|
|
905
986
|
activeTabIndex: number;
|
|
906
987
|
};
|
|
907
|
-
|
|
988
|
+
/** @deprecated */
|
|
989
|
+
export declare type TabsBarGradientColorScheme = ScrollerGradientColorScheme;
|
|
990
|
+
export declare type TabsBarGradientColor = ScrollerGradientColor;
|
|
991
|
+
export declare type TabsSize = TabsBarSize;
|
|
992
|
+
export declare type TabsWeight = TabsBarWeight;
|
|
993
|
+
/** @deprecated */
|
|
994
|
+
export declare type TabsGradientColorScheme = TabsBarGradientColorScheme;
|
|
995
|
+
export declare type TabsGradientColor = TabsBarGradientColor;
|
|
996
|
+
export declare type TabsChangeEvent = TabsBarChangeEvent;
|
|
997
|
+
declare const TAG_DISMISSIBLE_COLORS: readonly [
|
|
998
|
+
"background-base",
|
|
999
|
+
"background-surface",
|
|
1000
|
+
"background-default"
|
|
1001
|
+
];
|
|
1002
|
+
export declare type TagDismissibleColor = typeof TAG_DISMISSIBLE_COLORS[number];
|
|
1003
|
+
declare const TAG_DISMISSIBLE_ARIA_ATTRIBUTES: readonly [
|
|
1004
|
+
"aria-label"
|
|
1005
|
+
];
|
|
1006
|
+
export declare type TagDismissibleAriaAttribute = typeof TAG_DISMISSIBLE_ARIA_ATTRIBUTES[number];
|
|
1007
|
+
export declare type TagIcon = IconName;
|
|
908
1008
|
declare const TAG_COLORS: readonly [
|
|
1009
|
+
"background-base",
|
|
909
1010
|
"background-surface",
|
|
910
1011
|
"background-default",
|
|
911
|
-
"background-base",
|
|
912
|
-
"neutral-contrast-high",
|
|
913
1012
|
"primary",
|
|
1013
|
+
"notification-info-soft",
|
|
1014
|
+
"notification-warning-soft",
|
|
1015
|
+
"notification-success-soft",
|
|
1016
|
+
"notification-error-soft",
|
|
1017
|
+
"neutral-contrast-high",
|
|
914
1018
|
"notification-neutral",
|
|
915
|
-
"notification-info",
|
|
916
1019
|
"notification-warning",
|
|
917
1020
|
"notification-success",
|
|
918
1021
|
"notification-error"
|
|
919
1022
|
];
|
|
920
1023
|
export declare type TagColor = typeof TAG_COLORS[number];
|
|
921
|
-
declare const TAG_DISMISSIBLE_COLORS: readonly [
|
|
922
|
-
"background-surface",
|
|
923
|
-
"background-default",
|
|
924
|
-
"background-base"
|
|
925
|
-
];
|
|
926
|
-
export declare type TagDismissibleColor = typeof TAG_DISMISSIBLE_COLORS[number];
|
|
927
|
-
declare const TAG_DISMISSIBLE_ARIA_ATTRIBUTES: readonly [
|
|
928
|
-
"aria-label"
|
|
929
|
-
];
|
|
930
|
-
export declare type TagDismissibleAriaAttribute = typeof TAG_DISMISSIBLE_ARIA_ATTRIBUTES[number];
|
|
931
1024
|
declare const TEXT_TAGS: readonly [
|
|
932
1025
|
"p",
|
|
933
1026
|
"span",
|
|
@@ -945,16 +1038,27 @@ declare const UNIT_POSITIONS: readonly [
|
|
|
945
1038
|
"suffix"
|
|
946
1039
|
];
|
|
947
1040
|
export declare type TextFieldWrapperUnitPosition = typeof UNIT_POSITIONS[number];
|
|
1041
|
+
export declare type TextFieldWrapperActionIcon = Extract<IconName, "locate">;
|
|
1042
|
+
export declare type TextFieldWrapperState = FormState;
|
|
948
1043
|
declare const LIST_TYPES: readonly [
|
|
949
1044
|
"unordered",
|
|
950
1045
|
"ordered"
|
|
951
1046
|
];
|
|
952
|
-
|
|
1047
|
+
/** @deprecated */
|
|
1048
|
+
export declare type TextListListType = typeof LIST_TYPES[number];
|
|
953
1049
|
declare const ORDER_TYPES: readonly [
|
|
954
1050
|
"numbered",
|
|
955
1051
|
"alphabetically"
|
|
956
1052
|
];
|
|
957
|
-
|
|
1053
|
+
/** @deprecated */
|
|
1054
|
+
export declare type TextListOrderType = typeof ORDER_TYPES[number];
|
|
1055
|
+
declare const TEXT_LIST_TYPES: readonly [
|
|
1056
|
+
"unordered",
|
|
1057
|
+
"numbered",
|
|
1058
|
+
"alphabetically"
|
|
1059
|
+
];
|
|
1060
|
+
export declare type TextListType = typeof TEXT_LIST_TYPES[number];
|
|
1061
|
+
export declare type TextareaWrapperState = FormState;
|
|
958
1062
|
declare const TOAST_STATES: readonly [
|
|
959
1063
|
"info",
|
|
960
1064
|
"success",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.3",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.0.0-alpha.
|
|
20
|
+
"@porsche-design-system/components-js": "3.0.0-alpha.3"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": ">=3.0.0 <4.0.0"
|
package/plugin.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { App, InjectionKey } from 'vue';
|
|
2
|
+
export type PorscheDesignSystemPluginOptions = {
|
|
3
|
+
prefix?: string;
|
|
4
|
+
extends?: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export type PorscheDesignSystemPlugin = {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
install: (app: App, options?: PorscheDesignSystemPluginOptions) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const porscheDesignSystemSymbol: InjectionKey<PorscheDesignSystemPlugin>;
|
|
11
|
+
export declare function usePorscheDesignSystemPlugin(): PorscheDesignSystemPlugin;
|
|
12
|
+
export declare function createPorscheDesignSystem(options?: {
|
|
13
|
+
prefix: string;
|
|
14
|
+
}): PorscheDesignSystemPlugin;
|
package/plugin.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { inject as n, ref as c } from "vue";
|
|
2
|
+
import { componentsReady as i, load as m } from "@porsche-design-system/components-js";
|
|
3
|
+
import { prefixInjectionKey as a } from "./utils.js";
|
|
4
|
+
const t = Symbol();
|
|
5
|
+
function u() {
|
|
6
|
+
const e = n(t);
|
|
7
|
+
if (!e)
|
|
8
|
+
throw new Error(
|
|
9
|
+
"[Porsche Design System Vue] No plugin was provided. Make sure to create one via `createPorscheDesignSystem()`."
|
|
10
|
+
);
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
function g(e = { prefix: "" }) {
|
|
14
|
+
const r = c(!1), s = {
|
|
15
|
+
options: e,
|
|
16
|
+
isPorscheDesignSystemLoaded: r,
|
|
17
|
+
componentsReady: i,
|
|
18
|
+
async install(o) {
|
|
19
|
+
r.value || (m({ prefix: e.prefix }), await i(), r.value = !0), o.provide(a, e.prefix), o.provide(t, s);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return s;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
g as createPorscheDesignSystem,
|
|
26
|
+
t as porscheDesignSystemSymbol,
|
|
27
|
+
u as usePorscheDesignSystemPlugin
|
|
28
|
+
};
|
package/public-api.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export * from './lib/components';
|
|
|
3
3
|
export * from './lib/types';
|
|
4
4
|
export { useToastManager } from './utils';
|
|
5
5
|
export { default as PorscheDesignSystemProvider } from './PorscheDesignSystemProvider.vue';
|
|
6
|
+
export { createPorscheDesignSystem, usePorscheDesignSystemPlugin } from './plugin';
|