@porsche-design-system/components-react 3.10.0-rc.3 → 3.10.0-rc.5
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 +75 -0
- package/cjs/lib/components/carousel.wrapper.cjs +3 -3
- package/cjs/public-api.cjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +5 -5
- package/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/carousel.wrapper.d.ts +21 -5
- package/esm/lib/components/carousel.wrapper.mjs +3 -3
- package/esm/lib/components/checkbox-wrapper.wrapper.d.ts +2 -2
- package/esm/lib/components/flyout-navigation-item.wrapper.d.ts +12 -0
- package/esm/lib/components/flyout-navigation.wrapper.d.ts +3 -3
- package/esm/lib/components/icon.wrapper.d.ts +1 -1
- package/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile-product.wrapper.d.ts +3 -3
- package/esm/lib/components/multi-select.wrapper.d.ts +3 -3
- package/esm/lib/components/pagination.wrapper.d.ts +5 -5
- package/esm/lib/components/pin-code.wrapper.d.ts +3 -3
- package/esm/lib/components/radio-button-wrapper.wrapper.d.ts +2 -2
- package/esm/lib/components/segmented-control.wrapper.d.ts +5 -5
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +5 -5
- package/esm/lib/components/switch.wrapper.d.ts +5 -5
- package/esm/lib/components/table.wrapper.d.ts +5 -5
- package/esm/lib/components/tabs-bar.wrapper.d.ts +5 -5
- package/esm/lib/components/tabs.wrapper.d.ts +5 -5
- package/esm/lib/components/text-field-wrapper.wrapper.d.ts +2 -2
- package/esm/lib/components/text.wrapper.d.ts +1 -1
- package/esm/lib/types.d.ts +88 -55
- package/jsdom-polyfill/index.d.ts +1 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +332 -338
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +41 -24
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +10 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +12 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/minifyCss.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +332 -338
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +40 -24
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +11 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +12 -11
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/minifyCss.mjs +4 -4
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +21 -5
- package/ssr/esm/lib/components/checkbox-wrapper.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/flyout-navigation-item.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/flyout-navigation.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +3 -3
- package/ssr/esm/lib/components/radio-button-wrapper.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/switch.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/table.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +5 -5
- package/ssr/esm/lib/components/text-field-wrapper.wrapper.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/flyout-navigation-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout-navigation.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/types.d.ts +88 -55
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,81 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.10.0-rc.5] - 2024-01-16
|
|
18
|
+
|
|
19
|
+
#### Changed
|
|
20
|
+
|
|
21
|
+
- `visibility` css property can be overridden on all components, e.g. to make use of `visibility: hidden;`
|
|
22
|
+
([#2988](https://github.com/porsche-design-system/porsche-design-system/pull/2988))
|
|
23
|
+
- `Carousel`: Named slot `header` renamed to `controls`
|
|
24
|
+
([#2992](https://github.com/porsche-design-system/porsche-design-system/pull/2992))
|
|
25
|
+
|
|
26
|
+
### [3.10.0-rc.4] - 2024-01-15
|
|
27
|
+
|
|
28
|
+
#### Added
|
|
29
|
+
|
|
30
|
+
- `Icon`: Auto-flipping icons (certain ones only) in RTL (right-to-left) mode
|
|
31
|
+
([#2957](https://github.com/porsche-design-system/porsche-design-system/pull/2957))
|
|
32
|
+
- `Carousel`: Prop `heading-size`, named slot `header`
|
|
33
|
+
([#2915](https://github.com/porsche-design-system/porsche-design-system/pull/2915))
|
|
34
|
+
- `Accordion`: support for custom click area for `compact` variant
|
|
35
|
+
([#2920](https://github.com/porsche-design-system/porsche-design-system/pull/2920))
|
|
36
|
+
- `@font-face` supports Middle East languages
|
|
37
|
+
([#2946](https://github.com/porsche-design-system/porsche-design-system/pull/2946))
|
|
38
|
+
- Partials: `getFontLinks` supports preloading `arabic`, `pashto` and `urdu` subsets
|
|
39
|
+
([#2946](https://github.com/porsche-design-system/porsche-design-system/pull/2946))
|
|
40
|
+
|
|
41
|
+
#### Changed
|
|
42
|
+
|
|
43
|
+
- `Flyout Navigation`: Improved validation and `activeIdentifier` isn't automatically updated anymore
|
|
44
|
+
([#2935](https://github.com/porsche-design-system/porsche-design-system/pull/2935))
|
|
45
|
+
- `Carousel`: Position and width of heading and description
|
|
46
|
+
([#2915](https://github.com/porsche-design-system/porsche-design-system/pull/2915))
|
|
47
|
+
- `Model Signature` asset for `model="macan"`
|
|
48
|
+
- Aligned naming of all `CustomEvent<T>` types and deprecated old ones since they are in fact typing the `detail: T`
|
|
49
|
+
property of the event
|
|
50
|
+
|
|
51
|
+
```diff
|
|
52
|
+
- AccordionUpdateEvent
|
|
53
|
+
+ AccordionUpdateEventDetail
|
|
54
|
+
- CarouselUpdateEvent
|
|
55
|
+
+ CarouselUpdateEventDetail
|
|
56
|
+
- FlyoutNavigationUpdateEvent
|
|
57
|
+
+ FlyoutNavigationUpdateEventDetail
|
|
58
|
+
- LinkTileProductLikeEvent
|
|
59
|
+
+ LinkTileProductLikeEventDetail
|
|
60
|
+
- MultiSelectUpdateEvent
|
|
61
|
+
+ MultiSelectUpdateEventDetail
|
|
62
|
+
- PaginationUpdateEvent
|
|
63
|
+
+ PaginationUpdateEventDetail
|
|
64
|
+
- PinCodeUpdateEvent
|
|
65
|
+
+ PinCodeUpdateEventDetail
|
|
66
|
+
- SegmentedControlUpdateEvent
|
|
67
|
+
+ SegmentedControlUpdateEventDetail
|
|
68
|
+
- StepperHorizontalUpdateEvent
|
|
69
|
+
+ StepperHorizontalUpdateEventDetail
|
|
70
|
+
- SwitchUpdateEvent
|
|
71
|
+
+ SwitchUpdateEventDetail
|
|
72
|
+
- TableUpdateEvent
|
|
73
|
+
+ TableUpdateEventDetail
|
|
74
|
+
- TabsUpdateEvent
|
|
75
|
+
+ TabsUpdateEventDetail
|
|
76
|
+
- TabsBarUpdateEvent
|
|
77
|
+
+ TabsBarUpdateEventDetail
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### Fixed
|
|
81
|
+
|
|
82
|
+
- `Pin Code`: Focus correct input when clicking on label
|
|
83
|
+
([#2985](https://github.com/porsche-design-system/porsche-design-system/pull/2985))
|
|
84
|
+
- `Flyout Navigation`: Focus dismiss button after opening
|
|
85
|
+
([#2935](https://github.com/porsche-design-system/porsche-design-system/pull/2935))
|
|
86
|
+
- `Accordion`: Alignment of slotted heading with custom padding
|
|
87
|
+
([#2920](https://github.com/porsche-design-system/porsche-design-system/pull/2920))
|
|
88
|
+
- `Modal`: Scrollbar is hidden ([#2907](https://github.com/porsche-design-system/porsche-design-system/pull/2907))
|
|
89
|
+
- `Toast`: `max-width` when used in scale mode
|
|
90
|
+
([#2960](https://github.com/porsche-design-system/porsche-design-system/pull/2960))
|
|
91
|
+
|
|
17
92
|
### [3.10.0-rc.3] - 2023-12-12
|
|
18
93
|
|
|
19
94
|
### [3.10.0-rc.2] - 2023-12-12
|
|
@@ -6,15 +6,15 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PCarousel = react.forwardRef(({ activeSlideIndex = 0, alignHeader = 'start', description, disablePagination, heading, intl, onCarouselChange, onUpdate, pagination = true, rewind = true, skipLinkTarget, slidesPerPage = 1, theme, width = 'basic', wrapContent, className, ...rest }, ref) => {
|
|
9
|
+
const PCarousel = react.forwardRef(({ activeSlideIndex = 0, alignHeader = 'start', aria, description, disablePagination, heading, headingSize = 'x-large', intl, onCarouselChange, onUpdate, pagination = true, rewind = true, skipLinkTarget, slidesPerPage = 1, theme, width = 'basic', wrapContent, className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef();
|
|
11
11
|
hooks.useEventCallback(elementRef, 'carouselChange', onCarouselChange);
|
|
12
12
|
hooks.useEventCallback(elementRef, 'update', onUpdate);
|
|
13
13
|
const WebComponentTag = hooks.usePrefix('p-carousel');
|
|
14
|
-
const propsToSync = [activeSlideIndex, alignHeader, description, disablePagination, heading, intl, pagination, rewind, skipLinkTarget, slidesPerPage, theme || hooks.useTheme(), width, wrapContent];
|
|
14
|
+
const propsToSync = [activeSlideIndex, alignHeader, aria, description, disablePagination, heading, headingSize, intl, pagination, rewind, skipLinkTarget, slidesPerPage, theme || hooks.useTheme(), width, wrapContent];
|
|
15
15
|
hooks.useBrowserLayoutEffect(() => {
|
|
16
16
|
const { current } = elementRef;
|
|
17
|
-
['activeSlideIndex', 'alignHeader', 'description', 'disablePagination', 'heading', 'intl', 'pagination', 'rewind', 'skipLinkTarget', 'slidesPerPage', 'theme', 'width', 'wrapContent'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
|
+
['activeSlideIndex', 'alignHeader', 'aria', 'description', 'disablePagination', 'heading', 'headingSize', 'intl', 'pagination', 'rewind', 'skipLinkTarget', 'slidesPerPage', 'theme', 'width', 'wrapContent'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
18
18
|
}, propsToSync);
|
|
19
19
|
const props = {
|
|
20
20
|
...rest,
|
package/cjs/public-api.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AccordionUpdateEventDetail, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
|
|
3
3
|
export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
@@ -12,11 +12,11 @@ export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when accordion state is changed.
|
|
14
14
|
*/
|
|
15
|
-
onAccordionChange?: (event: CustomEvent<
|
|
15
|
+
onAccordionChange?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Emitted when accordion state is changed.
|
|
18
18
|
*/
|
|
19
|
-
onUpdate?: (event: CustomEvent<
|
|
19
|
+
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
20
20
|
/**
|
|
21
21
|
* Defines if accordion is open.
|
|
22
22
|
*/
|
|
@@ -46,11 +46,11 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
46
46
|
/**
|
|
47
47
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when accordion state is changed.
|
|
48
48
|
*/
|
|
49
|
-
onAccordionChange?: ((event: CustomEvent<
|
|
49
|
+
onAccordionChange?: ((event: CustomEvent<AccordionUpdateEventDetail>) => void) | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* Emitted when accordion state is changed.
|
|
52
52
|
*/
|
|
53
|
-
onUpdate?: ((event: CustomEvent<
|
|
53
|
+
onUpdate?: ((event: CustomEvent<AccordionUpdateEventDetail>) => void) | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Defines if accordion is open.
|
|
56
56
|
*/
|
|
@@ -103,7 +103,7 @@ export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit
|
|
|
103
103
|
/**
|
|
104
104
|
* Size of the button.
|
|
105
105
|
*/
|
|
106
|
-
size?: BreakpointCustomizable<"inherit" | "
|
|
106
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-small" | "x-small"> | undefined;
|
|
107
107
|
/**
|
|
108
108
|
* Stretches the area between icon and label to max available space.
|
|
109
109
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { CarouselAlignHeader, BreakpointCustomizable, CarouselInternationalization,
|
|
2
|
+
import type { CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, BreakpointCustomizable, CarouselHeadingSize, CarouselInternationalization, CarouselUpdateEventDetail, Theme, CarouselWidth } from '../types';
|
|
3
3
|
export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which slide to be active (zero-based numbering).
|
|
@@ -9,6 +9,10 @@ export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
9
9
|
* Alignment of heading and description
|
|
10
10
|
*/
|
|
11
11
|
alignHeader?: CarouselAlignHeader;
|
|
12
|
+
/**
|
|
13
|
+
* Add ARIA attributes.
|
|
14
|
+
*/
|
|
15
|
+
aria?: SelectedAriaAttributes<CarouselAriaAttribute>;
|
|
12
16
|
/**
|
|
13
17
|
* Defines the description used in the carousel.
|
|
14
18
|
*/
|
|
@@ -21,6 +25,10 @@ export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
21
25
|
* Defines the heading used in the carousel.
|
|
22
26
|
*/
|
|
23
27
|
heading?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the heading size used in the carousel.
|
|
30
|
+
*/
|
|
31
|
+
headingSize?: CarouselHeadingSize;
|
|
24
32
|
/**
|
|
25
33
|
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
26
34
|
*/
|
|
@@ -28,11 +36,11 @@ export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
28
36
|
/**
|
|
29
37
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when carousel's content slides.
|
|
30
38
|
*/
|
|
31
|
-
onCarouselChange?: (event: CustomEvent<
|
|
39
|
+
onCarouselChange?: (event: CustomEvent<CarouselUpdateEventDetail>) => void;
|
|
32
40
|
/**
|
|
33
41
|
* Emitted when carousel's content slides.
|
|
34
42
|
*/
|
|
35
|
-
onUpdate?: (event: CustomEvent<
|
|
43
|
+
onUpdate?: (event: CustomEvent<CarouselUpdateEventDetail>) => void;
|
|
36
44
|
/**
|
|
37
45
|
* If false, the carousel will not show pagination bullets at the bottom.
|
|
38
46
|
*/
|
|
@@ -72,6 +80,10 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
72
80
|
* Alignment of heading and description
|
|
73
81
|
*/
|
|
74
82
|
alignHeader?: "center" | "start" | "left" | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Add ARIA attributes.
|
|
85
|
+
*/
|
|
86
|
+
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
75
87
|
/**
|
|
76
88
|
* Defines the description used in the carousel.
|
|
77
89
|
*/
|
|
@@ -84,6 +96,10 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
84
96
|
* Defines the heading used in the carousel.
|
|
85
97
|
*/
|
|
86
98
|
heading?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Defines the heading size used in the carousel.
|
|
101
|
+
*/
|
|
102
|
+
headingSize?: CarouselHeadingSize | undefined;
|
|
87
103
|
/**
|
|
88
104
|
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
89
105
|
*/
|
|
@@ -91,11 +107,11 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
91
107
|
/**
|
|
92
108
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when carousel's content slides.
|
|
93
109
|
*/
|
|
94
|
-
onCarouselChange?: ((event: CustomEvent<
|
|
110
|
+
onCarouselChange?: ((event: CustomEvent<CarouselUpdateEventDetail>) => void) | undefined;
|
|
95
111
|
/**
|
|
96
112
|
* Emitted when carousel's content slides.
|
|
97
113
|
*/
|
|
98
|
-
onUpdate?: ((event: CustomEvent<
|
|
114
|
+
onUpdate?: ((event: CustomEvent<CarouselUpdateEventDetail>) => void) | undefined;
|
|
99
115
|
/**
|
|
100
116
|
* If false, the carousel will not show pagination bullets at the bottom.
|
|
101
117
|
*/
|
|
@@ -4,15 +4,15 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PCarousel = forwardRef(({ activeSlideIndex = 0, alignHeader = 'start', description, disablePagination, heading, intl, onCarouselChange, onUpdate, pagination = true, rewind = true, skipLinkTarget, slidesPerPage = 1, theme, width = 'basic', wrapContent, className, ...rest }, ref) => {
|
|
7
|
+
const PCarousel = forwardRef(({ activeSlideIndex = 0, alignHeader = 'start', aria, description, disablePagination, heading, headingSize = 'x-large', intl, onCarouselChange, onUpdate, pagination = true, rewind = true, skipLinkTarget, slidesPerPage = 1, theme, width = 'basic', wrapContent, className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef();
|
|
9
9
|
useEventCallback(elementRef, 'carouselChange', onCarouselChange);
|
|
10
10
|
useEventCallback(elementRef, 'update', onUpdate);
|
|
11
11
|
const WebComponentTag = usePrefix('p-carousel');
|
|
12
|
-
const propsToSync = [activeSlideIndex, alignHeader, description, disablePagination, heading, intl, pagination, rewind, skipLinkTarget, slidesPerPage, theme || useTheme(), width, wrapContent];
|
|
12
|
+
const propsToSync = [activeSlideIndex, alignHeader, aria, description, disablePagination, heading, headingSize, intl, pagination, rewind, skipLinkTarget, slidesPerPage, theme || useTheme(), width, wrapContent];
|
|
13
13
|
useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['activeSlideIndex', 'alignHeader', 'description', 'disablePagination', 'heading', 'intl', 'pagination', 'rewind', 'skipLinkTarget', 'slidesPerPage', 'theme', 'width', 'wrapContent'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['activeSlideIndex', 'alignHeader', 'aria', 'description', 'disablePagination', 'heading', 'headingSize', 'intl', 'pagination', 'rewind', 'skipLinkTarget', 'slidesPerPage', 'theme', 'width', 'wrapContent'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
|
@@ -10,7 +10,7 @@ export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
10
10
|
*/
|
|
11
11
|
label?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @experimental Disables the checkbox and shows a loading indicator.
|
|
14
14
|
*/
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
/**
|
|
@@ -36,7 +36,7 @@ export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent
|
|
|
36
36
|
*/
|
|
37
37
|
label?: string | undefined;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* @experimental Disables the checkbox and shows a loading indicator.
|
|
40
40
|
*/
|
|
41
41
|
loading?: boolean | undefined;
|
|
42
42
|
/**
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
export type PFlyoutNavigationItemProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Unique identifier which controls if this item should be shown when the active-identifier on the flyout-navigation is set to this value.
|
|
5
|
+
*/
|
|
3
6
|
identifier: string;
|
|
7
|
+
/**
|
|
8
|
+
* Label of the item.
|
|
9
|
+
*/
|
|
4
10
|
label?: string;
|
|
5
11
|
};
|
|
6
12
|
export declare const PFlyoutNavigationItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier which controls if this item should be shown when the active-identifier on the flyout-navigation is set to this value.
|
|
15
|
+
*/
|
|
7
16
|
identifier: string;
|
|
17
|
+
/**
|
|
18
|
+
* Label of the item.
|
|
19
|
+
*/
|
|
8
20
|
label?: string | undefined;
|
|
9
21
|
} & {
|
|
10
22
|
children?: import("react").ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { SelectedAriaAttributes, FlyoutNavigationAriaAttribute,
|
|
2
|
+
import type { SelectedAriaAttributes, FlyoutNavigationAriaAttribute, FlyoutNavigationUpdateEventDetail, Theme } from '../types';
|
|
3
3
|
export type PFlyoutNavigationProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which flyout-navigation-item to be visualized as opened.
|
|
@@ -16,7 +16,7 @@ export type PFlyoutNavigationProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
16
16
|
/**
|
|
17
17
|
* Emitted when activeIdentifier is changed.
|
|
18
18
|
*/
|
|
19
|
-
onUpdate?: (event: CustomEvent<
|
|
19
|
+
onUpdate?: (event: CustomEvent<FlyoutNavigationUpdateEventDetail>) => void;
|
|
20
20
|
/**
|
|
21
21
|
* If true, the flyout-navigation is visualized as opened.
|
|
22
22
|
*/
|
|
@@ -42,7 +42,7 @@ export declare const PFlyoutNavigation: import("react").ForwardRefExoticComponen
|
|
|
42
42
|
/**
|
|
43
43
|
* Emitted when activeIdentifier is changed.
|
|
44
44
|
*/
|
|
45
|
-
onUpdate?: ((event: CustomEvent<
|
|
45
|
+
onUpdate?: ((event: CustomEvent<FlyoutNavigationUpdateEventDetail>) => void) | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* If true, the flyout-navigation is visualized as opened.
|
|
48
48
|
*/
|
|
@@ -52,7 +52,7 @@ export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
52
52
|
/**
|
|
53
53
|
* The size of the icon.
|
|
54
54
|
*/
|
|
55
|
-
size?: "inherit" | "
|
|
55
|
+
size?: "inherit" | "small" | "medium" | "large" | "x-large" | "xx-small" | "x-small" | undefined;
|
|
56
56
|
/**
|
|
57
57
|
* Specifies a whole icon path which can be used for custom icons.
|
|
58
58
|
*/
|
|
@@ -103,7 +103,7 @@ export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
103
103
|
/**
|
|
104
104
|
* Size of the link.
|
|
105
105
|
*/
|
|
106
|
-
size?: BreakpointCustomizable<"inherit" | "
|
|
106
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-small" | "x-small"> | undefined;
|
|
107
107
|
/**
|
|
108
108
|
* Stretches the area between icon and label to max available space.
|
|
109
109
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { BreakpointCustomizable, LinkTileProductAspectRatio,
|
|
2
|
+
import type { BreakpointCustomizable, LinkTileProductAspectRatio, LinkTileProductLikeEventDetail, LinkTileProductTarget, Theme } from '../types';
|
|
3
3
|
export type PLinkTileProductProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Aspect ratio of the link-tile-product.
|
|
@@ -28,7 +28,7 @@ export type PLinkTileProductProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
28
28
|
/**
|
|
29
29
|
* Emitted when the like button is clicked.
|
|
30
30
|
*/
|
|
31
|
-
onLike?: (event: CustomEvent<
|
|
31
|
+
onLike?: (event: CustomEvent<LinkTileProductLikeEventDetail>) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Product price
|
|
34
34
|
*/
|
|
@@ -74,7 +74,7 @@ export declare const PLinkTileProduct: import("react").ForwardRefExoticComponent
|
|
|
74
74
|
/**
|
|
75
75
|
* Emitted when the like button is clicked.
|
|
76
76
|
*/
|
|
77
|
-
onLike?: ((event: CustomEvent<
|
|
77
|
+
onLike?: ((event: CustomEvent<LinkTileProductLikeEventDetail>) => void) | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* Product price
|
|
80
80
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { MultiSelectDropdownDirection, BreakpointCustomizable,
|
|
2
|
+
import type { MultiSelectDropdownDirection, BreakpointCustomizable, MultiSelectUpdateEventDetail, MultiSelectState, Theme } from '../types';
|
|
3
3
|
export type PMultiSelectProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The description text.
|
|
@@ -32,7 +32,7 @@ export type PMultiSelectProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
32
32
|
/**
|
|
33
33
|
* Emitted when the selection is changed.
|
|
34
34
|
*/
|
|
35
|
-
onUpdate?: (event: CustomEvent<
|
|
35
|
+
onUpdate?: (event: CustomEvent<MultiSelectUpdateEventDetail>) => void;
|
|
36
36
|
/**
|
|
37
37
|
* A Boolean attribute indicating that an option with a non-empty string value must be selected.
|
|
38
38
|
*/
|
|
@@ -82,7 +82,7 @@ export declare const PMultiSelect: import("react").ForwardRefExoticComponent<Omi
|
|
|
82
82
|
/**
|
|
83
83
|
* Emitted when the selection is changed.
|
|
84
84
|
*/
|
|
85
|
-
onUpdate?: ((event: CustomEvent<
|
|
85
|
+
onUpdate?: ((event: CustomEvent<MultiSelectUpdateEventDetail>) => void) | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* A Boolean attribute indicating that an option with a non-empty string value must be selected.
|
|
88
88
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { PaginationInternationalization, BreakpointCustomizable, PaginationMaxNumberOfPageLinks,
|
|
2
|
+
import type { PaginationInternationalization, BreakpointCustomizable, PaginationMaxNumberOfPageLinks, PaginationUpdateEventDetail, Theme } from '../types';
|
|
3
3
|
export type PPaginationProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Index of the currently active page.
|
|
@@ -37,11 +37,11 @@ export type PPaginationProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
37
37
|
/**
|
|
38
38
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when the page changes.
|
|
39
39
|
*/
|
|
40
|
-
onPageChange?: (event: CustomEvent<
|
|
40
|
+
onPageChange?: (event: CustomEvent<PaginationUpdateEventDetail>) => void;
|
|
41
41
|
/**
|
|
42
42
|
* Emitted when the page changes.
|
|
43
43
|
*/
|
|
44
|
-
onUpdate?: (event: CustomEvent<
|
|
44
|
+
onUpdate?: (event: CustomEvent<PaginationUpdateEventDetail>) => void;
|
|
45
45
|
/**
|
|
46
46
|
* Show or hide the button to jump to the last page.
|
|
47
47
|
*/
|
|
@@ -92,11 +92,11 @@ export declare const PPagination: import("react").ForwardRefExoticComponent<Omit
|
|
|
92
92
|
/**
|
|
93
93
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when the page changes.
|
|
94
94
|
*/
|
|
95
|
-
onPageChange?: ((event: CustomEvent<
|
|
95
|
+
onPageChange?: ((event: CustomEvent<PaginationUpdateEventDetail>) => void) | undefined;
|
|
96
96
|
/**
|
|
97
97
|
* Emitted when the page changes.
|
|
98
98
|
*/
|
|
99
|
-
onUpdate?: ((event: CustomEvent<
|
|
99
|
+
onUpdate?: ((event: CustomEvent<PaginationUpdateEventDetail>) => void) | undefined;
|
|
100
100
|
/**
|
|
101
101
|
* Show or hide the button to jump to the last page.
|
|
102
102
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { BreakpointCustomizable, PinCodeLength,
|
|
2
|
+
import type { BreakpointCustomizable, PinCodeLength, PinCodeUpdateEventDetail, PinCodeState, Theme, PinCodeType } from '../types';
|
|
3
3
|
export type PPinCodeProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The description text.
|
|
@@ -36,7 +36,7 @@ export type PPinCodeProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
36
36
|
/**
|
|
37
37
|
* Emitted when selected element changes.
|
|
38
38
|
*/
|
|
39
|
-
onUpdate?: (event: CustomEvent<
|
|
39
|
+
onUpdate?: (event: CustomEvent<PinCodeUpdateEventDetail>) => void;
|
|
40
40
|
/**
|
|
41
41
|
* Marks the Pin Code as required.
|
|
42
42
|
*/
|
|
@@ -94,7 +94,7 @@ export declare const PPinCode: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
94
94
|
/**
|
|
95
95
|
* Emitted when selected element changes.
|
|
96
96
|
*/
|
|
97
|
-
onUpdate?: ((event: CustomEvent<
|
|
97
|
+
onUpdate?: ((event: CustomEvent<PinCodeUpdateEventDetail>) => void) | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* Marks the Pin Code as required.
|
|
100
100
|
*/
|
|
@@ -10,7 +10,7 @@ export type PRadioButtonWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
10
10
|
*/
|
|
11
11
|
label?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @experimental Disables the radio button and shows a loading indicator.
|
|
14
14
|
*/
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
/**
|
|
@@ -36,7 +36,7 @@ export declare const PRadioButtonWrapper: import("react").ForwardRefExoticCompon
|
|
|
36
36
|
*/
|
|
37
37
|
label?: string | undefined;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* @experimental Disables the radio button and shows a loading indicator.
|
|
40
40
|
*/
|
|
41
41
|
loading?: boolean | undefined;
|
|
42
42
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { SegmentedControlBackgroundColor, BreakpointCustomizable, SegmentedControlColumns,
|
|
2
|
+
import type { SegmentedControlBackgroundColor, BreakpointCustomizable, SegmentedControlColumns, SegmentedControlUpdateEventDetail, Theme } from '../types';
|
|
3
3
|
export type PSegmentedControlProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated since v3.0.0, will be removed with next major release. Background color variations
|
|
@@ -12,11 +12,11 @@ export type PSegmentedControlProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when selected element changes.
|
|
14
14
|
*/
|
|
15
|
-
onSegmentedControlChange?: (event: CustomEvent<
|
|
15
|
+
onSegmentedControlChange?: (event: CustomEvent<SegmentedControlUpdateEventDetail>) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Emitted when selected element changes.
|
|
18
18
|
*/
|
|
19
|
-
onUpdate?: (event: CustomEvent<
|
|
19
|
+
onUpdate?: (event: CustomEvent<SegmentedControlUpdateEventDetail>) => void;
|
|
20
20
|
/**
|
|
21
21
|
* Adapts the segmented-control color depending on the theme.
|
|
22
22
|
*/
|
|
@@ -38,11 +38,11 @@ export declare const PSegmentedControl: import("react").ForwardRefExoticComponen
|
|
|
38
38
|
/**
|
|
39
39
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when selected element changes.
|
|
40
40
|
*/
|
|
41
|
-
onSegmentedControlChange?: ((event: CustomEvent<
|
|
41
|
+
onSegmentedControlChange?: ((event: CustomEvent<SegmentedControlUpdateEventDetail>) => void) | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Emitted when selected element changes.
|
|
44
44
|
*/
|
|
45
|
-
onUpdate?: ((event: CustomEvent<
|
|
45
|
+
onUpdate?: ((event: CustomEvent<SegmentedControlUpdateEventDetail>) => void) | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Adapts the segmented-control color depending on the theme.
|
|
48
48
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StepperHorizontalUpdateEventDetail, BreakpointCustomizable, StepperHorizontalSize, Theme } from '../types';
|
|
3
3
|
export type PStepperHorizontalProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when active step is changed.
|
|
6
6
|
*/
|
|
7
|
-
onStepChange?: (event: CustomEvent<
|
|
7
|
+
onStepChange?: (event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void;
|
|
8
8
|
/**
|
|
9
9
|
* Emitted when active step is changed.
|
|
10
10
|
*/
|
|
11
|
-
onUpdate?: (event: CustomEvent<
|
|
11
|
+
onUpdate?: (event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void;
|
|
12
12
|
/**
|
|
13
13
|
* The text size.
|
|
14
14
|
*/
|
|
@@ -22,11 +22,11 @@ export declare const PStepperHorizontal: import("react").ForwardRefExoticCompone
|
|
|
22
22
|
/**
|
|
23
23
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when active step is changed.
|
|
24
24
|
*/
|
|
25
|
-
onStepChange?: ((event: CustomEvent<
|
|
25
|
+
onStepChange?: ((event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void) | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* Emitted when active step is changed.
|
|
28
28
|
*/
|
|
29
|
-
onUpdate?: ((event: CustomEvent<
|
|
29
|
+
onUpdate?: ((event: CustomEvent<StepperHorizontalUpdateEventDetail>) => void) | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* The text size.
|
|
32
32
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { BreakpointCustomizable, SwitchAlignLabel,
|
|
2
|
+
import type { BreakpointCustomizable, SwitchAlignLabel, SwitchUpdateEventDetail, Theme } from '../types';
|
|
3
3
|
export type PSwitchProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Aligns the label.
|
|
@@ -24,11 +24,11 @@ export type PSwitchProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
24
24
|
/**
|
|
25
25
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when checked status is changed.
|
|
26
26
|
*/
|
|
27
|
-
onSwitchChange?: (event: CustomEvent<
|
|
27
|
+
onSwitchChange?: (event: CustomEvent<SwitchUpdateEventDetail>) => void;
|
|
28
28
|
/**
|
|
29
29
|
* Emitted when checked status is changed.
|
|
30
30
|
*/
|
|
31
|
-
onUpdate?: (event: CustomEvent<
|
|
31
|
+
onUpdate?: (event: CustomEvent<SwitchUpdateEventDetail>) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Stretches the contents to max available space.
|
|
34
34
|
*/
|
|
@@ -62,11 +62,11 @@ export declare const PSwitch: import("react").ForwardRefExoticComponent<Omit<HTM
|
|
|
62
62
|
/**
|
|
63
63
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when checked status is changed.
|
|
64
64
|
*/
|
|
65
|
-
onSwitchChange?: ((event: CustomEvent<
|
|
65
|
+
onSwitchChange?: ((event: CustomEvent<SwitchUpdateEventDetail>) => void) | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Emitted when checked status is changed.
|
|
68
68
|
*/
|
|
69
|
-
onUpdate?: ((event: CustomEvent<
|
|
69
|
+
onUpdate?: ((event: CustomEvent<SwitchUpdateEventDetail>) => void) | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* Stretches the contents to max available space.
|
|
72
72
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TableUpdateEventDetail, Theme } from '../types';
|
|
3
3
|
export type PTableProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* A caption describing the contents of the table for accessibility only. This won't be visible in the browser. Use an element with an attribute of `slot="caption"` for a visible caption.
|
|
@@ -8,11 +8,11 @@ export type PTableProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when sorting is changed.
|
|
10
10
|
*/
|
|
11
|
-
onSortingChange?: (event: CustomEvent<
|
|
11
|
+
onSortingChange?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
12
12
|
/**
|
|
13
13
|
* Emitted when sorting is changed.
|
|
14
14
|
*/
|
|
15
|
-
onUpdate?: (event: CustomEvent<
|
|
15
|
+
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Adapts the color when used on dark background.
|
|
18
18
|
*/
|
|
@@ -26,11 +26,11 @@ export declare const PTable: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when sorting is changed.
|
|
28
28
|
*/
|
|
29
|
-
onSortingChange?: ((event: CustomEvent<
|
|
29
|
+
onSortingChange?: ((event: CustomEvent<TableUpdateEventDetail>) => void) | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Emitted when sorting is changed.
|
|
32
32
|
*/
|
|
33
|
-
onUpdate?: ((event: CustomEvent<
|
|
33
|
+
onUpdate?: ((event: CustomEvent<TableUpdateEventDetail>) => void) | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* Adapts the color when used on dark background.
|
|
36
36
|
*/
|