@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,683 @@
|
|
|
1
|
+
import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
|
|
2
|
+
import { type DateKind, parseValues } from '../../primitives/index.js';
|
|
3
|
+
import type { TanreiInputBoxSizeRegistry, TanreiInputBoxVariantRegistry } from '../../registry.js';
|
|
4
|
+
import { type Segments } from './text-input-segments.js';
|
|
5
|
+
/** The looks of the input box (stacked, filled, outlined), plus any a design system's generated `.d.ts` registers for the box. */
|
|
6
|
+
export type TanreiTextInputVariant = keyof TanreiInputBoxVariantRegistry;
|
|
7
|
+
/** The box's sizes a text input offers (medium, large — `small` is a size of the box it does not offer), plus any a design system's generated `.d.ts` registers. */
|
|
8
|
+
export type TanreiTextInputSize = Exclude<keyof TanreiInputBoxSizeRegistry, 'small'>;
|
|
9
|
+
/** What the value is: the keyboard, autocorrection, obscured entry and semantics (TXI-20). */
|
|
10
|
+
export type TanreiTextInputType = 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url' | 'code' | 'date' | 'time' | 'date-time';
|
|
11
|
+
/** How a multi-line field gets its height (TXI-17). */
|
|
12
|
+
export type TanreiTextInputResize = 'auto' | 'manual' | 'fixed';
|
|
13
|
+
/** What the person can resize by hand (TXI-39). */
|
|
14
|
+
export type TanreiTextInputResizeAxis = 'vertical' | 'both';
|
|
15
|
+
/** `disabled-dates`: a space-separated list or a JSON array (src/primitives/values.ts). An element composed around the input declares the same converter. */
|
|
16
|
+
export declare const DISABLED_DATES: {
|
|
17
|
+
fromAttribute: typeof parseValues;
|
|
18
|
+
toAttribute: (value: string[]) => string;
|
|
19
|
+
};
|
|
20
|
+
/** What `action` carries: the value when the action key was pressed. */
|
|
21
|
+
export interface TanreiTextInputActionDetail {
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
/** What `pickerrequest` carries (TXI-33): the value — empty while the row is half-filled or not available — and what the picker needs. */
|
|
25
|
+
export interface TanreiTextInputPickerRequestDetail {
|
|
26
|
+
/** The ISO 8601 value, or empty. */
|
|
27
|
+
value: string;
|
|
28
|
+
type: DateKind;
|
|
29
|
+
/** The earliest value the field accepts from the person, ISO 8601, or empty. */
|
|
30
|
+
min: string;
|
|
31
|
+
/** The latest value the field accepts from the person, ISO 8601, or empty. */
|
|
32
|
+
max: string;
|
|
33
|
+
}
|
|
34
|
+
/** What `entryerror` carries (TXI-30): why the committed row gives no available value, and its text as drawn. */
|
|
35
|
+
export interface TanreiTextInputEntryErrorDetail {
|
|
36
|
+
/** `invalid`: some segments are empty; `unavailable`: a value before `min`, after `max` or listed in `disabledDates`. */
|
|
37
|
+
reason: 'invalid' | 'unavailable';
|
|
38
|
+
text: string;
|
|
39
|
+
}
|
|
40
|
+
/** An entry error while it lasts (TXI-30): its reason, the row's text it was committed with, and what made it unavailable. */
|
|
41
|
+
interface EntryError extends TanreiTextInputEntryErrorDetail {
|
|
42
|
+
side?: 'under' | 'over' | 'listed';
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The box people type in, and everything typed in it — one line, or several that follow the text or are resized by
|
|
46
|
+
* hand, or a date or a time entered unit by unit in the locale's form — with optional icons, a prefix and a suffix, a
|
|
47
|
+
* picker button, and, in the two looks that have one, the label that floats inside the box. It has no label row, no
|
|
48
|
+
* help and no error text of its own: put it in a `<tanrei-field>`, which names it, describes it and marks it — or use
|
|
49
|
+
* `<tanrei-text-field>`, which is the two as one element. Bare, it is for a place whose label stands elsewhere: a
|
|
50
|
+
* filter in a toolbar, a cell of a table, a row with its label beside it; give it `label` there.
|
|
51
|
+
*
|
|
52
|
+
* Contract: specs/text-input.spec.json. `<tanrei-field label="Email"><tanrei-text-input name="email" type="email">
|
|
53
|
+
* </tanrei-text-input></tanrei-field>`, or bare: `<tanrei-text-input name="q" type="search" label="Filter tokens">
|
|
54
|
+
* </tanrei-text-input>`. The box is drawn from `--tanrei-comp-input-box-*`, the one set of
|
|
55
|
+
* tokens every input box is drawn from (TXI-68), one set per variant, look (plain or error) and state — how a state
|
|
56
|
+
* looks is the active design system's decision — and what a text input alone draws (the resize grip, a segment, the
|
|
57
|
+
* code face, the entries place) from `--tanrei-comp-text-input-*`. The text is edited in a native
|
|
58
|
+
* `<input>` — a `<textarea>` while `multiline` — in the shadow root, so input methods, autofill,
|
|
59
|
+
* selection and the clipboard work as the browser does. The name (its own `label`, else its Field's), the description
|
|
60
|
+
* (the prefix and the suffix while shown, the count, then what its Field gives) and the invalid, required, read-only
|
|
61
|
+
* and disabled states are set on that element.
|
|
62
|
+
*
|
|
63
|
+
* It is a block as wide as its place, framed and bare alike (TXI-63): it has no width of its own. A narrower box is a
|
|
64
|
+
* narrower place.
|
|
65
|
+
*
|
|
66
|
+
* It tells the Field around it what only it knows, through the Field's own connection (`src/primitives/field.ts`):
|
|
67
|
+
* that it draws the label itself while its look floats one, how far its text stands from its edges — the Field's
|
|
68
|
+
* supporting row starts and ends there — and its own refusal of a date or a time, with its words (TXI-62). It takes
|
|
69
|
+
* from that Field its name, its description, the required, invalid and disabled states, whether the label is hidden,
|
|
70
|
+
* and whether an asterisk follows a floating label. `countText` is the count it keeps while `counter` is set, as text
|
|
71
|
+
* ("12/40"): it describes and announces the count and draws none — a Field draws it, given it as `count-text`.
|
|
72
|
+
*
|
|
73
|
+
* `stacked` (the default) draws no label — the label above it is its Field's row — and marks focus and error with a
|
|
74
|
+
* line inside the container's edge; `filled` and `outlined` float the label inside the box. A design system may leave some out
|
|
75
|
+
*: they still work, and a debug build says so.
|
|
76
|
+
*
|
|
77
|
+
* `multiline` with `resize="auto"` (the default) follows its lines between `min-rows` and `max-rows` with an animated
|
|
78
|
+
* height; `resize="manual"` draws a grip in the bottom end corner that is dragged, moved with the arrow keys, or
|
|
79
|
+
* activated to fit the text (`resize-axis="both"` resizes the width too); `resize="fixed"` stays at `min-rows`.
|
|
80
|
+
*
|
|
81
|
+
* `type="code"` is a field whose value is written for a machine — a pattern, a key, a snippet of configuration — on one
|
|
82
|
+
* line or, with `multiline`, on many: the input line (prefix, value, placeholder, suffix) is one left-to-right row in
|
|
83
|
+
* the code face that begins at the left in every layout direction, while the label, the icons, the messages and the
|
|
84
|
+
* grip follow the page; the browser is asked not to correct, capitalise, spell-check, translate or complete it; a paste
|
|
85
|
+
* is plain text, character for character; Tab still moves focus. `no-wrap` keeps each line of a multi-line code field
|
|
86
|
+
* on one row and scrolls it sideways inside the container. It is a field, not an editor: no syntax colors, no line
|
|
87
|
+
* numbers, no Tab that indents.
|
|
88
|
+
*
|
|
89
|
+
* `date`, `time` and `date-time` are the stated exception to the native element: a row of segments — one spin button
|
|
90
|
+
* per unit, in the locale's order — that are focused, stepped, typed into and cleared on their own, held as ISO 8601
|
|
91
|
+
* (`2026-09-27`, `14:30`, `2026-09-27T14:30`) or empty while a segment is empty or the value is not available. A whole
|
|
92
|
+
* date can be pasted. With `picker`, the field shows a picker button that asks the product to present a picker
|
|
93
|
+
* (`pickerrequest`); the field presents none itself.
|
|
94
|
+
*
|
|
95
|
+
* Form-associated: with a `name` it submits `value`, resets to its `value` attribute, restores on navigation, joins
|
|
96
|
+
* constraint validation (a missing value while its Field says it is required; a date or time field's entry error as badInput,
|
|
97
|
+
* rangeUnderflow, rangeOverflow or a custom error) and is left out while disabled — its own or a `<fieldset>`'s.
|
|
98
|
+
*
|
|
99
|
+
* @tag tanrei-text-input
|
|
100
|
+
* @slot leading-icon - An icon at the start of the field: a glyph name of the system's icon set, an `<svg>` or an `<img>`. A glyph the icon set flags as showing a direction (`arrow_forward`, `send`) is drawn mirrored in a right-to-left layout. `data-mirror="auto | always | never"` on the element decides for one use.
|
|
101
|
+
* @slot trailing-icon - An icon at the end of the field, or the product's own icon-only Button (clear, reveal password). A date or time field's picker button comes after it. A glyph is mirrored in right-to-left as in `leading-icon`.
|
|
102
|
+
* @slot entries - What was entered already — the product's own elements, or the chips of a component that holds the input (a chip field): laid out inside the box before the typing part, in lines that wrap (TXI-64). The text input gives them no role, no focus order and no key (TXI-66).
|
|
103
|
+
* @csspart container - The box around the input: its fill, corners and hover state layer.
|
|
104
|
+
* @csspart outline - The outlined variant's border (with the gap for the floated label); a stacked field's inner line.
|
|
105
|
+
* @csspart active-indicator - The filled variant's bottom line.
|
|
106
|
+
* @csspart label - The label that floats in a filled or an outlined box.
|
|
107
|
+
* @csspart requirement-label - The required asterisk after a floating label.
|
|
108
|
+
* @csspart input - The native `<input>` or `<textarea>`; a date, time or date-time field's row of segments.
|
|
109
|
+
* @csspart entries - What was entered already, before the typing part: the content of the `entries` slot. The text input lays it out and draws none of it, so the part has no box of its own.
|
|
110
|
+
* @csspart segment - One unit of a date or a time: a spin button in the row.
|
|
111
|
+
* @csspart prefix - The fixed text before the value.
|
|
112
|
+
* @csspart suffix - The fixed text after the value.
|
|
113
|
+
* @csspart leading-icon - The box of the leading icon.
|
|
114
|
+
* @csspart trailing-icon - The box of the trailing icon.
|
|
115
|
+
* @csspart picker-button - The picker button, a `<tanrei-button>` (TXI-32).
|
|
116
|
+
* @csspart resize-grip - The grip of a multi-line field resized by hand (TXI-39).
|
|
117
|
+
* @attr {string} form - The id of the form the text input belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
|
|
118
|
+
* @fires input - The user changed the value (typing, deleting, pasting, dictation, autofill, an input method); `value` is already the new one. A date or time field fires it when its value changes — its last segment is filled, a filled row is edited, or it is emptied — not for a segment that leaves the value empty. Never fired when the product sets `value`.
|
|
119
|
+
* @fires change - The user committed a changed value: focus left the field (a date or time field's segments and picker button), or the action key was pressed in a single-line field.
|
|
120
|
+
* @fires {CustomEvent<TanreiTextInputActionDetail>} action - The action key (Enter) was pressed in a single-line field. Cancelable: cancelling it keeps an enclosing form from being submitted.
|
|
121
|
+
* @fires {CustomEvent<TanreiTextInputPickerRequestDetail>} pickerrequest - The user activated the picker button of a date, time or date-time field. The product presents the picker and sets `value` to the picked value.
|
|
122
|
+
* @fires {CustomEvent<TanreiTextInputEntryErrorDetail>} entryerror - The user committed a date, time or date-time field that is half-filled (`invalid`) or whose value is not available (`unavailable`: before `min`, after `max` or listed in `disabledDates`), with the row's text as drawn.
|
|
123
|
+
*/
|
|
124
|
+
export declare class TanreiTextInput extends LitElement {
|
|
125
|
+
private readonly availability;
|
|
126
|
+
/**
|
|
127
|
+
* TXI-35: the glyphs in the leading-icon and trailing-icon slots are marked when the icon set mirrors
|
|
128
|
+
* their names in right-to-left, or the product's `data-mirror` says so (src/primitives/glyph-mirror.ts);
|
|
129
|
+
* `iconGlyph()` draws the mark. The picker button's glyph is its Button's (TXI-32) and is not one the icon set flags,
|
|
130
|
+
* and the resize grip's glyphs are never marked.
|
|
131
|
+
*/
|
|
132
|
+
private readonly mirror;
|
|
133
|
+
/**
|
|
134
|
+
* TXI-22, TXI-39: the resize grip's glyph is drawn once the icon set can draw it; until then nothing stands in its
|
|
135
|
+
* place — not its name spelled out in a text face (src/primitives/glyph.ts).
|
|
136
|
+
*/
|
|
137
|
+
private readonly gripGlyph;
|
|
138
|
+
/**
|
|
139
|
+
* TXI-62: the input's side of the exchange with the Field that frames it (src/primitives/field.ts). It takes the
|
|
140
|
+
* Field's name, description and states, whether the label is hidden and whether an asterisk follows it; and it says
|
|
141
|
+
* what only it knows — that it draws the label, how far its text is inset, its own refusal of an entry. It has an
|
|
142
|
+
* error condition of its own (TXI-11). No Field: it is drawn as a bare input.
|
|
143
|
+
*/
|
|
144
|
+
private readonly frame;
|
|
145
|
+
/** The Field's answer changed since the last update: the floating label may have other lines (TXI-13). */
|
|
146
|
+
private frameChanged;
|
|
147
|
+
static styles: import("lit").CSSResult;
|
|
148
|
+
static formAssociated: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Its documented parts, once: what an element composed around it exports (src/primitives/composed.ts). Held equal to
|
|
151
|
+
* the `@csspart` lines above by src/primitives/composed.test.ts.
|
|
152
|
+
*
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
static readonly parts: readonly string[];
|
|
156
|
+
static shadowRootOptions: ShadowRootInit;
|
|
157
|
+
static properties: PropertyDeclarations;
|
|
158
|
+
/**
|
|
159
|
+
* Stacked is a filled box that shows focus and error with a line inside its edge, under the label its Field draws
|
|
160
|
+
* above it; filled and outlined float the label inside the box, marked by a tinted box and a bottom line, or by a
|
|
161
|
+
* border. Use one style
|
|
162
|
+
* per form. A design system may leave some out (the default system ships stacked only) or add values.
|
|
163
|
+
*/
|
|
164
|
+
variant: TanreiTextInputVariant;
|
|
165
|
+
/** Minimum height of a single-line field's container (48 / 56 in the default system). The hit area always meets the minimum target. */
|
|
166
|
+
size: TanreiTextInputSize;
|
|
167
|
+
/**
|
|
168
|
+
* What the value is: chooses the keyboard, autocorrection, obscured entry and semantics. `code` is text written for
|
|
169
|
+
* a machine rather than for a reader — a snippet of configuration, a pattern, an identifier, a query, a key: a
|
|
170
|
+
* left-to-right run in the code face that the browser does not correct, capitalise, check for spelling or complete,
|
|
171
|
+
* on one line or, with `multiline`, on many. `date`, `time` and `date-time` are entered segment by segment in the
|
|
172
|
+
* locale's numeric form. The value is always a string.
|
|
173
|
+
*/
|
|
174
|
+
type: 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url' | 'code' | 'date' | 'time' | 'date-time';
|
|
175
|
+
/**
|
|
176
|
+
* The text in the field; for date, time and date-time, the ISO 8601 form of what its segments give (2026-09-27, 14:30,
|
|
177
|
+
* 2026-09-27T14:30), or empty while a segment is empty or the value is not available. Setting it shows it and fires
|
|
178
|
+
* nothing. The `value` attribute is what a form reset returns to.
|
|
179
|
+
*/
|
|
180
|
+
get value(): string;
|
|
181
|
+
set value(value: string);
|
|
182
|
+
/** The value the element holds: what the product set, or the person's last edit as the element took it. */
|
|
183
|
+
private held;
|
|
184
|
+
/** The native text element, once drawn (none for a row of segments), and what it held when the element last wrote to it or took from it. */
|
|
185
|
+
private nativeInput;
|
|
186
|
+
private nativeSeen;
|
|
187
|
+
/** TXI-18: what an edit that left `text` in the native element becomes — itself, or what of it fits under maxLength. A composition is the platform's (TXI-4). */
|
|
188
|
+
private afterEdit;
|
|
189
|
+
/** The input's own accessible name, for an input no Field frames or one whose visible label is elsewhere; a filled or an outlined input draws it floating. Inside a Field leave it empty: the Field's label names the input, and its own would win. */
|
|
190
|
+
label: string;
|
|
191
|
+
/** Does not draw the floating label of a filled or an outlined input, which stays the accessible name (the `label-hidden` attribute). Inside a Field, hide the label on the Field. */
|
|
192
|
+
labelHidden: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* A hint shown while the value is empty and the label is not in the input line (above, floated or hidden). Never a
|
|
195
|
+
* replacement for `label`. In a code field it is an example of the code and is drawn as code; a hint in words
|
|
196
|
+
* belongs in its Field's `supportingText`. Ignored by a date, time or date-time field, whose empty segments each show their own.
|
|
197
|
+
*/
|
|
198
|
+
placeholder: string;
|
|
199
|
+
/**
|
|
200
|
+
* Puts the input in the error condition: its error parts are drawn and it is exposed as invalid. For a bare input;
|
|
201
|
+
* inside a Field set `error` on the Field, which marks the input and shows the words. Validation is the product's:
|
|
202
|
+
* the input never sets this itself.
|
|
203
|
+
*/
|
|
204
|
+
error: boolean;
|
|
205
|
+
/** Prevents focus, editing and form submission. Inside a Field, disable the Field, so that its label follows. */
|
|
206
|
+
disabled: boolean;
|
|
207
|
+
/** The value can be focused, selected and copied, but not changed (the `readonly` attribute). */
|
|
208
|
+
readOnly: boolean;
|
|
209
|
+
/** Accepts line breaks and shows several lines, sized as `resize` says. Ignored for password, date, time and date-time. */
|
|
210
|
+
multiline: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* The fewest lines a multi-line field shows (`min-rows`): the height of an empty auto-resized field, the starting and
|
|
213
|
+
* smallest height of a manually resized one, and the height of a fixed one.
|
|
214
|
+
*/
|
|
215
|
+
minRows: number;
|
|
216
|
+
/**
|
|
217
|
+
* The most lines an auto-resized field grows to before it scrolls, and the tallest a manually resized one can be made
|
|
218
|
+
* (`max-rows`); 0 is no limit. Ignored while `resize` is fixed.
|
|
219
|
+
*/
|
|
220
|
+
maxRows: number;
|
|
221
|
+
/**
|
|
222
|
+
* How a multi-line field gets its height. `auto`: it follows the number of lines between `minRows` and `maxRows`, with
|
|
223
|
+
* an animated change, and has no grip. `manual`: it starts at `minRows` lines and the person resizes it with the grip
|
|
224
|
+
* in its bottom end corner. `fixed`: it stays at `minRows` lines, with no grip.
|
|
225
|
+
*/
|
|
226
|
+
resize: TanreiTextInputResize;
|
|
227
|
+
/** What the person can resize by hand (`resize-axis`): the height only, or the height and the width. Ignored unless `resize` is manual. */
|
|
228
|
+
resizeAxis: TanreiTextInputResizeAxis;
|
|
229
|
+
/** The accessible name of the resize grip (`resize-label`): this instance's words, else the product's (`setWords({ resizeLabel })`). Tanrei has none: without them the grip is drawn and works, and has no name. */
|
|
230
|
+
resizeLabel: string;
|
|
231
|
+
/**
|
|
232
|
+
* Keeps every line of a multi-line code field on one row (`no-wrap`; the spec's `wrap: false`): a line wider than the
|
|
233
|
+
* input scrolls sideways inside the container, and widens nothing. Without it a line that does not fit continues on
|
|
234
|
+
* following rows; the value is the same either way. Read only while `type` is `code` and `multiline` is set: prose
|
|
235
|
+
* always wraps, and a single line always scrolls in its line (reported in debug builds).
|
|
236
|
+
*/
|
|
237
|
+
noWrap: boolean;
|
|
238
|
+
/** The most user-perceived characters the user can enter; 0 is no limit (the `maxlength` attribute). Ignored for date, time and date-time. */
|
|
239
|
+
maxLength: number;
|
|
240
|
+
/** Keeps a character count (with `maxLength`, when set: "12/40"): part of the description, announced when typing pauses, and readable as `countText`. The input draws none: a Field draws it at the end of its supporting row, given it as `count-text` — which `<tanrei-text-field>` does by itself. */
|
|
241
|
+
counter: boolean;
|
|
242
|
+
/** Fixed text before the value, not part of it (`prefix-text`). Beside one line of email, url, tel, number or password it is written before the value along the direction of the run the two affixes make — that of their first strong character, left-to-right where they have none — in every layout direction; beside any other value it stands at the field's start edge. In a code field it is code: in the code face, at the left of the value in every layout direction. Ignored for date, time and date-time. */
|
|
243
|
+
prefixText: string;
|
|
244
|
+
/** Fixed text after the value, not part of it (`suffix-text`). Beside one line of email, url, tel, number or password it is written after the value along the run's direction (see `prefixText`); beside any other value it stands at the field's end edge. In a code field it is code: in the code face, at the right of the value in every layout direction. Ignored for date, time and date-time. */
|
|
245
|
+
suffixText: string;
|
|
246
|
+
/** The autofill hint, as an HTML autofill field name (email, current-password, one-time-code…). A code field left without one asks the browser to offer no remembered entry. */
|
|
247
|
+
autocomplete: string;
|
|
248
|
+
/**
|
|
249
|
+
* A BCP 47 tag ("en-US", "ja-JP") for how a date, time or date-time field shows and reads its value: the order of its
|
|
250
|
+
* segments, the separators, the clock, the digits and the names of the units. Empty uses the nearest `lang`
|
|
251
|
+
* attribute, then the browser's language. The calendar is the Gregorian calendar in every locale.
|
|
252
|
+
*/
|
|
253
|
+
locale: string;
|
|
254
|
+
/** The earliest value a date, time or date-time field accepts from the person, ISO 8601; empty for no limit. */
|
|
255
|
+
min: string;
|
|
256
|
+
/** The latest value a date, time or date-time field accepts from the person, ISO 8601; empty for no limit. */
|
|
257
|
+
max: string;
|
|
258
|
+
/**
|
|
259
|
+
* Dates inside `min` and `max` that a date or date-time field does not accept from the person, as ISO 8601 calendar
|
|
260
|
+
* dates — the same list the product gives its date-time picker. The `disabled-dates` attribute is a space-separated
|
|
261
|
+
* list or a JSON array. Ignored by a time field.
|
|
262
|
+
*/
|
|
263
|
+
disabledDates: string[];
|
|
264
|
+
/** The words of the refusal of a date, time or date-time input committed with some segments filled and others empty (`invalid-text`): shown by the Field that frames it as its error text, and part of a bare input's description. */
|
|
265
|
+
invalidText: string;
|
|
266
|
+
/** The words of the refusal of a date, time or date-time input committed with a value before `min`, after `max` or listed in `disabledDates` (`unavailable-text`): shown and described as `invalidText` is. */
|
|
267
|
+
unavailableText: string;
|
|
268
|
+
/** What assistive technology reads as the value of a date or time segment that holds nothing yet (`segment-empty-text`): this instance's words, else the product's (`setWords({ segmentEmptyText })`). Tanrei has none: without them an empty segment has no value text. */
|
|
269
|
+
segmentEmptyText: string;
|
|
270
|
+
/**
|
|
271
|
+
* Shows the picker button in a date, time or date-time field. The field presents no picker itself: it fires
|
|
272
|
+
* `pickerrequest`, and the product presents one and sets `value` to what was picked.
|
|
273
|
+
*/
|
|
274
|
+
picker: boolean;
|
|
275
|
+
/** The accessible name of the picker button ("Choose date", `picker-label`). Required while the button is shown. */
|
|
276
|
+
pickerLabel: string;
|
|
277
|
+
/** Web only: the name it is submitted under. */
|
|
278
|
+
name: string;
|
|
279
|
+
protected hasLeading: boolean;
|
|
280
|
+
protected hasTrailing: boolean;
|
|
281
|
+
/** TXI-64, TXI-65: whether the entries slot holds content. */
|
|
282
|
+
protected hasEntries: boolean;
|
|
283
|
+
protected focused: boolean;
|
|
284
|
+
/** Set by an ancestor `<fieldset disabled>` (the element's `formDisabledCallback`). */
|
|
285
|
+
protected formDisabled: boolean;
|
|
286
|
+
/** What a date or time field's segments hold (TXI-42 … TXI-46). */
|
|
287
|
+
protected segments: Segments;
|
|
288
|
+
/** A date or time field's entry error, while it lasts (TXI-30). */
|
|
289
|
+
protected entryError: EntryError | null;
|
|
290
|
+
private readonly internals;
|
|
291
|
+
/** What it tells its form, said where an element composed around it hears it (src/primitives/form-says.ts). */
|
|
292
|
+
private readonly says;
|
|
293
|
+
/** TXI-9: sizes and variants a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
|
|
294
|
+
private readonly axes;
|
|
295
|
+
/**
|
|
296
|
+
* TXI-1, TXI-4: the value and the native element kept in step around an input method (src/primitives/native-text.ts).
|
|
297
|
+
* A committed composition is cut to maxLength (TXI-18) from the value it began with. A date or time field has no
|
|
298
|
+
* native element: its segments take what an input method commits (TXI-45).
|
|
299
|
+
*/
|
|
300
|
+
private readonly native;
|
|
301
|
+
/** TXI-2: the value last committed (when focus arrived, at the last change, or as the product last set it). */
|
|
302
|
+
private committed;
|
|
303
|
+
/** The value the person's last edit gave the field: a `value` that differs from it was set by the product. */
|
|
304
|
+
private userValue;
|
|
305
|
+
private countTimer;
|
|
306
|
+
/** TXI-45: the digits typed since the focused segment took focus. */
|
|
307
|
+
private typedDigits;
|
|
308
|
+
/** TXI-45: an input method is composing on a segment; nothing is taken until it commits. */
|
|
309
|
+
private composing;
|
|
310
|
+
/** TXI-43: focus is on one of the field's segments or on its picker button. */
|
|
311
|
+
private within;
|
|
312
|
+
/** TXI-33: the picker was asked for; focus leaving for it raises no entry error. */
|
|
313
|
+
private pickerAsked;
|
|
314
|
+
/** TXI-39: the lines the person gave a manually resized field; null is minRows. */
|
|
315
|
+
private manualLines;
|
|
316
|
+
/** The lines the input shows (the grip's value, TXI-41). */
|
|
317
|
+
private lines;
|
|
318
|
+
/** The textarea whose height was last written: a new one is sized without motion (TXI-38). */
|
|
319
|
+
private sized;
|
|
320
|
+
/** TXI-39: a width the person gave the field is on the host's inline style; what it replaced is put back. */
|
|
321
|
+
private manualWidth;
|
|
322
|
+
private drag;
|
|
323
|
+
private sizeObserver;
|
|
324
|
+
private observedInput;
|
|
325
|
+
private lastBox;
|
|
326
|
+
/** TXI-58: the room a sideways scrollbar takes of the input's height, which an auto-resized field adds to its lines. */
|
|
327
|
+
private bar;
|
|
328
|
+
private get input();
|
|
329
|
+
private get textarea();
|
|
330
|
+
/** The kind of a date, time or date-time field, or null for every other type. */
|
|
331
|
+
private get dateKind();
|
|
332
|
+
/** TXI-42: the row of segments of a date, time or date-time field in its locale, or null for every other type. */
|
|
333
|
+
private get row();
|
|
334
|
+
private get isMultiline();
|
|
335
|
+
/** TXI-53: the field holds code — its input line is one left-to-right row in the code face. */
|
|
336
|
+
private get isCode();
|
|
337
|
+
/** TXI-57, TXI-58: the lines of the code are not wrapped — read only by a multi-line code field. */
|
|
338
|
+
private get unwrapped();
|
|
339
|
+
private get inert_();
|
|
340
|
+
/** How the variant is laid out: filled and outlined by name, every other value as stacked (TXI-9). */
|
|
341
|
+
private get layout();
|
|
342
|
+
/** TXI-17: how a multi-line field gets its height; a value the field does not know is auto. */
|
|
343
|
+
private get resizeMode();
|
|
344
|
+
/** TXI-17: what the grip resizes; a value the field does not know is vertical. */
|
|
345
|
+
private get axis();
|
|
346
|
+
/** TXI-39: a multi-line field resized by hand draws the grip, read-only too — not while disabled. */
|
|
347
|
+
private get gripShown();
|
|
348
|
+
/** TXI-17: the fewest lines; a minRows below 1 is 1. */
|
|
349
|
+
private get minLines();
|
|
350
|
+
/** TXI-37, TXI-39: the most lines, or 0 for no limit; never fewer than minRows, and minRows itself while fixed. */
|
|
351
|
+
private get maxLines();
|
|
352
|
+
/** TXI-52: the product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
353
|
+
private readonly words;
|
|
354
|
+
/** TXI-41, TXI-52: the grip's name — the instance's, else the product's words, else nothing. */
|
|
355
|
+
private get gripName();
|
|
356
|
+
/** TXI-23: the validity message of a date or a time its Field says is required, left empty — the browser's, else the Field's words. */
|
|
357
|
+
private missingMessage;
|
|
358
|
+
/** TXI-23: the accessible name — its own label, else the label of the Field that frames it. */
|
|
359
|
+
private get name_();
|
|
360
|
+
/** TXI-23: its Field says it is required. It has no requirement of its own. */
|
|
361
|
+
private get required_();
|
|
362
|
+
/** TXI-13: the label floats in the box — a filled or an outlined input with a name, unless its own `labelHidden` or its Field's says to draw none. */
|
|
363
|
+
private get labelled();
|
|
364
|
+
/** TXI-50: an asterisk follows the floating label — the Field's answer (FLD-25); never outside a Field. */
|
|
365
|
+
private get asterisked();
|
|
366
|
+
/**
|
|
367
|
+
* TXI-62: what the input says to the Field that frames it. That it draws the label while its look floats one — its
|
|
368
|
+
* name, or nothing while the label is hidden; the Field draws no label row either way. How far its text stands from
|
|
369
|
+
* its start edge and the padding it keeps at its end edge, as lengths of its own tokens (`INSET`, in the styles).
|
|
370
|
+
* And an entry error, with its words.
|
|
371
|
+
*/
|
|
372
|
+
private get saysToField();
|
|
373
|
+
/** TXI-30: the words of an entry error while it lasts — invalidText or unavailableText; empty where the product gave none. */
|
|
374
|
+
private get refusalText();
|
|
375
|
+
/**
|
|
376
|
+
* TXI-23, TXI-30: what the input adds to its own description (the prefix, the suffix and the count are named by id):
|
|
377
|
+
* the words of an entry error while no Field frames it — a Field shows them and gives them back as its own
|
|
378
|
+
* description (FLD-28) — and then the description its Field gives.
|
|
379
|
+
*/
|
|
380
|
+
private get described();
|
|
381
|
+
/** What the field shows as text: a date or time field's row as drawn, every other field's value. */
|
|
382
|
+
private get shownValue();
|
|
383
|
+
/** The locale a date or time field reads and writes in (TXI-28): `locale`, else the nearest `lang`, else the browser's. */
|
|
384
|
+
private get resolvedLocale();
|
|
385
|
+
/** `min` and `max` as ISO values of the kind, or empty (TXI-31: anything else is treated as empty). */
|
|
386
|
+
private limit;
|
|
387
|
+
/** TXI-31: the entries of `disabledDates` that are ISO 8601 calendar dates; a time field has none. */
|
|
388
|
+
private get listedDates();
|
|
389
|
+
/** TXI-46: why an ISO value the row gives is not available — before min, after max, a listed date — or null when it is. */
|
|
390
|
+
private unavailable;
|
|
391
|
+
/** The form it belongs to, if any. */
|
|
392
|
+
get form(): HTMLFormElement | null;
|
|
393
|
+
/** The native constraint validity (a required field's missing value; a date or time field's entry error), as a form sees it. */
|
|
394
|
+
get validity(): ValidityState;
|
|
395
|
+
/** The message of an invalid input, as a form shows it. */
|
|
396
|
+
get validationMessage(): string;
|
|
397
|
+
/** Whether the input is validated with its form: not while disabled. */
|
|
398
|
+
get willValidate(): boolean;
|
|
399
|
+
checkValidity(): boolean;
|
|
400
|
+
reportValidity(): boolean;
|
|
401
|
+
/** TXI-8, TXI-43: focus given to the element goes to what takes the typing — the native element, or the segment a press would focus. */
|
|
402
|
+
focus(options?: FocusOptions): void;
|
|
403
|
+
/** Selects the whole value, as a native input's `select()` does. A date or time field has nothing to select: its first segment takes focus. */
|
|
404
|
+
select(): void;
|
|
405
|
+
formResetCallback(): void;
|
|
406
|
+
formStateRestoreCallback(state: string | File | FormData | null): void;
|
|
407
|
+
formDisabledCallback(disabled: boolean): void;
|
|
408
|
+
/** TXI-28, TXI-31: the value as the product set it fills every segment (an empty one empties them); any entry error ends. */
|
|
409
|
+
private showValue;
|
|
410
|
+
/** TXI-1: the person gave the native element this text; it is the value. */
|
|
411
|
+
private takeText;
|
|
412
|
+
/**
|
|
413
|
+
* TXI-45, TXI-46: an edit of a segment. The entry error ends with it (TXI-30); the value is the ISO form of what the
|
|
414
|
+
* row now gives while every segment is filled and that is available, and empty otherwise; `input` is emitted once
|
|
415
|
+
* when — and only when — the value changed.
|
|
416
|
+
*/
|
|
417
|
+
private edit;
|
|
418
|
+
/**
|
|
419
|
+
* TXI-30: a committed date or time field. A row with some segments filled and others empty, or a whole one whose
|
|
420
|
+
* value is not available, keeps its segments and begins an entry error; an empty row, and a row that gives an
|
|
421
|
+
* available value, begin none. Returns the entry error that began, if one did (a commit of the same row again begins none).
|
|
422
|
+
*/
|
|
423
|
+
private commitEntry;
|
|
424
|
+
private get segmentElements();
|
|
425
|
+
/** The segment that has focus, if one has. */
|
|
426
|
+
private get activeSegment();
|
|
427
|
+
/** TXI-43: focus moves to the segment `by` places along the row, stopping at its ends; returns the segment it moved to. */
|
|
428
|
+
private moveFocus;
|
|
429
|
+
/**
|
|
430
|
+
* TXI-42: each segment's text is written by the field alone — never by a template the browser's editing could
|
|
431
|
+
* disagree with, and never into a composition (TXI-45).
|
|
432
|
+
*/
|
|
433
|
+
private paintSegments;
|
|
434
|
+
/** The (invisible) caret at the end of the focused segment's text, so a touch keyboard's Backspace has something to delete. */
|
|
435
|
+
private placeCaret;
|
|
436
|
+
/** TXI-29: text handed to the field whole — pasted, dictated, autofilled — fills every segment when it reads as a value of the type. */
|
|
437
|
+
private takeWhole;
|
|
438
|
+
/**
|
|
439
|
+
* TXI-45: one character on a segment (the focused one). A digit is the next digit of its number, and focus moves on
|
|
440
|
+
* once no further digit could extend it; a separator's character moves on from a segment that is not empty; a or p, or
|
|
441
|
+
* the first letter of the locale's names, set a day period. Every other character is ignored. Returns the segment the
|
|
442
|
+
* next character goes to.
|
|
443
|
+
*/
|
|
444
|
+
private typeCharacter;
|
|
445
|
+
/** The characters of text as typed: full-width and the locale's digits as ASCII ones. */
|
|
446
|
+
private characters;
|
|
447
|
+
/**
|
|
448
|
+
* TXI-45: the browser is about to edit a segment. Nothing it would write is kept — the segment's text is the field's
|
|
449
|
+
* — and what it carries is read instead: a character is typed, several at once are a whole text (TXI-29: dictation,
|
|
450
|
+
* autofill, a paste the clipboard event did not bring), a deletion removes a digit. A composition cannot be cancelled
|
|
451
|
+
* and is left to the input method until it commits.
|
|
452
|
+
*/
|
|
453
|
+
private onBeforeInput;
|
|
454
|
+
/** TXI-45: Backspace or Delete removes the focused segment's last digit; Backspace on an empty one moves to the previous segment. */
|
|
455
|
+
private eraseOn;
|
|
456
|
+
/**
|
|
457
|
+
* TXI-43, TXI-44, TXI-45: the keys of a segment. Left and Right Arrow move to the segment drawn on that side — the
|
|
458
|
+
* same in a right-to-left layout, where the row runs left to right too; Up and Down Arrow step by one, Page Up and
|
|
459
|
+
* Page Down by more, Home and End go to the ends of the range; Backspace and Delete remove a digit; Enter is the
|
|
460
|
+
* action key (TXI-3). Digits and letters arrive as `beforeinput`.
|
|
461
|
+
*/
|
|
462
|
+
private onSegmentKeyDown;
|
|
463
|
+
private onSegmentCompositionStart;
|
|
464
|
+
/**
|
|
465
|
+
* TXI-45: an input method committed text on a segment. Its digits are taken one by one, as typed (full-width ones
|
|
466
|
+
* too); any other text is read whole (TXI-29). What the composition drew in the segment is replaced by the field's own text.
|
|
467
|
+
*/
|
|
468
|
+
private onSegmentCompositionEnd;
|
|
469
|
+
/** The browser's own `input` on a segment (a composition's) is not the field's: the value's change is (TXI-46). */
|
|
470
|
+
private onSegmentInput;
|
|
471
|
+
/** TXI-29: copy puts the whole row on the clipboard as drawn, whichever segment has focus. */
|
|
472
|
+
private onCopy;
|
|
473
|
+
/** TXI-29: cut copies the whole row and then empties every segment, unless the field is read-only. */
|
|
474
|
+
private onCut;
|
|
475
|
+
/** TXI-29: pasted text is read whole, whichever segment has focus; text that reads as nothing changes nothing. */
|
|
476
|
+
private onPaste;
|
|
477
|
+
/** A node of the field's own that focus may move between without committing (TXI-43): a segment, or the picker button. */
|
|
478
|
+
private keepsEntry;
|
|
479
|
+
/** TXI-43: focus arrived on a segment or on the picker button of a date or time field. */
|
|
480
|
+
private onEntryFocusIn;
|
|
481
|
+
/**
|
|
482
|
+
* TXI-43: focus left a segment or the picker button. Moving between them commits nothing; leaving them for anything
|
|
483
|
+
* else commits the field (TXI-2, TXI-30) — without the entry error when it leaves for the picker it asked for (TXI-33).
|
|
484
|
+
*/
|
|
485
|
+
private onEntryFocusOut;
|
|
486
|
+
/**
|
|
487
|
+
* TXI-1, TXI-18: the user changed the value. The native `input` event is composed, so it leaves the shadow root by
|
|
488
|
+
* itself — after the element has taken the new value. An edit past maxLength is cut to fit; one that changes nothing
|
|
489
|
+
* then (a keystroke at the limit) is refused and heard by no one.
|
|
490
|
+
*/
|
|
491
|
+
private onInput;
|
|
492
|
+
private place;
|
|
493
|
+
private onFocus;
|
|
494
|
+
/** TXI-2: focus left with a changed value — `change`, once. */
|
|
495
|
+
private onBlur;
|
|
496
|
+
/**
|
|
497
|
+
* TXI-2, TXI-30: a commit — `change` when the value differs from the one last committed, then, for a date or time
|
|
498
|
+
* field left half-filled or with a value that is not available, `entryerror` (not when `quiet`: TXI-33).
|
|
499
|
+
*/
|
|
500
|
+
private commit;
|
|
501
|
+
/** The browser's own `change` is not the field's (TXI-2 decides when a value is committed). */
|
|
502
|
+
private onNativeChange;
|
|
503
|
+
/**
|
|
504
|
+
* TXI-2, TXI-3: Enter in a single-line field commits the value and fires `action`; then, inside a form and unless
|
|
505
|
+
* `action` was cancelled, it requests the form's submission as a native input does. Not while composing: there Enter
|
|
506
|
+
* commits the composition. In a multi-line field Enter is a line break.
|
|
507
|
+
*/
|
|
508
|
+
private onKeyDown;
|
|
509
|
+
/** TXI-3: the action key — the commit, then `action`, then the form's submission unless `action` was cancelled. */
|
|
510
|
+
private act;
|
|
511
|
+
/**
|
|
512
|
+
* TXI-33: the picker button asks the product for a picker and changes nothing itself: no value, no focus, nothing
|
|
513
|
+
* presented, nothing committed — the value it carries is empty while the row is half-filled or not available, and no
|
|
514
|
+
* entry error is raised for that, because the picker is about to give a whole value.
|
|
515
|
+
*/
|
|
516
|
+
private onPickerClick;
|
|
517
|
+
/**
|
|
518
|
+
* TXI-33: a press on the picker button is already the request, as far as the entry error goes: where a press on a
|
|
519
|
+
* button moves focus to nothing (Safari), focus leaves the segments before the click arrives.
|
|
520
|
+
*/
|
|
521
|
+
private onPickerPress;
|
|
522
|
+
/** TXI-8, TXI-43: what a press on the field focuses: the input; in a date or time field the first empty segment, or the last while none is empty. */
|
|
523
|
+
private get entryTarget();
|
|
524
|
+
/**
|
|
525
|
+
* TXI-8: a press anywhere on the box — its padding, a floating label, the prefix, the suffix, a decorative icon, the
|
|
526
|
+
* text between two segments — focuses the input (TXI-43: a segment). An
|
|
527
|
+
* interactive element in a slot, a segment, the picker button and the resize grip keep their own press.
|
|
528
|
+
*/
|
|
529
|
+
private onFieldMouseDown;
|
|
530
|
+
private onSlotChange;
|
|
531
|
+
/** Something to be read once, politely, by assistive technology (a live region drawn nowhere). */
|
|
532
|
+
private announce;
|
|
533
|
+
/** TXI-19: the count is announced once typing has paused for a second, never on every keystroke. */
|
|
534
|
+
private scheduleCount;
|
|
535
|
+
private get count();
|
|
536
|
+
/**
|
|
537
|
+
* TXI-19: the count the input keeps, as text — the user-perceived characters of the value, then a slash and
|
|
538
|
+
* `maxLength` while there is one ("12/40") — and empty while `counter` is not set. Read-only, and new with every
|
|
539
|
+
* change of the value or of `maxLength`: a product that frames the input by hand gives it to its Field's
|
|
540
|
+
* `countText` in its own `input` listener, and `<tanrei-text-field>` does so by itself.
|
|
541
|
+
*/
|
|
542
|
+
get countText(): string;
|
|
543
|
+
/** The input is in the error condition: its own `error`, its Field's (FLD-8), or a date or time input's entry error (TXI-11, TXI-30). */
|
|
544
|
+
private get inError();
|
|
545
|
+
private clampLines;
|
|
546
|
+
/** One line of the input's text style, in px (a duration or a length token is an expression: the element resolves it). */
|
|
547
|
+
private lineOf;
|
|
548
|
+
/**
|
|
549
|
+
* The lines the input shows now — during a motion, the height then shown (TXI-38): the room it takes in the
|
|
550
|
+
* container, which is its box and, while a change of height is moving, what its bottom margin still adds or takes back.
|
|
551
|
+
*/
|
|
552
|
+
private shownLines;
|
|
553
|
+
/** The lines the text needs in the width the input has — a line the text wraps onto counts as one. */
|
|
554
|
+
private textLines;
|
|
555
|
+
/**
|
|
556
|
+
* TXI-38: the input shows `target` lines. With `animate` — a change that follows the value, the grip's keys or its
|
|
557
|
+
* activation — the height moves there from the one shown over motion.resize-* (the styles; at once where motion is
|
|
558
|
+
* reduced), continuing from wherever a running change had brought it; otherwise it changes at once.
|
|
559
|
+
*
|
|
560
|
+
* TXI-51: what moves is the room the input takes, never its text. The native element is `target` lines high at once —
|
|
561
|
+
* a box as tall as its text has nothing to scroll, so the browser cannot scroll the first line away to show the caret
|
|
562
|
+
* on a line the box does not hold yet (which is what shook) — and `--_lag`, the lines the room shown still differs by,
|
|
563
|
+
* goes to 0 over the motion: as a bottom margin that takes the new lines back or still holds the removed ones, and as
|
|
564
|
+
* a clip that uncovers a new line from its top as the container's bottom edge passes it.
|
|
565
|
+
*/
|
|
566
|
+
private showLines;
|
|
567
|
+
/**
|
|
568
|
+
* TXI-17, TXI-37: the height `resize` names. Auto: exactly the lines of the text, between minRows and maxRows, and it
|
|
569
|
+
* scrolls only beyond maxRows. Manual: the lines the person gave it, from minRows. Fixed: minRows.
|
|
570
|
+
*/
|
|
571
|
+
private fitHeight;
|
|
572
|
+
/**
|
|
573
|
+
* @internal The steps of `fitHeight()`, each ending where reading turns to writing or writing to reading: run
|
|
574
|
+
* through, they fit this field; taken a step at a time for many fields (`fitTogether`), every field reads before any
|
|
575
|
+
* writes, and the fields of a page cost three layouts between them where each cost five.
|
|
576
|
+
*/
|
|
577
|
+
fitting(animate: boolean): Generator<void, void, void>;
|
|
578
|
+
/** TXI-39, TXI-41: the person gives a manually resized field `lines` lines, within minRows and maxRows. */
|
|
579
|
+
private resizeTo;
|
|
580
|
+
/**
|
|
581
|
+
* TXI-41: the grip activated without a drag — the input becomes as tall as its text needs, within minRows and
|
|
582
|
+
* maxRows, and returns to minRows when it is already that tall.
|
|
583
|
+
*/
|
|
584
|
+
private fitToText;
|
|
585
|
+
/**
|
|
586
|
+
* TXI-39: the field's own width, as the person gives it — written as the host's inline size, never narrower than its
|
|
587
|
+
* inline paddings, its icons and sys.target.touch, and no wider than its layout allows (its own max-inline-size, or
|
|
588
|
+
* its containing block where it has none).
|
|
589
|
+
*/
|
|
590
|
+
private resizeWidth;
|
|
591
|
+
/** TXI-39: the size the person gave the field is kept until resize, resizeAxis, minRows or maxRows changes. */
|
|
592
|
+
private releaseSize;
|
|
593
|
+
/**
|
|
594
|
+
* TXI-39, TXI-40: a press that begins on the grip's hit area belongs to the grip — it does not place the caret,
|
|
595
|
+
* select text or take focus from the input — and a drag follows the pointer without motion.
|
|
596
|
+
*/
|
|
597
|
+
private onGripPointerDown;
|
|
598
|
+
private onGripPointerMove;
|
|
599
|
+
private onGripPointerUp;
|
|
600
|
+
private onGripPointerCancel;
|
|
601
|
+
private onGripMouseDown;
|
|
602
|
+
/** TXI-41: an activation that came with no pointer (a click assistive technology makes) fits the height to the text too. */
|
|
603
|
+
private onGripClick;
|
|
604
|
+
/**
|
|
605
|
+
* TXI-41: Down Arrow makes the input one line taller and Up Arrow one line shorter, Home returns it to minRows and
|
|
606
|
+
* End takes it to maxRows (without one, to the height that shows every line); where the field resizes both ways the
|
|
607
|
+
* horizontal arrow that points to its end edge widens it by one line height and the other narrows it; Enter and
|
|
608
|
+
* Space fit the height to the text. Each change moves as TXI-38 says.
|
|
609
|
+
*/
|
|
610
|
+
private onGripKeyDown;
|
|
611
|
+
private onGripFocus;
|
|
612
|
+
private onResizeEnd;
|
|
613
|
+
/**
|
|
614
|
+
* TXI-37, TXI-38: the height follows a changed width and enlarged text too — at once, without the motion. The
|
|
615
|
+
* textarea's own box says both: its width, and (its height being a number of lines) the line of its text style.
|
|
616
|
+
*/
|
|
617
|
+
private observeSize;
|
|
618
|
+
private sizeChanged;
|
|
619
|
+
/**
|
|
620
|
+
* The form's view of the input: a missing value while its Field says it is required; a date or time field's entry error as badInput
|
|
621
|
+
* (a half-filled row), rangeUnderflow or rangeOverflow (a value before min or after max) or a custom error (a listed
|
|
622
|
+
* date) while it lasts (TXI-30). A requirement never validates beyond that (TXI-23).
|
|
623
|
+
*/
|
|
624
|
+
private syncValidity;
|
|
625
|
+
private iconObserver;
|
|
626
|
+
private observedIcons;
|
|
627
|
+
/** The measured length of each icon box while what it holds is wider than an icon; empty while it is an icon's. */
|
|
628
|
+
private iconBoxes;
|
|
629
|
+
/** Watches the two icon boxes: an element the product slotted there keeps its own size (TXI-22). */
|
|
630
|
+
private observeIcons;
|
|
631
|
+
/**
|
|
632
|
+
* TXI-13, TXI-62: the text starts after the leading box and ends before the trailing one as they are laid out; the
|
|
633
|
+
* label, its copies and the Field's supporting row are placed by a sum of lengths, which takes the icon's size for
|
|
634
|
+
* the box's. While a box is wider than that — the product's icon button — its measured length is written into the
|
|
635
|
+
* sum (`--_lead`, `--_trail`) and said to the Field; a glyph, an icon wide, writes nothing and the field is laid out
|
|
636
|
+
* from its tokens alone.
|
|
637
|
+
*/
|
|
638
|
+
private measureIcons;
|
|
639
|
+
/** Watches the two copies of the label that are never drawn, one in each position, for a change in their lines. */
|
|
640
|
+
private labelObserver;
|
|
641
|
+
private observedCopies;
|
|
642
|
+
/** Returns whether copies are watched from now on that were not before: the observer reports each of them once, after the next layout. */
|
|
643
|
+
private observeLabel;
|
|
644
|
+
/**
|
|
645
|
+
* TXI-13: how many lines a floating label takes resting and floated, in the width it is given in each position, and
|
|
646
|
+
* the width of the widest floated line. The copies are laid out as the drawn label is in each position and never
|
|
647
|
+
* drawn. While both take one line nothing is set and the field is laid out as it always was; once either wraps, the
|
|
648
|
+
* field marks it (`data-label-wraps`) and the styles give the lines their room: a taller container, a filled field's
|
|
649
|
+
* taller band, an outlined field's room above its container, and a gap as wide as the widest line. A stacked label
|
|
650
|
+
* stands above the container in the flow and wraps there by itself (TXI-25).
|
|
651
|
+
*/
|
|
652
|
+
private measureLabel;
|
|
653
|
+
connectedCallback(): void;
|
|
654
|
+
disconnectedCallback(): void;
|
|
655
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
656
|
+
/** Whether the first update has drawn (the first height is shown without motion, TXI-38). */
|
|
657
|
+
private drawn;
|
|
658
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
659
|
+
/** What a debug build reports (TXI-9, TXI-17, TXI-23, TXI-28, TXI-32, TXI-41, TXI-57). */
|
|
660
|
+
private reportMisuse;
|
|
661
|
+
/** TXI-32: a date, time or date-time field with `picker`, not read-only, draws the picker button. */
|
|
662
|
+
private get pickerShown();
|
|
663
|
+
/** TXI-32: the Button size with the field's size name, or Button's default for a size Button does not have. */
|
|
664
|
+
private get pickerSize();
|
|
665
|
+
private renderPicker;
|
|
666
|
+
/**
|
|
667
|
+
* TXI-42, TXI-47: the row of segments — a group named by the label, in one left-to-right run; each segment a spin
|
|
668
|
+
* button named by its unit and the label, with its range, its value and its value text (segmentEmptyText while it is
|
|
669
|
+
* empty); the text between them, their placeholders and the copies that give each its width kept from assistive
|
|
670
|
+
* technology. The shown supporting or error text describes the first segment, and every segment while the field is
|
|
671
|
+
* in error. A segment's own text is written by `paintSegments()`.
|
|
672
|
+
*/
|
|
673
|
+
private renderRow;
|
|
674
|
+
/** TXI-39, TXI-41: the resize grip — a focusable separator whose value is the lines the input shows (`showLines()` writes it). */
|
|
675
|
+
private renderGrip;
|
|
676
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
677
|
+
}
|
|
678
|
+
declare global {
|
|
679
|
+
interface HTMLElementTagNameMap {
|
|
680
|
+
'tanrei-text-input': TanreiTextInput;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
export {};
|