@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,603 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { type CalendarDate, type ClockTime } from '../../primitives/index.js';
|
|
3
|
+
import '../button/button.js';
|
|
4
|
+
import '../calendar/calendar.js';
|
|
5
|
+
import '../tabs/tabs.js';
|
|
6
|
+
/** modal: a dialog over a scrim, committed by OK. docked: a surface below its anchor. */
|
|
7
|
+
export type TanreiDateTimePickerPresentation = 'modal' | 'docked';
|
|
8
|
+
/** What is chosen: a calendar date, a time of day, or both. */
|
|
9
|
+
export type TanreiDateTimePickerMode = 'date' | 'time' | 'date-time';
|
|
10
|
+
/** The clock (DTM-16): `h12` (1–12 and a period), `h23` (00–23), or `locale` (the locale's preferred clock). */
|
|
11
|
+
export type TanreiDateTimePickerHourCycle = 'locale' | 'h12' | 'h23';
|
|
12
|
+
/** How the time is set when the picker opens: on wheels or on a clock dial. */
|
|
13
|
+
export type TanreiDateTimePickerEntryMode = 'wheels' | 'dial';
|
|
14
|
+
/** Dial mode: the unit the dial shows, and the selector that takes focus, when the picker opens. */
|
|
15
|
+
export type TanreiDateTimePickerUnit = 'hour' | 'minute';
|
|
16
|
+
/** DTM-9: the calendar above the time section, beside it, or chosen by the window. */
|
|
17
|
+
export type TanreiDateTimePickerLayout = 'auto' | 'vertical' | 'horizontal';
|
|
18
|
+
/**
|
|
19
|
+
* Why the picker asks to be closed (DTM-5). The web has no back gesture of its own: a modal picker's close request
|
|
20
|
+
* without a key (Android's back) arrives as the native dialog's `cancel` and is sent as `back`; one an Escape key caused
|
|
21
|
+
* is sent as `escape`.
|
|
22
|
+
*/
|
|
23
|
+
export type TanreiDateTimePickerCloseReason = 'escape' | 'back' | 'outside' | 'tab' | 'focus-out' | 'cancel' | 'confirm' | 'select';
|
|
24
|
+
export interface TanreiDateTimePickerCloseDetail {
|
|
25
|
+
reason: TanreiDateTimePickerCloseReason;
|
|
26
|
+
}
|
|
27
|
+
/** What `change` carries, in the mode's form: `value` without a range, `start` and `end` with one; `""` where none. */
|
|
28
|
+
export interface TanreiDateTimePickerChangeDetail {
|
|
29
|
+
value: string;
|
|
30
|
+
start: string;
|
|
31
|
+
end: string;
|
|
32
|
+
}
|
|
33
|
+
type End = 'value' | 'start' | 'end';
|
|
34
|
+
type Unit = TanreiDateTimePickerUnit;
|
|
35
|
+
/** One end of a range, as its range field names it (DTM-15). */
|
|
36
|
+
type RangeEnd = 'start' | 'end';
|
|
37
|
+
/** One end of the choice: its date (modes with a date) and its time (modes with a time). */
|
|
38
|
+
interface Moment {
|
|
39
|
+
date: CalendarDate | null;
|
|
40
|
+
time: ClockTime | null;
|
|
41
|
+
}
|
|
42
|
+
type Choice = Record<End, Moment>;
|
|
43
|
+
/**
|
|
44
|
+
* Lets a person choose a date, a time, or a date and time — or a span of any of them — from a Calendar and time wheels
|
|
45
|
+
* or a clock dial, in a dialog or in a surface that drops down from a field.
|
|
46
|
+
*
|
|
47
|
+
* Contract: specs/date-time-picker.spec.json. `modal` (the default) is a native `<dialog>` in the shadow root opened with
|
|
48
|
+
* `showModal()` — `::backdrop` is the scrim, everything else is inert, focus is trapped — with a start-aligned title row,
|
|
49
|
+
* the pending value (in a mode with a date) and Cancel and OK; the choice is pending until OK. `docked` is a manual
|
|
50
|
+
* popover in the top layer, placed below the element whose id is `anchor` with the menu's placement (flipped above when
|
|
51
|
+
* there is more room there, shifted to stay in the viewport, following the anchor); it is not modal: Tab and focus
|
|
52
|
+
* leaving close it, and a docked picker that sets a date only commits by choosing it. Both move focus in when they open
|
|
53
|
+
* and give it back when they close.
|
|
54
|
+
*
|
|
55
|
+
* The picker never closes itself: it fires `close` with a reason and you set `open` to false. When one activation
|
|
56
|
+
* commits a choice, the element takes the new `value` (or `start` and `end`) and fires `change` before `close`.
|
|
57
|
+
*
|
|
58
|
+
* Values are the strings of `<input type=date>`, `type=time` and `type=datetime-local`: "2026-09-17", "19:30",
|
|
59
|
+
* "2026-09-17T19:30" — no seconds, no time zone. The date is a `<tanrei-calendar>`; the time is set on two wheels (spin
|
|
60
|
+
* buttons that also take a typed number: press a wheel's chosen value, or type a digit) or on a clock dial with an hour
|
|
61
|
+
* and a minute selector, chosen by two icon-only `<tanrei-tabs variant="secondary">` at the end of the title row while
|
|
62
|
+
* the design system offers both (`comp.date-time-picker.time.entry-modes`) — the keyboard glyph for the wheels, the
|
|
63
|
+
* clock face for the dial, `wheelsLabel` and `dialLabel` their accessible names. They are the picker's only tabs. The
|
|
64
|
+
* period of a 12-hour time (AM, PM) is a part of the time, after the minute or — where the locale writes it first —
|
|
65
|
+
* before the hour: a third wheel of two rows in the wheels mode, and in the dial mode a narrow selector that shows the
|
|
66
|
+
* pending period and changes to the other when pressed; either is a spin button of two values named `periodLabel`, and
|
|
67
|
+
* neither is ever drawn as selected. The two ends of a range that has a time are two range fields joined by an en dash
|
|
68
|
+
* ("9:00 AM – 5:30 PM") across the whole time section, with no word for start or end; the one the wheels or the dial set
|
|
69
|
+
* is drawn as selected, and pressing the other sets it. Names, digits, forms, the separator and the preferred clock come from `Intl` for `locale`
|
|
70
|
+
* (without it, the nearest `lang`, then the browser's language). Every visual value comes from
|
|
71
|
+
* `--tanrei-comp-date-time-picker-*` tokens; the calendar, the tabs and the Buttons keep their own. The `inline`
|
|
72
|
+
* attribute, for tests and documentation, draws the open surface in place without the overlay's behaviour.
|
|
73
|
+
*
|
|
74
|
+
* @tag tanrei-date-time-picker
|
|
75
|
+
* @csspart container - The surface: the native `<dialog>` (modal) or the popover (docked).
|
|
76
|
+
* @csspart header - The title row (and, in a modal picker with a date, the pending value).
|
|
77
|
+
* @csspart calendar - The `<tanrei-calendar>`.
|
|
78
|
+
* @csspart time - The time section: the range display across its width, the time display and the wheels or the dial.
|
|
79
|
+
* @csspart range-display - The two ends of a range that has a time: a group of two range fields and the dash between them.
|
|
80
|
+
* @csspart range-field - One end of the range (a button, `data-end` is `start` or `end`); `aria-pressed` on the one being set.
|
|
81
|
+
* @csspart range-separator - The en dash between the two range fields.
|
|
82
|
+
* @csspart wheel - The hour or the minute wheel; its middle row is the spin button, an input that takes typed digits.
|
|
83
|
+
* @csspart selector - The hour or the minute selector of the dial mode (a spin button).
|
|
84
|
+
* @csspart period - The period of a 12-hour time (a spin button of two values): the period wheel in the wheels mode, the period selector in the dial mode.
|
|
85
|
+
* @csspart separator - The separator between the hour and the minute.
|
|
86
|
+
* @csspart dial - The clock dial.
|
|
87
|
+
* @csspart handle - The handle over the chosen value.
|
|
88
|
+
* @csspart error - The line that says a range's end is before its start.
|
|
89
|
+
* @csspart actions - Cancel and OK.
|
|
90
|
+
* @fires {CustomEvent<TanreiDateTimePickerChangeDetail>} change - The person committed a choice that differs from the one before (OK, or choosing a date in a docked picker that sets a date only). `value`, `start` and `end` are already the new ones; `detail` holds them too. Fired before the `close` it causes.
|
|
91
|
+
* @fires {CustomEvent<TanreiDateTimePickerCloseDetail>} close - The picker asks to be closed: `detail.reason` is `escape`, `back`, `outside`, `tab`, `focus-out`, `cancel`, `confirm` or `select`. Set `open` to false.
|
|
92
|
+
*/
|
|
93
|
+
export declare class TanreiDateTimePicker extends LitElement {
|
|
94
|
+
private readonly availability;
|
|
95
|
+
private readonly system;
|
|
96
|
+
/** DTM-48: the product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
97
|
+
private readonly words;
|
|
98
|
+
/**
|
|
99
|
+
* DTM-48: the picker's own words, each the instance's prop, else the product's — and, for the hour's, the minute's and
|
|
100
|
+
* the period's names, else the locale's own name for that field, which is the platform's and not a word of Tanrei's.
|
|
101
|
+
* (The calendar reads its six itself, from the props the picker hands it.)
|
|
102
|
+
*/
|
|
103
|
+
private get say();
|
|
104
|
+
/**
|
|
105
|
+
* DTM-48: a word that is drawn or exposed now and that nobody gave — not the instance, not the product's words, not
|
|
106
|
+
* the platform — is recorded (`missingWords()`) and, in a debug build, reported once, naming the prop. The part is
|
|
107
|
+
* still drawn and still works. `label` is the instance's alone, and reported for this picker.
|
|
108
|
+
*/
|
|
109
|
+
private reportWords;
|
|
110
|
+
static styles: import("lit").CSSResult[];
|
|
111
|
+
static properties: PropertyDeclarations;
|
|
112
|
+
/** Whether the picker is shown. Open it from your field or button; set it to false when the picker fires `close`. */
|
|
113
|
+
open: boolean;
|
|
114
|
+
/** `modal`: a dialog over a scrim, committed by OK. `docked`: a surface below `anchor`. */
|
|
115
|
+
presentation: TanreiDateTimePickerPresentation;
|
|
116
|
+
/** `date`, `time` or `date-time`: what is chosen. */
|
|
117
|
+
mode: TanreiDateTimePickerMode;
|
|
118
|
+
/** Chooses a span (`start` … `end`) instead of one `value`: of dates, of times (the end may fall on the next day) or of both. */
|
|
119
|
+
range: boolean;
|
|
120
|
+
/** The chosen value without a range: "2026-09-17" (date), "19:30" (time, 24-hour), "2026-09-17T19:30" (date-time); empty when none. */
|
|
121
|
+
value: string;
|
|
122
|
+
/** The first value of the chosen span when `range` is true, in the mode's form; empty when none. */
|
|
123
|
+
start: string;
|
|
124
|
+
/** The last value of the chosen span when `range` is true, in the mode's form; empty while only `start` is chosen. */
|
|
125
|
+
end: string;
|
|
126
|
+
/** The earliest date that can be chosen (it bounds the calendar only); empty for no limit. */
|
|
127
|
+
min: string;
|
|
128
|
+
/** The latest date that can be chosen; empty for no limit. */
|
|
129
|
+
max: string;
|
|
130
|
+
/** Dates that cannot be chosen, passed to the calendar. The `disabled-dates` attribute is a space-separated list or a JSON array. */
|
|
131
|
+
disabledDates: string[];
|
|
132
|
+
/** A rule no list can hold (every weekend): true for an ISO date that cannot be chosen. Passed to the calendar. Property only. */
|
|
133
|
+
isDateDisabled: ((date: string) => boolean) | null;
|
|
134
|
+
/** The date the calendar draws as today; empty uses the device's current date. */
|
|
135
|
+
today: string;
|
|
136
|
+
/** The weekday in the calendar's first column (`first-day-of-week`). */
|
|
137
|
+
firstDayOfWeek: string;
|
|
138
|
+
/** A BCP 47 tag ("en-US", "ja-JP") for names, digits, forms, the separator and the clock; empty: the nearest `lang`, then the browser's. */
|
|
139
|
+
locale: string;
|
|
140
|
+
/** Whether the calendar opens on the days of a month or on the list of years (`start-view`). */
|
|
141
|
+
startView: string;
|
|
142
|
+
/** Whether the calendar shows the neighbouring months' days in its spare cells (`show-adjacent-days`). */
|
|
143
|
+
showAdjacentDays: boolean;
|
|
144
|
+
/** `h12` (1–12 with a period), `h23` (00–23) or `locale` (the locale's clock). Values are 24-hour in every cycle (`hour-cycle`). */
|
|
145
|
+
hourCycle: TanreiDateTimePickerHourCycle;
|
|
146
|
+
/** The minutes a person can choose: every minute (1), or every 5, 10, 15 or 30 (`minute-step`). */
|
|
147
|
+
minuteStep: number;
|
|
148
|
+
/** How the time is set when the picker opens (`entry-mode`): `wheels` or `dial`. Not HTML's `inputmode`. */
|
|
149
|
+
entryMode: TanreiDateTimePickerEntryMode;
|
|
150
|
+
/** Dial mode: the unit the dial shows, and the selector that takes focus, when the picker opens. */
|
|
151
|
+
unit: TanreiDateTimePickerUnit;
|
|
152
|
+
/** `vertical`, `horizontal`, or `auto`: horizontal only when the window is too short for vertical and wide enough. */
|
|
153
|
+
layout: TanreiDateTimePickerLayout;
|
|
154
|
+
/** Names the picker: its surface's accessible name and the start of its title row — what is being chosen ("Check-in", "Meeting time"). Required, and this instance's alone: the product's words hold none. Empty, the title row draws no words and keeps its height, and the surface has no name. */
|
|
155
|
+
label: string;
|
|
156
|
+
/** What the header shows for a date not chosen yet: a single value's, and either end's of a range (`date-label`). This instance's words, else the product's (`setWords({ dateLabel })`); Tanrei has none: without them nothing is drawn there, and the place keeps its height. */
|
|
157
|
+
dateLabel: string;
|
|
158
|
+
/** Range: the accessible name of the start's range field and the calendar's start day's description; never drawn (`start-label`). This instance's words, else the product's (`setWords({ startLabel })`); Tanrei has none: without them the field and the day say nothing of it. */
|
|
159
|
+
startLabel: string;
|
|
160
|
+
/** Range: the accessible name of the end's range field and the calendar's end day's description; never drawn (`end-label`). This instance's words, else the product's (`setWords({ endLabel })`); Tanrei has none: without them the field and the day say nothing of it. */
|
|
161
|
+
endLabel: string;
|
|
162
|
+
/** OK's label (`confirm-label`). This instance's words, else the product's (`setWords({ confirmLabel })`); Tanrei has none: without them an icon-only Button with the check glyph, unnamed. */
|
|
163
|
+
confirmLabel: string;
|
|
164
|
+
/** Cancel's label (`cancel-label`). This instance's words, else the product's (`setWords({ cancelLabel })`); Tanrei has none: without them an icon-only Button with the close glyph, unnamed. */
|
|
165
|
+
cancelLabel: string;
|
|
166
|
+
/** Passed to the calendar (`previous-month-label`). This instance's words, else the product's (`setWords({ previousMonthLabel })`); Tanrei has none: without them the button is drawn and works, unnamed. */
|
|
167
|
+
previousMonthLabel: string;
|
|
168
|
+
/** Passed to the calendar (`next-month-label`). This instance's words, else the product's (`setWords({ nextMonthLabel })`); Tanrei has none: without them the button is drawn and works, unnamed. */
|
|
169
|
+
nextMonthLabel: string;
|
|
170
|
+
/** Passed to the calendar (`year-view-label`). This instance's words, else the product's (`setWords({ yearViewLabel })`); Tanrei has none: without them the view toggle has no description. */
|
|
171
|
+
yearViewLabel: string;
|
|
172
|
+
/** Passed to the calendar (`today-label`). This instance's words, else the product's (`setWords({ todayLabel })`); Tanrei has none: without them the locale's own word for the present day, from the browser. */
|
|
173
|
+
todayLabel: string;
|
|
174
|
+
/** The accessible name of the hour wheel and the hour selector (`hour-label`). This instance's words, else the product's (`setWords({ hourLabel })`); Tanrei has none: without them the locale's own name for the hour, from the browser. */
|
|
175
|
+
hourLabel: string;
|
|
176
|
+
/** The accessible name of the minute wheel and the minute selector (`minute-label`). This instance's words, else the product's (`setWords({ minuteLabel })`); Tanrei has none: without them the locale's own name for the minute, from the browser. */
|
|
177
|
+
minuteLabel: string;
|
|
178
|
+
/** The accessible name of the entry-mode tab that shows the wheels, which draws the keyboard glyph alone (`wheels-label`). This instance's words, else the product's (`setWords({ wheelsLabel })`); Tanrei has none: without them the tab is drawn and works, unnamed. */
|
|
179
|
+
wheelsLabel: string;
|
|
180
|
+
/** The accessible name of the entry-mode tab that shows the dial, which draws the schedule glyph alone (`dial-label`). This instance's words, else the product's (`setWords({ dialLabel })`); Tanrei has none: without them the tab is drawn and works, unnamed. */
|
|
181
|
+
dialLabel: string;
|
|
182
|
+
/** The accessible name of the row of entry-mode tabs (`entry-mode-label`). This instance's words, else the product's (`setWords({ entryModeLabel })`); Tanrei has none: without them the row of tabs has no name. */
|
|
183
|
+
entryModeLabel: string;
|
|
184
|
+
/** The accessible name of the period — the period wheel or the period selector, a spin button (`period-label`). This instance's words, else the product's (`setWords({ periodLabel })`); Tanrei has none: without them the locale's own name for the day period, from the browser. */
|
|
185
|
+
periodLabel: string;
|
|
186
|
+
/** The accessible name of the range display, the group of the two range fields (`range-label`). This instance's words, else the product's (`setWords({ rangeLabel })`); Tanrei has none: without them the group has no name. */
|
|
187
|
+
rangeLabel: string;
|
|
188
|
+
/** Mode time with a range: added after the end's time, in its range field and its accessible name, while it falls on the next day (`next-day-label`). This instance's words, else the product's (`setWords({ nextDayLabel })`); Tanrei has none: without them "+1" in the locale's digits. */
|
|
189
|
+
nextDayLabel: string;
|
|
190
|
+
/** Mode date-time with a range: the error line while the end is before the start (`range-error-text`). This instance's words, else the product's (`setWords({ rangeErrorText })`); Tanrei has none: without them the line draws no words and keeps its height; OK is still disabled. */
|
|
191
|
+
rangeErrorText: string;
|
|
192
|
+
/** Docked: the id of the element the surface is placed against (as the menu's `anchor`), in the picker's own document or shadow root. */
|
|
193
|
+
anchor: string;
|
|
194
|
+
/** Docked: the id of the element that opens the picker, when it is not the anchor (a text field's picker button). It gets `aria-haspopup`, `aria-controls` and `aria-expanded`. */
|
|
195
|
+
opener: string;
|
|
196
|
+
/** For tests and documentation: draws the open surface in place (DTM-1's verify), without the overlay's behaviour. */
|
|
197
|
+
inline: boolean;
|
|
198
|
+
/** The choice shown, from opening to OK (DTM-6). */
|
|
199
|
+
protected pending: Choice;
|
|
200
|
+
/** Which end the time section sets (DTM-15): `value` without a range. */
|
|
201
|
+
protected editing: End;
|
|
202
|
+
/** The entry mode shown (DTM-13). */
|
|
203
|
+
protected entry: TanreiDateTimePickerEntryMode;
|
|
204
|
+
/** The unit the dial shows (DTM-21). */
|
|
205
|
+
protected shownUnit: Unit;
|
|
206
|
+
/** DTM-26: the handle's angle, kept continuous so that a change turns it along the shorter arc. */
|
|
207
|
+
protected angle: number;
|
|
208
|
+
/** DTM-25: the handle moves without animation (a drag, or the picker just opened). */
|
|
209
|
+
protected instant: boolean;
|
|
210
|
+
/** DTM-34: the actions are a column. */
|
|
211
|
+
protected stacked: boolean;
|
|
212
|
+
/** DTM-19: a count that renders the wheels again while they follow a pointer. */
|
|
213
|
+
protected wheelFrame: number;
|
|
214
|
+
/** DTM-43, DTM-44: the typed entry in progress — the wheel or the selector it is on, and the digits read so far. */
|
|
215
|
+
protected typed: {
|
|
216
|
+
unit: Unit;
|
|
217
|
+
digits: string;
|
|
218
|
+
} | null;
|
|
219
|
+
/**
|
|
220
|
+
* DTM-44: the wheel that an hour's finished entry moved on to. Its input takes text — so that an on-screen keyboard
|
|
221
|
+
* stays up — though no entry has begun on it: the next digit begins one.
|
|
222
|
+
*/
|
|
223
|
+
protected armed: Unit | null;
|
|
224
|
+
/**
|
|
225
|
+
* DTM-20, DTM-47: the wheel — or the period, wheel or selector — whose focus is keyboard focus, and so shows its ring.
|
|
226
|
+
* An input's own `:focus-visible` cannot tell, and whether a key pressed after a pointer press makes a focused element
|
|
227
|
+
* match it is each browser's own guess: the picker keeps the answer itself, so every engine draws the same.
|
|
228
|
+
*/
|
|
229
|
+
protected ringed: Unit | 'period' | null;
|
|
230
|
+
/**
|
|
231
|
+
* DTM-28: the range field whose focus is keyboard focus, kept by the picker for the same reason: after a press and
|
|
232
|
+
* then Space or Enter one engine draws no ring on a button it still reads as focused by the pointer.
|
|
233
|
+
*/
|
|
234
|
+
protected ringedEnd: RangeEnd | null;
|
|
235
|
+
private cfg;
|
|
236
|
+
private session;
|
|
237
|
+
private shown;
|
|
238
|
+
private presenting;
|
|
239
|
+
private closeRequested;
|
|
240
|
+
/** The choice the picker opened with, in the mode's form (DTM-6). */
|
|
241
|
+
private openedWith;
|
|
242
|
+
/** DTM-4: where focus was when it opened. */
|
|
243
|
+
private returnTo;
|
|
244
|
+
private lastLayout;
|
|
245
|
+
private listening;
|
|
246
|
+
private pressedScrim;
|
|
247
|
+
private dragging;
|
|
248
|
+
/** DTM-33: the error line was shown at the last update (it is announced when it appears). */
|
|
249
|
+
private errorShown;
|
|
250
|
+
/** DTM-20: a press on a wheel is about to focus its input (no ring), or the next focus was asked to show one or not. */
|
|
251
|
+
private wheelPress;
|
|
252
|
+
private nextRing;
|
|
253
|
+
/** DTM-45: the Escape that ended a typed entry closes nothing: when the key was pressed. */
|
|
254
|
+
private escapeSpent;
|
|
255
|
+
/** DTM-45: how much of the window the on-screen keyboard covered at the last look. */
|
|
256
|
+
private keyboard;
|
|
257
|
+
private readonly wheels;
|
|
258
|
+
/** DTM-46: the period wheel — its rows' position is 0 before noon and 1 after, and never past either. */
|
|
259
|
+
private readonly periodWheel;
|
|
260
|
+
private readonly placement;
|
|
261
|
+
private readonly resize$;
|
|
262
|
+
/** DTM-29, DTM-30: each selector is pressed on its own (data-pressed, press-hold, the ripple). */
|
|
263
|
+
private readonly presses;
|
|
264
|
+
/** DTM-14: and the period selector, which answers a press as an unselected selector does. */
|
|
265
|
+
private readonly periodPress;
|
|
266
|
+
/** DTM-29, DTM-30: and each range field. */
|
|
267
|
+
private readonly rangePresses;
|
|
268
|
+
constructor();
|
|
269
|
+
connectedCallback(): void;
|
|
270
|
+
disconnectedCallback(): void;
|
|
271
|
+
private closed;
|
|
272
|
+
/** DTM-38: `locale`, else the nearest `lang` (through shadow roots), else the browser's language; English when `Intl` does not know it. */
|
|
273
|
+
private resolveLocale;
|
|
274
|
+
/** DTM-8, DTM-40: a value in the mode's form as a moment, or null (reported) when it is not one. */
|
|
275
|
+
private parseMoment;
|
|
276
|
+
private readConfig;
|
|
277
|
+
/** DTM-8: a moment in the mode's form; `""` while a part the mode needs is missing. */
|
|
278
|
+
private momentText;
|
|
279
|
+
private detailOf;
|
|
280
|
+
private get hasDate();
|
|
281
|
+
private get hasTime();
|
|
282
|
+
private get modal();
|
|
283
|
+
/** DTM-6, DTM-7: whether the choice is pending until OK (every picker but a docked one for a date only). */
|
|
284
|
+
private get pendingUntilOk();
|
|
285
|
+
/** DTM-13: the entry modes the design system offers, read from the cascade now. */
|
|
286
|
+
private get offered();
|
|
287
|
+
/** The entry mode shown: the one chosen, or the only one offered (DTM-13). */
|
|
288
|
+
private get shownEntry();
|
|
289
|
+
private initSession;
|
|
290
|
+
/** The pending time of the end the time section sets. */
|
|
291
|
+
private get time();
|
|
292
|
+
private setTime;
|
|
293
|
+
/** DTM-6: OK is enabled while the pending choice is complete and a date-time range's end is not before its start. */
|
|
294
|
+
private get confirmable();
|
|
295
|
+
/** DTM-33: a date-time range whose pending end is before its start. */
|
|
296
|
+
private get rangeError();
|
|
297
|
+
/** DTM-33: a time range's end at or before its start falls on the next day. */
|
|
298
|
+
private get nextDay();
|
|
299
|
+
/** DTM-6, DTM-7: the pending choice becomes the element's — `change` if it differs — then `close` with the reason. */
|
|
300
|
+
private commit;
|
|
301
|
+
/** DTM-5: asks the product to close the picker, once, with the reason. */
|
|
302
|
+
private requestClose;
|
|
303
|
+
private readonly onConfirm;
|
|
304
|
+
private readonly onCancel;
|
|
305
|
+
private readonly onCalendarChange;
|
|
306
|
+
private readonly onEntryTabs;
|
|
307
|
+
/**
|
|
308
|
+
* DTM-42: the range field of `end` becomes the selected one — the wheels, the time display, the period and the
|
|
309
|
+
* dial show and set that end's pending time (moving to it, DTM-26). A typed entry ends first; no pending time changes
|
|
310
|
+
* and nothing is emitted. Selecting the selected one changes nothing.
|
|
311
|
+
*/
|
|
312
|
+
private selectEnd;
|
|
313
|
+
/** DTM-42: a press, Enter or Space on a range field selects it (a native button's click); focus alone does not. */
|
|
314
|
+
private readonly rangeHandlers;
|
|
315
|
+
private readonly startHandlers;
|
|
316
|
+
private readonly endHandlers;
|
|
317
|
+
/** The hours of the clock in use, as drawn: 1–12, or 0–23. */
|
|
318
|
+
private get hourValues();
|
|
319
|
+
private get minuteValues();
|
|
320
|
+
private values;
|
|
321
|
+
/** The index in its list of the pending value of `unit`. */
|
|
322
|
+
private indexOf;
|
|
323
|
+
/** The time with `unit` set to the list's entry at `index` (the period kept: DTM-19, DTM-20). */
|
|
324
|
+
private withIndex;
|
|
325
|
+
/** DTM-20, DTM-22: the keys of a wheel or a selector. Returns the new time, or null for a key that is not theirs. */
|
|
326
|
+
private keyTime;
|
|
327
|
+
/** DTM-20, DTM-22: a spin button's value as drawn, the hour with the period's name in the 12-hour clock ("7 AM"). */
|
|
328
|
+
private valueText;
|
|
329
|
+
private spinAria;
|
|
330
|
+
/** Brings each wheel's rows to its pending value, along the shorter way, unless a pointer or a settle is moving it. */
|
|
331
|
+
private syncWheels;
|
|
332
|
+
/** The wheel an event of its own, or of its input, is about. */
|
|
333
|
+
/** A wheel's rows at its pending value now, along the shorter way — also while a pointer holds it: what a drag or a scroll that ended a typed entry goes on from (DTM-45). */
|
|
334
|
+
private alignWheel;
|
|
335
|
+
private wheelOf;
|
|
336
|
+
/** A wheel's control: the input on its middle row (DTM-20, DTM-43). */
|
|
337
|
+
private spin;
|
|
338
|
+
/** The height of a row in px (row.height, at least the target: DTM-32), and the settle's duration in ms (DTM-19). */
|
|
339
|
+
private rowMetrics;
|
|
340
|
+
/** DTM-19: the rows settle `rows` rows on (a drag's end, a fling, a press on a row) and the value is taken once they have. */
|
|
341
|
+
private settle;
|
|
342
|
+
private readonly onWheelPointerDown;
|
|
343
|
+
private readonly onWheelPointerMove;
|
|
344
|
+
private readonly onWheelPointerUp;
|
|
345
|
+
private readonly onWheelPointerCancel;
|
|
346
|
+
/** A press on a row of a wheel keeps the focus on the wheel's input: the rows take none, and the page gets none. */
|
|
347
|
+
private readonly onWheelMouseDown;
|
|
348
|
+
/** DTM-19: a scroll moves the rows; when it stops, the nearest row settles. */
|
|
349
|
+
private readonly onWheelScroll;
|
|
350
|
+
/**
|
|
351
|
+
* DTM-20: the keys of a wheel; the rows move over the wheel motion. DTM-43 … DTM-45: a digit begins or goes on with
|
|
352
|
+
* a typed entry, and while one lasts the keys that move the wheel end it first, keeping what it read.
|
|
353
|
+
*/
|
|
354
|
+
private readonly onWheelKeyDown;
|
|
355
|
+
/**
|
|
356
|
+
* DTM-20: a wheel shows its ring for focus from the keyboard only. Its control is a text input, which matches
|
|
357
|
+
* `:focus-visible` however it was focused, so the wheel says itself: no ring after a press on it, the ring it was
|
|
358
|
+
* asked for when the picker moved the focus, and the ring otherwise (Tab).
|
|
359
|
+
*/
|
|
360
|
+
private readonly onSpinFocus;
|
|
361
|
+
/**
|
|
362
|
+
* DTM-20: a wheel that has just been worked by the keyboard — a digit, a key that moves it, a key that ends its entry,
|
|
363
|
+
* text from an on-screen keyboard — holds keyboard focus from then on, however focus first reached it: the wheel that
|
|
364
|
+
* has focus now shows its ring. So the minute wheel shows where focus is once the hour's entry has moved on to it
|
|
365
|
+
* (DTM-44), and a wheel whose entry has ended still does, where a press on it had shown none.
|
|
366
|
+
*/
|
|
367
|
+
private ringKeyed;
|
|
368
|
+
/** DTM-45: focus leaving a wheel ends its typed entry, keeping what it read. */
|
|
369
|
+
private readonly onSpinBlur;
|
|
370
|
+
/**
|
|
371
|
+
* DTM-44: text that reaches a wheel's input without a key the picker read — an on-screen keyboard's digits, a paste —
|
|
372
|
+
* is read as its characters typed in order. The input itself shows only what the entry holds.
|
|
373
|
+
*/
|
|
374
|
+
private readonly onSpinInput;
|
|
375
|
+
/** The digits read so far as they are shown: in the locale's digits, as the values around them are (DTM-44). */
|
|
376
|
+
private typedText;
|
|
377
|
+
/** The digit a typed character is, ASCII or the locale's (DTM-44); null for any other character. */
|
|
378
|
+
private digitOf;
|
|
379
|
+
/** Whether `value` is a value of `unit`: an hour of the clock in use, or a minute (DTM-44). */
|
|
380
|
+
private isValue;
|
|
381
|
+
/** Whether a second digit could join `first` (DTM-44): not after 2–9 for the 12-hour hour, 3–9 for the 24-hour one, 6–9 for the minute. */
|
|
382
|
+
private canJoin;
|
|
383
|
+
/**
|
|
384
|
+
* DTM-43: a typed entry begins on `unit`. In the wheels mode the wheel takes focus and its input takes text, so that
|
|
385
|
+
* an on-screen keyboard comes up for it (`raise`: within the press that began it, where a platform asks for that).
|
|
386
|
+
*/
|
|
387
|
+
private beginEntry;
|
|
388
|
+
/**
|
|
389
|
+
* DTM-45: the typed entry ends. Kept, what it read becomes the pending value where it is a value of the unit — a
|
|
390
|
+
* minute rounded down to minuteStep (DTM-8), an hour of the 12-hour clock in the pending period — and the wheel's rows
|
|
391
|
+
* or the dial's handle move to it; nothing typed, or no value (0 alone for the 12-hour hour), keeps the value it had.
|
|
392
|
+
*/
|
|
393
|
+
private endEntry;
|
|
394
|
+
/**
|
|
395
|
+
* DTM-44: the hour's entry has ended by its digits or by a separator: focus moves to the minute — the minute wheel,
|
|
396
|
+
* whose input takes text from now on (the next digit begins its entry), or the minute selector.
|
|
397
|
+
*/
|
|
398
|
+
private moveOn;
|
|
399
|
+
/** DTM-44: reads `text` as typed on `unit`, character by character, each on the unit the one before left the entry at. */
|
|
400
|
+
private readTyped;
|
|
401
|
+
/** DTM-44: one typed character on `unit`. Returns the unit the next character is read on. */
|
|
402
|
+
private readChar;
|
|
403
|
+
/**
|
|
404
|
+
* DTM-43 … DTM-45: a key on a wheel or a selector, as a typed entry reads it. A digit begins an entry or goes on with
|
|
405
|
+
* it. While one lasts: Backspace removes the last digit; Enter ends it, keeping what it read, and presses nothing;
|
|
406
|
+
* Escape ends it with the value it had and closes nothing; the separator moves an hour on to the minute; any other
|
|
407
|
+
* character is ignored. Returns whether the key was the entry's.
|
|
408
|
+
*/
|
|
409
|
+
private entryKey;
|
|
410
|
+
/**
|
|
411
|
+
* DTM-14, DTM-47: `period` (0 before noon, 1 after) becomes the pending period. The hour's number and the minute stay,
|
|
412
|
+
* the dial's handle stays where it is (the same angle), and neither the unit the dial shows nor the selected selector
|
|
413
|
+
* changes. A typed entry ends first, keeping what it read.
|
|
414
|
+
*/
|
|
415
|
+
private setPeriod;
|
|
416
|
+
/**
|
|
417
|
+
* DTM-47: the keys of the period — Up and Down change it (it has two values), and on the period selector Right and
|
|
418
|
+
* Left too, in every layout direction; Home is before noon, End after; Enter and Space do what Up does. Returns the
|
|
419
|
+
* period the key asks for, or null for a key that is not the period's (a digit or a letter is ignored).
|
|
420
|
+
*/
|
|
421
|
+
private periodKey;
|
|
422
|
+
/** DTM-14: the period selector — a press, Enter or Space changes it to the other period; it shows no unit and is never selected. */
|
|
423
|
+
private readonly periodHandlers;
|
|
424
|
+
/**
|
|
425
|
+
* DTM-47, as DTM-20 for the other wheels: a key that works the period makes its focus keyboard focus, however focus
|
|
426
|
+
* first reached it — after a press and then an arrow, the ring says where focus is.
|
|
427
|
+
*/
|
|
428
|
+
private ringPeriod;
|
|
429
|
+
private get periodControl();
|
|
430
|
+
/** DTM-46: the period wheel's rows settle on `period` over the wheel motion, and the period is taken once they have. */
|
|
431
|
+
private settlePeriod;
|
|
432
|
+
/** DTM-46: how far the rows may be moved off their place, in rows: to the first name and to the last, and no further. */
|
|
433
|
+
private periodShift;
|
|
434
|
+
private readonly onPeriodPointerDown;
|
|
435
|
+
private readonly onPeriodPointerMove;
|
|
436
|
+
private readonly onPeriodPointerUp;
|
|
437
|
+
private readonly onPeriodPointerCancel;
|
|
438
|
+
/** DTM-46: a scroll moves the rows, to the first and the last name at most; when it stops, the nearer name settles. */
|
|
439
|
+
private readonly onPeriodScroll;
|
|
440
|
+
private readonly onPeriodKeyDown;
|
|
441
|
+
/** DTM-22: a selector focused or pressed shows its unit on the dial and is drawn as selected. */
|
|
442
|
+
private showUnit;
|
|
443
|
+
private readonly selectorHandlers;
|
|
444
|
+
private readonly hourHandlers;
|
|
445
|
+
private readonly minuteHandlers;
|
|
446
|
+
/** The angle of the pending value of the unit shown, clockwise from the top (0–359). */
|
|
447
|
+
private targetAngle;
|
|
448
|
+
/** On the 24-hour hour dial, 12 to 23 are on the inner ring. */
|
|
449
|
+
private get innerRing();
|
|
450
|
+
/** DTM-25: the value under a point — the nearest angle's, on the nearer ring for the 24-hour hour dial, a minute of the step. */
|
|
451
|
+
private setFromPoint;
|
|
452
|
+
private readonly onDialDown;
|
|
453
|
+
private readonly onDialMove;
|
|
454
|
+
/** DTM-25: a press or drag on the hour dial ends — the minute dial, its selector selected, and focus moved there from the hour's. */
|
|
455
|
+
private readonly onDialUp;
|
|
456
|
+
private readonly onDialCancel;
|
|
457
|
+
private element;
|
|
458
|
+
private get anchorElement();
|
|
459
|
+
private get openerElement();
|
|
460
|
+
/** Whether `node` is the anchor or the opener, or inside one. */
|
|
461
|
+
private atAnchor;
|
|
462
|
+
private get surface();
|
|
463
|
+
/** DTM-5: Escape; Tab (the modal keeps focus in, the docked one lets it leave and closes). */
|
|
464
|
+
private readonly onSurfaceKeyDown;
|
|
465
|
+
/** DTM-5: the native dialog's cancel is `escape` when an Escape key caused it, and the platform's `back` otherwise. */
|
|
466
|
+
private readonly onNativeCancel;
|
|
467
|
+
/** DTM-45: a press elsewhere in the picker — anywhere but the wheel or the selector the entry is on — ends a typed entry, keeping what it read. */
|
|
468
|
+
private readonly onSurfacePointerDown;
|
|
469
|
+
/** DTM-5: a press that starts and ends on a modal picker's scrim. */
|
|
470
|
+
private readonly onDialogPointerDown;
|
|
471
|
+
private readonly onDialogClick;
|
|
472
|
+
private onScrim;
|
|
473
|
+
/** A press on something in the docked surface that takes no focus keeps focus where it is. */
|
|
474
|
+
private readonly onSurfaceMouseDown;
|
|
475
|
+
/** DTM-5: focus moving out of a docked picker — anywhere but its anchor and opener — asks to close. */
|
|
476
|
+
private readonly onFocusOut;
|
|
477
|
+
/** DTM-5: a press outside a docked picker and its anchor asks to close; the press also reaches what is under it. */
|
|
478
|
+
private readonly onOutsidePress;
|
|
479
|
+
private listen;
|
|
480
|
+
/** DTM-2, DTM-36: a docked picker below its anchor (flipped, shifted, its height limited to the room), following it. */
|
|
481
|
+
private place;
|
|
482
|
+
/**
|
|
483
|
+
* DTM-2: the docked container follows its anchor while it moves (scrolling, layout, the viewport) — asked by
|
|
484
|
+
* FollowController when something can have moved, frame by frame only while something does.
|
|
485
|
+
*/
|
|
486
|
+
private readonly follow;
|
|
487
|
+
private readonly following;
|
|
488
|
+
private stopFollowing;
|
|
489
|
+
/** DTM-1: above the on-screen keyboard; DTM-9: the layout is decided again when the window changes. */
|
|
490
|
+
private readonly onWindow;
|
|
491
|
+
/**
|
|
492
|
+
* DTM-9, DTM-34, DTM-36: the layout — vertical or horizontal as `layout` says; for auto, horizontal only when the
|
|
493
|
+
* vertical one does not fit the window's height and the horizontal one fits its width — the actions in a row or a
|
|
494
|
+
* column, and the whole surface scrolling as one when the header and the actions leave no room between them.
|
|
495
|
+
*/
|
|
496
|
+
private arrange;
|
|
497
|
+
/** DTM-1, DTM-2, DTM-3: the overlay is presented and focus moves in — when it opens, not when its motion ends. */
|
|
498
|
+
private present;
|
|
499
|
+
/**
|
|
500
|
+
* DTM-3: focus to the calendar's active day (or displayed year), the hour wheel, or the selector of `unit`. The ring
|
|
501
|
+
* shows when the picker was opened from the keyboard — from an element that showed its own keyboard focus — and not
|
|
502
|
+
* when it was opened by a press or with the page.
|
|
503
|
+
*/
|
|
504
|
+
private focusInitial;
|
|
505
|
+
/** DTM-4: focus back where it was when the picker opened (the opener, then the anchor, when that is gone). */
|
|
506
|
+
private returnFocus;
|
|
507
|
+
/** Whether `node` is in the picker, its shadow root, or the shadow root of an element it draws. */
|
|
508
|
+
private inside;
|
|
509
|
+
/** DTM-4, DTM-35: out of the top layer (fading), the page given back, focus back where it was if it was inside. */
|
|
510
|
+
private withdraw;
|
|
511
|
+
/** DTM-37: the element that opens a docked picker says it opens a dialog, whether it is open, and which. */
|
|
512
|
+
private syncOpener;
|
|
513
|
+
/** DTM-13: the entry-mode tabs control their panel (the row sets none of its own: it has no panels). */
|
|
514
|
+
private linkPanels;
|
|
515
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
516
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
517
|
+
/** DTM-10, DTM-48: the title's words and the surface's name — `label`, the instance's alone; nothing while it is empty. */
|
|
518
|
+
private get heading();
|
|
519
|
+
/**
|
|
520
|
+
* DTM-10: the pending choice in the header — a date with its weekday, a range joined by an en dash, a date not chosen
|
|
521
|
+
* yet as `dateLabel`, for a single value and for either end of a range: no word for start or end is drawn. Each part of
|
|
522
|
+
* a range is an isolated run (`<bdi>`: a date as its locale writes it, or the product's word), and the two stand in
|
|
523
|
+
* reading order around the dash: in a right-to-left layout the start is at its right.
|
|
524
|
+
*/
|
|
525
|
+
private renderValue;
|
|
526
|
+
/**
|
|
527
|
+
* DTM-13: the entry-mode tabs — two icon-only tabs that hug, the keyboard glyph for the wheels at the start and the
|
|
528
|
+
* schedule glyph for the dial at the end. No word is drawn: `wheelsLabel` and `dialLabel` are their accessible names.
|
|
529
|
+
*/
|
|
530
|
+
private renderEntryTabs;
|
|
531
|
+
/** DTM-10: the title row (and in a modal picker with a date, the value and the divider below it). */
|
|
532
|
+
private renderHeader;
|
|
533
|
+
/** DTM-11: the calendar, in single or range mode, given the pending dates and the picker's words; no label of its own. */
|
|
534
|
+
private renderCalendar;
|
|
535
|
+
/**
|
|
536
|
+
* DTM-15, DTM-42: the range display — the start's range field, an en dash and the end's, in reading order. Each field
|
|
537
|
+
* is a button that holds its end's pending time as the locale writes it (an isolated run), "next day" after an
|
|
538
|
+
* overnight end; no word says start or end. The one the time section sets is drawn from the selected selector's
|
|
539
|
+
* tokens and is the pressed one; assistive technology hears "Start, 9:00 AM" in a group named rangeLabel. The error
|
|
540
|
+
* line, while it is shown, describes the end's field (DTM-33).
|
|
541
|
+
*/
|
|
542
|
+
private renderRangeDisplay;
|
|
543
|
+
/** DTM-14: whether the locale writes the period before the hour ("午前7:30"); otherwise it stands after the minute. */
|
|
544
|
+
private get periodFirst();
|
|
545
|
+
/** The two names of the period, each in the same place: the part is as wide as the wider needs, whichever is shown. */
|
|
546
|
+
private periodNames;
|
|
547
|
+
/**
|
|
548
|
+
* DTM-46, DTM-47: the period wheel — two rows, the name before noon above the one after, that do not run on; the
|
|
549
|
+
* pending period on its selection container (its own, or its part of the joined band). Its control is its middle row,
|
|
550
|
+
* a spin button of two values that takes no text: a period is not typed.
|
|
551
|
+
*/
|
|
552
|
+
private renderPeriodWheel;
|
|
553
|
+
/**
|
|
554
|
+
* DTM-14, DTM-47: the period selector — a spin button of two values that shows the pending period's name and changes
|
|
555
|
+
* to the other on a press. It is drawn from the unselected selector's tokens in every state: it never takes the
|
|
556
|
+
* selected class, which marks the unit the dial sets.
|
|
557
|
+
*/
|
|
558
|
+
private renderPeriodSelector;
|
|
559
|
+
private separator;
|
|
560
|
+
/**
|
|
561
|
+
* DTM-18, DTM-20, DTM-43: one wheel — its rows running on past its ends, the pending value on its selection container
|
|
562
|
+
* — whose control is its middle row: a native input that is a spin button, read-only until a number is typed into it,
|
|
563
|
+
* showing the digits typed in place of the value.
|
|
564
|
+
*/
|
|
565
|
+
private renderWheel;
|
|
566
|
+
/**
|
|
567
|
+
* DTM-18: the hour wheel, the separator and the minute wheel, left to right — each wheel on a selection container of
|
|
568
|
+
* its own, or, where the system joins them (wheel.selection.span, read from the cascade now), on one band. DTM-46: with
|
|
569
|
+
* the 12-hour clock the period wheel beside them, after the minute or before the hour as the locale writes a time —
|
|
570
|
+
* its side follows the layout direction, the digits do not (DTM-39) — on the same band where the span is joined.
|
|
571
|
+
*/
|
|
572
|
+
private renderWheels;
|
|
573
|
+
/**
|
|
574
|
+
* DTM-12: what the other entry mode needs of the section's width, measured and never drawn — the time display beside
|
|
575
|
+
* or above the dial for the wheels mode, the wheels for the dial mode — so that the section is as wide in the one mode
|
|
576
|
+
* as in the other and switching does not change the picker's width. Only where the system offers both.
|
|
577
|
+
*/
|
|
578
|
+
private renderMeasure;
|
|
579
|
+
/** DTM-21, DTM-22: a selector — a spin button drawn from its condition. */
|
|
580
|
+
private renderSelector;
|
|
581
|
+
/** DTM-23: the numbers of a unit around the dial, clockwise from the top (two rings for the 24-hour hours). */
|
|
582
|
+
private dialNumbers;
|
|
583
|
+
private numbers;
|
|
584
|
+
/** DTM-23 … DTM-25: the dial, its numbers, the handle over the pending value and the track to it; hidden from assistive technology. */
|
|
585
|
+
private renderDial;
|
|
586
|
+
/**
|
|
587
|
+
* DTM-12: the time section, top to bottom — the range display across its whole width, the time display (dial) and the
|
|
588
|
+
* wheels or the dial; the time display is the row next to the dial. DTM-14: the period of a 12-hour time is a part of
|
|
589
|
+
* the time display (the period selector) and of the wheels (the period wheel) — after the minute, or before the hour
|
|
590
|
+
* where the locale writes it first; its side follows the layout direction while the hour, the separator and the minute
|
|
591
|
+
* stay left to right (DTM-39). There is no row of tabs in the section.
|
|
592
|
+
*/
|
|
593
|
+
private renderTime;
|
|
594
|
+
/** DTM-34: Cancel and OK, placed as a full-width Button group places a dismissive and a confirming item. */
|
|
595
|
+
private renderActions;
|
|
596
|
+
protected render(): TemplateResult<1>;
|
|
597
|
+
}
|
|
598
|
+
declare global {
|
|
599
|
+
interface HTMLElementTagNameMap {
|
|
600
|
+
'tanrei-date-time-picker': TanreiDateTimePicker;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
export {};
|