@tanrei/web 0.0.0-stage → 0.1.0-next.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 +202 -0
- package/NOTICE +58 -0
- package/README.md +9743 -2
- package/custom-elements.json +86072 -0
- package/dist/THIRD_PARTY_LICENSES.md +136 -0
- package/dist/accordion.css +812 -0
- package/dist/app-shell.css +493 -0
- package/dist/avatar.css +80 -0
- package/dist/breadcrumbs.css +511 -0
- package/dist/callout.css +65 -0
- package/dist/code.css +595 -0
- package/dist/components/accordion/accordion.d.ts +197 -0
- package/dist/components/accordion/accordion.js +763 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts +107 -0
- package/dist/components/app-bar/app-bar.js +295 -0
- package/dist/components/app-bar/app-bar.js.map +1 -0
- package/dist/components/app-bar/app-bar.styles.d.ts +12 -0
- package/dist/components/app-bar/app-bar.styles.js +223 -0
- package/dist/components/app-bar/app-bar.styles.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +220 -0
- package/dist/components/app-shell/app-shell.js +677 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +162 -0
- package/dist/components/avatar/avatar.js +390 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.styles.d.ts +9 -0
- package/dist/components/avatar/avatar.styles.js +258 -0
- package/dist/components/avatar/avatar.styles.js.map +1 -0
- package/dist/components/badge/badge.d.ts +59 -0
- package/dist/components/badge/badge.js +176 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.styles.d.ts +1 -0
- package/dist/components/badge/badge.styles.js +106 -0
- package/dist/components/badge/badge.styles.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +207 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +724 -0
- package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js +393 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +176 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +638 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +225 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/dist/components/button/button.d.ts +280 -0
- package/dist/components/button/button.js +530 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.styles.d.ts +20 -0
- package/dist/components/button/button.styles.js +328 -0
- package/dist/components/button/button.styles.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +124 -0
- package/dist/components/button-group/button-group.js +287 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/button-group/button-group.styles.d.ts +1 -0
- package/dist/components/button-group/button-group.styles.js +220 -0
- package/dist/components/button-group/button-group.styles.js.map +1 -0
- package/dist/components/button-with-menu/button-with-menu.d.ts +224 -0
- package/dist/components/button-with-menu/button-with-menu.js +635 -0
- package/dist/components/button-with-menu/button-with-menu.js.map +1 -0
- package/dist/components/button-with-menu/button-with-menu.styles.d.ts +15 -0
- package/dist/components/button-with-menu/button-with-menu.styles.js +418 -0
- package/dist/components/button-with-menu/button-with-menu.styles.js.map +1 -0
- package/dist/components/calendar/calendar.d.ts +380 -0
- package/dist/components/calendar/calendar.js +1619 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/calendar/calendar.styles.d.ts +11 -0
- package/dist/components/calendar/calendar.styles.js +412 -0
- package/dist/components/calendar/calendar.styles.js.map +1 -0
- package/dist/components/callout/callout.d.ts +157 -0
- package/dist/components/callout/callout.js +436 -0
- package/dist/components/callout/callout.js.map +1 -0
- package/dist/components/callout/callout.styles.d.ts +13 -0
- package/dist/components/callout/callout.styles.js +383 -0
- package/dist/components/callout/callout.styles.js.map +1 -0
- package/dist/components/card/card.d.ts +108 -0
- package/dist/components/card/card.js +235 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/card.styles.d.ts +9 -0
- package/dist/components/card/card.styles.js +170 -0
- package/dist/components/card/card.styles.js.map +1 -0
- package/dist/components/carousel/carousel-geometry.d.ts +178 -0
- package/dist/components/carousel/carousel-geometry.js +356 -0
- package/dist/components/carousel/carousel-geometry.js.map +1 -0
- package/dist/components/carousel/carousel.d.ts +401 -0
- package/dist/components/carousel/carousel.js +1352 -0
- package/dist/components/carousel/carousel.js.map +1 -0
- package/dist/components/carousel/carousel.styles.d.ts +4 -0
- package/dist/components/carousel/carousel.styles.js +475 -0
- package/dist/components/carousel/carousel.styles.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.d.ts +482 -0
- package/dist/components/chat-composer/chat-composer.js +1374 -0
- package/dist/components/chat-composer/chat-composer.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts +9 -0
- package/dist/components/chat-composer/chat-composer.styles.js +308 -0
- package/dist/components/chat-composer/chat-composer.styles.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +135 -0
- package/dist/components/checkbox/checkbox.js +296 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +13 -0
- package/dist/components/checkbox/checkbox.styles.js +226 -0
- package/dist/components/checkbox/checkbox.styles.js.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +199 -0
- package/dist/components/checkbox-group/checkbox-group.js +500 -0
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/chip/chip.d.ts +176 -0
- package/dist/components/chip/chip.js +376 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/chip/chip.styles.d.ts +10 -0
- package/dist/components/chip/chip.styles.js +465 -0
- package/dist/components/chip/chip.styles.js.map +1 -0
- package/dist/components/chip-field/chip-field.d.ts +315 -0
- package/dist/components/chip-field/chip-field.js +887 -0
- package/dist/components/chip-field/chip-field.js.map +1 -0
- package/dist/components/code-block/code-block.before.d.ts +2 -0
- package/dist/components/code-block/code-block.before.js +193 -0
- package/dist/components/code-block/code-block.before.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +268 -0
- package/dist/components/code-block/code-block.js +1009 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.light.d.ts +50 -0
- package/dist/components/code-block/code-block.light.js +287 -0
- package/dist/components/code-block/code-block.light.js.map +1 -0
- package/dist/components/code-block/code-block.lines.d.ts +49 -0
- package/dist/components/code-block/code-block.lines.js +75 -0
- package/dist/components/code-block/code-block.lines.js.map +1 -0
- package/dist/components/code-block/code-block.styles.d.ts +8 -0
- package/dist/components/code-block/code-block.styles.js +212 -0
- package/dist/components/code-block/code-block.styles.js.map +1 -0
- package/dist/components/color-field/color-field.d.ts +120 -0
- package/dist/components/color-field/color-field.js +182 -0
- package/dist/components/color-field/color-field.js.map +1 -0
- package/dist/components/color-input/color-input.d.ts +302 -0
- package/dist/components/color-input/color-input.js +748 -0
- package/dist/components/color-input/color-input.js.map +1 -0
- package/dist/components/color-input/color-input.styles.d.ts +22 -0
- package/dist/components/color-input/color-input.styles.js +373 -0
- package/dist/components/color-input/color-input.styles.js.map +1 -0
- package/dist/components/color-input/color-text.d.ts +48 -0
- package/dist/components/color-input/color-text.js +77 -0
- package/dist/components/color-input/color-text.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +387 -0
- package/dist/components/combobox/combobox.js +1108 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/combobox.styles.d.ts +26 -0
- package/dist/components/combobox/combobox.styles.js +497 -0
- package/dist/components/combobox/combobox.styles.js.map +1 -0
- package/dist/components/combobox-field/combobox-field.d.ts +159 -0
- package/dist/components/combobox-field/combobox-field.js +280 -0
- package/dist/components/combobox-field/combobox-field.js.map +1 -0
- package/dist/components/copy-button/copy-button.d.ts +112 -0
- package/dist/components/copy-button/copy-button.js +237 -0
- package/dist/components/copy-button/copy-button.js.map +1 -0
- package/dist/components/copy-button/copy-button.styles.d.ts +1 -0
- package/dist/components/copy-button/copy-button.styles.js +62 -0
- package/dist/components/copy-button/copy-button.styles.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +603 -0
- package/dist/components/date-time-picker/date-time-picker.js +2537 -0
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker.styles.d.ts +1 -0
- package/dist/components/date-time-picker/date-time-picker.styles.js +842 -0
- package/dist/components/date-time-picker/date-time-picker.styles.js.map +1 -0
- package/dist/components/description-list/description-list.d.ts +133 -0
- package/dist/components/description-list/description-list.js +395 -0
- package/dist/components/description-list/description-list.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +140 -0
- package/dist/components/dialog/dialog.js +440 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +306 -0
- package/dist/components/dialog/dialog.styles.js.map +1 -0
- package/dist/components/divider/divider.d.ts +112 -0
- package/dist/components/divider/divider.js +331 -0
- package/dist/components/divider/divider.js.map +1 -0
- package/dist/components/divider/divider.styles.d.ts +6 -0
- package/dist/components/divider/divider.styles.js +183 -0
- package/dist/components/divider/divider.styles.js.map +1 -0
- package/dist/components/embedded-text-input/embedded-text-input.d.ts +246 -0
- package/dist/components/embedded-text-input/embedded-text-input.js +673 -0
- package/dist/components/embedded-text-input/embedded-text-input.js.map +1 -0
- package/dist/components/embedded-text-input/embedded-text-input.styles.d.ts +1 -0
- package/dist/components/embedded-text-input/embedded-text-input.styles.js +204 -0
- package/dist/components/embedded-text-input/embedded-text-input.styles.js.map +1 -0
- package/dist/components/empty-state/empty-state.d.ts +132 -0
- package/dist/components/empty-state/empty-state.js +333 -0
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/empty-state/empty-state.styles.d.ts +11 -0
- package/dist/components/empty-state/empty-state.styles.js +218 -0
- package/dist/components/empty-state/empty-state.styles.js.map +1 -0
- package/dist/components/fab-menu/fab-menu.d.ts +240 -0
- package/dist/components/fab-menu/fab-menu.js +605 -0
- package/dist/components/fab-menu/fab-menu.js.map +1 -0
- package/dist/components/fab-menu/fab-menu.styles.d.ts +21 -0
- package/dist/components/fab-menu/fab-menu.styles.js +427 -0
- package/dist/components/fab-menu/fab-menu.styles.js.map +1 -0
- package/dist/components/field/field.d.ts +165 -0
- package/dist/components/field/field.js +399 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/field/field.styles.d.ts +2 -0
- package/dist/components/field/field.styles.js +177 -0
- package/dist/components/field/field.styles.js.map +1 -0
- package/dist/components/field-group/field-group.d.ts +122 -0
- package/dist/components/field-group/field-group.js +246 -0
- package/dist/components/field-group/field-group.js.map +1 -0
- package/dist/components/field-group/field-group.styles.d.ts +7 -0
- package/dist/components/field-group/field-group.styles.js +28 -0
- package/dist/components/field-group/field-group.styles.js.map +1 -0
- package/dist/components/figure/figure.d.ts +152 -0
- package/dist/components/figure/figure.js +435 -0
- package/dist/components/figure/figure.js.map +1 -0
- package/dist/components/file-item/file-item.d.ts +232 -0
- package/dist/components/file-item/file-item.js +665 -0
- package/dist/components/file-item/file-item.js.map +1 -0
- package/dist/components/file-item/file-item.styles.d.ts +2 -0
- package/dist/components/file-item/file-item.styles.js +582 -0
- package/dist/components/file-item/file-item.styles.js.map +1 -0
- package/dist/components/file-picker/file-picker.d.ts +221 -0
- package/dist/components/file-picker/file-picker.js +588 -0
- package/dist/components/file-picker/file-picker.js.map +1 -0
- package/dist/components/file-picker/file-picker.styles.d.ts +2 -0
- package/dist/components/file-picker/file-picker.styles.js +303 -0
- package/dist/components/file-picker/file-picker.styles.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +353 -0
- package/dist/components/file-upload/file-upload.js +939 -0
- package/dist/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/file-upload/file-upload.styles.d.ts +1 -0
- package/dist/components/file-upload/file-upload.styles.js +91 -0
- package/dist/components/file-upload/file-upload.styles.js.map +1 -0
- package/dist/components/image-preview/image-preview.d.ts +336 -0
- package/dist/components/image-preview/image-preview.js +1510 -0
- package/dist/components/image-preview/image-preview.js.map +1 -0
- package/dist/components/image-preview/image-preview.styles.d.ts +1 -0
- package/dist/components/image-preview/image-preview.styles.js +418 -0
- package/dist/components/image-preview/image-preview.styles.js.map +1 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.d.ts +94 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.js +285 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.d.ts +11 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.js +155 -0
- package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -0
- package/dist/components/link-card/link-card.d.ts +156 -0
- package/dist/components/link-card/link-card.js +713 -0
- package/dist/components/link-card/link-card.js.map +1 -0
- package/dist/components/list/list.d.ts +430 -0
- package/dist/components/list/list.js +1230 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/list/list.styles.d.ts +3 -0
- package/dist/components/list/list.styles.js +334 -0
- package/dist/components/list/list.styles.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator.d.ts +83 -0
- package/dist/components/loading-indicator/loading-indicator.js +195 -0
- package/dist/components/loading-indicator/loading-indicator.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator.styles.d.ts +6 -0
- package/dist/components/loading-indicator/loading-indicator.styles.js +124 -0
- package/dist/components/loading-indicator/loading-indicator.styles.js.map +1 -0
- package/dist/components/main-action-button/main-action-button.d.ts +95 -0
- package/dist/components/main-action-button/main-action-button.js +202 -0
- package/dist/components/main-action-button/main-action-button.js.map +1 -0
- package/dist/components/main-action-button/main-action-button.styles.d.ts +10 -0
- package/dist/components/main-action-button/main-action-button.styles.js +285 -0
- package/dist/components/main-action-button/main-action-button.styles.js.map +1 -0
- package/dist/components/menu/menu.d.ts +813 -0
- package/dist/components/menu/menu.js +2061 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menu/menu.styles.d.ts +18 -0
- package/dist/components/menu/menu.styles.js +587 -0
- package/dist/components/menu/menu.styles.js.map +1 -0
- package/dist/components/menubar/menubar.d.ts +477 -0
- package/dist/components/menubar/menubar.js +1677 -0
- package/dist/components/menubar/menubar.js.map +1 -0
- package/dist/components/menubar/menubar.styles.d.ts +43 -0
- package/dist/components/menubar/menubar.styles.js +379 -0
- package/dist/components/menubar/menubar.styles.js.map +1 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts +239 -0
- package/dist/components/navigation-bar/navigation-bar.js +544 -0
- package/dist/components/navigation-bar/navigation-bar.js.map +1 -0
- package/dist/components/navigation-bar/navigation-bar.styles.d.ts +21 -0
- package/dist/components/navigation-bar/navigation-bar.styles.js +320 -0
- package/dist/components/navigation-bar/navigation-bar.styles.js.map +1 -0
- package/dist/components/navigation-drawer/navigation-drawer.d.ts +627 -0
- package/dist/components/navigation-drawer/navigation-drawer.js +1917 -0
- package/dist/components/navigation-drawer/navigation-drawer.js.map +1 -0
- package/dist/components/navigation-drawer/navigation-drawer.styles.d.ts +40 -0
- package/dist/components/navigation-drawer/navigation-drawer.styles.js +934 -0
- package/dist/components/navigation-drawer/navigation-drawer.styles.js.map +1 -0
- package/dist/components/number-field/number-field.d.ts +147 -0
- package/dist/components/number-field/number-field.js +252 -0
- package/dist/components/number-field/number-field.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +347 -0
- package/dist/components/number-input/number-input.js +929 -0
- package/dist/components/number-input/number-input.js.map +1 -0
- package/dist/components/number-input/number-input.styles.d.ts +22 -0
- package/dist/components/number-input/number-input.styles.js +395 -0
- package/dist/components/number-input/number-input.styles.js.map +1 -0
- package/dist/components/number-input/number-text.d.ts +74 -0
- package/dist/components/number-input/number-text.js +230 -0
- package/dist/components/number-input/number-text.js.map +1 -0
- package/dist/components/one-time-code-field/one-time-code-field.d.ts +94 -0
- package/dist/components/one-time-code-field/one-time-code-field.js +135 -0
- package/dist/components/one-time-code-field/one-time-code-field.js.map +1 -0
- package/dist/components/one-time-code-input/code-text.d.ts +51 -0
- package/dist/components/one-time-code-input/code-text.js +145 -0
- package/dist/components/one-time-code-input/code-text.js.map +1 -0
- package/dist/components/one-time-code-input/one-time-code-input.d.ts +219 -0
- package/dist/components/one-time-code-input/one-time-code-input.js +710 -0
- package/dist/components/one-time-code-input/one-time-code-input.js.map +1 -0
- package/dist/components/one-time-code-input/one-time-code-input.styles.d.ts +8 -0
- package/dist/components/one-time-code-input/one-time-code-input.styles.js +323 -0
- package/dist/components/one-time-code-input/one-time-code-input.styles.js.map +1 -0
- package/dist/components/option/option.d.ts +51 -0
- package/dist/components/option/option.js +75 -0
- package/dist/components/option/option.js.map +1 -0
- package/dist/components/page-header/page-header.d.ts +97 -0
- package/dist/components/page-header/page-header.js +258 -0
- package/dist/components/page-header/page-header.js.map +1 -0
- package/dist/components/popover/popover.d.ts +217 -0
- package/dist/components/popover/popover.js +616 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/popover/popover.styles.d.ts +8 -0
- package/dist/components/popover/popover.styles.js +299 -0
- package/dist/components/popover/popover.styles.js.map +1 -0
- package/dist/components/progress-indicator/progress-indicator.d.ts +76 -0
- package/dist/components/progress-indicator/progress-indicator.js +165 -0
- package/dist/components/progress-indicator/progress-indicator.js.map +1 -0
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +7 -0
- package/dist/components/progress-indicator/progress-indicator.styles.js +271 -0
- package/dist/components/progress-indicator/progress-indicator.styles.js.map +1 -0
- package/dist/components/radio-button/radio-button.d.ts +149 -0
- package/dist/components/radio-button/radio-button.js +370 -0
- package/dist/components/radio-button/radio-button.js.map +1 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +8 -0
- package/dist/components/radio-button/radio-button.styles.js +190 -0
- package/dist/components/radio-button/radio-button.styles.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +188 -0
- package/dist/components/radio-group/radio-group.js +380 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/search/search.d.ts +569 -0
- package/dist/components/search/search.js +1801 -0
- package/dist/components/search/search.js.map +1 -0
- package/dist/components/search/search.styles.d.ts +15 -0
- package/dist/components/search/search.styles.js +967 -0
- package/dist/components/search/search.styles.js.map +1 -0
- package/dist/components/segmented-button/segmented-button.d.ts +183 -0
- package/dist/components/segmented-button/segmented-button.js +483 -0
- package/dist/components/segmented-button/segmented-button.js.map +1 -0
- package/dist/components/segmented-button/segmented-button.styles.d.ts +19 -0
- package/dist/components/segmented-button/segmented-button.styles.js +400 -0
- package/dist/components/segmented-button/segmented-button.styles.js.map +1 -0
- package/dist/components/select/select.d.ts +259 -0
- package/dist/components/select/select.js +702 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.styles.d.ts +27 -0
- package/dist/components/select/select.styles.js +359 -0
- package/dist/components/select/select.styles.js.map +1 -0
- package/dist/components/select-field/select-field.d.ts +141 -0
- package/dist/components/select-field/select-field.js +234 -0
- package/dist/components/select-field/select-field.js.map +1 -0
- package/dist/components/side-sheet/side-sheet.d.ts +190 -0
- package/dist/components/side-sheet/side-sheet.js +592 -0
- package/dist/components/side-sheet/side-sheet.js.map +1 -0
- package/dist/components/side-sheet/side-sheet.styles.d.ts +9 -0
- package/dist/components/side-sheet/side-sheet.styles.js +352 -0
- package/dist/components/side-sheet/side-sheet.styles.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +157 -0
- package/dist/components/skeleton/skeleton.js +550 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slider/slider.d.ts +235 -0
- package/dist/components/slider/slider.js +792 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/slider/slider.styles.d.ts +6 -0
- package/dist/components/slider/slider.styles.js +492 -0
- package/dist/components/slider/slider.styles.js.map +1 -0
- package/dist/components/slider-field/slider-field.d.ts +150 -0
- package/dist/components/slider-field/slider-field.js +269 -0
- package/dist/components/slider-field/slider-field.js.map +1 -0
- package/dist/components/snackbar/snackbar.d.ts +237 -0
- package/dist/components/snackbar/snackbar.js +607 -0
- package/dist/components/snackbar/snackbar.js.map +1 -0
- package/dist/components/snackbar/snackbar.styles.d.ts +10 -0
- package/dist/components/snackbar/snackbar.styles.js +510 -0
- package/dist/components/snackbar/snackbar.styles.js.map +1 -0
- package/dist/components/switch/switch.d.ts +161 -0
- package/dist/components/switch/switch.js +470 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/switch/switch.styles.d.ts +3 -0
- package/dist/components/switch/switch.styles.js +440 -0
- package/dist/components/switch/switch.styles.js.map +1 -0
- package/dist/components/tab-view/tab-view.d.ts +303 -0
- package/dist/components/tab-view/tab-view.js +917 -0
- package/dist/components/tab-view/tab-view.js.map +1 -0
- package/dist/components/tab-view/tab-view.styles.d.ts +19 -0
- package/dist/components/tab-view/tab-view.styles.js +85 -0
- package/dist/components/tab-view/tab-view.styles.js.map +1 -0
- package/dist/components/table/table.d.ts +386 -0
- package/dist/components/table/table.js +1320 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +227 -0
- package/dist/components/table-of-contents/table-of-contents.js +963 -0
- package/dist/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/components/table-of-contents/table-of-contents.styles.d.ts +1 -0
- package/dist/components/table-of-contents/table-of-contents.styles.js +243 -0
- package/dist/components/table-of-contents/table-of-contents.styles.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +800 -0
- package/dist/components/tabs/tabs.js +2183 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabs.styles.d.ts +47 -0
- package/dist/components/tabs/tabs.styles.js +595 -0
- package/dist/components/tabs/tabs.styles.js.map +1 -0
- package/dist/components/tag/tag.d.ts +77 -0
- package/dist/components/tag/tag.js +143 -0
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/tag/tag.styles.d.ts +13 -0
- package/dist/components/tag/tag.styles.js +215 -0
- package/dist/components/tag/tag.styles.js.map +1 -0
- package/dist/components/tag-group/tag-group.d.ts +110 -0
- package/dist/components/tag-group/tag-group.js +298 -0
- package/dist/components/tag-group/tag-group.js.map +1 -0
- package/dist/components/tag-group/tag-group.styles.d.ts +8 -0
- package/dist/components/tag-group/tag-group.styles.js +66 -0
- package/dist/components/tag-group/tag-group.styles.js.map +1 -0
- package/dist/components/text-field/text-field.d.ts +159 -0
- package/dist/components/text-field/text-field.js +272 -0
- package/dist/components/text-field/text-field.js.map +1 -0
- package/dist/components/text-input/text-input-segments.d.ts +93 -0
- package/dist/components/text-input/text-input-segments.js +233 -0
- package/dist/components/text-input/text-input-segments.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +683 -0
- package/dist/components/text-input/text-input.js +2120 -0
- package/dist/components/text-input/text-input.js.map +1 -0
- package/dist/components/text-input/text-input.styles.d.ts +27 -0
- package/dist/components/text-input/text-input.styles.js +1071 -0
- package/dist/components/text-input/text-input.styles.js.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +123 -0
- package/dist/components/toolbar/toolbar.js +336 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar.styles.d.ts +10 -0
- package/dist/components/toolbar/toolbar.styles.js +156 -0
- package/dist/components/toolbar/toolbar.styles.js.map +1 -0
- package/dist/components/tooltip/tooltip-placement.d.ts +22 -0
- package/dist/components/tooltip/tooltip-placement.js +15 -0
- package/dist/components/tooltip/tooltip-placement.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +267 -0
- package/dist/components/tooltip/tooltip.js +902 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +7 -0
- package/dist/components/tooltip/tooltip.styles.js +240 -0
- package/dist/components/tooltip/tooltip.styles.js.map +1 -0
- package/dist/components/tree-view/tree-view.d.ts +264 -0
- package/dist/components/tree-view/tree-view.js +1228 -0
- package/dist/components/tree-view/tree-view.js.map +1 -0
- package/dist/description-list.css +337 -0
- package/dist/empty-state.css +70 -0
- package/dist/figure.css +381 -0
- package/dist/generated/icon-sets.d.ts +9 -0
- package/dist/generated/icon-sets.js +18 -0
- package/dist/generated/icon-sets.js.map +1 -0
- package/dist/generated/words.d.ts +161 -0
- package/dist/generated/words.js +91 -0
- package/dist/generated/words.js.map +1 -0
- package/dist/highlight/grammars/css.d.ts +3 -0
- package/dist/highlight/grammars/css.js +56 -0
- package/dist/highlight/grammars/css.js.map +1 -0
- package/dist/highlight/grammars/dart.d.ts +3 -0
- package/dist/highlight/grammars/dart.js +53 -0
- package/dist/highlight/grammars/dart.js.map +1 -0
- package/dist/highlight/grammars/javascript.d.ts +4 -0
- package/dist/highlight/grammars/javascript.js +119 -0
- package/dist/highlight/grammars/javascript.js.map +1 -0
- package/dist/highlight/grammars/json.d.ts +3 -0
- package/dist/highlight/grammars/json.js +19 -0
- package/dist/highlight/grammars/json.js.map +1 -0
- package/dist/highlight/grammars/kotlin.d.ts +3 -0
- package/dist/highlight/grammars/kotlin.js +46 -0
- package/dist/highlight/grammars/kotlin.js.map +1 -0
- package/dist/highlight/grammars/markup.d.ts +3 -0
- package/dist/highlight/grammars/markup.js +45 -0
- package/dist/highlight/grammars/markup.js.map +1 -0
- package/dist/highlight/grammars/shared.d.ts +25 -0
- package/dist/highlight/grammars/shared.js +37 -0
- package/dist/highlight/grammars/shared.js.map +1 -0
- package/dist/highlight/grammars/shell.d.ts +3 -0
- package/dist/highlight/grammars/shell.js +48 -0
- package/dist/highlight/grammars/shell.js.map +1 -0
- package/dist/highlight/grammars/swift.d.ts +3 -0
- package/dist/highlight/grammars/swift.js +46 -0
- package/dist/highlight/grammars/swift.js.map +1 -0
- package/dist/highlight/grammars/typescript.d.ts +2 -0
- package/dist/highlight/grammars/typescript.js +5 -0
- package/dist/highlight/grammars/typescript.js.map +1 -0
- package/dist/highlight/index.d.ts +104 -0
- package/dist/highlight/index.js +331 -0
- package/dist/highlight/index.js.map +1 -0
- package/dist/icons.css +107 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +10 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +100 -0
- package/dist/index.js.map +1 -0
- package/dist/link-card.css +678 -0
- package/dist/link.css +728 -0
- package/dist/link.d.ts +21 -0
- package/dist/link.js +594 -0
- package/dist/link.js.map +1 -0
- package/dist/links/index.d.ts +136 -0
- package/dist/links/index.js +404 -0
- package/dist/links/index.js.map +1 -0
- package/dist/links/node/address.js +154 -0
- package/dist/links/node/cli.js +102 -0
- package/dist/links/node/fetcher.js +267 -0
- package/dist/links/node/head.js +278 -0
- package/dist/links/node/index.d.ts +164 -0
- package/dist/links/node/index.js +26 -0
- package/dist/links/node/links.js +275 -0
- package/dist/links/node/lock.js +86 -0
- package/dist/links/node/mark.js +71 -0
- package/dist/links/node/options.js +120 -0
- package/dist/links/node/pictures.js +265 -0
- package/dist/links/node/refresh.js +28 -0
- package/dist/menu.css +97 -0
- package/dist/menubar.css +69 -0
- package/dist/page-header.css +324 -0
- package/dist/pagination.css +410 -0
- package/dist/pagination.d.ts +6 -0
- package/dist/pagination.js +256 -0
- package/dist/pagination.js.map +1 -0
- package/dist/primitives/actions.d.ts +75 -0
- package/dist/primitives/actions.js +142 -0
- package/dist/primitives/actions.js.map +1 -0
- package/dist/primitives/after-click.d.ts +8 -0
- package/dist/primitives/after-click.js +21 -0
- package/dist/primitives/after-click.js.map +1 -0
- package/dist/primitives/anchored.d.ts +134 -0
- package/dist/primitives/anchored.js +425 -0
- package/dist/primitives/anchored.js.map +1 -0
- package/dist/primitives/arc.d.ts +13 -0
- package/dist/primitives/arc.js +49 -0
- package/dist/primitives/arc.js.map +1 -0
- package/dist/primitives/arrow.d.ts +47 -0
- package/dist/primitives/arrow.js +159 -0
- package/dist/primitives/arrow.js.map +1 -0
- package/dist/primitives/auto-height.d.ts +56 -0
- package/dist/primitives/auto-height.js +150 -0
- package/dist/primitives/auto-height.js.map +1 -0
- package/dist/primitives/autofocus.d.ts +11 -0
- package/dist/primitives/autofocus.js +26 -0
- package/dist/primitives/autofocus.js.map +1 -0
- package/dist/primitives/availability.d.ts +32 -0
- package/dist/primitives/availability.js +122 -0
- package/dist/primitives/availability.js.map +1 -0
- package/dist/primitives/axes.d.ts +45 -0
- package/dist/primitives/axes.js +72 -0
- package/dist/primitives/axes.js.map +1 -0
- package/dist/primitives/behavior.d.ts +14 -0
- package/dist/primitives/behavior.js +19 -0
- package/dist/primitives/behavior.js.map +1 -0
- package/dist/primitives/calendar-date.d.ts +79 -0
- package/dist/primitives/calendar-date.js +135 -0
- package/dist/primitives/calendar-date.js.map +1 -0
- package/dist/primitives/composed.d.ts +144 -0
- package/dist/primitives/composed.js +303 -0
- package/dist/primitives/composed.js.map +1 -0
- package/dist/primitives/default-button.d.ts +49 -0
- package/dist/primitives/default-button.js +270 -0
- package/dist/primitives/default-button.js.map +1 -0
- package/dist/primitives/description.d.ts +18 -0
- package/dist/primitives/description.js +18 -0
- package/dist/primitives/description.js.map +1 -0
- package/dist/primitives/destination.d.ts +259 -0
- package/dist/primitives/destination.js +651 -0
- package/dist/primitives/destination.js.map +1 -0
- package/dist/primitives/direction.d.ts +23 -0
- package/dist/primitives/direction.js +90 -0
- package/dist/primitives/direction.js.map +1 -0
- package/dist/primitives/disabled-while-focused.d.ts +46 -0
- package/dist/primitives/disabled-while-focused.js +126 -0
- package/dist/primitives/disabled-while-focused.js.map +1 -0
- package/dist/primitives/disclosure.d.ts +9 -0
- package/dist/primitives/disclosure.js +15 -0
- package/dist/primitives/disclosure.js.map +1 -0
- package/dist/primitives/dismiss.d.ts +88 -0
- package/dist/primitives/dismiss.js +232 -0
- package/dist/primitives/dismiss.js.map +1 -0
- package/dist/primitives/field-frame.d.ts +166 -0
- package/dist/primitives/field-frame.js +358 -0
- package/dist/primitives/field-frame.js.map +1 -0
- package/dist/primitives/field-group-frame.d.ts +59 -0
- package/dist/primitives/field-group-frame.js +174 -0
- package/dist/primitives/field-group-frame.js.map +1 -0
- package/dist/primitives/field-trigger.d.ts +117 -0
- package/dist/primitives/field-trigger.js +387 -0
- package/dist/primitives/field-trigger.js.map +1 -0
- package/dist/primitives/field.d.ts +186 -0
- package/dist/primitives/field.js +349 -0
- package/dist/primitives/field.js.map +1 -0
- package/dist/primitives/file-format.d.ts +23 -0
- package/dist/primitives/file-format.js +185 -0
- package/dist/primitives/file-format.js.map +1 -0
- package/dist/primitives/file-item-holder.d.ts +45 -0
- package/dist/primitives/file-item-holder.js +39 -0
- package/dist/primitives/file-item-holder.js.map +1 -0
- package/dist/primitives/focus-order.d.ts +11 -0
- package/dist/primitives/focus-order.js +11 -0
- package/dist/primitives/focus-order.js.map +1 -0
- package/dist/primitives/focus-ring.d.ts +76 -0
- package/dist/primitives/focus-ring.js +230 -0
- package/dist/primitives/focus-ring.js.map +1 -0
- package/dist/primitives/follow.d.ts +65 -0
- package/dist/primitives/follow.js +283 -0
- package/dist/primitives/follow.js.map +1 -0
- package/dist/primitives/form-disabled.d.ts +20 -0
- package/dist/primitives/form-disabled.js +46 -0
- package/dist/primitives/form-disabled.js.map +1 -0
- package/dist/primitives/form-says.d.ts +33 -0
- package/dist/primitives/form-says.js +45 -0
- package/dist/primitives/form-says.js.map +1 -0
- package/dist/primitives/forward.d.ts +13 -0
- package/dist/primitives/forward.js +28 -0
- package/dist/primitives/forward.js.map +1 -0
- package/dist/primitives/glyph-mirror.d.ts +77 -0
- package/dist/primitives/glyph-mirror.js +211 -0
- package/dist/primitives/glyph-mirror.js.map +1 -0
- package/dist/primitives/glyph-pending.d.ts +17 -0
- package/dist/primitives/glyph-pending.js +91 -0
- package/dist/primitives/glyph-pending.js.map +1 -0
- package/dist/primitives/glyph.d.ts +53 -0
- package/dist/primitives/glyph.js +161 -0
- package/dist/primitives/glyph.js.map +1 -0
- package/dist/primitives/group-item.d.ts +128 -0
- package/dist/primitives/group-item.js +334 -0
- package/dist/primitives/group-item.js.map +1 -0
- package/dist/primitives/hidden.d.ts +2 -0
- package/dist/primitives/hidden.js +23 -0
- package/dist/primitives/hidden.js.map +1 -0
- package/dist/primitives/host-aria.d.ts +8 -0
- package/dist/primitives/host-aria.js +18 -0
- package/dist/primitives/host-aria.js.map +1 -0
- package/dist/primitives/index.d.ts +59 -0
- package/dist/primitives/index.js +189 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/primitives/indicator-drag.d.ts +90 -0
- package/dist/primitives/indicator-drag.js +207 -0
- package/dist/primitives/indicator-drag.js.map +1 -0
- package/dist/primitives/interactive.d.ts +13 -0
- package/dist/primitives/interactive.js +67 -0
- package/dist/primitives/interactive.js.map +1 -0
- package/dist/primitives/item-row.d.ts +34 -0
- package/dist/primitives/item-row.js +76 -0
- package/dist/primitives/item-row.js.map +1 -0
- package/dist/primitives/item-update.d.ts +2 -0
- package/dist/primitives/item-update.js +12 -0
- package/dist/primitives/item-update.js.map +1 -0
- package/dist/primitives/kept-length.d.ts +34 -0
- package/dist/primitives/kept-length.js +154 -0
- package/dist/primitives/kept-length.js.map +1 -0
- package/dist/primitives/keyboard-convention.d.ts +30 -0
- package/dist/primitives/keyboard-convention.js +88 -0
- package/dist/primitives/keyboard-convention.js.map +1 -0
- package/dist/primitives/label-lines.d.ts +12 -0
- package/dist/primitives/label-lines.js +34 -0
- package/dist/primitives/label-lines.js.map +1 -0
- package/dist/primitives/layout-scale.d.ts +18 -0
- package/dist/primitives/layout-scale.js +35 -0
- package/dist/primitives/layout-scale.js.map +1 -0
- package/dist/primitives/link.d.ts +147 -0
- package/dist/primitives/link.js +204 -0
- package/dist/primitives/link.js.map +1 -0
- package/dist/primitives/locale-date.d.ts +132 -0
- package/dist/primitives/locale-date.js +508 -0
- package/dist/primitives/locale-date.js.map +1 -0
- package/dist/primitives/missing-value.d.ts +16 -0
- package/dist/primitives/missing-value.js +31 -0
- package/dist/primitives/missing-value.js.map +1 -0
- package/dist/primitives/modal.d.ts +38 -0
- package/dist/primitives/modal.js +175 -0
- package/dist/primitives/modal.js.map +1 -0
- package/dist/primitives/native-text.d.ts +51 -0
- package/dist/primitives/native-text.js +77 -0
- package/dist/primitives/native-text.js.map +1 -0
- package/dist/primitives/natural-height.d.ts +21 -0
- package/dist/primitives/natural-height.js +36 -0
- package/dist/primitives/natural-height.js.map +1 -0
- package/dist/primitives/option-list.d.ts +314 -0
- package/dist/primitives/option-list.js +1098 -0
- package/dist/primitives/option-list.js.map +1 -0
- package/dist/primitives/overlay-focus.d.ts +48 -0
- package/dist/primitives/overlay-focus.js +152 -0
- package/dist/primitives/overlay-focus.js.map +1 -0
- package/dist/primitives/placement.d.ts +131 -0
- package/dist/primitives/placement.js +144 -0
- package/dist/primitives/placement.js.map +1 -0
- package/dist/primitives/places.d.ts +44 -0
- package/dist/primitives/places.js +98 -0
- package/dist/primitives/places.js.map +1 -0
- package/dist/primitives/press.d.ts +90 -0
- package/dist/primitives/press.js +153 -0
- package/dist/primitives/press.js.map +1 -0
- package/dist/primitives/report.d.ts +17 -0
- package/dist/primitives/report.js +34 -0
- package/dist/primitives/report.js.map +1 -0
- package/dist/primitives/ripple.d.ts +40 -0
- package/dist/primitives/ripple.js +70 -0
- package/dist/primitives/ripple.js.map +1 -0
- package/dist/primitives/roving.d.ts +41 -0
- package/dist/primitives/roving.js +71 -0
- package/dist/primitives/roving.js.map +1 -0
- package/dist/primitives/selection.d.ts +134 -0
- package/dist/primitives/selection.js +287 -0
- package/dist/primitives/selection.js.map +1 -0
- package/dist/primitives/separation.d.ts +28 -0
- package/dist/primitives/separation.js +96 -0
- package/dist/primitives/separation.js.map +1 -0
- package/dist/primitives/shared-choice.d.ts +33 -0
- package/dist/primitives/shared-choice.js +110 -0
- package/dist/primitives/shared-choice.js.map +1 -0
- package/dist/primitives/sheet.d.ts +63 -0
- package/dist/primitives/sheet.js +139 -0
- package/dist/primitives/sheet.js.map +1 -0
- package/dist/primitives/sheets.d.ts +8 -0
- package/dist/primitives/sheets.js +96 -0
- package/dist/primitives/sheets.js.map +1 -0
- package/dist/primitives/states.d.ts +33 -0
- package/dist/primitives/states.js +30 -0
- package/dist/primitives/states.js.map +1 -0
- package/dist/primitives/system-watch.d.ts +9 -0
- package/dist/primitives/system-watch.js +29 -0
- package/dist/primitives/system-watch.js.map +1 -0
- package/dist/primitives/target.d.ts +21 -0
- package/dist/primitives/target.js +79 -0
- package/dist/primitives/target.js.map +1 -0
- package/dist/primitives/values.d.ts +6 -0
- package/dist/primitives/values.js +22 -0
- package/dist/primitives/values.js.map +1 -0
- package/dist/primitives/visibility.d.ts +12 -0
- package/dist/primitives/visibility.js +50 -0
- package/dist/primitives/visibility.js.map +1 -0
- package/dist/primitives/words.d.ts +81 -0
- package/dist/primitives/words.js +236 -0
- package/dist/primitives/words.js.map +1 -0
- package/dist/prose.css +1917 -0
- package/dist/registry.d.ts +182 -0
- package/dist/registry.js +2 -0
- package/dist/registry.js.map +1 -0
- package/dist/shape.css +21 -0
- package/dist/skeleton.css +428 -0
- package/dist/steps.css +231 -0
- package/dist/steps.d.ts +6 -0
- package/dist/steps.js +156 -0
- package/dist/steps.js.map +1 -0
- package/dist/styles/icons.d.ts +62 -0
- package/dist/styles/icons.js +237 -0
- package/dist/styles/icons.js.map +1 -0
- package/dist/styles/product-text.d.ts +66 -0
- package/dist/styles/product-text.js +114 -0
- package/dist/styles/product-text.js.map +1 -0
- package/dist/styles/registered-properties.d.ts +6 -0
- package/dist/styles/registered-properties.js +68 -0
- package/dist/styles/registered-properties.js.map +1 -0
- package/dist/styles/shape.d.ts +59 -0
- package/dist/styles/shape.js +95 -0
- package/dist/styles/shape.js.map +1 -0
- package/dist/systems/cupertino.css +8793 -0
- package/dist/systems/m3-expressive-like.css +8786 -0
- package/dist/systems/m3-like.css +8748 -0
- package/dist/table-of-contents.css +482 -0
- package/dist/table.css +902 -0
- package/dist/tanrei.bundle.js +26644 -0
- package/dist/tanrei.bundle.js.map +7 -0
- package/dist/text.css +104 -0
- package/dist/timeline.css +410 -0
- package/dist/timeline.d.ts +6 -0
- package/dist/timeline.js +176 -0
- package/dist/timeline.js.map +1 -0
- package/dist/tokens.css +8801 -0
- package/dist/tree-view.css +797 -0
- package/dist/words.d.ts +2 -0
- package/dist/words.js +6 -0
- package/dist/words.js.map +1 -0
- package/package.json +132 -3
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import { type SeparationProp } from '../../primitives/index.js';
|
|
3
|
+
import type { TanreiInputBoxSizeRegistry, TanreiInputBoxVariantRegistry } from '../../registry.js';
|
|
4
|
+
import '../button/button.js';
|
|
5
|
+
import '../loading-indicator/loading-indicator.js';
|
|
6
|
+
import '../option/option.js';
|
|
7
|
+
/** The three looks of the input box (`comp.input-box`): a filled box with no label of its own (`stacked`: the label above is its Field's), or the label floating inside a `filled` or `outlined` box. A design system may leave some out or add values. */
|
|
8
|
+
export type TanreiComboboxVariant = keyof TanreiInputBoxVariantRegistry;
|
|
9
|
+
/** The container's minimum height: the box's `medium` and `large` (`small` is a size of the box this control does not offer). A design system may add values. */
|
|
10
|
+
export type TanreiComboboxSize = Exclude<keyof TanreiInputBoxSizeRegistry, 'small'>;
|
|
11
|
+
/** How a group of options is told from what is next to it: the design system's answer (auto), a line, or empty space. */
|
|
12
|
+
export type TanreiComboboxSeparation = SeparationProp;
|
|
13
|
+
/** Who decides which options answer the text: the combobox (`contains`), or the product (`none`). */
|
|
14
|
+
export type TanreiComboboxFilter = 'contains' | 'none';
|
|
15
|
+
/** What the product's source of options is doing. */
|
|
16
|
+
export type TanreiComboboxStatus = 'idle' | 'loading' | 'error';
|
|
17
|
+
/** Why the list closed (CMB-27 … CMB-30). The web has no back of its own, so it never sends `back`. */
|
|
18
|
+
export type TanreiComboboxToggleReason = 'select' | 'commit' | 'escape' | 'back' | 'outside' | 'press' | 'tab' | 'focus-out' | 'anchor-hidden' | 'empty';
|
|
19
|
+
/** `toggle`'s detail: the new `open`, and for a close its reason. */
|
|
20
|
+
export interface TanreiComboboxToggleDetail {
|
|
21
|
+
open: boolean;
|
|
22
|
+
reason?: TanreiComboboxToggleReason;
|
|
23
|
+
}
|
|
24
|
+
/** `change`'s and `action`'s detail: the committed value, and the text the input now shows. */
|
|
25
|
+
export interface TanreiComboboxChangeDetail {
|
|
26
|
+
value: string;
|
|
27
|
+
inputValue: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Lets people find one value by typing: a box that looks and measures like a text input, with a list of options that
|
|
31
|
+
* narrows as they type and that they choose from, or, where the product allows it, a value of their own. The bare
|
|
32
|
+
* control: it has no label row and no message of its own.
|
|
33
|
+
*
|
|
34
|
+
* Contract: specs/combobox.spec.json. The options are `<tanrei-option>` children, optionally in
|
|
35
|
+
* `<tanrei-option-group>` elements (the pair a select holds too); the combobox reads them — and reads them again when
|
|
36
|
+
* they change — and renders the rows itself. A `<slot>` among its children stands for the elements assigned to it, so
|
|
37
|
+
* that an element composed around it passes its own children on as the options. Every visual value is a token: the box is
|
|
38
|
+
* drawn from `--tanrei-comp-input-box-*`, the one set every input box is drawn from (CMB-63), and the list and the
|
|
39
|
+
* status row from `--tanrei-comp-combobox-*` — the list's hold the menu's values and the status row's the search's, in
|
|
40
|
+
* every shipped design system.
|
|
41
|
+
*
|
|
42
|
+
* ```html
|
|
43
|
+
* <tanrei-field label="City">
|
|
44
|
+
* <tanrei-combobox name="city" value="tokyo">
|
|
45
|
+
* <tanrei-option value="kyoto">Kyoto</tanrei-option>
|
|
46
|
+
* <tanrei-option value="tokyo">Tokyo</tanrei-option>
|
|
47
|
+
* </tanrei-combobox>
|
|
48
|
+
* </tanrei-field>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* In a form it is framed: by a Field, as above, or as `<tanrei-combobox-field>`, which is that pair as one element.
|
|
52
|
+
* The Field gives it its name, its description and its required, invalid and disabled states, and draws the label
|
|
53
|
+
* row, the requirement mark, the help and the error; the combobox says back that it draws the label itself where its
|
|
54
|
+
* look floats one (`filled`, `outlined`), where its input text starts and ends, and that it is drawn focused for as
|
|
55
|
+
* long as its list is open (`src/primitives/field.ts`). Bare — a filter in a toolbar, a cell of a table — it is named
|
|
56
|
+
* by its own `label`, which a stacked combobox does not draw.
|
|
57
|
+
*
|
|
58
|
+
* It holds two things: `value`, the committed choice, and `inputValue`, the text in the input. Typing changes the text,
|
|
59
|
+
* opens the list and filters it (`filter="contains"`; with `filter="none"` the product filters, on `input`); a press on
|
|
60
|
+
* an option or Enter on the active one chooses; leaving the box resolves the text — a typed label chooses its
|
|
61
|
+
* option, any other text is kept as the value (`allow-custom-value`) or given up. The value changes only by a choice,
|
|
62
|
+
* a commit or the clear button.
|
|
63
|
+
*
|
|
64
|
+
* It is a block as wide as its place, with no width of its own. It is a form-associated element: it takes `name`,
|
|
65
|
+
* submits `value` (never an uncommitted text), resets to the `value` attribute, is restored on navigation, follows
|
|
66
|
+
* `<fieldset disabled>` and reports `valueMissing` while the Field that frames it says it is required and `value` is
|
|
67
|
+
* empty. It never validates beyond that, and is never required by itself.
|
|
68
|
+
*
|
|
69
|
+
* The pattern is the editable combobox with a list box: focus stays in the input while the list is open and one
|
|
70
|
+
* option at most is the active one (`aria-activedescendant`). While an input method composes, every key is its own.
|
|
71
|
+
*
|
|
72
|
+
* @tag tanrei-combobox
|
|
73
|
+
* @slot - The options: `<tanrei-option>` elements, optionally in `<tanrei-option-group>` elements. They are read, not drawn in place. A `<slot>` element here stands for the elements assigned to it.
|
|
74
|
+
* @slot leading-icon - A glyph at the start of the container that stands for the combobox whatever is chosen (a magnifier before a field that searches people). It takes the place of the chosen option's own glyph. A glyph the icon set flags is mirrored in right-to-left; `data-mirror="auto | always | never"` on the element decides for one use.
|
|
75
|
+
* @csspart container - The combobox's box: the list's anchor.
|
|
76
|
+
* @csspart outline - A stacked combobox's inner line, or an outlined one's border.
|
|
77
|
+
* @csspart active-indicator - The line along the bottom of a filled combobox.
|
|
78
|
+
* @csspart label - The label floating in a filled or an outlined combobox.
|
|
79
|
+
* @csspart requirement-label - The required asterisk after a floating label.
|
|
80
|
+
* @csspart input - The native `<input>`: the combobox.
|
|
81
|
+
* @csspart leading-icon - The box of the glyph at the start of the container.
|
|
82
|
+
* @csspart clear-button - The clear button, a `<tanrei-button>`.
|
|
83
|
+
* @csspart chevron - The chevron's button at the end of the container.
|
|
84
|
+
* @csspart list - The raised sheet that holds the options.
|
|
85
|
+
* @csspart option - An option's row.
|
|
86
|
+
* @csspart option-label - An option's label.
|
|
87
|
+
* @csspart option-supporting-text - An option's supporting text.
|
|
88
|
+
* @csspart option-leading-icon - The box of an option's glyph.
|
|
89
|
+
* @csspart mark - The check of the chosen option.
|
|
90
|
+
* @csspart group - A group of options.
|
|
91
|
+
* @csspart group-title - A group's title.
|
|
92
|
+
* @csspart divider - The line between two groups while the separation is divider.
|
|
93
|
+
* @csspart status - The status row after the options.
|
|
94
|
+
* @attr {string} form - The id of the form the combobox belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
|
|
95
|
+
* @fires input - The person changed the text: the native, composed `input` of the text element as they type, delete, paste or an input method commits; one more when the clear button empties the text and when Escape restores it. `inputValue` is already the new text. Never fired when the product sets `inputValue` or `value`, or when a choice writes its label. The product's cue to load options.
|
|
96
|
+
* @fires {CustomEvent<TanreiComboboxChangeDetail>} change - The committed value changed by the person: an option was chosen, a custom text was committed, or the value was cleared; `value` is already the new one. `detail.value` and `detail.inputValue`. Composed and bubbling. Never fired when the product sets `value`, when the chosen option is chosen again, or while the person only types or moves through the list.
|
|
97
|
+
* @fires {CustomEvent<TanreiComboboxToggleDetail>} toggle - The list was opened or closed by the person, or closed by having nothing left to show; `open` is already the new one. `detail.open`, and for a close `detail.reason`: `select`, `commit`, `escape`, `outside`, `press`, `tab`, `focus-out`, `anchor-hidden` or `empty`. After a choice it follows `change`. Composed and not bubbling, as the platform's own `toggle`: heard on the element, and on an element composed around it, and by no ancestor. Never fired when the product sets `open`.
|
|
98
|
+
* @fires {CustomEvent<TanreiComboboxChangeDetail>} action - The person pressed Enter with no option active and the text was committed; after any `change` it caused. Cancelable: unless it is cancelled, the form the combobox stands in is then asked to submit.
|
|
99
|
+
*/
|
|
100
|
+
export declare class TanreiCombobox extends LitElement {
|
|
101
|
+
private readonly availability;
|
|
102
|
+
static styles: import("lit").CSSResult;
|
|
103
|
+
static formAssociated: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Its documented parts, once: what an element composed around it exports (src/primitives/composed.ts). Held equal to
|
|
106
|
+
* the `@csspart` lines above by src/primitives/composed.test.ts.
|
|
107
|
+
*
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
static readonly parts: readonly string[];
|
|
111
|
+
static properties: PropertyDeclarations;
|
|
112
|
+
/** The look, as the text inputs beside it: `stacked` is a filled box that draws no label — the label above it is the row of the Field that frames it; `filled` and `outlined` float the label inside the box. Use one style per form. A value the combobox does not know by name is laid out as stacked. Reflected. */
|
|
113
|
+
variant: TanreiComboboxVariant;
|
|
114
|
+
/** The container's minimum height: `medium` or `large` (48 / 56 in the default system), the text input's two sizes. The hit area always meets the minimum target. Reflected. */
|
|
115
|
+
size: TanreiComboboxSize;
|
|
116
|
+
/** The committed choice: the chosen option's value, or, with `allowCustomValue`, a text the person typed that names no option. Empty while nothing is chosen. The `value` attribute is the value a form reset returns to. */
|
|
117
|
+
value: string;
|
|
118
|
+
/** The text in the input (`input-value`). The combobox writes it as the person types and when a value is chosen or restored; the product may set it, and reads it from `input` to load options. */
|
|
119
|
+
get inputValue(): string;
|
|
120
|
+
set inputValue(text: string);
|
|
121
|
+
/** The text the element holds: what the product set, what the combobox wrote, or the person's last edit as the element took it. */
|
|
122
|
+
private text;
|
|
123
|
+
/** What the native element held when the element last wrote to it or took from it; undefined until it has. */
|
|
124
|
+
private nativeSeen;
|
|
125
|
+
/** The name the value is submitted under in a form. Reflected. */
|
|
126
|
+
name: string;
|
|
127
|
+
/** The combobox's own accessible name, for a combobox no Field frames or one whose visible label is elsewhere; a filled or an outlined combobox draws it floating. Inside a Field leave it empty: the Field's label names the combobox, and its own would win. */
|
|
128
|
+
label: string;
|
|
129
|
+
/** Does not draw the floating label of a filled or an outlined combobox, which stays the accessible name (`label-hidden`). Inside a Field, hide the label on the Field. */
|
|
130
|
+
labelHidden: boolean;
|
|
131
|
+
/** A hint shown while the input is empty and the label is not in the input line. Never a replacement for `label`. */
|
|
132
|
+
placeholder: string;
|
|
133
|
+
/** Puts the combobox in the error condition: its box is drawn from its error parts and it is exposed as invalid. Inside a Field, set `error` on the Field, which also shows the words. The combobox never sets this itself. */
|
|
134
|
+
error: boolean;
|
|
135
|
+
/** Disables the combobox: it takes no focus, cannot be edited, does not open and is left out of form submission. Inside a Field, disable the Field, so that its label follows. */
|
|
136
|
+
disabled: boolean;
|
|
137
|
+
/** The value is shown, can be focused, selected and copied, and is submitted, but cannot be changed: the list does not open and neither the chevron nor the clear button is drawn. The attribute is `readonly`. */
|
|
138
|
+
readOnly: boolean;
|
|
139
|
+
/** Whether the list is shown. The combobox opens and closes itself and emits `toggle`; the product may also set it (to open on focus, for one). Ignored while the combobox is disabled or read-only or has nothing to show. Reflected. */
|
|
140
|
+
open: boolean;
|
|
141
|
+
/** False: the value is always one of the options, and a text that names none is given up when the person leaves. True: the options are suggestions, and a text that names none becomes the value as typed (`allow-custom-value`). Reflected. */
|
|
142
|
+
allowCustomValue: boolean;
|
|
143
|
+
/** Who decides which options answer the text. `contains`: the combobox shows the options whose label contains what was typed, ignoring case, width and marks, and marks the match. `none`: it shows every option it is given and the product filters, on `input`. Reflected. */
|
|
144
|
+
filter: TanreiComboboxFilter;
|
|
145
|
+
/** Draws no chevron (`no-chevron`: the spec's `chevron`, inverted, because a boolean attribute cannot default to true): for a field whose suggestions exist only for what was typed. The list then opens by typing and by the arrow keys alone. Reflected. */
|
|
146
|
+
noChevron: boolean;
|
|
147
|
+
/** Draws a clear button while the text is not empty, for a combobox whose value may be none. Without it, emptying the text and leaving the field clears the value. Reflected. */
|
|
148
|
+
clearable: boolean;
|
|
149
|
+
/** The clear button's accessible name, in the product's language (`clear-label`). Required while `clearable` is true. */
|
|
150
|
+
clearLabel: string;
|
|
151
|
+
/** What the product's source of options is doing: `idle`, `loading` (the status row shows a loading indicator and the list is marked busy) or `error` (the status row shows `statusText` as an error, announced at once). Reflected. */
|
|
152
|
+
status: TanreiComboboxStatus;
|
|
153
|
+
/** The status row's text, in the product's language (`status-text`), announced when it changes: a count, that loading failed, or, while loading, the loading indicator's name. */
|
|
154
|
+
statusText: string;
|
|
155
|
+
/** Shown in the list while the text names nothing the combobox can show, `allowCustomValue` is false and no status is set (`empty-text`): this instance's words, else the product's (`setWords({ emptyText })`). Tanrei has none: without them no such row is drawn. */
|
|
156
|
+
emptyText: string;
|
|
157
|
+
/** How a group of options is told from what is next to it: `divider`, `gap`, or `auto` for the design system's answer (`--tanrei-comp-combobox-separation`). */
|
|
158
|
+
separation: TanreiComboboxSeparation;
|
|
159
|
+
/** For tests and fixtures: draws the open list in place below the field — inside its positioned ancestor, which stands for the window — not in the top layer; it then answers no dismissal. */
|
|
160
|
+
inline: boolean;
|
|
161
|
+
/** Whether the leading-icon slot has content. */
|
|
162
|
+
protected hasLeading: boolean;
|
|
163
|
+
/** CMB-15: the input has focus, however it was gained. */
|
|
164
|
+
protected focused: boolean;
|
|
165
|
+
/** Set by an ancestor `<fieldset disabled>` (the element's `formDisabledCallback`). */
|
|
166
|
+
protected formDisabled: boolean;
|
|
167
|
+
private readonly internals;
|
|
168
|
+
/** What it tells its form, said where an element composed around it hears it (src/primitives/form-says.ts). */
|
|
169
|
+
private readonly says;
|
|
170
|
+
/** Whether the list is presented: open, usable, and beside a container in the page. */
|
|
171
|
+
private presented;
|
|
172
|
+
private unregister;
|
|
173
|
+
/** The text the combobox itself wrote or took from the person last: another `inputValue` is the product's. */
|
|
174
|
+
private ownText;
|
|
175
|
+
/** The value the combobox committed or took from the product last: another `value` is the product's. */
|
|
176
|
+
private ownValue;
|
|
177
|
+
/** The person is editing: the text was changed since the last commit (CMB-17). */
|
|
178
|
+
private editing;
|
|
179
|
+
/** CMB-25: the text the list is filtered by; null shows every option (a list opened by an arrow key or the chevron). */
|
|
180
|
+
private query;
|
|
181
|
+
/** The text was last taken during a composition: its end makes the first match active (CMB-26). */
|
|
182
|
+
private composedText;
|
|
183
|
+
/** The key that is moving focus now is Tab: a list it closes says so (CMB-29). */
|
|
184
|
+
private tabbing;
|
|
185
|
+
/** CMB-56: sizes and variants a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
|
|
186
|
+
private readonly axes;
|
|
187
|
+
/** CMB-44: where style queries are missing the system's separation is read by script, again when the system is switched. */
|
|
188
|
+
private readonly system;
|
|
189
|
+
/**
|
|
190
|
+
* CMB-61: the combobox's side of the exchange with the Field that frames it (src/primitives/field.ts). It takes the
|
|
191
|
+
* Field's name, description and states, whether the label is hidden and whether an asterisk follows it; and it says
|
|
192
|
+
* what only it knows — that it draws the label, how far its input text is inset, and that it is drawn focused while
|
|
193
|
+
* its list is open. It has an error condition of its own (CMB-10). No Field: it is drawn as a bare combobox.
|
|
194
|
+
*/
|
|
195
|
+
private readonly frame;
|
|
196
|
+
/** The Field's answer changed since the last update: the floating label may have other lines (CMB-8). */
|
|
197
|
+
private frameChanged;
|
|
198
|
+
/** CMB-31: the options, read from the children and read again when they change (src/primitives/option-list.ts). */
|
|
199
|
+
private readonly options$;
|
|
200
|
+
/** CMB-24, CMB-26, CMB-27, CMB-40, CMB-41: the active option, the keys that move it, the press and the choice. */
|
|
201
|
+
private readonly list;
|
|
202
|
+
/** CMB-22, CMB-23, CMB-58: where the list is — the anchored surface a popover is drawn on, as wide as the container. */
|
|
203
|
+
private readonly anchored;
|
|
204
|
+
/** CMB-30: Escape pressed elsewhere, a press outside and focus arriving elsewhere (src/primitives/dismiss.ts). */
|
|
205
|
+
private readonly dismiss;
|
|
206
|
+
/** CMB-16: the text and the native element kept in step without breaking an input method (src/primitives/native-text.ts). */
|
|
207
|
+
private readonly native;
|
|
208
|
+
/** CMB-8: a floating label that does not fit on one line is given the room its lines take. */
|
|
209
|
+
private readonly floating;
|
|
210
|
+
/** CMB-54: the glyphs of the two slots, the chosen option's own and the options' are marked when the icon set mirrors them. */
|
|
211
|
+
private readonly mirror;
|
|
212
|
+
/** A glyph the combobox draws by name is drawn once the icon set can draw it; until then nothing stands in its place. */
|
|
213
|
+
private readonly glyphs;
|
|
214
|
+
constructor();
|
|
215
|
+
private get container();
|
|
216
|
+
private get input();
|
|
217
|
+
/** Disabled by its own `disabled`, a fieldset's, or the Field's or the field group's that frames it (CMB-46). */
|
|
218
|
+
private get inert_();
|
|
219
|
+
/** How the variant is laid out: filled and outlined by name, every other value as stacked (CMB-56). */
|
|
220
|
+
private get layout();
|
|
221
|
+
/** CMB-56: a filter the combobox does not define is contains, a status idle. */
|
|
222
|
+
private get filterNow();
|
|
223
|
+
private get statusNow();
|
|
224
|
+
/** CMB-17, CMB-57: the chosen option — the first, in order and across groups, whose value equals `value`; never one whose value is empty. */
|
|
225
|
+
private get chosen();
|
|
226
|
+
/** CMB-17: the text of the committed value: the chosen option's label; a value that names no option itself where a custom value is allowed, and nothing otherwise. */
|
|
227
|
+
private get committedText();
|
|
228
|
+
private folded;
|
|
229
|
+
private filtered;
|
|
230
|
+
/** An option's label as it is compared, folded once for as long as the options stay. */
|
|
231
|
+
private foldedLabel;
|
|
232
|
+
/** The folded text the combobox filters by now; empty while it shows every option. */
|
|
233
|
+
private get needle();
|
|
234
|
+
/** CMB-25: the options shown now, in their order: every one, or, while the combobox filters, those whose label contains the text. */
|
|
235
|
+
private get shown();
|
|
236
|
+
/** CMB-60: the product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
237
|
+
private readonly words;
|
|
238
|
+
/** CMB-12: the accessible name — its own label, else the label of the Field that frames it. */
|
|
239
|
+
private get name_();
|
|
240
|
+
/** CMB-10: in the error condition — its own `error`, or its Field's (FLD-8). */
|
|
241
|
+
private get inError();
|
|
242
|
+
/** CMB-8: the label floats in the box — a filled or an outlined combobox with a name, unless its own `labelHidden` or its Field's says to draw none. */
|
|
243
|
+
private get labelled();
|
|
244
|
+
/** CMB-7: an asterisk follows the floating label — the Field's answer (FLD-25); never outside a Field. */
|
|
245
|
+
private get asterisked();
|
|
246
|
+
/** CMB-18: the glyph at the start of the container — the slot's, or else the chosen option's own while the person is not editing. */
|
|
247
|
+
private get leading();
|
|
248
|
+
/** CMB-19: the chevron is drawn. */
|
|
249
|
+
private get chevronShown();
|
|
250
|
+
/** CMB-20: the clear button is drawn. */
|
|
251
|
+
private get clearShown();
|
|
252
|
+
/**
|
|
253
|
+
* CMB-61: what the combobox says to the Field that frames it. That it draws the label while its look floats one — its
|
|
254
|
+
* name, or nothing while the label is hidden; the Field draws no label row either way. How far its input text
|
|
255
|
+
* stands from its start edge and the padding it keeps at its end edge, as lengths of the box's tokens (`INSET`, in the
|
|
256
|
+
* styles). And that it is drawn focused for as long as its list is open, whether or not it has focus (CMB-15).
|
|
257
|
+
*/
|
|
258
|
+
private get saysToField();
|
|
259
|
+
/** CMB-32: the status row has something of the product's to show. */
|
|
260
|
+
private get statusShown();
|
|
261
|
+
/** CMB-32: nothing matched, and nothing of the product's stands in the status row's place: the empty text is asked for. */
|
|
262
|
+
private get emptyAsked();
|
|
263
|
+
/** CMB-32, CMB-60: what says that nothing matched — the instance's emptyText, else the product's words, else nothing. */
|
|
264
|
+
private get emptyWords();
|
|
265
|
+
/** CMB-32: nothing matched, and the combobox says so in the status row's place. */
|
|
266
|
+
private get emptyShown();
|
|
267
|
+
/** CMB-21, CMB-57: there is something to show: an option after filtering, a status row or the empty text. */
|
|
268
|
+
private get something();
|
|
269
|
+
/** CMB-21, CMB-46, CMB-47, CMB-57: whether the list can be shown at all. */
|
|
270
|
+
private get usable();
|
|
271
|
+
/** CMB-26: the option typing makes active: the first shown that is not disabled, or none where Enter keeps the text. */
|
|
272
|
+
private found;
|
|
273
|
+
/** CMB-29: the first option that is not disabled whose whole label is `text`, compared as the filter compares and ignoring the spaces around it. */
|
|
274
|
+
private named;
|
|
275
|
+
/** The form it belongs to, if any. */
|
|
276
|
+
get form(): HTMLFormElement | null;
|
|
277
|
+
/** The native constraint validity: `valueMissing` while its Field says the combobox is required and its value is empty. */
|
|
278
|
+
get validity(): ValidityState;
|
|
279
|
+
get validationMessage(): string;
|
|
280
|
+
get willValidate(): boolean;
|
|
281
|
+
checkValidity(): boolean;
|
|
282
|
+
reportValidity(): boolean;
|
|
283
|
+
/** Moves focus to the input: the combobox's one stop in the focus order (the clear button, while shown, is the next). */
|
|
284
|
+
focus(options?: FocusOptions): void;
|
|
285
|
+
blur(): void;
|
|
286
|
+
/** Selects the text in the input. */
|
|
287
|
+
select(): void;
|
|
288
|
+
formResetCallback(): void;
|
|
289
|
+
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
290
|
+
formDisabledCallback(disabled: boolean): void;
|
|
291
|
+
/** The combobox writes the text itself: no `input` is fired, and the element shows it at once (never into a composition). */
|
|
292
|
+
private write;
|
|
293
|
+
/** CMB-16, CMB-31: the text is shown in the native element — never into a composition — and what the element then holds is what was seen of it. */
|
|
294
|
+
private show;
|
|
295
|
+
/** The person is no longer editing: the text is the committed value's, and the list shows every option again. */
|
|
296
|
+
private settle;
|
|
297
|
+
/**
|
|
298
|
+
* CMB-16, CMB-21, CMB-25, CMB-26: the person changed the text. The native `input` is the combobox's event — it is
|
|
299
|
+
* composed and leaves the shadow root by itself. The list is filtered by the text, opened where there is something to
|
|
300
|
+
* show, and the first match becomes the active option — none where a custom value is allowed or an input method is
|
|
301
|
+
* composing, so that Enter keeps what was typed.
|
|
302
|
+
*/
|
|
303
|
+
private took;
|
|
304
|
+
private onInput;
|
|
305
|
+
/** CMB-27, CMB-28, CMB-29: `value` is committed with the text that stands for it; `change` once while it differs. */
|
|
306
|
+
private commit;
|
|
307
|
+
/**
|
|
308
|
+
* CMB-21, CMB-30: `toggle` — composed, so that it leaves the shadow root of an element composed around the combobox
|
|
309
|
+
* with that element as its target, and not bubbling, as the platform's own `toggle`: no ancestor hears it.
|
|
310
|
+
*/
|
|
311
|
+
private toggled;
|
|
312
|
+
/**
|
|
313
|
+
* CMB-29: resolves the text. An empty text makes the value empty; the whole label of an option that is not disabled
|
|
314
|
+
* chooses the first such option; any other text becomes the value where a custom value is allowed. Returns false
|
|
315
|
+
* where the text names nothing and no custom value is allowed: the caller keeps it (Enter) or gives it up (leaving).
|
|
316
|
+
*/
|
|
317
|
+
private resolve;
|
|
318
|
+
/** CMB-29, CMB-30: the text of the committed value is written back. Returns whether the text changed. */
|
|
319
|
+
private restore;
|
|
320
|
+
/**
|
|
321
|
+
* CMB-21: the person opens the list. Opened by an arrow key or the chevron it shows every option and the chosen one
|
|
322
|
+
* is active (CMB-26); opened by typing it is filtered and `active` is. `open` is true before `toggle` is fired; the
|
|
323
|
+
* list is presented by the render that follows.
|
|
324
|
+
*/
|
|
325
|
+
private openList;
|
|
326
|
+
/** CMB-30: the list closes, for `reason`. `open` is false, and the list no longer takes input, before `toggle` is fired. */
|
|
327
|
+
private closeList;
|
|
328
|
+
/** CMB-27: the person confirmed `option`. `value` is the new one before `change`; the list then closes, so `toggle` follows. */
|
|
329
|
+
private choose;
|
|
330
|
+
/** CMB-22, CMB-24: into the overlay layer beside the container. Focus stays where it is. */
|
|
331
|
+
private present;
|
|
332
|
+
/** CMB-30, CMB-45: out of it, fading; closed or closing it takes no pointer input. */
|
|
333
|
+
private withdraw;
|
|
334
|
+
private onKeyDown;
|
|
335
|
+
/**
|
|
336
|
+
* CMB-27, CMB-28: Enter. With an option active it chooses it and does nothing else. With none it commits the text —
|
|
337
|
+
* and where the text names nothing and no custom value is allowed, keeps it and keeps or opens the list — then fires
|
|
338
|
+
* `action` after any `change` it caused, and asks the form to submit unless `action` was cancelled.
|
|
339
|
+
*/
|
|
340
|
+
private enter;
|
|
341
|
+
private onFocus;
|
|
342
|
+
private onBlur;
|
|
343
|
+
/** The clear button's Tab leaves the combobox too. */
|
|
344
|
+
private onFieldKeyDown;
|
|
345
|
+
/**
|
|
346
|
+
* CMB-29: focus leaves the combobox — the input and, while it is shown, the clear button. The text is resolved, or
|
|
347
|
+
* given up where it names nothing; the active option is not chosen; an open list closes with the reason tab or
|
|
348
|
+
* focus-out. Focus that leaves the window has gone nowhere: nothing is resolved until it goes elsewhere in the page.
|
|
349
|
+
*/
|
|
350
|
+
private onFocusOut;
|
|
351
|
+
/**
|
|
352
|
+
* CMB-14: a press on the container's padding or on a decorative glyph moves focus to the input and does nothing
|
|
353
|
+
* else. A press in the input places the caret; the clear button and the chevron answer their own click, and focus
|
|
354
|
+
* stays where it is (the clear button is reached by Tab).
|
|
355
|
+
*/
|
|
356
|
+
private onContainerPress;
|
|
357
|
+
/** CMB-19: a press on the chevron opens the list while it is closed and closes it while it is open; focus is the input's. */
|
|
358
|
+
private onChevron;
|
|
359
|
+
/**
|
|
360
|
+
* CMB-20: the clear button empties the text and the value: `input` once with the empty text, `change` once while the
|
|
361
|
+
* value was not empty, focus to the input, and the list left as it is — showing every option while open.
|
|
362
|
+
*/
|
|
363
|
+
private onClear;
|
|
364
|
+
private onLeadingSlotChange;
|
|
365
|
+
connectedCallback(): void;
|
|
366
|
+
disconnectedCallback(): void;
|
|
367
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
368
|
+
protected updated(changed: PropertyValues): void;
|
|
369
|
+
private reportedOptions;
|
|
370
|
+
/** What a debug build tells the developer; the combobox still renders. */
|
|
371
|
+
private reports;
|
|
372
|
+
/** CMB-38: an option's label with the first run that matched the text in a `<mark>`: one text, drawn heavier there. */
|
|
373
|
+
private readonly labelText;
|
|
374
|
+
/**
|
|
375
|
+
* CMB-32, CMB-33: the status row, after the last option. Its two live regions exist from the moment the list opens —
|
|
376
|
+
* the polite one holds statusText, or the empty text, while idle; the assertive one statusText while the source
|
|
377
|
+
* failed; while loading both are empty, so nothing is announced, and the loading indicator, named by statusText,
|
|
378
|
+
* stands in the text's place.
|
|
379
|
+
*/
|
|
380
|
+
private renderStatus;
|
|
381
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
382
|
+
}
|
|
383
|
+
declare global {
|
|
384
|
+
interface HTMLElementTagNameMap {
|
|
385
|
+
'tanrei-combobox': TanreiCombobox;
|
|
386
|
+
}
|
|
387
|
+
}
|