@cumulus-ui/components 0.1.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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/alert/interfaces.d.ts +107 -0
- package/dist/alert/interfaces.d.ts.map +1 -0
- package/dist/anchor-navigation/index.d.ts +5 -0
- package/dist/anchor-navigation/index.d.ts.map +1 -0
- package/dist/anchor-navigation/interfaces.d.ts +54 -0
- package/dist/anchor-navigation/interfaces.d.ts.map +1 -0
- package/dist/anchor-navigation/internal.d.ts +23 -0
- package/dist/anchor-navigation/internal.d.ts.map +1 -0
- package/dist/anchor-navigation/styles.d.ts +5 -0
- package/dist/anchor-navigation/styles.d.ts.map +1 -0
- package/dist/annotation-context/interfaces.d.ts +47 -0
- package/dist/annotation-context/interfaces.d.ts.map +1 -0
- package/dist/app-layout/interfaces.d.ts +264 -0
- package/dist/app-layout/interfaces.d.ts.map +1 -0
- package/dist/app-layout-toolbar/interfaces.d.ts +51 -0
- package/dist/app-layout-toolbar/interfaces.d.ts.map +1 -0
- package/dist/area-chart/interfaces.d.ts +55 -0
- package/dist/area-chart/interfaces.d.ts.map +1 -0
- package/dist/attribute-editor/interfaces.d.ts +159 -0
- package/dist/attribute-editor/interfaces.d.ts.map +1 -0
- package/dist/autosuggest/interfaces.d.ts +239 -0
- package/dist/autosuggest/interfaces.d.ts.map +1 -0
- package/dist/badge/index.d.ts +5 -0
- package/dist/badge/index.d.ts.map +1 -0
- package/dist/badge/interfaces.d.ts +26 -0
- package/dist/badge/interfaces.d.ts.map +1 -0
- package/dist/badge/internal.d.ts +8 -0
- package/dist/badge/internal.d.ts.map +1 -0
- package/dist/badge/styles.d.ts +5 -0
- package/dist/badge/styles.d.ts.map +1 -0
- package/dist/bar-chart/interfaces.d.ts +32 -0
- package/dist/bar-chart/interfaces.d.ts.map +1 -0
- package/dist/box/index.d.ts +5 -0
- package/dist/box/index.d.ts.map +1 -0
- package/dist/box/interfaces.d.ts +131 -0
- package/dist/box/interfaces.d.ts.map +1 -0
- package/dist/box/internal.d.ts +18 -0
- package/dist/box/internal.d.ts.map +1 -0
- package/dist/box/styles.d.ts +5 -0
- package/dist/box/styles.d.ts.map +1 -0
- package/dist/breadcrumb-group/interfaces.d.ts +53 -0
- package/dist/breadcrumb-group/interfaces.d.ts.map +1 -0
- package/dist/button/interfaces.d.ts +190 -0
- package/dist/button/interfaces.d.ts.map +1 -0
- package/dist/button-dropdown/interfaces.d.ts +380 -0
- package/dist/button-dropdown/interfaces.d.ts.map +1 -0
- package/dist/button-group/interfaces.d.ts +224 -0
- package/dist/button-group/interfaces.d.ts.map +1 -0
- package/dist/calendar/interfaces.d.ts +116 -0
- package/dist/calendar/interfaces.d.ts.map +1 -0
- package/dist/cards/interfaces.d.ts +212 -0
- package/dist/cards/interfaces.d.ts.map +1 -0
- package/dist/checkbox/base-checkbox.d.ts +44 -0
- package/dist/checkbox/base-checkbox.d.ts.map +1 -0
- package/dist/checkbox/index.d.ts +5 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/checkbox/interfaces.d.ts +73 -0
- package/dist/checkbox/interfaces.d.ts.map +1 -0
- package/dist/checkbox/internal.d.ts +22 -0
- package/dist/checkbox/internal.d.ts.map +1 -0
- package/dist/checkbox/styles.d.ts +5 -0
- package/dist/checkbox/styles.d.ts.map +1 -0
- package/dist/code-editor/interfaces.d.ts +132 -0
- package/dist/code-editor/interfaces.d.ts.map +1 -0
- package/dist/collection-preferences/interfaces.d.ts +287 -0
- package/dist/collection-preferences/interfaces.d.ts.map +1 -0
- package/dist/column-layout/interfaces.d.ts +41 -0
- package/dist/column-layout/interfaces.d.ts.map +1 -0
- package/dist/container/interfaces.d.ts +124 -0
- package/dist/container/interfaces.d.ts.map +1 -0
- package/dist/content-layout/interfaces.d.ts +44 -0
- package/dist/content-layout/interfaces.d.ts.map +1 -0
- package/dist/copy-to-clipboard/interfaces.d.ts +66 -0
- package/dist/copy-to-clipboard/interfaces.d.ts.map +1 -0
- package/dist/date-input/interfaces.d.ts +39 -0
- package/dist/date-input/interfaces.d.ts.map +1 -0
- package/dist/date-picker/interfaces.d.ts +111 -0
- package/dist/date-picker/interfaces.d.ts.map +1 -0
- package/dist/date-range-picker/interfaces.d.ts +496 -0
- package/dist/date-range-picker/interfaces.d.ts.map +1 -0
- package/dist/drawer/interfaces.d.ts +25 -0
- package/dist/drawer/interfaces.d.ts.map +1 -0
- package/dist/dropdown/interfaces.d.ts +111 -0
- package/dist/dropdown/interfaces.d.ts.map +1 -0
- package/dist/error-boundary/interfaces.d.ts +93 -0
- package/dist/error-boundary/interfaces.d.ts.map +1 -0
- package/dist/expandable-section/interfaces.d.ts +70 -0
- package/dist/expandable-section/interfaces.d.ts.map +1 -0
- package/dist/file-dropzone/index.d.ts +5 -0
- package/dist/file-dropzone/index.d.ts.map +1 -0
- package/dist/file-dropzone/interfaces.d.ts +8 -0
- package/dist/file-dropzone/interfaces.d.ts.map +1 -0
- package/dist/file-dropzone/internal.d.ts +14 -0
- package/dist/file-dropzone/internal.d.ts.map +1 -0
- package/dist/file-dropzone/styles.d.ts +5 -0
- package/dist/file-dropzone/styles.d.ts.map +1 -0
- package/dist/file-input/interfaces.d.ts +46 -0
- package/dist/file-input/interfaces.d.ts.map +1 -0
- package/dist/file-token-group/interfaces.d.ts +79 -0
- package/dist/file-token-group/interfaces.d.ts.map +1 -0
- package/dist/file-upload/interfaces.d.ts +92 -0
- package/dist/file-upload/interfaces.d.ts.map +1 -0
- package/dist/flashbar/interfaces.d.ts +210 -0
- package/dist/flashbar/interfaces.d.ts.map +1 -0
- package/dist/form/interfaces.d.ts +37 -0
- package/dist/form/interfaces.d.ts.map +1 -0
- package/dist/form-field/interfaces.d.ts +78 -0
- package/dist/form-field/interfaces.d.ts.map +1 -0
- package/dist/grid/index.d.ts +5 -0
- package/dist/grid/index.d.ts.map +1 -0
- package/dist/grid/interfaces.d.ts +47 -0
- package/dist/grid/interfaces.d.ts.map +1 -0
- package/dist/grid/internal.d.ts +16 -0
- package/dist/grid/internal.d.ts.map +1 -0
- package/dist/grid/styles.d.ts +5 -0
- package/dist/grid/styles.d.ts.map +1 -0
- package/dist/header/interfaces.d.ts +22 -0
- package/dist/header/interfaces.d.ts.map +1 -0
- package/dist/help-panel/interfaces.d.ts +15 -0
- package/dist/help-panel/interfaces.d.ts.map +1 -0
- package/dist/hotspot/interfaces.d.ts +19 -0
- package/dist/hotspot/interfaces.d.ts.map +1 -0
- package/dist/icon/icons/index.d.ts +4 -0
- package/dist/icon/icons/index.d.ts.map +1 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/icon/index.d.ts.map +1 -0
- package/dist/icon/interfaces.d.ts +45 -0
- package/dist/icon/interfaces.d.ts.map +1 -0
- package/dist/icon/internal.d.ts +17 -0
- package/dist/icon/internal.d.ts.map +1 -0
- package/dist/icon/styles.d.ts +5 -0
- package/dist/icon/styles.d.ts.map +1 -0
- package/dist/icon-provider/index.d.ts +5 -0
- package/dist/icon-provider/index.d.ts.map +1 -0
- package/dist/icon-provider/interfaces.d.ts +43 -0
- package/dist/icon-provider/interfaces.d.ts.map +1 -0
- package/dist/icon-provider/internal.d.ts +14 -0
- package/dist/icon-provider/internal.d.ts.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4541 -0
- package/dist/input/interfaces.d.ts +181 -0
- package/dist/input/interfaces.d.ts.map +1 -0
- package/dist/internal/components/dropdown/internal.d.ts +27 -0
- package/dist/internal/components/dropdown/internal.d.ts.map +1 -0
- package/dist/internal/components/dropdown/styles.d.ts +2 -0
- package/dist/internal/components/dropdown/styles.d.ts.map +1 -0
- package/dist/internal/components/navigable-group/index.d.ts +3 -0
- package/dist/internal/components/navigable-group/index.d.ts.map +1 -0
- package/dist/internal/components/navigable-group/navigable-group-controller.d.ts +42 -0
- package/dist/internal/components/navigable-group/navigable-group-controller.d.ts.map +1 -0
- package/dist/internal/context/form-field-context.d.ts +11 -0
- package/dist/internal/context/form-field-context.d.ts.map +1 -0
- package/dist/internal/events.d.ts +10 -0
- package/dist/internal/events.d.ts.map +1 -0
- package/dist/internal/focus.d.ts +28 -0
- package/dist/internal/focus.d.ts.map +1 -0
- package/dist/internal/generated/cloudscape-types.d.ts +49 -0
- package/dist/internal/generated/cloudscape-types.d.ts.map +1 -0
- package/dist/internal/generated/component-manifest.d.ts +457 -0
- package/dist/internal/generated/component-manifest.d.ts.map +1 -0
- package/dist/internal/hooks/use-controllable.d.ts +25 -0
- package/dist/internal/hooks/use-controllable.d.ts.map +1 -0
- package/dist/internal/hooks/use-focus-tracker.d.ts +24 -0
- package/dist/internal/hooks/use-focus-tracker.d.ts.map +1 -0
- package/dist/internal/hooks/use-unique-id.d.ts +2 -0
- package/dist/internal/hooks/use-unique-id.d.ts.map +1 -0
- package/dist/internal/mixins/form-associated.d.ts +40 -0
- package/dist/internal/mixins/form-associated.d.ts.map +1 -0
- package/dist/internal/slot-utils.d.ts +10 -0
- package/dist/internal/slot-utils.d.ts.map +1 -0
- package/dist/internal/styles/abstract-switch.d.ts +2 -0
- package/dist/internal/styles/abstract-switch.d.ts.map +1 -0
- package/dist/internal/styles/autosuggest-input.d.ts +2 -0
- package/dist/internal/styles/autosuggest-input.d.ts.map +1 -0
- package/dist/internal/styles/button-trigger.d.ts +2 -0
- package/dist/internal/styles/button-trigger.d.ts.map +1 -0
- package/dist/internal/styles/cartesian-chart.d.ts +2 -0
- package/dist/internal/styles/cartesian-chart.d.ts.map +1 -0
- package/dist/internal/styles/chart-filter.d.ts +2 -0
- package/dist/internal/styles/chart-filter.d.ts.map +1 -0
- package/dist/internal/styles/chart-legend.d.ts +2 -0
- package/dist/internal/styles/chart-legend.d.ts.map +1 -0
- package/dist/internal/styles/chart-plot.d.ts +2 -0
- package/dist/internal/styles/chart-plot.d.ts.map +1 -0
- package/dist/internal/styles/chart-popover.d.ts +2 -0
- package/dist/internal/styles/chart-popover.d.ts.map +1 -0
- package/dist/internal/styles/chart-series-details.d.ts +2 -0
- package/dist/internal/styles/chart-series-details.d.ts.map +1 -0
- package/dist/internal/styles/chart-series-marker.d.ts +2 -0
- package/dist/internal/styles/chart-series-marker.d.ts.map +1 -0
- package/dist/internal/styles/chart-status-container.d.ts +2 -0
- package/dist/internal/styles/chart-status-container.d.ts.map +1 -0
- package/dist/internal/styles/chart-wrapper.d.ts +2 -0
- package/dist/internal/styles/chart-wrapper.d.ts.map +1 -0
- package/dist/internal/styles/checkbox-icon.d.ts +2 -0
- package/dist/internal/styles/checkbox-icon.d.ts.map +1 -0
- package/dist/internal/styles/drag-handle-wrapper.d.ts +2 -0
- package/dist/internal/styles/drag-handle-wrapper.d.ts.map +1 -0
- package/dist/internal/styles/drag-handle.d.ts +2 -0
- package/dist/internal/styles/drag-handle.d.ts.map +1 -0
- package/dist/internal/styles/dropdown-footer.d.ts +2 -0
- package/dist/internal/styles/dropdown-footer.d.ts.map +1 -0
- package/dist/internal/styles/dropdown-status.d.ts +2 -0
- package/dist/internal/styles/dropdown-status.d.ts.map +1 -0
- package/dist/internal/styles/dropdown.d.ts +2 -0
- package/dist/internal/styles/dropdown.d.ts.map +1 -0
- package/dist/internal/styles/expand-toggle-button.d.ts +2 -0
- package/dist/internal/styles/expand-toggle-button.d.ts.map +1 -0
- package/dist/internal/styles/global.d.ts +3 -0
- package/dist/internal/styles/global.d.ts.map +1 -0
- package/dist/internal/styles/menu-dropdown.d.ts +2 -0
- package/dist/internal/styles/menu-dropdown.d.ts.map +1 -0
- package/dist/internal/styles/option.d.ts +2 -0
- package/dist/internal/styles/option.d.ts.map +1 -0
- package/dist/internal/styles/options-list.d.ts +2 -0
- package/dist/internal/styles/options-list.d.ts.map +1 -0
- package/dist/internal/styles/panel-resize-handle.d.ts +2 -0
- package/dist/internal/styles/panel-resize-handle.d.ts.map +1 -0
- package/dist/internal/styles/radio-button.d.ts +2 -0
- package/dist/internal/styles/radio-button.d.ts.map +1 -0
- package/dist/internal/styles/screenreader-only.d.ts +2 -0
- package/dist/internal/styles/screenreader-only.d.ts.map +1 -0
- package/dist/internal/styles/selectable-item.d.ts +2 -0
- package/dist/internal/styles/selectable-item.d.ts.map +1 -0
- package/dist/internal/styles/shared.d.ts +3 -0
- package/dist/internal/styles/shared.d.ts.map +1 -0
- package/dist/internal/styles/sortable-area.d.ts +2 -0
- package/dist/internal/styles/sortable-area.d.ts.map +1 -0
- package/dist/internal/styles/structured-item.d.ts +2 -0
- package/dist/internal/styles/structured-item.d.ts.map +1 -0
- package/dist/internal/styles/tab-trap.d.ts +2 -0
- package/dist/internal/styles/tab-trap.d.ts.map +1 -0
- package/dist/internal/styles/token-list.d.ts +2 -0
- package/dist/internal/styles/token-list.d.ts.map +1 -0
- package/dist/internal/styles/tooltip.d.ts +2 -0
- package/dist/internal/styles/tooltip.d.ts.map +1 -0
- package/dist/internal/theming.d.ts +2 -0
- package/dist/internal/theming.d.ts.map +1 -0
- package/dist/internal/token-utils.d.ts +46 -0
- package/dist/internal/token-utils.d.ts.map +1 -0
- package/dist/internal/tokens.d.ts +119 -0
- package/dist/internal/tokens.d.ts.map +1 -0
- package/dist/internal/utils/debounce.d.ts +8 -0
- package/dist/internal/utils/debounce.d.ts.map +1 -0
- package/dist/internal/utils/dom.d.ts +12 -0
- package/dist/internal/utils/dom.d.ts.map +1 -0
- package/dist/internal/utils/strings.d.ts +5 -0
- package/dist/internal/utils/strings.d.ts.map +1 -0
- package/dist/internal/utils/throttle.d.ts +7 -0
- package/dist/internal/utils/throttle.d.ts.map +1 -0
- package/dist/item-card/interfaces.d.ts +86 -0
- package/dist/item-card/interfaces.d.ts.map +1 -0
- package/dist/key-value-pairs/interfaces.d.ts +59 -0
- package/dist/key-value-pairs/interfaces.d.ts.map +1 -0
- package/dist/line-chart/interfaces.d.ts +18 -0
- package/dist/line-chart/interfaces.d.ts.map +1 -0
- package/dist/link/interfaces.d.ts +107 -0
- package/dist/link/interfaces.d.ts.map +1 -0
- package/dist/list/index.d.ts +5 -0
- package/dist/list/index.d.ts.map +1 -0
- package/dist/list/interfaces.d.ts +77 -0
- package/dist/list/interfaces.d.ts.map +1 -0
- package/dist/list/internal.d.ts +28 -0
- package/dist/list/internal.d.ts.map +1 -0
- package/dist/list/styles.d.ts +5 -0
- package/dist/list/styles.d.ts.map +1 -0
- package/dist/live-region/index.d.ts +5 -0
- package/dist/live-region/index.d.ts.map +1 -0
- package/dist/live-region/interfaces.d.ts +20 -0
- package/dist/live-region/interfaces.d.ts.map +1 -0
- package/dist/live-region/internal.d.ts +10 -0
- package/dist/live-region/internal.d.ts.map +1 -0
- package/dist/live-region/styles.d.ts +5 -0
- package/dist/live-region/styles.d.ts.map +1 -0
- package/dist/mixed-line-bar-chart/interfaces.d.ts +118 -0
- package/dist/mixed-line-bar-chart/interfaces.d.ts.map +1 -0
- package/dist/modal/interfaces.d.ts +91 -0
- package/dist/modal/interfaces.d.ts.map +1 -0
- package/dist/multiselect/interfaces.d.ts +121 -0
- package/dist/multiselect/interfaces.d.ts.map +1 -0
- package/dist/navigable-group/interfaces.d.ts +26 -0
- package/dist/navigable-group/interfaces.d.ts.map +1 -0
- package/dist/pagination/interfaces.d.ts +59 -0
- package/dist/pagination/interfaces.d.ts.map +1 -0
- package/dist/panel-layout/interfaces.d.ts +88 -0
- package/dist/panel-layout/interfaces.d.ts.map +1 -0
- package/dist/pie-chart/interfaces.d.ts +209 -0
- package/dist/pie-chart/interfaces.d.ts.map +1 -0
- package/dist/popover/interfaces.d.ts +92 -0
- package/dist/popover/interfaces.d.ts.map +1 -0
- package/dist/progress-bar/interfaces.d.ts +74 -0
- package/dist/progress-bar/interfaces.d.ts.map +1 -0
- package/dist/prompt-input/interfaces.d.ts +123 -0
- package/dist/prompt-input/interfaces.d.ts.map +1 -0
- package/dist/property-filter/interfaces.d.ts +344 -0
- package/dist/property-filter/interfaces.d.ts.map +1 -0
- package/dist/radio-button/interfaces.d.ts +2 -0
- package/dist/radio-button/interfaces.d.ts.map +1 -0
- package/dist/radio-group/index.d.ts +5 -0
- package/dist/radio-group/index.d.ts.map +1 -0
- package/dist/radio-group/interfaces.d.ts +76 -0
- package/dist/radio-group/interfaces.d.ts.map +1 -0
- package/dist/radio-group/internal.d.ts +33 -0
- package/dist/radio-group/internal.d.ts.map +1 -0
- package/dist/radio-group/styles.d.ts +5 -0
- package/dist/radio-group/styles.d.ts.map +1 -0
- package/dist/s3-resource-selector/interfaces.d.ts +234 -0
- package/dist/s3-resource-selector/interfaces.d.ts.map +1 -0
- package/dist/segmented-control/interfaces.d.ts +82 -0
- package/dist/segmented-control/interfaces.d.ts.map +1 -0
- package/dist/select/interfaces.d.ts +207 -0
- package/dist/select/interfaces.d.ts.map +1 -0
- package/dist/side-navigation/interfaces.d.ts +148 -0
- package/dist/side-navigation/interfaces.d.ts.map +1 -0
- package/dist/slider/interfaces.d.ts +98 -0
- package/dist/slider/interfaces.d.ts.map +1 -0
- package/dist/space-between/index.d.ts +5 -0
- package/dist/space-between/index.d.ts.map +1 -0
- package/dist/space-between/interfaces.d.ts +21 -0
- package/dist/space-between/interfaces.d.ts.map +1 -0
- package/dist/space-between/internal.d.ts +10 -0
- package/dist/space-between/internal.d.ts.map +1 -0
- package/dist/space-between/styles.d.ts +5 -0
- package/dist/space-between/styles.d.ts.map +1 -0
- package/dist/spinner/index.d.ts +5 -0
- package/dist/spinner/index.d.ts.map +1 -0
- package/dist/spinner/interfaces.d.ts +15 -0
- package/dist/spinner/interfaces.d.ts.map +1 -0
- package/dist/spinner/internal.d.ts +9 -0
- package/dist/spinner/internal.d.ts.map +1 -0
- package/dist/spinner/styles.d.ts +5 -0
- package/dist/spinner/styles.d.ts.map +1 -0
- package/dist/split-panel/interfaces.d.ts +64 -0
- package/dist/split-panel/interfaces.d.ts.map +1 -0
- package/dist/status-indicator/interfaces.d.ts +26 -0
- package/dist/status-indicator/interfaces.d.ts.map +1 -0
- package/dist/steps/interfaces.d.ts +53 -0
- package/dist/steps/interfaces.d.ts.map +1 -0
- package/dist/table/interfaces.d.ts +534 -0
- package/dist/table/interfaces.d.ts.map +1 -0
- package/dist/tabs/interfaces.d.ts +214 -0
- package/dist/tabs/interfaces.d.ts.map +1 -0
- package/dist/tag-editor/interfaces.d.ts +121 -0
- package/dist/tag-editor/interfaces.d.ts.map +1 -0
- package/dist/text-content/index.d.ts +5 -0
- package/dist/text-content/index.d.ts.map +1 -0
- package/dist/text-content/interfaces.d.ts +3 -0
- package/dist/text-content/interfaces.d.ts.map +1 -0
- package/dist/text-content/internal.d.ts +6 -0
- package/dist/text-content/internal.d.ts.map +1 -0
- package/dist/text-content/styles.d.ts +5 -0
- package/dist/text-content/styles.d.ts.map +1 -0
- package/dist/text-filter/interfaces.d.ts +102 -0
- package/dist/text-filter/interfaces.d.ts.map +1 -0
- package/dist/textarea/interfaces.d.ts +83 -0
- package/dist/textarea/interfaces.d.ts.map +1 -0
- package/dist/tiles/index.d.ts +5 -0
- package/dist/tiles/index.d.ts.map +1 -0
- package/dist/tiles/interfaces.d.ts +71 -0
- package/dist/tiles/interfaces.d.ts.map +1 -0
- package/dist/tiles/internal.d.ts +34 -0
- package/dist/tiles/internal.d.ts.map +1 -0
- package/dist/tiles/styles.d.ts +5 -0
- package/dist/tiles/styles.d.ts.map +1 -0
- package/dist/time-input/interfaces.d.ts +31 -0
- package/dist/time-input/interfaces.d.ts.map +1 -0
- package/dist/toggle/interfaces.d.ts +53 -0
- package/dist/toggle/interfaces.d.ts.map +1 -0
- package/dist/toggle-button/interfaces.d.ts +49 -0
- package/dist/toggle-button/interfaces.d.ts.map +1 -0
- package/dist/token/interfaces.d.ts +89 -0
- package/dist/token/interfaces.d.ts.map +1 -0
- package/dist/token-group/interfaces.d.ts +76 -0
- package/dist/token-group/interfaces.d.ts.map +1 -0
- package/dist/tooltip/interfaces.d.ts +30 -0
- package/dist/tooltip/interfaces.d.ts.map +1 -0
- package/dist/top-navigation/interfaces.d.ts +112 -0
- package/dist/top-navigation/interfaces.d.ts.map +1 -0
- package/dist/tree-view/index.d.ts +5 -0
- package/dist/tree-view/index.d.ts.map +1 -0
- package/dist/tree-view/interfaces.d.ts +79 -0
- package/dist/tree-view/interfaces.d.ts.map +1 -0
- package/dist/tree-view/internal.d.ts +24 -0
- package/dist/tree-view/internal.d.ts.map +1 -0
- package/dist/tree-view/styles.d.ts +5 -0
- package/dist/tree-view/styles.d.ts.map +1 -0
- package/dist/tutorial-panel/interfaces.d.ts +180 -0
- package/dist/tutorial-panel/interfaces.d.ts.map +1 -0
- package/dist/wizard/interfaces.d.ts +128 -0
- package/dist/wizard/interfaces.d.ts.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/radio-group/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;IAC7D;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACvC;AACD,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,UAAU,qBAAqB;QAC7B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,OAAO,CAAC;QACf,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IACD,UAAU,YAAY;QACpB,KAAK,EAAE,MAAM,CAAC;KACf;IACD,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;IACD,KAAK,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;CACrC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
import type { RadioGroupProps } from './interfaces.js';
|
|
4
|
+
declare const Base: (new (...args: any[]) => import("../internal/mixins/form-associated.js").FormAssociatedHost) & typeof LitElement;
|
|
5
|
+
export declare class CsRadioGroupInternal extends Base {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
value: string;
|
|
8
|
+
items: ReadonlyArray<RadioGroupProps.RadioButtonDefinition>;
|
|
9
|
+
controlAriaLabel: string;
|
|
10
|
+
controlAriaRequired: boolean;
|
|
11
|
+
controlAriaControls: string;
|
|
12
|
+
readOnly: boolean;
|
|
13
|
+
direction: 'horizontal' | 'vertical';
|
|
14
|
+
private readonly _groupName;
|
|
15
|
+
private _focusedIndex;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
willUpdate(changed: PropertyValues): void;
|
|
19
|
+
focus(): void;
|
|
20
|
+
private _getRadioInputs;
|
|
21
|
+
private _getSelectedIndex;
|
|
22
|
+
private _getFirstEnabledIndex;
|
|
23
|
+
private _getEnabledIndices;
|
|
24
|
+
private _onKeyDown;
|
|
25
|
+
private _onItemClick;
|
|
26
|
+
private _onFocus;
|
|
27
|
+
private _selectItem;
|
|
28
|
+
private _getTabIndex;
|
|
29
|
+
render(): TemplateResult;
|
|
30
|
+
private _renderItem;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/radio-group/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1E,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,QAAA,MAAM,IAAI,kHAAkC,CAAC;AAI7C,qBAAa,oBAAqB,SAAQ,IAAI;IAC5C,OAAgB,MAAM,4BAAwF;IAGrG,KAAK,SAAM;IAGpB,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAM;IAGjE,gBAAgB,SAAM;IAGtB,mBAAmB,UAAS;IAG5B,mBAAmB,SAAM;IAGzB,QAAQ,UAAS;IAGjB,SAAS,EAAE,YAAY,GAAG,UAAU,CAAc;IAElD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA6B;IACxD,OAAO,CAAC,aAAa,CAAM;IAElB,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAK5B,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAQlD,KAAK,IAAI,IAAI;IAWb,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,UAAU,CAuChB;IAEF,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,YAAY;IAUX,MAAM,IAAI,cAAc;IAuBjC,OAAO,CAAC,WAAW;CAuEpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/radio-group/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,eAAO,MAAM,eAAe,yBA+B3B,CAAC;AAEF,OAAO,EAAE,eAAe,IAAI,gBAAgB,EAAE,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { BaseModalProps } from '../modal/interfaces.js';
|
|
2
|
+
import { PaginationProps } from '../pagination/interfaces.js';
|
|
3
|
+
import { TableProps } from '../table/interfaces.js';
|
|
4
|
+
export interface S3ResourceSelectorProps extends BaseModalProps {
|
|
5
|
+
/** @slot alert — Specifies additional information about component status */
|
|
6
|
+
/**
|
|
7
|
+
* Adds `aria-labelledby` to the component. If you're using this component within a form field,
|
|
8
|
+
* don't set this property because the form field component automatically sets it.
|
|
9
|
+
*
|
|
10
|
+
* Use this property if the component isn't surrounded by a form field, or you want to override the value
|
|
11
|
+
* automatically set by the form field (for example, if you have two components within a single form field).
|
|
12
|
+
*
|
|
13
|
+
* To use it correctly, define an ID for the element you want to use as label and set the property to that ID.
|
|
14
|
+
*/
|
|
15
|
+
ariaLabelledby?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Adds `aria-describedby` to the component. If you're using this component within a form field,
|
|
18
|
+
* don't set this property because the form field component automatically sets it.
|
|
19
|
+
*
|
|
20
|
+
* Use this property if the component isn't surrounded by a form field, or you want to override the value
|
|
21
|
+
* automatically set by the form field (for example, if you have two components within a single form field).
|
|
22
|
+
*
|
|
23
|
+
* To use it correctly, define an ID for each element that you want to use as a description
|
|
24
|
+
* and set the property to a string of each ID separated by spaces (for example, `"id1 id2 id3"`).
|
|
25
|
+
*/
|
|
26
|
+
ariaDescribedby?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Adds `aria-label` to the component.
|
|
29
|
+
*/
|
|
30
|
+
ariaLabel?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Adds `aria-labelledby` to the S3 URI input. If you're using this component within a form field,
|
|
33
|
+
* you do not need to set this property, as the form field component will set it automatically.
|
|
34
|
+
*
|
|
35
|
+
* Use this property if the component isn't surrounded by a form field, or you want to override the value
|
|
36
|
+
* automatically set by the form field (for example, if you have two components within a single form field).
|
|
37
|
+
*
|
|
38
|
+
* To use it correctly, define an ID for the element you want to use as label and set the property to that ID.
|
|
39
|
+
*/
|
|
40
|
+
inputAriaDescribedby?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Adds a placeholder to the S3 URI input.
|
|
43
|
+
*/
|
|
44
|
+
inputPlaceholder?: string;
|
|
45
|
+
/**
|
|
46
|
+
* An array of the item types that are selectable in the table view. The array may contain the following items:
|
|
47
|
+
* 'buckets', 'objects', or 'versions'. Example: ['buckets', 'objects']. By default, no items are selectable.
|
|
48
|
+
* This property determines whether the component operates in Read mode or Write mode:
|
|
49
|
+
* * Read mode - When 'objects' and 'versions' values are provided (folder selection should be disabled by
|
|
50
|
+
* customizing `objectsIsItemDisabled` function).
|
|
51
|
+
* * Write mode - When 'buckets' and 'objects' values are provided (file selection should be disabled by
|
|
52
|
+
* customizing `objectsIsItemDisabled` function).
|
|
53
|
+
*/
|
|
54
|
+
selectableItemsTypes?: ReadonlyArray<S3ResourceSelectorProps.SelectableItems>;
|
|
55
|
+
/**
|
|
56
|
+
* Href of the selected object that is applied to the View button.
|
|
57
|
+
*/
|
|
58
|
+
viewHref?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the S3 URI input field is in invalid state.
|
|
61
|
+
*/
|
|
62
|
+
invalid?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Optionally overrides the set of visible columns in the Buckets view. Available columns: 'Name', 'CreationDate',
|
|
65
|
+
* and 'Region'.
|
|
66
|
+
*/
|
|
67
|
+
bucketsVisibleColumns?: ReadonlyArray<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Optionally overrides the set of visible columns in the Objects view. Available columns: 'Key', 'LastModified',
|
|
70
|
+
* and 'Size'.
|
|
71
|
+
*/
|
|
72
|
+
objectsVisibleColumns?: ReadonlyArray<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Optionally overrides the set of visible columns in the Versions view. Available columns: 'ID', 'CreationDate',
|
|
75
|
+
* and 'Size'.
|
|
76
|
+
*/
|
|
77
|
+
versionsVisibleColumns?: ReadonlyArray<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Optionally overrides whether a bucket should be disabled for selection in the Buckets view or not.
|
|
80
|
+
* It has higher priority than `selectableItemsTypes`. Example: if `selectableItemsTypes` has `['buckets']` value and
|
|
81
|
+
* `bucketsIsItemDisabled` returns false for a bucket, then the bucket is disabled for selection.
|
|
82
|
+
*/
|
|
83
|
+
bucketsIsItemDisabled?: (item: S3ResourceSelectorProps.Bucket) => boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Optionally overrides whether an object should be disabled for selection in the Objects view or not. Similar to
|
|
86
|
+
* `bucketsIsItemDisabled` this property takes precedence over the `selectableItemsTypes` property.
|
|
87
|
+
*/
|
|
88
|
+
objectsIsItemDisabled?: (item: S3ResourceSelectorProps.Object) => boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Optionally overrides whether a version should be disabled for selection in the Versions view or not. Similar to
|
|
91
|
+
* `bucketsIsItemDisabled` this property takes precedence over the `selectableItemsTypes` property.
|
|
92
|
+
*/
|
|
93
|
+
versionsIsItemDisabled?: (item: S3ResourceSelectorProps.Version) => boolean;
|
|
94
|
+
/**
|
|
95
|
+
* The current selected resource. Resource has the following properties:
|
|
96
|
+
* - `uri` (string) - URI of the resource.
|
|
97
|
+
* - `versionId` (string) - (Optional) Version ID of the selected resource.
|
|
98
|
+
*/
|
|
99
|
+
resource: S3ResourceSelectorProps.Resource;
|
|
100
|
+
/**
|
|
101
|
+
* An object containing all the necessary localized strings required by the component.
|
|
102
|
+
* @i18n
|
|
103
|
+
*/
|
|
104
|
+
i18nStrings?: S3ResourceSelectorProps.I18nStrings;
|
|
105
|
+
/**
|
|
106
|
+
* Specifies a function that returns all available buckets. The return type of the function should be a promise
|
|
107
|
+
* that resolves to a list of objects with the following properties:
|
|
108
|
+
* - `Name` (string) - Name of the bucket.
|
|
109
|
+
* - `CreationDate` (string) - (Optional) Creation date of the bucket.
|
|
110
|
+
* - `Region` (string) - (Optional) Region of the bucket.
|
|
111
|
+
*/
|
|
112
|
+
fetchBuckets: () => Promise<ReadonlyArray<S3ResourceSelectorProps.Bucket>>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies a function that returns available objects and object prefixes for the given `bucketName` and `pathPrefix`.
|
|
115
|
+
* The return type of the function should be a promise that resolves to a list of objects with the following properties:
|
|
116
|
+
* - `Key` (string) - Name of the object or object prefix.
|
|
117
|
+
* - `LastModified` (string) - (Optional) Date when this object was last modified.
|
|
118
|
+
* - `Size` (number) - (Optional) Size of the object.
|
|
119
|
+
* - `IsFolder` (boolean) - (Optional) Determines whether the entry is an object prefix (folder).
|
|
120
|
+
*/
|
|
121
|
+
fetchObjects: (bucketName: string, pathPrefix: string) => Promise<ReadonlyArray<S3ResourceSelectorProps.Object>>;
|
|
122
|
+
/**
|
|
123
|
+
* Specifies a function that returns available versions for the given `bucketName` and `pathPrefix`.
|
|
124
|
+
* The return type of the function should be a promise that resolves to a list of versions with the following properties:
|
|
125
|
+
* - `VersionId` (string) - Version ID of an object.
|
|
126
|
+
* - `LastModified` (string) - (Optional) Date when this object was last modified.
|
|
127
|
+
* - `Size` (number) - (Optional) Size of the object version.
|
|
128
|
+
*/
|
|
129
|
+
fetchVersions: (bucketName: string, pathPrefix: string) => Promise<ReadonlyArray<S3ResourceSelectorProps.Version>>;
|
|
130
|
+
}
|
|
131
|
+
interface SelectionLabels<T> {
|
|
132
|
+
itemSelectionLabel: (data: TableProps.SelectionState<T>, row: T) => string;
|
|
133
|
+
selectionGroupLabel: string;
|
|
134
|
+
}
|
|
135
|
+
type SortingColumnContainingString = (columnName: string) => string;
|
|
136
|
+
export declare namespace S3ResourceSelectorProps {
|
|
137
|
+
interface Bucket {
|
|
138
|
+
Name?: string;
|
|
139
|
+
CreationDate?: string;
|
|
140
|
+
Region?: string;
|
|
141
|
+
}
|
|
142
|
+
interface Object {
|
|
143
|
+
Key?: string;
|
|
144
|
+
LastModified?: string;
|
|
145
|
+
Size?: number;
|
|
146
|
+
IsFolder?: boolean;
|
|
147
|
+
}
|
|
148
|
+
interface Version {
|
|
149
|
+
VersionId?: string;
|
|
150
|
+
LastModified?: string;
|
|
151
|
+
Size?: number;
|
|
152
|
+
}
|
|
153
|
+
interface Resource {
|
|
154
|
+
uri: string;
|
|
155
|
+
versionId?: string;
|
|
156
|
+
}
|
|
157
|
+
type SelectableItems = 'buckets' | 'objects' | 'versions';
|
|
158
|
+
interface I18nStrings {
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated Use `inputPlaceholder` on the component instead.
|
|
161
|
+
*/
|
|
162
|
+
inContextInputPlaceholder?: string;
|
|
163
|
+
inContextInputClearAriaLabel?: string;
|
|
164
|
+
inContextSelectPlaceholder?: string;
|
|
165
|
+
inContextBrowseButton?: string;
|
|
166
|
+
inContextViewButton?: string;
|
|
167
|
+
inContextViewButtonAriaLabel?: string;
|
|
168
|
+
inContextLoadingText?: string;
|
|
169
|
+
inContextUriLabel?: string;
|
|
170
|
+
inContextVersionSelectLabel?: string;
|
|
171
|
+
modalTitle?: string;
|
|
172
|
+
modalCancelButton?: string;
|
|
173
|
+
modalSubmitButton?: string;
|
|
174
|
+
modalBreadcrumbRootItem?: string;
|
|
175
|
+
modalLastUpdatedText?: string;
|
|
176
|
+
selectionBuckets?: string;
|
|
177
|
+
selectionObjects?: string;
|
|
178
|
+
selectionVersions?: string;
|
|
179
|
+
selectionBucketsSearchPlaceholder?: string;
|
|
180
|
+
selectionObjectsSearchPlaceholder?: string;
|
|
181
|
+
selectionVersionsSearchPlaceholder?: string;
|
|
182
|
+
selectionBucketsLoading?: string;
|
|
183
|
+
selectionBucketsNoItems?: string;
|
|
184
|
+
selectionObjectsLoading?: string;
|
|
185
|
+
selectionObjectsNoItems?: string;
|
|
186
|
+
selectionVersionsLoading?: string;
|
|
187
|
+
selectionVersionsNoItems?: string;
|
|
188
|
+
filteringCounterText?: (count: number) => string;
|
|
189
|
+
filteringNoMatches?: string;
|
|
190
|
+
filteringCantFindMatch?: string;
|
|
191
|
+
clearFilterButtonText?: string;
|
|
192
|
+
columnBucketName?: string;
|
|
193
|
+
columnBucketCreationDate?: string;
|
|
194
|
+
columnBucketRegion?: string;
|
|
195
|
+
columnObjectKey?: string;
|
|
196
|
+
columnObjectLastModified?: string;
|
|
197
|
+
columnObjectSize?: string;
|
|
198
|
+
columnVersionID?: string;
|
|
199
|
+
columnVersionLastModified?: string;
|
|
200
|
+
columnVersionSize?: string;
|
|
201
|
+
validationPathMustBegin?: string;
|
|
202
|
+
validationBucketLowerCase?: string;
|
|
203
|
+
validationBucketMustNotContain?: string;
|
|
204
|
+
validationBucketLength?: string;
|
|
205
|
+
validationBucketMustComplyDns?: string;
|
|
206
|
+
labelSortedDescending?: SortingColumnContainingString;
|
|
207
|
+
labelSortedAscending?: SortingColumnContainingString;
|
|
208
|
+
labelNotSorted?: SortingColumnContainingString;
|
|
209
|
+
labelsPagination?: PaginationProps.Labels;
|
|
210
|
+
labelsBucketsSelection?: SelectionLabels<Bucket>;
|
|
211
|
+
labelsObjectsSelection?: SelectionLabels<S3ResourceSelectorProps.Object>;
|
|
212
|
+
labelsVersionsSelection?: SelectionLabels<Version>;
|
|
213
|
+
labelFiltering?: (itemsType: string) => string;
|
|
214
|
+
labelRefresh?: string;
|
|
215
|
+
labelModalDismiss?: string;
|
|
216
|
+
labelBreadcrumbs?: string;
|
|
217
|
+
labelExpandBreadcrumbs?: string;
|
|
218
|
+
labelClearFilter?: string;
|
|
219
|
+
labelIconObject?: string;
|
|
220
|
+
labelIconFolder?: string;
|
|
221
|
+
}
|
|
222
|
+
interface ChangeDetail {
|
|
223
|
+
resource: Resource;
|
|
224
|
+
errorText?: string;
|
|
225
|
+
}
|
|
226
|
+
interface Ref {
|
|
227
|
+
/**
|
|
228
|
+
* Focuses the S3 URI input field
|
|
229
|
+
*/
|
|
230
|
+
focus(): void;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export {};
|
|
234
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/s3-resource-selector/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,4EAA4E;IAC5E;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC9E;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C;;;OAGG;IACH,sBAAsB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/C;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,uBAAuB,CAAC,MAAM,KAAK,OAAO,CAAC;IAC1E;;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AAE,eAAe,CAAC,OAAO,CAAC,CAAC;QACnD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;QAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;IACD,UAAU,YAAY;QACpB,QAAQ,EAAE,QAAQ,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IACD,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF;AACD,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IconProps } from '../icon/interfaces.js';
|
|
2
|
+
export interface SegmentedControlProps {
|
|
3
|
+
/**
|
|
4
|
+
* ID of the selected option. If you want to clear the selection, use `null`.
|
|
5
|
+
*/
|
|
6
|
+
selectedId: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* An array of objects representing options. Only up to 6 options are supported.
|
|
9
|
+
* Each segment has the following properties:
|
|
10
|
+
*
|
|
11
|
+
* - `id` (string) - The ID of the segment.
|
|
12
|
+
* - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.
|
|
13
|
+
* - `disabledReason` (string) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context.
|
|
14
|
+
* - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
|
|
15
|
+
* - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`, or `iconName` without `text`.
|
|
16
|
+
* This is required when you use an icon without `text`.
|
|
17
|
+
* - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.
|
|
18
|
+
* - `iconSvg` (unknown) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).
|
|
19
|
+
* - `text` (string) - (Optional) Specifies the text of the segment.
|
|
20
|
+
*/
|
|
21
|
+
options?: ReadonlyArray<SegmentedControlProps.Option>;
|
|
22
|
+
/**
|
|
23
|
+
* Defines the label of the entire segmented control. In the standard view (that is, all individual segments are visible),
|
|
24
|
+
* this label is used as `aria-label` on the group of segments. In a narrow container, where this component is displayed as a select component,
|
|
25
|
+
* the label is visible and attached to the select component, unless `ariaLabelledBy` is defined. Don't use `label` and `ariaLabelledBy` at the same time.
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Adds aria-labelledby to the component. Create a visually hidden element with an ID and set this property to that ID. If you don't want the label to be visible in narrow containers, use this property instead of `label`.
|
|
30
|
+
*/
|
|
31
|
+
ariaLabelledby?: string;
|
|
32
|
+
/** @event change — CustomEvent<SegmentedControlProps.ChangeDetail> */
|
|
33
|
+
/**
|
|
34
|
+
* An object containing CSS properties to customize the segmented control's visual appearance.
|
|
35
|
+
* Refer to the [style](/components/segmented-control/?tabId=style) tab for more details.
|
|
36
|
+
*/
|
|
37
|
+
style?: SegmentedControlProps.Style;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace SegmentedControlProps {
|
|
40
|
+
interface Option {
|
|
41
|
+
id: string;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
disabledReason?: string;
|
|
44
|
+
iconName?: IconProps.Name;
|
|
45
|
+
iconAlt?: string;
|
|
46
|
+
iconUrl?: string;
|
|
47
|
+
iconSvg?: unknown;
|
|
48
|
+
text?: string;
|
|
49
|
+
}
|
|
50
|
+
interface ChangeDetail {
|
|
51
|
+
selectedId: string;
|
|
52
|
+
}
|
|
53
|
+
interface Style {
|
|
54
|
+
root?: {
|
|
55
|
+
borderRadius?: string;
|
|
56
|
+
};
|
|
57
|
+
segment?: {
|
|
58
|
+
background?: {
|
|
59
|
+
active?: string;
|
|
60
|
+
default?: string;
|
|
61
|
+
disabled?: string;
|
|
62
|
+
hover?: string;
|
|
63
|
+
};
|
|
64
|
+
color?: {
|
|
65
|
+
active?: string;
|
|
66
|
+
default?: string;
|
|
67
|
+
disabled?: string;
|
|
68
|
+
hover?: string;
|
|
69
|
+
};
|
|
70
|
+
focusRing?: {
|
|
71
|
+
borderColor?: string;
|
|
72
|
+
borderRadius?: string;
|
|
73
|
+
borderWidth?: string;
|
|
74
|
+
};
|
|
75
|
+
borderRadius?: string;
|
|
76
|
+
fontSize?: string;
|
|
77
|
+
paddingBlock?: string;
|
|
78
|
+
paddingInline?: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACtD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE;;;OAGG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC;CACrC;AACD,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,UAAU,MAAM;QACd,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IACD,UAAU,YAAY;QACpB,UAAU,EAAE,MAAM,CAAC;KACpB;IACD,UAAU,KAAK;QACb,IAAI,CAAC,EAAE;YACL,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;QACF,OAAO,CAAC,EAAE;YACR,UAAU,CAAC,EAAE;gBACX,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,KAAK,CAAC,EAAE;gBACN,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,SAAS,CAAC,EAAE;gBACV,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;YACF,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;KACH;CACF"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { BaseDropdownHostProps, OptionsFilteringType, OptionsLoadItemsDetail } from '../dropdown/interfaces.js';
|
|
2
|
+
import { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../internal/generated/cloudscape-types.js';
|
|
3
|
+
export interface BaseSelectProps extends BaseDropdownHostProps {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies an array of options that are displayed to the user as a dropdown list.
|
|
6
|
+
* The options can be grouped using `OptionGroup` objects.
|
|
7
|
+
*
|
|
8
|
+
* #### Option
|
|
9
|
+
* - `value` (string) - The returned value of the option when selected.
|
|
10
|
+
*
|
|
11
|
+
* #### OptionGroup
|
|
12
|
+
* - `value` (string) - Used to locate option group in test utils.
|
|
13
|
+
* - `options` (Option[]) - (Optional) The options under this group.
|
|
14
|
+
*
|
|
15
|
+
* #### Shared Option and OptionGroup properties
|
|
16
|
+
* - `label` (string) - (Optional) Option or group text displayed to the user.
|
|
17
|
+
* - `lang` (string) - (Optional) The language of the option or group, provided as a BCP 47 language tag.
|
|
18
|
+
* - `description` (string) - (Optional) Further information about the option or group that appears below the label.
|
|
19
|
+
* - `disabled` (boolean) - (Optional) Determines whether the option or group is disabled.
|
|
20
|
+
* - `disabledReason` (string) - (Optional) Displays tooltip near the item when disabled. Use to provide additional context.
|
|
21
|
+
* - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.
|
|
22
|
+
* - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option or group.
|
|
23
|
+
* - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.
|
|
24
|
+
* - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option or group.
|
|
25
|
+
* - `iconAriaLabel` (string) - (Optional) Specifies alternate text for the icon. We recommend that you provide this for accessibility.
|
|
26
|
+
* - `iconAlt` (string) - (Optional) **Deprecated**, replaced by \`iconAriaLabel\`. Specifies alternate text for a custom icon, for use with `iconUrl`.
|
|
27
|
+
* - `iconUrl` (string) - (Optional) URL of a custom icon.
|
|
28
|
+
* - `iconSvg` (unknown) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).
|
|
29
|
+
*
|
|
30
|
+
* Note: Only one level of option nesting is supported.
|
|
31
|
+
*
|
|
32
|
+
* If you want to use the built-in filtering capabilities of this component, provide
|
|
33
|
+
* a list of all valid options here and they will be automatically filtered based on the user's filtering input.
|
|
34
|
+
*
|
|
35
|
+
* Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options
|
|
36
|
+
* on your own.
|
|
37
|
+
**/
|
|
38
|
+
options?: SelectProps.Options;
|
|
39
|
+
/**
|
|
40
|
+
* Determines how filtering is applied to the list of `options`:
|
|
41
|
+
*
|
|
42
|
+
* * `auto` - The component will automatically filter options based on user input.
|
|
43
|
+
* * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request
|
|
44
|
+
* them from server.
|
|
45
|
+
*
|
|
46
|
+
* By default the component will filter the provided `options` based on the value of the filtering input field.
|
|
47
|
+
* Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring
|
|
48
|
+
* are displayed in the list of options.
|
|
49
|
+
*
|
|
50
|
+
* If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are
|
|
51
|
+
* displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order
|
|
52
|
+
* to set the `options` property to the options that are relevant for the user, given the filtering input value.
|
|
53
|
+
*
|
|
54
|
+
* Note: Manual filtering doesn't disable match highlighting.
|
|
55
|
+
**/
|
|
56
|
+
filteringType?: OptionsFilteringType;
|
|
57
|
+
/**
|
|
58
|
+
* Determines whether the whole select component is disabled.
|
|
59
|
+
*/
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Specifies the placeholder to display in the filtering input if filtering is enabled.
|
|
63
|
+
*/
|
|
64
|
+
filteringPlaceholder?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.
|
|
67
|
+
*/
|
|
68
|
+
filteringResultsText?: (matchesCount: number, totalCount: number) => string;
|
|
69
|
+
/**
|
|
70
|
+
* Adds an `aria-label` on the built-in filtering input if filtering is enabled.
|
|
71
|
+
*/
|
|
72
|
+
filteringAriaLabel?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Adds an `aria-label` to the clear button inside the search input.
|
|
75
|
+
* @i18n
|
|
76
|
+
*/
|
|
77
|
+
filteringClearAriaLabel?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Has no effect.
|
|
80
|
+
*/
|
|
81
|
+
name?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Specifies the hint text that's displayed in the field when no option has been selected.
|
|
84
|
+
*/
|
|
85
|
+
placeholder?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Specifies the ID for the trigger component. It uses an automatically generated ID by default.
|
|
88
|
+
*/
|
|
89
|
+
controlId?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Adds `aria-required` to the native input element.
|
|
92
|
+
*/
|
|
93
|
+
ariaRequired?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Adds `aria-label` to the select element.
|
|
96
|
+
* Use this if you don't have a visible label for this control.
|
|
97
|
+
*/
|
|
98
|
+
ariaLabel?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies the localized string that describes an option as being selected.
|
|
101
|
+
* This is required to provide a good screen reader experience. For more information, see the
|
|
102
|
+
* [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).
|
|
103
|
+
* @i18n
|
|
104
|
+
*/
|
|
105
|
+
selectedAriaLabel?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Overrides the element that is announced to screen readers
|
|
108
|
+
* when the highlighted option changes. By default, this announces
|
|
109
|
+
* the option's name and properties, and its selected state if
|
|
110
|
+
* the `selectedAriaLabel` property is defined.
|
|
111
|
+
* The highlighted option is provided, and its group (if groups
|
|
112
|
+
* are used and it differs from the group of the previously highlighted option).
|
|
113
|
+
*
|
|
114
|
+
* For more information, see the
|
|
115
|
+
* [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).
|
|
116
|
+
*/
|
|
117
|
+
renderHighlightedAriaLive?: SelectProps.ContainingOptionAndGroupString;
|
|
118
|
+
/** @slot noMatch — Displayed for `filteringType="auto"` when there are no matches for the filtering */
|
|
119
|
+
/** @event blur — CustomEvent<void> */
|
|
120
|
+
/** @event focus — CustomEvent<void> */
|
|
121
|
+
/**
|
|
122
|
+
* Specifies if the control is read-only, which prevents the
|
|
123
|
+
* user from both modifying the value and opening the dropdown. A read-only control is still focusable.
|
|
124
|
+
*/
|
|
125
|
+
readOnly?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface SelectProps extends BaseSelectProps {
|
|
128
|
+
/**
|
|
129
|
+
* Adds a small label inline with the input for saving vertical space in the UI.
|
|
130
|
+
* For use with collection select filters only.
|
|
131
|
+
*/
|
|
132
|
+
inlineLabelText?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Adds `aria-labelledby` to the component. If you're using this component within a form field,
|
|
135
|
+
* don't set this property because the form field component automatically sets it.
|
|
136
|
+
*
|
|
137
|
+
* Use this property if the component isn't using `inlineLabelText` and isn't surrounded by a form field, or you want to override the value
|
|
138
|
+
* automatically set by the form field (for example, if you have two components within a single form field).
|
|
139
|
+
*
|
|
140
|
+
* To use it correctly, define an ID for the element you want to use as label and set the property to that ID.
|
|
141
|
+
*/
|
|
142
|
+
ariaLabelledby?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Defines the variant of the trigger. You can use a simple label or the entire option (`label | option`)
|
|
145
|
+
*/
|
|
146
|
+
triggerVariant?: SelectProps.TriggerVariant;
|
|
147
|
+
/**
|
|
148
|
+
* Specifies the currently selected option.
|
|
149
|
+
* If you want to clear the selection, use `null`.
|
|
150
|
+
*/
|
|
151
|
+
selectedOption: SelectProps.Option | null;
|
|
152
|
+
/** @event change — CustomEvent<SelectProps.ChangeDetail> */
|
|
153
|
+
/**
|
|
154
|
+
* Automatically focuses the trigger when component is mounted.
|
|
155
|
+
*/
|
|
156
|
+
autoFocus?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Specifies a render function to render custom options in the dropdown menu or trigger.
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
renderOption?: SelectProps.SelectOptionItemRenderer;
|
|
162
|
+
}
|
|
163
|
+
export declare namespace SelectProps {
|
|
164
|
+
type FilteringType = OptionsFilteringType;
|
|
165
|
+
type TriggerVariant = 'label' | 'option';
|
|
166
|
+
type Option = OptionDefinition;
|
|
167
|
+
type OptionGroup = OptionGroupDefinition;
|
|
168
|
+
type Options = ReadonlyArray<Option | OptionGroup>;
|
|
169
|
+
interface SelectOptionItem {
|
|
170
|
+
type: 'item';
|
|
171
|
+
index: number;
|
|
172
|
+
option: Option;
|
|
173
|
+
highlighted: boolean;
|
|
174
|
+
selected: boolean;
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
parent: SelectOptionGroupItem | null;
|
|
177
|
+
}
|
|
178
|
+
interface SelectOptionGroupItem {
|
|
179
|
+
type: 'group';
|
|
180
|
+
index: number;
|
|
181
|
+
option: OptionGroup;
|
|
182
|
+
disabled: boolean;
|
|
183
|
+
}
|
|
184
|
+
interface SelectTriggerOptionItem {
|
|
185
|
+
type: 'trigger';
|
|
186
|
+
option: Option;
|
|
187
|
+
}
|
|
188
|
+
type SelectItem = SelectOptionItem | SelectOptionGroupItem | SelectTriggerOptionItem;
|
|
189
|
+
type SelectOptionItemRenderer = (props: {
|
|
190
|
+
item: SelectItem;
|
|
191
|
+
filterText?: string;
|
|
192
|
+
}) => unknown | null;
|
|
193
|
+
type LoadItemsDetail = OptionsLoadItemsDetail;
|
|
194
|
+
interface ChangeDetail {
|
|
195
|
+
selectedOption: Option;
|
|
196
|
+
}
|
|
197
|
+
interface ContainingOptionAndGroupString {
|
|
198
|
+
(option: Option, group?: OptionGroup): string;
|
|
199
|
+
}
|
|
200
|
+
interface Ref {
|
|
201
|
+
/**
|
|
202
|
+
* Sets focus on the element without opening the dropdown or showing a visual focus indicator.
|
|
203
|
+
*/
|
|
204
|
+
focus(): void;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/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