@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,569 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { LinkController, type LinkForm, type TanreiLinkTarget } from '../../primitives/index.js';
|
|
3
|
+
import '../button/button.js';
|
|
4
|
+
import '../keyboard-shortcut/keyboard-shortcut.js';
|
|
5
|
+
import '../loading-indicator/loading-indicator.js';
|
|
6
|
+
/** Where the view opens: under the bar, in a modal dialog near the top of the window, or over the whole window; the last two have their own header. */
|
|
7
|
+
export type TanreiSearchPresentation = 'docked' | 'dialog' | 'full-screen';
|
|
8
|
+
/** What stands where the search is placed: the bar with its input, a trigger shaped like the bar, or an icon-only Button. */
|
|
9
|
+
export type TanreiSearchBar = 'field' | 'button' | 'icon';
|
|
10
|
+
/** What the product's search is doing: nothing awaited, a query running, or a query failed. */
|
|
11
|
+
export type TanreiSearchStatus = 'idle' | 'loading' | 'error';
|
|
12
|
+
/**
|
|
13
|
+
* Why the search closes its view (SRC-6), by the spec's names. `back` is the full-screen view's back button, or the
|
|
14
|
+
* browser's own close request without a key (Android's back gesture); Escape is `escape`.
|
|
15
|
+
*/
|
|
16
|
+
export type TanreiSearchCloseReason = 'escape' | 'back' | 'select' | 'submit' | 'outside' | 'tab' | 'focus-out' | 'shortcut';
|
|
17
|
+
/** What `toggle` carries: the new `expanded`, and when closing, why. */
|
|
18
|
+
export interface TanreiSearchToggleDetail {
|
|
19
|
+
expanded: boolean;
|
|
20
|
+
reason: TanreiSearchCloseReason | null;
|
|
21
|
+
}
|
|
22
|
+
/** What `submit` carries: the value when the action key was pressed. */
|
|
23
|
+
export interface TanreiSearchSubmitDetail {
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
/** What `select` carries: the `value` of the chosen suggestion, or of the result activated in place. */
|
|
27
|
+
export interface TanreiSearchSelectDetail {
|
|
28
|
+
value: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A suggestion the search offers while the person types — the spec's item kind `suggestion`: a query they searched
|
|
32
|
+
* before, or a completion. Choosing it fires `select` and the product sets the value; a thing the product opens is a
|
|
33
|
+
* `<tanrei-search-result>`. It is data, as an `<option>` in a `<datalist>`: the search draws the row, names it and
|
|
34
|
+
* answers it; the element itself draws nothing.
|
|
35
|
+
*
|
|
36
|
+
* @tag tanrei-search-suggestion
|
|
37
|
+
*/
|
|
38
|
+
export declare class TanreiSearchSuggestion extends LitElement {
|
|
39
|
+
static styles: import("lit").CSSResult;
|
|
40
|
+
static properties: PropertyDeclarations;
|
|
41
|
+
/** Identifies the suggestion; `select` carries it. Unique among the suggestions. */
|
|
42
|
+
value: string;
|
|
43
|
+
/** The suggestion's text, and its accessible name. */
|
|
44
|
+
headline: string;
|
|
45
|
+
/** A second line under the headline ("Folder · 24 messages"), and its description (`supporting-text`). */
|
|
46
|
+
supportingText: string;
|
|
47
|
+
/** The name of a glyph of the system's icon set at the row's start (history, folder); empty draws none (`leading-icon`). A glyph the icon set flags as showing a direction (`arrow_forward`, `send`) is drawn mirrored in a right-to-left layout. */
|
|
48
|
+
leadingIcon: string;
|
|
49
|
+
protected updated(): void;
|
|
50
|
+
protected render(): symbol;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* What a result and a linked group heading share (SRC-42 … SRC-45): the destination props of a link, the row — a
|
|
54
|
+
* suggestion's row, drawn by the element because the row is its own `<a>` — and the excerpt with its marks. It holds no
|
|
55
|
+
* listener of its own: the search it is in answers its press, its keys and its activation.
|
|
56
|
+
*/
|
|
57
|
+
export declare abstract class TanreiSearchRow extends LitElement {
|
|
58
|
+
static properties: PropertyDeclarations;
|
|
59
|
+
/** Identifies it; `select` carries it. Unique among the search's suggestions, results and result groups. */
|
|
60
|
+
value: string;
|
|
61
|
+
/** Its title, and its accessible name. */
|
|
62
|
+
headline: string;
|
|
63
|
+
/**
|
|
64
|
+
* A passage of the thing found, as runs of text in order: the first, third, fifth… run is plain text and the second,
|
|
65
|
+
* fourth… is a match, drawn marked (`["Tokens are ", "design", " decisions"]` marks "design"; a passage that begins
|
|
66
|
+
* with a match begins with an empty run). The attribute holds a JSON array of the runs, or one run as plain text. It is
|
|
67
|
+
* used only while the element has no excerpt as child content. The search never looks for the query in the text.
|
|
68
|
+
*/
|
|
69
|
+
excerpt: string[];
|
|
70
|
+
/** The name of a glyph of the system's icon set at the row's start (article, tag); empty draws none (`leading-icon`). A glyph the icon set flags as showing a direction is drawn mirrored in a right-to-left layout. */
|
|
71
|
+
leadingIcon: string;
|
|
72
|
+
/**
|
|
73
|
+
* Where it goes: a URL, a path or a fragment. Not empty, it makes the row an `<a>`, which the browser
|
|
74
|
+
* opens as it opens any link — a new tab by a modifier key or the middle button, the context menu, the address shown
|
|
75
|
+
* before it is followed. Empty, or naming a script, the row is a `<button>` and `select` is all that happens.
|
|
76
|
+
*/
|
|
77
|
+
href: string;
|
|
78
|
+
/** Where the destination opens: `same` — where the person is — or `new`, a new tab or window, which `targetLabel` says. Ignored without `href`. */
|
|
79
|
+
target: TanreiLinkTarget;
|
|
80
|
+
/** What assistive technology reads after the excerpt while `target` is `new` ("opens in a new tab"; `target-label`). */
|
|
81
|
+
targetLabel: string;
|
|
82
|
+
/** Web only: forwarded to the anchor's `rel`; `noopener` is added for a new context. */
|
|
83
|
+
rel: string | null;
|
|
84
|
+
/** Web only: forwarded to the anchor's `download`. */
|
|
85
|
+
download: string | null;
|
|
86
|
+
/** @internal SRC-42: the search keeps the leading icon column in every row while any suggestion or result has an icon. */
|
|
87
|
+
iconColumn: boolean;
|
|
88
|
+
/** SRC-45: the link the row is while it has a destination, and what a debug build is told (src/primitives/link.ts). */
|
|
89
|
+
protected readonly link: LinkController;
|
|
90
|
+
/** The element's own child nodes that are its excerpt (text, with `<mark>` elements for the matches). */
|
|
91
|
+
protected abstract excerptNodes(): (Element | Text)[];
|
|
92
|
+
/** @internal The row: the `<a>` of a result with a destination, the `<button>` of one without; null where none is drawn. */
|
|
93
|
+
get row(): HTMLElement | null;
|
|
94
|
+
/** @internal SRC-45: the link the row is now, or null: it is a button. */
|
|
95
|
+
get destination(): LinkForm | null;
|
|
96
|
+
/** SRC-43: the excerpt as one text — the result's description, with no word about the marks. */
|
|
97
|
+
private get excerptText();
|
|
98
|
+
/** `element.focus()` focuses the row. */
|
|
99
|
+
focus(options?: FocusOptions): void;
|
|
100
|
+
/** @internal SRC-32: marks the leading glyph for mirroring, by its name and the active icon set. */
|
|
101
|
+
markIcon(): void;
|
|
102
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
103
|
+
/**
|
|
104
|
+
* SRC-42, SRC-43, SRC-45, SRC-50: the row — an anchor to `href`, or a button — named by the headline and described by
|
|
105
|
+
* the excerpt and, for a new context, `targetLabel`. `slot` is where the product's own excerpt (child content) goes;
|
|
106
|
+
* null draws the `excerpt` runs.
|
|
107
|
+
*/
|
|
108
|
+
protected renderRow(slot: TemplateResult | null): TemplateResult;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* A thing the search found that the person can go to — the spec's item kind `result`: a page, a section of a page, a
|
|
112
|
+
* message, a file. It is a link, never an option: with `href` its row is an `<a>` in its shadow root, which the browser
|
|
113
|
+
* follows as it follows any link; without one it is a `<button>`, and `select` is all that happens.
|
|
114
|
+
*
|
|
115
|
+
* The excerpt is its child content — text with `<mark>` elements around the matches, which is what search engines hand
|
|
116
|
+
* back (`<tanrei-search-result headline="Layers" href="/tokens/#layers">A layer changes a <mark>token</mark>.</tanrei-search-result>`)
|
|
117
|
+
* — or, while it has no child content, the `excerpt` runs. Putting an engine's HTML there is the product's act: the
|
|
118
|
+
* element never parses a string as markup.
|
|
119
|
+
*
|
|
120
|
+
* Place it in a `<tanrei-search>` or a `<tanrei-search-result-group>`: the search answers its press and its keys (Down
|
|
121
|
+
* and Up Arrow move through the results; typing returns to the input) and fires `select` when it is activated in place.
|
|
122
|
+
*
|
|
123
|
+
* @tag tanrei-search-result
|
|
124
|
+
* @slot - The excerpt: text, with `<mark>` elements for the matches.
|
|
125
|
+
* @csspart row - The row: the `<a>` (or `<button>`), its container color, corners and every state.
|
|
126
|
+
* @csspart headline - The title.
|
|
127
|
+
* @csspart excerpt - The passage under it.
|
|
128
|
+
*/
|
|
129
|
+
export declare class TanreiSearchResult extends TanreiSearchRow {
|
|
130
|
+
static styles: import("lit").CSSResult;
|
|
131
|
+
connectedCallback(): void;
|
|
132
|
+
protected excerptNodes(): (Element | Text)[];
|
|
133
|
+
protected render(): TemplateResult;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Results that belong together, under one heading — the spec's item kind `result-group`: the sections found in one
|
|
137
|
+
* page, or the results of one kind. With `href` its heading is itself a result (the page), drawn as a result's row, and
|
|
138
|
+
* its `<tanrei-search-result>` children are inset under it as its parts; without one its heading is a quiet title.
|
|
139
|
+
*
|
|
140
|
+
* A linked heading's excerpt is the group's own child content besides its results — text with `<mark>` elements — or the
|
|
141
|
+
* `excerpt` runs while it has none. A group holds results only, and no group.
|
|
142
|
+
*
|
|
143
|
+
* @tag tanrei-search-result-group
|
|
144
|
+
* @slot - The group's `<tanrei-search-result>` children and, while `href` is set, the heading's excerpt (text with `<mark>`).
|
|
145
|
+
* @csspart title - The heading of a group without a destination.
|
|
146
|
+
* @csspart row - The heading of a group with a destination: a result's row.
|
|
147
|
+
* @csspart headline - The linked heading's title.
|
|
148
|
+
* @csspart excerpt - The linked heading's passage.
|
|
149
|
+
*/
|
|
150
|
+
export declare class TanreiSearchResultGroup extends TanreiSearchRow {
|
|
151
|
+
static styles: import("lit").CSSResult[];
|
|
152
|
+
static shadowRootOptions: ShadowRootInit;
|
|
153
|
+
static properties: PropertyDeclarations;
|
|
154
|
+
/** @internal SRC-44: something stands above the group in the view, so it stands group.gap below it. */
|
|
155
|
+
gapBefore: boolean;
|
|
156
|
+
/** @internal SRC-44: something that is not a group follows it, so it stands group.gap above it. */
|
|
157
|
+
gapAfter: boolean;
|
|
158
|
+
connectedCallback(): void;
|
|
159
|
+
/** @internal The group's results, in order. */
|
|
160
|
+
get results(): TanreiSearchResult[];
|
|
161
|
+
/** @internal SRC-44: the heading is a result's row — the group has a destination. */
|
|
162
|
+
get linked(): boolean;
|
|
163
|
+
protected excerptNodes(): (Element | Text)[];
|
|
164
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
165
|
+
protected render(): TemplateResult<1>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Lets people search the product from a bar or a compact trigger, and offers suggestions and results while they type in
|
|
169
|
+
* a view under the bar, in a dialog or over the whole screen.
|
|
170
|
+
*
|
|
171
|
+
* Contract: specs/search.spec.json. The value is edited in a native `<input type="search" enterkeyhint="search">` in the
|
|
172
|
+
* shadow root, as the text field's, with the browser's own cancel button hidden: the search draws its own
|
|
173
|
+
* clear button. Every visual value comes from `--tanrei-comp-search-*` tokens, its one condition's parts by state.
|
|
174
|
+
*
|
|
175
|
+
* Opening and closing: a press on the bar, typing or Down Arrow opens the view (focus alone never does); Escape, a
|
|
176
|
+
* chosen suggestion, submitting, the back button, and — docked — a press outside, Tab and focus leaving close it. The
|
|
177
|
+
* element sets its own `expanded` and then fires `toggle`, whose `detail` holds `expanded` and, when closing, `reason`.
|
|
178
|
+
* Set `expanded` yourself to open or close it without an event.
|
|
179
|
+
*
|
|
180
|
+
* `docked` (the default) opens a view under the bar: a manual popover in the top layer, placed by script (flipped above
|
|
181
|
+
* the bar when there is more room there), following the bar. Focus stays in the input — the WAI-ARIA combobox pattern:
|
|
182
|
+
* the input controls the suggestions' listbox and names the active suggestion as its active descendant. A press outside
|
|
183
|
+
* closes it AND reaches the element under it. `full-screen` opens a modal `<dialog>` over the whole window with its own
|
|
184
|
+
* header (a back button, the input, the clear button); it takes focus, keeps it, and gives it back to the bar's input.
|
|
185
|
+
*
|
|
186
|
+
* A site search. `bar="button"` draws a trigger shaped like the bar — the search glyph, the placeholder
|
|
187
|
+
* and the shortcut hint — and `bar="icon"` an icon-only Button; a trigger opens a modal view, where the input is
|
|
188
|
+
* (`presentation="dialog"`: a `<dialog>` hung from the top of the window over a scrim, a press on which closes it,
|
|
189
|
+
* its header starting with the same back button as the full-screen view's, so it can be left by Tab and Enter alone;
|
|
190
|
+
* `docked` with a trigger opens as `dialog`). `shortcut` (chords separated by spaces, as the keyboard shortcut's `keys`)
|
|
191
|
+
* is written as a hint — a line of text, no keycaps — and exposed as `aria-keyshortcuts`; it makes the keys work only with `bind-shortcut`, which adds one
|
|
192
|
+
* `keydown` listener on the window while the element is connected and enabled. The results are
|
|
193
|
+
* `<tanrei-search-result>` and `<tanrei-search-result-group>` children: links, never options, reached from the input
|
|
194
|
+
* with Down Arrow (real focus), left with Up Arrow or by typing. `status` and `status-text` draw the status row — a
|
|
195
|
+
* `role="status"` element that exists from the first render (`role="alert"` while `status="error"`). The search never
|
|
196
|
+
* runs a query: listen to `input`, then set the results, `status` and `status-text`.
|
|
197
|
+
*
|
|
198
|
+
* Form-associated: with a `name` it submits `value`, and Enter (with no suggestion active) requests its form's
|
|
199
|
+
* submission after `submit`, unless `submit` was cancelled. The `inline` attribute, for tests and documentation, draws
|
|
200
|
+
* the open view in place: the docked view under the bar, the full-screen view filling the element.
|
|
201
|
+
*
|
|
202
|
+
* @tag tanrei-search
|
|
203
|
+
* @slot leading - An icon button at the bar's start (a menu or back button), drawn in place of the search glyph.
|
|
204
|
+
* @slot trailing - Up to two icon buttons at the bar's end, after the clear button (voice input, account). The bar's action buttons — the clear button and these — stand `container.button-gap` apart (0 in the default system), each keeping a touch target's length along the row: two medium Buttons stand 8 apart, the small clear button and a medium one 12 (SRC-34).
|
|
205
|
+
* @slot - The product's own content in the view, after the suggestions, the status row and the results (a button that loads more results, a link to the full results page, richer content for an empty query); and the item children: `<tanrei-search-suggestion>`, which the search draws as rows, and `<tanrei-search-result>` and `<tanrei-search-result-group>`, which it places after the status row.
|
|
206
|
+
* @csspart container - The bar, or the button trigger: its color, corners, elevation and every state.
|
|
207
|
+
* @csspart input - The native `<input>` (the bar's, and a modal view's header's).
|
|
208
|
+
* @csspart view - The docked view's surface.
|
|
209
|
+
* @csspart dialog - The dialog view's container, or the full-screen view.
|
|
210
|
+
* @csspart listbox - The suggestions.
|
|
211
|
+
* @csspart status - The status row.
|
|
212
|
+
* @csspart results - The list of the results and result groups.
|
|
213
|
+
* @attr {string} form - The id of the form the search 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.
|
|
214
|
+
* @fires input - The person changed the value (typing, deleting, pasting, dictating, the clear button, Escape); `value` is already the new one. Never fired when the product sets `value`.
|
|
215
|
+
* @fires {CustomEvent<TanreiSearchSubmitDetail>} submit - The action key (Enter, Search) was pressed with no suggestion active: `detail.value`. Cancelable: cancelling it keeps an enclosing form from being submitted.
|
|
216
|
+
* @fires {CustomEvent<TanreiSearchSelectDetail>} select - The person chose a suggestion, or activated a result in place (without a modifier key, in the same window): `detail.value` is its value. The search does not change `value`; set the value you want. For a result it is fired before the browser follows the link and is cancelable: cancelling it keeps the link from being followed, so that a router can take it. A result opened in a new tab (a modifier key, the middle button, `target="new"`) fires nothing.
|
|
217
|
+
* @fires {CustomEvent<TanreiSearchToggleDetail>} toggle - The search opened or closed its view: `detail.expanded` (and the element's `expanded`) is the new value, and `detail.reason` says why it closed (`escape`, `back`, `select`, `submit`, `outside`, `tab`, `focus-out`, `shortcut`), or `null` when it opened.
|
|
218
|
+
*/
|
|
219
|
+
export declare class TanreiSearch extends LitElement {
|
|
220
|
+
private readonly availability;
|
|
221
|
+
/** The product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
222
|
+
private readonly words;
|
|
223
|
+
/** SRC-30: each of the search's glyphs is drawn only while the icon set can draw it (src/primitives/glyph.ts). */
|
|
224
|
+
private readonly glyphs;
|
|
225
|
+
/**
|
|
226
|
+
* SRC-34: the bar's action buttons — the clear button while it is shown, then the trailing slot's — each keep a touch
|
|
227
|
+
* target's length along the row; their lengths are measured for the styles (src/primitives/kept-length.ts).
|
|
228
|
+
*/
|
|
229
|
+
private readonly kept;
|
|
230
|
+
/**
|
|
231
|
+
* SRC-32: a suggestion's leading glyph is marked when the icon set mirrors its name in right-to-left
|
|
232
|
+
* (src/primitives/glyph-mirror.ts); `iconGlyph()` draws the mark. The search glyph (SRC-2) is not named here, and the
|
|
233
|
+
* back and clear Buttons mark their own glyphs (BTN-19: `arrow_back` is flagged, `close` is not).
|
|
234
|
+
*/
|
|
235
|
+
private readonly mirror;
|
|
236
|
+
/** SRC-32: a switch of the design system changes the icon set; the results' glyphs are marked again (`updated()`). */
|
|
237
|
+
private readonly system;
|
|
238
|
+
static styles: import("lit").CSSResult;
|
|
239
|
+
static formAssociated: boolean;
|
|
240
|
+
static shadowRootOptions: ShadowRootInit;
|
|
241
|
+
static properties: PropertyDeclarations;
|
|
242
|
+
/**
|
|
243
|
+
* Where the view opens: `docked` under the bar, without taking focus from it; `dialog`, a modal surface near the top
|
|
244
|
+
* of the window with its own header (a large screen, opened from a trigger); or `full-screen`, over the whole window
|
|
245
|
+
* with its own header (a small screen).
|
|
246
|
+
*/
|
|
247
|
+
presentation: TanreiSearchPresentation;
|
|
248
|
+
/**
|
|
249
|
+
* What stands where the search is placed. `field`: the bar with its input. `button`: a trigger shaped like the bar
|
|
250
|
+
* that holds no input — the search glyph, the placeholder and the shortcut hint — for an app bar with room. `icon`: an
|
|
251
|
+
* icon-only Button showing the search glyph, for an app bar without. A trigger opens a modal view (`dialog` or
|
|
252
|
+
* `full-screen`), where the input is; `docked` with a trigger opens as `dialog`.
|
|
253
|
+
*/
|
|
254
|
+
bar: TanreiSearchBar;
|
|
255
|
+
/** The query. Setting it shows it and fires nothing. The `value` attribute is what a form reset returns to. */
|
|
256
|
+
value: string;
|
|
257
|
+
/** Names the search field, the trigger, the view, the suggestions and the results for assistive technology ("Search mail"). Drawn only as a button trigger's text while `placeholder` is empty. Required. */
|
|
258
|
+
label: string;
|
|
259
|
+
/** A hint shown while the value is empty, and the text of a button trigger. Never a replacement for `label`. */
|
|
260
|
+
placeholder: string;
|
|
261
|
+
/** Whether the view is open. The search sets it itself (and fires `toggle`); set it to open or close the view yourself. */
|
|
262
|
+
expanded: boolean;
|
|
263
|
+
/** Prevents focus, editing and opening the view. */
|
|
264
|
+
disabled: boolean;
|
|
265
|
+
/** The clear button's accessible name, in the product's language ("Clear search"; `clear-label`). */
|
|
266
|
+
clearLabel: string;
|
|
267
|
+
/** The accessible name of the back button in a modal view's header — dialog or full-screen ("Back"; `back-label`). */
|
|
268
|
+
backLabel: string;
|
|
269
|
+
/**
|
|
270
|
+
* The keyboard shortcut that opens the search, in the keyboard shortcut component's key names: one chord per string
|
|
271
|
+
* (`["mod+k"]`, `["/"]`; the attribute holds the chords separated by spaces, `shortcut="mod+k"`). The search writes it
|
|
272
|
+
* as a hint, a line of text with no keycaps — at the end of a button trigger, and in the bar while the value is empty and the input is not focused —
|
|
273
|
+
* and exposes it as `aria-keyshortcuts` of its trigger or its input. It makes the keys work only with `bindShortcut`;
|
|
274
|
+
* otherwise the product binds them and sets `expanded`.
|
|
275
|
+
*/
|
|
276
|
+
shortcut: string[];
|
|
277
|
+
/**
|
|
278
|
+
* Makes the search itself listen for `shortcut`, anywhere in the window, while it is connected and enabled: the keys
|
|
279
|
+
* open it, and close it again while it is open (`bind-shortcut`). One chord; a press something else cancelled, a key
|
|
280
|
+
* repeating while held, an input-method composition and — for a chord without mod, ctrl or alt — a press while focus
|
|
281
|
+
* is in an element that takes text are left alone. Off by default.
|
|
282
|
+
*/
|
|
283
|
+
bindShortcut: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* What the product's search is doing, which the product sets: `idle` (results, or none, are final), `loading` (a
|
|
286
|
+
* query is running: the status row shows a loading indicator after its delay, and the results are marked busy) or
|
|
287
|
+
* `error` (the query failed: `statusText` is drawn as an error and announced at once). The search never runs a query.
|
|
288
|
+
*/
|
|
289
|
+
status: TanreiSearchStatus;
|
|
290
|
+
/**
|
|
291
|
+
* The status row's text, in the product's language, announced to assistive technology when it changes
|
|
292
|
+
* (`status-text`): the count ("12 results for tokens"), that nothing was found, the failure; while loading, the
|
|
293
|
+
* loading indicator's name ("Searching"). Empty draws no status row unless `status` is `loading`.
|
|
294
|
+
*/
|
|
295
|
+
statusText: string;
|
|
296
|
+
/** For tests and documentation: draws the open view in place, without the overlay's behaviour. */
|
|
297
|
+
inline: boolean;
|
|
298
|
+
/** Web only: the name it is submitted under. */
|
|
299
|
+
name: string;
|
|
300
|
+
protected suggestions: TanreiSearchSuggestion[];
|
|
301
|
+
/** The results and result groups (children), in the product's order. */
|
|
302
|
+
protected entries: (TanreiSearchResult | TanreiSearchResultGroup)[];
|
|
303
|
+
/** SRC-16, SRC-42: any suggestion or result has a leading icon, so every row keeps the column. */
|
|
304
|
+
protected iconColumn: boolean;
|
|
305
|
+
/** The active suggestion's index (the input's active descendant), or -1. */
|
|
306
|
+
protected active: number;
|
|
307
|
+
protected hasLeading: boolean;
|
|
308
|
+
protected trailingCount: number;
|
|
309
|
+
/** The default slot holds the product's own content (anything but the suggestions). */
|
|
310
|
+
protected hasContent: boolean;
|
|
311
|
+
/** Set by an ancestor `<fieldset disabled>`. */
|
|
312
|
+
protected formDisabled: boolean;
|
|
313
|
+
private readonly internals;
|
|
314
|
+
private readonly children$;
|
|
315
|
+
/** SRC-4: the bar's input and the header's, each kept in step with `value` around an input method (TXF-1, TXF-4). */
|
|
316
|
+
private readonly barText;
|
|
317
|
+
private readonly headerText;
|
|
318
|
+
/**
|
|
319
|
+
* SRC-19, SRC-20: the bar's press — by pointer or touch only: Enter and Space in the input type and submit. SRC-36: a
|
|
320
|
+
* button trigger is pressed as the bar is, and by Enter and Space as a button.
|
|
321
|
+
*/
|
|
322
|
+
private readonly barPress;
|
|
323
|
+
/** SRC-19, SRC-20, SRC-42: a suggestion's or a result's press — by pointer, touch or Enter; the row being pressed is `pressedRow`. */
|
|
324
|
+
private pressedRow;
|
|
325
|
+
private readonly rowPress;
|
|
326
|
+
private viewShown;
|
|
327
|
+
private fullShown;
|
|
328
|
+
private lastLayout;
|
|
329
|
+
private listening;
|
|
330
|
+
/** SRC-42: the result whose row is pressed by a pointer now. */
|
|
331
|
+
private pressedResult;
|
|
332
|
+
/** SRC-51: the result that took focus last, for the moment the product removes it. */
|
|
333
|
+
private focusedResult;
|
|
334
|
+
/** SRC-40: a press began on the dialog view's scrim. */
|
|
335
|
+
private scrimPressed;
|
|
336
|
+
/** SRC-38: the chord this search listens for now, or null. */
|
|
337
|
+
private binding;
|
|
338
|
+
private readQueued;
|
|
339
|
+
constructor();
|
|
340
|
+
connectedCallback(): void;
|
|
341
|
+
disconnectedCallback(): void;
|
|
342
|
+
protected createRenderRoot(): DocumentFragment | HTMLElement;
|
|
343
|
+
private get barElement();
|
|
344
|
+
private get barInput();
|
|
345
|
+
private get headerInput();
|
|
346
|
+
private get view();
|
|
347
|
+
private get dialog();
|
|
348
|
+
private get inert_();
|
|
349
|
+
/** SRC-27: a bar the search does not define is drawn as the field. */
|
|
350
|
+
private get barForm();
|
|
351
|
+
/** SRC-35: a trigger stands in the bar's place. */
|
|
352
|
+
private get triggered();
|
|
353
|
+
/** SRC-35: the trigger — the native button of a button trigger, the Button of an icon one — or null. */
|
|
354
|
+
private get trigger();
|
|
355
|
+
private get triggerButton();
|
|
356
|
+
/**
|
|
357
|
+
* Where the view opens now. SRC-27: a presentation the search does not define is drawn as docked. SRC-36: a trigger
|
|
358
|
+
* opens a modal view — a docked view has no input of its own — so docked with a trigger is the dialog.
|
|
359
|
+
*/
|
|
360
|
+
private get mode();
|
|
361
|
+
/** SRC-9, SRC-40: the view is a modal one, with a header of its own. */
|
|
362
|
+
private get modal();
|
|
363
|
+
/** SRC-27: a status the search does not define is idle. */
|
|
364
|
+
private get statusNow();
|
|
365
|
+
/** SRC-47: the status row is drawn. */
|
|
366
|
+
private get statusShown();
|
|
367
|
+
/** The view has content: a suggestion, a status row, a result, a result group, or something in the default slot (SRC-7). */
|
|
368
|
+
private get viewHasContent();
|
|
369
|
+
/** SRC-49: the results in view order, across groups — a linked group heading counts as one, a title does not. */
|
|
370
|
+
private get rows();
|
|
371
|
+
/** The input focus belongs to now: the header's while a modal view is open, else the bar's. */
|
|
372
|
+
private get currentInput();
|
|
373
|
+
/**
|
|
374
|
+
* Sends focus to the input it belongs to now: the header's while a modal view (dialog or full-screen) is open, the
|
|
375
|
+
* bar's while the view is docked or closed — and, while the bar is a button or an icon and the view is closed, to
|
|
376
|
+
* that trigger, as the platform's own delegation does. It opens and closes nothing (SRC-5), and a disabled search
|
|
377
|
+
* takes no focus (SRC-25). This is how the product's own content in the view (SRC-46) gives focus back when it
|
|
378
|
+
* removes the element that held it, as the search's own clear button does (SRC-10): behind an open modal view the
|
|
379
|
+
* platform's delegation alone would land on the dialog, where nothing can be typed.
|
|
380
|
+
*/
|
|
381
|
+
focus(options?: FocusOptions): void;
|
|
382
|
+
/** The form it belongs to, if any. */
|
|
383
|
+
get form(): HTMLFormElement | null;
|
|
384
|
+
formResetCallback(): void;
|
|
385
|
+
formStateRestoreCallback(state: string | null): void;
|
|
386
|
+
formDisabledCallback(disabled: boolean): void;
|
|
387
|
+
/** The suggestions, the results and the result groups (children), and whether anything else is the view's content. */
|
|
388
|
+
private readChildren;
|
|
389
|
+
/** SRC-27: what a debug build reports about the results and the result groups. */
|
|
390
|
+
private checkResults;
|
|
391
|
+
/** SRC-27: what a debug build reports about the suggestions. */
|
|
392
|
+
private checkSuggestions;
|
|
393
|
+
private onSlotChange;
|
|
394
|
+
/** SRC-5: the search opens its view — its own `expanded`, then `toggle` — once. */
|
|
395
|
+
private expand;
|
|
396
|
+
/** SRC-6: the search closes its view with a reason, once; the value stays as it is. */
|
|
397
|
+
private collapse;
|
|
398
|
+
/** SRC-15: a suggestion was chosen: `select` with its value, then the view closes. The value is the product's to set. */
|
|
399
|
+
private choose;
|
|
400
|
+
/**
|
|
401
|
+
* SRC-13: the action key: `submit`, then the view closes — unless it shows a result, a result group or a status row:
|
|
402
|
+
* what the person asked for is already in front of them — then, in a form, unless cancelled, the form is submitted.
|
|
403
|
+
*/
|
|
404
|
+
private submit;
|
|
405
|
+
/** SRC-10, SRC-12: the value emptied by the person (the clear button, Escape): `input` once, never a toggle. */
|
|
406
|
+
private clearValue;
|
|
407
|
+
/** SRC-14: the active suggestion, scrolled into view inside the view's scrolling box, and its ring's focus style (SRC-21). */
|
|
408
|
+
private setActive;
|
|
409
|
+
/**
|
|
410
|
+
* SRC-4 (TXF-1): the person changed the value. The native `input` is composed, so it leaves the shadow root by itself —
|
|
411
|
+
* after the element has taken the new value. SRC-5: typing opens the view; SRC-14: it leaves no suggestion active.
|
|
412
|
+
*/
|
|
413
|
+
private readonly onInput;
|
|
414
|
+
/** SRC-5, SRC-12, SRC-13, SRC-14: the keys the input answers. Escape while open and Tab are the host's (below). */
|
|
415
|
+
private readonly onInputKeyDown;
|
|
416
|
+
/** SRC-6, SRC-9: Escape anywhere in the search closes an open view; Tab closes the docked one and stays in the full-screen one. */
|
|
417
|
+
private readonly onHostKeyDown;
|
|
418
|
+
/**
|
|
419
|
+
* SRC-49: the keys a focused result answers. Down and Up Arrow move real focus through the results in view order,
|
|
420
|
+
* across groups, staying on the last and going from the first back to the input (the last suggestion active, where
|
|
421
|
+
* there is one). Typing, deleting or pasting moves focus to the input, so that the key edits the value there. Enter is
|
|
422
|
+
* the browser's own activation of the link; the row only shows its press (SRC-19). Returns whether the key was taken.
|
|
423
|
+
*/
|
|
424
|
+
private onResultKeyDown;
|
|
425
|
+
/** SRC-49: real focus on the result at `index` in view order (the browser scrolls it into view); none is active meanwhile. */
|
|
426
|
+
private focusResult;
|
|
427
|
+
/** Whether focus is in a result's row now. */
|
|
428
|
+
private get resultFocused();
|
|
429
|
+
/** SRC-42, SRC-51: the result that takes focus — its ring's focus style (SRC-21), and which one to miss when it is removed. */
|
|
430
|
+
private readonly onFocusIn;
|
|
431
|
+
/**
|
|
432
|
+
* SRC-45: a result was activated. In place — a primary press, a touch or Enter, without a modifier key, in the same
|
|
433
|
+
* window — `select` with its value, then the browser follows the link unless `select` was cancelled (a router took
|
|
434
|
+
* it), then the view closes. Any other way (a modifier key, `target: new`; the middle button fires no click) nothing
|
|
435
|
+
* is emitted and the view stays, so that a person can open several results from one search. Never Space on a link.
|
|
436
|
+
*/
|
|
437
|
+
private readonly onResultClick;
|
|
438
|
+
/** SRC-42, SRC-19: a result's row shows its press, from the point of contact. */
|
|
439
|
+
private readonly onResultPointerDown;
|
|
440
|
+
private readonly onResultPointerEnd;
|
|
441
|
+
/** The pointer left the pressed result (its row fills it), as a row's own `pointerleave`. */
|
|
442
|
+
private readonly onResultPointerOut;
|
|
443
|
+
/** SRC-6: focus moving out of the search closes the docked view. */
|
|
444
|
+
private readonly onFocusOut;
|
|
445
|
+
/** SRC-6: a press outside the bar and the view closes the docked view; the press also reaches what is under it. */
|
|
446
|
+
private readonly onOutsidePress;
|
|
447
|
+
private listen;
|
|
448
|
+
private readonly onInputFocus;
|
|
449
|
+
/** SRC-14: a press in the input moves the caret, which leaves no suggestion active. */
|
|
450
|
+
private readonly onInputPointerDown;
|
|
451
|
+
/** Whether an event came from the bar's own elements rather than a slot's icon button or the clear button. */
|
|
452
|
+
private fromBar;
|
|
453
|
+
private readonly onBarPointerDown;
|
|
454
|
+
/** A press on the bar outside the input focuses the input without leaving it first (as the text field's TXF-8). */
|
|
455
|
+
private readonly onBarMouseDown;
|
|
456
|
+
/** SRC-5: a press on the bar — outside its slots and the clear button — focuses the input and opens the view. */
|
|
457
|
+
private readonly onBarClick;
|
|
458
|
+
/** SRC-10: the clear button empties the value and gives focus back to the input it belongs to; nothing opens or closes. */
|
|
459
|
+
private readonly onClear;
|
|
460
|
+
/** SRC-11, SRC-40: the back button closes the modal view it stands in — full-screen or dialog. */
|
|
461
|
+
private readonly onBack;
|
|
462
|
+
/** SRC-36: the trigger was activated (by pointer, touch, Enter or Space — a button's own click): the modal view opens. */
|
|
463
|
+
private readonly onTriggerClick;
|
|
464
|
+
/** SRC-36: where style queries are missing, the trigger's focus style is read when focus arrives (the glow). */
|
|
465
|
+
private readonly onTriggerFocus;
|
|
466
|
+
/** SRC-40, SRC-6: a press on the dialog view's scrim — outside its container, begun and ended there — closes it. */
|
|
467
|
+
private outsideDialog;
|
|
468
|
+
private readonly onDialogPointerDown;
|
|
469
|
+
private readonly onDialogClick;
|
|
470
|
+
/** The scrim of a dialog view drawn in place (tests and documentation) answers as the backdrop does. */
|
|
471
|
+
private readonly onScrimClick;
|
|
472
|
+
/** SRC-6: the browser's own close request without a key (Android's back) arrives as the dialog's cancel. */
|
|
473
|
+
private readonly onNativeCancel;
|
|
474
|
+
/** The row that is pressed now; a new press ends the last one's at once. */
|
|
475
|
+
private pressRow;
|
|
476
|
+
private readonly onRowPointerDown;
|
|
477
|
+
/**
|
|
478
|
+
* SRC-8: a press on a suggestion, on the status row or on the docked view's surface never takes focus from the input.
|
|
479
|
+
* SRC-9, SRC-40: in a modal view a press on anything that takes no focus of its own keeps focus inside (on the header,
|
|
480
|
+
* it goes to the input).
|
|
481
|
+
*/
|
|
482
|
+
private readonly onViewMouseDown;
|
|
483
|
+
private readonly onRowClick;
|
|
484
|
+
/** SRC-7: the docked view, placed under the bar (or above it when there is more room there), as wide as it. */
|
|
485
|
+
private place;
|
|
486
|
+
/** SRC-7: follows the bar while it moves (scrolling, layout, the viewport, the keyboard) — asked by FollowController, frame by frame only while something moves. */
|
|
487
|
+
private readonly follow;
|
|
488
|
+
private readonly following;
|
|
489
|
+
private stopFollowing;
|
|
490
|
+
/** SRC-7, SRC-23: the docked view is drawn while expanded, docked and holding content; it grows in and fades out. */
|
|
491
|
+
private syncView;
|
|
492
|
+
/** SRC-9: the full-screen view above the on-screen keyboard. */
|
|
493
|
+
private readonly onViewport;
|
|
494
|
+
/** SRC-9: modal over the whole window, the page held, focus to the header's input with the caret at the end. */
|
|
495
|
+
private presentFull;
|
|
496
|
+
/** SRC-9: out of the top layer (fading), the page given back, focus back to the bar's input — which does not reopen it. */
|
|
497
|
+
private withdrawFull;
|
|
498
|
+
private syncFull;
|
|
499
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
500
|
+
/**
|
|
501
|
+
* SRC-38, SRC-39: the one `keydown` listener on the window, held only while the search is connected, enabled and told
|
|
502
|
+
* to bind exactly one chord that no search shown before it has bound.
|
|
503
|
+
* @internal
|
|
504
|
+
*/
|
|
505
|
+
syncShortcut(): void;
|
|
506
|
+
/**
|
|
507
|
+
* SRC-38, KBS-2: whose keyboard the chord is read for — the one the hint is written for: the nearest ancestor's
|
|
508
|
+
* `data-tanrei-keyboard-convention` (the search's own included), else the platform's.
|
|
509
|
+
*/
|
|
510
|
+
private get convention();
|
|
511
|
+
/**
|
|
512
|
+
* SRC-38: the bound chord, pressed anywhere in the window, opens the search — as its trigger does, or by focusing its
|
|
513
|
+
* input — and closes it again with the reason shortcut, and does nothing else. Left alone: a press something else has
|
|
514
|
+
* taken, a key repeating while held, an input-method composition, and a chord without mod, ctrl or alt while focus is
|
|
515
|
+
* in an element that takes text (the search's own input included), so that such a key types there.
|
|
516
|
+
*/
|
|
517
|
+
private readonly onWindowKeyDown;
|
|
518
|
+
/**
|
|
519
|
+
* SRC-36, SRC-37: what the trigger or the bar's input carries for assistive technology besides its name — the
|
|
520
|
+
* shortcut as `aria-keyshortcuts`, in the form the keyboard shortcut it draws gives (KBS-12), and for a trigger that
|
|
521
|
+
* it opens a dialog and whether that is open. An icon trigger is a Tanrei Button: they go on its native button.
|
|
522
|
+
*/
|
|
523
|
+
private expose;
|
|
524
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
525
|
+
private get clearShown();
|
|
526
|
+
/** SRC-34: the bar's action buttons in reading order — the clear button while it is shown, then the trailing slot's elements. */
|
|
527
|
+
private keepActions;
|
|
528
|
+
/**
|
|
529
|
+
* SRC-4, TXF-24: typed text is laid out by its own direction (`dir="auto"`) once it has a letter to tell it by; an
|
|
530
|
+
* empty or letterless value keeps the layout's direction, so the caret and the placeholder stand at the bar's start
|
|
531
|
+
* edge (an empty `dir="auto"` input is left to right in every layout).
|
|
532
|
+
*/
|
|
533
|
+
/** SRC-24: the input's semantics — a search field named by label; a combobox while its view shows the suggestions. */
|
|
534
|
+
private renderInput;
|
|
535
|
+
/** SRC-10: an icon-only text Button showing close, small in the bar and medium in the header. */
|
|
536
|
+
private renderClear;
|
|
537
|
+
/**
|
|
538
|
+
* SRC-7, SRC-9, SRC-16, SRC-24, SRC-29, SRC-46: what a view holds, from top to bottom — the suggestions' listbox, the
|
|
539
|
+
* status row, the results and result groups, then the product's content; a part that is absent takes no room.
|
|
540
|
+
*
|
|
541
|
+
* SRC-47, SRC-48: the status row's two live regions exist from the moment the view opens — the polite one holds
|
|
542
|
+
* statusText while idle, the assertive one while the query failed; while loading both are empty, so nothing is
|
|
543
|
+
* announced, and the loading indicator, named by statusText, stands in the text's place. SRC-50: the results are links
|
|
544
|
+
* in one list named by label, outside the listbox, marked busy while loading.
|
|
545
|
+
*/
|
|
546
|
+
private renderBody;
|
|
547
|
+
/** SRC-37: the hint — the keyboard shortcut, hosted (KBS-13): its plain form (a line of text, no cap), small, the ambient convention, faded with the search. */
|
|
548
|
+
private renderHint;
|
|
549
|
+
/**
|
|
550
|
+
* SRC-35, SRC-36: what stands in the bar's place while bar is button or icon — one button that opens a modal view.
|
|
551
|
+
* As a button: the bar's container at the trigger's height, holding the search glyph, the placeholder (or the label)
|
|
552
|
+
* and the hint. As an icon: an icon-only text Button showing the search glyph, from the Button's own tokens, and no
|
|
553
|
+
* drawn hint (its keys are still exposed).
|
|
554
|
+
*/
|
|
555
|
+
private renderTrigger;
|
|
556
|
+
protected render(): TemplateResult<1>;
|
|
557
|
+
}
|
|
558
|
+
declare global {
|
|
559
|
+
interface HTMLElementTagNameMap {
|
|
560
|
+
'tanrei-search': TanreiSearch;
|
|
561
|
+
'tanrei-search-suggestion': TanreiSearchSuggestion;
|
|
562
|
+
'tanrei-search-result': TanreiSearchResult;
|
|
563
|
+
'tanrei-search-result-group': TanreiSearchResultGroup;
|
|
564
|
+
}
|
|
565
|
+
interface HTMLElementEventMap {
|
|
566
|
+
'tanrei-search-suggestion-update': Event;
|
|
567
|
+
'tanrei-search-result-update': Event;
|
|
568
|
+
}
|
|
569
|
+
}
|