@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,665 @@
|
|
|
1
|
+
import { LitElement, html, nothing } from 'lit';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
3
|
+
import { literal, html as staticHtml } from 'lit/static-html.js';
|
|
4
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
5
|
+
import { AvailabilityController, GlyphDrawnController, GlyphMirrorController, LINK_MARK, LinkController, PressController, WordsController, linkAttributes, report, syncFocusStyle, } from '../../primitives/index.js';
|
|
6
|
+
import { KIND_GLYPH, fileKind, nameParts } from '../../primitives/file-format.js';
|
|
7
|
+
import { FILE_ITEM_TAKE_FOCUS, FILE_ITEM_UPDATE, fileItemGiven } from '../../primitives/file-item-holder.js';
|
|
8
|
+
import { notifyItemUpdate } from '../../primitives/item-update.js';
|
|
9
|
+
import '../progress-indicator/progress-indicator.js';
|
|
10
|
+
import { styles } from './file-item.styles.js';
|
|
11
|
+
const FORMS = ['row', 'tile'];
|
|
12
|
+
const STATUSES = ['pending', 'uploading', 'done', 'error'];
|
|
13
|
+
const FITS = ['cover', 'contain'];
|
|
14
|
+
/** FIT-4, FIT-11: the marks and the actions, by their names in the system's icon set. */
|
|
15
|
+
const GLYPHS = { done: 'check_circle', error: 'error', retry: 'refresh', remove: 'close' };
|
|
16
|
+
/** FIT-29: a width or a height is a number above zero; anything else is as if it were not given. */
|
|
17
|
+
const size = (value) => (typeof value === 'number' && Number.isFinite(value) && value > 0 ? value : null);
|
|
18
|
+
const isFile = (value) => typeof File !== 'undefined' && value instanceof File;
|
|
19
|
+
/**
|
|
20
|
+
* Shows one file: a glyph that says its format, or a small picture of it; its name; a second line with what the
|
|
21
|
+
* product says of it — its format, its size, where its sending stands, what went wrong; a bar while it is sent; and
|
|
22
|
+
* the actions to take it back and to try it again. As a row of a column of files (`form="row"`, the default) or as a
|
|
23
|
+
* tile of a strip of pictures (`form="tile"`, a box of `width` by `height`). **It never reads, keeps or sends the
|
|
24
|
+
* file** (FIT-7, FIT-33): what it shows is what its props say.
|
|
25
|
+
*
|
|
26
|
+
* Contract: specs/file-item.spec.json. `<tanrei-file-item name="brief.pdf" size-text="820 KB"
|
|
27
|
+
* remove-label="Remove"></tanrei-file-item>`; a tile: `<tanrei-file-item form="tile" preview width="160" height="90"
|
|
28
|
+
* name="floor-plan.png"></tanrei-file-item>`. `progress` absent is null: the bar is drawn as under way.
|
|
29
|
+
*
|
|
30
|
+
* The glyph is chosen by the file's format — `media-type`, else the end of `name` — in ten kinds (FIT-5); `glyph`
|
|
31
|
+
* names another of the icon set, and the `icon` slot holds one the set does not have. With `preview` the picture at
|
|
32
|
+
* `preview-src` stands in the glyph's place, or — for an image — a picture of `file` (a `File`, a property and never an
|
|
33
|
+
* attribute), for which the element makes one object URL when it first comes near the viewport and revokes it when it
|
|
34
|
+
* is taken out of the page, given another file or no longer asked for the picture. Until a picture can be drawn, and
|
|
35
|
+
* where it cannot, the glyph stands there. A picture that moves is played by the browser's image element: give a still
|
|
36
|
+
* `preview-src` where a strip must not move.
|
|
37
|
+
*
|
|
38
|
+
* The body — the glyph or the picture, and the texts — is a button with `interactive` (it emits `click`) and a link
|
|
39
|
+
* with `href`; the two actions stand beside it, never inside it, and emit `remove` and `retry`. The element
|
|
40
|
+
* removes nothing and changes no status: whoever holds it does. `readonly` draws no action; `disabled` disables them
|
|
41
|
+
* and the body and leaves what is shown as it is.
|
|
42
|
+
*
|
|
43
|
+
* Alone it is a group named by `name`. A component that holds it as an item of a list of its own — a File upload —
|
|
44
|
+
* says so through an internal channel, and gives it there what every one of its rows shares.
|
|
45
|
+
*
|
|
46
|
+
* Without script, and until the element is defined, nothing is drawn: the name is an attribute.
|
|
47
|
+
*
|
|
48
|
+
* @tag tanrei-file-item
|
|
49
|
+
* @slot icon - A glyph of the product's own in place of the format's glyph, where a name in the icon set (`glyph`) is not enough. Decorative. A glyph the icon set flags is mirrored in right-to-left; `data-mirror="auto | always | never"` on the element decides for one use.
|
|
50
|
+
* @csspart container - The body: the glyph or the picture, and the texts. The button or the link where the file item is pressable.
|
|
51
|
+
* @csspart media - The box of the glyph or the picture: the leading box of a row, the whole box of a tile.
|
|
52
|
+
* @csspart icon - The box of the format's glyph (hidden from assistive technology).
|
|
53
|
+
* @csspart preview - The picture, in the glyph's place.
|
|
54
|
+
* @csspart headline - The file's name.
|
|
55
|
+
* @csspart supporting-text - The second line: the format, the size, then the status or the error.
|
|
56
|
+
* @csspart status-icon - The mark before the words of a file that is done or failed.
|
|
57
|
+
* @csspart progress - The bar, while the status is uploading (a `<tanrei-progress-indicator>`).
|
|
58
|
+
* @csspart action - An action: also `retry` or `remove`.
|
|
59
|
+
* @fires click - The body of a pressable file item was activated. Bubbles and is composed; `detail.value` is the file item's value. A link fires it before the browser follows the address; `preventDefault()` cancels the navigation.
|
|
60
|
+
* @fires remove - The person asked to take this file back. Bubbles and is composed; `detail.value` is the file item's value. Whoever holds the file item removes it.
|
|
61
|
+
* @fires retry - The person asked to try a failed file again. Bubbles and is composed; `detail.value` is the file item's value.
|
|
62
|
+
*/
|
|
63
|
+
export class TanreiFileItem extends LitElement {
|
|
64
|
+
constructor() {
|
|
65
|
+
super(...arguments);
|
|
66
|
+
this.availability = new AvailabilityController(this, 'file-item');
|
|
67
|
+
/** How the file is shown. `row`: one line across the width its layout gives — for a column of files. `tile`: a box of `width` by `height` holding the picture or the glyph, the texts beneath it and the actions at its corner — for a strip of pictures. Anything else is `row`. */
|
|
68
|
+
this.form = 'row';
|
|
69
|
+
/** What identifies the file to the product: given back by `click`, `remove` and `retry`. */
|
|
70
|
+
this.value = '';
|
|
71
|
+
/** The file's name as the person knows it ("report-2026.pdf"). The file item's name for assistive technology in every form, also where it is not drawn. Empty, it is read from `file.name`. */
|
|
72
|
+
this.name = '';
|
|
73
|
+
/** The file's kind as the browser reports it ("image/png"), from which the glyph is chosen (`media-type`). Empty, it is read from `file.type`, and then from the end of `name`. */
|
|
74
|
+
this.mediaType = '';
|
|
75
|
+
/** The name of a glyph of the icon set, drawn in place of the one the file's format would choose. Empty lets the format choose. */
|
|
76
|
+
this.glyph = '';
|
|
77
|
+
/** The file's format in the product's words ("PDF"), drawn first on the second line (`format-text`). Empty draws none. */
|
|
78
|
+
this.formatText = '';
|
|
79
|
+
/** The file's size as text, formatted by the product for the reader's locale ("1.2 MB"); the `size-text` attribute. Empty draws none. */
|
|
80
|
+
this.sizeText = '';
|
|
81
|
+
/** Where the file stands: `pending`, `uploading` (the bar is drawn), `done` or `error` (`errorText` says why). Anything else is `pending`. */
|
|
82
|
+
this.status = 'pending';
|
|
83
|
+
/** The status in the product's words ("Waiting", "Uploading", "Uploaded"), drawn last on the second line; the `status-text` attribute. */
|
|
84
|
+
this.statusText = '';
|
|
85
|
+
/** How far the sending has come, from 0 to 1, while the status is uploading. Null (no attribute) draws the bar as under way. */
|
|
86
|
+
this.progress = null;
|
|
87
|
+
/** Why the file failed and what to do, in the product's words; drawn in the status's place while the status is error (`error-text`), in every form, and never cut. */
|
|
88
|
+
this.errorText = '';
|
|
89
|
+
/** Whether a failed file offers the retry action. */
|
|
90
|
+
this.retryable = false;
|
|
91
|
+
/** Whether a picture of the file is drawn in the glyph's place: the one at `preview-src`, or — for an image — a picture of `file`. False draws the glyph, also for an image. */
|
|
92
|
+
this.preview = false;
|
|
93
|
+
/** The address of a picture of the file (`preview-src`): a small rendition the product's server made. With `preview` it is drawn for a file of any format. Empty, the picture comes from `file`. */
|
|
94
|
+
this.previewSrc = '';
|
|
95
|
+
/** How the picture fills its box. `cover`: it fills the box and is cut at the edges. `contain`: the whole picture inside the box, on the box's ground. Anything else is `cover`. */
|
|
96
|
+
this.fit = 'cover';
|
|
97
|
+
/** In a tile: the name is not drawn beneath a tile that draws a picture (`name-hidden`). It stays the file item's name for assistive technology, and is drawn all the same wherever no picture is. Not read in a row. */
|
|
98
|
+
this.nameHidden = false;
|
|
99
|
+
/** In a tile: the width of the box, in CSS pixels. Null (no attribute) makes it as wide as it is high. */
|
|
100
|
+
this.width = null;
|
|
101
|
+
/** In a tile: the height of the box, in CSS pixels. Null (no attribute) reads the token of a tile's height. */
|
|
102
|
+
this.height = null;
|
|
103
|
+
/** Makes the body — the glyph or the picture, and the texts — one button that emits `click`, for a product that opens the file where it is. The actions stay their own. */
|
|
104
|
+
this.interactive = false;
|
|
105
|
+
/** The destination: the address of the file. Not empty, the body is a link to it whether `interactive` is set or not: an `<a href>`, followed by Enter and not by Space. */
|
|
106
|
+
this.href = '';
|
|
107
|
+
/** Where the destination opens. `same`: where the person is. `new`: a new tab, which a row marks and `target-label` says. Ignored without `href`. */
|
|
108
|
+
this.target = 'same';
|
|
109
|
+
/** What assistive technology reads after the link's name while `target` is `new` ("opens in a new tab"): your words (`target-label`). */
|
|
110
|
+
this.targetLabel = '';
|
|
111
|
+
/** The accessible name of the remove action (`remove-label`): this instance's words, else the product's (`setWords({ removeLabel })`). The file's name is the action's description. */
|
|
112
|
+
this.removeLabel = '';
|
|
113
|
+
/** The accessible name of the retry action (`retry-label`): this instance's words, else the product's (`setWords({ retryLabel })`). */
|
|
114
|
+
this.retryLabel = '';
|
|
115
|
+
/** The actions are disabled and the body cannot be pressed. What the file item shows of the file stays as it is and stays readable. */
|
|
116
|
+
this.disabled = false;
|
|
117
|
+
/** The file is shown and cannot be taken back: no remove action and no retry action is drawn (`readonly`). The body can still be pressed where `interactive` or `href` says so. */
|
|
118
|
+
this.readOnly = false;
|
|
119
|
+
/** Web only: forwarded to the anchor's `rel`. `noopener` is added while `target` is `new`. Ignored without `href`. */
|
|
120
|
+
this.rel = null;
|
|
121
|
+
/** Web only: forwarded to the anchor's `download` (the file name; empty for the address's own), so that the link saves the file in place of opening it. Ignored without `href`. */
|
|
122
|
+
this.download = null;
|
|
123
|
+
/** The file itself, as the browser's own handle: what a picture is drawn of (with `preview`, for an image), what `name` and `media-type` are read from where they are empty, and what a File upload submits for the item. A property, never an attribute; no byte of it is read. */
|
|
124
|
+
this.file = null;
|
|
125
|
+
/** FIT-7: the one address made for `file`, while its picture is asked for and the item has come near the viewport. */
|
|
126
|
+
this.address = '';
|
|
127
|
+
/** FIT-6: the address whose picture can be drawn. */
|
|
128
|
+
this.pictured = '';
|
|
129
|
+
/** FIT-6: the picture at this address could not be drawn: the glyph stands in its place. */
|
|
130
|
+
this.failed = '';
|
|
131
|
+
/** FIT-3: three lengths of the tokens in CSS pixels, read where a tile is given a width or a height — the token of its height, and the least width and height its actions need. */
|
|
132
|
+
this.lengths = null;
|
|
133
|
+
/** The box the lengths were read for. */
|
|
134
|
+
this.measuredFor = '';
|
|
135
|
+
/** FIT-23: the form last drawn. */
|
|
136
|
+
this.drawnForm = null;
|
|
137
|
+
/** FIT-20: the product's words, read where the instance gives none (src/primitives/words.ts). */
|
|
138
|
+
this.words = new WordsController(this);
|
|
139
|
+
/** FIT-28: a glyph is mirrored in right-to-left where the icon set marks its name; the one in the icon slot too. */
|
|
140
|
+
this.mirror = new GlyphMirrorController(this, { slots: 'slot[name="icon"]', drawn: '.icon:not(.given), .glyph, .mark' });
|
|
141
|
+
/** FIT-31: each glyph box carries `data-drawn` while the icon set can draw its ligature; until then it draws nothing. */
|
|
142
|
+
this.glyphs = new GlyphDrawnController(this, () => this.renderRoot?.querySelectorAll('.icon, .glyph, .mark') ?? []);
|
|
143
|
+
/** FIT-13: the link the body is while it has a destination (src/primitives/link.ts). */
|
|
144
|
+
this.link = new LinkController(this, { ids: { refused: 'FIT-13', newContext: 'FIT-13' }, disabled: () => this.isDisabled });
|
|
145
|
+
/** FIT-15, FIT-16: the pressed state of the body — a link's by Enter alone — and of each action. */
|
|
146
|
+
this.presses = {
|
|
147
|
+
body: new PressController(this, {
|
|
148
|
+
container: () => this.renderRoot?.querySelector('.body.pressable') ?? null,
|
|
149
|
+
holdCarrier: () => this.renderRoot.querySelector('.body .hold'),
|
|
150
|
+
disabled: () => this.isDisabled,
|
|
151
|
+
keys: () => this.link.pressKeys,
|
|
152
|
+
rippleHost: () => this.renderRoot?.querySelector('.layer') ?? null,
|
|
153
|
+
}),
|
|
154
|
+
retry: this.pressOf('retry'),
|
|
155
|
+
remove: this.pressOf('remove'),
|
|
156
|
+
};
|
|
157
|
+
/** FIT-30: focus was on the retry action when the render that takes it away began. */
|
|
158
|
+
this.retryHeld = false;
|
|
159
|
+
/** FIT-7: the watch for the item coming near the viewport, while a picture of its file is asked for. */
|
|
160
|
+
this.near = null;
|
|
161
|
+
/** The role and the name it wrote on itself; what the product wrote is the product's. */
|
|
162
|
+
this.wrote = { role: null, label: null };
|
|
163
|
+
this.onPicture = (event) => {
|
|
164
|
+
const picture = event.target;
|
|
165
|
+
if (picture.getAttribute('src') !== this.source)
|
|
166
|
+
return;
|
|
167
|
+
if (event.type === 'load') {
|
|
168
|
+
this.pictured = this.source;
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
// FIT-6: it cannot be drawn — the glyph stands in its place, with no sign of the failure, no event and no status.
|
|
172
|
+
this.pictured = '';
|
|
173
|
+
this.failed = this.source;
|
|
174
|
+
if (this.previewSrc.trim())
|
|
175
|
+
report(this, 'FIT-6', 'the picture at preview-src could not be drawn, so the glyph of the file\'s format is drawn in its place; give an address the browser can load, or leave preview out');
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* FIT-12, FIT-13: the body was activated — by pointer, touch, keyboard or assistive technology, which all arrive as
|
|
179
|
+
* the native element's click. `click` is emitted once, with the value; a link is then followed by the browser,
|
|
180
|
+
* unless the product cancelled the event (D4). The native click does not leave the element as a second one.
|
|
181
|
+
*/
|
|
182
|
+
this.onBodyClick = (event) => {
|
|
183
|
+
event.stopPropagation();
|
|
184
|
+
if (!this.pressable)
|
|
185
|
+
return;
|
|
186
|
+
if (this.isDisabled) {
|
|
187
|
+
event.preventDefault();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
const mine = new CustomEvent('click', { bubbles: true, composed: true, cancelable: true, detail: { value: this.value } });
|
|
191
|
+
if (!this.dispatchEvent(mine))
|
|
192
|
+
event.preventDefault();
|
|
193
|
+
};
|
|
194
|
+
/** FIT-12: a press on what is not the pressable body — a text of a body that is not pressable, the room between two parts — is no click of the file item's. The body's and the actions' own clicks never come this far. */
|
|
195
|
+
this.onOtherClick = (event) => event.stopPropagation();
|
|
196
|
+
/** FIT-17: where style queries are missing, the focus style is read when focus arrives. */
|
|
197
|
+
this.onFocus = (event) => syncFocusStyle(this, event.target);
|
|
198
|
+
this.onIconSlotChange = () => this.requestUpdate();
|
|
199
|
+
/** The first update's reports were made. */
|
|
200
|
+
this.hasUpdatedOnce = false;
|
|
201
|
+
}
|
|
202
|
+
static { this.styles = styles; }
|
|
203
|
+
/**
|
|
204
|
+
* Its documented parts, once: what a composed element exports them from (src/primitives/composed.ts, W4).
|
|
205
|
+
*
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
static { this.parts = ['container', 'media', 'icon', 'preview', 'headline', 'supporting-text', 'status-icon', 'progress', 'action']; }
|
|
209
|
+
static { this.properties = {
|
|
210
|
+
form: { type: String, reflect: true },
|
|
211
|
+
value: { type: String },
|
|
212
|
+
name: { type: String },
|
|
213
|
+
mediaType: { type: String, attribute: 'media-type' },
|
|
214
|
+
glyph: { type: String },
|
|
215
|
+
formatText: { type: String, attribute: 'format-text' },
|
|
216
|
+
sizeText: { type: String, attribute: 'size-text' },
|
|
217
|
+
status: { type: String, reflect: true },
|
|
218
|
+
statusText: { type: String, attribute: 'status-text' },
|
|
219
|
+
progress: { type: Number },
|
|
220
|
+
errorText: { type: String, attribute: 'error-text' },
|
|
221
|
+
retryable: { type: Boolean, reflect: true },
|
|
222
|
+
preview: { type: Boolean, reflect: true },
|
|
223
|
+
previewSrc: { type: String, attribute: 'preview-src' },
|
|
224
|
+
fit: { type: String, reflect: true },
|
|
225
|
+
nameHidden: { type: Boolean, attribute: 'name-hidden', reflect: true },
|
|
226
|
+
width: { type: Number },
|
|
227
|
+
height: { type: Number },
|
|
228
|
+
interactive: { type: Boolean, reflect: true },
|
|
229
|
+
href: { type: String },
|
|
230
|
+
target: { type: String },
|
|
231
|
+
targetLabel: { type: String, attribute: 'target-label' },
|
|
232
|
+
removeLabel: { type: String, attribute: 'remove-label' },
|
|
233
|
+
retryLabel: { type: String, attribute: 'retry-label' },
|
|
234
|
+
disabled: { type: Boolean, reflect: true },
|
|
235
|
+
readOnly: { type: Boolean, attribute: 'readonly', reflect: true },
|
|
236
|
+
rel: { type: String },
|
|
237
|
+
download: { type: String },
|
|
238
|
+
file: { attribute: false },
|
|
239
|
+
address: { state: true },
|
|
240
|
+
pictured: { state: true },
|
|
241
|
+
failed: { state: true },
|
|
242
|
+
lengths: { state: true },
|
|
243
|
+
}; }
|
|
244
|
+
pressOf(kind) {
|
|
245
|
+
return new PressController(this, {
|
|
246
|
+
container: () => this.renderRoot?.querySelector(`.action.${kind}`) ?? null,
|
|
247
|
+
holdCarrier: () => this.renderRoot.querySelector(`.action.${kind} .hold`),
|
|
248
|
+
disabled: () => this.isDisabled,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
// ─── What it reads ────────────────────────────────────────────────────────────────────────────────────────────
|
|
252
|
+
/** FIT-19, FUP-58: what a component that holds it gives it (src/primitives/file-item-holder.ts). */
|
|
253
|
+
get given() {
|
|
254
|
+
return fileItemGiven(this) ?? {};
|
|
255
|
+
}
|
|
256
|
+
/** FIT-29: a form it does not know is row. */
|
|
257
|
+
get shownForm() {
|
|
258
|
+
const form = this.given.form ?? this.form;
|
|
259
|
+
return form === 'tile' ? 'tile' : 'row';
|
|
260
|
+
}
|
|
261
|
+
/** FIT-29: a status it does not know is pending. */
|
|
262
|
+
get shown() {
|
|
263
|
+
return STATUSES.includes(this.status) ? this.status : 'pending';
|
|
264
|
+
}
|
|
265
|
+
get shownFit() {
|
|
266
|
+
const fit = this.given.fit ?? this.fit;
|
|
267
|
+
return fit === 'contain' ? 'contain' : 'cover';
|
|
268
|
+
}
|
|
269
|
+
get wantsPreview() {
|
|
270
|
+
return this.given.preview ?? this.preview;
|
|
271
|
+
}
|
|
272
|
+
/** FIT-21: disabled by its own `disabled`, or by the component that holds it. */
|
|
273
|
+
get isDisabled() {
|
|
274
|
+
return this.disabled || !!this.given.disabled;
|
|
275
|
+
}
|
|
276
|
+
/** FIT-33: the name — the prop, else what the browser reports of the file. */
|
|
277
|
+
get shownName() {
|
|
278
|
+
return this.name || (isFile(this.file) ? this.file.name : '');
|
|
279
|
+
}
|
|
280
|
+
/** FIT-33: the media type — the prop, else what the browser reports of the file. */
|
|
281
|
+
get shownType() {
|
|
282
|
+
return this.mediaType || (isFile(this.file) ? this.file.type : '');
|
|
283
|
+
}
|
|
284
|
+
/** FIT-5: the kind of the file's format. */
|
|
285
|
+
get kind() {
|
|
286
|
+
return fileKind(this.shownType, this.shownName);
|
|
287
|
+
}
|
|
288
|
+
/** FIT-7: a picture of the file itself is asked for — preview is true, previewSrc is empty, the kind is image, and there is a file. */
|
|
289
|
+
get wantsFilePicture() {
|
|
290
|
+
return this.wantsPreview && !this.previewSrc.trim() && this.kind === 'image' && isFile(this.file);
|
|
291
|
+
}
|
|
292
|
+
/** FIT-6: the address of the picture now: the product's, else the one made for the file, else none. */
|
|
293
|
+
get source() {
|
|
294
|
+
if (!this.wantsPreview)
|
|
295
|
+
return '';
|
|
296
|
+
return this.previewSrc.trim() || (this.wantsFilePicture ? this.address : '');
|
|
297
|
+
}
|
|
298
|
+
/** FIT-12, FIT-13: the body can be pressed — it is a link, or `interactive`. */
|
|
299
|
+
get pressable() {
|
|
300
|
+
return !!this.link.form || this.interactive;
|
|
301
|
+
}
|
|
302
|
+
// ─── Focus ────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
303
|
+
/** Moves focus to the file item's first stop: its body where that is pressable, else its retry action, else its remove action. */
|
|
304
|
+
focus(options) {
|
|
305
|
+
this.renderRoot?.querySelector('.body.pressable:not(:disabled):not([aria-disabled="true"]), .action:not(:disabled)')?.focus(options);
|
|
306
|
+
}
|
|
307
|
+
/** @internal FUP-30: focus after a row left — to the remove action, or to the body where there is none and it is pressable. */
|
|
308
|
+
[FILE_ITEM_TAKE_FOCUS]() {
|
|
309
|
+
const target = this.renderRoot?.querySelector('.action.remove:not(:disabled)') ?? this.renderRoot?.querySelector('.body.pressable:not(:disabled):not([aria-disabled="true"])');
|
|
310
|
+
target?.focus();
|
|
311
|
+
return !!target && this.shadowRoot?.activeElement === target;
|
|
312
|
+
}
|
|
313
|
+
// ─── The picture (FIT-6, FIT-7) ───────────────────────────────────────────────────────────────────────────────
|
|
314
|
+
/** FIT-7: the address is released — the item left the page, was given another file or none, or no longer draws the file's picture. */
|
|
315
|
+
release() {
|
|
316
|
+
if (!this.address)
|
|
317
|
+
return;
|
|
318
|
+
URL.revokeObjectURL(this.address);
|
|
319
|
+
this.address = '';
|
|
320
|
+
}
|
|
321
|
+
unwatch() {
|
|
322
|
+
this.near?.disconnect();
|
|
323
|
+
this.near = null;
|
|
324
|
+
}
|
|
325
|
+
/** FIT-7: at most one address, made only once the item is in or near what is in view. */
|
|
326
|
+
watch() {
|
|
327
|
+
if (this.near || this.address || typeof IntersectionObserver === 'undefined')
|
|
328
|
+
return;
|
|
329
|
+
this.near = new IntersectionObserver((entries) => {
|
|
330
|
+
if (!entries.some((entry) => entry.isIntersecting))
|
|
331
|
+
return;
|
|
332
|
+
this.unwatch();
|
|
333
|
+
if (!this.isConnected || !this.wantsFilePicture || this.address)
|
|
334
|
+
return;
|
|
335
|
+
this.address = URL.createObjectURL(this.file);
|
|
336
|
+
},
|
|
337
|
+
// Near: within half a viewport of what is in view, so that a picture is there when a strip is scrolled to it.
|
|
338
|
+
{ rootMargin: '50%' });
|
|
339
|
+
this.near.observe(this);
|
|
340
|
+
}
|
|
341
|
+
// ─── Events (FIT-11 to FIT-13) ────────────────────────────────────────────────────────────────────────────────
|
|
342
|
+
/** FIT-11: an action emits its event exactly once, with the value, and does nothing else. */
|
|
343
|
+
act(event, kind) {
|
|
344
|
+
// The press is the action's alone: it is no click of the file item's (FIT-11, FIT-12).
|
|
345
|
+
event.stopPropagation();
|
|
346
|
+
if (this.isDisabled)
|
|
347
|
+
return;
|
|
348
|
+
// Each name is written out: the manifest reads an event's name from the dispatch, and a variable there became an
|
|
349
|
+
// event called "kind" (and React's onKind).
|
|
350
|
+
const init = { bubbles: true, composed: true, detail: { value: this.value } };
|
|
351
|
+
if (kind === 'retry')
|
|
352
|
+
this.dispatchEvent(new CustomEvent('retry', init));
|
|
353
|
+
else
|
|
354
|
+
this.dispatchEvent(new CustomEvent('remove', init));
|
|
355
|
+
}
|
|
356
|
+
/** FIT-5: the icon slot holds a glyph of the product's. */
|
|
357
|
+
get hasIcon() {
|
|
358
|
+
return [...this.children].some((child) => child.slot === 'icon');
|
|
359
|
+
}
|
|
360
|
+
// ─── Lifecycle ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
361
|
+
connectedCallback() {
|
|
362
|
+
super.connectedCallback();
|
|
363
|
+
// Put back into the page: a picture of its file is made again when it is next in view (FIT-7).
|
|
364
|
+
if (this.hasUpdated)
|
|
365
|
+
this.requestUpdate();
|
|
366
|
+
// A component that holds it reads it when it arrives.
|
|
367
|
+
notifyItemUpdate(this, FILE_ITEM_UPDATE);
|
|
368
|
+
}
|
|
369
|
+
disconnectedCallback() {
|
|
370
|
+
super.disconnectedCallback();
|
|
371
|
+
// FIT-7: taken out of the page, the address is released; put back, a new one is made when it is next in view.
|
|
372
|
+
this.unwatch();
|
|
373
|
+
this.release();
|
|
374
|
+
this.pictured = '';
|
|
375
|
+
}
|
|
376
|
+
willUpdate(changed) {
|
|
377
|
+
const active = this.shadowRoot?.activeElement;
|
|
378
|
+
this.retryHeld = !!active && active.classList.contains('retry');
|
|
379
|
+
// FIT-7: another file or none, and a picture of the file that is no longer asked for, release the address.
|
|
380
|
+
if (changed.has('file') || !this.wantsFilePicture) {
|
|
381
|
+
this.release();
|
|
382
|
+
if (!this.wantsFilePicture)
|
|
383
|
+
this.unwatch();
|
|
384
|
+
}
|
|
385
|
+
if (changed.has('file') || changed.has('previewSrc') || changed.has('preview'))
|
|
386
|
+
this.failed = '';
|
|
387
|
+
// FIT-6: a picture is drawn once it has loaded; another address is another picture.
|
|
388
|
+
if (!this.source || this.failed === this.source || this.pictured !== this.source)
|
|
389
|
+
this.pictured = '';
|
|
390
|
+
// FIT-3: the host of a tile is exactly as wide as its box.
|
|
391
|
+
this.toggleAttribute('data-tile', this.shownForm === 'tile');
|
|
392
|
+
// FIT-19: alone, a group named by the name; held as an item of a list, an item of that list in the group's place.
|
|
393
|
+
const role = this.given.listItem ? 'listitem' : 'group';
|
|
394
|
+
if (!this.hasAttribute('role') || this.getAttribute('role') === this.wrote.role) {
|
|
395
|
+
if (this.getAttribute('role') !== role)
|
|
396
|
+
this.setAttribute('role', role);
|
|
397
|
+
this.wrote.role = role;
|
|
398
|
+
}
|
|
399
|
+
const label = role === 'group' ? this.shownName || null : null;
|
|
400
|
+
if (!this.hasAttribute('aria-label') || this.getAttribute('aria-label') === this.wrote.label) {
|
|
401
|
+
if (label === null)
|
|
402
|
+
this.removeAttribute('aria-label');
|
|
403
|
+
else if (this.getAttribute('aria-label') !== label)
|
|
404
|
+
this.setAttribute('aria-label', label);
|
|
405
|
+
this.wrote.label = label;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
updated(changed) {
|
|
409
|
+
// FIT-7: a picture of the file is asked for and none is made yet — made when the item comes near the viewport.
|
|
410
|
+
if (this.wantsFilePicture && !this.address && this.isConnected)
|
|
411
|
+
this.watch();
|
|
412
|
+
// FIT-30: the retry action left while focus was on it: focus goes to the remove action, or to a pressable body.
|
|
413
|
+
if (this.retryHeld && !this.renderRoot.querySelector('.action.retry')) {
|
|
414
|
+
(this.renderRoot.querySelector('.action.remove') ?? this.renderRoot.querySelector('.body.pressable'))?.focus();
|
|
415
|
+
}
|
|
416
|
+
this.retryHeld = false;
|
|
417
|
+
// FIT-3: a box that is given a width or a height — its proportion, and the least size its actions need, are numbers
|
|
418
|
+
// of pixels of the tokens, which only a real property computes; read when the tile is given another box, never at rest.
|
|
419
|
+
const tile = this.shownForm === 'tile';
|
|
420
|
+
const { width, height } = this.box;
|
|
421
|
+
const asked = tile && (width !== null || height !== null) ? `${width} ${height}` : '';
|
|
422
|
+
if (asked && asked !== this.measuredFor) {
|
|
423
|
+
const read = getComputedStyle(this.renderRoot.querySelector('.item'));
|
|
424
|
+
const now = { token: Number.parseFloat(read.scrollMarginBlockStart), width: Number.parseFloat(read.scrollMarginInlineStart), height: Number.parseFloat(read.scrollMarginBlockEnd) };
|
|
425
|
+
const was = this.lengths;
|
|
426
|
+
if (Object.values(now).every((value) => Number.isFinite(value) && value > 0) && (!was || was.token !== now.token || was.width !== now.width || was.height !== now.height))
|
|
427
|
+
this.lengths = now;
|
|
428
|
+
}
|
|
429
|
+
this.measuredFor = asked;
|
|
430
|
+
// FIT-23: a change of form is drawn at once — an action's colors are its form's, and go to the other form's without their motion.
|
|
431
|
+
const form = this.shownForm;
|
|
432
|
+
if (this.drawnForm && this.drawnForm !== form)
|
|
433
|
+
for (const animation of this.renderRoot.querySelector('.item')?.getAnimations({ subtree: true }) ?? [])
|
|
434
|
+
if (animation instanceof CSSTransition)
|
|
435
|
+
animation.finish();
|
|
436
|
+
this.drawnForm = form;
|
|
437
|
+
this.reports(changed);
|
|
438
|
+
// A component that holds it reads it again: what it announces and what its form submits.
|
|
439
|
+
if (changed.size)
|
|
440
|
+
notifyItemUpdate(this, FILE_ITEM_UPDATE);
|
|
441
|
+
}
|
|
442
|
+
/** FIT-29: the width and the height of a tile's box, as given — the holder's for every row, else the item's own — or null. */
|
|
443
|
+
get box() {
|
|
444
|
+
const given = this.given;
|
|
445
|
+
return { width: size('width' in given ? given.width : this.width), height: size('height' in given ? given.height : this.height) };
|
|
446
|
+
}
|
|
447
|
+
/** What a debug build is told; the file item still renders. */
|
|
448
|
+
reports(changed) {
|
|
449
|
+
const given = this.given;
|
|
450
|
+
const tile = this.shownForm === 'tile';
|
|
451
|
+
if (changed.has('form') && !FORMS.includes(this.form))
|
|
452
|
+
report(this, 'FIT-29', `form "${this.form}" is not a form of the file item; it is drawn as "row"`);
|
|
453
|
+
if (changed.has('status') && !STATUSES.includes(this.status))
|
|
454
|
+
report(this, 'FIT-29', `status "${this.status}" is not a status of the file item; it is drawn as "pending"`);
|
|
455
|
+
if (changed.has('fit') && !FITS.includes(this.fit))
|
|
456
|
+
report(this, 'FIT-29', `fit "${this.fit}" is not a fit of the file item; the picture is drawn as "cover"`);
|
|
457
|
+
for (const side of ['width', 'height']) {
|
|
458
|
+
const value = this[side];
|
|
459
|
+
if (changed.has(side) && value !== null && size(value) === null)
|
|
460
|
+
report(this, 'FIT-29', `${side} "${String(value)}" is not a number above zero; the tile is drawn as if it were not given`);
|
|
461
|
+
}
|
|
462
|
+
// FIT-2: a row without a name would be a glyph and a number.
|
|
463
|
+
if (!tile && !('nameHidden' in given) && this.nameHidden)
|
|
464
|
+
report(this, 'FIT-2', 'name-hidden is set on a file item whose form is "row": a row always draws its name; it is read in a tile alone');
|
|
465
|
+
// FIT-8: a file without a name.
|
|
466
|
+
if (!this.shownName.trim())
|
|
467
|
+
report(this, 'FIT-8', 'name is empty, so the file item has no name for a person or for assistive technology; give it the file\'s name');
|
|
468
|
+
// FIT-4: a status is never told by the mark or its color alone.
|
|
469
|
+
const status = this.shown;
|
|
470
|
+
if (status === 'done' && !this.statusText.trim())
|
|
471
|
+
report(this, 'FIT-4', 'status is "done" and status-text is empty, so only the mark says the file is done; give the file item a status-text');
|
|
472
|
+
if (status === 'error' && !this.errorText.trim() && !given.made)
|
|
473
|
+
report(this, 'FIT-4', 'status is "error" and error-text is empty, so only the mark says the file failed; give the file item an error-text');
|
|
474
|
+
// FIT-20: an action nobody named is still drawn, described by the file's name.
|
|
475
|
+
if (!this.readOnly) {
|
|
476
|
+
if (!this.words.get('removeLabel', given.removeLabel ?? this.removeLabel))
|
|
477
|
+
this.words.missing('removeLabel', { id: 'FIT-20', effect: 'the remove action is drawn and works, and has no accessible name' });
|
|
478
|
+
if (status === 'error' && this.retryable && !this.words.get('retryLabel', given.retryLabel ?? this.retryLabel))
|
|
479
|
+
this.words.missing('retryLabel', { id: 'FIT-20', effect: 'the retry action is drawn and works, and has no accessible name' });
|
|
480
|
+
}
|
|
481
|
+
// FIT-32: the file item has no place for content of the product's.
|
|
482
|
+
const strays = [...this.childNodes].filter((node) => (node instanceof Element ? node.slot !== 'icon' : node.nodeType === Node.TEXT_NODE && !!node.textContent?.trim()));
|
|
483
|
+
if (strays.length)
|
|
484
|
+
report(this, 'FIT-32', 'the file item holds content that is not the glyph of its icon slot; it is not drawn — put it beside the file item');
|
|
485
|
+
// FIT-3: a box given less than its actions need is drawn at the least size.
|
|
486
|
+
const least = this.lengths;
|
|
487
|
+
if (tile && least) {
|
|
488
|
+
const { width, height } = this.box;
|
|
489
|
+
for (const side of ['width', 'height']) {
|
|
490
|
+
const value = side === 'width' ? width : height;
|
|
491
|
+
// A whole pixel of tolerance: the least size is a length of the tokens, rounded by the browser.
|
|
492
|
+
if (value !== null && value < least[side] - 1)
|
|
493
|
+
report(this, 'FIT-3', `${side} ${value} is less than a tile's actions need; the box is drawn ${Math.round(least[side])} ${side === 'width' ? 'wide' : 'high'}`);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
// FIT-29: a glyph the icon set does not have draws nothing, and its box is kept.
|
|
497
|
+
if (this.glyph.trim() && !this.hasIcon && (changed.has('glyph') || !this.hasUpdatedOnce))
|
|
498
|
+
this.lookForGlyph();
|
|
499
|
+
this.hasUpdatedOnce = true;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* FIT-29: whether the icon set draws the glyph `glyph` names is known once the set's font can draw at all — which
|
|
503
|
+
* another glyph of this file item shows (an action's, a mark's: each a name the set has, FIT-5's `verify`). A box that
|
|
504
|
+
* stays empty beside a glyph that is drawn names a glyph the set does not have. The marks are written after the
|
|
505
|
+
* render, in its turn (GlyphDrawnController), and again when the face arrives: looked at after each, never at rest.
|
|
506
|
+
* A file item with no other glyph (read-only, with no status mark) has nothing to compare with and reports nothing.
|
|
507
|
+
*/
|
|
508
|
+
lookForGlyph(again = true) {
|
|
509
|
+
const named = this.glyph;
|
|
510
|
+
const look = () => {
|
|
511
|
+
if (!this.isConnected || this.glyph !== named || this.hasIcon)
|
|
512
|
+
return true;
|
|
513
|
+
const icon = this.renderRoot.querySelector('.icon');
|
|
514
|
+
const others = [...this.renderRoot.querySelectorAll('.glyph, .mark')];
|
|
515
|
+
if (!icon || !others.some((other) => other.hasAttribute('data-drawn')))
|
|
516
|
+
return false;
|
|
517
|
+
if (!icon.hasAttribute('data-drawn'))
|
|
518
|
+
report(this, 'FIT-29', `glyph "${named}" is not a glyph the icon set draws; nothing is drawn in its box`);
|
|
519
|
+
return true;
|
|
520
|
+
};
|
|
521
|
+
// After the marks of this turn; and, where the face was not there yet, once more when the page's faces have arrived.
|
|
522
|
+
queueMicrotask(() => {
|
|
523
|
+
if (look() || !again || typeof document === 'undefined' || !document.fonts)
|
|
524
|
+
return;
|
|
525
|
+
void document.fonts.ready.then(() => setTimeout(() => void look(), 0));
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
// ─── Rendering ────────────────────────────────────────────────────────────────────────────────────────────────
|
|
529
|
+
action(kind, label) {
|
|
530
|
+
const p = this.presses[kind];
|
|
531
|
+
return html `<button
|
|
532
|
+
part="action ${kind}"
|
|
533
|
+
class="action ${kind}"
|
|
534
|
+
type="button"
|
|
535
|
+
data-tanrei-shape
|
|
536
|
+
?disabled=${this.isDisabled}
|
|
537
|
+
aria-label=${label.trim() || nothing}
|
|
538
|
+
aria-description=${this.shownName || nothing}
|
|
539
|
+
@click=${(event) => this.act(event, kind)}
|
|
540
|
+
@focus=${this.onFocus}
|
|
541
|
+
@pointerdown=${p.onPointerDown}
|
|
542
|
+
@pointerup=${p.release}
|
|
543
|
+
@pointercancel=${p.release}
|
|
544
|
+
@pointerleave=${p.release}
|
|
545
|
+
@keydown=${p.onKeyDown}
|
|
546
|
+
@keyup=${p.onKeyUp}
|
|
547
|
+
@blur=${p.onBlur}
|
|
548
|
+
>
|
|
549
|
+
<span class="glyph hold" aria-hidden="true"><span class="ink">${GLYPHS[kind]}</span></span>
|
|
550
|
+
</button>`;
|
|
551
|
+
}
|
|
552
|
+
render() {
|
|
553
|
+
const given = this.given;
|
|
554
|
+
const status = this.shown;
|
|
555
|
+
const failed = status === 'error';
|
|
556
|
+
const tile = this.shownForm === 'tile';
|
|
557
|
+
const name = this.shownName;
|
|
558
|
+
const disabled = this.isDisabled;
|
|
559
|
+
const link = this.link.form;
|
|
560
|
+
const pressable = this.pressable;
|
|
561
|
+
const source = this.failed === this.source ? '' : this.source;
|
|
562
|
+
const pictured = !!source && this.pictured === source;
|
|
563
|
+
// FIT-5: the glyph of the format, the one `glyph` names in its place, or the slot's in the place of both.
|
|
564
|
+
const slotted = this.hasIcon;
|
|
565
|
+
const glyph = this.glyph.trim() || KIND_GLYPH[this.kind];
|
|
566
|
+
// FIT-4: the second line — the format, the size and the status in words, or the error in the status's place.
|
|
567
|
+
const said = failed ? this.errorText : this.statusText;
|
|
568
|
+
const marked = status === 'done' || failed;
|
|
569
|
+
const words = [this.formatText, this.sizeText, said].filter((text) => !!text);
|
|
570
|
+
const second = words.length > 0 || marked;
|
|
571
|
+
const dot = html ` <span aria-hidden="true">·</span> `;
|
|
572
|
+
const before = [this.formatText, this.sizeText].filter((text) => !!text);
|
|
573
|
+
// FIT-10: the bar while the file is being sent; a fraction clamped to 0 and 1, or null for "under way".
|
|
574
|
+
const progress = typeof this.progress === 'number' && !Number.isNaN(this.progress) ? Math.min(1, Math.max(0, this.progress)) : null;
|
|
575
|
+
const bar = status === 'uploading' ? html `<tanrei-progress-indicator part="progress" separation="divider" .label=${name} .value=${progress}></tanrei-progress-indicator>` : nothing;
|
|
576
|
+
// FIT-8: a tile's name is not drawn only behind a picture that is drawn.
|
|
577
|
+
const hidden = tile && (given.nameHidden ?? this.nameHidden) && pictured;
|
|
578
|
+
const cut = nameParts(name);
|
|
579
|
+
const headline = tile
|
|
580
|
+
? // FIT-9: the cut is the drawing's alone. What is drawn — the start and the ending, two boxes of one line — is kept
|
|
581
|
+
// from assistive technology, which is given the name whole, as one text, beside it.
|
|
582
|
+
html `<div part="headline" class="headline ${classMap({ unseen: hidden })}"
|
|
583
|
+
>${hidden ? nothing : html `<bdi class="cut" aria-hidden="true"><span class="start">${cut.start}</span>${cut.ending ? html `<span class="ending">${cut.ending}</span>` : nothing}</bdi>`}<span class="whole">${name}</span></div
|
|
584
|
+
>`
|
|
585
|
+
: html `<div part="headline" class="headline">${name}</div>`;
|
|
586
|
+
const text = name || second
|
|
587
|
+
? html `<div class="text ${classMap({ bare: hidden && !second })}">
|
|
588
|
+
${headline}
|
|
589
|
+
${second
|
|
590
|
+
? html `<div part="supporting-text" class="supporting ${classMap({ failed })}">
|
|
591
|
+
${before.map((each, index) => html `${index ? dot : nothing}<span class="said">${each}</span>`)}${before.length && (said || marked) ? dot : nothing}${marked
|
|
592
|
+
? html `<span part="status-icon" class="mark status" aria-hidden="true"><span class="ink">${failed ? GLYPHS.error : GLYPHS.done}</span></span>`
|
|
593
|
+
: nothing}${said ? html `<span class="said">${said}</span>` : nothing}
|
|
594
|
+
</div>`
|
|
595
|
+
: nothing}
|
|
596
|
+
</div>`
|
|
597
|
+
: nothing;
|
|
598
|
+
const layer = pressable ? html `<span class="layer" data-tanrei-shape></span>` : nothing;
|
|
599
|
+
// The leading box also carries press-hold for PressController (FIT-15): an element of the body that is always there
|
|
600
|
+
// and has no motion of its own — never a part of its own, which would be one more item of the body's line and its gap.
|
|
601
|
+
const media = html `<span class="lead hold"
|
|
602
|
+
><span part="media" class="media" ?data-tanrei-shape=${tile || this.wantsPreview} ?data-pictured=${pictured} aria-hidden="true"
|
|
603
|
+
><span part="icon" class="icon ${classMap({ given: slotted })}">${slotted ? nothing : html `<span class="ink">${glyph}</span>`}<slot name="icon" @slotchange=${this.onIconSlotChange}></slot></span
|
|
604
|
+
>${source
|
|
605
|
+
? html `<img part="preview" class="preview" alt="" decoding="async" draggable="false" src=${source} ?data-drawn=${pictured} @load=${this.onPicture} @error=${this.onPicture} />`
|
|
606
|
+
: nothing}${tile ? layer : nothing}</span
|
|
607
|
+
></span
|
|
608
|
+
>`;
|
|
609
|
+
// FIT-13: a row marks a link that opens a new context after its texts; a tile has no such place (D7).
|
|
610
|
+
const opens = !tile && link?.opensNew ? html `<span class="open"><span class="mark new" aria-hidden="true"><span class="ink">${LINK_MARK}</span></span></span>` : nothing;
|
|
611
|
+
const inside = html `${tile ? nothing : layer}${media}${text}${opens}`;
|
|
612
|
+
// FIT-19: a pressable body is named by the name and described by the second line's texts, then by targetLabel.
|
|
613
|
+
const description = this.link.describe(words.join(', ') || null);
|
|
614
|
+
const p = this.presses.body;
|
|
615
|
+
const tag = link ? literal `a` : this.interactive ? literal `button` : literal `div`;
|
|
616
|
+
const body = pressable
|
|
617
|
+
? staticHtml `<${tag}
|
|
618
|
+
part="container"
|
|
619
|
+
class="body pressable"
|
|
620
|
+
data-tanrei-shape
|
|
621
|
+
type=${link ? nothing : 'button'}
|
|
622
|
+
?disabled=${!link && disabled}
|
|
623
|
+
${linkAttributes(link)}
|
|
624
|
+
aria-label=${name || nothing}
|
|
625
|
+
aria-description=${description ?? nothing}
|
|
626
|
+
@click=${this.onBodyClick}
|
|
627
|
+
@focus=${this.onFocus}
|
|
628
|
+
@pointerdown=${p.onPointerDown}
|
|
629
|
+
@pointerup=${p.release}
|
|
630
|
+
@pointercancel=${p.release}
|
|
631
|
+
@pointerleave=${p.release}
|
|
632
|
+
@keydown=${p.onKeyDown}
|
|
633
|
+
@keyup=${p.onKeyUp}
|
|
634
|
+
@blur=${p.onBlur}
|
|
635
|
+
>${inside}</${tag}>`
|
|
636
|
+
: html `<div part="container" class="body">${inside}</div>`;
|
|
637
|
+
const actions = this.readOnly
|
|
638
|
+
? nothing
|
|
639
|
+
: html `<span class="end">${failed && this.retryable ? this.action('retry', this.words.get('retryLabel', given.retryLabel ?? this.retryLabel)) : nothing}${this.action('remove', this.words.get('removeLabel', given.removeLabel ?? this.removeLabel))}</span>`;
|
|
640
|
+
// FIT-3: the box of a tile — the width and the height given, the token's height where there is none, and a square
|
|
641
|
+
// where there is no width. Numbers of CSS pixels, as an image's.
|
|
642
|
+
// Each side is no less than the actions need (the lengths are read after the first draw of a box: until then the
|
|
643
|
+
// stylesheet holds the box to them, and a box of one side given is a square).
|
|
644
|
+
const { width, height } = this.box;
|
|
645
|
+
const least = this.lengths;
|
|
646
|
+
const wide = width ?? height;
|
|
647
|
+
const high = height ?? (width !== null ? (least?.token ?? null) : null);
|
|
648
|
+
const [w, h] = [wide !== null && least ? Math.max(wide, least.width) : wide, high !== null && least ? Math.max(high, least.height) : high];
|
|
649
|
+
const sizes = tile
|
|
650
|
+
? {
|
|
651
|
+
'--_box-width': w !== null ? `${w}px` : null,
|
|
652
|
+
'--_box-ratio': w !== null && h !== null ? `${w} / ${h}` : null,
|
|
653
|
+
'--_between': null,
|
|
654
|
+
}
|
|
655
|
+
: { '--_between': given.between ?? null };
|
|
656
|
+
return html `
|
|
657
|
+
<div class="item" @click=${this.onOtherClick} data-form=${tile ? 'tile' : 'row'} data-status=${status} data-fit=${this.shownFit} ?data-preview=${this.wantsPreview} ?data-read-only=${this.readOnly} style=${styleMap(sizes)}>
|
|
658
|
+
${body}${tile ? html `<span class="over" data-tanrei-shape>${bar}</span>` : status === 'uploading' ? html `<div class="bar">${bar}</div>` : nothing}${actions}
|
|
659
|
+
</div>
|
|
660
|
+
`;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
if (!customElements.get('tanrei-file-item'))
|
|
664
|
+
customElements.define('tanrei-file-item', TanreiFileItem);
|
|
665
|
+
//# sourceMappingURL=file-item.js.map
|