@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,401 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import { type TanreiCarouselHeroAlignment } from './carousel-geometry.js';
|
|
3
|
+
export type { TanreiCarouselHeroAlignment } from './carousel-geometry.js';
|
|
4
|
+
/**
|
|
5
|
+
* With fluid widths, where a narrowed item's content is anchored: `center` shows its middle; `toward-hero` aligns the
|
|
6
|
+
* items after the hero to their start and the items before it to their end (CRL-15).
|
|
7
|
+
*/
|
|
8
|
+
export type TanreiCarouselContentAlignment = 'center' | 'toward-hero';
|
|
9
|
+
/** The detail of `pausedchange`: the new value of `paused`. */
|
|
10
|
+
export interface TanreiCarouselPausedChangeDetail {
|
|
11
|
+
paused: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** What the carousel tells each of its items. */
|
|
14
|
+
interface ItemContext {
|
|
15
|
+
tabStop: boolean;
|
|
16
|
+
position: number;
|
|
17
|
+
size: number;
|
|
18
|
+
}
|
|
19
|
+
/** Where the carousel draws an item (CRL-12, CRL-15, CRL-26, CRL-40), in CSS px. */
|
|
20
|
+
interface ItemPlacement {
|
|
21
|
+
/** The drawn container's start from the carousel's start edge, along the reading direction: on a device pixel. */
|
|
22
|
+
start: number;
|
|
23
|
+
/** The drawn container's width: to the next item's start less the gap (CRL-40), after any scale. */
|
|
24
|
+
width: number;
|
|
25
|
+
/** The width its content is laid out at: H. */
|
|
26
|
+
content: number;
|
|
27
|
+
/** The content box's physical left edge in the container (after the scale). */
|
|
28
|
+
contentLeft: number;
|
|
29
|
+
/** The scale its height and its content are drawn at, or null while scaleOthers is false. */
|
|
30
|
+
scale: number | null;
|
|
31
|
+
/** CRL-4: narrower than any slot (on its way to or from an edge slot, or not drawn): no hit area beyond half the gap on each side. */
|
|
32
|
+
narrow: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* One item of a carousel — the spec's item kind `item`: the product's content in a rounded box, one action
|
|
36
|
+
* named by its label. A child of `<tanrei-carousel>`, which places it, sizes it and says which item is the Tab stop.
|
|
37
|
+
*
|
|
38
|
+
* The host is a `listitem` with its position among the items; inside it one element has the button role, named by
|
|
39
|
+
* `label` — the content is not read (CRL-19). The content is the default slot: an image, a poster, anything that is not
|
|
40
|
+
* interactive (CRL-20). The item lays it out at the hero's width and the carousel's height, aligned as the carousel
|
|
41
|
+
* says, clips it to its corners and hands it `comp.carousel.item.content.color` as the inherited `color` (CRL-15,
|
|
42
|
+
* CRL-16). Give an image `inline-size: 100%; block-size: 100%; object-fit: cover`.
|
|
43
|
+
*
|
|
44
|
+
* @tag tanrei-carousel-item
|
|
45
|
+
* @slot - The content: an image or other visual, never anything interactive.
|
|
46
|
+
* @csspart container - The item's rounded box: its resting fill, its corners, every state and the button semantics.
|
|
47
|
+
* @csspart content - The box the content is laid out in: the hero's width, the item's height.
|
|
48
|
+
* @csspart state-layer - The layer over the content that shows hover, focus and press (CRL-16).
|
|
49
|
+
* @fires click - The item was activated by pointer, touch, keyboard or assistive technology.
|
|
50
|
+
*/
|
|
51
|
+
export declare class TanreiCarouselItem extends LitElement {
|
|
52
|
+
static styles: import("lit").CSSResult[];
|
|
53
|
+
static shadowRootOptions: ShadowRootInit;
|
|
54
|
+
static properties: PropertyDeclarations;
|
|
55
|
+
/** The item's accessible name: what its content shows ("Coast path, 12 photos"). Required; the content is not read. */
|
|
56
|
+
label: string;
|
|
57
|
+
/** What the carousel says about this item. */
|
|
58
|
+
private context;
|
|
59
|
+
/** CRL-5 / CRL-6: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). */
|
|
60
|
+
private readonly press;
|
|
61
|
+
/** Space activates on key-up, as a native button does, and only when the key went down on the item. */
|
|
62
|
+
private spaceDown;
|
|
63
|
+
private get container();
|
|
64
|
+
/** @internal The carousel's side: which item is the Tab stop, and the item's position and the number of items. */
|
|
65
|
+
setCarouselContext(context: ItemContext): void;
|
|
66
|
+
/**
|
|
67
|
+
* @internal CRL-8, CRL-12, CRL-15, CRL-26, CRL-40: where the carousel draws the item — the drawn container's start
|
|
68
|
+
* along the row and its width — the width its content is laid out at, where the content sits and the scale of its
|
|
69
|
+
* height and content. Written as custom properties on the host, so a scroll re-renders nothing.
|
|
70
|
+
*/
|
|
71
|
+
place({ start, width, content, contentLeft, scale, narrow }: ItemPlacement): void;
|
|
72
|
+
/** @internal Moves keyboard focus to the item's button. */
|
|
73
|
+
focusButton(options?: FocusOptions): void;
|
|
74
|
+
/** CRL-7: where style queries are missing, the focus style is read when focus arrives. */
|
|
75
|
+
private onFocus;
|
|
76
|
+
/** CRL-1: Enter activates on key-down and Space on key-up, as a native button does. */
|
|
77
|
+
private onKeyDown;
|
|
78
|
+
private onKeyUp;
|
|
79
|
+
private onBlur;
|
|
80
|
+
/** CRL-20: an item's content holds nothing interactive; a debug build names what it found, on every slot change. */
|
|
81
|
+
private inspectContent;
|
|
82
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
83
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Lets people browse a row of visual items that scrolls sideways around one item in focus — the hero, in the centre (the
|
|
87
|
+
* default) or at the start, the others narrower (fluid widths) or smaller (scaleOthers) as they move away, every two
|
|
88
|
+
* neighbours one gap apart at every scroll position (CRL-40) — each item opening what it shows. A featured row may loop, show its position in dots and advance by itself, with a control to stop it.
|
|
89
|
+
*
|
|
90
|
+
* Contract: specs/carousel.spec.json. The items are `<tanrei-carousel-item>` children, in order. The carousel is a native
|
|
91
|
+
* horizontal scroller — wheel, trackpad, touch and pen scroll it as the platform does — whose track is as long as the
|
|
92
|
+
* scroll range; it places every item from the scroll offset (CRL-12), and settles at a resting position when a scroll
|
|
93
|
+
* ends while `snap` is true (CRL-14). The items are one Tab stop; the arrow keys, Home and End move between items and
|
|
94
|
+
* bring the focused one into place (CRL-17, CRL-18). Below the items, a controls row holds the page indicator (one
|
|
95
|
+
* slider, CRL-29 – CRL-31) and the playback control (CRL-35). Every visual value comes from `--tanrei-comp-carousel-*`
|
|
96
|
+
* tokens.
|
|
97
|
+
*
|
|
98
|
+
* @tag tanrei-carousel
|
|
99
|
+
* @slot - `<tanrei-carousel-item>` children: the items, in order.
|
|
100
|
+
* @csspart row - The scroller: as wide as the carousel, scrolled sideways by the person.
|
|
101
|
+
* @csspart list - The element with the list role around the items, named by `label`.
|
|
102
|
+
* @csspart controls - The row below the items that holds the indicator and the playback control.
|
|
103
|
+
* @csspart indicator - The dots: one slider, named by `label`.
|
|
104
|
+
* @csspart dot - One dot of the indicator.
|
|
105
|
+
* @csspart playback - The playback control: a native button that pauses and plays autoplay.
|
|
106
|
+
* @fires {CustomEvent<TanreiCarouselPausedChangeDetail>} pausedchange - The person paused or played autoplay with the playback control; `detail.paused` is the new value. Not fired when `paused` is set, nor for a hold.
|
|
107
|
+
*/
|
|
108
|
+
export declare class TanreiCarousel extends LitElement {
|
|
109
|
+
private readonly availability;
|
|
110
|
+
/** The product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
111
|
+
private readonly words;
|
|
112
|
+
static styles: import("lit").CSSResult[];
|
|
113
|
+
static properties: PropertyDeclarations;
|
|
114
|
+
/** Where the item in focus sits: `center` (the middle of the row, items on both sides) or `start` (the inner start edge). An unknown value is drawn as `center` and reported (CRL-24). Reflected. */
|
|
115
|
+
heroAlignment: TanreiCarouselHeroAlignment;
|
|
116
|
+
/**
|
|
117
|
+
* The width the hero is laid out at, in CSS px (the `item-width` attribute); null takes
|
|
118
|
+
* `comp.carousel.container.large-width`. With fixed widths every item is this wide (at most the inner width); with
|
|
119
|
+
* fluid widths the hero is kept between a floor and a cap (CRL-9). Not a positive number: treated as null and
|
|
120
|
+
* reported (CRL-24).
|
|
121
|
+
*/
|
|
122
|
+
itemWidth: number | null;
|
|
123
|
+
/** Whether item widths change fluidly (CRL-10). False (the `fixed-width` attribute) makes every item the hero's width. */
|
|
124
|
+
fluidWidth: boolean;
|
|
125
|
+
/** With fluid widths, where a narrowed item's content is anchored: `center` or `toward-hero` (CRL-15). An unknown value is `center`, reported (CRL-24). Reflected. */
|
|
126
|
+
contentAlignment: TanreiCarouselContentAlignment;
|
|
127
|
+
/** Draws the items other than the hero smaller, down to `comp.carousel.container.min-scale`, following the scroll (CRL-26). */
|
|
128
|
+
scaleOthers: boolean;
|
|
129
|
+
/** Whether the row settles at a resting position when a scroll ends (CRL-14). False (the `free-scroll` attribute) lets it rest wherever it ends. */
|
|
130
|
+
snap: boolean;
|
|
131
|
+
/** Whether the row is endless (CRL-27). Takes effect only with two or more items. */
|
|
132
|
+
loop: boolean;
|
|
133
|
+
/** Draws the dots below the items: one per resting position, the current one stretched (CRL-29). */
|
|
134
|
+
indicator: boolean;
|
|
135
|
+
/** Advances the row by itself, one resting position every `autoplayInterval` (CRL-32); it holds while hovered, focused within, pressed or hidden, and never runs where motion is reduced. */
|
|
136
|
+
autoplay: boolean;
|
|
137
|
+
/** How long the row rests before autoplay moves on, in ms (the `autoplay-interval` attribute); null takes `comp.carousel.autoplay.interval`. Not a positive number: null, reported (CRL-24). */
|
|
138
|
+
autoplayInterval: number | null;
|
|
139
|
+
/** Whether autoplay is paused, by the person (the playback control, which fires `pausedchange`) or by the product (which fires nothing). Reflected. */
|
|
140
|
+
paused: boolean;
|
|
141
|
+
/** Draws the playback control while autoplay is on (CRL-35). False (the `no-playback-control` attribute) hides it: keep it wherever you can (WCAG 2.2.2). */
|
|
142
|
+
playbackControl: boolean;
|
|
143
|
+
/** Fills the current dot to show the time until autoplay moves on (CRL-36). Needs `indicator`. */
|
|
144
|
+
autoplayProgress: boolean;
|
|
145
|
+
/** The playback control's accessible name while autoplay is paused ("Play the slideshow"). Required while it can be drawn. */
|
|
146
|
+
playLabel: string;
|
|
147
|
+
/** The playback control's accessible name while autoplay is playing ("Pause the slideshow"). Required while it can be drawn. */
|
|
148
|
+
pauseLabel: string;
|
|
149
|
+
/** Names the carousel's list and its indicator for assistive technology ("Recently played"). Required. */
|
|
150
|
+
label: string;
|
|
151
|
+
/** D, the number of resting positions of the last arrangement. */
|
|
152
|
+
private restingCount;
|
|
153
|
+
/** CRL-29: whether the indicator's container fits beside the playback control's target. */
|
|
154
|
+
private indicatorFits;
|
|
155
|
+
/** CRL-31: the resting position nearest the indicator's position, from 0. */
|
|
156
|
+
private current;
|
|
157
|
+
/** CRL-34: `prefers-reduced-motion: reduce`, followed as it changes. */
|
|
158
|
+
private reducedMotion;
|
|
159
|
+
/** CRL-38: whether the icon set can draw the playback glyphs. */
|
|
160
|
+
private glyphReady;
|
|
161
|
+
private readonly itemKeys;
|
|
162
|
+
private readonly loopKeys;
|
|
163
|
+
/**
|
|
164
|
+
* Watches the row — the box the arrangement measures (CRL-8) — not the host: the host is also as tall as its controls
|
|
165
|
+
* row, which an arrangement may add or take away (CRL-29), and an observer told of a change its own callback made
|
|
166
|
+
* does not come to rest within the frame.
|
|
167
|
+
*/
|
|
168
|
+
private readonly resize$;
|
|
169
|
+
private readonly motionQuery;
|
|
170
|
+
/**
|
|
171
|
+
* CRL-23: the row follows the direction it inherits, and a change of it while the page runs: the scroll offset and
|
|
172
|
+
* where each item's content sits were written physically for the old direction, so the row is arranged again — the
|
|
173
|
+
* resting item kept where it was, without motion.
|
|
174
|
+
*/
|
|
175
|
+
private readonly direction;
|
|
176
|
+
/** The arrangement of the last layout, the items it placed and the scroll offset they were placed at. */
|
|
177
|
+
private geometry;
|
|
178
|
+
/** The zoom of the row's ancestors, read when the row is arranged: a device pixel is the window's ratio times it (CRL-40). */
|
|
179
|
+
private zoom;
|
|
180
|
+
private laidOut;
|
|
181
|
+
private offset;
|
|
182
|
+
/** The offset the carousel last wrote itself: a scroll event that reports it is the carousel's own. */
|
|
183
|
+
private written;
|
|
184
|
+
/** CRL-17: the item that last had keyboard focus in the carousel, or the one a dot's move brought (CRL-30). */
|
|
185
|
+
private remembered;
|
|
186
|
+
/** CRL-32: the Tab stop an advance keeps, until the person moves the row. */
|
|
187
|
+
private pinned;
|
|
188
|
+
/** The scroll the carousel is animating, where it goes, and whether it is an advance. */
|
|
189
|
+
private scrolling;
|
|
190
|
+
private scrollFrame;
|
|
191
|
+
private target;
|
|
192
|
+
/** Whether the row is moving: a scroll, a settle, a scroll into place, a dot's move or an advance, not yet at rest. */
|
|
193
|
+
private moving;
|
|
194
|
+
/**
|
|
195
|
+
* CRL-14: a finger is on the row; where it was and when (its events' own time stamps, not the time a frame handled
|
|
196
|
+
* them), for the velocity of its release.
|
|
197
|
+
*/
|
|
198
|
+
private touching;
|
|
199
|
+
private scrolledSinceTouch;
|
|
200
|
+
private samples;
|
|
201
|
+
/** The direction of the last release's fling (1 toward the end, −1 toward the start), or 0. */
|
|
202
|
+
private fling;
|
|
203
|
+
private idleTimer;
|
|
204
|
+
/** CRL-30: the indicator is being pressed by this pointer, and the dot it last moved the row to. */
|
|
205
|
+
private indicatorPointer;
|
|
206
|
+
private indicatorDot;
|
|
207
|
+
/** The time of the interval that has passed, in ms, up to the moment the clock last stopped. */
|
|
208
|
+
private elapsed;
|
|
209
|
+
/** When the clock last started (`performance.now()`), or null while it is stopped. */
|
|
210
|
+
private runningSince;
|
|
211
|
+
private advanceTimer;
|
|
212
|
+
/** The interval the advance's timer was last set for, in ms: a new interval sets it again. */
|
|
213
|
+
private timedInterval;
|
|
214
|
+
/** CRL-36: the animation that draws the current dot's fill across the interval — the browser runs it, no frame is asked for. */
|
|
215
|
+
private progressAnimation;
|
|
216
|
+
/** CRL-36: the resting position the row last came to rest at. */
|
|
217
|
+
private progressDot;
|
|
218
|
+
/** CRL-33: the holds, and the hover and focus holds that playing lifted until the pointer or focus leaves. */
|
|
219
|
+
private hovering;
|
|
220
|
+
private hoverLifted;
|
|
221
|
+
private focusWithin;
|
|
222
|
+
private focusLifted;
|
|
223
|
+
private pressing;
|
|
224
|
+
private documentHidden;
|
|
225
|
+
/** The last reported values, so a debug build reports each once per change. */
|
|
226
|
+
private reported;
|
|
227
|
+
constructor();
|
|
228
|
+
connectedCallback(): void;
|
|
229
|
+
disconnectedCallback(): void;
|
|
230
|
+
/** The carousel's items, in order. */
|
|
231
|
+
get items(): TanreiCarouselItem[];
|
|
232
|
+
/** CRL-24: the hero alignment drawn — `heroAlignment`, or the default while it names a value the carousel does not define. */
|
|
233
|
+
private get drawnHero();
|
|
234
|
+
/** CRL-24: the content alignment drawn. */
|
|
235
|
+
private get drawnContent();
|
|
236
|
+
/** CRL-29: whether the indicator is drawn. */
|
|
237
|
+
private get indicatorDrawn();
|
|
238
|
+
/** CRL-35: whether the playback control is drawn. */
|
|
239
|
+
private get playbackDrawn();
|
|
240
|
+
/** CRL-36: whether the current dot shows the time until autoplay moves on. */
|
|
241
|
+
private get progressDrawn();
|
|
242
|
+
private get scroller();
|
|
243
|
+
private get rtl();
|
|
244
|
+
/** The scroll offset along the reading direction (a right-to-left row scrolls to negative `scrollLeft`). */
|
|
245
|
+
private readOffset;
|
|
246
|
+
/**
|
|
247
|
+
* What a `zoom` in CSS on an ancestor makes of one of the row's own pixels (CRL-40): the browser says it where it
|
|
248
|
+
* can, and where it cannot the row's box, measured in the window's pixels and in its own, tells it. 1 with no zoom.
|
|
249
|
+
*/
|
|
250
|
+
private readZoom;
|
|
251
|
+
/** The tokens the arrangement reads, in px (and the least scale, a number), through the probes' real properties. */
|
|
252
|
+
private metrics;
|
|
253
|
+
/**
|
|
254
|
+
* CRL-8 – CRL-13, CRL-21, CRL-27: arranges the slots for the carousel's width, its axes and its items, and keeps the
|
|
255
|
+
* resting item where it was, as far as the new range allows, without motion.
|
|
256
|
+
*/
|
|
257
|
+
private arrange;
|
|
258
|
+
/** Scrolls to `offset` at once and places the items there. */
|
|
259
|
+
private setOffset;
|
|
260
|
+
/**
|
|
261
|
+
* CRL-12, CRL-13, CRL-15, CRL-26, CRL-29, CRL-40: every item and every dot for `offset` — all from the one scroll
|
|
262
|
+
* position, in one pass.
|
|
263
|
+
*
|
|
264
|
+
* CRL-40: a browser paints a box's edges on whole device pixels, so two gaps of the same length in CSS px can be
|
|
265
|
+
* painted a device pixel apart (10 and 9 for a gap of 8 at a pixel ratio of 1.25, measured). So each drawn item's
|
|
266
|
+
* start is rounded to a device pixel, and its end is the next item's rounded start less the gap, itself rounded: the
|
|
267
|
+
* rounding falls on a width, never on a gap.
|
|
268
|
+
*/
|
|
269
|
+
private place;
|
|
270
|
+
/** CRL-29, CRL-36: each dot's stretch and fill for the position `p`; the value of the slider. */
|
|
271
|
+
private paintDots;
|
|
272
|
+
/** CRL-17, CRL-32: one Tab stop — the item that last had keyboard focus, the one an advance kept, or else the resting item. */
|
|
273
|
+
private syncTabStop;
|
|
274
|
+
/** CRL-14: the row scrolled: the items follow; a scroll that is not the carousel's own is the person's move. */
|
|
275
|
+
private readonly onScroll;
|
|
276
|
+
/** CRL-14: a scroll ended (a drag released, a wheel or trackpad gesture over): the row settles while snap is true. */
|
|
277
|
+
private readonly onScrollEnd;
|
|
278
|
+
private readonly onTouchStart;
|
|
279
|
+
/** CRL-14: the finger moved. */
|
|
280
|
+
private readonly onTouchMove;
|
|
281
|
+
/** Where the finger of `event` is along the row, at the event's own time. */
|
|
282
|
+
private sample;
|
|
283
|
+
/**
|
|
284
|
+
* CRL-14: the finger left the row: a release faster than FLING_VELOCITY is a fling, in its direction. The velocity is
|
|
285
|
+
* the finger's over its moves in the last VELOCITY_WINDOW before the release, timed by the events' own time stamps, so
|
|
286
|
+
* a busy main thread (or a frame that came late) does not slow a fling down.
|
|
287
|
+
*/
|
|
288
|
+
private readonly onTouchEnd;
|
|
289
|
+
/** Holds the row still — no momentum, no pan — while a fling's settle runs (CRL-14); the scroll offset stays settable. */
|
|
290
|
+
private hold;
|
|
291
|
+
/** A wheel or a trackpad takes over from a running settle; Shift with a vertical wheel scrolls the row (CRL-14). */
|
|
292
|
+
private readonly onWheel;
|
|
293
|
+
/**
|
|
294
|
+
* The person takes over from a motion the carousel runs (a wheel, a mouse press): it stops where it is, and, unless a
|
|
295
|
+
* scroll follows, the row comes to rest — settling first while snap is true — once no scroll has come for a moment.
|
|
296
|
+
*/
|
|
297
|
+
private takeOver;
|
|
298
|
+
/** CRL-14: while snap is true, the row comes to rest at a resting position — the next one in the direction of a fling, or the nearest. */
|
|
299
|
+
private settle;
|
|
300
|
+
/**
|
|
301
|
+
* The row came to rest. CRL-27: a looping row moves by whole turns back to the middle of its track (which draws nothing
|
|
302
|
+
* new). CRL-33: the clock starts again from zero after the row moved — and only then: an engine reports the end of the
|
|
303
|
+
* carousel's own scroll (`scrollend`) when it next updates its rendering, which may be long after the row came to rest,
|
|
304
|
+
* and a row that has been at rest since keeps the time it has counted (CRL-32).
|
|
305
|
+
*/
|
|
306
|
+
private atRest;
|
|
307
|
+
/**
|
|
308
|
+
* The motion of a settle, a scroll into place and a dot's move (CRL-14, CRL-18, CRL-30), or of an advance (CRL-32):
|
|
309
|
+
* the tokens through real properties, 0 where reduced.
|
|
310
|
+
*/
|
|
311
|
+
private motion;
|
|
312
|
+
private stopScrolling;
|
|
313
|
+
/**
|
|
314
|
+
* Scrolls from `from` to `to` over the motion's duration and easing, or at once where motion is reduced. It starts in
|
|
315
|
+
* the next frame. With `claim`, that first frame replaces whatever scrolled the row since the call (the browser's own
|
|
316
|
+
* jump to a focused element, the momentum after a fling); without it, a scroll that came before the first frame wins,
|
|
317
|
+
* as one that comes during the motion does. The easing's progress is read from an effect without a target, so the
|
|
318
|
+
* scroll follows the token's curve.
|
|
319
|
+
*/
|
|
320
|
+
private scrollRowTo;
|
|
321
|
+
/** Moves the row to `position` over the scroll motion, as the person asked (a key, a dot): the Tab stop follows (CRL-30). */
|
|
322
|
+
private moveTo;
|
|
323
|
+
/** The item an event came from. */
|
|
324
|
+
private itemOf;
|
|
325
|
+
/** A mouse or a pen takes over from a running motion (a touch does in onTouchStart). CRL-33: a press holds autoplay. */
|
|
326
|
+
private readonly onPointerDown;
|
|
327
|
+
private readonly onPointerUp;
|
|
328
|
+
/** CRL-33: the hover hold; leaving ends a hold that playing lifted. */
|
|
329
|
+
private readonly onPointerEnter;
|
|
330
|
+
private readonly onPointerLeave;
|
|
331
|
+
/**
|
|
332
|
+
* CRL-17: the focused item becomes the Tab stop. CRL-18: keyboard or assistive-technology focus — focus the browser
|
|
333
|
+
* shows, `:focus-visible`, which a pointer's never is — brings it into place over the scroll motion. CRL-33: focus
|
|
334
|
+
* within holds autoplay, however it came there.
|
|
335
|
+
*/
|
|
336
|
+
private readonly onFocusIn;
|
|
337
|
+
private readonly onFocusOut;
|
|
338
|
+
/** CRL-18: slot 0 (or as near as the range allows, the shorter way round), or wholly in view with the least scroll. */
|
|
339
|
+
private reveal;
|
|
340
|
+
/** CRL-17: Right / Left Arrow (mirrored in right-to-left) to the next and previous item, wrapping while loop is in effect; Home and End. */
|
|
341
|
+
private readonly onKeyDown;
|
|
342
|
+
/** CRL-5 / CRL-6: the indicator's pressed state, by pointer or touch only, lasting as long as the press. */
|
|
343
|
+
private readonly indicatorPress;
|
|
344
|
+
/** CRL-5 / CRL-6: the playback control's pressed state. */
|
|
345
|
+
private readonly playbackPress;
|
|
346
|
+
/** CRL-30: the dot nearest a point along the indicator. */
|
|
347
|
+
private dotAt;
|
|
348
|
+
/** CRL-30: moves the row to dot `j`'s resting position, unless it is already going there. */
|
|
349
|
+
private toDot;
|
|
350
|
+
private readonly onIndicatorPointerDown;
|
|
351
|
+
private readonly onIndicatorPointerMove;
|
|
352
|
+
private readonly onIndicatorPointerUp;
|
|
353
|
+
/** CRL-30: Right / Left Arrow to the next and previous resting position (wrapping while loop is in effect), Home and End; mirrored in right-to-left. */
|
|
354
|
+
private readonly onIndicatorKeyDown;
|
|
355
|
+
private readonly onIndicatorFocus;
|
|
356
|
+
/** How long the row rests before it advances, in ms: `autoplayInterval`, or comp.carousel.autoplay.interval through a real property. */
|
|
357
|
+
private interval;
|
|
358
|
+
/** CRL-33: whether a hold is in effect. */
|
|
359
|
+
private get held();
|
|
360
|
+
/** CRL-32, CRL-34: whether the clock runs now. */
|
|
361
|
+
private get clockRuns();
|
|
362
|
+
/** The time of the interval that has passed, in ms. */
|
|
363
|
+
private passed;
|
|
364
|
+
/** Starts or stops the clock as the conditions of CRL-32 – CRL-34 say; a stop keeps the time that has passed. */
|
|
365
|
+
private syncClock;
|
|
366
|
+
private stopClock;
|
|
367
|
+
/** CRL-32: the interval has passed with the row at rest: on to the next resting position, or from the last back to the first. */
|
|
368
|
+
private readonly onTimeUp;
|
|
369
|
+
/**
|
|
370
|
+
* CRL-36: the current dot's fill, as the part of the interval that has passed. One animation of the interval's length
|
|
371
|
+
* draws it — the fill's scale along the row, from nothing at its start edge to the whole dot, at an even pace — and the
|
|
372
|
+
* browser runs it: script writes only when the clock starts or stops (a hold, a pause, the row moving, a new
|
|
373
|
+
* interval), putting the animation at the time the clock has counted and letting it run or holding it there.
|
|
374
|
+
*/
|
|
375
|
+
private drawProgress;
|
|
376
|
+
private endProgress;
|
|
377
|
+
/** CRL-35: the person pauses or plays; on play the time starts from zero and the hover and focus holds in effect are lifted (CRL-33). */
|
|
378
|
+
private readonly onPlaybackClick;
|
|
379
|
+
private readonly onPlaybackFocus;
|
|
380
|
+
/** CRL-34: reduced motion stops autoplay; when it stops being reduced, autoplay starts again with the time from zero. */
|
|
381
|
+
private readonly onMotionChange;
|
|
382
|
+
/** CRL-33: a hidden document holds autoplay. */
|
|
383
|
+
private readonly onVisibilityChange;
|
|
384
|
+
/**
|
|
385
|
+
* CRL-38: the playback glyphs are drawn only once the icon set can draw them — before that the glyph's box stays and
|
|
386
|
+
* shows nothing, never the glyph's name as text. A face that never loads leaves the box empty.
|
|
387
|
+
*/
|
|
388
|
+
private checkGlyphs;
|
|
389
|
+
protected firstUpdated(): void;
|
|
390
|
+
private observeRow;
|
|
391
|
+
/** CRL-20, CRL-24: what a debug build reports, each once per value. */
|
|
392
|
+
private reportOnce;
|
|
393
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
394
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
395
|
+
}
|
|
396
|
+
declare global {
|
|
397
|
+
interface HTMLElementTagNameMap {
|
|
398
|
+
'tanrei-carousel': TanreiCarousel;
|
|
399
|
+
'tanrei-carousel-item': TanreiCarouselItem;
|
|
400
|
+
}
|
|
401
|
+
}
|