@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,477 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import { type TanreiLinkTarget } from '../../primitives/index.js';
|
|
3
|
+
import { FORWARDED_ROWS, type TanreiMenuBarChannel, type TanreiMenuCloseDetail } from '../menu/menu.js';
|
|
4
|
+
/** What a bar menu's `toggle` carries: its new `open`. */
|
|
5
|
+
export interface TanreiMenubarMenuToggleDetail {
|
|
6
|
+
open: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** The overflow item among the bar's titles (MBR-22): the one title that is not an entry of the product's. */
|
|
9
|
+
declare const OVERFLOW = "overflow";
|
|
10
|
+
/** MBR-9: where focus goes when a menu opens, and whether without the focus ring. */
|
|
11
|
+
type Entry = TanreiMenuBarChannel['entry'];
|
|
12
|
+
/** What the bar tells each of its entries: where it is drawn, and what its title is among the bar's titles. */
|
|
13
|
+
interface Place {
|
|
14
|
+
/** MBR-21: the entry is folded out of the row — a menu drawn as a submenu item of the overflow item's menu, a bar item as an item of it (MBR-43). */
|
|
15
|
+
folded: boolean;
|
|
16
|
+
/** MBR-19: its title's position among the bar's titles, from 1, and their number. */
|
|
17
|
+
position: number;
|
|
18
|
+
size: number;
|
|
19
|
+
/** MBR-12: its title is the bar's Tab stop. */
|
|
20
|
+
stop: boolean;
|
|
21
|
+
/** The bar draws its open menu in place (for tests). */
|
|
22
|
+
inline: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* One menu of a menubar — the spec's item kind `menu`: its title in the bar's row, and the items that open below it.
|
|
26
|
+
*
|
|
27
|
+
* It holds the menu's own item elements as its children, exactly as `<tanrei-menu>` holds them, and forwards them — each
|
|
28
|
+
* in a slot of its own, none of them moved — into a Tanrei Menu in its shadow root, a manual popover in the top layer
|
|
29
|
+
* placed below its title. The host is the title: `role="menuitem"` with `aria-haspopup="menu"`, `aria-expanded`,
|
|
30
|
+
* `aria-disabled`, its position among the bar's titles, and the bar's roving `tabindex`; it draws its label in its shadow
|
|
31
|
+
* root from the `--tanrei-comp-menubar-*` tokens of its condition (unselected, or expanded while its menu is open) and
|
|
32
|
+
* state. The bar it is in does the rest: the keys, the pointer, which menu is open, and folding it into the overflow
|
|
33
|
+
* item when the row has no room — it is then drawn as a submenu item of the overflow item's menu, with the same label
|
|
34
|
+
* and the same items, and `open` and `toggle` mean the same there.
|
|
35
|
+
*
|
|
36
|
+
* `open` is its own: the bar sets it when the person opens or closes the menu and fires `toggle`; the product may set it
|
|
37
|
+
* to open or close the menu itself, which fires none. The items' own `click`, `change` and `toggle` bubble through it.
|
|
38
|
+
*
|
|
39
|
+
* @tag tanrei-menubar-menu
|
|
40
|
+
* @slot - The menu's items: `<tanrei-menu-item>`, `<tanrei-menu-checkbox-item>`, `<tanrei-menu-radio-item>`, `<tanrei-submenu>` and `<tanrei-menu-group>` children.
|
|
41
|
+
* @csspart container - The title's container: its fill, corners, every state, the ripple and the focus ring.
|
|
42
|
+
* @csspart label - The title's text.
|
|
43
|
+
* @fires {CustomEvent<TanreiMenubarMenuToggleDetail>} toggle - The person opened or closed the menu: `detail.open` (and the element's `open`) is the new value. It bubbles. A change the product makes to `open` fires none. A submenu item's `toggle` bubbles through the element too: tell them apart by the event's target.
|
|
44
|
+
*/
|
|
45
|
+
export declare class TanreiMenubarMenu extends LitElement {
|
|
46
|
+
static styles: import("lit").CSSResult;
|
|
47
|
+
static shadowRootOptions: ShadowRootInit;
|
|
48
|
+
static properties: PropertyDeclarations;
|
|
49
|
+
/** The title's text, and the name of the title and of the menu it opens ("File"). Required. One or two words. */
|
|
50
|
+
label: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether this menu is shown. The bar sets it when the person opens or closes the menu and fires `toggle`; the
|
|
53
|
+
* product may set it to open or close the menu itself. At most one menu of a bar is open.
|
|
54
|
+
*/
|
|
55
|
+
open: boolean;
|
|
56
|
+
/** Prevents the menu from opening. The title stays in the row and reachable with the arrow keys. */
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
/** The menu's children, each in a slot of its own. */
|
|
59
|
+
private blocks;
|
|
60
|
+
/** What the bar says about this menu. */
|
|
61
|
+
private place;
|
|
62
|
+
/** MBR-4, MBR-5: focus a pointer's act gave the title, which is not the focused state and draws no ring. */
|
|
63
|
+
private pointerFocused;
|
|
64
|
+
private readonly children$;
|
|
65
|
+
/**
|
|
66
|
+
* What the bar tells the menu this element shows (src/components/menu/menu.ts): the bar itself, the inline arrow keys
|
|
67
|
+
* the menu hands back (MBR-13), where focus goes on opening (MBR-9), and whether the surface comes and goes without
|
|
68
|
+
* its motion (MBR-29).
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
readonly channel: TanreiMenuBarChannel;
|
|
72
|
+
/** MBR-6, MBR-7: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). */
|
|
73
|
+
private readonly press;
|
|
74
|
+
constructor();
|
|
75
|
+
/** The bar this menu is one of. */
|
|
76
|
+
private get bar();
|
|
77
|
+
/** @internal The title's container, which the menu is placed against. */
|
|
78
|
+
get containerElement(): HTMLElement | null;
|
|
79
|
+
/** @internal Whether the menu holds an item (MBR-20). */
|
|
80
|
+
get hasItems(): boolean;
|
|
81
|
+
/** @internal MBR-22: folded, the element stands in the overflow item's menu for the submenu item it draws. */
|
|
82
|
+
[FORWARDED_ROWS](): Element[];
|
|
83
|
+
/** @internal The bar's side: where the menu is drawn, and its title's place among the bar's titles. */
|
|
84
|
+
setBarContext(place: Place): void;
|
|
85
|
+
/** @internal Focus to the title; `quiet` where a pointer's act moved it, which draws no ring (MBR-5). */
|
|
86
|
+
focusTitle(quiet: boolean): void;
|
|
87
|
+
/** @internal MBR-9: focus into the open menu from its title, to its first or its last enabled item. */
|
|
88
|
+
focusMenu(end: Entry['end']): void;
|
|
89
|
+
connectedCallback(): void;
|
|
90
|
+
disconnectedCallback(): void;
|
|
91
|
+
private readChildren;
|
|
92
|
+
/** MBR-20: a menu with no item still opens its surface, empty; a debug build says so each time it becomes empty. */
|
|
93
|
+
private empty;
|
|
94
|
+
private checkItems;
|
|
95
|
+
private reportEmpty;
|
|
96
|
+
/** MBR-11: while a menu of the bar is open, a pointer that can hover moves the open menu along with it. */
|
|
97
|
+
private readonly onPointerEnter;
|
|
98
|
+
/** MBR-14, MBR-15: the menu asks to be closed; the bar answers. */
|
|
99
|
+
private readonly onMenuClose;
|
|
100
|
+
/** MBR-22: folded, the menu's submenu item was opened or closed by the person — the same `open`, the same `toggle`. */
|
|
101
|
+
private readonly onSubmenuToggle;
|
|
102
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
103
|
+
protected firstUpdated(): void;
|
|
104
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
105
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* A bar item of a menubar — the spec's item kind `item`: an entry of the row that acts by itself instead of opening a
|
|
109
|
+
* menu. It is drawn exactly as a menu's title is and reached by the same keys; nothing at rest tells them apart but
|
|
110
|
+
* their words, so name an action with a verb ("Run") and a link with its place ("Documentation").
|
|
111
|
+
*
|
|
112
|
+
* **An action** is written with a `label`: `<tanrei-menubar-item label="Run"></tanrei-menubar-item>`. The host is the
|
|
113
|
+
* entry — `role="menuitem"` with neither `aria-haspopup` nor `aria-expanded`, `aria-disabled`, its position among the
|
|
114
|
+
* bar's entries and the bar's roving `tabindex` — and `click` is the host's own: a press, Enter, Space (on key up, as a
|
|
115
|
+
* button) and assistive technology produce it, once, after the menu of the bar that was open has closed.
|
|
116
|
+
*
|
|
117
|
+
* **A link item** is the same element around the product's own anchor, which stays in the document:
|
|
118
|
+
* `<tanrei-menubar-item><a href="/docs/">Documentation</a></tanrei-menubar-item>`. The anchor is the entry: the element
|
|
119
|
+
* writes `role="menuitem"`, the roving `tabindex` and the position on it and `role="none"` on the host, and draws the
|
|
120
|
+
* title around it. Everything a link is, is the anchor's — its text is the label, `href`, `target` (`_blank` opens a new
|
|
121
|
+
* context: the element adds `noopener` to `rel` and draws the icon set's `open_in_new` after the label),
|
|
122
|
+
* `aria-current="page"` (drawn at the emphasized weight, with no fill), `rel`, `download` — and the properties `label`,
|
|
123
|
+
* `href`, `target` and `current` of the host read the anchor and write it. `click` is the anchor's own click:
|
|
124
|
+
* `preventDefault()` cancels the navigation, a click with a modifier key or the middle button is the browser's, and so
|
|
125
|
+
* is Enter with a modifier key; Space follows the link as Enter does. The link works before the element is defined and
|
|
126
|
+
* where script does not run (`@tanrei/web/menubar.css` lays it out there).
|
|
127
|
+
*
|
|
128
|
+
* `disabled` on the host is the one statement that the entry is disabled; a disabled link item's anchor is written
|
|
129
|
+
* without `href`. Folded into the overflow item, a bar item is an item of that menu, which it draws of itself; its
|
|
130
|
+
* `click` is the same event of the same element.
|
|
131
|
+
*
|
|
132
|
+
* @tag tanrei-menubar-item
|
|
133
|
+
* @slot - A link item's anchor: one `<a href>` child of the product's own. An action has no child.
|
|
134
|
+
* @csspart container - The entry's container: its fill, corners, every state, the ripple and the focus ring.
|
|
135
|
+
* @csspart label - The entry's text: an action's label, or the box a link item's anchor stands in.
|
|
136
|
+
* @csspart mark - The `open_in_new` glyph of a link item that opens a new context (hidden from assistive technology).
|
|
137
|
+
* @fires click - The bar item was activated by pointer, touch, Enter, Space or assistive technology — in the row, after the open menu of the bar has closed, or folded, in the overflow item's menu, before that menu closes. An action's is the host's own click; a link item's is its anchor's, before the link is followed: `preventDefault()` stops the navigation.
|
|
138
|
+
*/
|
|
139
|
+
export declare class TanreiMenubarItem extends LitElement {
|
|
140
|
+
static styles: import("lit").CSSResult[];
|
|
141
|
+
static shadowRootOptions: ShadowRootInit;
|
|
142
|
+
static properties: PropertyDeclarations;
|
|
143
|
+
/** An action's label, as its attribute or the product gave it; a link item's is its anchor's text. */
|
|
144
|
+
private ownLabel;
|
|
145
|
+
/**
|
|
146
|
+
* The bar item's text and its accessible name ("Run", "Documentation"). Required. An action's is this attribute; a
|
|
147
|
+
* link item's is its anchor's text, which the property reads and writes — a `label` attribute on an element that
|
|
148
|
+
* holds an anchor is ignored.
|
|
149
|
+
*/
|
|
150
|
+
get label(): string;
|
|
151
|
+
set label(value: string);
|
|
152
|
+
/** Prevents activation. The bar item stays in the row and reachable with the arrow keys. A disabled link item's anchor is written without `href`. */
|
|
153
|
+
disabled: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* A link item's destination: its anchor's `href`, read from it and written to it. Empty for an action. Setting it on
|
|
156
|
+
* an element that holds no anchor does nothing: the destination is the anchor's, so that the link exists before the
|
|
157
|
+
* element is defined.
|
|
158
|
+
*/
|
|
159
|
+
get href(): string;
|
|
160
|
+
set href(value: string);
|
|
161
|
+
/** Where a link item opens: `same`, or `new` — its anchor's `target="_blank"`, read from it and written to it. Anything else the anchor names is `same`. */
|
|
162
|
+
get target(): TanreiLinkTarget;
|
|
163
|
+
set target(value: TanreiLinkTarget);
|
|
164
|
+
/** What assistive technology reads after a link item's name while it opens a new context ("opens in a new tab"): your words. Empty takes the product's words (`targetLabel`). Written as the anchor's `aria-description` unless the product wrote one there. */
|
|
165
|
+
targetLabel: string;
|
|
166
|
+
/** The link item names the page the person is on: its anchor's `aria-current="page"`, read from it and written to it. The bar never sets it. */
|
|
167
|
+
get current(): boolean;
|
|
168
|
+
set current(value: boolean);
|
|
169
|
+
/** @internal The anchor's own `rel`, for the link primitive. */
|
|
170
|
+
get rel(): string | null;
|
|
171
|
+
/** @internal The anchor's own `download`, for the link primitive. */
|
|
172
|
+
get download(): string | null;
|
|
173
|
+
/** What the bar says about this entry. */
|
|
174
|
+
private place;
|
|
175
|
+
/** MBR-4, MBR-5: focus a pointer's act gave the entry, which is not the focused state and draws no ring. */
|
|
176
|
+
private pointerFocused;
|
|
177
|
+
/** MBR-36: Space is down on the entry; it activates when the key comes up, as on a button. */
|
|
178
|
+
private spaceDown;
|
|
179
|
+
/** The description the element last wrote on the anchor: one the product wrote there is left as it is (MBR-37). */
|
|
180
|
+
private described;
|
|
181
|
+
/** What the bar measures of this entry, as it was last drawn (MBR-21, MBR-30, MBR-38). */
|
|
182
|
+
private drawn;
|
|
183
|
+
private readonly children$;
|
|
184
|
+
private settled;
|
|
185
|
+
/**
|
|
186
|
+
* MBR-35, MBR-37, MBR-44: whether the anchor names a destination, whether it opens a new context and what is said of
|
|
187
|
+
* that, and what a debug build is told of an address that is none (src/primitives/link.ts). The anchor is
|
|
188
|
+
* the product's: the element writes no address on it.
|
|
189
|
+
*/
|
|
190
|
+
private readonly link;
|
|
191
|
+
/** MBR-6, MBR-7, MBR-36: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). */
|
|
192
|
+
private readonly press;
|
|
193
|
+
/** MBR-37: nothing is drawn in the mark's place until the icon set can draw it — never its name. */
|
|
194
|
+
private readonly glyphs;
|
|
195
|
+
/** MBR-37: the mark is mirrored exactly when the icon set marks its name, by the icon helper. */
|
|
196
|
+
private readonly mirror;
|
|
197
|
+
constructor();
|
|
198
|
+
/** The bar this entry is one of. */
|
|
199
|
+
private get bar();
|
|
200
|
+
/** The product's own anchor: the first `<a>` child. With one, the entry is the anchor (MBR-35, MBR-45). */
|
|
201
|
+
private get anchor();
|
|
202
|
+
/** @internal The element that is the entry: the anchor of a link item, else the host. It takes the bar's focus and carries the entry's semantics. */
|
|
203
|
+
get entryElement(): HTMLElement;
|
|
204
|
+
/** @internal MBR-38: the link item names the current page (ignored without a destination). */
|
|
205
|
+
get isCurrent(): boolean;
|
|
206
|
+
/** @internal MBR-37: the link item opens a new context, so it ends in the mark. */
|
|
207
|
+
get marked(): boolean;
|
|
208
|
+
private isEntry;
|
|
209
|
+
/** @internal MBR-43: folded, the element stands in the overflow item's menu for the item it draws. */
|
|
210
|
+
[FORWARDED_ROWS](): Element[];
|
|
211
|
+
/** @internal The bar's side: where the entry is drawn, and its place among the bar's titles. */
|
|
212
|
+
setBarContext(place: Place): void;
|
|
213
|
+
/** @internal Focus to the entry; `quiet` where a pointer's act moved it, which draws no ring (MBR-5). */
|
|
214
|
+
focusTitle(quiet: boolean): void;
|
|
215
|
+
/** Focus goes to the element that is the entry: the host, or the anchor of a link item (MBR-35). */
|
|
216
|
+
focus(options?: FocusOptions): void;
|
|
217
|
+
/** `element.click()` activates the bar item as a pointer would — a link item through its anchor; a disabled one does nothing (MBR-39). */
|
|
218
|
+
click(): void;
|
|
219
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
220
|
+
connectedCallback(): void;
|
|
221
|
+
disconnectedCallback(): void;
|
|
222
|
+
/**
|
|
223
|
+
* MBR-33, MBR-36: Enter activates on key down and Space on key up, as a button's keys do — a handler that moves focus
|
|
224
|
+
* on Space would otherwise hand the key's release to what it focused. Enter on a link item is the browser's own: it
|
|
225
|
+
* fires the anchor's click and follows the link, with a modifier key in another tab or window, so nothing is
|
|
226
|
+
* prevented or replaced there; a held key activates once. Space scrolls nothing.
|
|
227
|
+
*/
|
|
228
|
+
private readonly onKeyDown;
|
|
229
|
+
private readonly onKeyUp;
|
|
230
|
+
/**
|
|
231
|
+
* Every click that reaches the element, before anything inside it or the product hears it. A disabled bar item
|
|
232
|
+
* swallows it (MBR-39). In the row: a click on the title that is not on the anchor is handed to the anchor, so that
|
|
233
|
+
* the product hears one click on its own element; a click the browser opens elsewhere — a modifier key, another
|
|
234
|
+
* button — is left to it and closes nothing (MBR-36); any other is an activation, for which the bar closes its open
|
|
235
|
+
* menu first (MBR-33).
|
|
236
|
+
*/
|
|
237
|
+
private readonly onClickCapture;
|
|
238
|
+
/** MBR-44: an anchor whose address is no destination — white space, a script — is an action: nothing is followed or run. */
|
|
239
|
+
private readonly onClick;
|
|
240
|
+
/**
|
|
241
|
+
* MBR-43: a plain activation of the row a folded link item draws is one click on the product's own anchor. The row's
|
|
242
|
+
* own click goes no further and follows nothing; the anchor's `click()` is what the product hears — and may cancel —
|
|
243
|
+
* and what navigates, while the overflow item's menu is still shown; the bar closes it after. A click the browser
|
|
244
|
+
* opens elsewhere is left to the row's own anchor, which has the same address (MNU-54). An action's row needs none
|
|
245
|
+
* of this: its click leaves the shadow root as the host's own.
|
|
246
|
+
*/
|
|
247
|
+
private readonly onFoldedClick;
|
|
248
|
+
/**
|
|
249
|
+
* MBR-5, MBR-33: focus a press gives the entry is the pointer's, and draws no ring — said here, as the press begins,
|
|
250
|
+
* because an engine may call focus that a mouse gave an element visible when a key moved focus just before. A press
|
|
251
|
+
* that leaves the entry without focus (it ended elsewhere; an engine that does not focus a link on a press) says
|
|
252
|
+
* nothing: the bar gives it focus, quietly, once its click has gone through the page.
|
|
253
|
+
*/
|
|
254
|
+
private readonly onPointerDown;
|
|
255
|
+
private readonly onPointerEnd;
|
|
256
|
+
/** MBR-35: a link item's address is the browser's to drag, and the press ends there; an action is never the start of a drag. */
|
|
257
|
+
private readonly onDragStart;
|
|
258
|
+
protected firstUpdated(): void;
|
|
259
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
260
|
+
/** What a debug build is told of a bar item the element survives (MBR-38, MBR-39, MBR-44, MBR-45); the link primitive says the rest. */
|
|
261
|
+
private check;
|
|
262
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Keeps an application's commands within reach in one persistent row of named menus (File, Edit, View…), each opening
|
|
266
|
+
* a menu below its title, with the arrow keys moving along the row and into each menu.
|
|
267
|
+
*
|
|
268
|
+
* Contract: specs/menubar.spec.json. The host is `role="menubar"`, named by `label`; its children are
|
|
269
|
+
* `<tanrei-menubar-menu>` elements, each of which is its title and holds its menu's items, and — for the one or two
|
|
270
|
+
* entries that act by themselves — `<tanrei-menubar-item>` elements, an action or the product's own anchor as a link
|
|
271
|
+
* item, drawn and reached as the titles are (a press, Enter or Space runs or follows one; the block arrow keys do
|
|
272
|
+
* nothing on it; from a menu the inline arrow keys land on it and open nothing). The bar is one Tab stop: the
|
|
273
|
+
* inline arrow keys, Home, End and a typed character move along the titles; Enter, Space and the block arrow keys open
|
|
274
|
+
* a title's menu; from inside a menu the inline arrow keys go on to the neighbouring menu; Escape returns to the title
|
|
275
|
+
* and Tab leaves the bar. While one menu is open a pointer that moves onto another title opens that one at once. It
|
|
276
|
+
* shows one menu at a time, sets each menu's `open` and fires its `toggle`.
|
|
277
|
+
*
|
|
278
|
+
* Titles that the row has no room for are folded whole, from the end, into one overflow item — the icon set's
|
|
279
|
+
* `more_horiz`, named by `overflow-label` — whose menu holds each folded menu as a submenu. The bar measures what fits
|
|
280
|
+
* and decides again when its size, its menus, a label, the text size or the direction changes. It draws no position,
|
|
281
|
+
* edge or elevation of its own: you place it. Every visual value comes from `--tanrei-comp-menubar-*` tokens; the
|
|
282
|
+
* surfaces the titles open are Menus, drawn from `--tanrei-comp-menu-*`.
|
|
283
|
+
*
|
|
284
|
+
* The `inline` attribute, for tests and documentation, draws an open menu in place below its title instead of in the
|
|
285
|
+
* top layer, as the menu's own does: without placement, open motion, focus on opening or light dismiss.
|
|
286
|
+
*
|
|
287
|
+
* @tag tanrei-menubar
|
|
288
|
+
* @slot - The entries, in the order given: `<tanrei-menubar-menu>` and `<tanrei-menubar-item>` elements. Anything else gets no title, no key and no place in the row, and is reported in debug builds (MBR-20).
|
|
289
|
+
* @csspart bar - The row: its fill, paddings and the gap between titles.
|
|
290
|
+
* @csspart overflow-item - The overflow item, the last title of a row that cannot hold every title.
|
|
291
|
+
* @csspart container - The overflow item's container: its fill, corners, every state, the ripple and the focus ring.
|
|
292
|
+
* @csspart icon - The overflow item's glyph (hidden from assistive technology).
|
|
293
|
+
*/
|
|
294
|
+
export declare class TanreiMenubar extends LitElement {
|
|
295
|
+
private readonly availability;
|
|
296
|
+
static styles: import("lit").CSSResult;
|
|
297
|
+
static shadowRootOptions: ShadowRootInit;
|
|
298
|
+
static properties: PropertyDeclarations;
|
|
299
|
+
/** Names the bar for assistive technology ("Application menu"), in the product's language. Never drawn. Required. It is this bar's own name and is not read from the product's words. */
|
|
300
|
+
label: string;
|
|
301
|
+
/**
|
|
302
|
+
* The accessible name of the overflow item ("More menus"), in the product's language. Never drawn. Empty takes the
|
|
303
|
+
* product's words (`menubarOverflowLabel`); needed whenever the bar may be narrower than its titles.
|
|
304
|
+
*/
|
|
305
|
+
overflowLabel: string;
|
|
306
|
+
/** For tests and documentation: draws an open menu in place below its title, without the overlay's behaviour. */
|
|
307
|
+
inline: boolean;
|
|
308
|
+
/** MBR-23: the overflow item's name is the instance's, else the product's word; Tanrei has none of its own. */
|
|
309
|
+
private readonly words;
|
|
310
|
+
/** The bar's entries — its menus and its bar items (MBR-32) — in the order given. */
|
|
311
|
+
private items;
|
|
312
|
+
/** MBR-21: how many entries are folded out of the row, from its end. */
|
|
313
|
+
private folds;
|
|
314
|
+
/** MBR-22: whether the overflow item's menu is shown. */
|
|
315
|
+
private overflowOpen;
|
|
316
|
+
/** MBR-10: the menu the bar shows now — in the row, or as a submenu of the overflow item's menu. */
|
|
317
|
+
private current;
|
|
318
|
+
/** MBR-12: the title the Tab stop stands on: the one focused last or whose menu was opened last, whichever came later. */
|
|
319
|
+
private stop;
|
|
320
|
+
/** The title that holds focus now, as far as the bar was told (MBR-30: a removed element tells nobody). */
|
|
321
|
+
private focused;
|
|
322
|
+
/** MBR-4: focus a pointer's act gave the overflow item. */
|
|
323
|
+
private overflowQuiet;
|
|
324
|
+
/** What the person last acted with on the bar: a menu opened by a pointer takes focus without the ring (MBR-9). */
|
|
325
|
+
private input;
|
|
326
|
+
/** MBR-12: the next and the previous title, wrapping, and the first and the last (the typeahead is the bar's own: one character). */
|
|
327
|
+
private readonly keys;
|
|
328
|
+
/** MBR-21: the inline sizes the fold is decided from, as the observer last reported them. */
|
|
329
|
+
private readonly sizes;
|
|
330
|
+
private resize;
|
|
331
|
+
private readonly children$;
|
|
332
|
+
private settled;
|
|
333
|
+
/** What the bar tells the overflow item's menu (src/components/menu/menu.ts): as each menu's own channel, and that its own level is the fold's (MBR-22). */
|
|
334
|
+
private readonly overflowChannel;
|
|
335
|
+
/** MBR-6, MBR-7, MBR-22: the overflow item is pressed as any title is. */
|
|
336
|
+
private readonly press;
|
|
337
|
+
/** MBR-21: nothing is drawn in the glyph's place until the icon set can draw it — never its name. */
|
|
338
|
+
private readonly glyphs;
|
|
339
|
+
/** MBR-25: the glyph is mirrored exactly when the icon set marks its name, by the icon helper. */
|
|
340
|
+
private readonly mirror;
|
|
341
|
+
constructor();
|
|
342
|
+
connectedCallback(): void;
|
|
343
|
+
disconnectedCallback(): void;
|
|
344
|
+
private get overflowElement();
|
|
345
|
+
private get overflowMenu();
|
|
346
|
+
/** MBR-21: the entries in the row. */
|
|
347
|
+
private get visible();
|
|
348
|
+
/** MBR-21, MBR-43: the entries folded into the overflow item, in the order given. */
|
|
349
|
+
private get folded();
|
|
350
|
+
/** The bar's menus, in the order given: the entries that open. */
|
|
351
|
+
private get menus();
|
|
352
|
+
/** The bar's titles, in order: the entries in the row, then the overflow item while something is folded (MBR-22). */
|
|
353
|
+
private titles;
|
|
354
|
+
/** The title an entry is reached from: its own, or the overflow item where it is folded. */
|
|
355
|
+
private titleFor;
|
|
356
|
+
/** The title whose menu is open now. */
|
|
357
|
+
private openTitle;
|
|
358
|
+
private disabledTitle;
|
|
359
|
+
private labelOf;
|
|
360
|
+
/** Whether `node` is in the bar: its menus and their items, wherever they are drawn, or its own shadow root. */
|
|
361
|
+
private holds;
|
|
362
|
+
/** The title a key or focus event is on: the host of a menu in the row, or the overflow item — not something inside a menu. */
|
|
363
|
+
private titleOf;
|
|
364
|
+
private titleAt;
|
|
365
|
+
private focusTitle;
|
|
366
|
+
/** MBR-12: the Tab stop is one of the titles there are — a folded menu's is the overflow item, and with none it is the first title. */
|
|
367
|
+
private stopNow;
|
|
368
|
+
/** Tells each entry where it is drawn and what its title is among the bar's titles (MBR-12, MBR-19, MBR-21, MBR-42). */
|
|
369
|
+
private place;
|
|
370
|
+
private readChildren;
|
|
371
|
+
/**
|
|
372
|
+
* MBR-20: a bar with no entry, and anything in it that is neither a menu nor a bar item, are reported; such a thing
|
|
373
|
+
* gets no place in the row. MBR-44: a bar of bar items alone is drawn and works, and is reported.
|
|
374
|
+
*/
|
|
375
|
+
private checkContent;
|
|
376
|
+
private fire;
|
|
377
|
+
/**
|
|
378
|
+
* Shows `next` — a menu, the overflow item's menu alone, or nothing — in place of what is shown (MBR-10: at most one):
|
|
379
|
+
* the menu that was open closes first, its `open` set and its `toggle` fired (`closes`), then the new one opens, its
|
|
380
|
+
* `open` set and its `toggle` fired (`opens`). Where one title's menu takes the place of another's neither moves
|
|
381
|
+
* (MBR-29). Focus goes into the new menu as `entry` says (MBR-9) — the menu's own doing — or to its title where it
|
|
382
|
+
* holds no item (MBR-20).
|
|
383
|
+
*/
|
|
384
|
+
private present;
|
|
385
|
+
/**
|
|
386
|
+
* MBR-10, MBR-18: a menu's `open` or `disabled` changed — the person's doing through the bar, which is already in
|
|
387
|
+
* step, or the product's: a disabled menu is closed; a menu the product closed is closed, without its toggle; a menu
|
|
388
|
+
* the product opened is opened as an activation would, without its toggle, and the menu that was open closes with
|
|
389
|
+
* its own; of several the product opened the first is shown.
|
|
390
|
+
* @internal
|
|
391
|
+
*/
|
|
392
|
+
reconcile(): void;
|
|
393
|
+
/** @internal MBR-22: a folded menu's submenu item was opened or closed by the person, as a submenu of the overflow item's menu. */
|
|
394
|
+
foldedToggled(menu: TanreiMenubarMenu, open: boolean): void;
|
|
395
|
+
/** @internal What a folded menu draws in the overflow item's menu changed: that menu reads its items again. */
|
|
396
|
+
foldedUpdated(): void;
|
|
397
|
+
/** @internal MBR-21, MBR-30, MBR-38: an entry's label, disabled value, mark, weight or place changed: its copy is measured again by the observer; a folded one is read again. */
|
|
398
|
+
entryUpdated(): void;
|
|
399
|
+
/**
|
|
400
|
+
* @internal MBR-33, MBR-36: a bar item in the row is being activated — the click is on its way to the product. The
|
|
401
|
+
* menu of the bar that is open, another entry's, closes first, with its toggle, as it does when another title is
|
|
402
|
+
* pressed (MBR-10); the Tab stop is the bar item (MBR-12); and once the click has gone through the page focus rests
|
|
403
|
+
* on the bar item — without the ring where the input was a pointer — unless the product moved it elsewhere.
|
|
404
|
+
*/
|
|
405
|
+
activating(item: TanreiMenubarItem): void;
|
|
406
|
+
/** @internal MBR-43: a folded link item's row was activated: its click is heard while the overflow item's menu is still shown, which closes after it (MBR-15). */
|
|
407
|
+
foldedActivated(): void;
|
|
408
|
+
/** @internal MBR-9, MBR-10: a press or a tap on a title opens its menu, and closes it where it is open, focus staying on the title. */
|
|
409
|
+
pressed(title: TanreiMenubarMenu | typeof OVERFLOW): void;
|
|
410
|
+
/** @internal MBR-11: while a menu is open, a pointer that can hover on another enabled title opens that one at once. */
|
|
411
|
+
hovered(title: TanreiMenubarMenu | typeof OVERFLOW): void;
|
|
412
|
+
/**
|
|
413
|
+
* MBR-13: from inside an open menu — or on the title of an open menu that holds no item (MBR-20) — the inline arrow
|
|
414
|
+
* key closes it and opens the next or the previous enabled title's menu, wrapping, passing over disabled titles,
|
|
415
|
+
* with focus on its first enabled item and the ring shown. With one enabled title it does nothing.
|
|
416
|
+
* @internal
|
|
417
|
+
*/
|
|
418
|
+
travel(from: TanreiMenubarMenu | typeof OVERFLOW, towardsEnd: boolean): void;
|
|
419
|
+
/**
|
|
420
|
+
* MBR-14, MBR-15: the open menu asks to be closed. Escape returns focus to its title; Tab closes it and lets focus go
|
|
421
|
+
* on out of the bar, from its title; a press outside the bar and focus leaving it close it and take no focus back; an
|
|
422
|
+
* item's activation closes it after the item's own event has gone through the page, and returns focus to the title
|
|
423
|
+
* unless the product moved it meanwhile.
|
|
424
|
+
* @internal
|
|
425
|
+
*/
|
|
426
|
+
closeRequested(from: TanreiMenubarMenu | typeof OVERFLOW, reason: TanreiMenuCloseDetail['reason']): void;
|
|
427
|
+
private readonly onOverflowClose;
|
|
428
|
+
/** MBR-12: focus on a title makes it the Tab stop; where style queries are missing the focus style is read as focus arrives (MBR-8). */
|
|
429
|
+
private readonly onFocusIn;
|
|
430
|
+
/** MBR-14: focus leaving the bar and its open menu closes the menu, and the bar takes no focus back. */
|
|
431
|
+
private readonly onFocusOut;
|
|
432
|
+
/**
|
|
433
|
+
* MBR-9, MBR-12, MBR-14, MBR-20: the keys on a title. With no menu open: the inline arrow keys, Home, End and one
|
|
434
|
+
* typed character move focus along the bar and open nothing; Enter, Space and Down Arrow open the title's menu with
|
|
435
|
+
* focus on its first enabled item, Up Arrow on its last; nothing else is handled — not Escape. On a title while a
|
|
436
|
+
* menu is open (a menu that holds no item keeps focus on its title): the inline arrow keys travel as MBR-13 says,
|
|
437
|
+
* Escape closes it, Tab closes it and moves on, and the keys that open a menu act on the focused title.
|
|
438
|
+
*/
|
|
439
|
+
private readonly onKeyDown;
|
|
440
|
+
/** MBR-12: focus to the title at `index`, which becomes the Tab stop; nothing opens. */
|
|
441
|
+
private move;
|
|
442
|
+
/** The row, the copy of every title and of the overflow item, and the gap are observed: any of them may change what fits. */
|
|
443
|
+
private observe;
|
|
444
|
+
/**
|
|
445
|
+
* MBR-21: what fits, from the sizes the observer reports after a layout — the row's inner inline size, each title's
|
|
446
|
+
* copy, the overflow item's and the gap — so that deciding it asks the page for no layout of its own. Every title
|
|
447
|
+
* keeps its size; menus fold from the end, as few as make the rest fit beside the overflow item; where the first
|
|
448
|
+
* title does not fit beside it, every menu folds.
|
|
449
|
+
*/
|
|
450
|
+
private measured;
|
|
451
|
+
/** MBR-21: decides the fold from the sizes reported so far; nothing is decided while one of them is still awaited. */
|
|
452
|
+
private decide;
|
|
453
|
+
/**
|
|
454
|
+
* MBR-21, MBR-22: folds `count` menus from the end, at once. Where that folds or unfolds the menu that is open, or
|
|
455
|
+
* changes the overflow item's menu while it is shown, it is closed first; focus that was inside it, or on a title
|
|
456
|
+
* that is no longer drawn, moves to the title the menu is now reached from.
|
|
457
|
+
*/
|
|
458
|
+
private fold;
|
|
459
|
+
private readonly onOverflowKeyDown;
|
|
460
|
+
private readonly onOverflowKeyUp;
|
|
461
|
+
private readonly onOverflowClick;
|
|
462
|
+
private readonly onOverflowEnter;
|
|
463
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
464
|
+
protected firstUpdated(): void;
|
|
465
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
466
|
+
/** The copy of a title the fold is measured from: the same boxes, drawn by the same rules, never shown. */
|
|
467
|
+
private copy;
|
|
468
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
469
|
+
}
|
|
470
|
+
declare global {
|
|
471
|
+
interface HTMLElementTagNameMap {
|
|
472
|
+
'tanrei-menubar': TanreiMenubar;
|
|
473
|
+
'tanrei-menubar-menu': TanreiMenubarMenu;
|
|
474
|
+
'tanrei-menubar-item': TanreiMenubarItem;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
export {};
|