@ulu/frontend 0.1.0-beta.99 → 0.2.0-beta.10
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/README.md +12 -0
- package/{types/utils/system.d.ts → dist/es/core/component.d.ts} +7 -16
- package/dist/es/core/component.d.ts.map +1 -0
- package/dist/es/core/component.js +134 -0
- package/dist/es/core/events.d.ts +27 -0
- package/dist/es/core/events.d.ts.map +1 -0
- package/dist/es/core/events.js +45 -0
- package/dist/es/core/index.d.ts +4 -0
- package/{types/utils → dist/es/core}/index.d.ts.map +1 -1
- package/{types → dist/es/core}/settings.d.ts +1 -1
- package/dist/es/core/settings.d.ts.map +1 -0
- package/dist/es/core/settings.js +44 -0
- package/dist/es/index.d.ts +4 -0
- package/{types → dist/es}/index.d.ts.map +1 -1
- package/dist/es/index.js +125 -0
- package/{types → dist/es}/ui/breakpoints.d.ts +9 -9
- package/dist/es/ui/breakpoints.d.ts.map +1 -0
- package/dist/es/ui/breakpoints.js +194 -0
- package/{types → dist/es}/ui/collapsible.d.ts +28 -7
- package/dist/es/ui/collapsible.d.ts.map +1 -0
- package/dist/es/ui/collapsible.js +140 -0
- package/{types → dist/es}/ui/details-group.d.ts +1 -1
- package/dist/es/ui/details-group.d.ts.map +1 -0
- package/dist/es/ui/details-group.js +49 -0
- package/{types → dist/es}/ui/dialog.d.ts +3 -3
- package/dist/es/ui/dialog.d.ts.map +1 -0
- package/dist/es/ui/dialog.js +112 -0
- package/{types → dist/es}/ui/flipcard.d.ts +1 -1
- package/dist/es/ui/flipcard.d.ts.map +1 -0
- package/dist/es/ui/flipcard.js +97 -0
- package/{types → dist/es}/ui/grid.d.ts +2 -2
- package/dist/es/ui/grid.d.ts.map +1 -0
- package/dist/es/ui/grid.js +18 -0
- package/dist/es/ui/index.d.ts +23 -0
- package/{types → dist/es}/ui/index.d.ts.map +1 -1
- package/{types → dist/es}/ui/modal-builder.d.ts +22 -17
- package/dist/es/ui/modal-builder.d.ts.map +1 -0
- package/dist/es/ui/modal-builder.js +136 -0
- package/dist/es/ui/overflow-scroller-pager.d.ts.map +1 -0
- package/dist/es/ui/overflow-scroller-pager.js +28 -0
- package/{types → dist/es}/ui/overflow-scroller.d.ts +3 -3
- package/dist/es/ui/overflow-scroller.d.ts.map +1 -0
- package/dist/es/ui/overflow-scroller.js +90 -0
- package/dist/es/ui/page.d.ts.map +1 -0
- package/dist/es/ui/page.js +7 -0
- package/{types → dist/es}/ui/popover.d.ts +4 -4
- package/dist/es/ui/popover.d.ts.map +1 -0
- package/dist/es/ui/popover.js +77 -0
- package/dist/es/ui/print-details.d.ts.map +1 -0
- package/dist/es/ui/print-details.js +22 -0
- package/dist/es/ui/print.d.ts.map +1 -0
- package/dist/es/ui/print.js +34 -0
- package/{types → dist/es}/ui/programmatic-modal.d.ts +2 -2
- package/dist/es/ui/programmatic-modal.d.ts.map +1 -0
- package/dist/es/ui/programmatic-modal.js +55 -0
- package/{types → dist/es}/ui/proxy-click.d.ts +4 -4
- package/dist/es/ui/proxy-click.d.ts.map +1 -0
- package/dist/es/ui/proxy-click.js +44 -0
- package/{types → dist/es}/ui/resizer.d.ts +17 -17
- package/dist/es/ui/resizer.d.ts.map +1 -0
- package/dist/es/ui/resizer.js +242 -0
- package/{types → dist/es}/ui/scroll-slider.d.ts +1 -1
- package/dist/es/ui/scroll-slider.d.ts.map +1 -0
- package/dist/es/ui/scroll-slider.js +29 -0
- package/{types → dist/es}/ui/scrollpoint.d.ts +80 -12
- package/dist/es/ui/scrollpoint.d.ts.map +1 -0
- package/dist/es/ui/scrollpoint.js +178 -0
- package/{types → dist/es}/ui/slider.d.ts +16 -13
- package/dist/es/ui/slider.d.ts.map +1 -0
- package/dist/es/ui/slider.js +290 -0
- package/{types → dist/es}/ui/tabs.d.ts +2 -2
- package/dist/es/ui/tabs.d.ts.map +1 -0
- package/dist/es/ui/tabs.js +64 -0
- package/{types → dist/es}/ui/theme-toggle.d.ts +4 -4
- package/dist/es/ui/theme-toggle.d.ts.map +1 -0
- package/dist/es/ui/theme-toggle.js +190 -0
- package/{types → dist/es}/ui/tooltip.d.ts +5 -5
- package/dist/es/ui/tooltip.d.ts.map +1 -0
- package/dist/es/ui/tooltip.js +184 -0
- package/{types → dist/es}/utils/class-logger.d.ts +4 -4
- package/dist/es/utils/class-logger.d.ts.map +1 -0
- package/dist/es/utils/class-logger.js +37 -0
- package/dist/es/utils/css.d.ts.map +1 -0
- package/dist/es/utils/css.js +6 -0
- package/{types → dist/es}/utils/dom.d.ts +1 -1
- package/dist/es/utils/dom.d.ts.map +1 -0
- package/dist/es/utils/dom.js +29 -0
- package/{types → dist/es}/utils/file-save.d.ts +4 -1
- package/dist/es/utils/file-save.d.ts.map +1 -0
- package/dist/es/utils/file-save.js +46 -0
- package/{types → dist/es}/utils/floating-ui.d.ts +1 -1
- package/dist/es/utils/floating-ui.d.ts.map +1 -0
- package/dist/es/utils/floating-ui.js +46 -0
- package/dist/es/utils/font-awesome.d.ts.map +1 -0
- package/dist/es/utils/font-awesome.js +13 -0
- package/dist/es/utils/id.d.ts.map +1 -0
- package/dist/es/utils/id.js +11 -0
- package/dist/es/utils/index.d.ts +8 -0
- package/dist/es/utils/index.d.ts.map +1 -0
- package/dist/es/utils/pause-youtube-video.d.ts.map +1 -0
- package/dist/es/utils/pause-youtube-video.js +27 -0
- package/dist/umd/style.css +1 -0
- package/dist/umd/ulu-frontend.umd.js +70 -0
- package/lib/index.js +5 -0
- package/{js/utils/system.js → lib/js/core/component.js} +13 -12
- package/lib/js/core/events.js +98 -0
- package/lib/js/core/index.js +34 -0
- package/{js → lib/js/core}/settings.js +3 -3
- package/lib/js/exports.md +126 -0
- package/lib/js/index.js +7 -0
- package/{js → lib/js}/ui/breakpoints.js +40 -35
- package/{js → lib/js}/ui/collapsible.js +2 -2
- package/{js → lib/js}/ui/details-group.js +2 -2
- package/{js → lib/js}/ui/dialog.js +6 -6
- package/{js → lib/js}/ui/flipcard.js +2 -2
- package/{js → lib/js}/ui/grid.js +2 -2
- package/lib/js/ui/index.js +165 -0
- package/{js → lib/js}/ui/modal-builder.js +11 -9
- package/{js → lib/js}/ui/overflow-scroller.js +2 -2
- package/{js → lib/js}/ui/popover.js +2 -2
- package/{js → lib/js}/ui/print-details.js +3 -3
- package/{js → lib/js}/ui/print.js +2 -2
- package/{js → lib/js}/ui/programmatic-modal.js +3 -3
- package/{js → lib/js}/ui/proxy-click.js +2 -2
- package/{js → lib/js}/ui/resizer.js +2 -2
- package/{js → lib/js}/ui/scroll-slider.js +2 -2
- package/{js → lib/js}/ui/scrollpoint.js +2 -2
- package/{js → lib/js}/ui/slider.js +25 -16
- package/{js → lib/js}/ui/tabs.js +2 -2
- package/{js → lib/js}/ui/theme-toggle.js +5 -5
- package/{js → lib/js}/ui/tooltip.js +4 -4
- package/{js → lib/js}/utils/css.js +1 -1
- package/{js → lib/js}/utils/font-awesome.js +2 -2
- package/lib/js/utils/index.js +63 -0
- package/{scss → lib/scss}/_breakpoint.scss +4 -4
- package/{scss → lib/scss}/_button.scss +1 -0
- package/{scss → lib/scss}/_color.scss +42 -38
- package/{scss → lib/scss}/_element.scss +13 -2
- package/{scss → lib/scss}/_typography.scss +15 -0
- package/lib/scss/components/_accordion.scss +268 -0
- package/{scss → lib/scss}/components/_basic-hero.scss +1 -1
- package/lib/scss/components/_breadcrumb.scss +110 -0
- package/{scss → lib/scss}/components/_button.scss +23 -4
- package/{scss → lib/scss}/components/_card-grid.scss +8 -2
- package/lib/scss/components/_card.scss +655 -0
- package/lib/scss/components/_definition-list.scss +178 -0
- package/{scss → lib/scss}/components/_form-theme.scss +3 -3
- package/{scss → lib/scss}/components/_index.scss +25 -0
- package/{scss → lib/scss}/components/_menu-stack.scss +170 -16
- package/{scss → lib/scss}/components/_modal.scss +23 -13
- package/lib/scss/components/_progress-bar.scss +260 -0
- package/lib/scss/components/_progress-circle.scss +175 -0
- package/{scss → lib/scss}/components/_skeleton.scss +24 -20
- package/{scss → lib/scss}/components/_tag.scss +49 -7
- package/{scss → lib/scss}/helpers/_utilities.scss +22 -3
- package/package.json +65 -43
- package/.browserslistrc +0 -2
- package/.eslintrc +0 -17
- package/.prettierrc +0 -10
- package/CHANGELOG.md +0 -750
- package/deprecated/js/doc-ready.js +0 -28
- package/deprecated/js/drupal-programmatic-modal.js +0 -91
- package/deprecated/js/jquery-prototypes.js +0 -309
- package/deprecated/js/micromodal-modals.js +0 -196
- package/deprecated/js/mini-collapsible-popper-positioning.js +0 -126
- package/deprecated/js/mini-collapsible.js +0 -607
- package/deprecated/js/node-data-manager.js +0 -78
- package/deprecated/js/script-loader.js +0 -60
- package/deprecated/js/waypoints/README.md +0 -3
- package/deprecated/js/waypoints/anchor-menu.js +0 -76
- package/deprecated/js/waypoints/element-waypoint.js +0 -75
- package/deprecated/js/waypoints/examples/page-link-menu.md +0 -106
- package/deprecated/js/waypoints/state-in-attribute.js +0 -32
- package/dist/ulu-frontend.min.css +0 -1
- package/dist/ulu-frontend.min.js +0 -77
- package/docs-dev/.nojekyll +0 -1
- package/docs-dev/assets/chunks/modulepreload-polyfill.DaKOjhqt.js +0 -37
- package/docs-dev/assets/favicons/android-chrome-192x192.png +0 -0
- package/docs-dev/assets/favicons/android-chrome-256x256.png +0 -0
- package/docs-dev/assets/favicons/apple-touch-icon.png +0 -0
- package/docs-dev/assets/favicons/browserconfig.xml +0 -9
- package/docs-dev/assets/favicons/favicon-16x16.png +0 -0
- package/docs-dev/assets/favicons/favicon-32x32.png +0 -0
- package/docs-dev/assets/favicons/favicon.ico +0 -0
- package/docs-dev/assets/favicons/mstile-150x150.png +0 -0
- package/docs-dev/assets/favicons/safari-pinned-tab.svg +0 -1
- package/docs-dev/assets/favicons/site.webmanifest +0 -19
- package/docs-dev/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Black.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-BlackItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Bold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-BoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraLight.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraLightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Italic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Light.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-LightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Medium.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-MediumItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Regular.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-SemiBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Thin.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ThinItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Black.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-BlackItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Bold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-BoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraLight.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraLightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Italic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Light.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-LightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Medium.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-MediumItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Regular.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-SemiBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-SemiBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Thin.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ThinItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterVariable-Italic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterVariable.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/LICENSE.txt +0 -92
- package/docs-dev/assets/fonts/inter/inter.css +0 -37
- package/docs-dev/assets/main.js +0 -23312
- package/docs-dev/assets/placeholder/4065947-uhd_4096_2160_25fps.credits.txt +0 -2
- package/docs-dev/assets/placeholder/4065947-uhd_4096_2160_25fps.mp4 +0 -0
- package/docs-dev/assets/placeholder/icon-calendar.svg +0 -1
- package/docs-dev/assets/placeholder/icon-check.svg +0 -1
- package/docs-dev/assets/placeholder/image-1-attribution.txt +0 -7
- package/docs-dev/assets/placeholder/image-1-darkened.jpg +0 -0
- package/docs-dev/assets/placeholder/image-1-lightened.jpg +0 -0
- package/docs-dev/assets/placeholder/image-1.jpg +0 -0
- package/docs-dev/assets/style.css +0 -19153
- package/docs-dev/changelog/index.html +0 -7184
- package/docs-dev/demos/accordion/index.html +0 -5811
- package/docs-dev/demos/badge/index.html +0 -5655
- package/docs-dev/demos/badge-stack/index.html +0 -5636
- package/docs-dev/demos/badge.1/index.html +0 -5595
- package/docs-dev/demos/basic-hero/index.html +0 -111
- package/docs-dev/demos/breakpoints-manager/index.html +0 -5666
- package/docs-dev/demos/button/index.html +0 -5665
- package/docs-dev/demos/button-group/index.html +0 -5652
- package/docs-dev/demos/button-verbose/index.html +0 -5658
- package/docs-dev/demos/callout/index.html +0 -5704
- package/docs-dev/demos/captioned-figure/index.html +0 -5686
- package/docs-dev/demos/card/index.html +0 -5682
- package/docs-dev/demos/card-grid/index.html +0 -5777
- package/docs-dev/demos/counter-list/index.html +0 -5660
- package/docs-dev/demos/css-icons/index.html +0 -6298
- package/docs-dev/demos/data-grid/index.html +0 -6529
- package/docs-dev/demos/data-table/index.html +0 -5833
- package/docs-dev/demos/details-group/index.html +0 -5687
- package/docs-dev/demos/file-save/index.html +0 -5675
- package/docs-dev/demos/flipcard/index.html +0 -6224
- package/docs-dev/demos/form-theme/index.html +0 -5842
- package/docs-dev/demos/headline-label/index.html +0 -5622
- package/docs-dev/demos/hero/index.html +0 -309
- package/docs-dev/demos/image-grid/index.html +0 -165
- package/docs-dev/demos/index.html +0 -5613
- package/docs-dev/demos/list-inline/index.html +0 -5640
- package/docs-dev/demos/list-lines/index.html +0 -5630
- package/docs-dev/demos/menu-stack/index.html +0 -5769
- package/docs-dev/demos/modals/index.html +0 -5844
- package/docs-dev/demos/nav-strip/index.html +0 -5725
- package/docs-dev/demos/overlay-section/index.html +0 -5701
- package/docs-dev/demos/panel/index.html +0 -5682
- package/docs-dev/demos/popovers/index.html +0 -0
- package/docs-dev/demos/print/index.html +0 -5633
- package/docs-dev/demos/pull-quote/index.html +0 -5632
- package/docs-dev/demos/rail/index.html +0 -5730
- package/docs-dev/demos/rule/index.html +0 -5694
- package/docs-dev/demos/scroll-slider/index.html +0 -170
- package/docs-dev/demos/scrollpoints/index.html +0 -5651
- package/docs-dev/demos/skeleton/index.html +0 -5676
- package/docs-dev/demos/slider/index.html +0 -172
- package/docs-dev/demos/spoke-spinner/index.html +0 -5628
- package/docs-dev/demos/sticky-list/index.html +0 -5643
- package/docs-dev/demos/tabs/index.html +0 -5753
- package/docs-dev/demos/tag/index.html +0 -5633
- package/docs-dev/demos/theme-toggle/index.html +0 -5699
- package/docs-dev/demos/tile-grid-overlay/index.html +0 -390
- package/docs-dev/demos/tiles/index.html +0 -5882
- package/docs-dev/demos/tooltip/index.html +0 -5661
- package/docs-dev/demos/wysiwyg/index.html +0 -5672
- package/docs-dev/guide/building-stylesheet/index.html +0 -5682
- package/docs-dev/guide/developing-ulu-scss-module/index.html +0 -5734
- package/docs-dev/guide/index.html +0 -5615
- package/docs-dev/index.html +0 -5662
- package/docs-dev/javascript/events/index.html +0 -5811
- package/docs-dev/javascript/index.html +0 -5628
- package/docs-dev/javascript/settings/index.html +0 -5825
- package/docs-dev/javascript/ui-breakpoints/index.html +0 -6071
- package/docs-dev/javascript/ui-collapsible/index.html +0 -5738
- package/docs-dev/javascript/ui-details-group/index.html +0 -5742
- package/docs-dev/javascript/ui-dialog/index.html +0 -5787
- package/docs-dev/javascript/ui-flipcard/index.html +0 -5678
- package/docs-dev/javascript/ui-grid/index.html +0 -5653
- package/docs-dev/javascript/ui-modal-builder/index.html +0 -5901
- package/docs-dev/javascript/ui-overflow-scroller/index.html +0 -5611
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +0 -5629
- package/docs-dev/javascript/ui-page/index.html +0 -5626
- package/docs-dev/javascript/ui-popover/index.html +0 -5661
- package/docs-dev/javascript/ui-print/index.html +0 -5670
- package/docs-dev/javascript/ui-print-details/index.html +0 -5641
- package/docs-dev/javascript/ui-programmatic-modal/index.html +0 -5611
- package/docs-dev/javascript/ui-proxy-click/index.html +0 -5740
- package/docs-dev/javascript/ui-resizer/index.html +0 -5946
- package/docs-dev/javascript/ui-scroll-slider/index.html +0 -5672
- package/docs-dev/javascript/ui-scrollpoint/index.html +0 -5851
- package/docs-dev/javascript/ui-slider/index.html +0 -5813
- package/docs-dev/javascript/ui-tabs/index.html +0 -5706
- package/docs-dev/javascript/ui-theme-toggle/index.html +0 -5830
- package/docs-dev/javascript/ui-tooltip/index.html +0 -5754
- package/docs-dev/javascript/utils-class-logger/index.html +0 -5746
- package/docs-dev/javascript/utils-css/index.html +0 -5644
- package/docs-dev/javascript/utils-dom/index.html +0 -5711
- package/docs-dev/javascript/utils-file-save/index.html +0 -5783
- package/docs-dev/javascript/utils-floating-ui/index.html +0 -5643
- package/docs-dev/javascript/utils-id/index.html +0 -5653
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +0 -5661
- package/docs-dev/javascript/utils-system/index.html +0 -5947
- package/docs-dev/sass/base/color/index.html +0 -5644
- package/docs-dev/sass/base/elements/index.html +0 -5815
- package/docs-dev/sass/base/index/index.html +0 -5814
- package/docs-dev/sass/base/index.html +0 -5622
- package/docs-dev/sass/base/keyframes/index.html +0 -5646
- package/docs-dev/sass/base/layout/index.html +0 -5806
- package/docs-dev/sass/base/normalize/index.html +0 -5654
- package/docs-dev/sass/base/print/index.html +0 -5650
- package/docs-dev/sass/base/root/index.html +0 -5670
- package/docs-dev/sass/base/typography/index.html +0 -5670
- package/docs-dev/sass/components/accordion/index.html +0 -5979
- package/docs-dev/sass/components/adaptive-spacing/index.html +0 -5915
- package/docs-dev/sass/components/badge/index.html +0 -5881
- package/docs-dev/sass/components/badge-stack/index.html +0 -5811
- package/docs-dev/sass/components/basic-hero/index.html +0 -5805
- package/docs-dev/sass/components/button/index.html +0 -5799
- package/docs-dev/sass/components/button-group/index.html +0 -5803
- package/docs-dev/sass/components/button-verbose/index.html +0 -5986
- package/docs-dev/sass/components/callout/index.html +0 -5961
- package/docs-dev/sass/components/captioned-figure/index.html +0 -5904
- package/docs-dev/sass/components/card/index.html +0 -6219
- package/docs-dev/sass/components/card-grid/index.html +0 -5813
- package/docs-dev/sass/components/counter-list/index.html +0 -5887
- package/docs-dev/sass/components/css-icon/index.html +0 -5917
- package/docs-dev/sass/components/data-grid/index.html +0 -6052
- package/docs-dev/sass/components/data-table/index.html +0 -5988
- package/docs-dev/sass/components/fill-context/index.html +0 -5679
- package/docs-dev/sass/components/flipcard/index.html +0 -5980
- package/docs-dev/sass/components/flipcard-grid/index.html +0 -5800
- package/docs-dev/sass/components/form-theme/index.html +0 -6525
- package/docs-dev/sass/components/headline-label/index.html +0 -5833
- package/docs-dev/sass/components/hero/index.html +0 -5849
- package/docs-dev/sass/components/horizontal-rule/index.html +0 -5798
- package/docs-dev/sass/components/image-grid/index.html +0 -5805
- package/docs-dev/sass/components/index/index.html +0 -5859
- package/docs-dev/sass/components/index.html +0 -5622
- package/docs-dev/sass/components/links/index.html +0 -5649
- package/docs-dev/sass/components/list-inline/index.html +0 -5819
- package/docs-dev/sass/components/list-lines/index.html +0 -5840
- package/docs-dev/sass/components/list-ordered/index.html +0 -5645
- package/docs-dev/sass/components/list-unordered/index.html +0 -5649
- package/docs-dev/sass/components/menu-stack/index.html +0 -5992
- package/docs-dev/sass/components/modal/index.html +0 -6068
- package/docs-dev/sass/components/nav-strip/index.html +0 -5899
- package/docs-dev/sass/components/overlay-section/index.html +0 -5843
- package/docs-dev/sass/components/pager/index.html +0 -5961
- package/docs-dev/sass/components/panel/index.html +0 -6033
- package/docs-dev/sass/components/placeholder-block/index.html +0 -5883
- package/docs-dev/sass/components/popover/index.html +0 -5994
- package/docs-dev/sass/components/pull-quote/index.html +0 -5857
- package/docs-dev/sass/components/rail/index.html +0 -5823
- package/docs-dev/sass/components/ratio-box/index.html +0 -5803
- package/docs-dev/sass/components/rule/index.html +0 -5805
- package/docs-dev/sass/components/scroll-slider/index.html +0 -5904
- package/docs-dev/sass/components/skeleton/index.html +0 -5860
- package/docs-dev/sass/components/skip-link/index.html +0 -5789
- package/docs-dev/sass/components/slider/index.html +0 -5913
- package/docs-dev/sass/components/spoke-spinner/index.html +0 -5863
- package/docs-dev/sass/components/sticky-list/index.html +0 -6023
- package/docs-dev/sass/components/table-sticky/index.html +0 -5677
- package/docs-dev/sass/components/tabs/index.html +0 -5954
- package/docs-dev/sass/components/tag/index.html +0 -5964
- package/docs-dev/sass/components/tile-button/index.html +0 -5844
- package/docs-dev/sass/components/tile-grid/index.html +0 -5979
- package/docs-dev/sass/components/tile-grid-overlay/index.html +0 -5780
- package/docs-dev/sass/components/vignette/index.html +0 -5799
- package/docs-dev/sass/components/wysiwyg/index.html +0 -5827
- package/docs-dev/sass/core/breakpoint/index.html +0 -6454
- package/docs-dev/sass/core/button/index.html +0 -6538
- package/docs-dev/sass/core/color/index.html +0 -6520
- package/docs-dev/sass/core/cssvar/index.html +0 -6411
- package/docs-dev/sass/core/element/index.html +0 -6816
- package/docs-dev/sass/core/index.html +0 -5609
- package/docs-dev/sass/core/layout/index.html +0 -6388
- package/docs-dev/sass/core/path/index.html +0 -5778
- package/docs-dev/sass/core/selector/index.html +0 -5857
- package/docs-dev/sass/core/typography/index.html +0 -6783
- package/docs-dev/sass/core/units/index.html +0 -5822
- package/docs-dev/sass/core/utils/index.html +0 -8406
- package/docs-dev/sass/helpers/color/index.html +0 -5644
- package/docs-dev/sass/helpers/display/index.html +0 -5649
- package/docs-dev/sass/helpers/index/index.html +0 -5811
- package/docs-dev/sass/helpers/index.html +0 -5622
- package/docs-dev/sass/helpers/print/index.html +0 -5199
- package/docs-dev/sass/helpers/typography/index.html +0 -5672
- package/docs-dev/sass/helpers/units/index.html +0 -5818
- package/docs-dev/sass/helpers/utilities/index.html +0 -5649
- package/docs-dev/sass/index.html +0 -5673
- package/index.js +0 -7
- package/js/events/index.js +0 -108
- package/js/index.js +0 -11
- package/js/ui/index.js +0 -22
- package/js/utils/index.js +0 -8
- package/resources/drupal/twig-macros/accordion.twig +0 -99
- package/resources/drupal/twig-macros/dropdown.twig +0 -44
- package/resources/drupal/twig-macros/flipcard.twig +0 -69
- package/resources/drupal/twig-macros/image.twig +0 -30
- package/resources/drupal/twig-macros/layout.twig +0 -338
- package/resources/drupal/twig-macros/slider.twig +0 -214
- package/resources/drupal/twig-macros/tabs.twig +0 -84
- package/scss/components/_accordion.scss +0 -231
- package/scss/components/_card.scss +0 -596
- package/types/events/index.d.ts +0 -26
- package/types/events/index.d.ts.map +0 -1
- package/types/index.d.ts +0 -5
- package/types/settings.d.ts.map +0 -1
- package/types/ui/breakpoints.d.ts.map +0 -1
- package/types/ui/collapsible.d.ts.map +0 -1
- package/types/ui/details-group.d.ts.map +0 -1
- package/types/ui/dialog.d.ts.map +0 -1
- package/types/ui/flipcard.d.ts.map +0 -1
- package/types/ui/grid.d.ts.map +0 -1
- package/types/ui/index.d.ts +0 -24
- package/types/ui/modal-builder.d.ts.map +0 -1
- package/types/ui/overflow-scroller-pager.d.ts.map +0 -1
- package/types/ui/overflow-scroller.d.ts.map +0 -1
- package/types/ui/page.d.ts.map +0 -1
- package/types/ui/popover.d.ts.map +0 -1
- package/types/ui/print-details.d.ts.map +0 -1
- package/types/ui/print.d.ts.map +0 -1
- package/types/ui/programmatic-modal.d.ts.map +0 -1
- package/types/ui/proxy-click.d.ts.map +0 -1
- package/types/ui/resizer.d.ts.map +0 -1
- package/types/ui/scroll-slider.d.ts.map +0 -1
- package/types/ui/scrollpoint.d.ts.map +0 -1
- package/types/ui/slider.d.ts.map +0 -1
- package/types/ui/tabs.d.ts.map +0 -1
- package/types/ui/theme-toggle.d.ts.map +0 -1
- package/types/ui/tooltip.d.ts.map +0 -1
- package/types/utils/class-logger.d.ts.map +0 -1
- package/types/utils/css.d.ts.map +0 -1
- package/types/utils/dom.d.ts.map +0 -1
- package/types/utils/file-save.d.ts.map +0 -1
- package/types/utils/floating-ui.d.ts.map +0 -1
- package/types/utils/font-awesome.d.ts.map +0 -1
- package/types/utils/id.d.ts.map +0 -1
- package/types/utils/index.d.ts +0 -10
- package/types/utils/pause-youtube-video.d.ts.map +0 -1
- package/types/utils/system.d.ts.map +0 -1
- /package/{types → dist/es}/ui/overflow-scroller-pager.d.ts +0 -0
- /package/{types → dist/es}/ui/page.d.ts +0 -0
- /package/{types → dist/es}/ui/print-details.d.ts +0 -0
- /package/{types → dist/es}/ui/print.d.ts +0 -0
- /package/{types → dist/es}/utils/css.d.ts +0 -0
- /package/{types → dist/es}/utils/font-awesome.d.ts +0 -0
- /package/{types → dist/es}/utils/id.d.ts +0 -0
- /package/{types → dist/es}/utils/pause-youtube-video.d.ts +0 -0
- /package/{js → lib/js}/ui/dialog.todo +0 -0
- /package/{js → lib/js}/ui/overflow-scroller-pager.js +0 -0
- /package/{js → lib/js}/ui/page.js +0 -0
- /package/{js → lib/js}/utils/class-logger.js +0 -0
- /package/{js → lib/js}/utils/dom.js +0 -0
- /package/{js → lib/js}/utils/file-save.js +0 -0
- /package/{js → lib/js}/utils/floating-ui.js +0 -0
- /package/{js → lib/js}/utils/id.js +0 -0
- /package/{js → lib/js}/utils/pause-youtube-video.js +0 -0
- /package/{scss → lib/scss}/README.md +0 -0
- /package/{scss → lib/scss}/_cssvar.scss +0 -0
- /package/{scss → lib/scss}/_index.scss +0 -0
- /package/{scss → lib/scss}/_layout.scss +0 -0
- /package/{scss → lib/scss}/_path.scss +0 -0
- /package/{scss → lib/scss}/_selector.scss +0 -0
- /package/{scss → lib/scss}/_units.scss +0 -0
- /package/{scss → lib/scss}/_utils.scss +0 -0
- /package/{scss → lib/scss}/base/_color.scss +0 -0
- /package/{scss → lib/scss}/base/_elements.scss +0 -0
- /package/{scss → lib/scss}/base/_index.scss +0 -0
- /package/{scss → lib/scss}/base/_keyframes.scss +0 -0
- /package/{scss → lib/scss}/base/_layout.scss +0 -0
- /package/{scss → lib/scss}/base/_normalize.scss +0 -0
- /package/{scss → lib/scss}/base/_print.scss +0 -0
- /package/{scss → lib/scss}/base/_root.scss +0 -0
- /package/{scss → lib/scss}/base/_typography.scss +0 -0
- /package/{scss → lib/scss}/components/README.md +0 -0
- /package/{scss → lib/scss}/components/README.todos +0 -0
- /package/{scss → lib/scss}/components/_adaptive-spacing.scss +0 -0
- /package/{scss → lib/scss}/components/_badge-stack.scss +0 -0
- /package/{scss → lib/scss}/components/_badge.scss +0 -0
- /package/{scss → lib/scss}/components/_button-group.scss +0 -0
- /package/{scss → lib/scss}/components/_button-verbose.scss +0 -0
- /package/{scss → lib/scss}/components/_callout.scss +0 -0
- /package/{scss → lib/scss}/components/_captioned-figure.scss +0 -0
- /package/{scss → lib/scss}/components/_counter-list.scss +0 -0
- /package/{scss → lib/scss}/components/_css-icon.scss +0 -0
- /package/{scss → lib/scss}/components/_data-grid.scss +0 -0
- /package/{scss → lib/scss}/components/_data-table.scss +0 -0
- /package/{scss → lib/scss}/components/_fill-context.scss +0 -0
- /package/{scss → lib/scss}/components/_flipcard-grid.scss +0 -0
- /package/{scss → lib/scss}/components/_flipcard.scss +0 -0
- /package/{scss → lib/scss}/components/_headline-label.scss +0 -0
- /package/{scss → lib/scss}/components/_hero.scss +0 -0
- /package/{scss → lib/scss}/components/_horizontal-rule.scss +0 -0
- /package/{scss → lib/scss}/components/_image-grid.scss +0 -0
- /package/{scss → lib/scss}/components/_links.scss +0 -0
- /package/{scss → lib/scss}/components/_list-inline.scss +0 -0
- /package/{scss → lib/scss}/components/_list-lines.scss +0 -0
- /package/{scss → lib/scss}/components/_list-ordered.scss +0 -0
- /package/{scss → lib/scss}/components/_list-unordered.scss +0 -0
- /package/{scss → lib/scss}/components/_nav-strip.scss +0 -0
- /package/{scss → lib/scss}/components/_overlay-section.scss +0 -0
- /package/{scss → lib/scss}/components/_pager.scss +0 -0
- /package/{scss → lib/scss}/components/_panel.scss +0 -0
- /package/{scss → lib/scss}/components/_placeholder-block.scss +0 -0
- /package/{scss → lib/scss}/components/_popover.scss +0 -0
- /package/{scss → lib/scss}/components/_pull-quote.scss +0 -0
- /package/{scss → lib/scss}/components/_rail.scss +0 -0
- /package/{scss → lib/scss}/components/_ratio-box.scss +0 -0
- /package/{scss → lib/scss}/components/_rule.scss +0 -0
- /package/{scss → lib/scss}/components/_scroll-slider.scss +0 -0
- /package/{scss → lib/scss}/components/_skip-link.scss +0 -0
- /package/{scss → lib/scss}/components/_slider.scss +0 -0
- /package/{scss → lib/scss}/components/_spoke-spinner.scss +0 -0
- /package/{scss → lib/scss}/components/_sticky-list.scss +0 -0
- /package/{scss → lib/scss}/components/_tabs.scss +0 -0
- /package/{scss → lib/scss}/components/_tile-button.scss +0 -0
- /package/{scss → lib/scss}/components/_tile-grid-overlay.scss +0 -0
- /package/{scss → lib/scss}/components/_tile-grid.scss +0 -0
- /package/{scss → lib/scss}/components/_vignette.scss +0 -0
- /package/{scss → lib/scss}/components/_wysiwyg.scss +0 -0
- /package/{scss → lib/scss}/helpers/_color.scss +0 -0
- /package/{scss → lib/scss}/helpers/_display.scss +0 -0
- /package/{scss → lib/scss}/helpers/_index.scss +0 -0
- /package/{scss → lib/scss}/helpers/_print.scss +0 -0
- /package/{scss → lib/scss}/helpers/_typography.scss +0 -0
- /package/{scss → lib/scss}/helpers/_units.scss +0 -0
- /package/{scss → lib/scss}/stylesheets/README.md +0 -0
- /package/{scss → lib/scss}/stylesheets/base-styles.scss +0 -0
- /package/{scss → lib/scss}/stylesheets/component-styles.scss +0 -0
- /package/{scss → lib/scss}/stylesheets/full.scss +0 -0
- /package/{scss → lib/scss}/stylesheets/helper-styles.scss +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var g = (l, t, e) => t in l ? f(l, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[t] = e;
|
|
3
|
+
var u = (l, t, e) => g(l, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ComponentInitializer as v } from "../core/component.js";
|
|
5
|
+
import { getUluEventName as E } from "../core/events.js";
|
|
6
|
+
import { createFloatingUi as y } from "../utils/floating-ui.js";
|
|
7
|
+
import { createElementFromHtml as C } from "@ulu/utils/browser/dom.js";
|
|
8
|
+
import { logError as p } from "../utils/class-logger.js";
|
|
9
|
+
import { ensureId as b, newId as w } from "../utils/id.js";
|
|
10
|
+
const d = new v({
|
|
11
|
+
type: "tooltip",
|
|
12
|
+
baseAttribute: "data-ulu-tooltip"
|
|
13
|
+
}), A = d.getAttribute("body"), H = d.attributeSelector("body"), S = d.attributeSelector("arrow");
|
|
14
|
+
function j() {
|
|
15
|
+
d.init({
|
|
16
|
+
coreEvents: ["pageModified"],
|
|
17
|
+
withData: !0,
|
|
18
|
+
setup({ element: l, data: t, initialize: e }) {
|
|
19
|
+
const n = typeof t == "object" ? t : {};
|
|
20
|
+
typeof t == "string" && (n.content = t), e(), new m({ trigger: l }, n);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const a = class a {
|
|
25
|
+
constructor(t, e, n) {
|
|
26
|
+
const { trigger: s } = t;
|
|
27
|
+
if (!s) {
|
|
28
|
+
p(this, "missing required trigger");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.options = Object.assign({}, a.defaults, e), this.floatingOptions = Object.assign({}, a.defaultFloatingOptions, n), this.elements = { ...t }, this.handlers = {}, this.isOpen = !1, b(s), this.setup();
|
|
32
|
+
}
|
|
33
|
+
setup() {
|
|
34
|
+
this.createContentElement(), this.attachHandlers(), this.setupAccessibility();
|
|
35
|
+
}
|
|
36
|
+
setupAccessibility() {
|
|
37
|
+
const { trigger: t, content: e } = this.elements, { accessible: n } = this.options;
|
|
38
|
+
n && t.setAttribute("aria-describedby", e.id);
|
|
39
|
+
}
|
|
40
|
+
destroy() {
|
|
41
|
+
this.destroyHandlers(), this.destroyDisplay();
|
|
42
|
+
}
|
|
43
|
+
getInnerContent() {
|
|
44
|
+
const { fromElement: t, content: e, isHtml: n, fromAnchor: s } = this.options;
|
|
45
|
+
if (e)
|
|
46
|
+
return e;
|
|
47
|
+
if (t || s) {
|
|
48
|
+
const o = s ? this.getAnchorElement() : document.querySelector(t);
|
|
49
|
+
return o ? n ? o.innerHTML : o.innerText : "";
|
|
50
|
+
} else
|
|
51
|
+
p(this, "Could not resolve inner content");
|
|
52
|
+
}
|
|
53
|
+
getAnchorElement() {
|
|
54
|
+
const { trigger: t } = this.elements, { href: e } = t, n = e ? e.split("#")[1] : null, s = n ? document.getElementById(n) : null;
|
|
55
|
+
return s || console.error("Unable to get 'fromAnchor' element", t), s;
|
|
56
|
+
}
|
|
57
|
+
createContentElement() {
|
|
58
|
+
const { options: t } = this, e = C(t.template(t)), n = e.querySelector(H), s = this.getInnerContent();
|
|
59
|
+
t.isHtml ? n.innerHTML = s : n.textContent = s, e.id = w(), t.contentClass && e.classList.add(t.contentClass), this.elements.content = e, this.elements.contentArrow = e.querySelector(S), document.body.appendChild(e);
|
|
60
|
+
}
|
|
61
|
+
attachHandlers() {
|
|
62
|
+
const { trigger: t } = this.elements, { showEvents: e, hideEvents: n, delay: s } = this.options;
|
|
63
|
+
let o = null;
|
|
64
|
+
const c = (i) => {
|
|
65
|
+
o || (o = setTimeout(() => {
|
|
66
|
+
this.show(i), clearTimeout(o);
|
|
67
|
+
}, s));
|
|
68
|
+
}, r = (i) => {
|
|
69
|
+
o && (clearTimeout(o), o = null), this.hide(i);
|
|
70
|
+
}, h = (i) => {
|
|
71
|
+
i.key === "Escape" && this.hide(i);
|
|
72
|
+
};
|
|
73
|
+
e.forEach((i) => {
|
|
74
|
+
t.addEventListener(i, c);
|
|
75
|
+
}), n.forEach((i) => {
|
|
76
|
+
t.addEventListener(i, r);
|
|
77
|
+
}), document.addEventListener("keydown", h), this.handlers = { onShow: c, onHide: r, onDocumentKeydown: h };
|
|
78
|
+
}
|
|
79
|
+
destroyHandlers() {
|
|
80
|
+
const { trigger: t } = this, { onShow: e, onHide: n, onDocumentKeydown: s } = this.handlers, { showEvents: o, hideEvents: c } = this.options;
|
|
81
|
+
e && o.forEach((r) => {
|
|
82
|
+
t.removeEventListener(r, e);
|
|
83
|
+
}), n && c.forEach((r) => {
|
|
84
|
+
t.removeEventListener(r, n);
|
|
85
|
+
}), s && document.removeEventListener("keydown", s);
|
|
86
|
+
}
|
|
87
|
+
setState(t, e) {
|
|
88
|
+
const n = {
|
|
89
|
+
instance: this,
|
|
90
|
+
isOpen: t,
|
|
91
|
+
event: e
|
|
92
|
+
}, { trigger: s, content: o } = this.elements, { openClass: c } = this.options, r = (h) => h.classList[t ? "add" : "remove"](c);
|
|
93
|
+
r(s), r(o), this.isOpen = t, this.options.onChange(n), s.dispatchEvent(this.createEvent("change", n)), this.destroyFloatingInstance(), t && this.createFloatingInstance();
|
|
94
|
+
}
|
|
95
|
+
createEvent(t, e) {
|
|
96
|
+
return new CustomEvent(E("tooltip:" + t), { detail: e });
|
|
97
|
+
}
|
|
98
|
+
createFloatingInstance() {
|
|
99
|
+
this.floatingCleanup = y(this.elements, this.floatingOptions);
|
|
100
|
+
}
|
|
101
|
+
destroyFloatingInstance() {
|
|
102
|
+
this.floatingCleanup && (this.floatingCleanup(), this.floatingCleanup = null);
|
|
103
|
+
}
|
|
104
|
+
show(t) {
|
|
105
|
+
this.setState(!0, t);
|
|
106
|
+
}
|
|
107
|
+
hide(t) {
|
|
108
|
+
this.setState(!1, t);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Defaults options
|
|
113
|
+
*/
|
|
114
|
+
u(a, "defaults", {
|
|
115
|
+
/**
|
|
116
|
+
* Should the tooltip and content be linked accessibly
|
|
117
|
+
* - Note tooltips can only apply to interactive elements! (ie button, input, role="...", etc)
|
|
118
|
+
* @type {Boolean}
|
|
119
|
+
*/
|
|
120
|
+
accessible: !0,
|
|
121
|
+
/**
|
|
122
|
+
* String/markup to insert into tooltip display
|
|
123
|
+
* @type {String}
|
|
124
|
+
*/
|
|
125
|
+
content: null,
|
|
126
|
+
openClass: "is-active",
|
|
127
|
+
contentClass: "",
|
|
128
|
+
isHtml: !1,
|
|
129
|
+
/**
|
|
130
|
+
* Pull content from pre-existing content on page
|
|
131
|
+
* @type {String|Node}
|
|
132
|
+
*/
|
|
133
|
+
fromElement: null,
|
|
134
|
+
/**
|
|
135
|
+
* If used on a link that is an anchor link it will display the content of the anchor like fromElement
|
|
136
|
+
*/
|
|
137
|
+
fromAnchor: !1,
|
|
138
|
+
/**
|
|
139
|
+
* Move the content to the bottom of the document
|
|
140
|
+
* @type {Boolean}
|
|
141
|
+
*/
|
|
142
|
+
endOfDocument: !0,
|
|
143
|
+
/**
|
|
144
|
+
* Events to show tooltip on
|
|
145
|
+
* @type {Array.<String>}
|
|
146
|
+
*/
|
|
147
|
+
showEvents: ["pointerenter", "focus"],
|
|
148
|
+
/**
|
|
149
|
+
* Events to hide tooltip on
|
|
150
|
+
* @type {Array.<String>}
|
|
151
|
+
*/
|
|
152
|
+
hideEvents: ["pointerleave", "blur"],
|
|
153
|
+
/**
|
|
154
|
+
* Delay when using the directive
|
|
155
|
+
* @type {Number}
|
|
156
|
+
*/
|
|
157
|
+
delay: 500,
|
|
158
|
+
/**
|
|
159
|
+
* Template for the content display
|
|
160
|
+
*/
|
|
161
|
+
template(t) {
|
|
162
|
+
return `
|
|
163
|
+
<div class="popover popover--tooltip">
|
|
164
|
+
<div class="popover__inner" ${A}>
|
|
165
|
+
</div>
|
|
166
|
+
<span class="popover__arrow" data-ulu-tooltip-arrow></span>
|
|
167
|
+
</div>
|
|
168
|
+
`;
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
* Callback when tooltip is shown or hidden
|
|
172
|
+
* @type {Function}
|
|
173
|
+
*/
|
|
174
|
+
onChange(t) {
|
|
175
|
+
}
|
|
176
|
+
}), u(a, "defaultFloatingOptions", {
|
|
177
|
+
// strategy: "fixed"
|
|
178
|
+
});
|
|
179
|
+
let m = a;
|
|
180
|
+
export {
|
|
181
|
+
m as Tooltip,
|
|
182
|
+
j as init,
|
|
183
|
+
d as initializer
|
|
184
|
+
};
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
* Changes to make to configuration
|
|
3
3
|
* @param {Object} changes
|
|
4
4
|
*/
|
|
5
|
-
export function set(changes:
|
|
5
|
+
export function set(changes: Object): void;
|
|
6
6
|
/**
|
|
7
7
|
* Proxy Console.log
|
|
8
8
|
* @param {Object} context Class instance (optional), will rely on classes (debug) property for output
|
|
9
9
|
* @param {...any} messages
|
|
10
10
|
*/
|
|
11
|
-
export function log(context:
|
|
11
|
+
export function log(context: Object, ...messages: any[]): void;
|
|
12
12
|
/**
|
|
13
13
|
* Proxy Console.warn
|
|
14
14
|
* @param {Object} context Class instance (optional), will rely on classes (debug) property for output
|
|
15
15
|
* @param {...any} messages
|
|
16
16
|
*/
|
|
17
|
-
export function logWarning(context:
|
|
17
|
+
export function logWarning(context: Object, ...messages: any[]): void;
|
|
18
18
|
/**
|
|
19
19
|
* Proxy Console.error
|
|
20
20
|
* @param {Object} context Class instance (optional), will rely on classes (debug) property for output
|
|
21
21
|
* @param {...any} messages
|
|
22
22
|
*/
|
|
23
|
-
export function logError(context:
|
|
23
|
+
export function logError(context: Object, ...messages: any[]): void;
|
|
24
24
|
//# sourceMappingURL=class-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-logger.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/class-logger.js"],"names":[],"mappings":"AAiCA;;;GAGG;AACH,6BAFW,MAAM,QAIhB;AAED;;;;GAIG;AACH,6BAHW,MAAM,eACF,GAAG,EAAA,QAMjB;AAED;;;;GAIG;AACH,oCAHW,MAAM,eACF,GAAG,EAAA,QAMjB;AAED;;;;GAIG;AACH,kCAHW,MAAM,eACF,GAAG,EAAA,QAMjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
debug: !1,
|
|
3
|
+
warningsAlways: !0,
|
|
4
|
+
errorsAlways: !0,
|
|
5
|
+
outputContext: !1
|
|
6
|
+
}, g = "console" in window;
|
|
7
|
+
function s(r) {
|
|
8
|
+
var o;
|
|
9
|
+
return g && n.debug && ((r == null ? void 0 : r.debug) || ((o = r == null ? void 0 : r.options) == null ? void 0 : o.debug) || r == null);
|
|
10
|
+
}
|
|
11
|
+
function a(r) {
|
|
12
|
+
var o;
|
|
13
|
+
return typeof r == "object" && ((o = r == null ? void 0 : r.constructor) == null ? void 0 : o.name);
|
|
14
|
+
}
|
|
15
|
+
function u(r, o, l) {
|
|
16
|
+
const i = a(o) || "Logger";
|
|
17
|
+
console[r](i, ...l), n.outputContext && console.log(`Context:
|
|
18
|
+
`, o);
|
|
19
|
+
}
|
|
20
|
+
function f(r) {
|
|
21
|
+
Object.assign(n, r);
|
|
22
|
+
}
|
|
23
|
+
function e(r, ...o) {
|
|
24
|
+
s(r) && u("log", r, o);
|
|
25
|
+
}
|
|
26
|
+
function w(r, ...o) {
|
|
27
|
+
(n.warningsAlways || s(r)) && u("warn", r, o);
|
|
28
|
+
}
|
|
29
|
+
function b(r, ...o) {
|
|
30
|
+
(n.errorsAlways || s(r)) && u("error", r, o);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
e as log,
|
|
34
|
+
b as logError,
|
|
35
|
+
w as logWarning,
|
|
36
|
+
f as set
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/css.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,0CAJW,MAAM,gBACN,MAAM,GACJ,MAAM,CAIlB"}
|
|
@@ -14,7 +14,7 @@ export function dataAttributeToDatasetKey(attribute: any): string;
|
|
|
14
14
|
* @param {Node} parent The grid parent <data-grid="">
|
|
15
15
|
* @param {Object} classes Override the default equal heights classes
|
|
16
16
|
*/
|
|
17
|
-
export function setPositionClasses(parent: Node, classes?:
|
|
17
|
+
export function setPositionClasses(parent: Node, classes?: Object): void;
|
|
18
18
|
/**
|
|
19
19
|
* Resolves a class input (string or array) into a consistent array of class names.
|
|
20
20
|
* @param {string|string[]} input - The class input, which can be a string, an array of strings, or any other value.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/dom.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,2DAFa,MAAM,CAIlB;AAED;;;;;;;;;GASG;AACH,2CAHa,IAAI,YACJ,MAAM,QAmClB;AAED;;;;;;;;GAQG;AACH,8CANa,MAAM,EAAE,CAiBpB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { kebabToCamel as f } from "@ulu/utils/string.js";
|
|
2
|
+
function c(t) {
|
|
3
|
+
return f(t.replace(/^data-/, ""));
|
|
4
|
+
}
|
|
5
|
+
function p(t, o = {
|
|
6
|
+
columnFirst: "position-column-first",
|
|
7
|
+
columnLast: "position-column-last",
|
|
8
|
+
rowFirst: "position-row-first",
|
|
9
|
+
rowLast: "position-row-last"
|
|
10
|
+
}) {
|
|
11
|
+
const l = [...t.children], n = [];
|
|
12
|
+
let e;
|
|
13
|
+
l.forEach((r) => {
|
|
14
|
+
const s = r.getBoundingClientRect().y;
|
|
15
|
+
e !== s && n.push([]), n[n.length - 1].push(r), e = s, r.classList.remove(...Object.values(o));
|
|
16
|
+
}), n.forEach((r, s) => {
|
|
17
|
+
s === 0 && r.forEach((i) => i.classList.add(o.rowFirst)), s == n.length - 1 && r.forEach((i) => i.classList.add(o.rowLast)), r.forEach((i, a) => {
|
|
18
|
+
a === 0 && i.classList.add(o.columnFirst), a == r.length - 1 && i.classList.add(o.columnLast);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function m(t) {
|
|
23
|
+
return typeof t == "string" ? t.split(" ").filter((o) => o !== "") : Array.isArray(t) ? t : t ? (console.warn("resolveClassArray: Invalid class input type.", t), []) : [];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
c as dataAttributeToDatasetKey,
|
|
27
|
+
m as resolveClasses,
|
|
28
|
+
p as setPositionClasses
|
|
29
|
+
};
|
|
@@ -30,7 +30,10 @@ export class FileSave {
|
|
|
30
30
|
* @param {FileSaveOptions} options Options for file, see defaults (ie. type, filename)
|
|
31
31
|
*/
|
|
32
32
|
constructor(data: any, options: FileSaveOptions);
|
|
33
|
-
options:
|
|
33
|
+
options: {
|
|
34
|
+
filename: string;
|
|
35
|
+
type: string;
|
|
36
|
+
} & FileSaveOptions;
|
|
34
37
|
data: any;
|
|
35
38
|
blob: Blob;
|
|
36
39
|
url: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-save.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/file-save.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AAGH;;;;;;;;GAQG;AACH;IACE;;;MAGC;IAmCD;;OAEG;IACH,qCAEC;IAvCD;;;OAGG;IACH,kBAHW,GAAC,WACD,eAAe,EAOzB;IAJC;;;wBAA4D;IAC5D,UAAgB;IAChB,WAAyD;IACzD,YAAyC;IAE3C;;OAEG;IACH,gBAEC;IACD;;OAEG;IACH,iBAEC;IACD;;;OAGG;IACH,4CAOC;CAOF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var a = (s, t, e) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var i = (s, t, e) => a(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
const r = class r {
|
|
5
|
+
/**
|
|
6
|
+
* @param {*} data Data to put in blob file
|
|
7
|
+
* @param {FileSaveOptions} options Options for file, see defaults (ie. type, filename)
|
|
8
|
+
*/
|
|
9
|
+
constructor(t, e) {
|
|
10
|
+
this.options = Object.assign({}, r.defaults, e), this.data = t, this.blob = new Blob([t], { type: this.options.type }), this.url = URL.createObjectURL(this.blob);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Remove the blob url
|
|
14
|
+
*/
|
|
15
|
+
destroy() {
|
|
16
|
+
return URL.revokeObjectURL(this.url);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the blob url
|
|
20
|
+
*/
|
|
21
|
+
getUrl() {
|
|
22
|
+
return this.url;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create link element with blob as href
|
|
26
|
+
* @param {String} text The text to put in the link
|
|
27
|
+
*/
|
|
28
|
+
createLink(t) {
|
|
29
|
+
const e = document.createElement("a"), n = document.createTextNode(t);
|
|
30
|
+
return e.setAttribute("download", this.options.filename), e.setAttribute("href", this.url), e.appendChild(n), e;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check for Compatibility (optional, implement on user side)
|
|
34
|
+
*/
|
|
35
|
+
static isBrowserSupported() {
|
|
36
|
+
return "FileReader" in window;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
i(r, "defaults", {
|
|
40
|
+
filename: "filesave-file.txt",
|
|
41
|
+
type: "text/plain;charset=utf-8"
|
|
42
|
+
});
|
|
43
|
+
let o = r;
|
|
44
|
+
export {
|
|
45
|
+
o as FileSave
|
|
46
|
+
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {*} options Configuration options for floatingUi
|
|
5
5
|
* @returns {Function} floating cleanup function call when no longer needed
|
|
6
6
|
*/
|
|
7
|
-
export function createFloatingUi(elements:
|
|
7
|
+
export function createFloatingUi(elements: Object, config: any): Function;
|
|
8
8
|
export namespace defaults {
|
|
9
9
|
let strategy: string;
|
|
10
10
|
let placement: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-ui.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/floating-ui.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,2CAJW,MAAM,yBA2ChB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { autoUpdate as d, computePosition as g, inline as y, offset as b, flip as h, shift as j, arrow as w } from "@floating-ui/dom";
|
|
2
|
+
const $ = {
|
|
3
|
+
strategy: "absolute",
|
|
4
|
+
placement: "bottom",
|
|
5
|
+
inline: !1,
|
|
6
|
+
offset: {
|
|
7
|
+
mainAxis: 16
|
|
8
|
+
},
|
|
9
|
+
shift: !0,
|
|
10
|
+
flip: !0,
|
|
11
|
+
arrow: !0
|
|
12
|
+
// Options for arrow (not element)
|
|
13
|
+
};
|
|
14
|
+
function O(l, n) {
|
|
15
|
+
const t = Object.assign({}, $, n), { placement: r, strategy: f } = t, { trigger: o, content: s, contentArrow: a } = l;
|
|
16
|
+
return d(o, s, () => {
|
|
17
|
+
g(o, s, {
|
|
18
|
+
placement: r,
|
|
19
|
+
strategy: f,
|
|
20
|
+
middleware: [
|
|
21
|
+
...i(y, t.inline),
|
|
22
|
+
...i(b, t.offset),
|
|
23
|
+
...i(h, t.flip),
|
|
24
|
+
...i(j, t.shift),
|
|
25
|
+
...i(w, a && t.arrow, { element: a })
|
|
26
|
+
]
|
|
27
|
+
}).then((c) => {
|
|
28
|
+
const { x: p, y: u, middlewareData: m, placement: x } = c, e = m.arrow;
|
|
29
|
+
Object.assign(s.style, {
|
|
30
|
+
left: `${p}px`,
|
|
31
|
+
top: `${u}px`
|
|
32
|
+
}), s.setAttribute("data-placement", x), e && Object.assign(a.style, {
|
|
33
|
+
// position: "absolute",
|
|
34
|
+
left: (e == null ? void 0 : e.x) != null ? `${e.x}px` : "",
|
|
35
|
+
top: (e == null ? void 0 : e.y) != null ? `${e.y}px` : ""
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function i(l, n, t = {}) {
|
|
41
|
+
return n ? typeof n == "object" ? [l({ ...n, ...t })] : [l(t)] : [];
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
O as createFloatingUi,
|
|
45
|
+
$ as defaults
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-awesome.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/font-awesome.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,uCAQC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { updateSettings as s } from "../core/settings.js";
|
|
2
|
+
function o() {
|
|
3
|
+
s({
|
|
4
|
+
iconClassClose: "fas fa-xmark",
|
|
5
|
+
iconClassDragX: "fas fa-solid fa-grip-lines-vertical",
|
|
6
|
+
// iconClassDragBoth: "fas fa-solid fa-grip", // Not really any good icons for this (no diagonal arrows, etc)
|
|
7
|
+
iconClassPrevious: "fas fa-solid fa-chevron-left",
|
|
8
|
+
iconClassNext: "fas fa-solid fa-chevron-right"
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as configureIcons
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/id.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,gCAEC;AAED;;;GAGG;AACH,kCAFW,IAAI,QAMd"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { FileSave } from './file-save.js';
|
|
2
|
+
export { configureIcons as fontAwesomeConfigureIcons } from './font-awesome.js';
|
|
3
|
+
export { set as classLoggerSet, log as classLoggerLog, logWarning as classLoggerLogWarning, logError as classLoggerLogError } from './class-logger.js';
|
|
4
|
+
export { dataAttributeToDatasetKey, setPositionClasses, resolveClasses } from './dom.js';
|
|
5
|
+
export { defaults as floatingUiDefaults, createFloatingUi } from './floating-ui.js';
|
|
6
|
+
export { newId, ensureId } from './id.js';
|
|
7
|
+
export { pauseVideos as youtubePauseVideos, prepVideos as youtubePrepVideos } from './pause-youtube-video.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause-youtube-video.d.ts","sourceRoot":"","sources":["../../../lib/js/utils/pause-youtube-video.js"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,sCAFW,OAAO,GAAC,IAAI,QAWtB;AACD;;;;GAIG;AACH,qDAQC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const c = [
|
|
2
|
+
".youtube-embedded-video",
|
|
3
|
+
'iframe[title*="YouTube video player"]',
|
|
4
|
+
'iframe[src*="youtube.com/embed"]'
|
|
5
|
+
];
|
|
6
|
+
function n(e = document) {
|
|
7
|
+
s(e).forEach((o) => {
|
|
8
|
+
try {
|
|
9
|
+
o.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', "*");
|
|
10
|
+
} catch (t) {
|
|
11
|
+
console.error(t);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function i(e = document) {
|
|
16
|
+
s(e).forEach((o) => {
|
|
17
|
+
const { src: t } = o;
|
|
18
|
+
t && (o.src = t.split("?")[0] + "?rel=0&enablejsapi=1");
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function s(e) {
|
|
22
|
+
return e.querySelectorAll(c.join(", "));
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
n as pauseVideos,
|
|
26
|
+
i as prepVideos
|
|
27
|
+
};
|