@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,201 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { EMPTY_RANGE as t, defaultShortcuts as n, isoToDisplay as r } from "../date-range-picker/date-range-helpers.js";
|
|
3
|
+
import { LitElement as i, html as a, nothing as o, unsafeCSS as s } from "lit";
|
|
4
|
+
import { customElement as c, property as l, state as u } from "lit/decorators.js";
|
|
5
|
+
//#region src/date-range-picker/flint-date-range-picker.css?inline
|
|
6
|
+
var d = ":host{font-family:var(--flint-font-family);display:inline-block}.field-label{color:var(--flint-text-color-muted);margin-bottom:4px;font-size:.75rem;font-weight:500;display:block}.mobile-field{background:var(--flint-input-bg);border:1.5px solid var(--flint-border-color);border-radius:var(--flint-border-radius-md);color:var(--flint-text-color);cursor:pointer;box-sizing:border-box;align-items:center;gap:8px;min-width:260px;padding:10px 44px 10px 14px;font-size:.9375rem;transition:border-color .15s;display:inline-flex;position:relative}.mobile-field:hover{border-color:var(--flint-primary-color)}:host([disabled]) .mobile-field{background:var(--flint-input-disabled-bg);color:var(--flint-text-color-muted);cursor:not-allowed;border-color:var(--flint-border-color)}.mobile-field-placeholder{color:var(--flint-input-placeholder-color)}.mobile-field-icon{color:var(--flint-text-color-muted);font-size:1rem;position:absolute;right:12px}.popover-anchor{display:inline-block;position:relative}.popover{z-index:1400;background:var(--flint-surface-1);border-radius:var(--flint-border-radius-xl);box-shadow:var(--flint-shadow-lg);transform-origin:0 0;opacity:0;visibility:hidden;pointer-events:none;transition:transform .15s cubic-bezier(.4,0,.2,1),opacity .15s,visibility .15s;display:flex;position:absolute;top:calc(100% + 6px);left:0;transform:scale(.94)translateY(-4px)}.popover.open{opacity:1;visibility:visible;pointer-events:auto;transform:scale(1)translateY(0)}.shortcuts-panel{border-right:1px solid var(--flint-border-color);background:var(--flint-surface-1);flex-direction:column;gap:2px;min-width:148px;padding:12px 8px;display:flex}.shortcut-btn{text-align:left;cursor:pointer;color:var(--flint-text-color);white-space:nowrap;background:0 0;border:none;border-radius:6px;padding:8px 12px;font-family:inherit;font-size:.8125rem;transition:background .12s,color .12s}.shortcut-btn:hover{background:var(--flint-primary-color-light);color:var(--flint-primary-color)}.shortcut-btn.active{background:var(--flint-primary-color);color:var(--flint-text-color-on-primary)}.popover-body{flex-direction:column;display:flex}.popover-actions{border-top:1px solid var(--flint-border-color);justify-content:flex-end;gap:8px;padding:4px 12px 12px;display:flex}.action-btn{cursor:pointer;border:none;border-radius:6px;padding:6px 14px;font-family:inherit;font-size:.875rem;font-weight:600;transition:background .12s}.action-btn.cancel{color:var(--flint-text-color-muted);background:0 0}.action-btn.cancel:hover{background:var(--flint-hover-color)}.action-btn.ok{background:var(--flint-primary-color);color:var(--flint-text-color-on-primary)}.action-btn.ok:hover{background:var(--flint-primary-color-hover)}.click-away{z-index:1399;display:none;position:fixed;inset:0}.click-away.open{display:block}.static-wrapper{border-radius:var(--flint-border-radius-xl);box-shadow:var(--flint-shadow-sm), 0 0 0 1px var(--flint-border-color);display:inline-block;overflow:hidden}.helper-text{color:var(--flint-text-color-muted);margin-top:4px;font-size:.75rem}:host([error]) .helper-text{color:var(--flint-error-color)}:host([error]) flint-single-input-date-range-field{--flint-border-color:var(--flint-error-color)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", f = class extends i {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.value = [...t], this.label = "Date Range", this.variant = "desktop", this.multiInput = !1, this.shortcuts = !1, this.shortcutItems = [], this.min = "", this.max = "", this.name = "", this.disabled = !1, this.readonly = !1, this.error = !1, this.helperText = "", this._open = !1, this._pendingValue = [...t], this._activeShortcut = "";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = s(d);
|
|
12
|
+
}
|
|
13
|
+
get _resolvedVariant() {
|
|
14
|
+
return this.variant === "auto" ? window.matchMedia("(pointer: coarse)").matches ? "mobile" : "desktop" : this.variant;
|
|
15
|
+
}
|
|
16
|
+
get _effectiveShortcuts() {
|
|
17
|
+
return this.shortcutItems.length ? this.shortcutItems : n();
|
|
18
|
+
}
|
|
19
|
+
_openPicker() {
|
|
20
|
+
this.disabled || this.readonly || this._open || (this._pendingValue = [...this.value], this._open = !0);
|
|
21
|
+
}
|
|
22
|
+
_closePicker() {
|
|
23
|
+
this._open = !1;
|
|
24
|
+
}
|
|
25
|
+
_handleCalendarSelect(e) {
|
|
26
|
+
let t = e.detail.value;
|
|
27
|
+
this._pendingValue = t, this._activeShortcut = "", this._resolvedVariant === "desktop" && t[0] && t[1] && this._commit(t);
|
|
28
|
+
}
|
|
29
|
+
_handleFieldRangeChange(e) {
|
|
30
|
+
let t = e.detail.value;
|
|
31
|
+
this._commit(t);
|
|
32
|
+
}
|
|
33
|
+
async _handleShortcut(e) {
|
|
34
|
+
let t = e.getValue();
|
|
35
|
+
this._pendingValue = t, this._activeShortcut = e.label;
|
|
36
|
+
let n = this._resolvedVariant;
|
|
37
|
+
(n === "desktop" || n === "static") && this._commit(t), t[0] && (await this.updateComplete, (this.shadowRoot?.querySelector("flint-date-range-calendar"))?.navigateTo?.(t[0]));
|
|
38
|
+
}
|
|
39
|
+
_handleStaticSelect(e) {
|
|
40
|
+
let t = e.detail.value;
|
|
41
|
+
this._commit(t);
|
|
42
|
+
}
|
|
43
|
+
_commit(e) {
|
|
44
|
+
let [t, n] = this.value, [r, i] = e;
|
|
45
|
+
if (r === t && i === n) {
|
|
46
|
+
this._closePicker();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.value = e, this.dispatchEvent(new CustomEvent("flint-date-range-picker-change", {
|
|
50
|
+
detail: { value: e },
|
|
51
|
+
bubbles: !0,
|
|
52
|
+
composed: !0
|
|
53
|
+
})), e[0] && e[1] && this._closePicker();
|
|
54
|
+
}
|
|
55
|
+
_handleMobileOk() {
|
|
56
|
+
this._commit(this._pendingValue[0] && this._pendingValue[1] ? this._pendingValue : this.value);
|
|
57
|
+
}
|
|
58
|
+
_handleMobileCancel() {
|
|
59
|
+
this._pendingValue = [...this.value], this._activeShortcut = "", this._closePicker();
|
|
60
|
+
}
|
|
61
|
+
_formatRange(e) {
|
|
62
|
+
let [t, n] = e;
|
|
63
|
+
return !t && !n ? "" : `${r(t) || "?"} – ${r(n) || "?"}`;
|
|
64
|
+
}
|
|
65
|
+
_renderShortcuts() {
|
|
66
|
+
return this.shortcuts ? a`
|
|
67
|
+
<div class="shortcuts-panel">
|
|
68
|
+
${this._effectiveShortcuts.map((e) => a`
|
|
69
|
+
<button
|
|
70
|
+
class="shortcut-btn ${this._activeShortcut === e.label ? "active" : ""}"
|
|
71
|
+
@click=${() => this._handleShortcut(e)}
|
|
72
|
+
>${e.label}</button>
|
|
73
|
+
`)}
|
|
74
|
+
</div>
|
|
75
|
+
` : o;
|
|
76
|
+
}
|
|
77
|
+
_renderCalendar(e, t) {
|
|
78
|
+
return a`
|
|
79
|
+
<flint-date-range-calendar
|
|
80
|
+
.value=${e}
|
|
81
|
+
.min=${this.min}
|
|
82
|
+
.max=${this.max}
|
|
83
|
+
?disabled=${this.disabled}
|
|
84
|
+
@flint-date-range-picker-select=${t}
|
|
85
|
+
></flint-date-range-calendar>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
_renderField() {
|
|
89
|
+
return a`
|
|
90
|
+
${this.label ? a`<label class="field-label">${this.label}</label>` : o}
|
|
91
|
+
<flint-single-input-date-range-field
|
|
92
|
+
.value=${this.value}
|
|
93
|
+
.min=${this.min}
|
|
94
|
+
.max=${this.max}
|
|
95
|
+
.name=${this.name}
|
|
96
|
+
?disabled=${this.disabled}
|
|
97
|
+
?readonly=${this.readonly}
|
|
98
|
+
?error=${this.error}
|
|
99
|
+
@flint-date-range-picker-change=${this._handleFieldRangeChange}
|
|
100
|
+
@focus=${this._openPicker}
|
|
101
|
+
></flint-single-input-date-range-field>
|
|
102
|
+
${this.helperText ? a`<p class="helper-text">${this.helperText}</p>` : o}
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
_renderMobileField() {
|
|
106
|
+
let e = this._formatRange(this.value);
|
|
107
|
+
return a`
|
|
108
|
+
${this.label ? a`<label class="field-label">${this.label}</label>` : o}
|
|
109
|
+
<div class="mobile-field"
|
|
110
|
+
role="button"
|
|
111
|
+
tabindex=${this.disabled ? -1 : 0}
|
|
112
|
+
aria-label="Select date range"
|
|
113
|
+
aria-haspopup="dialog"
|
|
114
|
+
aria-expanded=${this._open ? "true" : "false"}
|
|
115
|
+
@click=${this._openPicker}
|
|
116
|
+
@keydown=${(e) => (e.key === "Enter" || e.key === " ") && this._openPicker()}
|
|
117
|
+
>
|
|
118
|
+
${e ? a`<span>${e}</span>` : a`<span class="mobile-field-placeholder">Start date – End date</span>`}
|
|
119
|
+
<span class="mobile-field-icon">📅</span>
|
|
120
|
+
</div>
|
|
121
|
+
${this.helperText ? a`<p class="helper-text">${this.helperText}</p>` : o}
|
|
122
|
+
`;
|
|
123
|
+
}
|
|
124
|
+
_renderDesktop() {
|
|
125
|
+
let e = this._pendingValue[0] || this._pendingValue[1] ? this._pendingValue : this.value;
|
|
126
|
+
return a`
|
|
127
|
+
<div>
|
|
128
|
+
<div class="popover-anchor">
|
|
129
|
+
${this._renderField()}
|
|
130
|
+
<div class="click-away ${this._open ? "open" : ""}" @click=${this._closePicker}></div>
|
|
131
|
+
<div class="popover ${this._open ? "open" : ""}" role="dialog" aria-label="Date range picker">
|
|
132
|
+
${this._renderShortcuts()}
|
|
133
|
+
<div class="popover-body">
|
|
134
|
+
${this._renderCalendar(e, (e) => this._handleCalendarSelect(e))}
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
`;
|
|
140
|
+
}
|
|
141
|
+
_renderMobile() {
|
|
142
|
+
let e = this._pendingValue[0] || this._pendingValue[1] ? this._pendingValue : this.value;
|
|
143
|
+
return a`
|
|
144
|
+
<div>
|
|
145
|
+
${this._renderMobileField()}
|
|
146
|
+
<flint-dialog
|
|
147
|
+
.open=${this._open}
|
|
148
|
+
disable-backdrop-close
|
|
149
|
+
@close=${this._closePicker}
|
|
150
|
+
style="--flint-dialog-width:640px"
|
|
151
|
+
>
|
|
152
|
+
<flint-dialog-title>Select Date Range</flint-dialog-title>
|
|
153
|
+
<flint-dialog-content style="padding:0 12px 4px;display:flex;">
|
|
154
|
+
${this._renderShortcuts()}
|
|
155
|
+
${this._renderCalendar(e, (e) => this._handleCalendarSelect(e))}
|
|
156
|
+
</flint-dialog-content>
|
|
157
|
+
<flint-dialog-actions>
|
|
158
|
+
<button class="action-btn cancel" @click=${this._handleMobileCancel}>Cancel</button>
|
|
159
|
+
<button class="action-btn ok"
|
|
160
|
+
?disabled=${!this._pendingValue[0] || !this._pendingValue[1]}
|
|
161
|
+
@click=${this._handleMobileOk}>OK</button>
|
|
162
|
+
</flint-dialog-actions>
|
|
163
|
+
</flint-dialog>
|
|
164
|
+
</div>
|
|
165
|
+
`;
|
|
166
|
+
}
|
|
167
|
+
_renderStatic() {
|
|
168
|
+
return a`
|
|
169
|
+
<div class="static-wrapper">
|
|
170
|
+
${this.shortcuts ? a`
|
|
171
|
+
<div style="display:flex;">
|
|
172
|
+
${this._renderShortcuts()}
|
|
173
|
+
${this._renderCalendar(this.value, (e) => this._handleStaticSelect(e))}
|
|
174
|
+
</div>
|
|
175
|
+
` : this._renderCalendar(this.value, (e) => this._handleStaticSelect(e))}
|
|
176
|
+
</div>
|
|
177
|
+
`;
|
|
178
|
+
}
|
|
179
|
+
render() {
|
|
180
|
+
let e = this._resolvedVariant;
|
|
181
|
+
return e === "static" ? this._renderStatic() : e === "mobile" ? this._renderMobile() : this._renderDesktop();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
e([l({ type: Array })], f.prototype, "value", void 0), e([l({ type: String })], f.prototype, "label", void 0), e([l({ type: String })], f.prototype, "variant", void 0), e([l({
|
|
185
|
+
type: Boolean,
|
|
186
|
+
attribute: "multi-input"
|
|
187
|
+
})], f.prototype, "multiInput", void 0), e([l({ type: Boolean })], f.prototype, "shortcuts", void 0), e([l({ type: Array })], f.prototype, "shortcutItems", void 0), e([l({ type: String })], f.prototype, "min", void 0), e([l({ type: String })], f.prototype, "max", void 0), e([l({ type: String })], f.prototype, "name", void 0), e([l({
|
|
188
|
+
type: Boolean,
|
|
189
|
+
reflect: !0
|
|
190
|
+
})], f.prototype, "disabled", void 0), e([l({
|
|
191
|
+
type: Boolean,
|
|
192
|
+
reflect: !0
|
|
193
|
+
})], f.prototype, "readonly", void 0), e([l({
|
|
194
|
+
type: Boolean,
|
|
195
|
+
reflect: !0
|
|
196
|
+
})], f.prototype, "error", void 0), e([l({
|
|
197
|
+
type: String,
|
|
198
|
+
attribute: "helper-text"
|
|
199
|
+
})], f.prototype, "helperText", void 0), e([u()], f.prototype, "_open", void 0), e([u()], f.prototype, "_pendingValue", void 0), e([u()], f.prototype, "_activeShortcut", void 0), f = e([c("flint-date-range-picker")], f);
|
|
200
|
+
//#endregion
|
|
201
|
+
export { f as t };
|
|
@@ -0,0 +1,113 @@
|
|
|
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/dialog/flint-dialog.css?inline
|
|
6
|
+
var s = ":host{display:block}.dialog-panel{background-color:var(--flint-surface-background,white);border-radius:var(--flint-border-radius-xl,12px);box-shadow:var(--flint-shadow-xl,0 20px 25px -5px #0000001a);max-width:90vw;max-height:var(--flint-dialog-max-height,90vh);width:var(--flint-dialog-width,444px);opacity:0;pointer-events:none;flex-direction:column;transition:opacity .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden;transform:scale(.9)}.dialog-panel.open{opacity:1;pointer-events:auto;transform:scale(1)}.dialog-panel.transition-slide-up{transform:translateY(40px)}.dialog-panel.transition-slide-up.open{transform:translateY(0)}.dialog-panel.transition-slide-down{transform:translateY(-40px)}.dialog-panel.transition-slide-down.open{transform:translateY(0)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = ":host{font-family:var(--flint-font-family);color:var(--flint-text-color);padding:20px 24px 12px;font-size:1.25rem;font-weight:600;display:block}", l = ":host{-webkit-overflow-scrolling:touch;flex:auto;padding:0 24px 20px;display:block;overflow-y:auto}", u = ":host{font-family:var(--flint-font-family);color:var(--flint-text-color-muted);margin-bottom:8px;font-size:.9375rem;line-height:1.6;display:block}", d = ":host{border-top:1px solid var(--flint-border-color);justify-content:flex-end;align-items:center;gap:8px;padding:8px 16px 16px;display:flex}:host([align=start]){justify-content:flex-start}:host([align=center]){justify-content:center}:host([align=space-between]){justify-content:space-between}", f = [], p = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.open = !1, this._lastFocused = null, this.transition = "scale", this.disableBackdropClose = !1, this._handleKeyDown = (e) => {
|
|
9
|
+
e.key === "Escape" && this.open && f[f.length - 1] === this && this.requestClose();
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.styles = r(s);
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback(), window.addEventListener("keydown", this._handleKeyDown);
|
|
17
|
+
}
|
|
18
|
+
updated(e) {
|
|
19
|
+
if (super.updated(e), e.has("open")) if (this.open) f.includes(this) || f.push(this), this._lastFocused = document.activeElement, this.updateComplete.then(() => {
|
|
20
|
+
this.shadowRoot?.querySelector(".dialog-panel")?.focus();
|
|
21
|
+
});
|
|
22
|
+
else {
|
|
23
|
+
let e = f.indexOf(this);
|
|
24
|
+
e !== -1 && f.splice(e, 1), this._lastFocused?.focus(), this._lastFocused = null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
super.disconnectedCallback(), window.removeEventListener("keydown", this._handleKeyDown);
|
|
29
|
+
let e = f.indexOf(this);
|
|
30
|
+
e !== -1 && f.splice(e, 1), this._lastFocused = null;
|
|
31
|
+
}
|
|
32
|
+
requestClose() {
|
|
33
|
+
this.dispatchEvent(new CustomEvent("close", {
|
|
34
|
+
bubbles: !0,
|
|
35
|
+
composed: !0
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
_handleBackdropClose(e) {
|
|
39
|
+
e.stopPropagation(), this.disableBackdropClose || this.requestClose();
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
let e = o({
|
|
43
|
+
"dialog-panel": !0,
|
|
44
|
+
open: this.open,
|
|
45
|
+
[`transition-${this.transition}`]: this.transition !== "scale"
|
|
46
|
+
});
|
|
47
|
+
return n`
|
|
48
|
+
<flint-backdrop .open=${this.open} @flint-backdrop-close=${this._handleBackdropClose}>
|
|
49
|
+
<div
|
|
50
|
+
class=${e}
|
|
51
|
+
tabindex="-1"
|
|
52
|
+
role="dialog"
|
|
53
|
+
aria-modal="true"
|
|
54
|
+
aria-labelledby="dialog-title"
|
|
55
|
+
@click=${(e) => e.stopPropagation()}
|
|
56
|
+
>
|
|
57
|
+
<slot></slot>
|
|
58
|
+
</div>
|
|
59
|
+
</flint-backdrop>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
e([a({
|
|
64
|
+
type: Boolean,
|
|
65
|
+
reflect: !0
|
|
66
|
+
})], p.prototype, "open", void 0), e([a({ type: String })], p.prototype, "transition", void 0), e([a({
|
|
67
|
+
type: Boolean,
|
|
68
|
+
attribute: "disable-backdrop-close"
|
|
69
|
+
})], p.prototype, "disableBackdropClose", void 0), p = e([i("flint-dialog")], p);
|
|
70
|
+
var m = class extends t {
|
|
71
|
+
static {
|
|
72
|
+
this.styles = r(c);
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
return n`<h2 id="dialog-title" style="margin:0;font-size:inherit;font-weight:inherit;"><slot></slot></h2>`;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
m = e([i("flint-dialog-title")], m);
|
|
79
|
+
var h = class extends t {
|
|
80
|
+
static {
|
|
81
|
+
this.styles = r(l);
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return n`<slot></slot>`;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
h = e([i("flint-dialog-content")], h);
|
|
88
|
+
var g = class extends t {
|
|
89
|
+
static {
|
|
90
|
+
this.styles = r(u);
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
return n`<slot></slot>`;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
g = e([i("flint-dialog-content-text")], g);
|
|
97
|
+
var _ = class extends t {
|
|
98
|
+
constructor(...e) {
|
|
99
|
+
super(...e), this.align = "end";
|
|
100
|
+
}
|
|
101
|
+
static {
|
|
102
|
+
this.styles = r(d);
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
return n`<slot></slot>`;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
e([a({
|
|
109
|
+
type: String,
|
|
110
|
+
reflect: !0
|
|
111
|
+
})], _.prototype, "align", void 0), _ = e([i("flint-dialog-actions")], _);
|
|
112
|
+
//#endregion
|
|
113
|
+
export { m as a, g as i, _ as n, h as r, p 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/divider/flint-divider.css?inline
|
|
6
|
+
var s = ":host{--flint-divider-color:var(--flint-border-color);--flint-divider-margin:16px;--flint-divider-thickness:1px;display:block}.divider-container{box-sizing:border-box;width:100%;margin:var(--flint-divider-margin) 0;align-items:center;display:flex}.divider-line{height:var(--flint-divider-thickness);background-color:var(--flint-divider-color);border:none;flex-grow:1}.divider-content{font-family:var(--flint-font-family);color:var(--flint-text-color-muted);white-space:nowrap;padding:0 16px;font-size:.875rem}:host([orientation=vertical]){width:auto;min-width:var(--flint-divider-thickness);align-self:stretch;margin:0;display:flex}:host([orientation=vertical]) .divider-container{width:auto;height:100%;min-width:var(--flint-divider-thickness);flex-direction:column;margin:0}:host([orientation=vertical]) .divider-line{width:var(--flint-divider-thickness);flex:1;height:auto;min-height:24px}.variant-middle{width:auto;margin-left:32px;margin-right:32px}.variant-inset{margin-left:72px}.weight-light{--flint-divider-thickness:1px}.weight-medium{--flint-divider-thickness:2px}.weight-heavy{--flint-divider-thickness:4px}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.orientation = "horizontal", this.variant = "full", this.weight = "light", this.textAlign = "center";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return n`
|
|
15
|
+
<div
|
|
16
|
+
class="divider-container ${o({
|
|
17
|
+
[`variant-${this.variant}`]: !0,
|
|
18
|
+
[`weight-${this.weight}`]: !0
|
|
19
|
+
})}"
|
|
20
|
+
role="separator"
|
|
21
|
+
aria-orientation="${this.orientation}"
|
|
22
|
+
>
|
|
23
|
+
${this.textAlign !== "left" || this.orientation === "vertical" ? n`<div class="divider-line"></div>` : ""}
|
|
24
|
+
|
|
25
|
+
<slot class="divider-content"></slot>
|
|
26
|
+
|
|
27
|
+
${this.textAlign !== "right" || this.orientation === "vertical" ? n`<div class="divider-line"></div>` : ""}
|
|
28
|
+
</div>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
e([a({
|
|
33
|
+
type: String,
|
|
34
|
+
reflect: !0
|
|
35
|
+
})], c.prototype, "orientation", void 0), e([a({ type: String })], c.prototype, "variant", void 0), e([a({ type: String })], c.prototype, "weight", void 0), e([a({ type: String })], c.prototype, "textAlign", void 0), c = e([i("flint-divider")], c);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { c as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
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/drawer/flint-drawer.css?inline
|
|
5
|
+
var o = ":host,:host([variant=temporary]){z-index:var(--flint-drawer-z-index,1200);pointer-events:none;display:block;position:fixed;inset:0;overflow:hidden}:host([container]),:host([container][variant=temporary]){position:absolute}:host([variant=persistent]){display:contents}:host([variant=mini]){pointer-events:auto;z-index:auto;display:flex;position:static;inset:auto;overflow:visible}.backdrop{background:var(--flint-backdrop-color);opacity:0;pointer-events:none;transition:opacity .25s;position:absolute;inset:0}.backdrop.open{opacity:1;pointer-events:auto}.paper{background:var(--flint-drawer-bg,var(--flint-surface-1));pointer-events:auto;outline:none;flex-direction:column;display:flex;position:absolute;overflow-y:auto}:host(:not([variant])) .paper,:host([variant=temporary]) .paper{width:var(--flint-drawer-width,250px);box-shadow:var(--flint-drawer-shadow);transition:transform var(--flint-drawer-transition,.225s cubic-bezier(0, 0, .2, 1));top:0;bottom:0;left:0;transform:translate(-100%)}:host(:not([variant])[open]) .paper,:host([variant=temporary][open]) .paper{transform:translate(0)}:host([variant=temporary][anchor=right]) .paper{left:auto;right:0;transform:translate(100%)}:host([variant=temporary][anchor=right][open]) .paper{transform:translate(0)}:host([variant=temporary][anchor=top]) .paper{width:auto;height:var(--flint-drawer-height,auto);inset:0 0 auto;transform:translateY(-100%)}:host([variant=temporary][anchor=top][open]) .paper{transform:translateY(0)}:host([variant=temporary][anchor=bottom]) .paper{width:auto;height:var(--flint-drawer-height,auto);inset:auto 0 0;transform:translateY(100%)}:host([variant=temporary][anchor=bottom][open]) .paper{transform:translateY(0)}:host([variant=persistent]) .paper{box-shadow:none;border-right:1px solid var(--flint-border-color);pointer-events:auto;transition:none;position:relative;transform:none}:host([variant=persistent][anchor=right]) .paper{border-right:none;border-left:1px solid var(--flint-border-color)}:host([variant=persistent]) .paper:not(.open){display:none}:host([variant=mini]) .paper{box-shadow:none;border-right:1px solid var(--flint-border-color);width:var(--flint-drawer-mini-width,72px);white-space:nowrap;transition:width var(--flint-drawer-transition,.225s cubic-bezier(0, 0, .2, 1));pointer-events:auto;flex-shrink:0;position:relative;overflow-x:hidden;transform:none}:host([variant=mini][anchor=right]) .paper{border-right:none;border-left:1px solid var(--flint-border-color)}:host([variant=mini][open]) .paper{width:var(--flint-drawer-width,250px)}:host([variant=mini]:not([open])) ::slotted([data-drawer-hide-mini]){opacity:0;pointer-events:none}::slotted([data-drawer-hide-mini]){transition:opacity .18s}.edge{background:var(--flint-drawer-bg,var(--flint-surface-1));border:1px solid var(--flint-border-color);cursor:pointer;pointer-events:auto;justify-content:center;align-items:center;display:none;position:absolute;box-shadow:0 1px 3px #0000001f}:host([edge]:not([variant])) .edge,:host([edge][variant=temporary]) .edge{display:flex}.edge-left{width:var(--flint-drawer-edge-width,16px);border-radius:0 8px 8px 0;top:0;bottom:0;left:0}.edge-right{width:var(--flint-drawer-edge-width,16px);border-radius:8px 0 0 8px;top:0;bottom:0;right:0}.edge-top{height:var(--flint-drawer-edge-width,16px);border-radius:0 0 8px 8px;top:0;left:0;right:0}.edge-bottom{height:var(--flint-drawer-edge-width,16px);border-radius:8px 8px 0 0;bottom:0;left:0;right:0}.edge-handle{background:var(--flint-border-color);border-radius:2px;width:4px;height:32px}.edge-top .edge-handle,.edge-bottom .edge-handle{width:32px;height:4px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.open = !1, this.anchor = "left", this.variant = "temporary", this.edge = !1, this.container = !1, this.label = "Drawer", this._lastFocused = null, this._boundKeyDown = (e) => {
|
|
8
|
+
e.defaultPrevented || this.open && e.key === "Escape" && this.variant === "temporary" && (e.preventDefault(), this._close());
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = r(o);
|
|
13
|
+
}
|
|
14
|
+
connectedCallback() {
|
|
15
|
+
super.connectedCallback(), window.addEventListener("keydown", this._boundKeyDown);
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
window.removeEventListener("keydown", this._boundKeyDown), super.disconnectedCallback();
|
|
19
|
+
}
|
|
20
|
+
updated(e) {
|
|
21
|
+
e.has("open") && this.variant === "temporary" && (this.open ? (this._lastFocused = document.activeElement, this.shadowRoot?.querySelector(".paper")?.focus()) : (this._lastFocused?.focus(), this._lastFocused = null));
|
|
22
|
+
}
|
|
23
|
+
_close() {
|
|
24
|
+
this.dispatchEvent(new CustomEvent("flint-drawer-close", {
|
|
25
|
+
bubbles: !0,
|
|
26
|
+
composed: !0
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
let e = this.variant === "temporary", t = this.edge && !this.open && e, r = this.variant === "mini" ? "false" : String(!this.open);
|
|
31
|
+
return n`
|
|
32
|
+
${e ? n`
|
|
33
|
+
<div
|
|
34
|
+
class="backdrop ${this.open ? "open" : ""}"
|
|
35
|
+
@click=${this._close}
|
|
36
|
+
role="presentation"
|
|
37
|
+
aria-hidden="true"
|
|
38
|
+
></div>
|
|
39
|
+
` : ""}
|
|
40
|
+
|
|
41
|
+
${t ? n`
|
|
42
|
+
<div class="edge edge-${this.anchor}" @click=${() => {
|
|
43
|
+
this.open = !0;
|
|
44
|
+
}}>
|
|
45
|
+
<div class="edge-handle"></div>
|
|
46
|
+
</div>
|
|
47
|
+
` : ""}
|
|
48
|
+
|
|
49
|
+
<div
|
|
50
|
+
class="paper ${this.open ? "open" : ""}"
|
|
51
|
+
role=${e ? "dialog" : "complementary"}
|
|
52
|
+
aria-modal=${e ? String(this.open) : "false"}
|
|
53
|
+
aria-label=${this.label}
|
|
54
|
+
aria-hidden=${r}
|
|
55
|
+
tabindex="-1"
|
|
56
|
+
>
|
|
57
|
+
<slot></slot>
|
|
58
|
+
</div>
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
e([a({
|
|
63
|
+
type: Boolean,
|
|
64
|
+
reflect: !0
|
|
65
|
+
})], s.prototype, "open", void 0), e([a({
|
|
66
|
+
type: String,
|
|
67
|
+
reflect: !0
|
|
68
|
+
})], s.prototype, "anchor", void 0), e([a({
|
|
69
|
+
type: String,
|
|
70
|
+
reflect: !0
|
|
71
|
+
})], s.prototype, "variant", void 0), e([a({
|
|
72
|
+
type: Boolean,
|
|
73
|
+
reflect: !0
|
|
74
|
+
})], s.prototype, "edge", void 0), e([a({
|
|
75
|
+
type: Boolean,
|
|
76
|
+
reflect: !0
|
|
77
|
+
})], s.prototype, "container", void 0), e([a({ type: String })], s.prototype, "label", void 0), s = e([i("flint-drawer")], s);
|
|
78
|
+
//#endregion
|
|
79
|
+
export { s as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
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/empty/flint-empty-title.css?inline
|
|
6
|
+
var s = ":host{color:var(--flint-text-color);font-size:1rem;font-weight:600;line-height:1.4;font-family:var(--flint-font-family);margin:0;display:block}", c = ":host{color:var(--flint-text-color-muted);font-size:.875rem;line-height:1.5;font-family:var(--flint-font-family);margin:0;display:block}", l = ":host,.media{justify-content:center;align-items:center;display:flex}.media--icon{background:var(--flint-empty-media-bg,var(--flint-surface-2));width:48px;height:48px;color:var(--flint-empty-media-color,var(--flint-text-color-muted));border-radius:12px}::slotted(svg),::slotted([data-icon]){width:24px;height:24px}", u = ":host{text-align:center;flex-direction:column;align-items:center;gap:8px;display:flex}", d = ":host{flex-direction:column;align-items:center;gap:8px;display:flex}", f = ":host{flex-direction:column;justify-content:center;align-items:center;display:flex}.container{align-items:center;gap:var(--flint-empty-gap,16px);padding:var(--flint-empty-padding,32px);max-width:var(--flint-empty-max-width,480px);box-sizing:border-box;text-align:center;width:100%;font-family:var(--flint-font-family,system-ui, sans-serif);flex-direction:column;display:flex}", p = class extends t {
|
|
7
|
+
static {
|
|
8
|
+
this.styles = r(s);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return n`<slot></slot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
p = e([i("flint-empty-title")], p);
|
|
15
|
+
var m = class extends t {
|
|
16
|
+
static {
|
|
17
|
+
this.styles = r(c);
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return n`<slot></slot>`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
m = e([i("flint-empty-description")], m);
|
|
24
|
+
var h = class extends t {
|
|
25
|
+
constructor(...e) {
|
|
26
|
+
super(...e), this.variant = "default";
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.styles = r(l);
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return n`
|
|
33
|
+
<div class=${o({
|
|
34
|
+
media: !0,
|
|
35
|
+
"media--icon": this.variant === "icon"
|
|
36
|
+
})}>
|
|
37
|
+
<slot></slot>
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
e([a({ reflect: !0 })], h.prototype, "variant", void 0), h = e([i("flint-empty-media")], h);
|
|
43
|
+
var g = class extends t {
|
|
44
|
+
static {
|
|
45
|
+
this.styles = r(u);
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return n`<slot></slot>`;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
g = e([i("flint-empty-header")], g);
|
|
52
|
+
var _ = class extends t {
|
|
53
|
+
static {
|
|
54
|
+
this.styles = r(d);
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
return n`<slot></slot>`;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
_ = e([i("flint-empty-content")], _);
|
|
61
|
+
var v = class extends t {
|
|
62
|
+
static {
|
|
63
|
+
this.styles = r(f);
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return n`
|
|
67
|
+
<div class="container" part="container">
|
|
68
|
+
<slot></slot>
|
|
69
|
+
</div>
|
|
70
|
+
`;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
v = e([i("flint-empty")], v);
|
|
74
|
+
//#endregion
|
|
75
|
+
export { h as a, g as i, _ as n, p as o, m as r, v as t };
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
import { ifDefined as s } from "lit/directives/if-defined.js";
|
|
6
|
+
//#region src/fab/flint-fab.css?inline
|
|
7
|
+
var c = ":host{--flint-fab-size:56px;--flint-fab-background:var(--flint-primary-color);--flint-fab-color:var(--flint-text-color-on-primary);--flint-fab-shadow:var(--flint-shadow-lg);--flint-fab-radius:50%;z-index:100;display:inline-block;position:fixed}.fab{width:var(--flint-fab-size);height:var(--flint-fab-size);border-radius:var(--flint-fab-radius);background-color:var(--flint-fab-background);color:var(--flint-fab-color);box-shadow:var(--flint-fab-shadow);cursor:pointer;border:none;outline:none;justify-content:center;align-items:center;padding:0;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;overflow:hidden}.fab:hover:not(:disabled){box-shadow:var(--flint-shadow-xl);filter:brightness(1.1);transform:translateY(-2px)}.fab:active:not(:disabled){filter:brightness(.9);transform:translateY(0)}.fab:focus-visible{outline:3px solid var(--flint-fab-background);outline-offset:3px}.fab:disabled{opacity:.4;cursor:not-allowed}.fab.extended{border-radius:28px;width:auto;min-width:80px;height:56px;padding:0 20px}.fab.extended .icon-slot{margin-right:12px}.icon-slot{justify-content:center;align-items:center;font-size:24px;display:flex}.label-slot{font-family:var(--flint-font-family);letter-spacing:.1px;text-transform:uppercase;font-size:.875rem;font-weight:500}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.extended = !1, this.disabled = !1, this.label = "Action", this.position = "bottom-right";
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = r(c);
|
|
13
|
+
}
|
|
14
|
+
updated(e) {
|
|
15
|
+
e.has("position") && this._applyPositionToHost();
|
|
16
|
+
}
|
|
17
|
+
_applyPositionToHost() {
|
|
18
|
+
if (this.style.top = "", this.style.bottom = "", this.style.left = "", this.style.right = "", this.style.position = "", this.position === "static") {
|
|
19
|
+
this.style.position = "static";
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
let e = {
|
|
23
|
+
"bottom-right": [
|
|
24
|
+
"",
|
|
25
|
+
"24px",
|
|
26
|
+
"24px",
|
|
27
|
+
""
|
|
28
|
+
],
|
|
29
|
+
"bottom-left": [
|
|
30
|
+
"",
|
|
31
|
+
"24px",
|
|
32
|
+
"",
|
|
33
|
+
"24px"
|
|
34
|
+
],
|
|
35
|
+
"top-right": [
|
|
36
|
+
"24px",
|
|
37
|
+
"",
|
|
38
|
+
"24px",
|
|
39
|
+
""
|
|
40
|
+
],
|
|
41
|
+
"top-left": [
|
|
42
|
+
"24px",
|
|
43
|
+
"",
|
|
44
|
+
"",
|
|
45
|
+
"24px"
|
|
46
|
+
]
|
|
47
|
+
}, [t, n, r, i] = e[this.position] ?? e["bottom-right"];
|
|
48
|
+
this.style.position = "fixed", this.style.top = t, this.style.bottom = n, this.style.right = r, this.style.left = i;
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return n`
|
|
52
|
+
<button
|
|
53
|
+
class="${o({
|
|
54
|
+
fab: !0,
|
|
55
|
+
extended: this.extended
|
|
56
|
+
})}"
|
|
57
|
+
?disabled="${this.disabled}"
|
|
58
|
+
aria-label="${s(this.extended ? void 0 : this.label)}"
|
|
59
|
+
>
|
|
60
|
+
<span class="icon-slot">
|
|
61
|
+
<slot name="icon"></slot>
|
|
62
|
+
<slot></slot>
|
|
63
|
+
</span>
|
|
64
|
+
${this.extended ? n`<span class="label-slot"><slot name="label"></slot></span>` : ""}
|
|
65
|
+
</button>
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
e([a({
|
|
70
|
+
type: Boolean,
|
|
71
|
+
reflect: !0
|
|
72
|
+
})], l.prototype, "extended", void 0), e([a({
|
|
73
|
+
type: Boolean,
|
|
74
|
+
reflect: !0
|
|
75
|
+
})], l.prototype, "disabled", void 0), e([a({ type: String })], l.prototype, "label", void 0), e([a({ type: String })], l.prototype, "position", void 0), l = e([i("flint-fab")], l);
|
|
76
|
+
//#endregion
|
|
77
|
+
export { l as t };
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
//#region src/format-date/flint-format-date.css?inline
|
|
5
|
+
var s = ":host{display:inline}time{font:inherit;color:var(--flint-format-date-color,inherit);font-size:var(--flint-format-date-font-size,inherit)}";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/format-date/flint-format-date.ts
|
|
8
|
+
function c(e) {
|
|
9
|
+
let t;
|
|
10
|
+
return t = e instanceof Date ? e : new Date(e), isNaN(t.getTime()) ? null : t;
|
|
11
|
+
}
|
|
12
|
+
var l = class extends t {
|
|
13
|
+
constructor(...e) {
|
|
14
|
+
super(...e), this.date = /* @__PURE__ */ new Date(), this.weekday = void 0, this.era = void 0, this.year = void 0, this.month = void 0, this.day = void 0, this.hour = void 0, this.minute = void 0, this.second = void 0, this.timeZoneName = void 0, this.timeZone = void 0, this.fractionalSecondDigits = void 0, this.dateStyle = void 0, this.timeStyle = void 0, this.hourFormat = "auto", this.lang = "";
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.styles = i(s);
|
|
18
|
+
}
|
|
19
|
+
_parseDate() {
|
|
20
|
+
return c(this.date);
|
|
21
|
+
}
|
|
22
|
+
_formatDate(e) {
|
|
23
|
+
let t = {};
|
|
24
|
+
this.timeZone && (t.timeZone = this.timeZone), this.timeZoneName && (t.timeZoneName = this.timeZoneName), this.hourFormat === "12" ? t.hour12 = !0 : this.hourFormat === "24" && (t.hour12 = !1), this.dateStyle || this.timeStyle ? (this.dateStyle && (t.dateStyle = this.dateStyle), this.timeStyle && (t.timeStyle = this.timeStyle)) : (this.weekday && (t.weekday = this.weekday), this.era && (t.era = this.era), this.year && (t.year = this.year), this.month && (t.month = this.month), this.day && (t.day = this.day), this.hour && (t.hour = this.hour), this.minute && (t.minute = this.minute), this.second && (t.second = this.second), this.fractionalSecondDigits && (t.fractionalSecondDigits = this.fractionalSecondDigits), this.weekday || this.era || this.year || this.month || this.day || this.hour || this.minute || this.second || this.fractionalSecondDigits || (t.year = "numeric", t.month = "numeric", t.day = "numeric"));
|
|
25
|
+
let n = this.lang || document.documentElement.lang || navigator.language || "en";
|
|
26
|
+
try {
|
|
27
|
+
return new Intl.DateTimeFormat(n, t).format(e);
|
|
28
|
+
} catch {
|
|
29
|
+
return "";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
_localeString(e) {
|
|
33
|
+
let t = this.lang || void 0, n = this.timeZone ? { timeZone: this.timeZone } : void 0;
|
|
34
|
+
try {
|
|
35
|
+
return e.toLocaleString(t, n);
|
|
36
|
+
} catch {
|
|
37
|
+
return e.toLocaleString();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
let e = this._parseDate(), t = e ? this._formatDate(e) : "", i = e ? e.toISOString() : r, a = e ? this._localeString(e) : r;
|
|
42
|
+
return n`
|
|
43
|
+
<time
|
|
44
|
+
datetime=${i}
|
|
45
|
+
title=${a}
|
|
46
|
+
aria-label=${a}
|
|
47
|
+
>${t}</time>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
e([o()], l.prototype, "date", void 0), e([o()], l.prototype, "weekday", void 0), e([o()], l.prototype, "era", void 0), e([o()], l.prototype, "year", void 0), e([o()], l.prototype, "month", void 0), e([o()], l.prototype, "day", void 0), e([o()], l.prototype, "hour", void 0), e([o()], l.prototype, "minute", void 0), e([o()], l.prototype, "second", void 0), e([o({ attribute: "time-zone-name" })], l.prototype, "timeZoneName", void 0), e([o({ attribute: "time-zone" })], l.prototype, "timeZone", void 0), e([o({
|
|
52
|
+
attribute: "fractional-second-digits",
|
|
53
|
+
type: Number
|
|
54
|
+
})], l.prototype, "fractionalSecondDigits", void 0), e([o({ attribute: "date-style" })], l.prototype, "dateStyle", void 0), e([o({ attribute: "time-style" })], l.prototype, "timeStyle", void 0), e([o({
|
|
55
|
+
attribute: "hour-format",
|
|
56
|
+
reflect: !0
|
|
57
|
+
})], l.prototype, "hourFormat", void 0), e([o({
|
|
58
|
+
attribute: "lang",
|
|
59
|
+
reflect: !0
|
|
60
|
+
})], l.prototype, "lang", void 0), l = e([a("flint-format-date")], l);
|
|
61
|
+
//#endregion
|
|
62
|
+
export { c as n, l as t };
|