@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentInitializer } from '../core/component.js';
|
|
1
2
|
/**
|
|
2
3
|
* Initialize everything in document
|
|
3
4
|
* - This will only initialize elements once, it is safe to call on page changes
|
|
@@ -20,11 +21,11 @@ export class Scrollpoint {
|
|
|
20
21
|
/**
|
|
21
22
|
* Default observer root element
|
|
22
23
|
*/
|
|
23
|
-
root:
|
|
24
|
+
root: null;
|
|
24
25
|
/**
|
|
25
26
|
* Use a selector to select the observer root element
|
|
26
27
|
*/
|
|
27
|
-
rootSelector:
|
|
28
|
+
rootSelector: null;
|
|
28
29
|
/**
|
|
29
30
|
* Log debug info to console
|
|
30
31
|
*/
|
|
@@ -79,7 +80,7 @@ export class Scrollpoint {
|
|
|
79
80
|
/**
|
|
80
81
|
* Elements that should also get active state info (classes or attributes)
|
|
81
82
|
*/
|
|
82
|
-
syncElements:
|
|
83
|
+
syncElements: never[];
|
|
83
84
|
/**
|
|
84
85
|
* Callback called when state changes
|
|
85
86
|
*/
|
|
@@ -90,13 +91,81 @@ export class Scrollpoint {
|
|
|
90
91
|
* @param {Node} element The element to create the scrollpoint for
|
|
91
92
|
* @param {Object} config Options to configure the scrollpoint see Scrollpoint.defaults for more information on settings
|
|
92
93
|
*/
|
|
93
|
-
constructor(element: Node, config:
|
|
94
|
-
options:
|
|
95
|
-
|
|
94
|
+
constructor(element: Node, config: Object);
|
|
95
|
+
options: ({
|
|
96
|
+
/**
|
|
97
|
+
* Default observer root element
|
|
98
|
+
*/
|
|
99
|
+
root: null;
|
|
100
|
+
/**
|
|
101
|
+
* Use a selector to select the observer root element
|
|
102
|
+
*/
|
|
103
|
+
rootSelector: null;
|
|
104
|
+
/**
|
|
105
|
+
* Log debug info to console
|
|
106
|
+
*/
|
|
107
|
+
debug: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Change scroll orientation to horizontal
|
|
110
|
+
*/
|
|
111
|
+
horizontal: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Margin for observer top or left (depending on orientation)
|
|
114
|
+
*/
|
|
115
|
+
marginStart: string;
|
|
116
|
+
/**
|
|
117
|
+
* Margin for observer bottom or right (depending on orientation)
|
|
118
|
+
*/
|
|
119
|
+
marginEnd: string;
|
|
120
|
+
/**
|
|
121
|
+
* Threshold for observer
|
|
122
|
+
*/
|
|
123
|
+
threshold: number[];
|
|
124
|
+
/**
|
|
125
|
+
* The point can exited (else persists)
|
|
126
|
+
*/
|
|
127
|
+
exit: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* The point can exit from the end
|
|
130
|
+
*/
|
|
131
|
+
exitForward: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* The point can exit from the start
|
|
134
|
+
*/
|
|
135
|
+
exitReverse: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Set state classes
|
|
138
|
+
*/
|
|
139
|
+
setClasses: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Prefix for classes
|
|
142
|
+
*/
|
|
143
|
+
classPrefix: string;
|
|
144
|
+
/**
|
|
145
|
+
* Set attribute for state (less verbose same info as classes)
|
|
146
|
+
*/
|
|
147
|
+
setAttribute: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Attribute name to set state info in
|
|
150
|
+
*/
|
|
151
|
+
attributeName: string;
|
|
152
|
+
/**
|
|
153
|
+
* Group multiple points, one active at a time (scroll menus)
|
|
154
|
+
*/
|
|
155
|
+
/**
|
|
156
|
+
* Elements that should also get active state info (classes or attributes)
|
|
157
|
+
*/
|
|
158
|
+
syncElements: never[];
|
|
159
|
+
/**
|
|
160
|
+
* Callback called when state changes
|
|
161
|
+
*/
|
|
162
|
+
onChange(_ctx: any): void;
|
|
163
|
+
} & Object) | undefined;
|
|
164
|
+
observer: IntersectionObserver | null;
|
|
96
165
|
lastPosition: any;
|
|
97
|
-
isActive: boolean;
|
|
98
|
-
element: Node;
|
|
99
|
-
syncedElements: any[];
|
|
166
|
+
isActive: boolean | undefined;
|
|
167
|
+
element: Node | undefined;
|
|
168
|
+
syncedElements: any[] | undefined;
|
|
100
169
|
classes: {
|
|
101
170
|
enter: string;
|
|
102
171
|
enterForward: string;
|
|
@@ -104,7 +173,7 @@ export class Scrollpoint {
|
|
|
104
173
|
exit: string;
|
|
105
174
|
exitForward: string;
|
|
106
175
|
exitReverse: string;
|
|
107
|
-
};
|
|
176
|
+
} | undefined;
|
|
108
177
|
getClassname(suffix: any): string;
|
|
109
178
|
getObserverOptions(): {
|
|
110
179
|
root: any;
|
|
@@ -119,10 +188,9 @@ export class Scrollpoint {
|
|
|
119
188
|
setupObserver(): void;
|
|
120
189
|
getScrollY(): any;
|
|
121
190
|
setState(isActive: any, isForward: any): void;
|
|
122
|
-
getAllClasses():
|
|
191
|
+
getAllClasses(): string[];
|
|
123
192
|
updateClasses(isActive: any, isForward: any): void;
|
|
124
193
|
updateStateAttribute(isActive: any, isForward: any): void;
|
|
125
194
|
destroy(): void;
|
|
126
195
|
}
|
|
127
|
-
import { ComponentInitializer } from "../utils/system.js";
|
|
128
196
|
//# sourceMappingURL=scrollpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollpoint.d.ts","sourceRoot":"","sources":["../../../lib/js/ui/scrollpoint.js"],"names":[],"mappings":"AA2BA;;;GAGG;AACH,6BAUC;AAtBD;;GAEG;AACH,+CAGG;AAkBH;;;;;;;GAOG;AACH;IACE;QACE;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;QAEH;;WAEG;;QAEH;;WAEG;;MAIH;IACF;;;;OAIG;IACH,qBAHW,IAAI,UACJ,MAAM,EAiChB;IArBC;QAtFA;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;QAEH;;WAEG;;QAEH;;WAEG;;4BAoBmB;IACtB,sCAAoB;IACpB,kBAAwB;IACxB,8BAAqB;IACrB,0BAAsB;IACtB,kCAGC;IACD;;;;;;;kBAOC;IAMH,kCAEC;IACD;;;;MAMC;IACD;;;OAGG;IACH,8BAkBC;IACD,sBAUC;IACD,kBAGC;IACD,8CAcC;IACD,0BAEC;IACD,mDAmBC;IACD,0DAMC;IACD,gBASC;CACF;qCAnQoC,sBAAsB"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var f = (a, t, s) => t in a ? m(a, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[t] = s;
|
|
3
|
+
var d = (a, t, s) => f(a, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { ComponentInitializer as p } from "../core/component.js";
|
|
5
|
+
import { logError as g } from "../utils/class-logger.js";
|
|
6
|
+
import { getElement as b } from "@ulu/utils/browser/dom.js";
|
|
7
|
+
const c = new p({
|
|
8
|
+
type: "scrollpoint",
|
|
9
|
+
baseAttribute: "data-ulu-scrollpoint"
|
|
10
|
+
});
|
|
11
|
+
function w() {
|
|
12
|
+
c.init({
|
|
13
|
+
withData: !0,
|
|
14
|
+
coreEvents: ["pageModified"],
|
|
15
|
+
setup({ element: a, data: t, initialize: s }) {
|
|
16
|
+
const e = Object.assign({}, t);
|
|
17
|
+
new h(a, e), s();
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const l = class l {
|
|
22
|
+
/**
|
|
23
|
+
* Setup a new scrollpoint
|
|
24
|
+
* @param {Node} element The element to create the scrollpoint for
|
|
25
|
+
* @param {Object} config Options to configure the scrollpoint see Scrollpoint.defaults for more information on settings
|
|
26
|
+
*/
|
|
27
|
+
constructor(t, s) {
|
|
28
|
+
const e = Object.assign({}, l.defaults, s);
|
|
29
|
+
if (!t) {
|
|
30
|
+
g(this, "Missing required element");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
e.rootSelector && (e.root = document.querySelector(e.rootSelector), delete e.rootSelector), this.options = e, this.observer = null, this.lastPosition = null, this.isActive = !1, this.element = t, this.syncedElements = [
|
|
34
|
+
t,
|
|
35
|
+
...e.syncElements.map((i) => b(i))
|
|
36
|
+
], this.classes = {
|
|
37
|
+
enter: this.getClassname("enter"),
|
|
38
|
+
enterForward: this.getClassname("enter--from-forward"),
|
|
39
|
+
enterReverse: this.getClassname("enter--from-reverse"),
|
|
40
|
+
exit: this.getClassname("exit"),
|
|
41
|
+
exitForward: this.getClassname("exit--from-forward"),
|
|
42
|
+
exitReverse: this.getClassname("exit--from-reverse")
|
|
43
|
+
}, this.setupObserver(), e.debug && c.log(this);
|
|
44
|
+
}
|
|
45
|
+
getClassname(t) {
|
|
46
|
+
return this.options.classPrefix + "-" + t;
|
|
47
|
+
}
|
|
48
|
+
getObserverOptions() {
|
|
49
|
+
const { root: t, marginStart: s, marginEnd: e, threshold: i, horizontal: r } = this.options, o = r ? `0px ${s} 0px ${e}` : `${s} 0px ${e} 0px`;
|
|
50
|
+
return { root: t, rootMargin: o, threshold: i };
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* IntersectionObserver Callback
|
|
54
|
+
* - Should set the state
|
|
55
|
+
*/
|
|
56
|
+
onObserve(t) {
|
|
57
|
+
const s = this.getScrollY(), { lastPosition: e, isActive: i, options: r } = this, o = e === null ? null : e < s;
|
|
58
|
+
t.forEach((n) => {
|
|
59
|
+
const { isIntersecting: u } = n;
|
|
60
|
+
u && !i ? this.setState(!0, o) : !u && i && r.exit && (o && r.exitForward || !o && r.exitReverse) && this.setState(!1, o);
|
|
61
|
+
}), this.lastPosition = s;
|
|
62
|
+
}
|
|
63
|
+
setupObserver() {
|
|
64
|
+
const t = (e) => {
|
|
65
|
+
this.onObserve(e);
|
|
66
|
+
}, s = this.getObserverOptions();
|
|
67
|
+
this.options.debug && c.log("IntersectionObserver (options)", s), this.observer = new IntersectionObserver(t, s), this.observer.observe(this.element);
|
|
68
|
+
}
|
|
69
|
+
getScrollY() {
|
|
70
|
+
const { root: t } = this.options;
|
|
71
|
+
return t === null || t === document ? window.scrollY : t.scrollTop;
|
|
72
|
+
}
|
|
73
|
+
setState(t, s) {
|
|
74
|
+
const { element: e } = this, i = { isActive: t, isForward: s, element: e, instance: this }, { setClasses: r, setAttribute: o, onChange: n } = this.options;
|
|
75
|
+
r && this.updateClasses(t, s), o && this.updateStateAttribute(t, s), n && n(i), this.isActive = t;
|
|
76
|
+
}
|
|
77
|
+
getAllClasses() {
|
|
78
|
+
return Object.values(this.classes);
|
|
79
|
+
}
|
|
80
|
+
updateClasses(t, s) {
|
|
81
|
+
const { classes: e } = this, i = this.getAllClasses(), r = [
|
|
82
|
+
e.enter,
|
|
83
|
+
s ? e.enterForward : e.enterReverse
|
|
84
|
+
], o = [
|
|
85
|
+
e.exit,
|
|
86
|
+
s ? e.exitForward : e.exitReverse
|
|
87
|
+
];
|
|
88
|
+
this.syncedElements.forEach((n) => {
|
|
89
|
+
n.classList.remove(...i), t ? n.classList.add(...r) : n.classList.add(...o);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
updateStateAttribute(t, s) {
|
|
93
|
+
const e = t ? "enter" : "exit", i = s ? "forward" : "reverse";
|
|
94
|
+
this.syncedElements.forEach((r) => {
|
|
95
|
+
r.setAttribute(this.options.attributeName, `${e}-${i}`);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
destroy() {
|
|
99
|
+
this.observer.disconnect(), this.observer = null, this.options.setClasses && this.element.classList.remove(...this.getAllClasses()), this.options.setAttribute && this.element.removeAttribute(this.options.attributeName);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
d(l, "defaults", {
|
|
103
|
+
/**
|
|
104
|
+
* Default observer root element
|
|
105
|
+
*/
|
|
106
|
+
root: null,
|
|
107
|
+
/**
|
|
108
|
+
* Use a selector to select the observer root element
|
|
109
|
+
*/
|
|
110
|
+
rootSelector: null,
|
|
111
|
+
/**
|
|
112
|
+
* Log debug info to console
|
|
113
|
+
*/
|
|
114
|
+
debug: !1,
|
|
115
|
+
/**
|
|
116
|
+
* Change scroll orientation to horizontal
|
|
117
|
+
*/
|
|
118
|
+
horizontal: !1,
|
|
119
|
+
/**
|
|
120
|
+
* Margin for observer top or left (depending on orientation)
|
|
121
|
+
*/
|
|
122
|
+
marginStart: "-25%",
|
|
123
|
+
/**
|
|
124
|
+
* Margin for observer bottom or right (depending on orientation)
|
|
125
|
+
*/
|
|
126
|
+
marginEnd: "-55%",
|
|
127
|
+
/**
|
|
128
|
+
* Threshold for observer
|
|
129
|
+
*/
|
|
130
|
+
threshold: [0, 1],
|
|
131
|
+
/**
|
|
132
|
+
* The point can exited (else persists)
|
|
133
|
+
*/
|
|
134
|
+
exit: !0,
|
|
135
|
+
/**
|
|
136
|
+
* The point can exit from the end
|
|
137
|
+
*/
|
|
138
|
+
exitForward: !0,
|
|
139
|
+
/**
|
|
140
|
+
* The point can exit from the start
|
|
141
|
+
*/
|
|
142
|
+
exitReverse: !0,
|
|
143
|
+
/**
|
|
144
|
+
* Set state classes
|
|
145
|
+
*/
|
|
146
|
+
setClasses: !1,
|
|
147
|
+
/**
|
|
148
|
+
* Prefix for classes
|
|
149
|
+
*/
|
|
150
|
+
classPrefix: "scrollpoint",
|
|
151
|
+
/**
|
|
152
|
+
* Set attribute for state (less verbose same info as classes)
|
|
153
|
+
*/
|
|
154
|
+
setAttribute: !0,
|
|
155
|
+
/**
|
|
156
|
+
* Attribute name to set state info in
|
|
157
|
+
*/
|
|
158
|
+
attributeName: "data-ulu-scrollpoint-state",
|
|
159
|
+
/**
|
|
160
|
+
* Group multiple points, one active at a time (scroll menus)
|
|
161
|
+
*/
|
|
162
|
+
// groupName: null,
|
|
163
|
+
/**
|
|
164
|
+
* Elements that should also get active state info (classes or attributes)
|
|
165
|
+
*/
|
|
166
|
+
syncElements: [],
|
|
167
|
+
/**
|
|
168
|
+
* Callback called when state changes
|
|
169
|
+
*/
|
|
170
|
+
onChange(t) {
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
let h = l;
|
|
174
|
+
export {
|
|
175
|
+
h as Scrollpoint,
|
|
176
|
+
w as init,
|
|
177
|
+
c as initializer
|
|
178
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentInitializer } from '../core/component.js';
|
|
1
2
|
/**
|
|
2
3
|
* Initialize all sliders based on data attribute selectors
|
|
3
4
|
*/
|
|
@@ -7,7 +8,7 @@ export function init(): void;
|
|
|
7
8
|
* @param {Node} container The slide container to query children from
|
|
8
9
|
* @param {Object} options Options for slider class
|
|
9
10
|
*/
|
|
10
|
-
export function setupSlider(container: Node, options:
|
|
11
|
+
export function setupSlider(container: Node, options: Object): void;
|
|
11
12
|
/**
|
|
12
13
|
* Slider Component Initializer
|
|
13
14
|
*/
|
|
@@ -17,6 +18,9 @@ export const initializer: ComponentInitializer;
|
|
|
17
18
|
*/
|
|
18
19
|
export class Slider {
|
|
19
20
|
static instances: any[];
|
|
21
|
+
static globalsInitialized: boolean;
|
|
22
|
+
static reduceMotion: boolean;
|
|
23
|
+
static _initializeGlobals(): void;
|
|
20
24
|
/**
|
|
21
25
|
* Default options for slider
|
|
22
26
|
*/
|
|
@@ -30,8 +34,8 @@ export class Slider {
|
|
|
30
34
|
transitionDurationExit: number;
|
|
31
35
|
transitionTimingFunction: string;
|
|
32
36
|
buttonClasses: string[];
|
|
33
|
-
iconClassPrevious:
|
|
34
|
-
iconClassNext:
|
|
37
|
+
iconClassPrevious: Object;
|
|
38
|
+
iconClassNext: Object;
|
|
35
39
|
swipeEnabled: boolean;
|
|
36
40
|
swipeOptions: {
|
|
37
41
|
preventScroll: boolean;
|
|
@@ -43,11 +47,11 @@ export class Slider {
|
|
|
43
47
|
element: any;
|
|
44
48
|
index: number;
|
|
45
49
|
number: number;
|
|
46
|
-
};
|
|
50
|
+
} | null;
|
|
47
51
|
index: any;
|
|
48
52
|
swipeInstance: any;
|
|
49
|
-
swipeListener: (event: any) => void;
|
|
50
|
-
swipeImageListener: (event: any) => void;
|
|
53
|
+
swipeListener: ((event: any) => void) | null;
|
|
54
|
+
swipeImageListener: ((event: any) => void) | null;
|
|
51
55
|
transitioning: boolean;
|
|
52
56
|
slides: {
|
|
53
57
|
element: any;
|
|
@@ -58,7 +62,7 @@ export class Slider {
|
|
|
58
62
|
transition: ({ slide, old }: {
|
|
59
63
|
slide: any;
|
|
60
64
|
old: any;
|
|
61
|
-
}) =>
|
|
65
|
+
}) => Promise<void>;
|
|
62
66
|
/**
|
|
63
67
|
* Sliding mechanism needs translate updated on resize
|
|
64
68
|
*/
|
|
@@ -78,11 +82,11 @@ export class Slider {
|
|
|
78
82
|
* @param {number} duration Duration to wait for complete
|
|
79
83
|
* @param {Function} beginTransition Css changes to begin/start transtion
|
|
80
84
|
*/
|
|
81
|
-
ensureTransitionEnds(element: number, duration: number, beginTransition: Function): any
|
|
85
|
+
ensureTransitionEnds(element: number, duration: number, beginTransition: Function): Promise<any>;
|
|
82
86
|
/**
|
|
83
87
|
* Translate the track to X
|
|
84
88
|
*/
|
|
85
|
-
translateTo(x: any, duration: any):
|
|
89
|
+
translateTo(x: any, duration: any): Promise<void>;
|
|
86
90
|
/**
|
|
87
91
|
* Show's a specifc slide and hides others, except when passing true to show all
|
|
88
92
|
* then all slides will visible
|
|
@@ -91,7 +95,7 @@ export class Slider {
|
|
|
91
95
|
/**
|
|
92
96
|
* Perform a fade on a single slide
|
|
93
97
|
*/
|
|
94
|
-
fadeSlide(slide: any, visible: any): any
|
|
98
|
+
fadeSlide(slide: any, visible: any): Promise<any>;
|
|
95
99
|
/**
|
|
96
100
|
* Handler for the entire slide transtion
|
|
97
101
|
*/
|
|
@@ -115,7 +119,7 @@ export class Slider {
|
|
|
115
119
|
noTransition({ slide, old }: {
|
|
116
120
|
slide: any;
|
|
117
121
|
old: any;
|
|
118
|
-
}):
|
|
122
|
+
}): Promise<void>;
|
|
119
123
|
goto(index: any, event: any, triggerType: any): void;
|
|
120
124
|
setup(): void;
|
|
121
125
|
setupSwipe(): void;
|
|
@@ -135,7 +139,7 @@ export class Slider {
|
|
|
135
139
|
};
|
|
136
140
|
createNav(container: any): {
|
|
137
141
|
nav: HTMLUListElement;
|
|
138
|
-
navButtons:
|
|
142
|
+
navButtons: HTMLButtonElement[];
|
|
139
143
|
navItems: HTMLLIElement[];
|
|
140
144
|
};
|
|
141
145
|
createNavButton(slide: any, index: any): HTMLButtonElement;
|
|
@@ -143,5 +147,4 @@ export class Slider {
|
|
|
143
147
|
getNavContent(slide: any): string;
|
|
144
148
|
emit(name: any, args: any): void;
|
|
145
149
|
}
|
|
146
|
-
import { ComponentInitializer } from "../utils/system.js";
|
|
147
150
|
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../lib/js/ui/slider.js"],"names":[],"mappings":"AAgEA;;GAEG;AACH,6BASC;AAED;;;;GAIG;AACH,uCAHW,IAAI,WACJ,MAAM,QAiBhB;AA1DD;;GAEG;AACH,+CAGG;AAsDH;;GAEG;AACH;IACE,wBAAsB;IACtB,mCAAkC;IAClC,6BAA4B;IAE5B,kCAYC;IACD;;OAEG;IACH;;;;;;;;;;;;;;;;MAgBC;IACD,wCAoCC;IAjCC,aAAsB;IACtB;;;;aAAiB;IACjB,WAAiB;IACjB,mBAAyB;IACzB,6CAAyB;IACzB,kDAA8B;IAC9B,uBAA0B;IAQ1B;;;;QAME;IACF,cAIC;IAED;;;wBACgF;IAMlF;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,2BAOC;IACD;;OAEG;IACH,uBAMC;IACD;;;;;;OAMG;IACH,8BAJW,MAAM,YACN,MAAM,2CAqChB;IACD;;OAEG;IACH,kDASC;IACD;;;OAGG;IACH,oDASC;IACD;;OAEG;IACH,kDAOC;IACD;;OAEG;IACH;;;;;;sBAoDC;IACD;;OAEG;IACH;;;sBAUC;IACD;;OAEG;IACH;;;sBAOC;IACD,qDA2CC;IACD,cAmBC;IACD,mBAsBC;IACD,0BAMC;IACD,+BAKC;IACD,qCAOC;IACD,mBAQC;IACD,mBASC;IACD,yCASC;IACD,oDAUC;IACD;;;;;;MAwBC;IACD;;;;MAmBC;IACD,2DAQC;IACD,uCAMC;IACD,kCAEC;IACD,iCAIC;CACF;qCA1iBoC,sBAAsB"}
|