@porsche-design-system/components-react 3.27.0-rc.5 → 3.27.0
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 +34 -0
- package/cjs/lib/components/carousel.wrapper.cjs +3 -3
- package/cjs/lib/components/table.wrapper.cjs +3 -3
- package/esm/lib/components/carousel.wrapper.d.ts +11 -3
- package/esm/lib/components/carousel.wrapper.mjs +3 -3
- package/esm/lib/components/table.wrapper.d.ts +17 -1
- package/esm/lib/components/table.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +13 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +533 -790
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +42 -23
- 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/components/table.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +8 -14
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.cjs +2 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +7 -8
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +15 -19
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +521 -778
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +40 -23
- 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/components/table.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +9 -15
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +4 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +6 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +9 -10
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +16 -20
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +2 -2
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +11 -3
- package/ssr/esm/lib/components/table.wrapper.d.ts +17 -1
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +4 -4
- package/ssr/esm/lib/dsr-components/popover.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/select-wrapper-dropdown.d.ts +4 -4
- package/ssr/esm/lib/dsr-components/select.d.ts +5 -6
- package/ssr/esm/lib/types.d.ts +13 -0
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
7
|
import { getSelectCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
|
-
import {
|
|
8
|
+
import { getHasNativePopoverSupport, getHasCSSAnchorPositioningSupport, getSelectedOptionString, getComboboxAriaAttributes, getListAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
9
|
import { Label, labelId } from './label.mjs';
|
|
10
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -26,18 +26,17 @@ class DSRSelect extends Component {
|
|
|
26
26
|
srHighlightedOptionText = '';
|
|
27
27
|
internals;
|
|
28
28
|
defaultValue;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
listElement;
|
|
29
|
+
buttonElement;
|
|
30
|
+
popoverElement;
|
|
32
31
|
selectOptions = [];
|
|
33
32
|
selectOptgroups = [];
|
|
34
33
|
preventOptionUpdate = false; // Used to prevent value watcher from updating options when options are already updated
|
|
35
34
|
searchString = '';
|
|
36
35
|
searchTimeout = null;
|
|
37
|
-
isNativePopoverCase = false;
|
|
38
|
-
parentTableElement;
|
|
39
|
-
popoverElement;
|
|
40
36
|
slottedImagePath = '';
|
|
37
|
+
hasNativePopoverSupport = getHasNativePopoverSupport();
|
|
38
|
+
hasNativeCSSAnchorPositioningSupport = getHasCSSAnchorPositioningSupport();
|
|
39
|
+
cleanUpAutoUpdate;
|
|
41
40
|
formDisabledCallback() {
|
|
42
41
|
}
|
|
43
42
|
formStateRestoreCallback() {
|
|
@@ -48,24 +47,21 @@ class DSRSelect extends Component {
|
|
|
48
47
|
render() {
|
|
49
48
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
50
49
|
const buttonId = 'value';
|
|
51
|
-
const
|
|
50
|
+
const popoverId = 'list';
|
|
52
51
|
const descriptionId = this.props.description ? 'description' : undefined;
|
|
53
52
|
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
54
53
|
const initialStatusId = 'initial-status';
|
|
55
54
|
const ariaDescribedBy = [descriptionId, selectMessageId, initialStatusId].filter(Boolean).join(' ');
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
className: 'popover',
|
|
60
|
-
...(this.props.popoverElement?.matches(':popover-open') && {
|
|
61
|
-
'popover-open': true,
|
|
62
|
-
}),
|
|
63
|
-
}), children: jsx("div", { id: dropdownId, className: "listbox", ...getListAriaAttributes(this.props.label, this.props.required, false, this.props.isOpen), children: jsx("slot", {}) }) })] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx("span", { className: "sr-only", role: "status", "aria-live": "assertive", "aria-relevant": "additions text", children: this.props.srHighlightedOptionText })] })] }), this.props.children] }));
|
|
55
|
+
const selectedOption = getSelectedOptionString(otherChildren);
|
|
56
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$q(this.props.dropdownDirection, this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact, this.props.theme, !!this.props.slottedImagePath)));
|
|
57
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [this.props.slottedImagePath && jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: selectedOption }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsx("div", { id: popoverId, popover: "manual", tabIndex: -1, ...getListAriaAttributes(this.props.label, this.props.required, false, this.props.isOpen), children: jsx("slot", {}) }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx("span", { className: "sr-only", role: "status", "aria-live": "assertive", "aria-relevant": "additions text", children: this.props.srHighlightedOptionText })] })] }), this.props.children] }));
|
|
64
58
|
}
|
|
65
|
-
getSelectedOptionImagePath = (options) =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
getSelectedOptionImagePath = (options) => {
|
|
60
|
+
return (options
|
|
61
|
+
.find((option) => option.selected)
|
|
62
|
+
?.querySelector('img')
|
|
63
|
+
?.getAttribute('src') ?? '');
|
|
64
|
+
};
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
export { DSRSelect };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getTableCellCss as getComponentCss$
|
|
6
|
+
import { getTableCellCss as getComponentCss$i } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @slot {"name": "", "description": "Default slot for the table cell content." }
|
|
@@ -12,7 +12,7 @@ class DSRTableCell extends Component {
|
|
|
12
12
|
host;
|
|
13
13
|
render() {
|
|
14
14
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$i(this.props.multiline)));
|
|
16
16
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
17
|
}
|
|
18
18
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
|
-
import { getTableCss as getComponentCss$
|
|
7
|
+
import { getTableCss as getComponentCss$j } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
8
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -20,7 +20,7 @@ class DSRTable extends Component {
|
|
|
20
20
|
const tableAttr = this.props.caption
|
|
21
21
|
? { 'aria-label': this.props.caption }
|
|
22
22
|
: hasSlottedCaption && { 'aria-labelledby': captionId };
|
|
23
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
23
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$j(this.props.compact, this.props.layout, this.props.theme)));
|
|
24
24
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedCaption && (jsx("div", { id: captionId, className: "caption", children: jsx("slot", { name: "caption" }) })), jsx(PScroller, { scrollbar: true, theme: this.props.theme, children: jsx("div", { className: "table", role: "table", ...tableAttr, children: jsx("slot", {}) }) })] })] }), this.props.children] }));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, BreakpointCustomizable, CarouselGradientColor, CarouselHeadingSize, CarouselInternationalization, CarouselUpdateEventDetail, Theme, CarouselWidth } from '../types';
|
|
2
|
+
import type { CarouselAlignControls, CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, BreakpointCustomizable, CarouselGradientColor, CarouselHeadingSize, CarouselInternationalization, CarouselUpdateEventDetail, CarouselSlidesPerPage, Theme, CarouselWidth } from '../types';
|
|
3
3
|
export type PCarouselProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which slide to be active (zero-based numbering).
|
|
6
6
|
*/
|
|
7
7
|
activeSlideIndex?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Alignment of slotted controls
|
|
10
|
+
*/
|
|
11
|
+
alignControls?: CarouselAlignControls;
|
|
8
12
|
/**
|
|
9
13
|
* Alignment of heading and description
|
|
10
14
|
*/
|
|
@@ -64,7 +68,7 @@ export type PCarouselProps = BaseProps & {
|
|
|
64
68
|
/**
|
|
65
69
|
* Sets the amount of slides visible at the same time. Can be set to `auto` if you want to define different widths per slide via CSS.
|
|
66
70
|
*/
|
|
67
|
-
slidesPerPage?: BreakpointCustomizable<
|
|
71
|
+
slidesPerPage?: BreakpointCustomizable<CarouselSlidesPerPage>;
|
|
68
72
|
/**
|
|
69
73
|
* Adapts the color when used on dark background.
|
|
70
74
|
*/
|
|
@@ -88,6 +92,10 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<import
|
|
|
88
92
|
* Defines which slide to be active (zero-based numbering).
|
|
89
93
|
*/
|
|
90
94
|
activeSlideIndex?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Alignment of slotted controls
|
|
97
|
+
*/
|
|
98
|
+
alignControls?: CarouselAlignControls;
|
|
91
99
|
/**
|
|
92
100
|
* Alignment of heading and description
|
|
93
101
|
*/
|
|
@@ -147,7 +155,7 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<import
|
|
|
147
155
|
/**
|
|
148
156
|
* Sets the amount of slides visible at the same time. Can be set to `auto` if you want to define different widths per slide via CSS.
|
|
149
157
|
*/
|
|
150
|
-
slidesPerPage?: BreakpointCustomizable<
|
|
158
|
+
slidesPerPage?: BreakpointCustomizable<CarouselSlidesPerPage>;
|
|
151
159
|
/**
|
|
152
160
|
* Adapts the color when used on dark background.
|
|
153
161
|
*/
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { TableUpdateEventDetail, Theme } from '../types';
|
|
2
|
+
import type { TableLayout, TableUpdateEventDetail, Theme } from '../types';
|
|
3
3
|
export type PTableProps = BaseProps & {
|
|
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.
|
|
6
6
|
*/
|
|
7
7
|
caption?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Displays as compact version.
|
|
10
|
+
*/
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Controls the layout behavior of the table.
|
|
14
|
+
*/
|
|
15
|
+
layout?: TableLayout;
|
|
8
16
|
/**
|
|
9
17
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when sorting is changed.
|
|
10
18
|
*/
|
|
@@ -23,6 +31,14 @@ export declare const PTable: import("react").ForwardRefExoticComponent<import("r
|
|
|
23
31
|
* 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.
|
|
24
32
|
*/
|
|
25
33
|
caption?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Displays as compact version.
|
|
36
|
+
*/
|
|
37
|
+
compact?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Controls the layout behavior of the table.
|
|
40
|
+
*/
|
|
41
|
+
layout?: TableLayout;
|
|
26
42
|
/**
|
|
27
43
|
* @deprecated since v3.0.0, will be removed with next major release, use `update` event instead. Emitted when sorting is changed.
|
|
28
44
|
*/
|
|
@@ -16,13 +16,13 @@ export declare class DSRMultiSelect extends Component<any> {
|
|
|
16
16
|
private defaultValue;
|
|
17
17
|
private multiSelectOptions;
|
|
18
18
|
private multiSelectOptgroups;
|
|
19
|
-
private inputContainer;
|
|
20
19
|
private inputElement;
|
|
21
|
-
private
|
|
20
|
+
private resetButtonElement;
|
|
22
21
|
private preventOptionUpdate;
|
|
23
|
-
private isNativePopoverCase;
|
|
24
|
-
private parentTableElement;
|
|
25
22
|
private popoverElement;
|
|
23
|
+
private hasNativePopoverSupport;
|
|
24
|
+
private hasNativeCSSAnchorPositioningSupport;
|
|
25
|
+
private cleanUpAutoUpdate;
|
|
26
26
|
private get currentValue();
|
|
27
27
|
setFormValue(value: string[]): void;
|
|
28
28
|
formDisabledCallback(): void;
|
|
@@ -4,11 +4,11 @@ import { Component } from 'react';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class DSRPopover extends Component<any> {
|
|
6
6
|
host: HTMLElement;
|
|
7
|
-
private
|
|
7
|
+
private isOpen;
|
|
8
8
|
private popover;
|
|
9
9
|
private button;
|
|
10
10
|
private arrow;
|
|
11
|
-
private
|
|
11
|
+
private cleanUpAutoUpdate;
|
|
12
12
|
private hasNativePopoverSupport;
|
|
13
13
|
render(): JSX.Element;
|
|
14
14
|
}
|
|
@@ -4,11 +4,11 @@ export declare class DSRSelectWrapperDropdown extends Component<any> {
|
|
|
4
4
|
private isOpen;
|
|
5
5
|
private optionMaps;
|
|
6
6
|
private searchString;
|
|
7
|
-
private
|
|
8
|
-
private listElement;
|
|
9
|
-
private isNativePopoverCase;
|
|
10
|
-
private parentTableElement;
|
|
7
|
+
private inputOrButtonElement;
|
|
11
8
|
private popoverElement;
|
|
9
|
+
private hasNativePopoverSupport;
|
|
10
|
+
private hasNativeCSSAnchorPositioningSupport;
|
|
11
|
+
private cleanUpAutoUpdate;
|
|
12
12
|
private get selectedIndex();
|
|
13
13
|
render(): JSX.Element;
|
|
14
14
|
}
|
|
@@ -13,18 +13,17 @@ export declare class DSRSelect extends Component<any> {
|
|
|
13
13
|
private srHighlightedOptionText;
|
|
14
14
|
private internals;
|
|
15
15
|
private defaultValue;
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private listElement;
|
|
16
|
+
private buttonElement;
|
|
17
|
+
private popoverElement;
|
|
19
18
|
private selectOptions;
|
|
20
19
|
private selectOptgroups;
|
|
21
20
|
private preventOptionUpdate;
|
|
22
21
|
private searchString;
|
|
23
22
|
private searchTimeout;
|
|
24
|
-
private isNativePopoverCase;
|
|
25
|
-
private parentTableElement;
|
|
26
|
-
private popoverElement;
|
|
27
23
|
private slottedImagePath;
|
|
24
|
+
private hasNativePopoverSupport;
|
|
25
|
+
private hasNativeCSSAnchorPositioningSupport;
|
|
26
|
+
private cleanUpAutoUpdate;
|
|
28
27
|
formDisabledCallback(): void;
|
|
29
28
|
formStateRestoreCallback(): void;
|
|
30
29
|
formResetCallback(): void;
|
package/ssr/esm/lib/types.d.ts
CHANGED
|
@@ -767,6 +767,8 @@ declare const CAROUSEL_WIDTHS: readonly [
|
|
|
767
767
|
"extended"
|
|
768
768
|
];
|
|
769
769
|
export type CarouselWidth = (typeof CAROUSEL_WIDTHS)[number];
|
|
770
|
+
declare const CAROUSEL_SLIDES_PER_PAGE: (string | number)[];
|
|
771
|
+
export type CarouselSlidesPerPage = (typeof CAROUSEL_SLIDES_PER_PAGE)[number];
|
|
770
772
|
declare const CAROUSEL_GRADIENT_COLORS: readonly [
|
|
771
773
|
"background-base",
|
|
772
774
|
"background-surface",
|
|
@@ -791,6 +793,12 @@ export type CarouselUpdateEvent = {
|
|
|
791
793
|
previousIndex: number;
|
|
792
794
|
};
|
|
793
795
|
export type CarouselUpdateEventDetail = CarouselUpdateEvent;
|
|
796
|
+
declare const CAROUSEL_ALIGN_CONTROLS: readonly [
|
|
797
|
+
"start",
|
|
798
|
+
"center",
|
|
799
|
+
"auto"
|
|
800
|
+
];
|
|
801
|
+
export type CarouselAlignControls = (typeof CAROUSEL_ALIGN_CONTROLS)[number];
|
|
794
802
|
export type CheckboxState = FormState;
|
|
795
803
|
export type CheckboxUpdateEventDetail = {
|
|
796
804
|
name: string;
|
|
@@ -1357,6 +1365,11 @@ export type SwitchUpdateEvent = {
|
|
|
1357
1365
|
};
|
|
1358
1366
|
export type SwitchUpdateEventDetail = SwitchUpdateEvent;
|
|
1359
1367
|
export type Direction = "asc" | "desc";
|
|
1368
|
+
declare const TABLE_LAYOUTS: readonly [
|
|
1369
|
+
"auto",
|
|
1370
|
+
"fixed"
|
|
1371
|
+
];
|
|
1372
|
+
export type TableLayout = (typeof TABLE_LAYOUTS)[number];
|
|
1360
1373
|
export type TableHeadCellSort = {
|
|
1361
1374
|
id: string;
|
|
1362
1375
|
active?: boolean;
|