@und-ui/core 0.1.0 → 0.2.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/README.md +6 -0
- package/custom-elements.json +45231 -9574
- package/dist/alert-dialog.d.ts +9 -0
- package/dist/alert-dialog.d.ts.map +1 -0
- package/dist/alert-dialog.js +9 -0
- package/dist/alert-dialog.js.map +1 -0
- package/dist/all.d.ts +69 -0
- package/dist/all.d.ts.map +1 -1
- package/dist/all.js +70 -0
- package/dist/all.js.map +1 -1
- package/dist/app-shell.d.ts +2 -0
- package/dist/app-shell.d.ts.map +1 -0
- package/dist/app-shell.js +8 -0
- package/dist/app-shell.js.map +1 -0
- package/dist/aspect-ratio.d.ts +2 -0
- package/dist/aspect-ratio.d.ts.map +1 -0
- package/dist/aspect-ratio.js +8 -0
- package/dist/aspect-ratio.js.map +1 -0
- package/dist/autoloader.d.ts +9 -0
- package/dist/autoloader.js +135 -0
- package/dist/banner.d.ts +2 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/banner.js +8 -0
- package/dist/banner.js.map +1 -0
- package/dist/blockquote.d.ts +2 -0
- package/dist/blockquote.d.ts.map +1 -0
- package/dist/blockquote.js +8 -0
- package/dist/blockquote.js.map +1 -0
- package/dist/bottom-sheet.d.ts +2 -0
- package/dist/bottom-sheet.d.ts.map +1 -0
- package/dist/bottom-sheet.js +8 -0
- package/dist/bottom-sheet.js.map +1 -0
- package/dist/button-group.d.ts +2 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.js +8 -0
- package/dist/button-group.js.map +1 -0
- package/dist/calendar.d.ts +2 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +8 -0
- package/dist/calendar.js.map +1 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.d.ts.map +1 -0
- package/dist/carousel.js +8 -0
- package/dist/carousel.js.map +1 -0
- package/dist/cdn/accordion.js +1 -0
- package/dist/cdn/alert.js +177 -0
- package/dist/cdn/all.js +12500 -0
- package/dist/cdn/app-shell.js +170 -0
- package/dist/cdn/aspect-ratio.js +62 -0
- package/dist/cdn/autoloader.js +1 -0
- package/dist/cdn/avatar-group.js +76 -0
- package/dist/cdn/avatar.js +1 -0
- package/dist/cdn/badge.js +139 -0
- package/dist/cdn/banner.js +197 -0
- package/dist/cdn/blockquote.js +51 -0
- package/dist/cdn/bottom-sheet.js +92 -0
- package/dist/cdn/breadcrumb-item.js +1 -0
- package/dist/cdn/breadcrumb.js +1 -0
- package/dist/cdn/button-group.js +1 -0
- package/dist/cdn/button.js +1 -0
- package/dist/cdn/calendar.js +1 -0
- package/dist/cdn/card.js +1 -0
- package/dist/cdn/carousel.js +227 -0
- package/dist/cdn/center.js +38 -0
- package/dist/cdn/chat-composer.js +235 -0
- package/dist/cdn/chat-layout.js +146 -0
- package/dist/cdn/chat-message.js +304 -0
- package/dist/cdn/checkbox-list.js +118 -0
- package/dist/cdn/checkbox.js +1 -0
- package/dist/cdn/chunks/2GOGJDSU.js +47 -0
- package/dist/cdn/chunks/2ILG5UCH.js +320 -0
- package/dist/cdn/chunks/2JGSCE32.js +1 -0
- package/dist/cdn/chunks/2NKWY2MD.js +1 -0
- package/dist/cdn/chunks/2POJ73H3.js +127 -0
- package/dist/cdn/chunks/2ZNYEI2K.js +153 -0
- package/dist/cdn/chunks/4V5OZW5S.js +138 -0
- package/dist/cdn/chunks/53R7LH57.js +1 -0
- package/dist/cdn/chunks/5RXWAJYI.js +209 -0
- package/dist/cdn/chunks/6PVRHMKB.js +136 -0
- package/dist/cdn/chunks/7FX3ODJD.js +1 -0
- package/dist/cdn/chunks/7Q37LUBP.js +1 -0
- package/dist/cdn/chunks/7ZRZJJTR.js +1 -0
- package/dist/cdn/chunks/AFVQZOYK.js +1 -0
- package/dist/cdn/chunks/AH74TYPT.js +1 -0
- package/dist/cdn/chunks/ASRBZKJQ.js +110 -0
- package/dist/cdn/chunks/BC5GCW6V.js +70 -0
- package/dist/cdn/chunks/BZSCKO2L.js +498 -0
- package/dist/cdn/chunks/CQAYRYSN.js +183 -0
- package/dist/cdn/chunks/DDMOITKE.js +1 -0
- package/dist/cdn/chunks/DLMHPPVT.js +9 -0
- package/dist/cdn/chunks/E4ULE3CZ.js +28 -0
- package/dist/cdn/chunks/ERZVCCWG.js +1 -0
- package/dist/cdn/chunks/EXHS4XM7.js +75 -0
- package/dist/cdn/chunks/F4UDAUDP.js +95 -0
- package/dist/cdn/chunks/FQ5Z2ADE.js +1 -0
- package/dist/cdn/chunks/FRDRK7S4.js +192 -0
- package/dist/cdn/chunks/FVWYLBE6.js +1 -0
- package/dist/cdn/chunks/G2MFKC6X.js +1 -0
- package/dist/cdn/chunks/GBWHWWM7.js +1 -0
- package/dist/cdn/chunks/GVFRCF4L.js +1 -0
- package/dist/cdn/chunks/H3EXQADC.js +1 -0
- package/dist/cdn/chunks/HJLUTHQ4.js +28 -0
- package/dist/cdn/chunks/HQG5G3NW.js +294 -0
- package/dist/cdn/chunks/IRDJ2SED.js +227 -0
- package/dist/cdn/chunks/ITULBQXQ.js +77 -0
- package/dist/cdn/chunks/IYPIGVNK.js +1 -0
- package/dist/cdn/chunks/JFRG4OYS.js +174 -0
- package/dist/cdn/chunks/JIAFHSB3.js +1 -0
- package/dist/cdn/chunks/JSGBG32L.js +1 -0
- package/dist/cdn/chunks/JTCY7VA6.js +16 -0
- package/dist/cdn/chunks/KJKMJ4CJ.js +1 -0
- package/dist/cdn/chunks/LAHY3QCY.js +1 -0
- package/dist/cdn/chunks/LILDP4YG.js +228 -0
- package/dist/cdn/chunks/LUMZDQSN.js +1 -0
- package/dist/cdn/chunks/MCMKNHE4.js +243 -0
- package/dist/cdn/chunks/MQR6SWE3.js +1 -0
- package/dist/cdn/chunks/NBCCLQGT.js +2 -0
- package/dist/cdn/chunks/NOAT4MJU.js +1 -0
- package/dist/cdn/chunks/NSGFRI4V.js +1 -0
- package/dist/cdn/chunks/PFTG732C.js +120 -0
- package/dist/cdn/chunks/PYS73CGQ.js +1 -0
- package/dist/cdn/chunks/QFHEFAZM.js +228 -0
- package/dist/cdn/chunks/QSGNQDXL.js +83 -0
- package/dist/cdn/chunks/QXFKH4UN.js +80 -0
- package/dist/cdn/chunks/R7XE3NCT.js +104 -0
- package/dist/cdn/chunks/RBKCBV34.js +10 -0
- package/dist/cdn/chunks/RDI7SHXP.js +161 -0
- package/dist/cdn/chunks/U7MPBIQK.js +15 -0
- package/dist/cdn/chunks/VJW5CINE.js +289 -0
- package/dist/cdn/chunks/VWGB35YM.js +1 -0
- package/dist/cdn/chunks/W3C5YK34.js +25 -0
- package/dist/cdn/chunks/WPLY7F3R.js +1 -0
- package/dist/cdn/chunks/XDXEEO2D.js +189 -0
- package/dist/cdn/chunks/YCLUSLYF.js +155 -0
- package/dist/cdn/chunks/YTJ6WTZW.js +253 -0
- package/dist/cdn/chunks/YUWOEVYA.js +19 -0
- package/dist/cdn/chunks/YYIQMFRC.js +168 -0
- package/dist/cdn/chunks/Z5CQ6NOH.js +1 -0
- package/dist/cdn/citation.js +98 -0
- package/dist/cdn/clickable-card.js +31 -0
- package/dist/cdn/code-block.js +231 -0
- package/dist/cdn/code.js +28 -0
- package/dist/cdn/collapsible.js +11 -0
- package/dist/cdn/combobox.js +1 -0
- package/dist/cdn/command-palette.js +234 -0
- package/dist/cdn/context-menu.js +15 -0
- package/dist/cdn/date-input.js +1 -0
- package/dist/cdn/date-range-input.js +1 -0
- package/dist/cdn/date-time-input.js +9 -0
- package/dist/cdn/dialog.js +1 -0
- package/dist/cdn/divider.js +74 -0
- package/dist/cdn/drawer.js +1 -0
- package/dist/cdn/empty-state.js +99 -0
- package/dist/cdn/file-input.js +190 -0
- package/dist/cdn/form-field.js +13 -0
- package/dist/cdn/form-layout.js +66 -0
- package/dist/cdn/grid-item.js +1 -0
- package/dist/cdn/grid.js +62 -0
- package/dist/cdn/heading.js +57 -0
- package/dist/cdn/hover-card.js +7 -0
- package/dist/cdn/icon-button.js +37 -0
- package/dist/cdn/icon.js +52 -0
- package/dist/cdn/info-tip.js +94 -0
- package/dist/cdn/input-group.js +64 -0
- package/dist/cdn/kbd.js +36 -0
- package/dist/cdn/lightbox.js +259 -0
- package/dist/cdn/link.js +160 -0
- package/dist/cdn/list-item.js +1 -0
- package/dist/cdn/list.js +1 -0
- package/dist/cdn/markdown.js +1 -0
- package/dist/cdn/menu-group.js +1 -0
- package/dist/cdn/menu-item.js +1 -0
- package/dist/cdn/menu-separator.js +1 -0
- package/dist/cdn/menu.js +1 -0
- package/dist/cdn/metadata-item.js +1 -0
- package/dist/cdn/metadata-list.js +1 -0
- package/dist/cdn/mobile-nav.js +88 -0
- package/dist/cdn/more-menu.js +58 -0
- package/dist/cdn/multi-select.js +70 -0
- package/dist/cdn/number-input.js +103 -0
- package/dist/cdn/outline.js +100 -0
- package/dist/cdn/overflow-list.js +124 -0
- package/dist/cdn/pagination.js +181 -0
- package/dist/cdn/popover.js +1 -0
- package/dist/cdn/progress.js +180 -0
- package/dist/cdn/radio-group.js +1 -0
- package/dist/cdn/radio-list.js +76 -0
- package/dist/cdn/radio.js +1 -0
- package/dist/cdn/resize-handle.js +73 -0
- package/dist/cdn/scroll-area.js +79 -0
- package/dist/cdn/section.js +36 -0
- package/dist/cdn/segmented-control-item.js +1 -0
- package/dist/cdn/segmented-control.js +1 -0
- package/dist/cdn/select.js +43 -0
- package/dist/cdn/selectable-card.js +161 -0
- package/dist/cdn/side-nav-heading.js +1 -0
- package/dist/cdn/side-nav-item.js +1 -0
- package/dist/cdn/side-nav-section.js +1 -0
- package/dist/cdn/side-nav.js +1 -0
- package/dist/cdn/skeleton.js +80 -0
- package/dist/cdn/slider.js +182 -0
- package/dist/cdn/spinner.js +65 -0
- package/dist/cdn/stack.js +72 -0
- package/dist/cdn/status-dot.js +66 -0
- package/dist/cdn/step.js +1 -0
- package/dist/cdn/stepper.js +1 -0
- package/dist/cdn/switch.js +178 -0
- package/dist/cdn/tab-menu.js +121 -0
- package/dist/cdn/tab-panel.js +1 -0
- package/dist/cdn/tab.js +1 -0
- package/dist/cdn/table.js +365 -0
- package/dist/cdn/tabs.js +1 -0
- package/dist/cdn/text-field.js +1 -0
- package/dist/cdn/text.js +102 -0
- package/dist/cdn/textarea.js +102 -0
- package/dist/cdn/thumbnail.js +92 -0
- package/dist/cdn/time-input.js +1 -0
- package/dist/cdn/timer.js +33 -0
- package/dist/cdn/timestamp.js +16 -0
- package/dist/cdn/toast.js +1 -0
- package/dist/cdn/toaster.js +1 -0
- package/dist/cdn/toggle-button-group.js +1 -0
- package/dist/cdn/token.js +1 -0
- package/dist/cdn/tokenizer.js +181 -0
- package/dist/cdn/toolbar.js +37 -0
- package/dist/cdn/tooltip.js +50 -0
- package/dist/cdn/top-nav-item.js +1 -0
- package/dist/cdn/top-nav-menu.js +1 -0
- package/dist/cdn/top-nav.js +1 -0
- package/dist/cdn/tree-item.js +1 -0
- package/dist/cdn/tree-list.js +1 -0
- package/dist/cdn/typeahead.js +1 -0
- package/dist/cdn/visually-hidden.js +18 -0
- package/dist/center.d.ts +2 -0
- package/dist/center.d.ts.map +1 -0
- package/dist/center.js +8 -0
- package/dist/center.js.map +1 -0
- package/dist/chat-composer.d.ts +2 -0
- package/dist/chat-composer.d.ts.map +1 -0
- package/dist/chat-composer.js +8 -0
- package/dist/chat-composer.js.map +1 -0
- package/dist/chat-layout.d.ts +2 -0
- package/dist/chat-layout.d.ts.map +1 -0
- package/dist/chat-layout.js +8 -0
- package/dist/chat-layout.js.map +1 -0
- package/dist/chat-message.d.ts +2 -0
- package/dist/chat-message.d.ts.map +1 -0
- package/dist/chat-message.js +11 -0
- package/dist/chat-message.js.map +1 -0
- package/dist/checkbox-list.d.ts +3 -0
- package/dist/checkbox-list.d.ts.map +1 -0
- package/dist/checkbox-list.js +11 -0
- package/dist/checkbox-list.js.map +1 -0
- package/dist/citation.d.ts +2 -0
- package/dist/citation.d.ts.map +1 -0
- package/dist/citation.js +8 -0
- package/dist/citation.js.map +1 -0
- package/dist/clickable-card.d.ts +2 -0
- package/dist/clickable-card.d.ts.map +1 -0
- package/dist/clickable-card.js +8 -0
- package/dist/clickable-card.js.map +1 -0
- package/dist/code-block.d.ts +2 -0
- package/dist/code-block.d.ts.map +1 -0
- package/dist/code-block.js +8 -0
- package/dist/code-block.js.map +1 -0
- package/dist/code.d.ts +2 -0
- package/dist/code.d.ts.map +1 -0
- package/dist/code.js +8 -0
- package/dist/code.js.map +1 -0
- package/dist/collapsible.d.ts +2 -0
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +8 -0
- package/dist/collapsible.js.map +1 -0
- package/dist/command-palette.d.ts +2 -0
- package/dist/command-palette.d.ts.map +1 -0
- package/dist/command-palette.js +8 -0
- package/dist/command-palette.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +26 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.js +79 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +102 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +285 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +45 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +105 -0
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/banner/banner.d.ts +111 -0
- package/dist/components/banner/banner.d.ts.map +1 -0
- package/dist/components/banner/banner.js +287 -0
- package/dist/components/banner/banner.js.map +1 -0
- package/dist/components/blockquote/blockquote.d.ts +42 -0
- package/dist/components/blockquote/blockquote.d.ts.map +1 -0
- package/dist/components/blockquote/blockquote.js +90 -0
- package/dist/components/blockquote/blockquote.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +128 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +279 -0
- package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +7 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts.map +1 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js +83 -0
- package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +60 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/button-group.js +126 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/calendar/calendar.d.ts +163 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +411 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/calendar/calendar.styles.d.ts +3 -0
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -0
- package/dist/components/calendar/calendar.styles.js +219 -0
- package/dist/components/calendar/calendar.styles.js.map +1 -0
- package/dist/components/card/card.d.ts +6 -2
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +19 -11
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/carousel/carousel.d.ts +171 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/carousel/carousel.js +340 -0
- package/dist/components/carousel/carousel.js.map +1 -0
- package/dist/components/carousel/carousel.styles.d.ts +3 -0
- package/dist/components/carousel/carousel.styles.d.ts.map +1 -0
- package/dist/components/carousel/carousel.styles.js +171 -0
- package/dist/components/carousel/carousel.styles.js.map +1 -0
- package/dist/components/center/center.d.ts +50 -0
- package/dist/components/center/center.d.ts.map +1 -0
- package/dist/components/center/center.js +69 -0
- package/dist/components/center/center.js.map +1 -0
- package/dist/components/chat/chat-composer.d.ts +172 -0
- package/dist/components/chat/chat-composer.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.js +252 -0
- package/dist/components/chat/chat-composer.js.map +1 -0
- package/dist/components/chat/chat-composer.styles.d.ts +5 -0
- package/dist/components/chat/chat-composer.styles.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.styles.js +206 -0
- package/dist/components/chat/chat-composer.styles.js.map +1 -0
- package/dist/components/chat/chat-layout.d.ts +112 -0
- package/dist/components/chat/chat-layout.d.ts.map +1 -0
- package/dist/components/chat/chat-layout.js +204 -0
- package/dist/components/chat/chat-layout.js.map +1 -0
- package/dist/components/chat/chat-layout.styles.d.ts +3 -0
- package/dist/components/chat/chat-layout.styles.d.ts.map +1 -0
- package/dist/components/chat/chat-layout.styles.js +114 -0
- package/dist/components/chat/chat-layout.styles.js.map +1 -0
- package/dist/components/chat/chat-message.d.ts +164 -0
- package/dist/components/chat/chat-message.d.ts.map +1 -0
- package/dist/components/chat/chat-message.js +257 -0
- package/dist/components/chat/chat-message.js.map +1 -0
- package/dist/components/chat/chat-message.styles.d.ts +3 -0
- package/dist/components/chat/chat-message.styles.d.ts.map +1 -0
- package/dist/components/chat/chat-message.styles.js +249 -0
- package/dist/components/chat/chat-message.styles.js.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.d.ts +109 -0
- package/dist/components/checkbox-list/checkbox-list.d.ts.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.js +230 -0
- package/dist/components/checkbox-list/checkbox-list.js.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.styles.d.ts +3 -0
- package/dist/components/checkbox-list/checkbox-list.styles.d.ts.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.styles.js +104 -0
- package/dist/components/checkbox-list/checkbox-list.styles.js.map +1 -0
- package/dist/components/citation/citation.d.ts +81 -0
- package/dist/components/citation/citation.d.ts.map +1 -0
- package/dist/components/citation/citation.js +173 -0
- package/dist/components/citation/citation.js.map +1 -0
- package/dist/components/clickable-card/clickable-card.d.ts +61 -0
- package/dist/components/clickable-card/clickable-card.d.ts.map +1 -0
- package/dist/components/clickable-card/clickable-card.js +84 -0
- package/dist/components/clickable-card/clickable-card.js.map +1 -0
- package/dist/components/code/code.d.ts +28 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/code.js +52 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +183 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +237 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.styles.d.ts +11 -0
- package/dist/components/code-block/code-block.styles.d.ts.map +1 -0
- package/dist/components/code-block/code-block.styles.js +194 -0
- package/dist/components/code-block/code-block.styles.js.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +57 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.js +95 -0
- package/dist/components/collapsible/collapsible.js.map +1 -0
- package/dist/components/collapsible/collapsible.styles.d.ts +10 -0
- package/dist/components/collapsible/collapsible.styles.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.styles.js +22 -0
- package/dist/components/collapsible/collapsible.styles.js.map +1 -0
- package/dist/components/command-palette/command-palette.d.ts +188 -0
- package/dist/components/command-palette/command-palette.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.js +367 -0
- package/dist/components/command-palette/command-palette.js.map +1 -0
- package/dist/components/command-palette/command-palette.styles.d.ts +6 -0
- package/dist/components/command-palette/command-palette.styles.d.ts.map +1 -0
- package/dist/components/command-palette/command-palette.styles.js +173 -0
- package/dist/components/command-palette/command-palette.styles.js.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +79 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +144 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/context-menu/context-menu.styles.d.ts +3 -0
- package/dist/components/context-menu/context-menu.styles.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.styles.js +18 -0
- package/dist/components/context-menu/context-menu.styles.js.map +1 -0
- package/dist/components/date-input/date-input.d.ts +150 -0
- package/dist/components/date-input/date-input.d.ts.map +1 -0
- package/dist/components/date-input/date-input.js +273 -0
- package/dist/components/date-input/date-input.js.map +1 -0
- package/dist/components/date-range-input/date-range-input.d.ts +158 -0
- package/dist/components/date-range-input/date-range-input.d.ts.map +1 -0
- package/dist/components/date-range-input/date-range-input.js +387 -0
- package/dist/components/date-range-input/date-range-input.js.map +1 -0
- package/dist/components/date-time-input/date-time-input.d.ts +178 -0
- package/dist/components/date-time-input/date-time-input.d.ts.map +1 -0
- package/dist/components/date-time-input/date-time-input.js +276 -0
- package/dist/components/date-time-input/date-time-input.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +13 -1
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +36 -24
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/empty-state/empty-state.d.ts +57 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.js +162 -0
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/file-input/file-input.d.ts +122 -0
- package/dist/components/file-input/file-input.d.ts.map +1 -0
- package/dist/components/file-input/file-input.js +364 -0
- package/dist/components/file-input/file-input.js.map +1 -0
- package/dist/components/file-input/file-input.styles.d.ts +3 -0
- package/dist/components/file-input/file-input.styles.d.ts.map +1 -0
- package/dist/components/file-input/file-input.styles.js +195 -0
- package/dist/components/file-input/file-input.styles.js.map +1 -0
- package/dist/components/form-layout/form-layout.d.ts +40 -0
- package/dist/components/form-layout/form-layout.d.ts.map +1 -0
- package/dist/components/form-layout/form-layout.js +41 -0
- package/dist/components/form-layout/form-layout.js.map +1 -0
- package/dist/components/form-layout/form-layout.styles.d.ts +3 -0
- package/dist/components/form-layout/form-layout.styles.d.ts.map +1 -0
- package/dist/components/form-layout/form-layout.styles.js +71 -0
- package/dist/components/form-layout/form-layout.styles.js.map +1 -0
- package/dist/components/grid/grid-item.d.ts +36 -0
- package/dist/components/grid/grid-item.d.ts.map +1 -0
- package/dist/components/grid/grid-item.js +42 -0
- package/dist/components/grid/grid-item.js.map +1 -0
- package/dist/components/grid/grid.d.ts +69 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/grid.js +97 -0
- package/dist/components/grid/grid.js.map +1 -0
- package/dist/components/heading/heading.d.ts +61 -0
- package/dist/components/heading/heading.d.ts.map +1 -0
- package/dist/components/heading/heading.js +50 -0
- package/dist/components/heading/heading.js.map +1 -0
- package/dist/components/heading/heading.styles.d.ts +6 -0
- package/dist/components/heading/heading.styles.d.ts.map +1 -0
- package/dist/components/heading/heading.styles.js +64 -0
- package/dist/components/heading/heading.styles.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +116 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/hover-card.js +291 -0
- package/dist/components/hover-card/hover-card.js.map +1 -0
- package/dist/components/icon/icon-registry.d.ts +60 -0
- package/dist/components/icon/icon-registry.d.ts.map +1 -0
- package/dist/components/icon/icon-registry.js +136 -0
- package/dist/components/icon/icon-registry.js.map +1 -0
- package/dist/components/icon/icon.d.ts +84 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +126 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/info-tip/info-tip.d.ts +73 -0
- package/dist/components/info-tip/info-tip.d.ts.map +1 -0
- package/dist/components/info-tip/info-tip.js +184 -0
- package/dist/components/info-tip/info-tip.js.map +1 -0
- package/dist/components/input-group/input-group.d.ts +41 -0
- package/dist/components/input-group/input-group.d.ts.map +1 -0
- package/dist/components/input-group/input-group.js +79 -0
- package/dist/components/input-group/input-group.js.map +1 -0
- package/dist/components/input-group/input-group.styles.d.ts +3 -0
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -0
- package/dist/components/input-group/input-group.styles.js +69 -0
- package/dist/components/input-group/input-group.styles.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +31 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/kbd.js +63 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/lightbox/lightbox.d.ts +167 -0
- package/dist/components/lightbox/lightbox.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.js +272 -0
- package/dist/components/lightbox/lightbox.js.map +1 -0
- package/dist/components/lightbox/lightbox.styles.d.ts +7 -0
- package/dist/components/lightbox/lightbox.styles.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.styles.js +188 -0
- package/dist/components/lightbox/lightbox.styles.js.map +1 -0
- package/dist/components/list/list-item.d.ts +52 -0
- package/dist/components/list/list-item.d.ts.map +1 -0
- package/dist/components/list/list-item.js +131 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list.d.ts +53 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +77 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/markdown/markdown.d.ts +103 -0
- package/dist/components/markdown/markdown.d.ts.map +1 -0
- package/dist/components/markdown/markdown.js +111 -0
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.styles.d.ts +6 -0
- package/dist/components/markdown/markdown.styles.d.ts.map +1 -0
- package/dist/components/markdown/markdown.styles.js +178 -0
- package/dist/components/markdown/markdown.styles.js.map +1 -0
- package/dist/components/markdown/parser.d.ts +67 -0
- package/dist/components/markdown/parser.d.ts.map +1 -0
- package/dist/components/markdown/parser.js +511 -0
- package/dist/components/markdown/parser.js.map +1 -0
- package/dist/components/markdown/render.d.ts +15 -0
- package/dist/components/markdown/render.d.ts.map +1 -0
- package/dist/components/markdown/render.js +170 -0
- package/dist/components/markdown/render.js.map +1 -0
- package/dist/components/menu/menu.d.ts +21 -2
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.js +83 -15
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/metadata-list/metadata-item.d.ts +35 -0
- package/dist/components/metadata-list/metadata-item.d.ts.map +1 -0
- package/dist/components/metadata-list/metadata-item.js +39 -0
- package/dist/components/metadata-list/metadata-item.js.map +1 -0
- package/dist/components/metadata-list/metadata-list.d.ts +65 -0
- package/dist/components/metadata-list/metadata-list.d.ts.map +1 -0
- package/dist/components/metadata-list/metadata-list.js +151 -0
- package/dist/components/metadata-list/metadata-list.js.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.d.ts +91 -0
- package/dist/components/mobile-nav/mobile-nav.d.ts.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.js +138 -0
- package/dist/components/mobile-nav/mobile-nav.js.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.styles.d.ts +3 -0
- package/dist/components/mobile-nav/mobile-nav.styles.d.ts.map +1 -0
- package/dist/components/mobile-nav/mobile-nav.styles.js +57 -0
- package/dist/components/mobile-nav/mobile-nav.styles.js.map +1 -0
- package/dist/components/more-menu/more-menu.d.ts +57 -0
- package/dist/components/more-menu/more-menu.d.ts.map +1 -0
- package/dist/components/more-menu/more-menu.js +59 -0
- package/dist/components/more-menu/more-menu.js.map +1 -0
- package/dist/components/more-menu/more-menu.styles.d.ts +3 -0
- package/dist/components/more-menu/more-menu.styles.d.ts.map +1 -0
- package/dist/components/more-menu/more-menu.styles.js +50 -0
- package/dist/components/more-menu/more-menu.styles.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +211 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/multi-select/multi-select.js +562 -0
- package/dist/components/multi-select/multi-select.js.map +1 -0
- package/dist/components/multi-select/multi-select.styles.d.ts +6 -0
- package/dist/components/multi-select/multi-select.styles.d.ts.map +1 -0
- package/dist/components/multi-select/multi-select.styles.js +27 -0
- package/dist/components/multi-select/multi-select.styles.js.map +1 -0
- package/dist/components/number-input/number-format.d.ts +38 -0
- package/dist/components/number-input/number-format.d.ts.map +1 -0
- package/dist/components/number-input/number-format.js +114 -0
- package/dist/components/number-input/number-format.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +204 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/number-input/number-input.js +470 -0
- package/dist/components/number-input/number-input.js.map +1 -0
- package/dist/components/number-input/number-input.styles.d.ts +3 -0
- package/dist/components/number-input/number-input.styles.d.ts.map +1 -0
- package/dist/components/number-input/number-input.styles.js +108 -0
- package/dist/components/number-input/number-input.styles.js.map +1 -0
- package/dist/components/outline/outline.d.ts +117 -0
- package/dist/components/outline/outline.d.ts.map +1 -0
- package/dist/components/outline/outline.js +283 -0
- package/dist/components/outline/outline.js.map +1 -0
- package/dist/components/outline/outline.styles.d.ts +7 -0
- package/dist/components/outline/outline.styles.d.ts.map +1 -0
- package/dist/components/outline/outline.styles.js +92 -0
- package/dist/components/outline/outline.styles.js.map +1 -0
- package/dist/components/overflow-list/overflow-list.d.ts +78 -0
- package/dist/components/overflow-list/overflow-list.d.ts.map +1 -0
- package/dist/components/overflow-list/overflow-list.js +211 -0
- package/dist/components/overflow-list/overflow-list.js.map +1 -0
- package/dist/components/overflow-list/overflow-list.styles.d.ts +3 -0
- package/dist/components/overflow-list/overflow-list.styles.d.ts.map +1 -0
- package/dist/components/overflow-list/overflow-list.styles.js +112 -0
- package/dist/components/overflow-list/overflow-list.styles.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +1 -1
- package/dist/components/pagination/pagination.js +2 -2
- package/dist/components/radio-group/radio-group.d.ts +6 -2
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.js +8 -2
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/radio-group/radio.d.ts +6 -2
- package/dist/components/radio-group/radio.d.ts.map +1 -1
- package/dist/components/radio-group/radio.js +14 -6
- package/dist/components/radio-group/radio.js.map +1 -1
- package/dist/components/radio-list/radio-list.d.ts +33 -0
- package/dist/components/radio-list/radio-list.d.ts.map +1 -0
- package/dist/components/radio-list/radio-list.js +32 -0
- package/dist/components/radio-list/radio-list.js.map +1 -0
- package/dist/components/radio-list/radio-list.styles.d.ts +3 -0
- package/dist/components/radio-list/radio-list.styles.d.ts.map +1 -0
- package/dist/components/radio-list/radio-list.styles.js +81 -0
- package/dist/components/radio-list/radio-list.styles.js.map +1 -0
- package/dist/components/resize-handle/resize-handle.d.ts +130 -0
- package/dist/components/resize-handle/resize-handle.d.ts.map +1 -0
- package/dist/components/resize-handle/resize-handle.js +343 -0
- package/dist/components/resize-handle/resize-handle.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +63 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +186 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/section/section.d.ts +62 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +88 -0
- package/dist/components/section/section.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +69 -0
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.js +206 -0
- package/dist/components/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.styles.d.ts +3 -0
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.styles.js +149 -0
- package/dist/components/segmented-control/segmented-control.styles.js.map +1 -0
- package/dist/components/selectable-card/selectable-card.d.ts +55 -0
- package/dist/components/selectable-card/selectable-card.d.ts.map +1 -0
- package/dist/components/selectable-card/selectable-card.js +122 -0
- package/dist/components/selectable-card/selectable-card.js.map +1 -0
- package/dist/components/selectable-card/selectable-card.styles.d.ts +3 -0
- package/dist/components/selectable-card/selectable-card.styles.d.ts.map +1 -0
- package/dist/components/selectable-card/selectable-card.styles.js +166 -0
- package/dist/components/selectable-card/selectable-card.styles.js.map +1 -0
- package/dist/components/shared/calendar-picker.d.ts +47 -0
- package/dist/components/shared/calendar-picker.d.ts.map +1 -0
- package/dist/components/shared/calendar-picker.js +154 -0
- package/dist/components/shared/calendar-picker.js.map +1 -0
- package/dist/components/shared/date-check.d.ts +18 -0
- package/dist/components/shared/date-check.d.ts.map +1 -0
- package/dist/components/shared/date-check.js +44 -0
- package/dist/components/shared/date-check.js.map +1 -0
- package/dist/components/shared/date-field.styles.d.ts +3 -0
- package/dist/components/shared/date-field.styles.d.ts.map +1 -0
- package/dist/components/shared/date-field.styles.js +158 -0
- package/dist/components/shared/date-field.styles.js.map +1 -0
- package/dist/components/shared/date-strings.d.ts +51 -0
- package/dist/components/shared/date-strings.d.ts.map +1 -0
- package/dist/components/shared/date-strings.js +44 -0
- package/dist/components/shared/date-strings.js.map +1 -0
- package/dist/components/shared/date-utils.d.ts +90 -0
- package/dist/components/shared/date-utils.d.ts.map +1 -0
- package/dist/components/shared/date-utils.js +305 -0
- package/dist/components/shared/date-utils.js.map +1 -0
- package/dist/components/shared/heading-tag.d.ts +10 -0
- package/dist/components/shared/heading-tag.d.ts.map +1 -0
- package/dist/components/shared/heading-tag.js +27 -0
- package/dist/components/shared/heading-tag.js.map +1 -0
- package/dist/components/shared/host-aria.d.ts +15 -0
- package/dist/components/shared/host-aria.d.ts.map +1 -0
- package/dist/components/shared/host-aria.js +48 -0
- package/dist/components/shared/host-aria.js.map +1 -0
- package/dist/components/shared/indic.d.ts +15 -0
- package/dist/components/shared/indic.d.ts.map +1 -0
- package/dist/components/shared/indic.js +33 -0
- package/dist/components/shared/indic.js.map +1 -0
- package/dist/components/shared/layout.d.ts +8 -0
- package/dist/components/shared/layout.d.ts.map +1 -0
- package/dist/components/shared/layout.js +36 -0
- package/dist/components/shared/layout.js.map +1 -0
- package/dist/components/shared/status-icons.d.ts +8 -0
- package/dist/components/shared/status-icons.d.ts.map +1 -0
- package/dist/components/shared/status-icons.js +24 -0
- package/dist/components/shared/status-icons.js.map +1 -0
- package/dist/components/shared/strings.d.ts +17 -0
- package/dist/components/shared/strings.d.ts.map +1 -0
- package/dist/components/shared/strings.js +21 -0
- package/dist/components/shared/strings.js.map +1 -0
- package/dist/components/side-nav/side-nav.d.ts +255 -0
- package/dist/components/side-nav/side-nav.d.ts.map +1 -0
- package/dist/components/side-nav/side-nav.js +335 -0
- package/dist/components/side-nav/side-nav.js.map +1 -0
- package/dist/components/side-nav/side-nav.styles.d.ts +11 -0
- package/dist/components/side-nav/side-nav.styles.d.ts.map +1 -0
- package/dist/components/side-nav/side-nav.styles.js +443 -0
- package/dist/components/side-nav/side-nav.styles.js.map +1 -0
- package/dist/components/stack/stack.d.ts +78 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stack/stack.js +108 -0
- package/dist/components/stack/stack.js.map +1 -0
- package/dist/components/status-dot/status-dot.d.ts +53 -0
- package/dist/components/status-dot/status-dot.d.ts.map +1 -0
- package/dist/components/status-dot/status-dot.js +126 -0
- package/dist/components/status-dot/status-dot.js.map +1 -0
- package/dist/components/stepper/stepper.d.ts +185 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/stepper/stepper.js +203 -0
- package/dist/components/stepper/stepper.js.map +1 -0
- package/dist/components/stepper/stepper.styles.d.ts +7 -0
- package/dist/components/stepper/stepper.styles.d.ts.map +1 -0
- package/dist/components/stepper/stepper.styles.js +220 -0
- package/dist/components/stepper/stepper.styles.js.map +1 -0
- package/dist/components/tab-menu/tab-menu.d.ts +61 -0
- package/dist/components/tab-menu/tab-menu.d.ts.map +1 -0
- package/dist/components/tab-menu/tab-menu.js +52 -0
- package/dist/components/tab-menu/tab-menu.js.map +1 -0
- package/dist/components/tab-menu/tab-menu.styles.d.ts +8 -0
- package/dist/components/tab-menu/tab-menu.styles.d.ts.map +1 -0
- package/dist/components/tab-menu/tab-menu.styles.js +127 -0
- package/dist/components/tab-menu/tab-menu.styles.js.map +1 -0
- package/dist/components/table/sort.d.ts +22 -0
- package/dist/components/table/sort.d.ts.map +1 -0
- package/dist/components/table/sort.js +36 -0
- package/dist/components/table/sort.js.map +1 -0
- package/dist/components/table/table.d.ts +92 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +359 -23
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/table/table.styles.d.ts.map +1 -1
- package/dist/components/table/table.styles.js +202 -0
- package/dist/components/table/table.styles.js.map +1 -1
- package/dist/components/text/text.d.ts +81 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text/text.js +59 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/text/text.styles.d.ts +6 -0
- package/dist/components/text/text.styles.d.ts.map +1 -0
- package/dist/components/text/text.styles.js +107 -0
- package/dist/components/text/text.styles.js.map +1 -0
- package/dist/components/thumbnail/thumbnail.d.ts +79 -0
- package/dist/components/thumbnail/thumbnail.d.ts.map +1 -0
- package/dist/components/thumbnail/thumbnail.js +186 -0
- package/dist/components/thumbnail/thumbnail.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +128 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-input.js +261 -0
- package/dist/components/time-input/time-input.js.map +1 -0
- package/dist/components/timer/timer.d.ts +113 -0
- package/dist/components/timer/timer.d.ts.map +1 -0
- package/dist/components/timer/timer.js +187 -0
- package/dist/components/timer/timer.js.map +1 -0
- package/dist/components/timer/timer.styles.d.ts +3 -0
- package/dist/components/timer/timer.styles.d.ts.map +1 -0
- package/dist/components/timer/timer.styles.js +34 -0
- package/dist/components/timer/timer.styles.js.map +1 -0
- package/dist/components/timestamp/timestamp.d.ts +112 -0
- package/dist/components/timestamp/timestamp.d.ts.map +1 -0
- package/dist/components/timestamp/timestamp.js +191 -0
- package/dist/components/timestamp/timestamp.js.map +1 -0
- package/dist/components/toggle-button-group/toggle-button-group.d.ts +123 -0
- package/dist/components/toggle-button-group/toggle-button-group.d.ts.map +1 -0
- package/dist/components/toggle-button-group/toggle-button-group.js +201 -0
- package/dist/components/toggle-button-group/toggle-button-group.js.map +1 -0
- package/dist/components/token/token.d.ts +82 -0
- package/dist/components/token/token.d.ts.map +1 -0
- package/dist/components/token/token.js +86 -0
- package/dist/components/token/token.js.map +1 -0
- package/dist/components/token/token.styles.d.ts +6 -0
- package/dist/components/token/token.styles.d.ts.map +1 -0
- package/dist/components/token/token.styles.js +117 -0
- package/dist/components/token/token.styles.js.map +1 -0
- package/dist/components/tokenizer/tokenizer.d.ts +252 -0
- package/dist/components/tokenizer/tokenizer.d.ts.map +1 -0
- package/dist/components/tokenizer/tokenizer.js +637 -0
- package/dist/components/tokenizer/tokenizer.js.map +1 -0
- package/dist/components/tokenizer/tokenizer.styles.d.ts +7 -0
- package/dist/components/tokenizer/tokenizer.styles.d.ts.map +1 -0
- package/dist/components/tokenizer/tokenizer.styles.js +122 -0
- package/dist/components/tokenizer/tokenizer.styles.js.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +57 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.js +145 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/top-nav/top-nav.d.ts +155 -0
- package/dist/components/top-nav/top-nav.d.ts.map +1 -0
- package/dist/components/top-nav/top-nav.js +236 -0
- package/dist/components/top-nav/top-nav.js.map +1 -0
- package/dist/components/top-nav/top-nav.styles.d.ts +9 -0
- package/dist/components/top-nav/top-nav.styles.d.ts.map +1 -0
- package/dist/components/top-nav/top-nav.styles.js +267 -0
- package/dist/components/top-nav/top-nav.styles.js.map +1 -0
- package/dist/components/tree-list/tree-list.d.ts +194 -0
- package/dist/components/tree-list/tree-list.d.ts.map +1 -0
- package/dist/components/tree-list/tree-list.js +501 -0
- package/dist/components/tree-list/tree-list.js.map +1 -0
- package/dist/components/tree-list/tree-list.styles.d.ts +8 -0
- package/dist/components/tree-list/tree-list.styles.d.ts.map +1 -0
- package/dist/components/tree-list/tree-list.styles.js +171 -0
- package/dist/components/tree-list/tree-list.styles.js.map +1 -0
- package/dist/components/typeahead/typeahead.d.ts +102 -0
- package/dist/components/typeahead/typeahead.d.ts.map +1 -0
- package/dist/components/typeahead/typeahead.js +69 -0
- package/dist/components/typeahead/typeahead.js.map +1 -0
- package/dist/context-menu.d.ts +3 -0
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.js +9 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/date-input.d.ts +2 -0
- package/dist/date-input.d.ts.map +1 -0
- package/dist/date-input.js +8 -0
- package/dist/date-input.js.map +1 -0
- package/dist/date-range-input.d.ts +2 -0
- package/dist/date-range-input.d.ts.map +1 -0
- package/dist/date-range-input.js +8 -0
- package/dist/date-range-input.js.map +1 -0
- package/dist/date-time-input.d.ts +2 -0
- package/dist/date-time-input.d.ts.map +1 -0
- package/dist/date-time-input.js +8 -0
- package/dist/date-time-input.js.map +1 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/empty-state.js +8 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/file-input.d.ts +2 -0
- package/dist/file-input.d.ts.map +1 -0
- package/dist/file-input.js +8 -0
- package/dist/file-input.js.map +1 -0
- package/dist/form-layout.d.ts +2 -0
- package/dist/form-layout.d.ts.map +1 -0
- package/dist/form-layout.js +8 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/grid-item.d.ts +2 -0
- package/dist/grid-item.d.ts.map +1 -0
- package/dist/grid-item.js +8 -0
- package/dist/grid-item.js.map +1 -0
- package/dist/grid.d.ts +3 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +11 -0
- package/dist/grid.js.map +1 -0
- package/dist/heading.d.ts +2 -0
- package/dist/heading.d.ts.map +1 -0
- package/dist/heading.js +8 -0
- package/dist/heading.js.map +1 -0
- package/dist/hover-card.d.ts +2 -0
- package/dist/hover-card.d.ts.map +1 -0
- package/dist/hover-card.js +8 -0
- package/dist/hover-card.js.map +1 -0
- package/dist/icon.d.ts +3 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +9 -0
- package/dist/icon.js.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -1
- package/dist/info-tip.d.ts +2 -0
- package/dist/info-tip.d.ts.map +1 -0
- package/dist/info-tip.js +8 -0
- package/dist/info-tip.js.map +1 -0
- package/dist/input-group.d.ts +2 -0
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input-group.js +8 -0
- package/dist/input-group.js.map +1 -0
- package/dist/internal/autoload.d.ts +27 -0
- package/dist/internal/autoload.d.ts.map +1 -0
- package/dist/internal/autoload.js +72 -0
- package/dist/internal/autoload.js.map +1 -0
- package/dist/kbd.d.ts +2 -0
- package/dist/kbd.d.ts.map +1 -0
- package/dist/kbd.js +8 -0
- package/dist/kbd.js.map +1 -0
- package/dist/lightbox.d.ts +2 -0
- package/dist/lightbox.d.ts.map +1 -0
- package/dist/lightbox.js +8 -0
- package/dist/lightbox.js.map +1 -0
- package/dist/list-item.d.ts +6 -0
- package/dist/list-item.d.ts.map +1 -0
- package/dist/list-item.js +6 -0
- package/dist/list-item.js.map +1 -0
- package/dist/list.d.ts +3 -0
- package/dist/list.d.ts.map +1 -0
- package/dist/list.js +11 -0
- package/dist/list.js.map +1 -0
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +8 -0
- package/dist/markdown.js.map +1 -0
- package/dist/metadata-item.d.ts +6 -0
- package/dist/metadata-item.d.ts.map +1 -0
- package/dist/metadata-item.js +6 -0
- package/dist/metadata-item.js.map +1 -0
- package/dist/metadata-list.d.ts +3 -0
- package/dist/metadata-list.d.ts.map +1 -0
- package/dist/metadata-list.js +11 -0
- package/dist/metadata-list.js.map +1 -0
- package/dist/mobile-nav.d.ts +2 -0
- package/dist/mobile-nav.d.ts.map +1 -0
- package/dist/mobile-nav.js +10 -0
- package/dist/mobile-nav.js.map +1 -0
- package/dist/more-menu.d.ts +3 -0
- package/dist/more-menu.d.ts.map +1 -0
- package/dist/more-menu.js +9 -0
- package/dist/more-menu.js.map +1 -0
- package/dist/multi-select.d.ts +7 -0
- package/dist/multi-select.d.ts.map +1 -0
- package/dist/multi-select.js +9 -0
- package/dist/multi-select.js.map +1 -0
- package/dist/number-input.d.ts +2 -0
- package/dist/number-input.d.ts.map +1 -0
- package/dist/number-input.js +8 -0
- package/dist/number-input.js.map +1 -0
- package/dist/outline.d.ts +2 -0
- package/dist/outline.d.ts.map +1 -0
- package/dist/outline.js +8 -0
- package/dist/outline.js.map +1 -0
- package/dist/overflow-list.d.ts +2 -0
- package/dist/overflow-list.d.ts.map +1 -0
- package/dist/overflow-list.js +8 -0
- package/dist/overflow-list.js.map +1 -0
- package/dist/radio-list.d.ts +3 -0
- package/dist/radio-list.d.ts.map +1 -0
- package/dist/radio-list.js +11 -0
- package/dist/radio-list.js.map +1 -0
- package/dist/resize-handle.d.ts +2 -0
- package/dist/resize-handle.d.ts.map +1 -0
- package/dist/resize-handle.js +8 -0
- package/dist/resize-handle.js.map +1 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/scroll-area.d.ts.map +1 -0
- package/dist/scroll-area.js +8 -0
- package/dist/scroll-area.js.map +1 -0
- package/dist/section.d.ts +2 -0
- package/dist/section.d.ts.map +1 -0
- package/dist/section.js +8 -0
- package/dist/section.js.map +1 -0
- package/dist/segmented-control-item.d.ts +6 -0
- package/dist/segmented-control-item.d.ts.map +1 -0
- package/dist/segmented-control-item.js +6 -0
- package/dist/segmented-control-item.js.map +1 -0
- package/dist/segmented-control.d.ts +2 -0
- package/dist/segmented-control.d.ts.map +1 -0
- package/dist/segmented-control.js +9 -0
- package/dist/segmented-control.js.map +1 -0
- package/dist/selectable-card.d.ts +2 -0
- package/dist/selectable-card.d.ts.map +1 -0
- package/dist/selectable-card.js +8 -0
- package/dist/selectable-card.js.map +1 -0
- package/dist/side-nav-heading.d.ts +6 -0
- package/dist/side-nav-heading.d.ts.map +1 -0
- package/dist/side-nav-heading.js +6 -0
- package/dist/side-nav-heading.js.map +1 -0
- package/dist/side-nav-item.d.ts +6 -0
- package/dist/side-nav-item.d.ts.map +1 -0
- package/dist/side-nav-item.js +6 -0
- package/dist/side-nav-item.js.map +1 -0
- package/dist/side-nav-section.d.ts +6 -0
- package/dist/side-nav-section.d.ts.map +1 -0
- package/dist/side-nav-section.js +6 -0
- package/dist/side-nav-section.js.map +1 -0
- package/dist/side-nav.d.ts +2 -0
- package/dist/side-nav.d.ts.map +1 -0
- package/dist/side-nav.js +12 -0
- package/dist/side-nav.js.map +1 -0
- package/dist/stack.d.ts +2 -0
- package/dist/stack.d.ts.map +1 -0
- package/dist/stack.js +8 -0
- package/dist/stack.js.map +1 -0
- package/dist/status-dot.d.ts +2 -0
- package/dist/status-dot.d.ts.map +1 -0
- package/dist/status-dot.js +8 -0
- package/dist/status-dot.js.map +1 -0
- package/dist/step.d.ts +6 -0
- package/dist/step.d.ts.map +1 -0
- package/dist/step.js +6 -0
- package/dist/step.js.map +1 -0
- package/dist/stepper.d.ts +2 -0
- package/dist/stepper.d.ts.map +1 -0
- package/dist/stepper.js +9 -0
- package/dist/stepper.js.map +1 -0
- package/dist/tab-menu.d.ts +2 -0
- package/dist/tab-menu.d.ts.map +1 -0
- package/dist/tab-menu.js +8 -0
- package/dist/tab-menu.js.map +1 -0
- package/dist/text.d.ts +2 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +8 -0
- package/dist/text.js.map +1 -0
- package/dist/thumbnail.d.ts +2 -0
- package/dist/thumbnail.d.ts.map +1 -0
- package/dist/thumbnail.js +8 -0
- package/dist/thumbnail.js.map +1 -0
- package/dist/time-input.d.ts +2 -0
- package/dist/time-input.d.ts.map +1 -0
- package/dist/time-input.js +8 -0
- package/dist/time-input.js.map +1 -0
- package/dist/timer.d.ts +2 -0
- package/dist/timer.d.ts.map +1 -0
- package/dist/timer.js +8 -0
- package/dist/timer.js.map +1 -0
- package/dist/timestamp.d.ts +2 -0
- package/dist/timestamp.d.ts.map +1 -0
- package/dist/timestamp.js +8 -0
- package/dist/timestamp.js.map +1 -0
- package/dist/toggle-button-group.d.ts +2 -0
- package/dist/toggle-button-group.d.ts.map +1 -0
- package/dist/toggle-button-group.js +8 -0
- package/dist/toggle-button-group.js.map +1 -0
- package/dist/token.d.ts +2 -0
- package/dist/token.d.ts.map +1 -0
- package/dist/token.js +8 -0
- package/dist/token.js.map +1 -0
- package/dist/tokenizer.d.ts +7 -0
- package/dist/tokenizer.d.ts.map +1 -0
- package/dist/tokenizer.js +9 -0
- package/dist/tokenizer.js.map +1 -0
- package/dist/toolbar.d.ts +2 -0
- package/dist/toolbar.d.ts.map +1 -0
- package/dist/toolbar.js +8 -0
- package/dist/toolbar.js.map +1 -0
- package/dist/top-nav-item.d.ts +6 -0
- package/dist/top-nav-item.d.ts.map +1 -0
- package/dist/top-nav-item.js +6 -0
- package/dist/top-nav-item.js.map +1 -0
- package/dist/top-nav-menu.d.ts +6 -0
- package/dist/top-nav-menu.d.ts.map +1 -0
- package/dist/top-nav-menu.js +6 -0
- package/dist/top-nav-menu.js.map +1 -0
- package/dist/top-nav.d.ts +2 -0
- package/dist/top-nav.d.ts.map +1 -0
- package/dist/top-nav.js +10 -0
- package/dist/top-nav.js.map +1 -0
- package/dist/tree-item.d.ts +6 -0
- package/dist/tree-item.d.ts.map +1 -0
- package/dist/tree-item.js +6 -0
- package/dist/tree-item.js.map +1 -0
- package/dist/tree-list.d.ts +2 -0
- package/dist/tree-list.d.ts.map +1 -0
- package/dist/tree-list.js +9 -0
- package/dist/tree-list.js.map +1 -0
- package/dist/typeahead.d.ts +2 -0
- package/dist/typeahead.d.ts.map +1 -0
- package/dist/typeahead.js +8 -0
- package/dist/typeahead.js.map +1 -0
- package/package.json +402 -4
- package/src/alert-dialog.ts +9 -0
- package/src/all.ts +70 -0
- package/src/app-shell.ts +9 -0
- package/src/aspect-ratio.ts +9 -0
- package/src/banner.ts +9 -0
- package/src/blockquote.ts +9 -0
- package/src/bottom-sheet.ts +9 -0
- package/src/button-group.ts +9 -0
- package/src/calendar.ts +9 -0
- package/src/carousel.ts +9 -0
- package/src/center.ts +9 -0
- package/src/chat-composer.ts +9 -0
- package/src/chat-layout.ts +9 -0
- package/src/chat-message.ts +12 -0
- package/src/checkbox-list.ts +12 -0
- package/src/citation.ts +9 -0
- package/src/clickable-card.ts +9 -0
- package/src/code-block.ts +9 -0
- package/src/code.ts +9 -0
- package/src/collapsible.ts +9 -0
- package/src/command-palette.ts +9 -0
- package/src/components/alert-dialog/alert-dialog.ts +108 -0
- package/src/components/app-shell/app-shell.ts +328 -0
- package/src/components/aspect-ratio/aspect-ratio.ts +121 -0
- package/src/components/banner/banner.ts +351 -0
- package/src/components/blockquote/blockquote.ts +108 -0
- package/src/components/bottom-sheet/bottom-sheet.styles.ts +83 -0
- package/src/components/bottom-sheet/bottom-sheet.ts +328 -0
- package/src/components/button-group/button-group.ts +158 -0
- package/src/components/calendar/calendar.styles.ts +219 -0
- package/src/components/calendar/calendar.ts +559 -0
- package/src/components/card/card.ts +23 -15
- package/src/components/carousel/carousel.styles.ts +171 -0
- package/src/components/carousel/carousel.ts +441 -0
- package/src/components/center/center.ts +93 -0
- package/src/components/chat/chat-composer.styles.ts +207 -0
- package/src/components/chat/chat-composer.ts +346 -0
- package/src/components/chat/chat-layout.styles.ts +114 -0
- package/src/components/chat/chat-layout.ts +246 -0
- package/src/components/chat/chat-message.styles.ts +249 -0
- package/src/components/chat/chat-message.ts +381 -0
- package/src/components/checkbox-list/checkbox-list.styles.ts +104 -0
- package/src/components/checkbox-list/checkbox-list.ts +287 -0
- package/src/components/citation/citation.ts +222 -0
- package/src/components/clickable-card/clickable-card.ts +103 -0
- package/src/components/code/code.ts +60 -0
- package/src/components/code-block/code-block.styles.ts +194 -0
- package/src/components/code-block/code-block.ts +348 -0
- package/src/components/collapsible/collapsible.styles.ts +25 -0
- package/src/components/collapsible/collapsible.ts +119 -0
- package/src/components/command-palette/command-palette.styles.ts +173 -0
- package/src/components/command-palette/command-palette.ts +486 -0
- package/src/components/context-menu/context-menu.styles.ts +18 -0
- package/src/components/context-menu/context-menu.ts +172 -0
- package/src/components/date-input/date-input.ts +375 -0
- package/src/components/date-range-input/date-range-input.ts +488 -0
- package/src/components/date-time-input/date-time-input.ts +387 -0
- package/src/components/dialog/dialog.ts +38 -25
- package/src/components/empty-state/empty-state.ts +196 -0
- package/src/components/file-input/file-input.styles.ts +195 -0
- package/src/components/file-input/file-input.ts +418 -0
- package/src/components/form-layout/form-layout.styles.ts +71 -0
- package/src/components/form-layout/form-layout.ts +53 -0
- package/src/components/grid/grid-item.ts +65 -0
- package/src/components/grid/grid.ts +138 -0
- package/src/components/heading/heading.styles.ts +64 -0
- package/src/components/heading/heading.ts +82 -0
- package/src/components/hover-card/hover-card.ts +361 -0
- package/src/components/icon/icon-registry.ts +168 -0
- package/src/components/icon/icon.ts +180 -0
- package/src/components/info-tip/info-tip.ts +217 -0
- package/src/components/input-group/input-group.styles.ts +69 -0
- package/src/components/input-group/input-group.ts +95 -0
- package/src/components/kbd/kbd.ts +71 -0
- package/src/components/lightbox/lightbox.styles.ts +188 -0
- package/src/components/lightbox/lightbox.ts +350 -0
- package/src/components/list/list-item.ts +163 -0
- package/src/components/list/list.ts +106 -0
- package/src/components/markdown/markdown.styles.ts +178 -0
- package/src/components/markdown/markdown.ts +170 -0
- package/src/components/markdown/parser.ts +549 -0
- package/src/components/markdown/render.ts +199 -0
- package/src/components/menu/menu.ts +88 -18
- package/src/components/metadata-list/metadata-item.ts +55 -0
- package/src/components/metadata-list/metadata-list.ts +186 -0
- package/src/components/mobile-nav/mobile-nav.styles.ts +57 -0
- package/src/components/mobile-nav/mobile-nav.ts +190 -0
- package/src/components/more-menu/more-menu.styles.ts +50 -0
- package/src/components/more-menu/more-menu.ts +75 -0
- package/src/components/multi-select/multi-select.styles.ts +27 -0
- package/src/components/multi-select/multi-select.ts +702 -0
- package/src/components/number-input/number-format.ts +129 -0
- package/src/components/number-input/number-input.styles.ts +108 -0
- package/src/components/number-input/number-input.ts +583 -0
- package/src/components/outline/outline.styles.ts +92 -0
- package/src/components/outline/outline.ts +356 -0
- package/src/components/overflow-list/overflow-list.styles.ts +112 -0
- package/src/components/overflow-list/overflow-list.ts +243 -0
- package/src/components/pagination/pagination.ts +2 -2
- package/src/components/radio-group/radio-group.ts +11 -3
- package/src/components/radio-group/radio.ts +18 -7
- package/src/components/radio-list/radio-list.styles.ts +81 -0
- package/src/components/radio-list/radio-list.ts +38 -0
- package/src/components/resize-handle/resize-handle.ts +405 -0
- package/src/components/scroll-area/scroll-area.ts +214 -0
- package/src/components/section/section.ts +115 -0
- package/src/components/segmented-control/segmented-control.styles.ts +149 -0
- package/src/components/segmented-control/segmented-control.ts +225 -0
- package/src/components/selectable-card/selectable-card.styles.ts +166 -0
- package/src/components/selectable-card/selectable-card.ts +144 -0
- package/src/components/shared/calendar-picker.ts +192 -0
- package/src/components/shared/date-check.ts +61 -0
- package/src/components/shared/date-field.styles.ts +158 -0
- package/src/components/shared/date-strings.ts +90 -0
- package/src/components/shared/date-utils.ts +376 -0
- package/src/components/shared/heading-tag.ts +35 -0
- package/src/components/shared/host-aria.ts +59 -0
- package/src/components/shared/indic.ts +35 -0
- package/src/components/shared/layout.ts +45 -0
- package/src/components/shared/status-icons.ts +29 -0
- package/src/components/shared/strings.ts +35 -0
- package/src/components/side-nav/side-nav.styles.ts +446 -0
- package/src/components/side-nav/side-nav.ts +472 -0
- package/src/components/stack/stack.ts +152 -0
- package/src/components/status-dot/status-dot.ts +158 -0
- package/src/components/stepper/stepper.styles.ts +221 -0
- package/src/components/stepper/stepper.ts +300 -0
- package/src/components/tab-menu/tab-menu.styles.ts +127 -0
- package/src/components/tab-menu/tab-menu.ts +75 -0
- package/src/components/table/sort.ts +45 -0
- package/src/components/table/table.styles.ts +202 -0
- package/src/components/table/table.ts +405 -23
- package/src/components/text/text.styles.ts +107 -0
- package/src/components/text/text.ts +103 -0
- package/src/components/thumbnail/thumbnail.ts +234 -0
- package/src/components/time-input/time-input.ts +347 -0
- package/src/components/timer/timer.styles.ts +34 -0
- package/src/components/timer/timer.ts +255 -0
- package/src/components/timestamp/timestamp.ts +262 -0
- package/src/components/toggle-button-group/toggle-button-group.ts +263 -0
- package/src/components/token/token.styles.ts +117 -0
- package/src/components/token/token.ts +131 -0
- package/src/components/tokenizer/tokenizer.styles.ts +122 -0
- package/src/components/tokenizer/tokenizer.ts +817 -0
- package/src/components/toolbar/toolbar.ts +176 -0
- package/src/components/top-nav/top-nav.styles.ts +271 -0
- package/src/components/top-nav/top-nav.ts +296 -0
- package/src/components/tree-list/tree-list.styles.ts +172 -0
- package/src/components/tree-list/tree-list.ts +580 -0
- package/src/components/typeahead/typeahead.ts +95 -0
- package/src/context-menu.ts +10 -0
- package/src/date-input.ts +9 -0
- package/src/date-range-input.ts +9 -0
- package/src/date-time-input.ts +9 -0
- package/src/empty-state.ts +9 -0
- package/src/file-input.ts +9 -0
- package/src/form-layout.ts +9 -0
- package/src/grid-item.ts +9 -0
- package/src/grid.ts +12 -0
- package/src/heading.ts +9 -0
- package/src/hover-card.ts +9 -0
- package/src/icon.ts +10 -0
- package/src/index.ts +77 -0
- package/src/info-tip.ts +9 -0
- package/src/input-group.ts +9 -0
- package/src/internal/autoload.ts +93 -0
- package/src/kbd.ts +9 -0
- package/src/lightbox.ts +9 -0
- package/src/list-item.ts +5 -0
- package/src/list.ts +12 -0
- package/src/markdown.ts +9 -0
- package/src/metadata-item.ts +5 -0
- package/src/metadata-list.ts +12 -0
- package/src/mobile-nav.ts +11 -0
- package/src/more-menu.ts +10 -0
- package/src/multi-select.ts +10 -0
- package/src/number-input.ts +9 -0
- package/src/outline.ts +9 -0
- package/src/overflow-list.ts +9 -0
- package/src/radio-list.ts +12 -0
- package/src/resize-handle.ts +9 -0
- package/src/scroll-area.ts +9 -0
- package/src/section.ts +9 -0
- package/src/segmented-control-item.ts +5 -0
- package/src/segmented-control.ts +13 -0
- package/src/selectable-card.ts +9 -0
- package/src/side-nav-heading.ts +5 -0
- package/src/side-nav-item.ts +5 -0
- package/src/side-nav-section.ts +5 -0
- package/src/side-nav.ts +18 -0
- package/src/stack.ts +9 -0
- package/src/status-dot.ts +9 -0
- package/src/step.ts +5 -0
- package/src/stepper.ts +10 -0
- package/src/tab-menu.ts +9 -0
- package/src/text.ts +9 -0
- package/src/thumbnail.ts +9 -0
- package/src/time-input.ts +9 -0
- package/src/timer.ts +9 -0
- package/src/timestamp.ts +9 -0
- package/src/toggle-button-group.ts +9 -0
- package/src/token.ts +9 -0
- package/src/tokenizer.ts +10 -0
- package/src/toolbar.ts +9 -0
- package/src/top-nav-item.ts +5 -0
- package/src/top-nav-menu.ts +5 -0
- package/src/top-nav.ts +11 -0
- package/src/tree-item.ts +5 -0
- package/src/tree-list.ts +10 -0
- package/src/typeahead.ts +9 -0
|
@@ -4,8 +4,11 @@ import { announce } from '../../controllers/live-announcer.js';
|
|
|
4
4
|
import { LocaleDirController } from '../../controllers/locale-dir.js';
|
|
5
5
|
import { isServer } from '../../utils/ssr-safe.js';
|
|
6
6
|
import { adoptLightStyles } from '../shared/light-styles.js';
|
|
7
|
+
import { compareValues } from './sort.js';
|
|
7
8
|
import { tableLightStyles, tableStyles } from './table.styles.js';
|
|
8
9
|
|
|
10
|
+
export { compareValues, sortData } from './sort.js';
|
|
11
|
+
|
|
9
12
|
export type TableDensity = 'comfortable' | 'compact';
|
|
10
13
|
export type TableSortDirection = 'ascending' | 'descending';
|
|
11
14
|
|
|
@@ -17,6 +20,35 @@ export interface TableSortDetail {
|
|
|
17
20
|
column: number;
|
|
18
21
|
}
|
|
19
22
|
|
|
23
|
+
export interface TableSelectionDetail {
|
|
24
|
+
/** Number of selected rows. */
|
|
25
|
+
count: number;
|
|
26
|
+
/** `value` of each checked row checkbox, in document order. */
|
|
27
|
+
values: string[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface TableColumnResizeDetail {
|
|
31
|
+
/** Zero-based column index. */
|
|
32
|
+
column: number;
|
|
33
|
+
/** New width in CSS pixels. */
|
|
34
|
+
width: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface TableExpandDetail {
|
|
38
|
+
/** `id` of the row whose disclosure button was activated. */
|
|
39
|
+
id: string;
|
|
40
|
+
expanded: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const SELECT_ROW = 'input[data-select-row]';
|
|
44
|
+
const SELECT_ALL = 'input[data-select-all]';
|
|
45
|
+
const RESIZER = '[data-und-resizer]';
|
|
46
|
+
/** Pixels per arrow key press on a resize handle (Shift multiplies it). */
|
|
47
|
+
const RESIZE_STEP = 16;
|
|
48
|
+
const RESIZE_STEP_LARGE = 5;
|
|
49
|
+
const DEFAULT_MIN_WIDTH = 48;
|
|
50
|
+
const DEFAULT_MAX_WIDTH = 800;
|
|
51
|
+
|
|
20
52
|
/** Column position of `cell` in its row, counting column spans. */
|
|
21
53
|
function columnOf(cell: HTMLTableCellElement): number {
|
|
22
54
|
let column = 0;
|
|
@@ -53,14 +85,36 @@ const sortValue = (cell: HTMLTableCellElement | undefined): string =>
|
|
|
53
85
|
* the body rows by each cell's `data-sort-value` or text (numbers numerically,
|
|
54
86
|
* text with `Intl.Collator`). The change is announced in a polite live region.
|
|
55
87
|
*
|
|
56
|
-
*
|
|
88
|
+
* Row selection: put `<input type="checkbox" data-select-row value="id">` in
|
|
89
|
+
* each row and `<input type="checkbox" data-select-all>` in the header. The
|
|
90
|
+
* element keeps the header checkbox checked or indeterminate, marks selected
|
|
91
|
+
* rows with `data-selected`, shows the `selection` slot (bulk actions) while
|
|
92
|
+
* rows are selected and announces "N selected" in a live region.
|
|
93
|
+
*
|
|
94
|
+
* Expandable and tree rows: a `<button data-expand aria-expanded="false">` in
|
|
95
|
+
* a row toggles the rows whose `data-parent` is that row's `id` (detail rows
|
|
96
|
+
* and child rows, to any depth). Child rows carry `data-level` (2, 3, ...);
|
|
97
|
+
* mark the cell to indent with `data-tree-cell`. This stays a plain table,
|
|
98
|
+
* not a treegrid: `aria-level` is not allowed on rows of a table, so the level
|
|
99
|
+
* is conveyed by indentation and by each button's `aria-expanded` state.
|
|
100
|
+
*
|
|
101
|
+
* Column resize (`resizable`): each header cell gets a focusable handle with
|
|
102
|
+
* `role="separator"`; arrow keys, Home and End resize it, and so does
|
|
103
|
+
* dragging.
|
|
104
|
+
*
|
|
105
|
+
* @summary A styled native table with responsive overflow, sorting, selection, resizing and expandable rows.
|
|
57
106
|
* @tag und-table
|
|
58
107
|
*
|
|
59
108
|
* @slot - A native `<table>` (with a `<caption>` or the `label` attribute).
|
|
109
|
+
* @slot selection - Bulk actions, shown above the table while rows are selected.
|
|
60
110
|
*
|
|
61
111
|
* @csspart scroll - The scroll container (`role="region"` when named).
|
|
112
|
+
* @csspart selection - The bar that holds the selected count and the `selection` slot.
|
|
62
113
|
*
|
|
63
114
|
* @fires {CustomEvent<TableSortDetail>} und-sort - A sortable header was activated. Cancel it to sort the data yourself; `aria-sort` and the announcement still update.
|
|
115
|
+
* @fires {CustomEvent<TableSelectionDetail>} und-selection-change - The user changed the row selection.
|
|
116
|
+
* @fires {CustomEvent<TableColumnResizeDetail>} und-column-resize - The user resized a column.
|
|
117
|
+
* @fires {CustomEvent<TableExpandDetail>} und-expand-change - The user expanded or collapsed a row.
|
|
64
118
|
*
|
|
65
119
|
* @cssprop [--und-table-max-height] - Maximum block size of the scroll container (use with `sticky-header`).
|
|
66
120
|
* @cssprop [--und-table-font-size] - Font size of the table.
|
|
@@ -70,6 +124,10 @@ const sortValue = (cell: HTMLTableCellElement | undefined): string =>
|
|
|
70
124
|
* @cssprop [--und-table-cell-padding-inline-compact] - Inline padding of cells (compact).
|
|
71
125
|
* @cssprop [--und-table-header-bg] - Header row background.
|
|
72
126
|
* @cssprop [--und-table-stripe-bg] - Background of even body rows (striped).
|
|
127
|
+
* @cssprop [--und-table-selected-bg] - Background of selected rows.
|
|
128
|
+
* @cssprop [--und-table-toolbar-bg] - Background of the selection bar.
|
|
129
|
+
* @cssprop [--und-table-indent] - Indent per tree level.
|
|
130
|
+
* @cssprop [--und-table-resizer-color] - Color of the column resize handle.
|
|
73
131
|
*/
|
|
74
132
|
export class UndTable extends UndElement {
|
|
75
133
|
static override tagName = 'und-table';
|
|
@@ -80,6 +138,10 @@ export class UndTable extends UndElement {
|
|
|
80
138
|
density: { reflect: true },
|
|
81
139
|
striped: { type: Boolean, reflect: true },
|
|
82
140
|
stickyHeader: { type: Boolean, reflect: true, attribute: 'sticky-header' },
|
|
141
|
+
stickyFirstColumn: { type: Boolean, reflect: true, attribute: 'sticky-first-column' },
|
|
142
|
+
resizable: { type: Boolean, reflect: true },
|
|
143
|
+
selectionMessage: { attribute: 'selection-message' },
|
|
144
|
+
resizeLabel: { attribute: 'resize-label' },
|
|
83
145
|
sortMessage: { attribute: 'sort-message' },
|
|
84
146
|
ascendingLabel: { attribute: 'ascending-label' },
|
|
85
147
|
descendingLabel: { attribute: 'descending-label' },
|
|
@@ -110,6 +172,31 @@ export class UndTable extends UndElement {
|
|
|
110
172
|
*/
|
|
111
173
|
declare stickyHeader: boolean;
|
|
112
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Keeps the first column visible while the region scrolls horizontally.
|
|
177
|
+
* @attr sticky-first-column
|
|
178
|
+
*/
|
|
179
|
+
declare stickyFirstColumn: boolean;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Adds a keyboard- and pointer-operable resize handle to each header cell
|
|
183
|
+
* (cells with `data-resize="false"` or a column span are skipped).
|
|
184
|
+
* @attr resizable
|
|
185
|
+
*/
|
|
186
|
+
declare resizable: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Text of the selected-count status; `{count}` is replaced.
|
|
190
|
+
* @attr selection-message
|
|
191
|
+
*/
|
|
192
|
+
declare selectionMessage: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Accessible name of a resize handle; `{column}` is replaced by the header text.
|
|
196
|
+
* @attr resize-label
|
|
197
|
+
*/
|
|
198
|
+
declare resizeLabel: string;
|
|
199
|
+
|
|
113
200
|
/**
|
|
114
201
|
* Announcement after sorting; `{column}` and `{direction}` are replaced.
|
|
115
202
|
* @attr sort-message
|
|
@@ -130,6 +217,12 @@ export class UndTable extends UndElement {
|
|
|
130
217
|
|
|
131
218
|
readonly #locale = new LocaleDirController(this);
|
|
132
219
|
#scrollable = false;
|
|
220
|
+
#selected: string[] = [];
|
|
221
|
+
#count = 0;
|
|
222
|
+
#fixed = false;
|
|
223
|
+
/** Widths set by resizing, in CSS pixels. */
|
|
224
|
+
#widths = new Map<HTMLTableCellElement, number>();
|
|
225
|
+
#drag: { th: HTMLTableCellElement; start: number; width: number } | undefined;
|
|
133
226
|
#mutations: MutationObserver | undefined;
|
|
134
227
|
#resize: ResizeObserver | undefined;
|
|
135
228
|
|
|
@@ -138,6 +231,10 @@ export class UndTable extends UndElement {
|
|
|
138
231
|
this.density = 'comfortable';
|
|
139
232
|
this.striped = false;
|
|
140
233
|
this.stickyHeader = false;
|
|
234
|
+
this.stickyFirstColumn = false;
|
|
235
|
+
this.resizable = false;
|
|
236
|
+
this.selectionMessage = '{count} selected';
|
|
237
|
+
this.resizeLabel = 'Resize {column} column';
|
|
141
238
|
this.sortMessage = 'Sorted by {column}, {direction}';
|
|
142
239
|
this.ascendingLabel = 'ascending';
|
|
143
240
|
this.descendingLabel = 'descending';
|
|
@@ -153,7 +250,14 @@ export class UndTable extends UndElement {
|
|
|
153
250
|
if (isServer) return;
|
|
154
251
|
adoptLightStyles(this, tableLightStyles);
|
|
155
252
|
this.addEventListener('click', this.#onClick);
|
|
253
|
+
this.addEventListener('change', this.#onChange);
|
|
254
|
+
this.addEventListener('keydown', this.#onKeydown);
|
|
255
|
+
this.addEventListener('pointerdown', this.#onPointerDown);
|
|
256
|
+
this.addEventListener('pointermove', this.#onPointerMove);
|
|
257
|
+
this.addEventListener('pointerup', this.#onPointerEnd);
|
|
258
|
+
this.addEventListener('pointercancel', this.#onPointerEnd);
|
|
156
259
|
this.#mutations ??= new MutationObserver(() => {
|
|
260
|
+
this.#syncFeatures();
|
|
157
261
|
this.requestUpdate();
|
|
158
262
|
this.#observeTable();
|
|
159
263
|
this.#measure();
|
|
@@ -165,6 +269,12 @@ export class UndTable extends UndElement {
|
|
|
165
269
|
override disconnectedCallback(): void {
|
|
166
270
|
super.disconnectedCallback();
|
|
167
271
|
this.removeEventListener('click', this.#onClick);
|
|
272
|
+
this.removeEventListener('change', this.#onChange);
|
|
273
|
+
this.removeEventListener('keydown', this.#onKeydown);
|
|
274
|
+
this.removeEventListener('pointerdown', this.#onPointerDown);
|
|
275
|
+
this.removeEventListener('pointermove', this.#onPointerMove);
|
|
276
|
+
this.removeEventListener('pointerup', this.#onPointerEnd);
|
|
277
|
+
this.removeEventListener('pointercancel', this.#onPointerEnd);
|
|
168
278
|
this.#mutations?.disconnect();
|
|
169
279
|
this.#resize?.disconnect();
|
|
170
280
|
}
|
|
@@ -173,6 +283,262 @@ export class UndTable extends UndElement {
|
|
|
173
283
|
this.#observeTable();
|
|
174
284
|
}
|
|
175
285
|
|
|
286
|
+
protected override updated(): void {
|
|
287
|
+
this.#syncFeatures();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** Re-applies selection, expanded rows and resize handles to the table. */
|
|
291
|
+
#syncFeatures(): void {
|
|
292
|
+
if (isServer || !this.table) return;
|
|
293
|
+
this.#syncRows();
|
|
294
|
+
this.#syncSelection();
|
|
295
|
+
this.#syncHandles();
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** The selected row values, in document order. */
|
|
299
|
+
get selectedValues(): string[] {
|
|
300
|
+
return [...this.#selected];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** Unchecks every row and the select-all checkbox. */
|
|
304
|
+
clearSelection(): void {
|
|
305
|
+
for (const box of this.querySelectorAll<HTMLInputElement>(`${SELECT_ROW}, ${SELECT_ALL}`)) {
|
|
306
|
+
box.checked = false;
|
|
307
|
+
}
|
|
308
|
+
this.#syncSelection();
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
#syncSelection(): void {
|
|
312
|
+
const boxes = [...this.querySelectorAll<HTMLInputElement>(SELECT_ROW)];
|
|
313
|
+
const checked = boxes.filter((box) => box.checked);
|
|
314
|
+
const enabled = boxes.filter((box) => !box.disabled);
|
|
315
|
+
for (const box of boxes) box.closest('tr')?.toggleAttribute('data-selected', box.checked);
|
|
316
|
+
for (const all of this.querySelectorAll<HTMLInputElement>(SELECT_ALL)) {
|
|
317
|
+
const full = enabled.length > 0 && enabled.every((box) => box.checked);
|
|
318
|
+
all.checked = full;
|
|
319
|
+
all.indeterminate = checked.length > 0 && !full;
|
|
320
|
+
}
|
|
321
|
+
const values = checked.map((box) => box.value);
|
|
322
|
+
const changed = values.join('\u0000') !== this.#selected.join('\u0000');
|
|
323
|
+
this.#selected = values;
|
|
324
|
+
if (checked.length !== this.#count || changed) {
|
|
325
|
+
this.#count = checked.length;
|
|
326
|
+
this.requestUpdate();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
#onChange = (event: Event): void => {
|
|
331
|
+
const target = event.target;
|
|
332
|
+
if (!(target instanceof HTMLInputElement)) return;
|
|
333
|
+
if (target.matches(SELECT_ALL)) {
|
|
334
|
+
for (const box of this.querySelectorAll<HTMLInputElement>(SELECT_ROW)) {
|
|
335
|
+
if (!box.disabled) box.checked = target.checked;
|
|
336
|
+
}
|
|
337
|
+
} else if (!target.matches(SELECT_ROW)) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
this.#syncSelection();
|
|
341
|
+
this.emit<TableSelectionDetail>('und-selection-change', {
|
|
342
|
+
count: this.#count,
|
|
343
|
+
values: this.selectedValues,
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/** Shows a row only while every ancestor row (by `data-parent`) is expanded. */
|
|
348
|
+
#syncRows(): void {
|
|
349
|
+
const rows = [
|
|
350
|
+
...(this.table?.querySelectorAll<HTMLTableRowElement>(':scope > tbody > tr') ?? []),
|
|
351
|
+
];
|
|
352
|
+
if (!rows.some((row) => row.hasAttribute('data-parent'))) return;
|
|
353
|
+
const byId = new Map(rows.filter((row) => row.id).map((row) => [row.id, row]));
|
|
354
|
+
const open = (row: HTMLTableRowElement, depth = 0): boolean => {
|
|
355
|
+
const toggle = row.querySelector('button[data-expand]');
|
|
356
|
+
if (toggle && toggle.getAttribute('aria-expanded') !== 'true') return false;
|
|
357
|
+
const parent = byId.get(row.getAttribute('data-parent') ?? '');
|
|
358
|
+
return !parent || depth > rows.length || open(parent, depth + 1);
|
|
359
|
+
};
|
|
360
|
+
for (const row of rows) {
|
|
361
|
+
const parent = byId.get(row.getAttribute('data-parent') ?? '');
|
|
362
|
+
if (parent) {
|
|
363
|
+
const hidden = !open(parent);
|
|
364
|
+
if (row.hidden !== hidden) row.hidden = hidden;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
#toggleRow(button: HTMLElement): void {
|
|
370
|
+
const expanded = button.getAttribute('aria-expanded') !== 'true';
|
|
371
|
+
button.setAttribute('aria-expanded', String(expanded));
|
|
372
|
+
this.#syncRows();
|
|
373
|
+
this.emit<TableExpandDetail>('und-expand-change', {
|
|
374
|
+
id: button.closest('tr')?.id ?? '',
|
|
375
|
+
expanded,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/** Header cells that can be resized: one-column cells of the last header row. */
|
|
380
|
+
#resizableCells(): HTMLTableCellElement[] {
|
|
381
|
+
const head = this.table?.tHead;
|
|
382
|
+
const row = head?.rows.item(head.rows.length - 1);
|
|
383
|
+
return [...(row?.cells ?? [])].filter(
|
|
384
|
+
(cell) => cell.localName === 'th' && cell.colSpan === 1 && cell.dataset.resize !== 'false',
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
#syncHandles(): void {
|
|
389
|
+
const cells = this.resizable ? this.#resizableCells() : [];
|
|
390
|
+
for (const handle of this.querySelectorAll(RESIZER)) {
|
|
391
|
+
if (!cells.includes(handle.parentElement as HTMLTableCellElement)) handle.remove();
|
|
392
|
+
}
|
|
393
|
+
for (const th of cells) {
|
|
394
|
+
let handle = th.querySelector<HTMLElement>(`:scope > ${RESIZER}`);
|
|
395
|
+
if (!handle) {
|
|
396
|
+
handle = document.createElement('span');
|
|
397
|
+
handle.setAttribute('data-und-resizer', '');
|
|
398
|
+
handle.setAttribute('role', 'separator');
|
|
399
|
+
handle.setAttribute('aria-orientation', 'vertical');
|
|
400
|
+
handle.tabIndex = 0;
|
|
401
|
+
th.append(handle);
|
|
402
|
+
}
|
|
403
|
+
const label = this.resizeLabel.replace('{column}', this.#headerText(th));
|
|
404
|
+
if (handle.getAttribute('aria-label') !== label) handle.setAttribute('aria-label', label);
|
|
405
|
+
this.#syncHandleValue(th, handle, th.getBoundingClientRect().width);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
#headerText(th: HTMLTableCellElement): string {
|
|
410
|
+
let text = '';
|
|
411
|
+
for (const node of th.childNodes) {
|
|
412
|
+
if (!(node instanceof HTMLElement && node.matches(RESIZER))) text += node.textContent ?? '';
|
|
413
|
+
}
|
|
414
|
+
return text.trim();
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
#limits(th: HTMLTableCellElement): [number, number] {
|
|
418
|
+
const min = Number(th.dataset.minWidth);
|
|
419
|
+
const max = Number(th.dataset.maxWidth);
|
|
420
|
+
return [min > 0 ? min : DEFAULT_MIN_WIDTH, max > 0 ? max : DEFAULT_MAX_WIDTH];
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
#syncHandleValue(th: HTMLTableCellElement, handle: HTMLElement, width: number): void {
|
|
424
|
+
const [min, max] = this.#limits(th);
|
|
425
|
+
const values = {
|
|
426
|
+
'aria-valuemin': min,
|
|
427
|
+
'aria-valuemax': max,
|
|
428
|
+
'aria-valuenow': Math.round(width),
|
|
429
|
+
};
|
|
430
|
+
for (const [name, value] of Object.entries(values)) {
|
|
431
|
+
if (handle.getAttribute(name) !== String(value)) handle.setAttribute(name, String(value));
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/** Freezes every column at its current width so one column can change alone. */
|
|
436
|
+
#fixLayout(): void {
|
|
437
|
+
const table = this.table;
|
|
438
|
+
if (!table || this.#fixed) return;
|
|
439
|
+
this.#fixed = true;
|
|
440
|
+
for (const th of this.#resizableCells()) {
|
|
441
|
+
const width = th.getBoundingClientRect().width;
|
|
442
|
+
th.style.inlineSize = `${width}px`;
|
|
443
|
+
this.#widths.set(th, width);
|
|
444
|
+
}
|
|
445
|
+
table.style.tableLayout = 'fixed';
|
|
446
|
+
this.#fitTable();
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/** The table is exactly as wide as its columns, so no column gets the slack. */
|
|
450
|
+
#fitTable(): void {
|
|
451
|
+
let total = 0;
|
|
452
|
+
for (const width of this.#widths.values()) total += width;
|
|
453
|
+
if (this.table) this.table.style.inlineSize = `${total}px`;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Sets the width of a column (zero-based index among the resizable header
|
|
458
|
+
* cells), clamped to its `data-min-width` / `data-max-width`. Use it to
|
|
459
|
+
* offer a resize control that does not need dragging.
|
|
460
|
+
*/
|
|
461
|
+
resizeColumn(column: number, width: number, notify = false): void {
|
|
462
|
+
const th = this.#resizableCells()[column];
|
|
463
|
+
if (!th) return;
|
|
464
|
+
this.#fixLayout();
|
|
465
|
+
const [min, max] = this.#limits(th);
|
|
466
|
+
const next = Math.min(max, Math.max(min, Math.round(width)));
|
|
467
|
+
th.style.inlineSize = `${next}px`;
|
|
468
|
+
this.#widths.set(th, next);
|
|
469
|
+
this.#fitTable();
|
|
470
|
+
const handle = th.querySelector<HTMLElement>(RESIZER);
|
|
471
|
+
if (handle) this.#syncHandleValue(th, handle, next);
|
|
472
|
+
if (notify) this.emit<TableColumnResizeDetail>('und-column-resize', { column, width: next });
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
#resizerOf(event: Event): { th: HTMLTableCellElement; handle: HTMLElement } | undefined {
|
|
476
|
+
const target = event.target;
|
|
477
|
+
const handle = target instanceof Element ? target.closest<HTMLElement>(RESIZER) : null;
|
|
478
|
+
const th = handle?.parentElement;
|
|
479
|
+
return handle && th instanceof HTMLTableCellElement ? { th, handle } : undefined;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
#onKeydown = (event: KeyboardEvent): void => {
|
|
483
|
+
const found = this.#resizerOf(event);
|
|
484
|
+
if (!found) return;
|
|
485
|
+
const { th } = found;
|
|
486
|
+
const [min, max] = this.#limits(th);
|
|
487
|
+
const width = th.getBoundingClientRect().width;
|
|
488
|
+
const rtl = this.#locale.dir === 'rtl';
|
|
489
|
+
const step = RESIZE_STEP * (event.shiftKey ? RESIZE_STEP_LARGE : 1);
|
|
490
|
+
let next: number;
|
|
491
|
+
switch (event.key) {
|
|
492
|
+
case 'ArrowRight':
|
|
493
|
+
next = width + (rtl ? -step : step);
|
|
494
|
+
break;
|
|
495
|
+
case 'ArrowLeft':
|
|
496
|
+
next = width + (rtl ? step : -step);
|
|
497
|
+
break;
|
|
498
|
+
case 'Home':
|
|
499
|
+
next = min;
|
|
500
|
+
break;
|
|
501
|
+
case 'End':
|
|
502
|
+
next = max;
|
|
503
|
+
break;
|
|
504
|
+
default:
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
event.preventDefault();
|
|
508
|
+
this.resizeColumn(this.#resizableCells().indexOf(th), next, true);
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
#onPointerDown = (event: PointerEvent): void => {
|
|
512
|
+
const found = this.#resizerOf(event);
|
|
513
|
+
if (!found || event.button !== 0) return;
|
|
514
|
+
event.preventDefault();
|
|
515
|
+
this.#fixLayout();
|
|
516
|
+
found.handle.focus();
|
|
517
|
+
try {
|
|
518
|
+
found.handle.setPointerCapture(event.pointerId);
|
|
519
|
+
} catch {
|
|
520
|
+
// Not an active pointer (synthetic events); moves still reach this element.
|
|
521
|
+
}
|
|
522
|
+
this.#drag = {
|
|
523
|
+
th: found.th,
|
|
524
|
+
start: event.clientX,
|
|
525
|
+
width: found.th.getBoundingClientRect().width,
|
|
526
|
+
};
|
|
527
|
+
found.handle.toggleAttribute('data-dragging', true);
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
#onPointerMove = (event: PointerEvent): void => {
|
|
531
|
+
const drag = this.#drag;
|
|
532
|
+
if (!drag) return;
|
|
533
|
+
const delta = (event.clientX - drag.start) * (this.#locale.dir === 'rtl' ? -1 : 1);
|
|
534
|
+
this.resizeColumn(this.#resizableCells().indexOf(drag.th), drag.width + delta, true);
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
#onPointerEnd = (): void => {
|
|
538
|
+
this.#drag = undefined;
|
|
539
|
+
for (const handle of this.querySelectorAll(RESIZER)) handle.removeAttribute('data-dragging');
|
|
540
|
+
};
|
|
541
|
+
|
|
176
542
|
#observeTable(): void {
|
|
177
543
|
this.#resize ??= new ResizeObserver(() => this.#measure());
|
|
178
544
|
this.#resize.disconnect();
|
|
@@ -204,7 +570,13 @@ export class UndTable extends UndElement {
|
|
|
204
570
|
#onClick = (event: MouseEvent): void => {
|
|
205
571
|
const table = this.table;
|
|
206
572
|
const target = event.target;
|
|
207
|
-
if (!table
|
|
573
|
+
if (!table || !(target instanceof Element)) return;
|
|
574
|
+
const expander = target.closest<HTMLElement>('button[data-expand]');
|
|
575
|
+
if (expander) {
|
|
576
|
+
this.#toggleRow(expander);
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
if (!table.tHead) return;
|
|
208
580
|
const button = target.closest('button');
|
|
209
581
|
const header = button?.parentElement;
|
|
210
582
|
if (
|
|
@@ -244,19 +616,23 @@ export class UndTable extends UndElement {
|
|
|
244
616
|
sensitivity: 'base',
|
|
245
617
|
});
|
|
246
618
|
const sign = direction === 'ascending' ? 1 : -1;
|
|
247
|
-
const compare = (a: string, b: string): number => {
|
|
248
|
-
const x = a === '' ? NaN : Number(a);
|
|
249
|
-
const y = b === '' ? NaN : Number(b);
|
|
250
|
-
return Number.isFinite(x) && Number.isFinite(y) ? x - y : collator.compare(a, b);
|
|
251
|
-
};
|
|
252
619
|
for (const body of table.tBodies) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
620
|
+
// Rows with data-parent (detail and child rows) travel with their parent.
|
|
621
|
+
const groups: { row: HTMLTableRowElement; index: number; value: string; rest: Element[] }[] =
|
|
622
|
+
[];
|
|
623
|
+
for (const row of body.rows) {
|
|
624
|
+
const group = groups.at(-1);
|
|
625
|
+
if (row.hasAttribute('data-parent') && group) group.rest.push(row);
|
|
626
|
+
else
|
|
627
|
+
groups.push({
|
|
628
|
+
row,
|
|
629
|
+
index: groups.length,
|
|
630
|
+
value: sortValue(cellAt(row, column)),
|
|
631
|
+
rest: [],
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
groups.sort((a, b) => sign * compareValues(a.value, b.value, collator) || a.index - b.index);
|
|
635
|
+
body.append(...groups.flatMap(({ row, rest }) => [row, ...rest]));
|
|
260
636
|
}
|
|
261
637
|
}
|
|
262
638
|
|
|
@@ -268,15 +644,21 @@ export class UndTable extends UndElement {
|
|
|
268
644
|
'<und-table> needs a <caption> or a label attribute to name its scroll region.',
|
|
269
645
|
);
|
|
270
646
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
class="
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
647
|
+
const status = this.#count ? this.selectionMessage.replace('{count}', String(this.#count)) : '';
|
|
648
|
+
return html`<div role="status" class="visually-hidden">${status}</div>
|
|
649
|
+
<div part="selection" class="selection" ?hidden=${!this.#count}>
|
|
650
|
+
<span class="selection-count" aria-hidden="true">${status}</span>
|
|
651
|
+
<slot name="selection"></slot>
|
|
652
|
+
</div>
|
|
653
|
+
<div
|
|
654
|
+
part="scroll"
|
|
655
|
+
class="scroll"
|
|
656
|
+
role=${name ? 'region' : nothing}
|
|
657
|
+
aria-label=${name || nothing}
|
|
658
|
+
tabindex=${this.#scrollable ? '0' : nothing}
|
|
659
|
+
>
|
|
660
|
+
<slot></slot>
|
|
661
|
+
</div>`;
|
|
280
662
|
}
|
|
281
663
|
}
|
|
282
664
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { indicLineHeight } from '../shared/indic.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shadow styles for `und-text`. `@und-ui/css` (`.und-text`) reads the same
|
|
6
|
+
* custom properties; a parity test keeps the two lists in sync.
|
|
7
|
+
*/
|
|
8
|
+
export const textStyles = css`
|
|
9
|
+
@layer und.components {
|
|
10
|
+
:host {
|
|
11
|
+
display: inline;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([lines]),
|
|
15
|
+
:host([block]) {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([hidden]) {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.text {
|
|
24
|
+
--_size: var(--und-text-body-md-size, 1rem);
|
|
25
|
+
--_lh: var(--und-text-body-md-lh, 1.5);
|
|
26
|
+
--_lh-indic: var(--und-text-body-md-lh-indic, 1.75);
|
|
27
|
+
--_color: var(--und-fg-default, #23252c);
|
|
28
|
+
--_weight: var(--und-font-weight-regular, 400);
|
|
29
|
+
|
|
30
|
+
color: var(--_color);
|
|
31
|
+
font-size: var(--_size);
|
|
32
|
+
font-weight: var(--_weight);
|
|
33
|
+
line-height: var(--_lh);
|
|
34
|
+
overflow-wrap: anywhere;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.size-inherit {
|
|
38
|
+
--_size: inherit;
|
|
39
|
+
--_lh: inherit;
|
|
40
|
+
--_lh-indic: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.size-xs {
|
|
44
|
+
--_size: var(--und-text-label-sm-size, 0.75rem);
|
|
45
|
+
--_lh: var(--und-text-label-sm-lh, 1.25);
|
|
46
|
+
--_lh-indic: var(--und-text-label-sm-lh-indic, 1.5);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.size-sm {
|
|
50
|
+
--_size: var(--und-text-body-sm-size, 0.875rem);
|
|
51
|
+
--_lh: var(--und-text-body-sm-lh, 1.45);
|
|
52
|
+
--_lh-indic: var(--und-text-body-sm-lh-indic, 1.7);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.size-lg {
|
|
56
|
+
--_size: var(--und-text-body-lg-size, 1.125rem);
|
|
57
|
+
--_lh: var(--und-text-body-lg-lh, 1.55);
|
|
58
|
+
--_lh-indic: var(--und-text-body-lg-lh-indic, 1.8);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.weight-medium {
|
|
62
|
+
--_weight: var(--und-font-weight-medium, 500);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.weight-semibold {
|
|
66
|
+
--_weight: var(--und-font-weight-semibold, 600);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.weight-bold {
|
|
70
|
+
--_weight: var(--und-font-weight-bold, 700);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tone-muted {
|
|
74
|
+
--_color: var(--und-fg-muted, #62646e);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tone-subtle {
|
|
78
|
+
--_color: var(--und-fg-subtle, #62646e);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tone-accent {
|
|
82
|
+
--_color: var(--und-accent-fg, #4b4dd5);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tone-success {
|
|
86
|
+
--_color: var(--und-status-success-fg, #03793c);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tone-warning {
|
|
90
|
+
--_color: var(--und-status-warning-fg, #835d02);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.tone-danger {
|
|
94
|
+
--_color: var(--und-status-danger-fg, #b81e27);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.clamp {
|
|
98
|
+
display: -webkit-box;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
-webkit-box-orient: vertical;
|
|
101
|
+
-webkit-line-clamp: var(--_lines, 1);
|
|
102
|
+
line-clamp: var(--_lines, 1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
${indicLineHeight('.text')}
|
|
106
|
+
}
|
|
107
|
+
`;
|