@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,82 @@
|
|
|
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/checkbox/flint-checkbox.css?inline
|
|
7
|
+
var l = ":host{font-family:var(--flint-font-family);color:var(--flint-text-color);display:inline-block}.wrapper{cursor:pointer;align-items:center;display:inline-flex}.wrapper.disabled{opacity:.5;cursor:not-allowed}.checkbox{width:var(--flint-checkbox-size,18px);height:var(--flint-checkbox-size,18px);border:2px solid var(--flint-input-border-color);border-radius:var(--flint-checkbox-border-radius,var(--flint-border-radius-sm));background-color:var(--flint-surface-1);margin-right:var(--flint-checkbox-gap,8px);flex-shrink:0;justify-content:center;align-items:center;transition:all .2s;display:inline-flex;position:relative}:host([size=sm]) .checkbox{width:var(--flint-checkbox-size-sm,14px);height:var(--flint-checkbox-size-sm,14px)}:host([size=lg]) .checkbox{width:var(--flint-checkbox-size-lg,22px);height:var(--flint-checkbox-size-lg,22px)}.wrapper:hover:not(.disabled) .checkbox{border-color:var(--flint-primary-color)}.checkbox.checked,.checkbox.indeterminate{background-color:var(--flint-primary-color);border-color:var(--flint-primary-color)}.icon{fill:none;stroke:var(--flint-text-color-on-primary);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;width:var(--flint-checkbox-icon-size,12px);height:var(--flint-checkbox-icon-size,12px);opacity:0;transition:all .2s cubic-bezier(.175,.885,.32,1.275);transform:scale(.5)}:host([size=sm]) .icon{width:var(--flint-checkbox-icon-size-sm,10px);height:var(--flint-checkbox-icon-size-sm,10px)}:host([size=lg]) .icon{width:var(--flint-checkbox-icon-size-lg,16px);height:var(--flint-checkbox-icon-size-lg,16px)}.checked .icon,.indeterminate .icon{opacity:1;transform:scale(1)}input{opacity:0;width:0;height:0;margin:0;position:absolute}input:focus-visible+.checkbox{outline:2px solid var(--flint-primary-color);outline-offset:2px}.label{font-size:var(--flint-checkbox-label-font-size,14px);-webkit-user-select:none;user-select:none;line-height:1.5}:host([size=sm]) .label{font-size:var(--flint-checkbox-label-font-size-sm,12px)}:host([size=lg]) .label{font-size:var(--flint-checkbox-label-font-size-lg,16px)}::slotted(*),.label{cursor:inherit}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", u = class extends t(n) {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.required = !1, this.size = "md", this.label = "", this.name = "", this.value = "on", this.defaultChecked = !1, this.ariaLabel = null;
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = a(l);
|
|
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 box.");
|
|
19
|
+
}
|
|
20
|
+
_handleChange(e) {
|
|
21
|
+
this.disabled || (this.checked = e.target.checked, this.indeterminate = !1, this.dispatchEvent(new CustomEvent("flint-checkbox-change", {
|
|
22
|
+
detail: {
|
|
23
|
+
checked: this.checked,
|
|
24
|
+
value: this.value,
|
|
25
|
+
indeterminate: !1
|
|
26
|
+
},
|
|
27
|
+
bubbles: !0,
|
|
28
|
+
composed: !0
|
|
29
|
+
})));
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return r`
|
|
33
|
+
<label class=${c({
|
|
34
|
+
wrapper: !0,
|
|
35
|
+
disabled: this.disabled
|
|
36
|
+
})}>
|
|
37
|
+
<input
|
|
38
|
+
type="checkbox"
|
|
39
|
+
.checked=${this.checked}
|
|
40
|
+
.indeterminate=${this.indeterminate}
|
|
41
|
+
?disabled=${this.disabled}
|
|
42
|
+
?required=${this.required}
|
|
43
|
+
name=${this.name || i}
|
|
44
|
+
.value=${this.value}
|
|
45
|
+
aria-label=${this.ariaLabel ?? i}
|
|
46
|
+
@change=${this._handleChange}
|
|
47
|
+
>
|
|
48
|
+
<div class=${c({
|
|
49
|
+
checkbox: !0,
|
|
50
|
+
checked: this.checked,
|
|
51
|
+
indeterminate: this.indeterminate
|
|
52
|
+
})}>
|
|
53
|
+
<svg class="icon" viewBox="0 0 24 24" aria-hidden="true">
|
|
54
|
+
${this.indeterminate ? r`<line x1="4" y1="12" x2="20" y2="12"></line>` : r`<polyline points="20 6 9 17 4 12"></polyline>`}
|
|
55
|
+
</svg>
|
|
56
|
+
</div>
|
|
57
|
+
${this.label ? r`<span class="label">${this.label}</span>` : r`<slot class="label"></slot>`}
|
|
58
|
+
</label>
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
e([s({
|
|
63
|
+
type: Boolean,
|
|
64
|
+
reflect: !0
|
|
65
|
+
})], u.prototype, "checked", void 0), e([s({ type: Boolean })], u.prototype, "indeterminate", void 0), e([s({
|
|
66
|
+
type: Boolean,
|
|
67
|
+
reflect: !0
|
|
68
|
+
})], u.prototype, "disabled", void 0), e([s({
|
|
69
|
+
type: Boolean,
|
|
70
|
+
reflect: !0
|
|
71
|
+
})], u.prototype, "required", void 0), e([s({
|
|
72
|
+
type: String,
|
|
73
|
+
reflect: !0
|
|
74
|
+
})], u.prototype, "size", void 0), e([s({ type: String })], u.prototype, "label", void 0), e([s({ type: String })], u.prototype, "name", void 0), e([s({ type: String })], u.prototype, "value", void 0), e([s({
|
|
75
|
+
type: Boolean,
|
|
76
|
+
attribute: "default-checked"
|
|
77
|
+
})], u.prototype, "defaultChecked", void 0), e([s({
|
|
78
|
+
type: String,
|
|
79
|
+
attribute: "aria-label"
|
|
80
|
+
})], u.prototype, "ariaLabel", void 0), u = e([o("flint-checkbox")], u);
|
|
81
|
+
//#endregion
|
|
82
|
+
export { u as t };
|
|
@@ -0,0 +1,86 @@
|
|
|
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/chip/flint-chip.css?inline
|
|
7
|
+
var c = ":host{vertical-align:middle;font-family:var(--flint-font-family);display:inline-block}.chip{height:var(--flint-chip-height,32px);padding:0 var(--flint-chip-padding-x,12px);border-radius:var(--flint-chip-border-radius,16px);font-size:var(--flint-chip-font-size,.875rem);white-space:nowrap;background-color:var(--flint-surface-2);color:var(--flint-text-color);-webkit-user-select:none;user-select:none;align-items:center;gap:var(--flint-chip-gap,8px);border:1px solid #0000;outline:none;font-weight:500;transition:all .2s;display:inline-flex;overflow:hidden}.chip.size-sm{height:var(--flint-chip-height-sm,24px);padding:0 var(--flint-chip-padding-x-sm,8px);font-size:var(--flint-chip-font-size-sm,.75rem);border-radius:var(--flint-chip-border-radius-sm,12px)}.chip.size-lg{height:var(--flint-chip-height-lg,40px);padding:0 var(--flint-chip-padding-x-lg,16px);font-size:var(--flint-chip-font-size-lg,1rem);border-radius:var(--flint-chip-border-radius-lg,20px)}.chip.clickable{cursor:pointer}.chip.clickable:hover:not(.disabled){background-color:var(--flint-hover-color)}.chip.clickable:active:not(.disabled){background-color:var(--flint-active-color)}.chip.outlined{border-color:var(--flint-input-border-color);background-color:#0000}.chip.primary:not(.outlined){background-color:var(--flint-primary-color);color:var(--flint-text-color-on-primary)}.chip.secondary:not(.outlined){background-color:var(--flint-secondary-color);color:var(--flint-text-color-on-primary)}.chip.outlined.primary{color:var(--flint-primary-color);border-color:var(--flint-primary-color)}.chip.outlined.secondary{color:var(--flint-secondary-color);border-color:var(--flint-secondary-color)}.chip.primary.clickable:hover:not(.disabled),.chip.secondary.clickable:hover:not(.disabled){filter:brightness(.9);box-shadow:var(--flint-shadow-sm)}.chip.disabled{opacity:.5;cursor:not-allowed}.chip:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:2px}.delete-icon{cursor:pointer;width:18px;height:18px;color:inherit;opacity:.7;border-radius:50%;outline:none;justify-content:center;align-items:center;margin-right:-4px;transition:opacity .2s,background-color .2s;display:flex}.delete-icon:hover{opacity:1;background-color:var(--flint-active-color)}.delete-icon:focus-visible{opacity:1;outline-offset:1px;outline:2px solid}.chip.disabled .delete-icon{cursor:not-allowed;pointer-events:none}::slotted([slot=avatar]){--flint-avatar-size:24px;border-radius:50%;flex-shrink:0;width:24px;height:24px;margin-left:-8px;overflow:hidden}::slotted([slot=icon]){flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;margin-left:-4px;line-height:1;display:inline-flex}@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.label = "", this.variant = "filled", this.color = "default", this.size = "md", this.clickable = !1, this.deletable = !1, this.disabled = !1;
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = r(c);
|
|
13
|
+
}
|
|
14
|
+
_handleClick(e) {
|
|
15
|
+
e.stopPropagation(), !(this.disabled || !this.clickable) && this.dispatchEvent(new CustomEvent("click", {
|
|
16
|
+
bubbles: !0,
|
|
17
|
+
composed: !0
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
_handleKeyDown(e) {
|
|
21
|
+
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), !this.disabled && this.clickable && this.dispatchEvent(new CustomEvent("click", {
|
|
22
|
+
bubbles: !0,
|
|
23
|
+
composed: !0
|
|
24
|
+
})));
|
|
25
|
+
}
|
|
26
|
+
_handleDelete(e) {
|
|
27
|
+
e.stopPropagation(), !this.disabled && this.dispatchEvent(new CustomEvent("flint-chip-delete", {
|
|
28
|
+
bubbles: !0,
|
|
29
|
+
composed: !0
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
_handleDeleteKeyDown(e) {
|
|
33
|
+
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), e.stopPropagation(), this.disabled || this.dispatchEvent(new CustomEvent("flint-chip-delete", {
|
|
34
|
+
bubbles: !0,
|
|
35
|
+
composed: !0
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return n`
|
|
40
|
+
<div
|
|
41
|
+
class=${o({
|
|
42
|
+
chip: !0,
|
|
43
|
+
clickable: this.clickable,
|
|
44
|
+
disabled: this.disabled,
|
|
45
|
+
outlined: this.variant === "outlined",
|
|
46
|
+
primary: this.color === "primary",
|
|
47
|
+
secondary: this.color === "secondary",
|
|
48
|
+
"size-sm": this.size === "sm",
|
|
49
|
+
"size-lg": this.size === "lg"
|
|
50
|
+
})}
|
|
51
|
+
@click=${this._handleClick}
|
|
52
|
+
@keydown=${this._handleKeyDown}
|
|
53
|
+
role=${s(this.clickable ? "button" : void 0)}
|
|
54
|
+
tabindex=${this.clickable && !this.disabled ? "0" : "-1"}
|
|
55
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
56
|
+
>
|
|
57
|
+
<slot name="avatar"></slot>
|
|
58
|
+
<slot name="icon"></slot>
|
|
59
|
+
<span class="label">${this.label}</span>
|
|
60
|
+
${this.deletable ? n`
|
|
61
|
+
<span
|
|
62
|
+
class="delete-icon"
|
|
63
|
+
@click=${this._handleDelete}
|
|
64
|
+
@keydown=${this._handleDeleteKeyDown}
|
|
65
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
66
|
+
role="button"
|
|
67
|
+
aria-label="Remove ${this.label}"
|
|
68
|
+
>
|
|
69
|
+
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
|
|
70
|
+
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/>
|
|
71
|
+
</svg>
|
|
72
|
+
</span>
|
|
73
|
+
` : ""}
|
|
74
|
+
</div>
|
|
75
|
+
`;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
e([a({ type: String })], l.prototype, "label", void 0), e([a({ type: String })], l.prototype, "variant", void 0), e([a({ type: String })], l.prototype, "color", void 0), e([a({
|
|
79
|
+
type: String,
|
|
80
|
+
reflect: !0
|
|
81
|
+
})], l.prototype, "size", void 0), e([a({ type: Boolean })], l.prototype, "clickable", void 0), e([a({ type: Boolean })], l.prototype, "deletable", void 0), e([a({
|
|
82
|
+
type: Boolean,
|
|
83
|
+
reflect: !0
|
|
84
|
+
})], l.prototype, "disabled", void 0), l = e([i("flint-chip")], l);
|
|
85
|
+
//#endregion
|
|
86
|
+
export { l as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
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/progress/flint-circular-progress.css?inline
|
|
6
|
+
var c = ":host{--flint-circular-progress-size:40px;--flint-circular-progress-color:var(--flint-primary-color);--flint-circular-progress-thickness:3.6;display:inline-block}.circular-root{width:var(--flint-circular-progress-size);height:var(--flint-circular-progress-size);animation:1.4s linear infinite rotate;display:inline-block}.circular-root.determinate{animation:none;transform:rotate(-90deg)}svg{display:block}circle{stroke:var(--flint-circular-progress-color);stroke-linecap:round;transition:stroke-dashoffset .3s}.indeterminate circle{stroke-dasharray:80 200;stroke-dashoffset:0;animation:1.4s ease-in-out infinite dash}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1 200;stroke-dashoffset:0}50%{stroke-dasharray:89 200;stroke-dashoffset:-35px}to{stroke-dasharray:89 200;stroke-dashoffset:-124px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l, u = class extends t {
|
|
7
|
+
static {
|
|
8
|
+
l = this;
|
|
9
|
+
}
|
|
10
|
+
constructor(...e) {
|
|
11
|
+
super(...e), this.variant = "indeterminate", this.value = 0, this.size = 40, this.thickness = 3.6, this.color = "primary", this.label = "";
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.styles = i(c);
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this._colorMap = {
|
|
18
|
+
primary: "var(--flint-primary-color, #2563eb)",
|
|
19
|
+
success: "var(--flint-success-color, #15803d)",
|
|
20
|
+
error: "var(--flint-error-color, #dc2626)",
|
|
21
|
+
warning: "var(--flint-warning-color, #92400e)"
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
get _safeValue() {
|
|
25
|
+
return Math.min(100, Math.max(0, this.value));
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
let e = this.variant === "determinate", t = 20 - this.thickness / 2, i = 2 * Math.PI * t, a = i - this._safeValue / 100 * i, o = l._colorMap[this.color] ?? l._colorMap.primary;
|
|
29
|
+
return n`
|
|
30
|
+
<div
|
|
31
|
+
class="circular-root ${s({
|
|
32
|
+
determinate: e,
|
|
33
|
+
indeterminate: !e
|
|
34
|
+
})}"
|
|
35
|
+
style="--flint-circular-progress-size: ${this.size}px; --flint-circular-progress-thickness: ${this.thickness}; --flint-circular-progress-color: ${o}"
|
|
36
|
+
role="progressbar"
|
|
37
|
+
aria-valuemin="0"
|
|
38
|
+
aria-valuemax="100"
|
|
39
|
+
aria-valuenow="${e ? this._safeValue : r}"
|
|
40
|
+
aria-label="${this.label || "Progress"}"
|
|
41
|
+
>
|
|
42
|
+
<svg viewBox="22 22 44 44">
|
|
43
|
+
<circle
|
|
44
|
+
class="circle"
|
|
45
|
+
cx="44"
|
|
46
|
+
cy="44"
|
|
47
|
+
r="${t}"
|
|
48
|
+
fill="none"
|
|
49
|
+
stroke-width="${this.thickness}"
|
|
50
|
+
style="${e ? `stroke-dasharray: ${i}; stroke-dashoffset: ${a}px` : ""}"
|
|
51
|
+
></circle>
|
|
52
|
+
</svg>
|
|
53
|
+
</div>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
e([o({
|
|
58
|
+
type: String,
|
|
59
|
+
reflect: !0
|
|
60
|
+
})], u.prototype, "variant", void 0), e([o({
|
|
61
|
+
type: Number,
|
|
62
|
+
reflect: !0
|
|
63
|
+
})], u.prototype, "value", void 0), e([o({ type: Number })], u.prototype, "size", void 0), e([o({ type: Number })], u.prototype, "thickness", void 0), e([o({
|
|
64
|
+
type: String,
|
|
65
|
+
reflect: !0
|
|
66
|
+
})], u.prototype, "color", void 0), e([o({ type: String })], u.prototype, "label", void 0), u = l = e([a("flint-circular-progress")], u);
|
|
67
|
+
//#endregion
|
|
68
|
+
export { u as t };
|
|
@@ -0,0 +1,101 @@
|
|
|
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/collapsible/flint-collapsible-trigger.css?inline
|
|
5
|
+
var o = ":host{display:block}.trigger{cursor:pointer;width:100%;font:inherit;color:inherit;text-align:left;background:0 0;border:none;align-items:center;margin:0;padding:0;display:flex}:host([disabled]) .trigger{cursor:not-allowed;opacity:.5}", s = ":host{display:block}.panel{transition:grid-template-rows var(--flint-collapsible-duration,.2s) var(--flint-collapsible-easing,ease);grid-template-rows:0fr;display:grid;overflow:hidden}:host([open]) .panel{grid-template-rows:1fr}.panel-inner{overflow:hidden}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = ":host{display:block}", l = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.expanded = !1, this.disabled = !1;
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
_handleClick() {
|
|
13
|
+
this.disabled || this.closest("flint-collapsible")?.toggle();
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return n`
|
|
17
|
+
<button
|
|
18
|
+
class="trigger"
|
|
19
|
+
aria-expanded=${this.expanded ? "true" : "false"}
|
|
20
|
+
?disabled=${this.disabled}
|
|
21
|
+
@click=${this._handleClick}
|
|
22
|
+
>
|
|
23
|
+
<slot></slot>
|
|
24
|
+
</button>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
e([a({
|
|
29
|
+
type: Boolean,
|
|
30
|
+
reflect: !0
|
|
31
|
+
})], l.prototype, "expanded", void 0), e([a({
|
|
32
|
+
type: Boolean,
|
|
33
|
+
reflect: !0
|
|
34
|
+
})], l.prototype, "disabled", void 0), l = e([i("flint-collapsible-trigger")], l);
|
|
35
|
+
var u = class extends t {
|
|
36
|
+
constructor(...e) {
|
|
37
|
+
super(...e), this.open = !1;
|
|
38
|
+
}
|
|
39
|
+
static {
|
|
40
|
+
this.styles = r(s);
|
|
41
|
+
}
|
|
42
|
+
updated() {
|
|
43
|
+
this.open ? this.removeAttribute("inert") : this.setAttribute("inert", "");
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return n`
|
|
47
|
+
<div class="panel" aria-hidden=${!this.open}>
|
|
48
|
+
<div class="panel-inner">
|
|
49
|
+
<slot></slot>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
e([a({
|
|
56
|
+
type: Boolean,
|
|
57
|
+
reflect: !0
|
|
58
|
+
})], u.prototype, "open", void 0), u = e([i("flint-collapsible-content")], u);
|
|
59
|
+
var d = class extends t {
|
|
60
|
+
constructor(...e) {
|
|
61
|
+
super(...e), this.open = !1, this.defaultOpen = !1, this.disabled = !1, this._firstUpdate = !0;
|
|
62
|
+
}
|
|
63
|
+
static {
|
|
64
|
+
this.styles = r(c);
|
|
65
|
+
}
|
|
66
|
+
willUpdate(e) {
|
|
67
|
+
this._firstUpdate && (this._firstUpdate = !1, this.defaultOpen && !this.open && (this.open = !0));
|
|
68
|
+
}
|
|
69
|
+
updated(e) {
|
|
70
|
+
(e.has("open") || e.has("disabled")) && this._syncChildren();
|
|
71
|
+
}
|
|
72
|
+
toggle() {
|
|
73
|
+
this.disabled || (this.open = !this.open, this.dispatchEvent(new CustomEvent("flint-collapsible-change", {
|
|
74
|
+
detail: { open: this.open },
|
|
75
|
+
bubbles: !0,
|
|
76
|
+
composed: !0
|
|
77
|
+
})));
|
|
78
|
+
}
|
|
79
|
+
_syncChildren() {
|
|
80
|
+
this.querySelectorAll("flint-collapsible-content").forEach((e) => {
|
|
81
|
+
e.closest("flint-collapsible") === this && (e.open = this.open);
|
|
82
|
+
}), this.querySelectorAll("flint-collapsible-trigger").forEach((e) => {
|
|
83
|
+
e.closest("flint-collapsible") === this && (e.expanded = this.open, e.disabled = this.disabled);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
return n`<slot @slotchange=${() => this._syncChildren()}></slot>`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
e([a({
|
|
91
|
+
type: Boolean,
|
|
92
|
+
reflect: !0
|
|
93
|
+
})], d.prototype, "open", void 0), e([a({
|
|
94
|
+
type: Boolean,
|
|
95
|
+
attribute: "default-open"
|
|
96
|
+
})], d.prototype, "defaultOpen", void 0), e([a({
|
|
97
|
+
type: Boolean,
|
|
98
|
+
reflect: !0
|
|
99
|
+
})], d.prototype, "disabled", void 0), d = e([i("flint-collapsible")], d);
|
|
100
|
+
//#endregion
|
|
101
|
+
export { u as n, l as r, d as t };
|
|
@@ -0,0 +1,318 @@
|
|
|
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, state as s } from "lit/decorators.js";
|
|
4
|
+
import { classMap as c } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/command/flint-command-shortcut.css?inline
|
|
6
|
+
var l = ":host{letter-spacing:.05em;color:var(--flint-text-color-muted);font-size:.6875rem;font-family:var(--flint-font-family);align-items:center;margin-left:auto;padding-left:8px;display:inline-flex}", u = ":host{background:var(--flint-border-color);height:1px;margin:4px 0;display:block}:host([hidden]){display:none!important}", d = ":host{display:block}:host([hidden]){display:none!important}.item{cursor:pointer;color:var(--flint-text-color);font-size:.875rem;line-height:1.25rem;font-family:var(--flint-font-family);-webkit-user-select:none;user-select:none;border-radius:4px;outline:none;align-items:center;gap:8px;padding:6px 8px;transition:background .1s;display:flex}:host([highlighted]) .item{background:var(--flint-command-highlight-bg,var(--flint-hover-color));color:var(--flint-command-highlight-color,var(--flint-text-color))}.item:hover{background:var(--flint-hover-color)}:host([highlighted]) .item:hover{background:var(--flint-command-highlight-bg,var(--flint-hover-color))}:host([disabled]) .item{opacity:.38;cursor:not-allowed;pointer-events:none}.icon{width:16px;height:16px;color:var(--flint-text-color-muted);flex-shrink:0;justify-content:center;align-items:center;display:flex}.label{flex:1}[hidden]{display:none!important}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", f = ":host{text-align:center;color:var(--flint-text-color-muted);font-size:.875rem;font-family:var(--flint-font-family);padding:24px 8px;display:block}:host([hidden]){display:none!important}", p = ":host{font-family:var(--flint-font-family);display:block}:host([hidden]){display:none!important}.heading{letter-spacing:.04em;text-transform:uppercase;color:var(--flint-text-color-muted);padding:6px 8px 2px;font-size:.6875rem;font-weight:600}.heading:empty{display:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", m = ":host{max-height:var(--flint-command-list-max-height,300px);display:block;overflow-y:auto}.list{outline:none;padding:4px}.list:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:-2px}", h = ":host{font-family:var(--flint-font-family);display:block}.input-wrap{border-bottom:1px solid var(--flint-border-color);align-items:center;gap:8px;padding:10px 12px;display:flex}.search-icon{color:var(--flint-text-color-muted);flex-shrink:0;align-items:center;display:flex}input{color:var(--flint-text-color);background:0 0;border:none;outline:none;flex:1;min-width:0;font-family:inherit;font-size:.9375rem}input::placeholder{color:var(--flint-text-color-muted)}input[type=search]::-webkit-search-cancel-button{display:none}input[type=search]::-webkit-search-decoration{display:none}", g = ":host{font-family:var(--flint-font-family);background:var(--flint-command-bg,var(--flint-surface-1));border-radius:var(--flint-border-radius-md);border:1px solid var(--flint-command-border-color,var(--flint-border-color));display:block;overflow:hidden}.command{flex-direction:column;display:flex}", _ = ":host{display:block}.backdrop{background:var(--flint-command-backdrop-bg,#00000080);z-index:var(--flint-command-z-index,1400);opacity:0;visibility:hidden;pointer-events:none;justify-content:center;align-items:flex-start;padding-top:12vh;transition:opacity .18s,visibility .18s;display:flex;position:fixed;inset:0}.backdrop.open{opacity:1;visibility:visible;pointer-events:auto}.panel{width:100%;max-width:var(--flint-command-dialog-width,512px);background:var(--flint-command-bg,var(--flint-surface-1));border-radius:var(--flint-border-radius-md);border:1px solid var(--flint-command-panel-border-color,var(--flint-border-color));transition:transform .18s cubic-bezier(.4,0,.2,1);overflow:hidden;transform:scale(.94)translateY(-8px);box-shadow:0 20px 25px -5px #00000026,0 10px 10px -5px #0000000f}.backdrop.open .panel{transform:scale(1)translateY(0)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", v = class extends t {
|
|
7
|
+
static {
|
|
8
|
+
this.styles = i(l);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return n`<slot></slot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
v = e([a("flint-command-shortcut")], v);
|
|
15
|
+
var y = class extends t {
|
|
16
|
+
static {
|
|
17
|
+
this.styles = i(u);
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return n``;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
y = e([a("flint-command-separator")], y);
|
|
24
|
+
var b = class extends t {
|
|
25
|
+
constructor(...e) {
|
|
26
|
+
super(...e), this.value = "", this.disabled = !1, this.highlighted = !1, this._hasIcon = !1;
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.styles = i(d);
|
|
30
|
+
}
|
|
31
|
+
_onIconSlotChange(e) {
|
|
32
|
+
this._hasIcon = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
33
|
+
}
|
|
34
|
+
scrollIntoViewIfNeeded() {
|
|
35
|
+
typeof this.scrollIntoView == "function" && this.scrollIntoView({ block: "nearest" });
|
|
36
|
+
}
|
|
37
|
+
_handleClick() {
|
|
38
|
+
this.disabled || this.dispatchEvent(new CustomEvent("flint-command-item-select", {
|
|
39
|
+
bubbles: !0,
|
|
40
|
+
composed: !0,
|
|
41
|
+
detail: { value: this.value || this.textContent?.trim() || "" }
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return n`
|
|
46
|
+
<div
|
|
47
|
+
class="item"
|
|
48
|
+
role="option"
|
|
49
|
+
aria-selected=${this.highlighted ? "true" : "false"}
|
|
50
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
51
|
+
tabindex="-1"
|
|
52
|
+
@click=${this._handleClick}
|
|
53
|
+
>
|
|
54
|
+
<span class="icon" ?hidden=${!this._hasIcon}>
|
|
55
|
+
<slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
|
|
56
|
+
</span>
|
|
57
|
+
<span class="label"><slot></slot></span>
|
|
58
|
+
<slot name="shortcut"></slot>
|
|
59
|
+
</div>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
e([o({
|
|
64
|
+
type: String,
|
|
65
|
+
reflect: !0
|
|
66
|
+
})], b.prototype, "value", void 0), e([o({
|
|
67
|
+
type: Boolean,
|
|
68
|
+
reflect: !0
|
|
69
|
+
})], b.prototype, "disabled", void 0), e([o({
|
|
70
|
+
type: Boolean,
|
|
71
|
+
reflect: !0
|
|
72
|
+
})], b.prototype, "highlighted", void 0), e([s()], b.prototype, "_hasIcon", void 0), b = e([a("flint-command-item")], b);
|
|
73
|
+
var x = class extends t {
|
|
74
|
+
static {
|
|
75
|
+
this.styles = i(f);
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
return n`<slot></slot>`;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
x = e([a("flint-command-empty")], x);
|
|
82
|
+
var S = class extends t {
|
|
83
|
+
constructor(...e) {
|
|
84
|
+
super(...e), this.heading = "";
|
|
85
|
+
}
|
|
86
|
+
static {
|
|
87
|
+
this.styles = i(p);
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return n`
|
|
91
|
+
<div class="heading">${this.heading}</div>
|
|
92
|
+
<slot></slot>
|
|
93
|
+
`;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
e([o({
|
|
97
|
+
type: String,
|
|
98
|
+
reflect: !0
|
|
99
|
+
})], S.prototype, "heading", void 0), S = e([a("flint-command-group")], S);
|
|
100
|
+
var C = class extends t {
|
|
101
|
+
static {
|
|
102
|
+
this.styles = i(m);
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
return n`
|
|
106
|
+
<div class="list" role="listbox" tabindex="0" aria-label="Command results">
|
|
107
|
+
<slot></slot>
|
|
108
|
+
</div>
|
|
109
|
+
`;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
C = e([a("flint-command-list")], C);
|
|
113
|
+
var w = class extends t {
|
|
114
|
+
constructor(...e) {
|
|
115
|
+
super(...e), this.placeholder = "Type a command or search...", this.value = "";
|
|
116
|
+
}
|
|
117
|
+
static {
|
|
118
|
+
this.styles = i(h);
|
|
119
|
+
}
|
|
120
|
+
_handleInput(e) {
|
|
121
|
+
let t = e.target;
|
|
122
|
+
this.value = t.value, this.dispatchEvent(new CustomEvent("_cmd-filter", {
|
|
123
|
+
bubbles: !0,
|
|
124
|
+
composed: !0,
|
|
125
|
+
detail: { query: t.value }
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
focus() {
|
|
129
|
+
this.shadowRoot?.querySelector("input")?.focus();
|
|
130
|
+
}
|
|
131
|
+
reset() {
|
|
132
|
+
let e = this.shadowRoot?.querySelector("input");
|
|
133
|
+
e && (e.value = ""), this.value = "", this.dispatchEvent(new CustomEvent("_cmd-filter", {
|
|
134
|
+
bubbles: !0,
|
|
135
|
+
composed: !0,
|
|
136
|
+
detail: { query: "" }
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
return n`
|
|
141
|
+
<div class="input-wrap">
|
|
142
|
+
<span class="search-icon" aria-hidden="true">
|
|
143
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
|
|
144
|
+
stroke="currentColor" stroke-width="2"
|
|
145
|
+
stroke-linecap="round" stroke-linejoin="round">
|
|
146
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
147
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
148
|
+
</svg>
|
|
149
|
+
</span>
|
|
150
|
+
<input
|
|
151
|
+
type="search"
|
|
152
|
+
.value=${this.value}
|
|
153
|
+
placeholder=${this.placeholder}
|
|
154
|
+
aria-label="Search commands"
|
|
155
|
+
@input=${this._handleInput}
|
|
156
|
+
autocomplete="off"
|
|
157
|
+
spellcheck="false"
|
|
158
|
+
/>
|
|
159
|
+
</div>
|
|
160
|
+
`;
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
e([o({ type: String })], w.prototype, "placeholder", void 0), e([o({
|
|
164
|
+
type: String,
|
|
165
|
+
reflect: !0
|
|
166
|
+
})], w.prototype, "value", void 0), w = e([a("flint-command-input")], w);
|
|
167
|
+
var T = class extends t {
|
|
168
|
+
constructor(...e) {
|
|
169
|
+
super(...e), this._query = "", this._highlightedItem = null, this._handleFilter = (e) => {
|
|
170
|
+
this._applyFilter(e.detail.query);
|
|
171
|
+
}, this._handleMouseOver = (e) => {
|
|
172
|
+
let t = e.target;
|
|
173
|
+
if (t.tagName?.toLowerCase() !== "flint-command-item") return;
|
|
174
|
+
let n = t;
|
|
175
|
+
!n.disabled && !n.hidden && this._setHighlight(n, !1);
|
|
176
|
+
}, this._handleKeyDown = (e) => {
|
|
177
|
+
let t = this._getNavigableItems();
|
|
178
|
+
if (t.length === 0) return;
|
|
179
|
+
let n = this._highlightedItem ? t.indexOf(this._highlightedItem) : -1;
|
|
180
|
+
switch (e.key) {
|
|
181
|
+
case "ArrowDown":
|
|
182
|
+
e.preventDefault(), this._setHighlight(t[(n + 1) % t.length]);
|
|
183
|
+
break;
|
|
184
|
+
case "ArrowUp":
|
|
185
|
+
e.preventDefault(), this._setHighlight(t[(n - 1 + t.length) % t.length]);
|
|
186
|
+
break;
|
|
187
|
+
case "Enter":
|
|
188
|
+
e.preventDefault(), this._highlightedItem && this._activateItem(this._highlightedItem);
|
|
189
|
+
break;
|
|
190
|
+
case "Home":
|
|
191
|
+
e.preventDefault(), this._setHighlight(t[0]);
|
|
192
|
+
break;
|
|
193
|
+
case "End":
|
|
194
|
+
e.preventDefault(), this._setHighlight(t[t.length - 1]);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
static {
|
|
200
|
+
this.styles = i(g);
|
|
201
|
+
}
|
|
202
|
+
connectedCallback() {
|
|
203
|
+
super.connectedCallback(), this.addEventListener("_cmd-filter", this._handleFilter), this.addEventListener("keydown", this._handleKeyDown), this.addEventListener("mouseover", this._handleMouseOver);
|
|
204
|
+
}
|
|
205
|
+
disconnectedCallback() {
|
|
206
|
+
super.disconnectedCallback(), this.removeEventListener("_cmd-filter", this._handleFilter), this.removeEventListener("keydown", this._handleKeyDown), this.removeEventListener("mouseover", this._handleMouseOver);
|
|
207
|
+
}
|
|
208
|
+
_getNavigableItems() {
|
|
209
|
+
return [...this.querySelectorAll("flint-command-item")].filter((e) => !e.hidden && !e.disabled);
|
|
210
|
+
}
|
|
211
|
+
_setHighlight(e, t = !0) {
|
|
212
|
+
this._highlightedItem && (this._highlightedItem.highlighted = !1), this._highlightedItem = e, e && (e.highlighted = !0, t && e.scrollIntoViewIfNeeded());
|
|
213
|
+
}
|
|
214
|
+
_activateItem(e) {
|
|
215
|
+
e.dispatchEvent(new CustomEvent("flint-command-item-select", {
|
|
216
|
+
bubbles: !0,
|
|
217
|
+
composed: !0,
|
|
218
|
+
detail: { value: e.value || e.textContent?.trim() || "" }
|
|
219
|
+
}));
|
|
220
|
+
}
|
|
221
|
+
_applyFilter(e) {
|
|
222
|
+
this._query = e;
|
|
223
|
+
let t = e.toLowerCase(), n = [...this.querySelectorAll("flint-command-item")], r = 0;
|
|
224
|
+
for (let e of n) {
|
|
225
|
+
let n = (e.value || e.textContent || "").toLowerCase().trim(), i = t === "" || n.includes(t);
|
|
226
|
+
e.hidden = !i, i && r++;
|
|
227
|
+
}
|
|
228
|
+
let i = [...this.querySelectorAll("flint-command-group")];
|
|
229
|
+
for (let e of i) {
|
|
230
|
+
let t = [...e.querySelectorAll("flint-command-item")];
|
|
231
|
+
e.hidden = t.length === 0 || t.every((e) => e.hidden);
|
|
232
|
+
}
|
|
233
|
+
let a = this.querySelector("flint-command-empty");
|
|
234
|
+
a && (a.hidden = r > 0);
|
|
235
|
+
let o = this.querySelector("flint-command-list");
|
|
236
|
+
if (o) {
|
|
237
|
+
let e = [...o.children], t = (e) => e.tagName.toLowerCase() !== "flint-command-separator" && e.tagName.toLowerCase() !== "flint-command-empty" && !e.hidden;
|
|
238
|
+
for (let n of e) {
|
|
239
|
+
if (n.tagName.toLowerCase() !== "flint-command-separator") continue;
|
|
240
|
+
let r = e.indexOf(n), i = e.slice(0, r).some(t), a = e.slice(r + 1).some(t);
|
|
241
|
+
n.hidden = !i || !a;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
this._setHighlight(this._getNavigableItems()[0] ?? null, !1);
|
|
245
|
+
}
|
|
246
|
+
_onSlotChange() {
|
|
247
|
+
this._applyFilter(this._query);
|
|
248
|
+
}
|
|
249
|
+
reset() {
|
|
250
|
+
let e = this.querySelector("flint-command-input");
|
|
251
|
+
e ? e.reset() : this._applyFilter("");
|
|
252
|
+
}
|
|
253
|
+
render() {
|
|
254
|
+
return n`
|
|
255
|
+
<div class="command" part="command">
|
|
256
|
+
<slot @slotchange=${this._onSlotChange}></slot>
|
|
257
|
+
</div>
|
|
258
|
+
`;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
T = e([a("flint-command")], T);
|
|
262
|
+
var E = class extends t {
|
|
263
|
+
constructor(...e) {
|
|
264
|
+
super(...e), this.open = !1, this._boundKeyDown = (e) => {
|
|
265
|
+
this.open && e.key === "Escape" && (e.stopPropagation(), this._close());
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
static {
|
|
269
|
+
this.styles = i(_);
|
|
270
|
+
}
|
|
271
|
+
connectedCallback() {
|
|
272
|
+
super.connectedCallback(), window.addEventListener("keydown", this._boundKeyDown);
|
|
273
|
+
}
|
|
274
|
+
disconnectedCallback() {
|
|
275
|
+
super.disconnectedCallback(), window.removeEventListener("keydown", this._boundKeyDown);
|
|
276
|
+
}
|
|
277
|
+
updated(e) {
|
|
278
|
+
e.has("open") && (this.open ? requestAnimationFrame(() => {
|
|
279
|
+
this.querySelector("flint-command-input")?.focus();
|
|
280
|
+
}) : this.querySelector("flint-command")?.reset());
|
|
281
|
+
}
|
|
282
|
+
_close() {
|
|
283
|
+
this.dispatchEvent(new CustomEvent("flint-command-dialog-close", {
|
|
284
|
+
bubbles: !0,
|
|
285
|
+
composed: !0
|
|
286
|
+
}));
|
|
287
|
+
}
|
|
288
|
+
_handleBackdropClick(e) {
|
|
289
|
+
e.target === e.currentTarget && this._close();
|
|
290
|
+
}
|
|
291
|
+
render() {
|
|
292
|
+
return n`
|
|
293
|
+
<div
|
|
294
|
+
class=${c({
|
|
295
|
+
backdrop: !0,
|
|
296
|
+
open: this.open
|
|
297
|
+
})}
|
|
298
|
+
aria-hidden=${this.open ? r : "true"}
|
|
299
|
+
@click=${this._handleBackdropClick}
|
|
300
|
+
>
|
|
301
|
+
<div
|
|
302
|
+
class="panel"
|
|
303
|
+
role="dialog"
|
|
304
|
+
aria-modal="true"
|
|
305
|
+
aria-label="Command menu"
|
|
306
|
+
>
|
|
307
|
+
<slot></slot>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
`;
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
e([o({
|
|
314
|
+
type: Boolean,
|
|
315
|
+
reflect: !0
|
|
316
|
+
})], E.prototype, "open", void 0), E = e([a("flint-command-dialog")], E);
|
|
317
|
+
//#endregion
|
|
318
|
+
export { w as a, y as c, S as i, v as l, E as n, b as o, x as r, C as s, T as t };
|