@cloudscape-design/components 3.0.1006 → 3.0.1008
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/alert/actions-wrapper/index.d.ts +14 -22
- package/alert/analytics-metadata/interfaces.d.ts +15 -14
- package/alert/index.d.ts +2 -1
- package/alert/interfaces.d.ts +87 -86
- package/alert/internal.d.ts +4 -3
- package/anchor-navigation/anchor-item/index.d.ts +8 -13
- package/anchor-navigation/index.d.ts +2 -4
- package/anchor-navigation/interfaces.d.ts +56 -55
- package/anchor-navigation/internal.d.ts +2 -10
- package/anchor-navigation/use-scroll-spy.d.ts +6 -9
- package/anchor-navigation/utils.d.ts +4 -3
- package/annotation-context/annotation/annotation-icon.d.ts +4 -5
- package/annotation-context/annotation/annotation-popover.d.ts +19 -35
- package/annotation-context/annotation/annotation-trigger.d.ts +7 -6
- package/annotation-context/annotation/closed-annotation.d.ts +9 -15
- package/annotation-context/annotation/open-annotation.d.ts +18 -33
- package/annotation-context/context.d.ts +9 -8
- package/annotation-context/index.d.ts +2 -9
- package/annotation-context/interfaces.d.ts +68 -67
- package/annotation-context/utils.d.ts +10 -9
- package/app-layout/classic.d.ts +15 -14
- package/app-layout/classic.js +1 -1
- package/app-layout/classic.js.map +1 -1
- package/app-layout/content-wrapper/index.d.ts +11 -10
- package/app-layout/defaults.d.ts +5 -4
- package/app-layout/drawer/drawers-helpers.d.ts +7 -6
- package/app-layout/drawer/index.d.ts +2 -10
- package/app-layout/drawer/interfaces.d.ts +51 -50
- package/app-layout/drawer/overflow-menu.d.ts +9 -14
- package/app-layout/drawer/resizable-drawer.d.ts +2 -9
- package/app-layout/index.d.ts +2 -1
- package/app-layout/interfaces.d.ts +296 -294
- package/app-layout/internal.d.ts +15 -14
- package/app-layout/mobile-toolbar/index.d.ts +20 -34
- package/app-layout/notifications/index.d.ts +8 -7
- package/app-layout/runtime-drawer/index.d.ts +6 -5
- package/app-layout/runtime-drawer/use-runtime-drawer-context.d.ts +4 -5
- package/app-layout/split-panel/constants.d.ts +2 -1
- package/app-layout/split-panel/drawer.d.ts +5 -7
- package/app-layout/split-panel/index.d.ts +2 -1
- package/app-layout/split-panel/provider.d.ts +7 -14
- package/app-layout/split-panel/split-panel-forced-position.d.ts +5 -7
- package/app-layout/toggles/index.d.ts +22 -21
- package/app-layout/toggles/interfaces.d.ts +12 -11
- package/app-layout/utils/feature-flags.d.ts +2 -1
- package/app-layout/utils/interfaces.d.ts +6 -5
- package/app-layout/utils/sticky-offsets.d.ts +3 -2
- package/app-layout/utils/use-app-layout-placement.d.ts +7 -6
- package/app-layout/utils/use-drawers.d.ts +35 -48
- package/app-layout/utils/use-drawers.js +2 -2
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/app-layout/utils/use-focus-control.d.ts +16 -15
- package/app-layout/utils/use-keyboard-events.d.ts +5 -8
- package/app-layout/utils/use-observed-element.d.ts +2 -1
- package/app-layout/utils/use-pointer-events.d.ts +2 -6
- package/app-layout/utils/use-resize.d.ts +15 -22
- package/app-layout/utils/use-split-panel-focus-control.d.ts +10 -9
- package/app-layout/utils/visibility-context.d.ts +2 -1
- package/app-layout/visual-refresh/background.d.ts +2 -1
- package/app-layout/visual-refresh/breadcrumbs.d.ts +2 -1
- package/app-layout/visual-refresh/context.d.ts +56 -55
- package/app-layout/visual-refresh/context.js +1 -1
- package/app-layout/visual-refresh/context.js.map +1 -1
- package/app-layout/visual-refresh/drawers.d.ts +2 -1
- package/app-layout/visual-refresh/header.d.ts +2 -1
- package/app-layout/visual-refresh/index.d.ts +15 -14
- package/app-layout/visual-refresh/layout.d.ts +4 -5
- package/app-layout/visual-refresh/main.d.ts +2 -1
- package/app-layout/visual-refresh/mobile-toolbar.d.ts +2 -1
- package/app-layout/visual-refresh/navigation.d.ts +2 -1
- package/app-layout/visual-refresh/notifications.d.ts +2 -1
- package/app-layout/visual-refresh/split-panel.d.ts +5 -6
- package/app-layout/visual-refresh/tools.d.ts +4 -5
- package/app-layout/visual-refresh/trigger-button.d.ts +20 -19
- package/app-layout/visual-refresh/use-background-overlap.d.ts +8 -11
- package/app-layout/visual-refresh-toolbar/compute-layout.d.ts +44 -67
- package/app-layout/visual-refresh-toolbar/compute-layout.js +3 -3
- package/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/contexts.d.ts +3 -2
- package/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts +6 -9
- package/app-layout/visual-refresh-toolbar/drawer/global-drawers.d.ts +4 -5
- package/app-layout/visual-refresh-toolbar/drawer/index.d.ts +2 -1
- package/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts +4 -5
- package/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts +13 -19
- package/app-layout/visual-refresh-toolbar/index.d.ts +2 -1
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts +53 -52
- package/app-layout/visual-refresh-toolbar/internal.d.ts +2 -1
- package/app-layout/visual-refresh-toolbar/multi-layout.d.ts +27 -26
- package/app-layout/visual-refresh-toolbar/navigation/index.d.ts +4 -5
- package/app-layout/visual-refresh-toolbar/notifications/index.d.ts +5 -7
- package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.d.ts +5 -7
- package/app-layout/visual-refresh-toolbar/skeleton/index.d.ts +13 -12
- package/app-layout/visual-refresh-toolbar/skeleton/slot-skeletons.d.ts +2 -1
- package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts +8 -7
- package/app-layout/visual-refresh-toolbar/split-panel/index.d.ts +10 -17
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +25 -42
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +25 -27
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +48 -47
- package/app-layout-toolbar/analytics-metadata/interfaces.d.ts +12 -11
- package/app-layout-toolbar/index.d.ts +2 -1
- package/app-layout-toolbar/interfaces.d.ts +48 -46
- package/area-chart/async-store/index.d.ts +12 -11
- package/area-chart/chart-container.d.ts +8 -34
- package/area-chart/elements/area-chart-filter.d.ts +7 -11
- package/area-chart/elements/area-chart-legend.d.ts +7 -11
- package/area-chart/elements/area-series.d.ts +5 -8
- package/area-chart/elements/chart-popover.d.ts +9 -15
- package/area-chart/elements/data-series.d.ts +4 -5
- package/area-chart/elements/highlighted-point.d.ts +4 -3
- package/area-chart/elements/threshold-series.d.ts +6 -10
- package/area-chart/elements/use-highlight-details.d.ts +17 -22
- package/area-chart/elements/vertical-marker.d.ts +4 -5
- package/area-chart/index.d.ts +3 -10
- package/area-chart/interfaces.d.ts +52 -51
- package/area-chart/internal.d.ts +3 -38
- package/area-chart/model/compute-chart-props.d.ts +22 -30
- package/area-chart/model/create-series-decorator.d.ts +2 -1
- package/area-chart/model/index.d.ts +73 -72
- package/area-chart/model/interactions-store.d.ts +16 -15
- package/area-chart/model/use-chart-model.d.ts +17 -32
- package/area-chart/model/use-filter-props.d.ts +2 -1
- package/area-chart/model/use-highlight-props.d.ts +2 -1
- package/area-chart/model/utils.d.ts +5 -4
- package/attribute-editor/additional-info.d.ts +5 -7
- package/attribute-editor/grid-defaults.d.ts +2 -1
- package/attribute-editor/index.d.ts +2 -1
- package/attribute-editor/interfaces.d.ts +149 -148
- package/attribute-editor/internal.d.ts +2 -1
- package/attribute-editor/row.d.ts +14 -13
- package/attribute-editor/utils.d.ts +4 -3
- package/autosuggest/analytics-metadata/interfaces.d.ts +7 -6
- package/autosuggest/autosuggest-option.d.ts +13 -12
- package/autosuggest/index.d.ts +2 -1
- package/autosuggest/interfaces.d.ts +119 -118
- package/autosuggest/internal.d.ts +4 -2
- package/autosuggest/load-more-controller.d.ts +10 -13
- package/autosuggest/options-controller.d.ts +17 -24
- package/autosuggest/options-list.d.ts +14 -28
- package/autosuggest/plain-list.d.ts +15 -23
- package/autosuggest/utils/utils.d.ts +2 -1
- package/autosuggest/virtual-list.d.ts +3 -11
- package/badge/index.d.ts +2 -5
- package/badge/interfaces.d.ts +10 -9
- package/bar-chart/index.d.ts +3 -14
- package/bar-chart/interfaces.d.ts +28 -27
- package/box/index.d.ts +2 -6
- package/box/interfaces.d.ts +131 -130
- package/box/internal.d.ts +3 -16
- package/breadcrumb-group/all-items-dropdown.d.ts +10 -13
- package/breadcrumb-group/analytics-metadata/interfaces.d.ts +18 -17
- package/breadcrumb-group/implementation.d.ts +3 -11
- package/breadcrumb-group/index.d.ts +2 -4
- package/breadcrumb-group/interfaces.d.ts +59 -56
- package/breadcrumb-group/internal.d.ts +2 -1
- package/breadcrumb-group/item/funnel.d.ts +7 -6
- package/breadcrumb-group/item/item.d.ts +2 -9
- package/breadcrumb-group/skeleton.d.ts +3 -2
- package/breadcrumb-group/utils.d.ts +6 -5
- package/button/analytics-metadata/interfaces.d.ts +13 -12
- package/button/icon-helper.d.ts +12 -11
- package/button/index.d.ts +2 -1
- package/button/index.js +13 -11
- package/button/interfaces.d.ts +216 -214
- package/button/internal.d.ts +20 -19
- package/button-dropdown/analytics-metadata/interfaces.d.ts +27 -26
- package/button-dropdown/category-elements/category-element.d.ts +3 -15
- package/button-dropdown/category-elements/expandable-category-element.d.ts +3 -16
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +3 -15
- package/button-dropdown/index.d.ts +2 -1
- package/button-dropdown/interfaces.d.ts +257 -256
- package/button-dropdown/internal.d.ts +2 -1
- package/button-dropdown/item-element/index.d.ts +3 -15
- package/button-dropdown/items-list.d.ts +2 -19
- package/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts +15 -18
- package/button-dropdown/tooltip.d.ts +7 -11
- package/button-dropdown/utils/create-items-tree.d.ts +6 -5
- package/button-dropdown/utils/menu-item.d.ts +6 -5
- package/button-dropdown/utils/move-highlight.d.ts +12 -17
- package/button-dropdown/utils/use-button-dropdown.d.ts +18 -25
- package/button-dropdown/utils/use-highlighted-menu.d.ts +11 -14
- package/button-dropdown/utils/utils.d.ts +2 -1
- package/button-group/analytics-metadata/interfaces.d.ts +4 -3
- package/button-group/file-input-item.d.ts +6 -5
- package/button-group/icon-button-item.d.ts +7 -6
- package/button-group/icon-toggle-button-item.d.ts +7 -6
- package/button-group/icon-toggle-button-item.js +1 -1
- package/button-group/icon-toggle-button-item.js.map +1 -1
- package/button-group/index.d.ts +2 -1
- package/button-group/interfaces.d.ts +166 -164
- package/button-group/internal.d.ts +2 -1
- package/button-group/item-element.d.ts +15 -14
- package/button-group/menu-dropdown-item.d.ts +8 -7
- package/calendar/grid/calendar-grid-header.d.ts +5 -7
- package/calendar/grid/index.d.ts +18 -32
- package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts +11 -19
- package/calendar/grid/use-calendar-grid-rows.d.ts +7 -11
- package/calendar/header/header-button.d.ts +6 -11
- package/calendar/header/index.d.ts +8 -13
- package/calendar/index.d.ts +2 -6
- package/calendar/interfaces.d.ts +98 -97
- package/calendar/internal.d.ts +2 -18
- package/calendar/use-calendar-labels.d.ts +15 -21
- package/calendar/utils/intl.d.ts +2 -1
- package/calendar/utils/navigation-day.d.ts +2 -1
- package/calendar/utils/navigation-month.d.ts +2 -1
- package/cards/cards-layout-helper.d.ts +2 -1
- package/cards/index.d.ts +2 -1
- package/cards/interfaces.d.ts +229 -228
- package/checkbox/analytics-metadata/interfaces.d.ts +12 -11
- package/checkbox/base-checkbox.d.ts +52 -51
- package/checkbox/index.d.ts +2 -1
- package/checkbox/interfaces.d.ts +31 -30
- package/checkbox/internal.d.ts +5 -4
- package/code-editor/ace-modes.d.ts +330 -329
- package/code-editor/ace-themes.d.ts +82 -81
- package/code-editor/error-screen.d.ts +6 -9
- package/code-editor/index.d.ts +2 -1
- package/code-editor/interfaces.d.ts +147 -146
- package/code-editor/listeners.d.ts +2 -1
- package/code-editor/loading-screen.d.ts +3 -2
- package/code-editor/pane.d.ts +15 -27
- package/code-editor/preferences-modal.d.ts +21 -20
- package/code-editor/resizable-box/index.d.ts +8 -14
- package/code-editor/setup-editor.d.ts +2 -1
- package/code-editor/status-bar.d.ts +20 -36
- package/code-editor/tab-button.d.ts +17 -16
- package/code-editor/use-editor.d.ts +13 -20
- package/code-editor/util.d.ts +7 -9
- package/collection-preferences/analytics-metadata/interfaces.d.ts +34 -33
- package/collection-preferences/analytics-metadata/utils.d.ts +4 -3
- package/collection-preferences/content-display/content-display-option.d.ts +5 -4
- package/collection-preferences/content-display/index.d.ts +5 -18
- package/collection-preferences/content-display/utils.d.ts +6 -8
- package/collection-preferences/index.d.ts +2 -22
- package/collection-preferences/interfaces.d.ts +299 -298
- package/collection-preferences/utils.d.ts +30 -70
- package/collection-preferences/visible-content.d.ts +5 -9
- package/column-layout/flexible-column-layout/index.d.ts +4 -10
- package/column-layout/grid-column-layout.d.ts +5 -12
- package/column-layout/index.d.ts +2 -7
- package/column-layout/interfaces.d.ts +39 -38
- package/column-layout/internal.d.ts +2 -12
- package/column-layout/util.d.ts +2 -1
- package/container/analytics-metadata/interfaces.d.ts +4 -3
- package/container/index.d.ts +2 -7
- package/container/index.js +30 -13
- package/container/interfaces.d.ts +88 -87
- package/container/internal.d.ts +20 -41
- package/container/use-sticky-header.d.ts +19 -24
- package/container/use-sticky-header.js +1 -1
- package/container/use-sticky-header.js.map +1 -1
- package/content-layout/index.d.ts +2 -1
- package/content-layout/interfaces.d.ts +69 -68
- package/content-layout/internal.d.ts +3 -15
- package/contexts/form-field.d.ts +2 -1
- package/copy-to-clipboard/index.d.ts +2 -5
- package/copy-to-clipboard/interfaces.d.ts +55 -54
- package/copy-to-clipboard/internal.d.ts +5 -16
- package/date-input/index.d.ts +2 -1
- package/date-input/interfaces.d.ts +7 -6
- package/date-input/internal.d.ts +3 -2
- package/date-input/utils.d.ts +3 -5
- package/date-picker/index.d.ts +2 -1
- package/date-picker/interfaces.d.ts +80 -79
- package/date-picker/utils.d.ts +13 -23
- package/date-range-picker/calendar/grids/grid-cell.d.ts +3 -2
- package/date-range-picker/calendar/grids/grid.d.ts +2 -22
- package/date-range-picker/calendar/grids/index.d.ts +2 -18
- package/date-range-picker/calendar/grids/interfaces.d.ts +38 -37
- package/date-range-picker/calendar/grids/intl.d.ts +8 -13
- package/date-range-picker/calendar/header/header-button.d.ts +6 -11
- package/date-range-picker/calendar/header/index.d.ts +10 -18
- package/date-range-picker/calendar/index.d.ts +12 -23
- package/date-range-picker/calendar/range-inputs.d.ts +14 -26
- package/date-range-picker/calendar/utils.d.ts +2 -1
- package/date-range-picker/dropdown.d.ts +8 -31
- package/date-range-picker/index.d.ts +2 -1
- package/date-range-picker/index.js +1 -1
- package/date-range-picker/index.js.map +1 -1
- package/date-range-picker/interfaces.d.ts +374 -373
- package/date-range-picker/mode-switcher.d.ts +5 -8
- package/date-range-picker/relative-range/index.d.ts +10 -18
- package/date-range-picker/time-offset.d.ts +10 -9
- package/date-range-picker/utils.d.ts +10 -13
- package/drawer/implementation.d.ts +3 -11
- package/drawer/index.d.ts +2 -1
- package/drawer/interfaces.d.ts +34 -33
- package/drawer/internal.d.ts +2 -1
- package/expandable-section/analytics-metadata/interfaces.d.ts +16 -15
- package/expandable-section/expandable-section-container.d.ts +10 -19
- package/expandable-section/expandable-section-header.d.ts +23 -41
- package/expandable-section/index.d.ts +2 -4
- package/expandable-section/interfaces.d.ts +88 -87
- package/expandable-section/internal.d.ts +4 -21
- package/expandable-section/utils.d.ts +2 -1
- package/file-dropzone/index.d.ts +2 -1
- package/file-dropzone/interfaces.d.ts +14 -13
- package/file-dropzone/internal.d.ts +2 -6
- package/file-dropzone/use-files-dragging.d.ts +3 -2
- package/file-input/analytics-metadata/interfaces.d.ts +8 -7
- package/file-input/index.d.ts +2 -1
- package/file-input/interfaces.d.ts +47 -46
- package/file-input/internal.d.ts +5 -4
- package/file-token-group/default-formatters.d.ts +2 -1
- package/file-token-group/file-token.d.ts +25 -39
- package/file-token-group/index.d.ts +3 -9
- package/file-token-group/interfaces.d.ts +80 -79
- package/file-token-group/internal.d.ts +3 -14
- package/file-token-group/thumbnail.d.ts +4 -5
- package/file-upload/index.d.ts +2 -1
- package/file-upload/interfaces.d.ts +102 -101
- package/file-upload/internal.d.ts +2 -1
- package/flashbar/analytics-metadata/interfaces.d.ts +31 -30
- package/flashbar/analytics-metadata/utils.d.ts +3 -2
- package/flashbar/collapsible-flashbar.d.ts +9 -12
- package/flashbar/common.d.ts +15 -20
- package/flashbar/constant.d.ts +2 -1
- package/flashbar/flash.d.ts +6 -5
- package/flashbar/index.d.ts +2 -1
- package/flashbar/index.js +11 -13
- package/flashbar/interfaces.d.ts +175 -154
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/flashbar/non-collapsible-flashbar.d.ts +2 -6
- package/flashbar/utils.d.ts +7 -6
- package/form/analytics-metadata/interfaces.d.ts +8 -7
- package/form/index.d.ts +2 -4
- package/form/interfaces.d.ts +49 -48
- package/form/internal.d.ts +5 -15
- package/form-field/analytics-metadata/interfaces.d.ts +4 -3
- package/form-field/index.d.ts +2 -4
- package/form-field/interfaces.d.ts +92 -91
- package/form-field/internal.d.ts +15 -44
- package/form-field/util.d.ts +9 -13
- package/grid/index.d.ts +2 -6
- package/grid/interfaces.d.ts +48 -47
- package/grid/internal.d.ts +11 -10
- package/header/analytics/use-table-integration.d.ts +2 -1
- package/header/index.d.ts +2 -4
- package/header/interfaces.d.ts +41 -40
- package/header/internal.d.ts +9 -24
- package/help-panel/implementation.d.ts +3 -10
- package/help-panel/index.d.ts +2 -1
- package/help-panel/interfaces.d.ts +28 -27
- package/help-panel/internal.d.ts +2 -1
- package/hotspot/index.d.ts +2 -7
- package/hotspot/interfaces.d.ts +32 -31
- package/i18n/context.d.ts +10 -9
- package/i18n/dynamic.d.ts +2 -1
- package/i18n/get-matchable-locales.d.ts +2 -1
- package/i18n/index.d.ts +2 -1
- package/i18n/messages/all.all.d.ts +1 -1
- package/i18n/messages/all.ar.d.ts +1 -1
- package/i18n/messages/all.de.d.ts +1 -1
- package/i18n/messages/all.en-GB.d.ts +1 -1
- package/i18n/messages/all.en.d.ts +1 -1
- package/i18n/messages/all.es.d.ts +1 -1
- package/i18n/messages/all.fr.d.ts +1 -1
- package/i18n/messages/all.id.d.ts +1 -1
- package/i18n/messages/all.it.d.ts +1 -1
- package/i18n/messages/all.ja.d.ts +1 -1
- package/i18n/messages/all.ko.d.ts +1 -1
- package/i18n/messages/all.pt-BR.d.ts +1 -1
- package/i18n/messages/all.th.d.ts +1 -1
- package/i18n/messages/all.tr.d.ts +1 -1
- package/i18n/messages/all.zh-CN.d.ts +1 -1
- package/i18n/messages/all.zh-TW.d.ts +1 -1
- package/i18n/messages-types.d.ts +569 -568
- package/i18n/provider.d.ts +13 -16
- package/i18n/testing.d.ts +6 -9
- package/icon/generated/icons.d.ts +129 -128
- package/icon/index.d.ts +2 -5
- package/icon/interfaces.d.ts +63 -62
- package/icon/internal.d.ts +4 -14
- package/index.d.ts +2 -1
- package/input/analytics-metadata/interfaces.d.ts +6 -5
- package/input/index.d.ts +2 -1
- package/input/interfaces.d.ts +137 -136
- package/input/internal.d.ts +15 -14
- package/input/utils.d.ts +2 -1
- package/interfaces.d.ts +2 -1
- package/internal/analytics/components/analytics-funnel.d.ts +23 -26
- package/internal/analytics/context/analytics-context.d.ts +52 -51
- package/internal/analytics/hooks/use-funnel.d.ts +14 -13
- package/internal/analytics/index.d.ts +2 -1
- package/internal/analytics/interfaces.d.ts +99 -98
- package/internal/analytics/selectors.d.ts +2 -1
- package/internal/analytics/utils/parse-count-text.d.ts +2 -1
- package/internal/animate.d.ts +10 -14
- package/internal/base-component/index.d.ts +16 -15
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/breakpoints.d.ts +2 -1
- package/internal/components/abstract-switch/index.d.ts +18 -36
- package/internal/components/autosuggest-input/index.d.ts +20 -19
- package/internal/components/button-trigger/analytics-metadata/interfaces.d.ts +10 -9
- package/internal/components/button-trigger/index.d.ts +28 -27
- package/internal/components/cartesian-chart/axis-label.d.ts +5 -8
- package/internal/components/cartesian-chart/block-end-labels.d.ts +20 -35
- package/internal/components/cartesian-chart/chart-container.d.ts +10 -9
- package/internal/components/cartesian-chart/constants.d.ts +2 -1
- package/internal/components/cartesian-chart/emphasized-baseline.d.ts +6 -10
- package/internal/components/cartesian-chart/highlighted-point.d.ts +11 -10
- package/internal/components/cartesian-chart/inline-start-labels.d.ts +11 -20
- package/internal/components/cartesian-chart/interfaces.d.ts +197 -196
- package/internal/components/cartesian-chart/label-utils.d.ts +12 -16
- package/internal/components/cartesian-chart/labels-measure.d.ts +7 -12
- package/internal/components/cartesian-chart/scales.d.ts +32 -31
- package/internal/components/cartesian-chart/ticks.d.ts +2 -1
- package/internal/components/cartesian-chart/vertical-grid-lines.d.ts +6 -9
- package/internal/components/cartesian-chart/vertical-marker.d.ts +10 -9
- package/internal/components/chart-filter/index.d.ts +12 -17
- package/internal/components/chart-legend/index.d.ts +11 -17
- package/internal/components/chart-plot/application-controller.d.ts +8 -7
- package/internal/components/chart-plot/focus-outline.d.ts +6 -9
- package/internal/components/chart-plot/index.d.ts +31 -30
- package/internal/components/chart-plot/interfaces.d.ts +4 -3
- package/internal/components/chart-popover/index.d.ts +31 -30
- package/internal/components/chart-series-details/index.d.ts +14 -13
- package/internal/components/chart-series-details/series-details-text.d.ts +2 -1
- package/internal/components/chart-series-marker/index.d.ts +4 -6
- package/internal/components/chart-status-container/index.d.ts +20 -34
- package/internal/components/chart-wrapper/index.d.ts +13 -12
- package/internal/components/checkbox-icon/index.d.ts +7 -12
- package/internal/components/drag-handle/button.d.ts +2 -1
- package/internal/components/drag-handle/hooks/interfaces.d.ts +37 -36
- package/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.d.ts +11 -10
- package/internal/components/drag-handle/index.d.ts +2 -1
- package/internal/components/drag-handle/interfaces.d.ts +35 -34
- package/internal/components/drag-handle/resize-icon.d.ts +4 -5
- package/internal/components/drag-handle-wrapper/direction-button.d.ts +7 -11
- package/internal/components/drag-handle-wrapper/index.d.ts +2 -10
- package/internal/components/drag-handle-wrapper/interfaces.d.ts +10 -9
- package/internal/components/drag-handle-wrapper/portal-overlay.d.ts +6 -9
- package/internal/components/dropdown/context.d.ts +6 -8
- package/internal/components/dropdown/dropdown-fit-handler.d.ts +27 -44
- package/internal/components/dropdown/dropdown-position.d.ts +13 -17
- package/internal/components/dropdown/index.d.ts +3 -29
- package/internal/components/dropdown/interfaces.d.ts +147 -146
- package/internal/components/dropdown-footer/index.d.ts +5 -4
- package/internal/components/dropdown-status/index.d.ts +25 -40
- package/internal/components/dropdown-status/interfaces.d.ts +39 -38
- package/internal/components/focus-lock/index.d.ts +11 -10
- package/internal/components/focus-lock/utils.d.ts +2 -1
- package/internal/components/interfaces.d.ts +4 -3
- package/internal/components/masked-input/index.d.ts +2 -1
- package/internal/components/masked-input/interfaces.d.ts +21 -20
- package/internal/components/masked-input/keyboard-handler.d.ts +4 -3
- package/internal/components/masked-input/use-mask.d.ts +17 -26
- package/internal/components/masked-input/utils/keys.d.ts +2 -1
- package/internal/components/masked-input/utils/mask-format.d.ts +39 -42
- package/internal/components/masked-input/utils/strings.d.ts +2 -1
- package/internal/components/menu-dropdown/index.d.ts +3 -11
- package/internal/components/menu-dropdown/interfaces.d.ts +21 -20
- package/internal/components/option/highlight-match.d.ts +5 -7
- package/internal/components/option/index.d.ts +3 -11
- package/internal/components/option/interfaces.d.ts +30 -29
- package/internal/components/option/option-announcer.d.ts +6 -9
- package/internal/components/option/option-parts.d.ts +29 -55
- package/internal/components/option/utils/filter-options.d.ts +2 -1
- package/internal/components/option/utils/flatten-options.d.ts +4 -3
- package/internal/components/option/utils/prepare-options.d.ts +7 -6
- package/internal/components/options-list/index.d.ts +28 -27
- package/internal/components/options-list/utils/test-indexes.d.ts +6 -5
- package/internal/components/options-list/utils/use-highlight-option.d.ts +18 -20
- package/internal/components/options-list/utils/use-ids.d.ts +2 -1
- package/internal/components/options-list/utils/use-keyboard.d.ts +15 -14
- package/internal/components/options-list/utils/use-open-state.d.ts +11 -14
- package/internal/components/panel-resize-handle/index.d.ts +10 -9
- package/internal/components/responsive-text/index.d.ts +8 -13
- package/internal/components/responsive-text/responsive-text-utils.d.ts +2 -1
- package/internal/components/screenreader-only/index.d.ts +5 -4
- package/internal/components/selectable-item/analytics-metadata/interfaces.d.ts +9 -8
- package/internal/components/selectable-item/analytics-metadata/utils.d.ts +2 -5
- package/internal/components/selectable-item/index.d.ts +2 -1
- package/internal/components/selectable-item/interfaces.d.ts +31 -30
- package/internal/components/sortable-area/index.d.ts +3 -9
- package/internal/components/sortable-area/interfaces.d.ts +36 -35
- package/internal/components/sortable-area/keyboard-sensor/defaults.d.ts +2 -1
- package/internal/components/sortable-area/keyboard-sensor/index.d.ts +16 -15
- package/internal/components/sortable-area/keyboard-sensor/utilities/events.d.ts +6 -5
- package/internal/components/sortable-area/keyboard-sensor/utilities/listeners.d.ts +7 -6
- package/internal/components/sortable-area/keyboard-sensor/utilities/scroll.d.ts +7 -11
- package/internal/components/sortable-area/use-drag-and-drop-reorder.d.ts +11 -13
- package/internal/components/sortable-area/use-live-announcements.d.ts +10 -25
- package/internal/components/tab-trap/index.d.ts +5 -7
- package/internal/components/token-list/analytics-metadata/interfaces.d.ts +10 -9
- package/internal/components/token-list/index.d.ts +2 -11
- package/internal/components/token-list/interfaces.d.ts +13 -12
- package/internal/components/token-list/token-limit-toggle.d.ts +11 -19
- package/internal/components/tooltip/index.d.ts +11 -20
- package/internal/components/transition/index.d.ts +11 -18
- package/internal/components/visual-context/index.d.ts +6 -9
- package/internal/context/button-context.d.ts +5 -6
- package/internal/context/collection-label-context.d.ts +3 -2
- package/internal/context/collection-preferences-metadata-context.d.ts +6 -5
- package/internal/context/container-header.d.ts +4 -5
- package/internal/context/dynamic-overlap-context.d.ts +2 -1
- package/internal/context/form-field-context.d.ts +50 -49
- package/internal/context/info-link-label-context.d.ts +2 -1
- package/internal/context/link-default-variant-context.d.ts +4 -3
- package/internal/context/modal-context.d.ts +5 -4
- package/internal/context/reset-contexts-for-modal.d.ts +4 -5
- package/internal/context/single-tab-stop-navigation-context.d.ts +18 -17
- package/internal/context/single-tab-stop-navigation-context.js +1 -1
- package/internal/context/single-tab-stop-navigation-context.js.map +1 -1
- package/internal/context/split-panel-context.d.ts +28 -27
- package/internal/context/table-component-context.d.ts +16 -15
- package/internal/debounce.d.ts +2 -1
- package/internal/do-not-use/chart-filter.d.ts +2 -1
- package/internal/do-not-use/chart-tooltip.d.ts +2 -1
- package/internal/do-not-use/drag-handle.d.ts +2 -1
- package/internal/do-not-use/expandable-section.d.ts +2 -1
- package/internal/do-not-use/i18n.d.ts +2 -1
- package/internal/do-not-use/tooltip.d.ts +2 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/events/index.d.ts +18 -20
- package/internal/focus-tracker.d.ts +16 -18
- package/internal/generated/custom-css-properties/index.d.ts +77 -76
- package/internal/generated/theming/index.cjs.d.ts +13 -12
- package/internal/generated/theming/index.d.ts +13 -12
- package/internal/hooks/check-controlled/index.d.ts +2 -1
- package/internal/hooks/container-queries/index.d.ts +2 -1
- package/internal/hooks/container-queries/use-container-breakpoints.d.ts +2 -1
- package/internal/hooks/container-queries/use-height-measure.d.ts +2 -1
- package/internal/hooks/forward-focus/index.d.ts +4 -3
- package/internal/hooks/forward-focus/radio-group.d.ts +4 -3
- package/internal/hooks/use-base-component/index.d.ts +4 -3
- package/internal/hooks/use-base-component/styles-check.d.ts +2 -1
- package/internal/hooks/use-controllable/index.d.ts +6 -9
- package/internal/hooks/use-date-cache/index.d.ts +2 -1
- package/internal/hooks/use-debounce-callback/index.d.ts +2 -1
- package/internal/hooks/use-dom-attribute/index.d.ts +3 -2
- package/internal/hooks/use-dynamic-overlap/index.d.ts +6 -5
- package/internal/hooks/use-effect-on-update.d.ts +2 -1
- package/internal/hooks/use-focus-tracker.d.ts +7 -6
- package/internal/hooks/use-has-rendered/index.d.ts +2 -1
- package/internal/hooks/use-hidden-description/index.d.ts +7 -6
- package/internal/hooks/use-intersection-observer/index.d.ts +6 -7
- package/internal/hooks/use-list-focus-controller.d.ts +8 -13
- package/internal/hooks/use-mobile/index.d.ts +2 -1
- package/internal/hooks/use-modal-component-analytics/index.d.ts +2 -1
- package/internal/hooks/use-mouse-down-target.d.ts +2 -1
- package/internal/hooks/use-performance-marks/index.d.ts +3 -2
- package/internal/hooks/use-performance-marks/is-in-viewport.d.ts +2 -1
- package/internal/hooks/use-portal-mode-classes/index.d.ts +2 -1
- package/internal/hooks/use-previous/index.d.ts +2 -1
- package/internal/hooks/use-scroll-sync/index.d.ts +2 -1
- package/internal/hooks/use-table-interaction-metrics/index.d.ts +15 -23
- package/internal/hooks/use-virtual/index.d.ts +10 -14
- package/internal/hooks/use-virtual/sticky-range-extractor.d.ts +6 -5
- package/internal/hooks/use-visual-mode/index.d.ts +2 -1
- package/internal/is-development.d.ts +2 -1
- package/internal/keycode.d.ts +15 -14
- package/internal/manifest.json +1 -1
- package/internal/metrics.d.ts +2 -1
- package/internal/plugins/api.d.ts +21 -20
- package/internal/plugins/controllers/action-buttons.d.ts +21 -20
- package/internal/plugins/controllers/alert-flash-content.d.ts +37 -36
- package/internal/plugins/controllers/app-layout-widget.d.ts +20 -19
- package/internal/plugins/controllers/breadcrumbs.d.ts +24 -23
- package/internal/plugins/controllers/drawers.d.ts +61 -63
- package/internal/plugins/controllers/shared-react-contexts.d.ts +6 -5
- package/internal/plugins/helpers/index.d.ts +2 -1
- package/internal/plugins/helpers/metrics.d.ts +2 -1
- package/internal/plugins/helpers/use-discovered-action.d.ts +5 -4
- package/internal/plugins/helpers/use-discovered-content.d.ts +13 -16
- package/internal/plugins/helpers/use-global-breadcrumbs.d.ts +2 -1
- package/internal/plugins/helpers/utils.d.ts +4 -3
- package/internal/plugins/index.d.ts +2 -1
- package/internal/styles/colors.d.ts +2 -1
- package/internal/styles/global-vars.d.ts +4 -3
- package/internal/styles/motion/utils.d.ts +2 -1
- package/internal/tooltip-do-not-use/index.d.ts +2 -1
- package/internal/types.d.ts +5 -2
- package/internal/utils/apply-display-name.d.ts +2 -1
- package/internal/utils/browser-scrollbar-size.d.ts +4 -3
- package/internal/utils/calculate-once.d.ts +2 -1
- package/internal/utils/check-safe-url.d.ts +2 -1
- package/internal/utils/circle-index.d.ts +2 -1
- package/internal/utils/content-header-utils.d.ts +2 -1
- package/internal/utils/create-category-color-scale.d.ts +2 -1
- package/internal/utils/date-time/calendar.d.ts +34 -44
- package/internal/utils/date-time/display-format.d.ts +2 -1
- package/internal/utils/date-time/format-date-iso.d.ts +8 -13
- package/internal/utils/date-time/format-date-localized.d.ts +9 -15
- package/internal/utils/date-time/format-date-time-with-offset.d.ts +8 -13
- package/internal/utils/date-time/format-date-time.d.ts +2 -1
- package/internal/utils/date-time/format-date.d.ts +2 -1
- package/internal/utils/date-time/format-time-offset.d.ts +2 -1
- package/internal/utils/date-time/format-time.d.ts +2 -1
- package/internal/utils/date-time/index.d.ts +2 -1
- package/internal/utils/date-time/is-iso-only.d.ts +2 -1
- package/internal/utils/date-time/join-date-time.d.ts +4 -3
- package/internal/utils/date-time/parse-date.d.ts +2 -1
- package/internal/utils/date-time/parse-timezone-offset.d.ts +2 -1
- package/internal/utils/date-time/shift-timezone-offset.d.ts +2 -1
- package/internal/utils/dom.d.ts +5 -7
- package/internal/utils/external-props.d.ts +2 -1
- package/internal/utils/get-visual-theme.d.ts +2 -1
- package/internal/utils/handle-key.d.ts +16 -27
- package/internal/utils/has-value.d.ts +2 -1
- package/internal/utils/locale/index.d.ts +2 -1
- package/internal/utils/locale/merge-locales.d.ts +2 -1
- package/internal/utils/locale/normalize-locale.d.ts +2 -1
- package/internal/utils/locale/normalize-start-of-week.d.ts +2 -1
- package/internal/utils/node-belongs.d.ts +2 -1
- package/internal/utils/pointer-events-mock.d.ts +4 -3
- package/internal/utils/promises.d.ts +7 -5
- package/internal/utils/scrollable-containers.d.ts +12 -19
- package/internal/utils/strings/index.d.ts +2 -1
- package/internal/utils/strings/join-strings.d.ts +2 -1
- package/internal/utils/strings/pad-left-zeros.d.ts +2 -1
- package/internal/utils/throttle.d.ts +6 -7
- package/internal/utils/use-container-width.d.ts +2 -1
- package/internal/widget-exports.d.ts +4 -3
- package/internal/widgets/index.d.ts +2 -1
- package/key-value-pairs/index.d.ts +2 -8
- package/key-value-pairs/interfaces.d.ts +56 -55
- package/key-value-pairs/internal.d.ts +2 -1
- package/line-chart/index.d.ts +3 -11
- package/line-chart/interfaces.d.ts +14 -13
- package/link/analytics-metadata/interfaces.d.ts +14 -13
- package/link/index.d.ts +2 -1
- package/link/interfaces.d.ts +97 -96
- package/link/internal.d.ts +3 -2
- package/live-region/controller.d.ts +26 -28
- package/live-region/index.d.ts +3 -7
- package/live-region/interfaces.d.ts +23 -22
- package/live-region/internal.d.ts +23 -22
- package/mixed-line-bar-chart/bar-groups.d.ts +9 -15
- package/mixed-line-bar-chart/bar-series.d.ts +17 -31
- package/mixed-line-bar-chart/chart-container.d.ts +31 -59
- package/mixed-line-bar-chart/chart-container.js +1 -1
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/mixed-line-bar-chart/chart-legend.d.ts +10 -17
- package/mixed-line-bar-chart/chart-popover.d.ts +15 -14
- package/mixed-line-bar-chart/create-one-side-rounded-rect-path.d.ts +7 -11
- package/mixed-line-bar-chart/data-series.d.ts +14 -25
- package/mixed-line-bar-chart/domain.d.ts +2 -1
- package/mixed-line-bar-chart/format-highlighted.d.ts +9 -13
- package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts +16 -26
- package/mixed-line-bar-chart/hooks/use-navigation.d.ts +23 -41
- package/mixed-line-bar-chart/hooks/use-popover.d.ts +7 -6
- package/mixed-line-bar-chart/index.d.ts +3 -13
- package/mixed-line-bar-chart/interfaces.d.ts +107 -106
- package/mixed-line-bar-chart/internal.d.ts +3 -41
- package/mixed-line-bar-chart/line-series.d.ts +9 -15
- package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts +11 -10
- package/mixed-line-bar-chart/make-scaled-series.d.ts +7 -6
- package/mixed-line-bar-chart/utils.d.ts +4 -3
- package/modal/analytics-metadata/interfaces.d.ts +8 -7
- package/modal/body-scroll.d.ts +2 -1
- package/modal/index.d.ts +2 -4
- package/modal/interfaces.d.ts +75 -74
- package/modal/internal.d.ts +10 -14
- package/multiselect/analytics-metadata/interfaces.d.ts +8 -7
- package/multiselect/embedded.d.ts +8 -7
- package/multiselect/index.d.ts +2 -1
- package/multiselect/interfaces.d.ts +81 -80
- package/multiselect/internal.d.ts +8 -7
- package/multiselect/use-multiselect.d.ts +59 -87
- package/package.json +1 -1
- package/pagination/analytics-metadata/interfaces.d.ts +14 -13
- package/pagination/index.d.ts +2 -1
- package/pagination/interfaces.d.ts +73 -72
- package/pagination/internal.d.ts +3 -13
- package/pagination/utils.d.ts +6 -5
- package/pie-chart/index.d.ts +3 -21
- package/pie-chart/interfaces.d.ts +222 -221
- package/pie-chart/labels.d.ts +11 -19
- package/pie-chart/pie-chart.d.ts +13 -35
- package/pie-chart/responsive-text.d.ts +11 -17
- package/pie-chart/segments.d.ts +13 -23
- package/pie-chart/utils.d.ts +19 -22
- package/popover/arrow.d.ts +3 -2
- package/popover/body.d.ts +12 -22
- package/popover/container.d.ts +31 -48
- package/popover/index.d.ts +2 -1
- package/popover/interfaces.d.ts +81 -80
- package/popover/internal.d.ts +9 -8
- package/popover/use-popover-position.d.ts +20 -32
- package/popover/utils/positions.d.ts +20 -30
- package/progress-bar/index.d.ts +2 -15
- package/progress-bar/interfaces.d.ts +71 -70
- package/progress-bar/internal.d.ts +19 -35
- package/prompt-input/index.d.ts +2 -1
- package/prompt-input/interfaces.d.ts +93 -92
- package/prompt-input/internal.d.ts +4 -2
- package/property-filter/analytics-metadata/interfaces.d.ts +25 -24
- package/property-filter/controller.d.ts +41 -45
- package/property-filter/filter-options.d.ts +2 -1
- package/property-filter/filtering-token/index.d.ts +28 -27
- package/property-filter/i18n-utils.d.ts +15 -14
- package/property-filter/i18n-utils.js +1 -1
- package/property-filter/i18n-utils.js.map +1 -1
- package/property-filter/index.d.ts +2 -1
- package/property-filter/interfaces.d.ts +326 -325
- package/property-filter/internal.d.ts +8 -7
- package/property-filter/internal.js +3 -3
- package/property-filter/internal.js.map +1 -1
- package/property-filter/property-editor.d.ts +24 -45
- package/property-filter/property-filter-autosuggest.d.ts +11 -10
- package/property-filter/token-editor-inputs.d.ts +26 -41
- package/property-filter/token-editor.d.ts +18 -34
- package/property-filter/token.d.ts +21 -39
- package/property-filter/use-load-items.d.ts +5 -4
- package/property-filter/utils.d.ts +6 -9
- package/radio-group/analytics-metadata/interfaces.d.ts +10 -9
- package/radio-group/index.d.ts +2 -1
- package/radio-group/interfaces.d.ts +65 -64
- package/radio-group/internal.d.ts +2 -1
- package/radio-group/radio-button.d.ts +7 -6
- package/s3-resource-selector/index.d.ts +2 -1
- package/s3-resource-selector/interfaces.d.ts +232 -231
- package/s3-resource-selector/s3-in-context/index.d.ts +13 -12
- package/s3-resource-selector/s3-in-context/search-input.d.ts +2 -1
- package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +10 -9
- package/s3-resource-selector/s3-in-context/validation.d.ts +2 -1
- package/s3-resource-selector/s3-modal/basic-table.d.ts +26 -35
- package/s3-resource-selector/s3-modal/buckets-table.d.ts +12 -21
- package/s3-resource-selector/s3-modal/column-formats.d.ts +2 -1
- package/s3-resource-selector/s3-modal/empty-state.d.ts +6 -9
- package/s3-resource-selector/s3-modal/index.d.ts +18 -34
- package/s3-resource-selector/s3-modal/objects-table.d.ts +13 -23
- package/s3-resource-selector/s3-modal/table-utils.d.ts +2 -4
- package/s3-resource-selector/s3-modal/versions-table.d.ts +11 -19
- package/s3-resource-selector/utils.d.ts +2 -1
- package/segmented-control/index.d.ts +2 -1
- package/segmented-control/interfaces.d.ts +48 -47
- package/segmented-control/internal-segmented-control.d.ts +2 -7
- package/segmented-control/internal.d.ts +3 -10
- package/segmented-control/segment.d.ts +6 -5
- package/select/analytics-metadata/interfaces.d.ts +7 -6
- package/select/index.d.ts +2 -1
- package/select/interfaces.d.ts +183 -182
- package/select/internal.d.ts +3 -2
- package/select/parts/common.d.ts +2 -1
- package/select/parts/filter.d.ts +4 -3
- package/select/parts/item.d.ts +16 -15
- package/select/parts/multiselect-item.d.ts +3 -2
- package/select/parts/plain-list.d.ts +14 -13
- package/select/parts/trigger.d.ts +12 -11
- package/select/parts/virtual-list.d.ts +2 -1
- package/select/utils/check-option-value-field.d.ts +2 -1
- package/select/utils/connect-options.d.ts +2 -1
- package/select/utils/get-item-props.d.ts +8 -13
- package/select/utils/render-options.d.ts +16 -29
- package/select/utils/scroll-to-index.d.ts +5 -7
- package/select/utils/use-announcement.d.ts +10 -16
- package/select/utils/use-load-items.d.ts +9 -12
- package/select/utils/use-native-search.d.ts +8 -13
- package/select/utils/use-select.d.ts +34 -50
- package/side-navigation/analytics-metadata/interfaces.d.ts +14 -13
- package/side-navigation/implementation.d.ts +3 -11
- package/side-navigation/index.d.ts +2 -4
- package/side-navigation/interfaces.d.ts +172 -171
- package/side-navigation/internal.d.ts +2 -1
- package/side-navigation/parts.d.ts +11 -21
- package/side-navigation/util.d.ts +2 -1
- package/slider/index.d.ts +2 -5
- package/slider/interfaces.d.ts +75 -74
- package/slider/internal.d.ts +5 -20
- package/slider/slider-labels.d.ts +9 -15
- package/slider/tick-marks.d.ts +12 -11
- package/slider/utils.d.ts +4 -3
- package/space-between/index.d.ts +2 -4
- package/space-between/interfaces.d.ts +21 -20
- package/space-between/internal.d.ts +2 -1
- package/spinner/index.d.ts +2 -5
- package/spinner/interfaces.d.ts +12 -11
- package/spinner/internal.d.ts +5 -8
- package/split-panel/bottom.d.ts +5 -16
- package/split-panel/icons/bottom-icon-refresh.d.ts +2 -1
- package/split-panel/icons/bottom-icon.d.ts +2 -1
- package/split-panel/icons/side-position-refresh.d.ts +5 -4
- package/split-panel/icons/side-position.d.ts +2 -1
- package/split-panel/implementation.d.ts +3 -10
- package/split-panel/index.d.ts +2 -6
- package/split-panel/interfaces.d.ts +54 -53
- package/split-panel/internal.d.ts +2 -1
- package/split-panel/preferences-modal.d.ts +21 -20
- package/split-panel/side.d.ts +6 -19
- package/split-panel/utils/size-utils.d.ts +2 -1
- package/status-indicator/index.d.ts +2 -5
- package/status-indicator/internal.d.ts +38 -48
- package/steps/index.d.ts +3 -5
- package/steps/interfaces.d.ts +34 -33
- package/steps/internal.d.ts +3 -9
- package/table/analytics-metadata/interfaces.d.ts +45 -44
- package/table/body-cell/click-away.d.ts +2 -1
- package/table/body-cell/disabled-inline-editor.d.ts +4 -12
- package/table/body-cell/index.d.ts +9 -8
- package/table/body-cell/inline-editor.d.ts +11 -17
- package/table/body-cell/td-element.d.ts +37 -36
- package/table/column-widths-utils.d.ts +5 -4
- package/table/expandable-rows/expand-toggle-button.d.ts +7 -11
- package/table/expandable-rows/expandable-rows-utils.d.ts +20 -24
- package/table/header-cell/index.d.ts +29 -56
- package/table/header-cell/th-element.d.ts +20 -39
- package/table/header-cell/utils.d.ts +2 -1
- package/table/index.d.ts +2 -1
- package/table/interfaces.d.ts +515 -514
- package/table/internal.d.ts +2 -1
- package/table/internal.js +1 -1
- package/table/internal.js.map +1 -1
- package/table/no-data-cell.d.ts +10 -17
- package/table/progressive-loading/items-loader.d.ts +12 -22
- package/table/progressive-loading/loader-cell.d.ts +4 -7
- package/table/progressive-loading/progressive-loading-utils.d.ts +12 -15
- package/table/resizer/index.d.ts +13 -23
- package/table/resizer/resizer-lookup.d.ts +6 -5
- package/table/selection/index.d.ts +2 -1
- package/table/selection/interfaces.d.ts +11 -10
- package/table/selection/selection-cell.d.ts +9 -17
- package/table/selection/selection-control.d.ts +11 -23
- package/table/selection/use-selection-focus-move.d.ts +8 -7
- package/table/selection/use-selection.d.ts +7 -6
- package/table/selection/utils.d.ts +17 -16
- package/table/sticky-columns/index.d.ts +2 -1
- package/table/sticky-columns/interfaces.d.ts +22 -21
- package/table/sticky-columns/use-sticky-columns.d.ts +19 -26
- package/table/sticky-columns/utils.d.ts +2 -1
- package/table/sticky-header.d.ts +15 -14
- package/table/sticky-scrollbar/index.d.ts +2 -1
- package/table/sticky-scrollbar/sticky-scrollbar.d.ts +6 -5
- package/table/sticky-scrollbar/use-sticky-scrollbar.d.ts +2 -1
- package/table/sticky-scrolling.d.ts +4 -3
- package/table/table-role/grid-navigation.d.ts +2 -6
- package/table/table-role/index.d.ts +3 -2
- package/table/table-role/interfaces.d.ts +10 -9
- package/table/table-role/table-role-helper.d.ts +24 -23
- package/table/table-role/utils.d.ts +2 -1
- package/table/thead.d.ts +28 -27
- package/table/tools-header.d.ts +8 -13
- package/table/use-cell-editing.d.ts +14 -22
- package/table/use-column-widths.d.ts +12 -16
- package/table/use-prevent-sticky-click-scroll.d.ts +2 -1
- package/table/use-row-events.d.ts +5 -7
- package/table/use-sticky-header.d.ts +4 -3
- package/table/use-table-focus-navigation.d.ts +9 -14
- package/table/utils.d.ts +7 -10
- package/tabs/analytics-metadata/interfaces.d.ts +28 -27
- package/tabs/index.d.ts +2 -14
- package/tabs/interfaces.d.ts +155 -154
- package/tabs/native-smooth-scroll-supported.d.ts +2 -1
- package/tabs/scroll-utils.d.ts +2 -1
- package/tabs/smooth-scroll.d.ts +2 -1
- package/tabs/tab-header-bar.d.ts +16 -29
- package/tag-editor/index.d.ts +2 -1
- package/tag-editor/index.js +1 -1
- package/tag-editor/index.js.map +1 -1
- package/tag-editor/interfaces.d.ts +113 -112
- package/tag-editor/internal.d.ts +21 -20
- package/tag-editor/utils.d.ts +4 -3
- package/tag-editor/validation.d.ts +4 -3
- package/test-utils/dom/alert/index.d.ts +21 -21
- package/test-utils/dom/anchor-navigation/index.d.ts +12 -12
- package/test-utils/dom/annotation/index.d.ts +9 -9
- package/test-utils/dom/app-layout/index.d.ts +32 -32
- package/test-utils/dom/app-layout-toolbar/index.d.ts +2 -2
- package/test-utils/dom/area-chart/index.d.ts +8 -8
- package/test-utils/dom/attribute-editor/index.d.ts +30 -30
- package/test-utils/dom/autosuggest/index.d.ts +87 -87
- package/test-utils/dom/badge/index.d.ts +2 -2
- package/test-utils/dom/bar-chart/index.d.ts +2 -2
- package/test-utils/dom/box/index.d.ts +2 -2
- package/test-utils/dom/breadcrumb-group/index.d.ts +18 -18
- package/test-utils/dom/button/index.d.ts +6 -6
- package/test-utils/dom/button-dropdown/index.d.ts +41 -41
- package/test-utils/dom/button-group/index.d.ts +26 -26
- package/test-utils/dom/calendar/index.d.ts +24 -24
- package/test-utils/dom/cards/index.d.ts +31 -31
- package/test-utils/dom/checkbox/index.d.ts +6 -6
- package/test-utils/dom/code-editor/index.d.ts +17 -17
- package/test-utils/dom/collection-preferences/content-display-preference.d.ts +40 -40
- package/test-utils/dom/collection-preferences/index.d.ts +16 -16
- package/test-utils/dom/collection-preferences/page-size-preference.d.ts +4 -4
- package/test-utils/dom/collection-preferences/sticky-columns-preference.d.ts +6 -6
- package/test-utils/dom/collection-preferences/visible-content-preference.d.ts +12 -12
- package/test-utils/dom/column-layout/index.d.ts +2 -2
- package/test-utils/dom/container/index.d.ts +6 -6
- package/test-utils/dom/content-layout/index.d.ts +7 -7
- package/test-utils/dom/copy-to-clipboard/index.d.ts +15 -15
- package/test-utils/dom/date-input/index.d.ts +2 -2
- package/test-utils/dom/date-picker/index.d.ts +19 -19
- package/test-utils/dom/date-range-picker/index.d.ts +82 -82
- package/test-utils/dom/drawer/index.d.ts +5 -5
- package/test-utils/dom/expandable-section/index.d.ts +9 -9
- package/test-utils/dom/file-dropzone/index.d.ts +3 -3
- package/test-utils/dom/file-input/index.d.ts +4 -4
- package/test-utils/dom/file-token-group/index.d.ts +17 -17
- package/test-utils/dom/file-upload/index.d.ts +18 -18
- package/test-utils/dom/flashbar/flash.d.ts +20 -20
- package/test-utils/dom/flashbar/index.d.ts +20 -20
- package/test-utils/dom/form/index.d.ts +7 -7
- package/test-utils/dom/form-field/index.d.ts +10 -10
- package/test-utils/dom/grid/index.d.ts +7 -7
- package/test-utils/dom/header/index.d.ts +7 -7
- package/test-utils/dom/help-panel/index.d.ts +5 -5
- package/test-utils/dom/hotspot/index.d.ts +4 -4
- package/test-utils/dom/icon/index.d.ts +2 -2
- package/test-utils/dom/index.d.ts +1443 -1443
- package/test-utils/dom/input/base-input.d.ts +17 -17
- package/test-utils/dom/input/index.d.ts +3 -3
- package/test-utils/dom/internal/abstract-switch.d.ts +5 -5
- package/test-utils/dom/internal/autosuggest-input.d.ts +4 -4
- package/test-utils/dom/internal/chart-filter.d.ts +4 -4
- package/test-utils/dom/internal/chart-legend.d.ts +6 -6
- package/test-utils/dom/internal/chart-popover.d.ts +9 -9
- package/test-utils/dom/internal/chart-tooltip.d.ts +6 -6
- package/test-utils/dom/internal/charts.d.ts +5 -5
- package/test-utils/dom/internal/drag-handle.d.ts +7 -7
- package/test-utils/dom/internal/dropdown-host.d.ts +119 -119
- package/test-utils/dom/internal/dropdown.d.ts +3 -3
- package/test-utils/dom/internal/option.d.ts +7 -7
- package/test-utils/dom/internal/options-list.d.ts +2 -2
- package/test-utils/dom/internal/tooltip.d.ts +2 -2
- package/test-utils/dom/key-value-pairs/index.d.ts +8 -8
- package/test-utils/dom/line-chart/index.d.ts +2 -2
- package/test-utils/dom/link/index.d.ts +2 -2
- package/test-utils/dom/live-region/index.d.ts +2 -2
- package/test-utils/dom/mixed-line-bar-chart/index.d.ts +21 -21
- package/test-utils/dom/modal/index.d.ts +7 -7
- package/test-utils/dom/multiselect/index.d.ts +38 -38
- package/test-utils/dom/pagination/index.d.ts +13 -13
- package/test-utils/dom/pie-chart/index.d.ts +13 -13
- package/test-utils/dom/popover/index.d.ts +24 -24
- package/test-utils/dom/progress-bar/index.d.ts +14 -14
- package/test-utils/dom/prompt-input/index.d.ts +18 -18
- package/test-utils/dom/property-filter/index.d.ts +68 -68
- package/test-utils/dom/radio-group/index.d.ts +4 -4
- package/test-utils/dom/radio-group/radio-button.d.ts +5 -5
- package/test-utils/dom/s3-resource-selector/index.d.ts +11 -11
- package/test-utils/dom/segmented-control/index.d.ts +11 -11
- package/test-utils/dom/select/index.d.ts +28 -28
- package/test-utils/dom/side-navigation/index.d.ts +18 -18
- package/test-utils/dom/slider/index.d.ts +3 -3
- package/test-utils/dom/space-between/index.d.ts +2 -2
- package/test-utils/dom/spinner/index.d.ts +2 -2
- package/test-utils/dom/split-panel/index.d.ts +17 -17
- package/test-utils/dom/status-indicator/index.d.ts +2 -2
- package/test-utils/dom/steps/index.d.ts +14 -14
- package/test-utils/dom/table/index.d.ts +91 -91
- package/test-utils/dom/tabs/index.d.ts +68 -68
- package/test-utils/dom/tag-editor/index.d.ts +17 -17
- package/test-utils/dom/text-content/index.d.ts +2 -2
- package/test-utils/dom/text-filter/index.d.ts +4 -4
- package/test-utils/dom/textarea/index.d.ts +15 -15
- package/test-utils/dom/tiles/index.d.ts +5 -5
- package/test-utils/dom/tiles/tile.d.ts +7 -7
- package/test-utils/dom/time-input/index.d.ts +2 -2
- package/test-utils/dom/toggle/index.d.ts +6 -6
- package/test-utils/dom/toggle-button/index.d.ts +3 -3
- package/test-utils/dom/token-group/index.d.ts +13 -13
- package/test-utils/dom/token-group/token.d.ts +5 -5
- package/test-utils/dom/top-navigation/1.0-beta/index.d.ts +17 -17
- package/test-utils/dom/top-navigation/index.d.ts +23 -23
- package/test-utils/dom/tutorial-panel/index.d.ts +12 -12
- package/test-utils/dom/tutorial-panel/tutorial.d.ts +10 -10
- package/test-utils/dom/wizard/index.d.ts +22 -22
- package/test-utils/selectors/alert/index.d.ts +21 -21
- package/test-utils/selectors/anchor-navigation/index.d.ts +11 -11
- package/test-utils/selectors/annotation/index.d.ts +9 -9
- package/test-utils/selectors/app-layout/index.d.ts +32 -32
- package/test-utils/selectors/app-layout-toolbar/index.d.ts +2 -2
- package/test-utils/selectors/area-chart/index.d.ts +8 -8
- package/test-utils/selectors/attribute-editor/index.d.ts +30 -30
- package/test-utils/selectors/autosuggest/index.d.ts +67 -67
- package/test-utils/selectors/badge/index.d.ts +2 -2
- package/test-utils/selectors/bar-chart/index.d.ts +2 -2
- package/test-utils/selectors/box/index.d.ts +2 -2
- package/test-utils/selectors/breadcrumb-group/index.d.ts +18 -18
- package/test-utils/selectors/button/index.d.ts +5 -5
- package/test-utils/selectors/button-dropdown/index.d.ts +39 -39
- package/test-utils/selectors/button-group/index.d.ts +26 -26
- package/test-utils/selectors/calendar/index.d.ts +24 -24
- package/test-utils/selectors/cards/index.d.ts +31 -31
- package/test-utils/selectors/checkbox/index.d.ts +6 -6
- package/test-utils/selectors/code-editor/index.d.ts +11 -11
- package/test-utils/selectors/collection-preferences/content-display-preference.d.ts +40 -40
- package/test-utils/selectors/collection-preferences/index.d.ts +16 -16
- package/test-utils/selectors/collection-preferences/page-size-preference.d.ts +4 -4
- package/test-utils/selectors/collection-preferences/sticky-columns-preference.d.ts +6 -6
- package/test-utils/selectors/collection-preferences/visible-content-preference.d.ts +12 -12
- package/test-utils/selectors/column-layout/index.d.ts +2 -2
- package/test-utils/selectors/container/index.d.ts +6 -6
- package/test-utils/selectors/content-layout/index.d.ts +7 -7
- package/test-utils/selectors/copy-to-clipboard/index.d.ts +15 -15
- package/test-utils/selectors/date-input/index.d.ts +2 -2
- package/test-utils/selectors/date-picker/index.d.ts +11 -11
- package/test-utils/selectors/date-range-picker/index.d.ts +81 -81
- package/test-utils/selectors/drawer/index.d.ts +5 -5
- package/test-utils/selectors/expandable-section/index.d.ts +9 -9
- package/test-utils/selectors/file-dropzone/index.d.ts +3 -3
- package/test-utils/selectors/file-input/index.d.ts +4 -4
- package/test-utils/selectors/file-token-group/index.d.ts +17 -17
- package/test-utils/selectors/file-upload/index.d.ts +18 -18
- package/test-utils/selectors/flashbar/flash.d.ts +20 -20
- package/test-utils/selectors/flashbar/index.d.ts +20 -20
- package/test-utils/selectors/form/index.d.ts +7 -7
- package/test-utils/selectors/form-field/index.d.ts +10 -10
- package/test-utils/selectors/grid/index.d.ts +7 -7
- package/test-utils/selectors/header/index.d.ts +7 -7
- package/test-utils/selectors/help-panel/index.d.ts +5 -5
- package/test-utils/selectors/hotspot/index.d.ts +4 -4
- package/test-utils/selectors/icon/index.d.ts +2 -2
- package/test-utils/selectors/index.d.ts +1283 -1283
- package/test-utils/selectors/input/base-input.d.ts +2 -2
- package/test-utils/selectors/input/index.d.ts +3 -3
- package/test-utils/selectors/internal/abstract-switch.d.ts +5 -5
- package/test-utils/selectors/internal/autosuggest-input.d.ts +4 -4
- package/test-utils/selectors/internal/chart-filter.d.ts +4 -4
- package/test-utils/selectors/internal/chart-legend.d.ts +6 -6
- package/test-utils/selectors/internal/chart-popover.d.ts +9 -9
- package/test-utils/selectors/internal/chart-tooltip.d.ts +6 -6
- package/test-utils/selectors/internal/charts.d.ts +5 -5
- package/test-utils/selectors/internal/drag-handle.d.ts +7 -7
- package/test-utils/selectors/internal/dropdown-host.d.ts +56 -56
- package/test-utils/selectors/internal/dropdown.d.ts +3 -3
- package/test-utils/selectors/internal/option.d.ts +7 -7
- package/test-utils/selectors/internal/options-list.d.ts +2 -2
- package/test-utils/selectors/internal/tooltip.d.ts +2 -2
- package/test-utils/selectors/key-value-pairs/index.d.ts +8 -8
- package/test-utils/selectors/line-chart/index.d.ts +2 -2
- package/test-utils/selectors/link/index.d.ts +2 -2
- package/test-utils/selectors/live-region/index.d.ts +2 -2
- package/test-utils/selectors/mixed-line-bar-chart/index.d.ts +21 -21
- package/test-utils/selectors/modal/index.d.ts +6 -6
- package/test-utils/selectors/multiselect/index.d.ts +37 -37
- package/test-utils/selectors/pagination/index.d.ts +12 -12
- package/test-utils/selectors/pie-chart/index.d.ts +13 -13
- package/test-utils/selectors/popover/index.d.ts +24 -24
- package/test-utils/selectors/progress-bar/index.d.ts +14 -14
- package/test-utils/selectors/prompt-input/index.d.ts +6 -6
- package/test-utils/selectors/property-filter/index.d.ts +68 -68
- package/test-utils/selectors/radio-group/index.d.ts +4 -4
- package/test-utils/selectors/radio-group/radio-button.d.ts +5 -5
- package/test-utils/selectors/s3-resource-selector/index.d.ts +11 -11
- package/test-utils/selectors/segmented-control/index.d.ts +11 -11
- package/test-utils/selectors/select/index.d.ts +27 -27
- package/test-utils/selectors/side-navigation/index.d.ts +18 -18
- package/test-utils/selectors/slider/index.d.ts +3 -3
- package/test-utils/selectors/space-between/index.d.ts +2 -2
- package/test-utils/selectors/spinner/index.d.ts +2 -2
- package/test-utils/selectors/split-panel/index.d.ts +17 -17
- package/test-utils/selectors/status-indicator/index.d.ts +2 -2
- package/test-utils/selectors/steps/index.d.ts +14 -14
- package/test-utils/selectors/table/index.d.ts +90 -90
- package/test-utils/selectors/tabs/index.d.ts +68 -68
- package/test-utils/selectors/tag-editor/index.d.ts +17 -17
- package/test-utils/selectors/text-content/index.d.ts +2 -2
- package/test-utils/selectors/text-filter/index.d.ts +4 -4
- package/test-utils/selectors/textarea/index.d.ts +3 -3
- package/test-utils/selectors/tiles/index.d.ts +5 -5
- package/test-utils/selectors/tiles/tile.d.ts +7 -7
- package/test-utils/selectors/time-input/index.d.ts +2 -2
- package/test-utils/selectors/toggle/index.d.ts +6 -6
- package/test-utils/selectors/toggle-button/index.d.ts +2 -2
- package/test-utils/selectors/token-group/index.d.ts +13 -13
- package/test-utils/selectors/token-group/token.d.ts +5 -5
- package/test-utils/selectors/top-navigation/1.0-beta/index.d.ts +17 -17
- package/test-utils/selectors/top-navigation/index.d.ts +23 -23
- package/test-utils/selectors/tutorial-panel/index.d.ts +12 -12
- package/test-utils/selectors/tutorial-panel/tutorial.d.ts +10 -10
- package/test-utils/selectors/wizard/index.d.ts +22 -22
- package/text-content/index.d.ts +2 -4
- package/text-content/interfaces.d.ts +7 -6
- package/text-filter/analytics/use-table-integration.d.ts +2 -1
- package/text-filter/analytics-metadata/interfaces.d.ts +7 -6
- package/text-filter/index.d.ts +2 -1
- package/text-filter/interfaces.d.ts +55 -54
- package/text-filter/internal.d.ts +2 -1
- package/text-filter/search-results.d.ts +5 -4
- package/text-filter/use-debounce-search-result-callback.d.ts +6 -10
- package/textarea/index.d.ts +2 -1
- package/textarea/interfaces.d.ts +27 -26
- package/theming/index.d.ts +8 -13
- package/tiles/analytics-metadata/interfaces.d.ts +10 -9
- package/tiles/index.d.ts +2 -1
- package/tiles/interfaces.d.ts +71 -70
- package/tiles/internal.d.ts +2 -1
- package/tiles/tile.d.ts +8 -7
- package/time-input/index.d.ts +2 -1
- package/time-input/interfaces.d.ts +27 -26
- package/time-input/internal.d.ts +2 -1
- package/toggle/analytics-metadata/interfaces.d.ts +12 -11
- package/toggle/index.d.ts +2 -1
- package/toggle/interfaces.d.ts +17 -16
- package/toggle/internal.d.ts +3 -2
- package/toggle-button/index.d.ts +2 -1
- package/toggle-button/index.js +15 -11
- package/toggle-button/interfaces.d.ts +69 -68
- package/toggle-button/internal.d.ts +3 -2
- package/toggle-button/util.d.ts +2 -1
- package/token-group/analytics-metadata/interfaces.d.ts +12 -11
- package/token-group/dismiss-button.d.ts +6 -5
- package/token-group/index.d.ts +2 -5
- package/token-group/interfaces.d.ts +76 -75
- package/token-group/internal.d.ts +3 -14
- package/token-group/token.d.ts +10 -17
- package/top-navigation/1.0-beta/index.d.ts +2 -4
- package/top-navigation/1.0-beta/interfaces.d.ts +95 -94
- package/top-navigation/1.0-beta/internal.d.ts +3 -9
- package/top-navigation/1.0-beta/parts/overflow-menu.d.ts +10 -13
- package/top-navigation/1.0-beta/parts/utility.d.ts +6 -10
- package/top-navigation/1.0-beta/use-top-navigation.d.ts +17 -21
- package/top-navigation/index.d.ts +2 -4
- package/top-navigation/interfaces.d.ts +109 -108
- package/top-navigation/internal.d.ts +3 -9
- package/top-navigation/parts/overflow-menu/header.d.ts +8 -7
- package/top-navigation/parts/overflow-menu/index.d.ts +9 -14
- package/top-navigation/parts/overflow-menu/menu-item.d.ts +5 -4
- package/top-navigation/parts/overflow-menu/router.d.ts +11 -15
- package/top-navigation/parts/overflow-menu/views/submenu.d.ts +5 -12
- package/top-navigation/parts/overflow-menu/views/utilities.d.ts +5 -10
- package/top-navigation/parts/utility.d.ts +5 -8
- package/top-navigation/use-top-navigation.d.ts +26 -29
- package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts +6 -9
- package/tutorial-panel/components/tutorial-detail-view/index.d.ts +8 -13
- package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts +7 -11
- package/tutorial-panel/components/tutorial-detail-view/task.d.ts +9 -15
- package/tutorial-panel/components/tutorial-list/index.d.ts +8 -13
- package/tutorial-panel/index.d.ts +2 -8
- package/tutorial-panel/interfaces.d.ts +170 -169
- package/wizard/analytics-metadata/interfaces.d.ts +26 -25
- package/wizard/analytics-metadata/utils.d.ts +4 -3
- package/wizard/analytics.d.ts +6 -5
- package/wizard/index.d.ts +3 -6
- package/wizard/interfaces.d.ts +146 -145
- package/wizard/internal.d.ts +4 -16
- package/wizard/unmount.d.ts +6 -5
- package/wizard/wizard-actions.d.ts +18 -33
- package/wizard/wizard-form-header.d.ts +4 -5
- package/wizard/wizard-form.d.ts +14 -13
- package/wizard/wizard-form.js +1 -1
- package/wizard/wizard-form.js.map +1 -1
- package/wizard/wizard-navigation.d.ts +12 -21
- package/button/internal-do-not-use-core.js +0 -20
- package/container/internal-do-not-use-core.js +0 -35
- package/flashbar/internal-do-not-use-core.js +0 -16
- package/toggle-button/internal-do-not-use-core.js +0 -22
- /package/button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/container/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/flashbar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/toggle-button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InternalPopoverProps } from '../../popover/internal';
|
|
3
3
|
export declare namespace FilteringTokenProps {
|
|
4
|
-
|
|
4
|
+
type Operation = 'and' | 'or';
|
|
5
5
|
}
|
|
6
6
|
export interface FilteringTokenProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
tokens: TokenItem[];
|
|
8
|
+
operation: FilteringTokenProps.Operation;
|
|
9
|
+
groupOperation: FilteringTokenProps.Operation;
|
|
10
|
+
showOperation: boolean;
|
|
11
|
+
readOnlyOperations: boolean;
|
|
12
|
+
andText: string;
|
|
13
|
+
orText: string;
|
|
14
|
+
groupAriaLabel: string;
|
|
15
|
+
operationAriaLabel: string;
|
|
16
|
+
groupEditAriaLabel: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onChangeOperation: (operation: FilteringTokenProps.Operation) => void;
|
|
19
|
+
onChangeGroupOperation: (operation: FilteringTokenProps.Operation) => void;
|
|
20
|
+
onDismissToken: (tokenIndex: number) => void;
|
|
21
|
+
editorContent: React.ReactNode;
|
|
22
|
+
editorHeader: string;
|
|
23
|
+
editorDismissAriaLabel?: string;
|
|
24
|
+
editorExpandToViewport: boolean;
|
|
25
|
+
onEditorOpen?: () => void;
|
|
26
|
+
hasGroups: boolean;
|
|
27
|
+
popoverSize: InternalPopoverProps['size'];
|
|
28
28
|
}
|
|
29
29
|
export interface FilteringTokenRef {
|
|
30
|
-
|
|
30
|
+
closeEditor(): void;
|
|
31
31
|
}
|
|
32
32
|
interface TokenItem {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
content: React.ReactNode;
|
|
34
|
+
ariaLabel: string;
|
|
35
|
+
dismissAriaLabel: string;
|
|
36
36
|
}
|
|
37
37
|
declare const FilteringToken: React.ForwardRefExoticComponent<FilteringTokenProps & React.RefAttributes<FilteringTokenRef>>;
|
|
38
|
-
export default FilteringToken;
|
|
38
|
+
export default FilteringToken;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { ComparisonOperator, I18nStrings, InternalToken, InternalTokenGroup } from './interfaces';
|
|
2
2
|
export type I18nStringsOperators = Pick<I18nStrings, 'operatorLessText' | 'operatorLessOrEqualText' | 'operatorGreaterText' | 'operatorGreaterOrEqualText' | 'operatorContainsText' | 'operatorDoesNotContainText' | 'operatorEqualsText' | 'operatorDoesNotEqualText' | 'operatorStartsWithText' | 'operatorDoesNotStartWithText'>;
|
|
3
3
|
export type I18nStringsInternal = Omit<I18nStrings, 'formatToken' | 'removeTokenButtonAriaLabel' | 'groupEditAriaLabel' | 'tokenEditorTokenActionsAriaLabel' | 'tokenEditorTokenRemoveAriaLabel' | 'tokenEditorAddExistingTokenAriaLabel' | 'tokenEditorAddExistingTokenLabel'> & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
formatToken: (token: InternalToken) => {
|
|
5
|
+
propertyLabel: string;
|
|
6
|
+
operator: string;
|
|
7
|
+
value: string;
|
|
8
|
+
formattedText: string;
|
|
9
|
+
};
|
|
10
|
+
groupAriaLabel: (group: InternalTokenGroup) => string;
|
|
11
|
+
groupEditAriaLabel: (group: InternalTokenGroup) => string;
|
|
12
|
+
removeTokenButtonAriaLabel: (token: InternalToken) => string;
|
|
13
|
+
tokenEditorTokenActionsAriaLabel: (token: InternalToken) => string;
|
|
14
|
+
tokenEditorTokenRemoveAriaLabel: (token: InternalToken) => string;
|
|
15
|
+
tokenEditorAddExistingTokenAriaLabel: (token: InternalToken) => string;
|
|
16
|
+
tokenEditorAddExistingTokenLabel: (token: InternalToken) => string;
|
|
17
17
|
};
|
|
18
18
|
export declare function usePropertyFilterI18n(def?: I18nStrings): I18nStringsInternal;
|
|
19
|
-
export declare function operatorToDescription(operator: ComparisonOperator, i18nStrings: I18nStringsOperators): string | undefined;
|
|
19
|
+
export declare function operatorToDescription(operator: ComparisonOperator, i18nStrings: I18nStringsOperators): string | undefined;
|
|
20
|
+
//# sourceMappingURL=i18n-utils.d.ts.map
|
|
@@ -19,7 +19,7 @@ export function usePropertyFilterI18n(def = {}) {
|
|
|
19
19
|
if (!valueFormatter && ((_b = token.property) === null || _b === void 0 ? void 0 : _b.getTokenType(token.operator)) === 'enum') {
|
|
20
20
|
valueFormatter = value => (Array.isArray(value) ? value.join(', ') : value);
|
|
21
21
|
}
|
|
22
|
-
const propertyLabel = token.property ? token.property.propertyLabel : allPropertiesLabel !== null && allPropertiesLabel !== void 0 ? allPropertiesLabel : '';
|
|
22
|
+
const propertyLabel = token.property ? token.property.propertyLabel : (allPropertiesLabel !== null && allPropertiesLabel !== void 0 ? allPropertiesLabel : '');
|
|
23
23
|
const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;
|
|
24
24
|
return { propertyKey: (_c = token.property) === null || _c === void 0 ? void 0 : _c.propertyKey, propertyLabel, operator: token.operator, value: tokenValue };
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n-utils.js","sourceRoot":"","sources":["../../../src/property-filter/i18n-utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA0C7C,MAAM,UAAU,qBAAqB,CAAC,MAAmB,EAAE;;IACzD,MAAM,IAAI,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAG,IAAI,CAAC,gCAAgC,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,kBAAkB,CAAC,CAAC;IAC3F,MAAM,gBAAgB,GAAG,IAAI,CAAC,8BAA8B,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,gBAAgB,CAAC,CAAC;IACrF,MAAM,eAAe,GAAG,IAAI,CAAC,6BAA6B,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,eAAe,CAAC,CAAC;IAClF,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KAAK,IAAI;YACP,OAAO,YAAY,CAAC;QACtB,KAAK,GAAG;YACN,OAAO,cAAc,CAAC;QACxB,KAAK,IAAI;YACP,OAAO,oBAAoB,CAAC;QAC9B,KAAK,GAAG;YACN,OAAO,WAAW,CAAC;QACrB,KAAK,IAAI;YACP,OAAO,iBAAiB,CAAC;QAC3B,KAAK,GAAG;YACN,OAAO,UAAU,CAAC;QACpB,KAAK,IAAI;YACP,OAAO,cAAc,CAAC;QACxB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB,KAAK,IAAI;YACP,OAAO,iBAAiB,CAAC;QAC3B,iEAAiE;QACjE,sFAAsF;QACtF,0BAA0B;QAC1B;YACE,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useInternalI18n } from '../i18n/context';\nimport { ComparisonOperator, FormattedToken, I18nStrings, InternalToken, InternalTokenGroup } from './interfaces';\nimport { tokenGroupToTokens } from './utils';\n\nexport type I18nStringsOperators = Pick<\n I18nStrings,\n | 'operatorLessText'\n | 'operatorLessOrEqualText'\n | 'operatorGreaterText'\n | 'operatorGreaterOrEqualText'\n | 'operatorContainsText'\n | 'operatorDoesNotContainText'\n | 'operatorEqualsText'\n | 'operatorDoesNotEqualText'\n | 'operatorStartsWithText'\n | 'operatorDoesNotStartWithText'\n>;\n\n// Replacing i18n function with ones taking internal tokens as argument.\nexport type I18nStringsInternal = Omit<\n I18nStrings,\n | 'formatToken'\n | 'removeTokenButtonAriaLabel'\n | 'groupEditAriaLabel'\n | 'tokenEditorTokenActionsAriaLabel'\n | 'tokenEditorTokenRemoveAriaLabel'\n | 'tokenEditorAddExistingTokenAriaLabel'\n | 'tokenEditorAddExistingTokenLabel'\n> & {\n formatToken: (token: InternalToken) => {\n propertyLabel: string;\n operator: string;\n value: string;\n formattedText: string;\n };\n groupAriaLabel: (group: InternalTokenGroup) => string;\n groupEditAriaLabel: (group: InternalTokenGroup) => string;\n removeTokenButtonAriaLabel: (token: InternalToken) => string;\n tokenEditorTokenActionsAriaLabel: (token: InternalToken) => string;\n tokenEditorTokenRemoveAriaLabel: (token: InternalToken) => string;\n tokenEditorAddExistingTokenAriaLabel: (token: InternalToken) => string;\n tokenEditorAddExistingTokenLabel: (token: InternalToken) => string;\n};\n\nexport function usePropertyFilterI18n(def: I18nStrings = {}): I18nStringsInternal {\n const i18n = useInternalI18n('property-filter');\n\n const allPropertiesLabel = i18n('i18nStrings.allPropertiesLabel', def?.allPropertiesLabel);\n const operationAndText = i18n('i18nStrings.operationAndText', def?.operationAndText);\n const operationOrText = i18n('i18nStrings.operationOrText', def?.operationOrText);\n const formatToken =\n i18n(\n 'i18nStrings.formatToken',\n def.formatToken,\n format => token =>\n format({\n token__propertyLabel: token.propertyLabel,\n token__operator: getOperatorI18nString(token.operator),\n token__value: token.value,\n })\n ) ?? (token => `${token.propertyLabel} ${token.operator} ${token.value}`);\n\n function toFormatted(token: InternalToken): FormattedToken {\n let valueFormatter = token.property?.getValueFormatter(token.operator);\n if (!valueFormatter && token.property?.getTokenType(token.operator) === 'enum') {\n valueFormatter = value => (Array.isArray(value) ? value.join(', ') : value);\n }\n const propertyLabel = token.property ? token.property.propertyLabel : allPropertiesLabel ?? '';\n const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;\n return { propertyKey: token.property?.propertyKey, propertyLabel, operator: token.operator, value: tokenValue };\n }\n\n return {\n ...def,\n allPropertiesLabel,\n operationAndText,\n operationOrText,\n applyActionText: i18n('i18nStrings.applyActionText', def?.applyActionText),\n cancelActionText: i18n('i18nStrings.cancelActionText', def?.cancelActionText),\n clearFiltersText: i18n('i18nStrings.clearFiltersText', def?.clearFiltersText),\n editTokenHeader: i18n('i18nStrings.editTokenHeader', def?.editTokenHeader),\n groupPropertiesText: i18n('i18nStrings.groupPropertiesText', def?.groupPropertiesText),\n groupValuesText: i18n('i18nStrings.groupValuesText', def?.groupValuesText),\n operatorContainsText: i18n('i18nStrings.operatorContainsText', def?.operatorContainsText),\n operatorDoesNotContainText: i18n('i18nStrings.operatorDoesNotContainText', def?.operatorDoesNotContainText),\n operatorDoesNotEqualText: i18n('i18nStrings.operatorDoesNotEqualText', def?.operatorDoesNotEqualText),\n operatorEqualsText: i18n('i18nStrings.operatorEqualsText', def?.operatorEqualsText),\n operatorGreaterOrEqualText: i18n('i18nStrings.operatorGreaterOrEqualText', def?.operatorGreaterOrEqualText),\n operatorGreaterText: i18n('i18nStrings.operatorGreaterText', def?.operatorGreaterText),\n operatorLessOrEqualText: i18n('i18nStrings.operatorLessOrEqualText', def?.operatorLessOrEqualText),\n operatorLessText: i18n('i18nStrings.operatorLessText', def?.operatorLessText),\n operatorStartsWithText: i18n('i18nStrings.operatorStartsWithText', def?.operatorStartsWithText),\n operatorDoesNotStartWithText: i18n('i18nStrings.operatorDoesNotStartWithText', def?.operatorDoesNotStartWithText),\n operatorText: i18n('i18nStrings.operatorText', def?.operatorText),\n operatorsText: i18n('i18nStrings.operatorsText', def?.operatorsText),\n propertyText: i18n('i18nStrings.propertyText', def?.propertyText),\n tokenLimitShowFewer: i18n('i18nStrings.tokenLimitShowFewer', def?.tokenLimitShowFewer),\n tokenLimitShowMore: i18n('i18nStrings.tokenLimitShowMore', def?.tokenLimitShowMore),\n valueText: i18n('i18nStrings.valueText', def?.valueText),\n tokenEditorTokenRemoveLabel: i18n('i18nStrings.tokenEditorTokenRemoveLabel', def?.tokenEditorTokenRemoveLabel),\n tokenEditorTokenRemoveFromGroupLabel: i18n(\n 'i18nStrings.tokenEditorTokenRemoveFromGroupLabel',\n def?.tokenEditorTokenRemoveFromGroupLabel\n ),\n tokenEditorAddNewTokenLabel: i18n('i18nStrings.tokenEditorAddNewTokenLabel', def?.tokenEditorAddNewTokenLabel),\n tokenEditorAddTokenActionsAriaLabel: i18n(\n 'i18nStrings.tokenEditorAddTokenActionsAriaLabel',\n def?.tokenEditorAddTokenActionsAriaLabel\n ),\n formatToken: token => {\n const formattedToken = toFormatted(token);\n return { ...formattedToken, formattedText: formatToken(toFormatted(token)) };\n },\n groupAriaLabel: group => {\n const tokens = tokenGroupToTokens<InternalToken>(group.tokens).map(toFormatted);\n const groupOperationLabel = (group.operation === 'and' ? operationAndText : operationOrText) ?? '';\n return tokens.map(token => formatToken(token)).join(` ${groupOperationLabel} `);\n },\n groupEditAriaLabel: group => {\n const tokens = tokenGroupToTokens<InternalToken>(group.tokens).map(token => toFormatted(token));\n const operation = group.operation;\n const operationLabel = (operation === 'and' ? operationAndText : operationOrText) ?? '';\n const formatter = i18n(\n 'i18nStrings.groupEditAriaLabel',\n def.groupEditAriaLabel,\n format => () =>\n format({\n group__operationLabel: operationLabel,\n group__formattedTokens__length: tokens.length.toString(),\n group__formattedTokens0__formattedText: tokens[0] ? formatToken(tokens[0]) : '',\n group__formattedTokens1__formattedText: tokens[1] ? formatToken(tokens[1]) : '',\n group__formattedTokens2__formattedText: tokens[2] ? formatToken(tokens[2]) : '',\n group__formattedTokens3__formattedText: tokens[3] ? formatToken(tokens[3]) : '',\n })\n );\n return formatter?.({ operation, operationLabel, tokens }) ?? '';\n },\n removeTokenButtonAriaLabel: token => {\n const formatter = i18n(\n 'i18nStrings.removeTokenButtonAriaLabel',\n def.removeTokenButtonAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorTokenActionsAriaLabel: (token: InternalToken) => {\n const formatter = i18n(\n 'i18nStrings.tokenEditorTokenActionsAriaLabel',\n def.tokenEditorTokenActionsAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorTokenRemoveAriaLabel: token => {\n const formatter = i18n(\n 'i18nStrings.tokenEditorTokenRemoveAriaLabel',\n def.tokenEditorTokenRemoveAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorAddExistingTokenAriaLabel: token => {\n const formatter = i18n(\n 'i18nStrings.tokenEditorAddExistingTokenAriaLabel',\n def.tokenEditorAddExistingTokenAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorAddExistingTokenLabel: token => {\n const formattedToken = toFormatted(token);\n const formatter = i18n(\n 'i18nStrings.tokenEditorAddExistingTokenLabel',\n def.tokenEditorAddExistingTokenLabel,\n format => () =>\n format({\n token__propertyLabel: formattedToken.propertyLabel,\n token__operator: formattedToken.operator,\n token__value: formattedToken.value,\n })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n };\n}\n\nexport function operatorToDescription(operator: ComparisonOperator, i18nStrings: I18nStringsOperators) {\n switch (operator) {\n case '<':\n return i18nStrings.operatorLessText;\n case '<=':\n return i18nStrings.operatorLessOrEqualText;\n case '>':\n return i18nStrings.operatorGreaterText;\n case '>=':\n return i18nStrings.operatorGreaterOrEqualText;\n case ':':\n return i18nStrings.operatorContainsText;\n case '!:':\n return i18nStrings.operatorDoesNotContainText;\n case '=':\n return i18nStrings.operatorEqualsText;\n case '!=':\n return i18nStrings.operatorDoesNotEqualText;\n case '^':\n return i18nStrings.operatorStartsWithText;\n case '!^':\n return i18nStrings.operatorDoesNotStartWithText;\n // The line is ignored from coverage because it is not reachable.\n // The purpose of it is to prevent TS errors if ComparisonOperator type gets extended.\n /* istanbul ignore next */\n default:\n return '';\n }\n}\n\nfunction getOperatorI18nString(operator: ComparisonOperator): string {\n switch (operator) {\n case '=':\n return 'equals';\n case '!=':\n return 'not_equals';\n case '>':\n return 'greater_than';\n case '>=':\n return 'greater_than_equal';\n case '<':\n return 'less_than';\n case '<=':\n return 'less_than_equal';\n case ':':\n return 'contains';\n case '!:':\n return 'not_contains';\n case '^':\n return 'starts_with';\n case '!^':\n return 'not_starts_with';\n // The line is ignored from coverage because it is not reachable.\n // The purpose of it is to prevent TS errors if ComparisonOperator type gets extended.\n /* istanbul ignore next */\n default:\n return operator;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"i18n-utils.js","sourceRoot":"","sources":["../../../src/property-filter/i18n-utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA0C7C,MAAM,UAAU,qBAAqB,CAAC,MAAmB,EAAE;;IACzD,MAAM,IAAI,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAG,IAAI,CAAC,gCAAgC,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,kBAAkB,CAAC,CAAC;IAC3F,MAAM,gBAAgB,GAAG,IAAI,CAAC,8BAA8B,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,gBAAgB,CAAC,CAAC;IACrF,MAAM,eAAe,GAAG,IAAI,CAAC,6BAA6B,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,eAAe,CAAC,CAAC;IAClF,MAAM,WAAW,GACf,MAAA,IAAI,CACF,yBAAyB,EACzB,GAAG,CAAC,WAAW,EACf,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAChB,MAAM,CAAC;QACL,oBAAoB,EAAE,KAAK,CAAC,aAAa;QACzC,eAAe,EAAE,qBAAqB,CAAC,KAAK,CAAC,QAAQ,CAAC;QACtD,YAAY,EAAE,KAAK,CAAC,KAAK;KAC1B,CAAC,CACL,mCAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IAE5E,SAAS,WAAW,CAAC,KAAoB;;QACvC,IAAI,cAAc,GAAG,MAAA,KAAK,CAAC,QAAQ,0CAAE,i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inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useInternalI18n } from '../i18n/context';\nimport { ComparisonOperator, FormattedToken, I18nStrings, InternalToken, InternalTokenGroup } from './interfaces';\nimport { tokenGroupToTokens } from './utils';\n\nexport type I18nStringsOperators = Pick<\n I18nStrings,\n | 'operatorLessText'\n | 'operatorLessOrEqualText'\n | 'operatorGreaterText'\n | 'operatorGreaterOrEqualText'\n | 'operatorContainsText'\n | 'operatorDoesNotContainText'\n | 'operatorEqualsText'\n | 'operatorDoesNotEqualText'\n | 'operatorStartsWithText'\n | 'operatorDoesNotStartWithText'\n>;\n\n// Replacing i18n function with ones taking internal tokens as argument.\nexport type I18nStringsInternal = Omit<\n I18nStrings,\n | 'formatToken'\n | 'removeTokenButtonAriaLabel'\n | 'groupEditAriaLabel'\n | 'tokenEditorTokenActionsAriaLabel'\n | 'tokenEditorTokenRemoveAriaLabel'\n | 'tokenEditorAddExistingTokenAriaLabel'\n | 'tokenEditorAddExistingTokenLabel'\n> & {\n formatToken: (token: InternalToken) => {\n propertyLabel: string;\n operator: string;\n value: string;\n formattedText: string;\n };\n groupAriaLabel: (group: InternalTokenGroup) => string;\n groupEditAriaLabel: (group: InternalTokenGroup) => string;\n removeTokenButtonAriaLabel: (token: InternalToken) => string;\n tokenEditorTokenActionsAriaLabel: (token: InternalToken) => string;\n tokenEditorTokenRemoveAriaLabel: (token: InternalToken) => string;\n tokenEditorAddExistingTokenAriaLabel: (token: InternalToken) => string;\n tokenEditorAddExistingTokenLabel: (token: InternalToken) => string;\n};\n\nexport function usePropertyFilterI18n(def: I18nStrings = {}): I18nStringsInternal {\n const i18n = useInternalI18n('property-filter');\n\n const allPropertiesLabel = i18n('i18nStrings.allPropertiesLabel', def?.allPropertiesLabel);\n const operationAndText = i18n('i18nStrings.operationAndText', def?.operationAndText);\n const operationOrText = i18n('i18nStrings.operationOrText', def?.operationOrText);\n const formatToken =\n i18n(\n 'i18nStrings.formatToken',\n def.formatToken,\n format => token =>\n format({\n token__propertyLabel: token.propertyLabel,\n token__operator: getOperatorI18nString(token.operator),\n token__value: token.value,\n })\n ) ?? (token => `${token.propertyLabel} ${token.operator} ${token.value}`);\n\n function toFormatted(token: InternalToken): FormattedToken {\n let valueFormatter = token.property?.getValueFormatter(token.operator);\n if (!valueFormatter && token.property?.getTokenType(token.operator) === 'enum') {\n valueFormatter = value => (Array.isArray(value) ? value.join(', ') : value);\n }\n const propertyLabel = token.property ? token.property.propertyLabel : (allPropertiesLabel ?? '');\n const tokenValue = valueFormatter ? valueFormatter(token.value) : token.value;\n return { propertyKey: token.property?.propertyKey, propertyLabel, operator: token.operator, value: tokenValue };\n }\n\n return {\n ...def,\n allPropertiesLabel,\n operationAndText,\n operationOrText,\n applyActionText: i18n('i18nStrings.applyActionText', def?.applyActionText),\n cancelActionText: i18n('i18nStrings.cancelActionText', def?.cancelActionText),\n clearFiltersText: i18n('i18nStrings.clearFiltersText', def?.clearFiltersText),\n editTokenHeader: i18n('i18nStrings.editTokenHeader', def?.editTokenHeader),\n groupPropertiesText: i18n('i18nStrings.groupPropertiesText', def?.groupPropertiesText),\n groupValuesText: i18n('i18nStrings.groupValuesText', def?.groupValuesText),\n operatorContainsText: i18n('i18nStrings.operatorContainsText', def?.operatorContainsText),\n operatorDoesNotContainText: i18n('i18nStrings.operatorDoesNotContainText', def?.operatorDoesNotContainText),\n operatorDoesNotEqualText: i18n('i18nStrings.operatorDoesNotEqualText', def?.operatorDoesNotEqualText),\n operatorEqualsText: i18n('i18nStrings.operatorEqualsText', def?.operatorEqualsText),\n operatorGreaterOrEqualText: i18n('i18nStrings.operatorGreaterOrEqualText', def?.operatorGreaterOrEqualText),\n operatorGreaterText: i18n('i18nStrings.operatorGreaterText', def?.operatorGreaterText),\n operatorLessOrEqualText: i18n('i18nStrings.operatorLessOrEqualText', def?.operatorLessOrEqualText),\n operatorLessText: i18n('i18nStrings.operatorLessText', def?.operatorLessText),\n operatorStartsWithText: i18n('i18nStrings.operatorStartsWithText', def?.operatorStartsWithText),\n operatorDoesNotStartWithText: i18n('i18nStrings.operatorDoesNotStartWithText', def?.operatorDoesNotStartWithText),\n operatorText: i18n('i18nStrings.operatorText', def?.operatorText),\n operatorsText: i18n('i18nStrings.operatorsText', def?.operatorsText),\n propertyText: i18n('i18nStrings.propertyText', def?.propertyText),\n tokenLimitShowFewer: i18n('i18nStrings.tokenLimitShowFewer', def?.tokenLimitShowFewer),\n tokenLimitShowMore: i18n('i18nStrings.tokenLimitShowMore', def?.tokenLimitShowMore),\n valueText: i18n('i18nStrings.valueText', def?.valueText),\n tokenEditorTokenRemoveLabel: i18n('i18nStrings.tokenEditorTokenRemoveLabel', def?.tokenEditorTokenRemoveLabel),\n tokenEditorTokenRemoveFromGroupLabel: i18n(\n 'i18nStrings.tokenEditorTokenRemoveFromGroupLabel',\n def?.tokenEditorTokenRemoveFromGroupLabel\n ),\n tokenEditorAddNewTokenLabel: i18n('i18nStrings.tokenEditorAddNewTokenLabel', def?.tokenEditorAddNewTokenLabel),\n tokenEditorAddTokenActionsAriaLabel: i18n(\n 'i18nStrings.tokenEditorAddTokenActionsAriaLabel',\n def?.tokenEditorAddTokenActionsAriaLabel\n ),\n formatToken: token => {\n const formattedToken = toFormatted(token);\n return { ...formattedToken, formattedText: formatToken(toFormatted(token)) };\n },\n groupAriaLabel: group => {\n const tokens = tokenGroupToTokens<InternalToken>(group.tokens).map(toFormatted);\n const groupOperationLabel = (group.operation === 'and' ? operationAndText : operationOrText) ?? '';\n return tokens.map(token => formatToken(token)).join(` ${groupOperationLabel} `);\n },\n groupEditAriaLabel: group => {\n const tokens = tokenGroupToTokens<InternalToken>(group.tokens).map(token => toFormatted(token));\n const operation = group.operation;\n const operationLabel = (operation === 'and' ? operationAndText : operationOrText) ?? '';\n const formatter = i18n(\n 'i18nStrings.groupEditAriaLabel',\n def.groupEditAriaLabel,\n format => () =>\n format({\n group__operationLabel: operationLabel,\n group__formattedTokens__length: tokens.length.toString(),\n group__formattedTokens0__formattedText: tokens[0] ? formatToken(tokens[0]) : '',\n group__formattedTokens1__formattedText: tokens[1] ? formatToken(tokens[1]) : '',\n group__formattedTokens2__formattedText: tokens[2] ? formatToken(tokens[2]) : '',\n group__formattedTokens3__formattedText: tokens[3] ? formatToken(tokens[3]) : '',\n })\n );\n return formatter?.({ operation, operationLabel, tokens }) ?? '';\n },\n removeTokenButtonAriaLabel: token => {\n const formatter = i18n(\n 'i18nStrings.removeTokenButtonAriaLabel',\n def.removeTokenButtonAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorTokenActionsAriaLabel: (token: InternalToken) => {\n const formatter = i18n(\n 'i18nStrings.tokenEditorTokenActionsAriaLabel',\n def.tokenEditorTokenActionsAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorTokenRemoveAriaLabel: token => {\n const formatter = i18n(\n 'i18nStrings.tokenEditorTokenRemoveAriaLabel',\n def.tokenEditorTokenRemoveAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorAddExistingTokenAriaLabel: token => {\n const formatter = i18n(\n 'i18nStrings.tokenEditorAddExistingTokenAriaLabel',\n def.tokenEditorAddExistingTokenAriaLabel,\n format => () => format({ token__formattedText: formatToken(toFormatted(token)) })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n tokenEditorAddExistingTokenLabel: token => {\n const formattedToken = toFormatted(token);\n const formatter = i18n(\n 'i18nStrings.tokenEditorAddExistingTokenLabel',\n def.tokenEditorAddExistingTokenLabel,\n format => () =>\n format({\n token__propertyLabel: formattedToken.propertyLabel,\n token__operator: formattedToken.operator,\n token__value: formattedToken.value,\n })\n );\n return formatter?.(toFormatted(token)) ?? '';\n },\n };\n}\n\nexport function operatorToDescription(operator: ComparisonOperator, i18nStrings: I18nStringsOperators) {\n switch (operator) {\n case '<':\n return i18nStrings.operatorLessText;\n case '<=':\n return i18nStrings.operatorLessOrEqualText;\n case '>':\n return i18nStrings.operatorGreaterText;\n case '>=':\n return i18nStrings.operatorGreaterOrEqualText;\n case ':':\n return i18nStrings.operatorContainsText;\n case '!:':\n return i18nStrings.operatorDoesNotContainText;\n case '=':\n return i18nStrings.operatorEqualsText;\n case '!=':\n return i18nStrings.operatorDoesNotEqualText;\n case '^':\n return i18nStrings.operatorStartsWithText;\n case '!^':\n return i18nStrings.operatorDoesNotStartWithText;\n // The line is ignored from coverage because it is not reachable.\n // The purpose of it is to prevent TS errors if ComparisonOperator type gets extended.\n /* istanbul ignore next */\n default:\n return '';\n }\n}\n\nfunction getOperatorI18nString(operator: ComparisonOperator): string {\n switch (operator) {\n case '=':\n return 'equals';\n case '!=':\n return 'not_equals';\n case '>':\n return 'greater_than';\n case '>=':\n return 'greater_than_equal';\n case '<':\n return 'less_than';\n case '<=':\n return 'less_than_equal';\n case ':':\n return 'contains';\n case '!:':\n return 'not_contains';\n case '^':\n return 'starts_with';\n case '!^':\n return 'not_starts_with';\n // The line is ignored from coverage because it is not reachable.\n // The purpose of it is to prevent TS errors if ComparisonOperator type gets extended.\n /* istanbul ignore next */\n default:\n return operator;\n }\n}\n"]}
|
|
@@ -2,4 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { PropertyFilterProps } from './interfaces';
|
|
3
3
|
export { PropertyFilterProps };
|
|
4
4
|
declare const PropertyFilter: React.ForwardRefExoticComponent<PropertyFilterProps & React.RefAttributes<PropertyFilterProps.Ref>>;
|
|
5
|
-
export default PropertyFilter;
|
|
5
|
+
export default PropertyFilter;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|