@getufy/flint-ui 0.1.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/dist/_shared/decorate-DPS9PT8d.js +9 -0
- package/dist/_shared/flint-accordion-CnXIksxN.js +104 -0
- package/dist/_shared/flint-alert-DNcwWxQL.js +59 -0
- package/dist/_shared/flint-app-bar-CNbq6ggt.js +39 -0
- package/dist/_shared/flint-autocomplete-B1tLM8lN.js +131 -0
- package/dist/_shared/flint-avatar-DSQJv4gX.js +40 -0
- package/dist/_shared/flint-backdrop-BszHm5cJ.js +58 -0
- package/dist/_shared/flint-badge-AzmcBWUq.js +38 -0
- package/dist/_shared/flint-bottom-navigation-B4-3_1w7.js +46 -0
- package/dist/_shared/flint-bottom-navigation-action-CW0ZUZlF.js +44 -0
- package/dist/_shared/flint-box-TbPTowiO.js +60 -0
- package/dist/_shared/flint-breadcrumbs-DjFiMWIj.js +83 -0
- package/dist/_shared/flint-button-DwrmFg7O.js +39 -0
- package/dist/_shared/flint-button-group-CdwiDTLI.js +20 -0
- package/dist/_shared/flint-card-C-j6SYxM.js +33 -0
- package/dist/_shared/flint-card-action-area-07Emwi1d.js +22 -0
- package/dist/_shared/flint-card-actions-C74ZbYNI.js +17 -0
- package/dist/_shared/flint-card-content-C3Gv3Ps5.js +17 -0
- package/dist/_shared/flint-card-header-HxL5TlBx.js +28 -0
- package/dist/_shared/flint-card-media-B1U9TYsC.js +26 -0
- package/dist/_shared/flint-carousel-jwZ5C4e_.js +224 -0
- package/dist/_shared/flint-checkbox-GnuZq0Yy.js +82 -0
- package/dist/_shared/flint-chip-5QF8rU8e.js +86 -0
- package/dist/_shared/flint-circular-progress-CuR8VdqI.js +68 -0
- package/dist/_shared/flint-collapsible-BJ4LwGpz.js +101 -0
- package/dist/_shared/flint-command-DGhby0QI.js +318 -0
- package/dist/_shared/flint-container-CYSq758Y.js +42 -0
- package/dist/_shared/flint-copy-button-Y4yVbPxo.js +142 -0
- package/dist/_shared/flint-date-field-CYSc9ezt.js +288 -0
- package/dist/_shared/flint-date-picker-CmCtDBVO.js +370 -0
- package/dist/_shared/flint-date-range-calendar-BPBdO9n3.js +122 -0
- package/dist/_shared/flint-date-range-picker-DiVjn_ST.js +201 -0
- package/dist/_shared/flint-dialog-CH1ylFUb.js +113 -0
- package/dist/_shared/flint-divider-Boj8Ggbt.js +37 -0
- package/dist/_shared/flint-drawer-BAukflTn.js +79 -0
- package/dist/_shared/flint-empty-Bq8DuJQT.js +75 -0
- package/dist/_shared/flint-fab-D8nKcAan.js +77 -0
- package/dist/_shared/flint-format-date-_jfKYO_2.js +62 -0
- package/dist/_shared/flint-format-number-g8MkggyM.js +68 -0
- package/dist/_shared/flint-grid-ClCXGz3k.js +177 -0
- package/dist/_shared/flint-hover-card-fSMVR0xj.js +125 -0
- package/dist/_shared/flint-image-comparer-DDF_wCjc.js +116 -0
- package/dist/_shared/flint-image-list-CS-XDM0T.js +24 -0
- package/dist/_shared/flint-image-list-item-CE1j29Ay.js +41 -0
- package/dist/_shared/flint-image-list-item-bar-BZfSoVrZ.js +31 -0
- package/dist/_shared/flint-input-BV4Glu8N.js +87 -0
- package/dist/_shared/flint-input-otp-__geY8N4.js +203 -0
- package/dist/_shared/flint-item-XvdemneV.js +114 -0
- package/dist/_shared/flint-kbd-DXSl3YcK.js +31 -0
- package/dist/_shared/flint-linear-progress-B4sGgZrk.js +63 -0
- package/dist/_shared/flint-link-CnzR1CYQ.js +55 -0
- package/dist/_shared/flint-list-DJCPEDre.js +113 -0
- package/dist/_shared/flint-menu-EOF1QvHq.js +207 -0
- package/dist/_shared/flint-menubar-7AuGQli6.js +666 -0
- package/dist/_shared/flint-pagination-D-KNsfjM.js +143 -0
- package/dist/_shared/flint-paper-CArGvvRa.js +27 -0
- package/dist/_shared/flint-radio-B_C3wNRn.js +165 -0
- package/dist/_shared/flint-range-slider-IfXMtey2.js +129 -0
- package/dist/_shared/flint-rating-9FxNfBNa.js +148 -0
- package/dist/_shared/flint-relative-time-BFh5nQqz.js +98 -0
- package/dist/_shared/flint-rich-tree-view-BGUjgeZv.js +383 -0
- package/dist/_shared/flint-scroll-area-Dn9yT7ZU.js +227 -0
- package/dist/_shared/flint-select-Bhc3BR09.js +249 -0
- package/dist/_shared/flint-simple-tree-view-DD3zHLzJ.js +175 -0
- package/dist/_shared/flint-single-input-date-range-field-BVGf6515.js +314 -0
- package/dist/_shared/flint-skeleton-CWFa-PkE.js +54 -0
- package/dist/_shared/flint-slider-CVb_rYPp.js +97 -0
- package/dist/_shared/flint-snackbar-DS5F7oXF.js +102 -0
- package/dist/_shared/flint-sonner-DD_qGTfm.js +230 -0
- package/dist/_shared/flint-speed-dial-DTZ2WaBh.js +259 -0
- package/dist/_shared/flint-stack-GAeGPdLR.js +98 -0
- package/dist/_shared/flint-stepper-DdkEEVXE.js +285 -0
- package/dist/_shared/flint-switch-DN7VI9jT.js +80 -0
- package/dist/_shared/flint-table-DQ--YqEC.js +112 -0
- package/dist/_shared/flint-table-pagination-BrJ56t-r.js +97 -0
- package/dist/_shared/flint-table-sort-label-C4mkQmDM.js +37 -0
- package/dist/_shared/flint-tabs-Do8hU-DT.js +226 -0
- package/dist/_shared/flint-text-field-DlLvuIJW.js +76 -0
- package/dist/_shared/flint-textarea-wDEUC9Bt.js +106 -0
- package/dist/_shared/flint-time-picker-D00w7wjz.js +817 -0
- package/dist/_shared/flint-toggle-DTT9i3J2.js +61 -0
- package/dist/_shared/flint-toggle-button-GmL4rbZa.js +48 -0
- package/dist/_shared/flint-toggle-button-group-Cp9x0wSj.js +52 -0
- package/dist/_shared/flint-tooltip-C9nJvtJi.js +108 -0
- package/dist/_shared/flint-transfer-list-DZsAcF0l.js +173 -0
- package/dist/_shared/flint-tree-item-iMT216uo.js +130 -0
- package/dist/_shared/flint-typography-D0vqF15X.js +66 -0
- package/dist/_shared/flint-visually-hidden-CqgpY__B.js +22 -0
- package/dist/_shared/form-associated-EGIhyHHt.js +20 -0
- package/dist/accordion/flint-accordion.d.ts +61 -0
- package/dist/accordion/flint-accordion.d.ts.map +1 -0
- package/dist/accordion/flint-accordion.js +2 -0
- package/dist/alert/flint-alert.d.ts +35 -0
- package/dist/alert/flint-alert.d.ts.map +1 -0
- package/dist/alert/flint-alert.js +2 -0
- package/dist/app-bar/flint-app-bar.d.ts +20 -0
- package/dist/app-bar/flint-app-bar.d.ts.map +1 -0
- package/dist/app-bar/flint-app-bar.js +2 -0
- package/dist/autocomplete/flint-autocomplete.d.ts +44 -0
- package/dist/autocomplete/flint-autocomplete.d.ts.map +1 -0
- package/dist/autocomplete/flint-autocomplete.js +2 -0
- package/dist/avatar/flint-avatar.d.ts +26 -0
- package/dist/avatar/flint-avatar.d.ts.map +1 -0
- package/dist/avatar/flint-avatar.js +2 -0
- package/dist/backdrop/flint-backdrop.d.ts +28 -0
- package/dist/backdrop/flint-backdrop.d.ts.map +1 -0
- package/dist/backdrop/flint-backdrop.js +2 -0
- package/dist/badge/flint-badge.d.ts +27 -0
- package/dist/badge/flint-badge.d.ts.map +1 -0
- package/dist/badge/flint-badge.js +2 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.d.ts +34 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.d.ts.map +1 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.js +2 -0
- package/dist/bottom-navigation/flint-bottom-navigation.d.ts +30 -0
- package/dist/bottom-navigation/flint-bottom-navigation.d.ts.map +1 -0
- package/dist/bottom-navigation/flint-bottom-navigation.js +2 -0
- package/dist/box/flint-box.d.ts +79 -0
- package/dist/box/flint-box.d.ts.map +1 -0
- package/dist/box/flint-box.js +2 -0
- package/dist/breadcrumbs/flint-breadcrumbs.d.ts +50 -0
- package/dist/breadcrumbs/flint-breadcrumbs.d.ts.map +1 -0
- package/dist/breadcrumbs/flint-breadcrumbs.js +2 -0
- package/dist/button/flint-button-group.d.ts +12 -0
- package/dist/button/flint-button-group.d.ts.map +1 -0
- package/dist/button/flint-button-group.js +2 -0
- package/dist/button/flint-button.d.ts +19 -0
- package/dist/button/flint-button.d.ts.map +1 -0
- package/dist/button/flint-button.js +2 -0
- package/dist/button/flint-toggle-button-group.d.ts +25 -0
- package/dist/button/flint-toggle-button-group.d.ts.map +1 -0
- package/dist/button/flint-toggle-button-group.js +2 -0
- package/dist/button/flint-toggle-button.d.ts +25 -0
- package/dist/button/flint-toggle-button.d.ts.map +1 -0
- package/dist/button/flint-toggle-button.js +2 -0
- package/dist/card/flint-card-action-area.d.ts +12 -0
- package/dist/card/flint-card-action-area.d.ts.map +1 -0
- package/dist/card/flint-card-action-area.js +2 -0
- package/dist/card/flint-card-actions.d.ts +11 -0
- package/dist/card/flint-card-actions.d.ts.map +1 -0
- package/dist/card/flint-card-actions.js +2 -0
- package/dist/card/flint-card-content.d.ts +11 -0
- package/dist/card/flint-card-content.d.ts.map +1 -0
- package/dist/card/flint-card-content.js +2 -0
- package/dist/card/flint-card-header.d.ts +13 -0
- package/dist/card/flint-card-header.d.ts.map +1 -0
- package/dist/card/flint-card-header.js +2 -0
- package/dist/card/flint-card-media.d.ts +14 -0
- package/dist/card/flint-card-media.d.ts.map +1 -0
- package/dist/card/flint-card-media.js +2 -0
- package/dist/card/flint-card.d.ts +13 -0
- package/dist/card/flint-card.d.ts.map +1 -0
- package/dist/card/flint-card.js +2 -0
- package/dist/carousel/flint-carousel.d.ts +87 -0
- package/dist/carousel/flint-carousel.d.ts.map +1 -0
- package/dist/carousel/flint-carousel.js +2 -0
- package/dist/checkbox/flint-checkbox.d.ts +41 -0
- package/dist/checkbox/flint-checkbox.d.ts.map +1 -0
- package/dist/checkbox/flint-checkbox.js +2 -0
- package/dist/chip/flint-chip.d.ts +34 -0
- package/dist/chip/flint-chip.d.ts.map +1 -0
- package/dist/chip/flint-chip.js +2 -0
- package/dist/collapsible/flint-collapsible.d.ts +80 -0
- package/dist/collapsible/flint-collapsible.d.ts.map +1 -0
- package/dist/collapsible/flint-collapsible.js +2 -0
- package/dist/command/flint-command.d.ts +189 -0
- package/dist/command/flint-command.d.ts.map +1 -0
- package/dist/command/flint-command.js +2 -0
- package/dist/container/flint-container.d.ts +27 -0
- package/dist/container/flint-container.d.ts.map +1 -0
- package/dist/container/flint-container.js +2 -0
- package/dist/copy-button/flint-copy-button.d.ts +55 -0
- package/dist/copy-button/flint-copy-button.d.ts.map +1 -0
- package/dist/copy-button/flint-copy-button.js +2 -0
- package/dist/date-field/flint-date-field.d.ts +82 -0
- package/dist/date-field/flint-date-field.d.ts.map +1 -0
- package/dist/date-field/flint-date-field.js +2 -0
- package/dist/date-picker/flint-date-picker.d.ts +93 -0
- package/dist/date-picker/flint-date-picker.d.ts.map +1 -0
- package/dist/date-picker/flint-date-picker.js +2 -0
- package/dist/date-range-picker/date-range-helpers.d.ts +31 -0
- package/dist/date-range-picker/date-range-helpers.d.ts.map +1 -0
- package/dist/date-range-picker/date-range-helpers.js +128 -0
- package/dist/date-range-picker/flint-date-range-calendar.d.ts +41 -0
- package/dist/date-range-picker/flint-date-range-calendar.d.ts.map +1 -0
- package/dist/date-range-picker/flint-date-range-calendar.js +2 -0
- package/dist/date-range-picker/flint-date-range-picker.d.ts +74 -0
- package/dist/date-range-picker/flint-date-range-picker.d.ts.map +1 -0
- package/dist/date-range-picker/flint-date-range-picker.js +2 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.d.ts +65 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.d.ts.map +1 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.js +2 -0
- package/dist/dialog/flint-dialog.d.ts +76 -0
- package/dist/dialog/flint-dialog.d.ts.map +1 -0
- package/dist/dialog/flint-dialog.js +2 -0
- package/dist/divider/flint-divider.d.ts +24 -0
- package/dist/divider/flint-divider.d.ts.map +1 -0
- package/dist/divider/flint-divider.js +2 -0
- package/dist/drawer/flint-drawer.d.ts +37 -0
- package/dist/drawer/flint-drawer.d.ts.map +1 -0
- package/dist/drawer/flint-drawer.js +2 -0
- package/dist/empty/flint-empty.d.ts +70 -0
- package/dist/empty/flint-empty.d.ts.map +1 -0
- package/dist/empty/flint-empty.js +2 -0
- package/dist/fab/flint-fab.d.ts +25 -0
- package/dist/fab/flint-fab.d.ts.map +1 -0
- package/dist/fab/flint-fab.js +2 -0
- package/dist/flint-range-slider/flint-range-slider.d.ts +56 -0
- package/dist/flint-range-slider/flint-range-slider.d.ts.map +1 -0
- package/dist/flint-range-slider/flint-range-slider.js +2 -0
- package/dist/format-date/flint-format-date.d.ts +89 -0
- package/dist/format-date/flint-format-date.d.ts.map +1 -0
- package/dist/format-date/flint-format-date.js +2 -0
- package/dist/format-number/flint-format-number.d.ts +81 -0
- package/dist/format-number/flint-format-number.d.ts.map +1 -0
- package/dist/format-number/flint-format-number.js +2 -0
- package/dist/grid/flint-grid.d.ts +73 -0
- package/dist/grid/flint-grid.d.ts.map +1 -0
- package/dist/grid/flint-grid.js +2 -0
- package/dist/hover-card/flint-hover-card.d.ts +103 -0
- package/dist/hover-card/flint-hover-card.d.ts.map +1 -0
- package/dist/hover-card/flint-hover-card.js +2 -0
- package/dist/image-comparer/flint-image-comparer.d.ts +50 -0
- package/dist/image-comparer/flint-image-comparer.d.ts.map +1 -0
- package/dist/image-comparer/flint-image-comparer.js +2 -0
- package/dist/image-list/flint-image-list-item-bar.d.ts +26 -0
- package/dist/image-list/flint-image-list-item-bar.d.ts.map +1 -0
- package/dist/image-list/flint-image-list-item-bar.js +2 -0
- package/dist/image-list/flint-image-list-item.d.ts +48 -0
- package/dist/image-list/flint-image-list-item.d.ts.map +1 -0
- package/dist/image-list/flint-image-list-item.js +2 -0
- package/dist/image-list/flint-image-list.d.ts +28 -0
- package/dist/image-list/flint-image-list.d.ts.map +1 -0
- package/dist/image-list/flint-image-list.js +2 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96 -0
- package/dist/input/flint-input.d.ts +52 -0
- package/dist/input/flint-input.d.ts.map +1 -0
- package/dist/input/flint-input.js +2 -0
- package/dist/input-otp/flint-input-otp.d.ts +130 -0
- package/dist/input-otp/flint-input-otp.d.ts.map +1 -0
- package/dist/input-otp/flint-input-otp.js +2 -0
- package/dist/item/flint-item.d.ts +151 -0
- package/dist/item/flint-item.d.ts.map +1 -0
- package/dist/item/flint-item.js +2 -0
- package/dist/kbd/flint-kbd.d.ts +47 -0
- package/dist/kbd/flint-kbd.d.ts.map +1 -0
- package/dist/kbd/flint-kbd.js +2 -0
- package/dist/link/flint-link.d.ts +47 -0
- package/dist/link/flint-link.d.ts.map +1 -0
- package/dist/link/flint-link.js +2 -0
- package/dist/list/flint-list.d.ts +78 -0
- package/dist/list/flint-list.d.ts.map +1 -0
- package/dist/list/flint-list.js +2 -0
- package/dist/menu/flint-menu.d.ts +107 -0
- package/dist/menu/flint-menu.d.ts.map +1 -0
- package/dist/menu/flint-menu.js +2 -0
- package/dist/menubar/flint-menubar.d.ts +256 -0
- package/dist/menubar/flint-menubar.d.ts.map +1 -0
- package/dist/menubar/flint-menubar.js +2 -0
- package/dist/mixins/form-associated.d.ts +20 -0
- package/dist/mixins/form-associated.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-content.d.ts +53 -0
- package/dist/navigation-menu/flint-navigation-menu-content.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-content.js +147 -0
- package/dist/navigation-menu/flint-navigation-menu-item.d.ts +47 -0
- package/dist/navigation-menu/flint-navigation-menu-item.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-item.js +109 -0
- package/dist/navigation-menu/flint-navigation-menu-link.d.ts +50 -0
- package/dist/navigation-menu/flint-navigation-menu-link.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-link.js +109 -0
- package/dist/navigation-menu/flint-navigation-menu-list.d.ts +35 -0
- package/dist/navigation-menu/flint-navigation-menu-list.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-list.js +52 -0
- package/dist/navigation-menu/flint-navigation-menu-trigger.d.ts +52 -0
- package/dist/navigation-menu/flint-navigation-menu-trigger.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-trigger.js +190 -0
- package/dist/navigation-menu/flint-navigation-menu.d.ts +42 -0
- package/dist/navigation-menu/flint-navigation-menu.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu.js +69 -0
- package/dist/pagination/flint-pagination.d.ts +63 -0
- package/dist/pagination/flint-pagination.d.ts.map +1 -0
- package/dist/pagination/flint-pagination.js +2 -0
- package/dist/paper/flint-paper.d.ts +34 -0
- package/dist/paper/flint-paper.d.ts.map +1 -0
- package/dist/paper/flint-paper.js +2 -0
- package/dist/progress/flint-circular-progress.d.ts +28 -0
- package/dist/progress/flint-circular-progress.d.ts.map +1 -0
- package/dist/progress/flint-circular-progress.js +2 -0
- package/dist/progress/flint-linear-progress.d.ts +26 -0
- package/dist/progress/flint-linear-progress.d.ts.map +1 -0
- package/dist/progress/flint-linear-progress.js +2 -0
- package/dist/radio/flint-radio.d.ts +76 -0
- package/dist/radio/flint-radio.d.ts.map +1 -0
- package/dist/radio/flint-radio.js +2 -0
- package/dist/rating/flint-rating.d.ts +49 -0
- package/dist/rating/flint-rating.d.ts.map +1 -0
- package/dist/rating/flint-rating.js +2 -0
- package/dist/relative-time/flint-relative-time.d.ts +50 -0
- package/dist/relative-time/flint-relative-time.d.ts.map +1 -0
- package/dist/relative-time/flint-relative-time.js +2 -0
- package/dist/resizable/flint-resizable.d.ts +124 -0
- package/dist/resizable/flint-resizable.d.ts.map +1 -0
- package/dist/resizable/flint-resizable.js +346 -0
- package/dist/scroll-area/flint-scroll-area.d.ts +126 -0
- package/dist/scroll-area/flint-scroll-area.d.ts.map +1 -0
- package/dist/scroll-area/flint-scroll-area.js +2 -0
- package/dist/select/flint-select.d.ts +71 -0
- package/dist/select/flint-select.d.ts.map +1 -0
- package/dist/select/flint-select.js +2 -0
- package/dist/skeleton/flint-skeleton.d.ts +47 -0
- package/dist/skeleton/flint-skeleton.d.ts.map +1 -0
- package/dist/skeleton/flint-skeleton.js +2 -0
- package/dist/slider/flint-slider.d.ts +48 -0
- package/dist/slider/flint-slider.d.ts.map +1 -0
- package/dist/slider/flint-slider.js +2 -0
- package/dist/snackbar/flint-snackbar.d.ts +67 -0
- package/dist/snackbar/flint-snackbar.d.ts.map +1 -0
- package/dist/snackbar/flint-snackbar.js +2 -0
- package/dist/sonner/flint-sonner.d.ts +152 -0
- package/dist/sonner/flint-sonner.d.ts.map +1 -0
- package/dist/sonner/flint-sonner.js +2 -0
- package/dist/speed-dial/flint-speed-dial.d.ts +101 -0
- package/dist/speed-dial/flint-speed-dial.d.ts.map +1 -0
- package/dist/speed-dial/flint-speed-dial.js +2 -0
- package/dist/split-panel/flint-split-panel.d.ts +101 -0
- package/dist/split-panel/flint-split-panel.d.ts.map +1 -0
- package/dist/split-panel/flint-split-panel.js +278 -0
- package/dist/stack/flint-stack.d.ts +38 -0
- package/dist/stack/flint-stack.d.ts.map +1 -0
- package/dist/stack/flint-stack.js +2 -0
- package/dist/stepper/flint-stepper.d.ts +122 -0
- package/dist/stepper/flint-stepper.d.ts.map +1 -0
- package/dist/stepper/flint-stepper.js +2 -0
- package/dist/switch/flint-switch.d.ts +44 -0
- package/dist/switch/flint-switch.d.ts.map +1 -0
- package/dist/switch/flint-switch.js +2 -0
- package/dist/table/flint-table-pagination.d.ts +42 -0
- package/dist/table/flint-table-pagination.d.ts.map +1 -0
- package/dist/table/flint-table-pagination.js +2 -0
- package/dist/table/flint-table-sort-label.d.ts +16 -0
- package/dist/table/flint-table-sort-label.d.ts.map +1 -0
- package/dist/table/flint-table-sort-label.js +2 -0
- package/dist/table/flint-table.d.ts +89 -0
- package/dist/table/flint-table.d.ts.map +1 -0
- package/dist/table/flint-table.js +2 -0
- package/dist/tabs/flint-tabs.d.ts +136 -0
- package/dist/tabs/flint-tabs.d.ts.map +1 -0
- package/dist/tabs/flint-tabs.js +2 -0
- package/dist/text-field/flint-text-field.d.ts +40 -0
- package/dist/text-field/flint-text-field.d.ts.map +1 -0
- package/dist/text-field/flint-text-field.js +2 -0
- package/dist/textarea/flint-textarea.d.ts +68 -0
- package/dist/textarea/flint-textarea.d.ts.map +1 -0
- package/dist/textarea/flint-textarea.js +2 -0
- package/dist/time-picker/flint-time-picker.d.ts +230 -0
- package/dist/time-picker/flint-time-picker.d.ts.map +1 -0
- package/dist/time-picker/flint-time-picker.js +2 -0
- package/dist/toggle/flint-toggle.d.ts +43 -0
- package/dist/toggle/flint-toggle.d.ts.map +1 -0
- package/dist/toggle/flint-toggle.js +2 -0
- package/dist/tooltip/flint-tooltip.d.ts +41 -0
- package/dist/tooltip/flint-tooltip.d.ts.map +1 -0
- package/dist/tooltip/flint-tooltip.js +2 -0
- package/dist/transfer-list/flint-transfer-list.d.ts +48 -0
- package/dist/transfer-list/flint-transfer-list.d.ts.map +1 -0
- package/dist/transfer-list/flint-transfer-list.js +2 -0
- package/dist/tree-view/flint-rich-tree-view.d.ts +213 -0
- package/dist/tree-view/flint-rich-tree-view.d.ts.map +1 -0
- package/dist/tree-view/flint-rich-tree-view.js +2 -0
- package/dist/tree-view/flint-simple-tree-view.d.ts +112 -0
- package/dist/tree-view/flint-simple-tree-view.d.ts.map +1 -0
- package/dist/tree-view/flint-simple-tree-view.js +2 -0
- package/dist/tree-view/flint-tree-item.d.ts +67 -0
- package/dist/tree-view/flint-tree-item.d.ts.map +1 -0
- package/dist/tree-view/flint-tree-item.js +2 -0
- package/dist/typography/flint-typography.d.ts +37 -0
- package/dist/typography/flint-typography.d.ts.map +1 -0
- package/dist/typography/flint-typography.js +2 -0
- package/dist/visually-hidden/flint-visually-hidden.d.ts +52 -0
- package/dist/visually-hidden/flint-visually-hidden.d.ts.map +1 -0
- package/dist/visually-hidden/flint-visually-hidden.js +2 -0
- package/package.json +470 -0
- package/src/theme-dark.css +261 -0
- package/src/theme.css +651 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
4
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/stepper/flint-step-connector.css?inline
|
|
6
|
+
var c = ":host{display:block}.line{background:var(--flint-stepper-connector-color);border-radius:2px;transition:background .3s}.line.completed{background:var(--flint-primary-color)}:host([orientation=horizontal]) .line{width:100%;height:2px}:host([orientation=vertical]) .line{width:2px;min-height:24px;margin:0 auto}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = ":host{display:block}.label{color:var(--flint-text-color);font-size:.875rem;font-weight:500;font-family:var(--flint-font-family);line-height:1.4}.optional{color:var(--flint-text-color-muted);font-size:.75rem;font-style:italic}:host([active]) .label{color:var(--flint-primary-color);font-weight:600}:host([disabled]) .label{color:var(--flint-text-color-muted)}:host([error]) .label{color:var(--flint-error-color)}", u = ":host{display:block;overflow:hidden}.panel{grid-template-rows:0fr;transition:grid-template-rows .25s;display:grid}.panel.open{grid-template-rows:1fr}.inner{padding:0 16px;transition:padding .25s;overflow:hidden}.panel.open .inner{padding:8px 16px 16px}.content{color:var(--flint-text-color);font-size:.875rem;font-family:var(--flint-font-family)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", d = ":host{min-width:0;font-family:var(--flint-font-family);flex:1 1 0;display:flex}:host([orientation=horizontal]){align-items:flex-start;padding-top:4px}:host([orientation=vertical]){flex-direction:column;flex:none;width:100%}:host([alternative-label]){flex-direction:column;flex:1;align-items:center;min-width:0}.conn-wrap{flex:auto;align-items:flex-start;min-width:12px;padding-top:15px;display:flex}.conn-wrap flint-step-connector{flex:1}.alt-top{align-items:center;width:100%;display:flex}.alt-top .conn-fill{flex:1;align-items:center;display:flex}.alt-top .conn-fill flint-step-connector{flex:1}.step-header{align-items:flex-start;gap:14px;min-width:0;display:flex}.step-header flint-step-label,.step-btn flint-step-label{min-width:0;padding-top:5px}:host([alternative-label]) .alt-label-row{text-align:center;width:100%;min-width:0;margin-top:8px}.step-btn{cursor:pointer;text-align:left;background:0 0;border:none;border-radius:6px;outline:none;align-items:flex-start;gap:14px;min-width:0;padding:0;font-family:inherit;display:flex}.step-btn:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:3px}:host([disabled]) .step-btn{cursor:default}:host([alternative-label]) .step-btn{flex-direction:column;align-items:center;gap:0}.v-body{min-height:16px;margin-left:15px;display:flex}.v-line{background:var(--flint-stepper-connector-color);border-radius:2px;flex-shrink:0;width:2px;margin-right:14px;transition:background .3s}.v-line.completed{background:var(--flint-primary-color)}:host([last]) .v-line{background:0 0}.v-content{flex:1;min-width:0;padding-bottom:8px}.icon-circle{width:var(--flint-stepper-icon-size,32px);height:var(--flint-stepper-icon-size,32px);border:2px solid var(--flint-input-border-color);color:var(--flint-text-color-muted);box-sizing:border-box;background:0 0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.8125rem;font-weight:700;transition:all .2s;display:flex}.icon-circle.active{background:var(--flint-primary-color);border-color:var(--flint-primary-color);color:var(--flint-text-color-on-primary);box-shadow:0 0 0 4px var(--flint-primary-focus-ring)}.icon-circle.completed{background:var(--flint-primary-color);border-color:var(--flint-primary-color);color:var(--flint-text-color-on-primary)}.icon-circle.error{border-color:var(--flint-error-color);color:var(--flint-error-color)}:host([disabled]) .icon-circle{opacity:.4}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", f = ":host{font-family:var(--flint-font-family);display:block}.stepper{background:var(--flint-surface-1);padding:16px 24px;display:flex}.stepper.horizontal{flex-direction:row;align-items:stretch}.stepper.vertical{flex-direction:column;gap:0}.stepper.alt{align-items:flex-start}", p = ":host{background:var(--flint-surface-1);font-family:var(--flint-font-family);justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}:host([position=static]){border:1px solid var(--flint-border-color);border-radius:8px}:host([position=bottom]){border-top:1px solid var(--flint-border-color)}:host([position=top]){border-bottom:1px solid var(--flint-border-color)}.progress{flex:1;justify-content:center;align-items:center;gap:0;display:flex}.text{color:var(--flint-text-color-muted);font-size:.8rem}.dots{gap:6px;display:flex}.dot{background:var(--flint-input-border-color);border-radius:50%;width:10px;height:10px;transition:background .2s}.dot.active{background:var(--flint-primary-color)}.bar-track{background:var(--flint-border-color);border-radius:2px;flex:1;height:4px;overflow:hidden}.bar-fill{background:var(--flint-primary-color);border-radius:2px;height:100%;transition:width .3s}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.nav-btn{cursor:pointer;border-radius:6px;padding:6px 14px;font-family:inherit;font-size:.8rem;transition:opacity .15s}.nav-btn:disabled{opacity:.38;cursor:default}.nav-btn.back{background:var(--flint-surface-1);color:var(--flint-text-color);border:1px solid var(--flint-border-color)}.nav-btn.next{background:var(--flint-primary-color);color:var(--flint-text-color-on-primary);border:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", m = n`<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>`, h = n`<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>`, g = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.orientation = "horizontal", this.completed = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = i(c);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return n`<div class="line ${s({ completed: this.completed })}"></div>`;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
e([o({ reflect: !0 })], g.prototype, "orientation", void 0), e([o({ type: Boolean })], g.prototype, "completed", void 0), g = e([a("flint-step-connector")], g);
|
|
18
|
+
var _ = class extends t {
|
|
19
|
+
constructor(...e) {
|
|
20
|
+
super(...e), this.active = !1, this.disabled = !1, this.error = !1;
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.styles = i(l);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return n`
|
|
27
|
+
<div class="label"><slot></slot></div>
|
|
28
|
+
<div class="optional"><slot name="optional"></slot></div>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
e([o({
|
|
33
|
+
type: Boolean,
|
|
34
|
+
reflect: !0
|
|
35
|
+
})], _.prototype, "active", void 0), e([o({
|
|
36
|
+
type: Boolean,
|
|
37
|
+
reflect: !0
|
|
38
|
+
})], _.prototype, "disabled", void 0), e([o({
|
|
39
|
+
type: Boolean,
|
|
40
|
+
reflect: !0
|
|
41
|
+
})], _.prototype, "error", void 0), _ = e([a("flint-step-label")], _);
|
|
42
|
+
var v = class extends t {
|
|
43
|
+
constructor(...e) {
|
|
44
|
+
super(...e), this.open = !0;
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.styles = i(u);
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return n`
|
|
51
|
+
<div
|
|
52
|
+
class="panel ${s({ open: this.open })}"
|
|
53
|
+
aria-hidden=${this.open ? "false" : "true"}
|
|
54
|
+
>
|
|
55
|
+
<div class="inner">
|
|
56
|
+
<div class="content"><slot></slot></div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
e([o({
|
|
62
|
+
type: Boolean,
|
|
63
|
+
reflect: !0
|
|
64
|
+
})], v.prototype, "open", void 0), v = e([a("flint-step-content")], v);
|
|
65
|
+
var y = class extends t {
|
|
66
|
+
constructor(...e) {
|
|
67
|
+
super(...e), this.active = !1, this.completed = !1, this.disabled = !1, this.optional = !1, this.error = !1, this.last = !1, this.clickable = !1, this.orientation = "horizontal", this.alternativeLabel = !1, this.stepIndex = 0, this.optionalLabel = "Optional", this.prevCompleted = !1;
|
|
68
|
+
}
|
|
69
|
+
static {
|
|
70
|
+
this.styles = i(d);
|
|
71
|
+
}
|
|
72
|
+
connectedCallback() {
|
|
73
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "listitem");
|
|
74
|
+
}
|
|
75
|
+
_fire() {
|
|
76
|
+
this.disabled || this.dispatchEvent(new CustomEvent("flint-step-click", {
|
|
77
|
+
detail: { index: this.stepIndex },
|
|
78
|
+
bubbles: !0,
|
|
79
|
+
composed: !0
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
_icon() {
|
|
83
|
+
let e = {
|
|
84
|
+
"icon-circle": !0,
|
|
85
|
+
active: this.active,
|
|
86
|
+
completed: this.completed,
|
|
87
|
+
error: this.error
|
|
88
|
+
}, t = this.error ? h : this.completed ? m : n`<slot name="icon">${this.stepIndex + 1}</slot>`;
|
|
89
|
+
return n`<div class=${s(e)}>${t}</div>`;
|
|
90
|
+
}
|
|
91
|
+
_label() {
|
|
92
|
+
return n`
|
|
93
|
+
<flint-step-label ?active=${this.active} ?disabled=${this.disabled} ?error=${this.error}>
|
|
94
|
+
<slot name="label"></slot>
|
|
95
|
+
${this.optional ? n`<span slot="optional">${this.optionalLabel}</span>` : r}
|
|
96
|
+
</flint-step-label>`;
|
|
97
|
+
}
|
|
98
|
+
_connector(e = !1) {
|
|
99
|
+
return n`<flint-step-connector orientation=${this.orientation} ?completed=${e}></flint-step-connector>`;
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
let e = this.stepIndex > 0;
|
|
103
|
+
if (this.orientation === "vertical") return n`
|
|
104
|
+
${this.clickable ? n`<button class="step-btn" ?disabled=${this.disabled} @click=${this._fire} aria-current=${this.active ? "step" : r}>${this._icon()} ${this._label()}</button>` : n`<div class="step-header">${this._icon()} ${this._label()}</div>`}
|
|
105
|
+
<div class="v-body">
|
|
106
|
+
<div class="v-line ${s({ completed: this.completed })}"></div>
|
|
107
|
+
<div class="v-content"><slot></slot></div>
|
|
108
|
+
</div>`;
|
|
109
|
+
if (this.alternativeLabel) {
|
|
110
|
+
let t = this.clickable ? n`<button class="step-btn" ?disabled=${this.disabled} @click=${this._fire} aria-current=${this.active ? "step" : r}>${this._icon()}</button>` : this._icon();
|
|
111
|
+
return n`
|
|
112
|
+
<div class="alt-top">
|
|
113
|
+
<div class="conn-fill">${e ? this._connector(this.prevCompleted) : r}</div>
|
|
114
|
+
${t}
|
|
115
|
+
<div class="conn-fill"></div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="alt-label-row">${this._label()}</div>`;
|
|
118
|
+
}
|
|
119
|
+
let t = this.clickable ? n`<button class="step-btn" ?disabled=${this.disabled} @click=${this._fire} aria-current=${this.active ? "step" : r}>${this._icon()} ${this._label()}</button>` : n`<div class="step-header">${this._icon()} ${this._label()}</div>`;
|
|
120
|
+
return n`
|
|
121
|
+
${e ? n`<div class="conn-wrap">${this._connector(this.prevCompleted)}</div>` : r}
|
|
122
|
+
${t}`;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
e([o({
|
|
126
|
+
type: Boolean,
|
|
127
|
+
reflect: !0
|
|
128
|
+
})], y.prototype, "active", void 0), e([o({
|
|
129
|
+
type: Boolean,
|
|
130
|
+
reflect: !0
|
|
131
|
+
})], y.prototype, "completed", void 0), e([o({
|
|
132
|
+
type: Boolean,
|
|
133
|
+
reflect: !0
|
|
134
|
+
})], y.prototype, "disabled", void 0), e([o({
|
|
135
|
+
type: Boolean,
|
|
136
|
+
reflect: !0
|
|
137
|
+
})], y.prototype, "optional", void 0), e([o({
|
|
138
|
+
type: Boolean,
|
|
139
|
+
reflect: !0
|
|
140
|
+
})], y.prototype, "error", void 0), e([o({
|
|
141
|
+
type: Boolean,
|
|
142
|
+
reflect: !0
|
|
143
|
+
})], y.prototype, "last", void 0), e([o({
|
|
144
|
+
type: Boolean,
|
|
145
|
+
reflect: !0
|
|
146
|
+
})], y.prototype, "clickable", void 0), e([o({
|
|
147
|
+
type: String,
|
|
148
|
+
reflect: !0
|
|
149
|
+
})], y.prototype, "orientation", void 0), e([o({
|
|
150
|
+
type: Boolean,
|
|
151
|
+
reflect: !0,
|
|
152
|
+
attribute: "alternative-label"
|
|
153
|
+
})], y.prototype, "alternativeLabel", void 0), e([o({
|
|
154
|
+
type: Number,
|
|
155
|
+
attribute: "step-index"
|
|
156
|
+
})], y.prototype, "stepIndex", void 0), e([o({
|
|
157
|
+
type: String,
|
|
158
|
+
attribute: "optional-label"
|
|
159
|
+
})], y.prototype, "optionalLabel", void 0), e([o({
|
|
160
|
+
type: Boolean,
|
|
161
|
+
attribute: "prev-completed"
|
|
162
|
+
})], y.prototype, "prevCompleted", void 0), y = e([a("flint-step")], y);
|
|
163
|
+
var b = class extends t {
|
|
164
|
+
constructor(...e) {
|
|
165
|
+
super(...e), this.activeStep = 0, this.orientation = "horizontal", this.alternativeLabel = !1, this.nonLinear = !1, this.label = "steps", this._onStepClick = (e) => {
|
|
166
|
+
this.activeStep = e.detail.index, this.dispatchEvent(new CustomEvent("flint-step-change", {
|
|
167
|
+
detail: { step: e.detail.index },
|
|
168
|
+
bubbles: !0,
|
|
169
|
+
composed: !0
|
|
170
|
+
})), this._syncSteps();
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
static {
|
|
174
|
+
this.styles = i(f);
|
|
175
|
+
}
|
|
176
|
+
_syncSteps() {
|
|
177
|
+
let e = Array.from(this.querySelectorAll(":scope > flint-step"));
|
|
178
|
+
e.forEach((t, n) => {
|
|
179
|
+
t.stepIndex = n, t.last = n === e.length - 1, t.orientation = this.orientation, t.alternativeLabel = this.alternativeLabel, t.active = n === this.activeStep, t.prevCompleted = n > 0 && e[n - 1].completed, this.nonLinear ? (t.disabled = !1, t.clickable = !0) : (t.completed || (t.disabled = n > this.activeStep), t.clickable = !1);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
firstUpdated() {
|
|
183
|
+
this._syncSteps();
|
|
184
|
+
}
|
|
185
|
+
updated(e) {
|
|
186
|
+
(e.has("activeStep") || e.has("orientation") || e.has("alternativeLabel") || e.has("nonLinear")) && this._syncSteps();
|
|
187
|
+
}
|
|
188
|
+
connectedCallback() {
|
|
189
|
+
super.connectedCallback(), this.addEventListener("flint-step-click", this._onStepClick);
|
|
190
|
+
}
|
|
191
|
+
disconnectedCallback() {
|
|
192
|
+
this.removeEventListener("flint-step-click", this._onStepClick), super.disconnectedCallback();
|
|
193
|
+
}
|
|
194
|
+
render() {
|
|
195
|
+
return n`
|
|
196
|
+
<div class=${`stepper ${this.orientation}${this.alternativeLabel ? " alt" : ""}`} role="list" aria-label=${this.label}>
|
|
197
|
+
<slot @slotchange=${() => {
|
|
198
|
+
this._syncSteps(), this.requestUpdate();
|
|
199
|
+
}}></slot>
|
|
200
|
+
</div>`;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
e([o({
|
|
204
|
+
type: Number,
|
|
205
|
+
attribute: "active-step"
|
|
206
|
+
})], b.prototype, "activeStep", void 0), e([o({
|
|
207
|
+
type: String,
|
|
208
|
+
reflect: !0
|
|
209
|
+
})], b.prototype, "orientation", void 0), e([o({
|
|
210
|
+
type: Boolean,
|
|
211
|
+
attribute: "alternative-label"
|
|
212
|
+
})], b.prototype, "alternativeLabel", void 0), e([o({
|
|
213
|
+
type: Boolean,
|
|
214
|
+
attribute: "non-linear"
|
|
215
|
+
})], b.prototype, "nonLinear", void 0), e([o({ type: String })], b.prototype, "label", void 0), b = e([a("flint-stepper")], b);
|
|
216
|
+
var x = class extends t {
|
|
217
|
+
constructor(...e) {
|
|
218
|
+
super(...e), this.steps = 0, this.activeStep = 0, this.variant = "dots", this.position = "static", this.backLabel = "Back", this.nextLabel = "Next";
|
|
219
|
+
}
|
|
220
|
+
static {
|
|
221
|
+
this.styles = i(p);
|
|
222
|
+
}
|
|
223
|
+
get _safeSteps() {
|
|
224
|
+
return Math.max(1, this.steps);
|
|
225
|
+
}
|
|
226
|
+
_emit(e) {
|
|
227
|
+
this.dispatchEvent(new CustomEvent(e, {
|
|
228
|
+
bubbles: !0,
|
|
229
|
+
composed: !0
|
|
230
|
+
}));
|
|
231
|
+
}
|
|
232
|
+
_progress() {
|
|
233
|
+
let e = this.activeStep + 1, t = this._safeSteps;
|
|
234
|
+
return this.variant === "text" ? n`<span class="text" aria-live="polite">Step ${e} of ${t}</span>` : this.variant === "dots" ? n`
|
|
235
|
+
<div class="dots" aria-label="Step ${e} of ${t}">
|
|
236
|
+
<span class="sr-only" aria-live="polite">Step ${e} of ${t}</span>
|
|
237
|
+
${Array.from({ length: t }, (e, t) => n`<div class="dot ${t === this.activeStep ? "active" : ""}"></div>`)}
|
|
238
|
+
</div>` : n`
|
|
239
|
+
<div
|
|
240
|
+
class="bar-track"
|
|
241
|
+
role="progressbar"
|
|
242
|
+
aria-valuenow=${e}
|
|
243
|
+
aria-valuemin="1"
|
|
244
|
+
aria-valuemax=${t}
|
|
245
|
+
aria-label="Step ${e} of ${t}"
|
|
246
|
+
>
|
|
247
|
+
<div class="bar-fill" style="width:${t > 1 ? this.activeStep / (t - 1) * 100 : 100}%"></div>
|
|
248
|
+
</div>`;
|
|
249
|
+
}
|
|
250
|
+
render() {
|
|
251
|
+
return n`
|
|
252
|
+
<slot name="back-button">
|
|
253
|
+
<button
|
|
254
|
+
class="nav-btn back"
|
|
255
|
+
?disabled=${this.activeStep === 0}
|
|
256
|
+
aria-label="Go to previous step"
|
|
257
|
+
@click=${() => this._emit("flint-mobile-step-back")}
|
|
258
|
+
>${this.backLabel}</button>
|
|
259
|
+
</slot>
|
|
260
|
+
<div class="progress">${this._progress()}</div>
|
|
261
|
+
<slot name="next-button">
|
|
262
|
+
<button
|
|
263
|
+
class="nav-btn next"
|
|
264
|
+
?disabled=${this.activeStep >= this._safeSteps - 1}
|
|
265
|
+
aria-label="Go to next step"
|
|
266
|
+
@click=${() => this._emit("flint-mobile-step-next")}
|
|
267
|
+
>${this.nextLabel}</button>
|
|
268
|
+
</slot>`;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
e([o({ type: Number })], x.prototype, "steps", void 0), e([o({
|
|
272
|
+
type: Number,
|
|
273
|
+
attribute: "active-step"
|
|
274
|
+
})], x.prototype, "activeStep", void 0), e([o({ type: String })], x.prototype, "variant", void 0), e([o({
|
|
275
|
+
type: String,
|
|
276
|
+
reflect: !0
|
|
277
|
+
})], x.prototype, "position", void 0), e([o({
|
|
278
|
+
type: String,
|
|
279
|
+
attribute: "back-label"
|
|
280
|
+
})], x.prototype, "backLabel", void 0), e([o({
|
|
281
|
+
type: String,
|
|
282
|
+
attribute: "next-label"
|
|
283
|
+
})], x.prototype, "nextLabel", void 0), x = e([a("flint-mobile-stepper")], x);
|
|
284
|
+
//#endregion
|
|
285
|
+
export { _ as a, v as i, y as n, b as o, g as r, x as t };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { t } from "./form-associated-EGIhyHHt.js";
|
|
3
|
+
import { LitElement as n, html as r, nothing as i, unsafeCSS as a } from "lit";
|
|
4
|
+
import { customElement as o, property as s } from "lit/decorators.js";
|
|
5
|
+
import { classMap as c } from "lit/directives/class-map.js";
|
|
6
|
+
//#region src/switch/flint-switch.css?inline
|
|
7
|
+
var l = ":host{--flint-switch-width:52px;--flint-switch-height:32px;--flint-switch-thumb-size:24px;--flint-switch-thumb-offset:4px;--flint-switch-bg:var(--flint-secondary-color);--flint-switch-bg-on:var(--flint-primary-color);--flint-switch-thumb-bg:var(--flint-switch-thumb-color);font-family:var(--flint-font-family);cursor:pointer;display:inline-block}:host([disabled]){cursor:not-allowed}:host([size=sm]){--flint-switch-width:36px;--flint-switch-height:22px;--flint-switch-thumb-size:16px;--flint-switch-thumb-offset:3px}:host([size=lg]){--flint-switch-width:64px;--flint-switch-height:38px;--flint-switch-thumb-size:30px;--flint-switch-thumb-offset:4px}.wrapper{-webkit-user-select:none;user-select:none;align-items:center;gap:12px;display:flex}.switch{width:var(--flint-switch-width);height:var(--flint-switch-height);background-color:var(--flint-switch-bg);border-radius:calc(var(--flint-switch-height) / 2);flex-shrink:0;transition:background-color .3s cubic-bezier(.4,0,.2,1);position:relative}.switch.checked{background-color:var(--flint-switch-bg-on)}.thumb{top:var(--flint-switch-thumb-offset);left:var(--flint-switch-thumb-offset);width:var(--flint-switch-thumb-size);height:var(--flint-switch-thumb-size);background-color:var(--flint-switch-thumb-bg);box-shadow:var(--flint-shadow-sm);color:var(--flint-text-color-muted);border-radius:50%;justify-content:center;align-items:center;transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;position:absolute}.switch.checked .thumb{transform:translateX(calc(var(--flint-switch-width) - var(--flint-switch-thumb-size) - (var(--flint-switch-thumb-offset) * 2)));color:var(--flint-primary-color)}.label{color:var(--flint-text-color);font-size:.9375rem;font-weight:500}.label.disabled{cursor:not-allowed;opacity:.5}.switch.disabled{opacity:.5;cursor:not-allowed}.switch:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:2px}.icon-wrapper{justify-content:center;align-items:center;font-size:14px;display:flex}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", u = 0, d = class extends t(n) {
|
|
8
|
+
static {
|
|
9
|
+
this.styles = a(l);
|
|
10
|
+
}
|
|
11
|
+
constructor() {
|
|
12
|
+
super(), this.checked = !1, this.disabled = !1, this.required = !1, this.size = "md", this.label = "", this.name = "", this.value = "on", this.defaultChecked = !1, this.ariaLabel = null, u++, this._labelId = `flint-switch-label-${u}`;
|
|
13
|
+
}
|
|
14
|
+
willUpdate(e) {
|
|
15
|
+
super.willUpdate(e), this._firstUpdate && (this._firstUpdate = !1, this.defaultChecked && (this.checked = !0));
|
|
16
|
+
}
|
|
17
|
+
updated(e) {
|
|
18
|
+
super.updated(e), (e.has("checked") || e.has("value")) && this._initFormValue(this.checked ? this.value : null), (e.has("checked") || e.has("required")) && this._initFormValidity(this.required, !this.checked, "Please check this switch.");
|
|
19
|
+
}
|
|
20
|
+
_handleClick() {
|
|
21
|
+
this.disabled || (this.checked = !this.checked, this.dispatchEvent(new CustomEvent("flint-switch-change", {
|
|
22
|
+
detail: { checked: this.checked },
|
|
23
|
+
bubbles: !0,
|
|
24
|
+
composed: !0
|
|
25
|
+
})));
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
let e = !!this.label;
|
|
29
|
+
return r`
|
|
30
|
+
<div class="wrapper" @click=${this._handleClick}>
|
|
31
|
+
<div
|
|
32
|
+
class=${c({
|
|
33
|
+
switch: !0,
|
|
34
|
+
checked: this.checked,
|
|
35
|
+
disabled: this.disabled
|
|
36
|
+
})}
|
|
37
|
+
role="switch"
|
|
38
|
+
aria-checked=${this.checked ? "true" : "false"}
|
|
39
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
40
|
+
aria-required=${this.required ? "true" : "false"}
|
|
41
|
+
aria-label=${this.ariaLabel ?? i}
|
|
42
|
+
aria-labelledby=${e ? this._labelId : i}
|
|
43
|
+
.tabIndex=${this.disabled ? -1 : 0}
|
|
44
|
+
@keydown=${(e) => (e.key === " " || e.key === "Enter") && this._handleClick()}
|
|
45
|
+
>
|
|
46
|
+
<div class="thumb">
|
|
47
|
+
<div class="icon-wrapper">
|
|
48
|
+
${this.checked ? r`<slot name="icon-on"></slot>` : r`<slot name="icon-off"></slot>`}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
${e ? r`<span id=${this._labelId} class=${c({
|
|
53
|
+
label: !0,
|
|
54
|
+
disabled: this.disabled
|
|
55
|
+
})}>${this.label}</span>` : r`<slot></slot>`}
|
|
56
|
+
</div>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
e([s({
|
|
61
|
+
type: Boolean,
|
|
62
|
+
reflect: !0
|
|
63
|
+
})], d.prototype, "checked", void 0), e([s({
|
|
64
|
+
type: Boolean,
|
|
65
|
+
reflect: !0
|
|
66
|
+
})], d.prototype, "disabled", void 0), e([s({
|
|
67
|
+
type: Boolean,
|
|
68
|
+
reflect: !0
|
|
69
|
+
})], d.prototype, "required", void 0), e([s({
|
|
70
|
+
type: String,
|
|
71
|
+
reflect: !0
|
|
72
|
+
})], d.prototype, "size", void 0), e([s({ type: String })], d.prototype, "label", void 0), e([s({ type: String })], d.prototype, "name", void 0), e([s({ type: String })], d.prototype, "value", void 0), e([s({
|
|
73
|
+
type: Boolean,
|
|
74
|
+
attribute: "default-checked"
|
|
75
|
+
})], d.prototype, "defaultChecked", void 0), e([s({
|
|
76
|
+
type: String,
|
|
77
|
+
attribute: "aria-label"
|
|
78
|
+
})], d.prototype, "ariaLabel", void 0), d = e([o("flint-switch")], d);
|
|
79
|
+
//#endregion
|
|
80
|
+
export { d as t };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a } from "lit/decorators.js";
|
|
4
|
+
//#region src/table/flint-table-container.css?inline
|
|
5
|
+
var o = ":host{background-color:var(--flint-table-container-bg,var(--flint-surface-background,white));border-radius:var(--flint-table-border-radius,var(--flint-border-radius-lg,8px));width:100%;box-shadow:var(--flint-table-shadow,var(--flint-shadow-sm));border:1px solid var(--flint-table-border-color,var(--flint-border-color));display:block;overflow-x:auto}:host([shadow]){box-shadow:var(--flint-table-shadow-elevated,var(--flint-shadow-md))}:host([sticky-header]) flint-table-head,:host([sticky-header]) ::slotted(flint-table-head){z-index:2;position:sticky;top:0}", s = ":host{border-collapse:collapse;border-spacing:0;width:100%;font-family:var(--flint-font-family);color:var(--flint-text-color);display:table}:host([size=small]){--flint-table-cell-padding-y:var(--flint-table-cell-padding-y-dense,6px);--flint-table-cell-padding-x:var(--flint-table-cell-padding-x-dense,16px)}", c = ":host{display:table-header-group}", l = ":host{display:table-row-group}:host([striped]) ::slotted(flint-table-row:nth-child(2n)){background-color:var(--flint-table-striped-bg,var(--flint-surface-2))}", u = ":host{vertical-align:middle;outline:0;transition:background-color .2s;display:table-row}:host(:hover){background-color:var(--flint-table-row-hover-bg,var(--flint-hover-color,#0000000a))}:host([selected]){background-color:var(--flint-table-row-selected-bg,var(--flint-primary-color-light,#3b82f614))}:host([hover]){background-color:var(--flint-table-row-hover-bg,var(--flint-hover-color,#0000000a))}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", d = ":host{padding:var(--flint-table-cell-padding-y,16px) var(--flint-table-cell-padding-x,16px);text-align:left;vertical-align:middle;border-bottom:1px solid var(--flint-table-border-color,var(--flint-border-color));font-size:.875rem;display:table-cell}:host([header]){background-color:var(--flint-table-header-bg,transparent);color:var(--flint-table-header-color,var(--flint-text-color-muted));white-space:nowrap;font-weight:600;line-height:1.5rem}:host([align=right]){text-align:right}:host([align=center]){text-align:center}:host([padding=checkbox]){width:48px;padding:0 0 0 4px}:host([padding=none]){padding:0}", f = ":host{display:table-footer-group}", p = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.shadow = !1, this.stickyHeader = !1;
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return n`<slot></slot>`;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
e([a({
|
|
17
|
+
type: Boolean,
|
|
18
|
+
reflect: !0
|
|
19
|
+
})], p.prototype, "shadow", void 0), e([a({
|
|
20
|
+
type: Boolean,
|
|
21
|
+
reflect: !0,
|
|
22
|
+
attribute: "sticky-header"
|
|
23
|
+
})], p.prototype, "stickyHeader", void 0), p = e([i("flint-table-container")], p);
|
|
24
|
+
var m = class extends t {
|
|
25
|
+
constructor(...e) {
|
|
26
|
+
super(...e), this.size = "medium";
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.styles = r(s);
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return n`<slot></slot>`;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
e([a({
|
|
36
|
+
type: String,
|
|
37
|
+
reflect: !0
|
|
38
|
+
})], m.prototype, "size", void 0), m = e([i("flint-table")], m);
|
|
39
|
+
var h = class extends t {
|
|
40
|
+
static {
|
|
41
|
+
this.styles = r(c);
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return n`<slot></slot>`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
h = e([i("flint-table-head")], h);
|
|
48
|
+
var g = class extends t {
|
|
49
|
+
constructor(...e) {
|
|
50
|
+
super(...e), this.striped = !1;
|
|
51
|
+
}
|
|
52
|
+
static {
|
|
53
|
+
this.styles = r(l);
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return n`<slot></slot>`;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
e([a({
|
|
60
|
+
type: Boolean,
|
|
61
|
+
reflect: !0
|
|
62
|
+
})], g.prototype, "striped", void 0), g = e([i("flint-table-body")], g);
|
|
63
|
+
var _ = class extends t {
|
|
64
|
+
constructor(...e) {
|
|
65
|
+
super(...e), this.selected = !1, this.hover = !1;
|
|
66
|
+
}
|
|
67
|
+
static {
|
|
68
|
+
this.styles = r(u);
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return n`<slot></slot>`;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
e([a({
|
|
75
|
+
type: Boolean,
|
|
76
|
+
reflect: !0
|
|
77
|
+
})], _.prototype, "selected", void 0), e([a({
|
|
78
|
+
type: Boolean,
|
|
79
|
+
reflect: !0
|
|
80
|
+
})], _.prototype, "hover", void 0), _ = e([i("flint-table-row")], _);
|
|
81
|
+
var v = class extends t {
|
|
82
|
+
constructor(...e) {
|
|
83
|
+
super(...e), this.header = !1, this.align = "left", this.padding = "normal";
|
|
84
|
+
}
|
|
85
|
+
static {
|
|
86
|
+
this.styles = r(d);
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
return n`<slot></slot>`;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
e([a({
|
|
93
|
+
type: Boolean,
|
|
94
|
+
reflect: !0
|
|
95
|
+
})], v.prototype, "header", void 0), e([a({
|
|
96
|
+
type: String,
|
|
97
|
+
reflect: !0
|
|
98
|
+
})], v.prototype, "align", void 0), e([a({
|
|
99
|
+
type: String,
|
|
100
|
+
reflect: !0
|
|
101
|
+
})], v.prototype, "padding", void 0), v = e([i("flint-table-cell")], v);
|
|
102
|
+
var y = class extends t {
|
|
103
|
+
static {
|
|
104
|
+
this.styles = r(f);
|
|
105
|
+
}
|
|
106
|
+
render() {
|
|
107
|
+
return n`<slot></slot>`;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
y = e([i("flint-table-footer")], y);
|
|
111
|
+
//#endregion
|
|
112
|
+
export { y as a, p as i, g as n, h as o, v as r, _ as s, m as t };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a, state as o } from "lit/decorators.js";
|
|
4
|
+
//#region src/table/flint-table-pagination.css?inline
|
|
5
|
+
var s = ":host{font-family:var(--flint-font-family);color:var(--flint-text-color-muted);border-top:1px solid var(--flint-border-color);justify-content:flex-end;align-items:center;padding:8px 16px;font-size:.875rem;display:flex}.spacer{flex:100%}.actions{align-items:center;gap:16px;display:flex}.nav-buttons{gap:4px;display:flex}button{cursor:pointer;width:32px;height:32px;color:var(--flint-text-color);background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;transition:background-color .2s;display:flex}button:hover:not(:disabled){background-color:var(--flint-hover-color)}button:disabled{color:var(--flint-text-color-muted);cursor:not-allowed}select{font-family:inherit;font-size:inherit;color:inherit;cursor:pointer;background:0 0;border:none;outline:none;padding:4px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.count = 0, this.page = 0, this.rowsPerPage = 10, this.rowsPerPageOptions = [
|
|
8
|
+
5,
|
|
9
|
+
10,
|
|
10
|
+
25
|
|
11
|
+
], this.defaultPage = 0, this.defaultRowsPerPage = -1, this.showFirstLast = !1, this.labelRowsPerPage = "Rows per page:", this._page = 0, this._rowsPerPage = 10, this._firstUpdate = !0;
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.styles = r(s);
|
|
15
|
+
}
|
|
16
|
+
willUpdate(e) {
|
|
17
|
+
if (this._firstUpdate) {
|
|
18
|
+
this._firstUpdate = !1, this._page = this.defaultPage > 0 ? this.defaultPage : this.page, this._rowsPerPage = this.defaultRowsPerPage > 0 ? this.defaultRowsPerPage : this.rowsPerPage;
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
e.has("page") && (this._page = this.page), e.has("rowsPerPage") && (this._rowsPerPage = this.rowsPerPage);
|
|
22
|
+
}
|
|
23
|
+
_go(e) {
|
|
24
|
+
let t = this._page + e;
|
|
25
|
+
this._page = t, this.dispatchEvent(new CustomEvent("flint-pagination-page-change", {
|
|
26
|
+
detail: { page: t },
|
|
27
|
+
bubbles: !0,
|
|
28
|
+
composed: !0
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
_goTo(e) {
|
|
32
|
+
this._page = e, this.dispatchEvent(new CustomEvent("flint-pagination-page-change", {
|
|
33
|
+
detail: { page: e },
|
|
34
|
+
bubbles: !0,
|
|
35
|
+
composed: !0
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
_handleRowChange(e) {
|
|
39
|
+
let t = parseInt(e.target.value);
|
|
40
|
+
this._rowsPerPage = t, this._page = 0, this.dispatchEvent(new CustomEvent("flint-pagination-rows-per-page-change", {
|
|
41
|
+
detail: { rowsPerPage: t },
|
|
42
|
+
bubbles: !0,
|
|
43
|
+
composed: !0
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
get _lastPage() {
|
|
47
|
+
return Math.max(0, Math.ceil(this.count / this._rowsPerPage) - 1);
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
let e = this._page * this._rowsPerPage + 1, t = Math.min(this.count, (this._page + 1) * this._rowsPerPage), r = this._page === 0, i = t >= this.count;
|
|
51
|
+
return n`
|
|
52
|
+
<div class="spacer"></div>
|
|
53
|
+
<div class="actions">
|
|
54
|
+
<span>${this.labelRowsPerPage}</span>
|
|
55
|
+
<select @change=${this._handleRowChange} aria-label="${this.labelRowsPerPage}">
|
|
56
|
+
${this.rowsPerPageOptions.map((e) => n`
|
|
57
|
+
<option value=${e} ?selected=${this._rowsPerPage === e}>${e}</option>
|
|
58
|
+
`)}
|
|
59
|
+
</select>
|
|
60
|
+
<span>${e}-${t} of ${this.count}</span>
|
|
61
|
+
<div class="nav-buttons">
|
|
62
|
+
${this.showFirstLast ? n`
|
|
63
|
+
<button ?disabled=${r} @click=${() => this._goTo(0)} aria-label="First page">
|
|
64
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/></svg>
|
|
65
|
+
</button>
|
|
66
|
+
` : ""}
|
|
67
|
+
<button ?disabled=${r} @click=${() => this._go(-1)} aria-label="Previous page">
|
|
68
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>
|
|
69
|
+
</button>
|
|
70
|
+
<button ?disabled=${i} @click=${() => this._go(1)} aria-label="Next page">
|
|
71
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>
|
|
72
|
+
</button>
|
|
73
|
+
${this.showFirstLast ? n`
|
|
74
|
+
<button ?disabled=${i} @click=${() => this._goTo(this._lastPage)} aria-label="Last page">
|
|
75
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/></svg>
|
|
76
|
+
</button>
|
|
77
|
+
` : ""}
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
`;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
e([a({ type: Number })], c.prototype, "count", void 0), e([a({ type: Number })], c.prototype, "page", void 0), e([a({ type: Number })], c.prototype, "rowsPerPage", void 0), e([a({ type: Array })], c.prototype, "rowsPerPageOptions", void 0), e([a({
|
|
84
|
+
type: Number,
|
|
85
|
+
attribute: "default-page"
|
|
86
|
+
})], c.prototype, "defaultPage", void 0), e([a({
|
|
87
|
+
type: Number,
|
|
88
|
+
attribute: "default-rows-per-page"
|
|
89
|
+
})], c.prototype, "defaultRowsPerPage", void 0), e([a({
|
|
90
|
+
type: Boolean,
|
|
91
|
+
attribute: "show-first-last"
|
|
92
|
+
})], c.prototype, "showFirstLast", void 0), e([a({
|
|
93
|
+
type: String,
|
|
94
|
+
attribute: "label-rows-per-page"
|
|
95
|
+
})], c.prototype, "labelRowsPerPage", void 0), e([o()], c.prototype, "_page", void 0), e([o()], c.prototype, "_rowsPerPage", void 0), c = e([i("flint-table-pagination")], c);
|
|
96
|
+
//#endregion
|
|
97
|
+
export { c as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a } from "lit/decorators.js";
|
|
4
|
+
import { classMap as o } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/table/flint-table-sort-label.css?inline
|
|
6
|
+
var s = ":host{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;transition:color .2s;display:inline-flex}:host(:hover){color:var(--flint-text-color)}:host([active]){color:var(--flint-text-color);font-weight:700}.icon{opacity:0;width:18px;height:18px;margin-left:4px;transition:transform .2s,opacity .2s}:host(:hover) .icon,:host([active]) .icon{opacity:1}.icon.desc{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.active = !1, this.direction = "asc";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
updated(e) {
|
|
14
|
+
if (e.has("active") || e.has("direction")) {
|
|
15
|
+
let e = this.active ? this.direction === "asc" ? "ascending" : "descending" : "none";
|
|
16
|
+
this.setAttribute("aria-sort", e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return n`
|
|
21
|
+
<slot></slot>
|
|
22
|
+
<svg class=${o({
|
|
23
|
+
icon: !0,
|
|
24
|
+
asc: this.direction === "asc",
|
|
25
|
+
desc: this.direction === "desc"
|
|
26
|
+
})} viewBox="0 0 24 24" fill="currentColor">
|
|
27
|
+
<path d="M7 10l5 5 5-5z"/>
|
|
28
|
+
</svg>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
e([a({
|
|
33
|
+
type: Boolean,
|
|
34
|
+
reflect: !0
|
|
35
|
+
})], c.prototype, "active", void 0), e([a({ type: String })], c.prototype, "direction", void 0), c = e([i("flint-table-sort-label")], c);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { c as t };
|