@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.
Files changed (563) hide show
  1. package/dist/README.md +12 -0
  2. package/{types/utils/system.d.ts → dist/es/core/component.d.ts} +7 -16
  3. package/dist/es/core/component.d.ts.map +1 -0
  4. package/dist/es/core/component.js +134 -0
  5. package/dist/es/core/events.d.ts +27 -0
  6. package/dist/es/core/events.d.ts.map +1 -0
  7. package/dist/es/core/events.js +45 -0
  8. package/dist/es/core/index.d.ts +4 -0
  9. package/{types/utils → dist/es/core}/index.d.ts.map +1 -1
  10. package/{types → dist/es/core}/settings.d.ts +1 -1
  11. package/dist/es/core/settings.d.ts.map +1 -0
  12. package/dist/es/core/settings.js +44 -0
  13. package/dist/es/index.d.ts +4 -0
  14. package/{types → dist/es}/index.d.ts.map +1 -1
  15. package/dist/es/index.js +125 -0
  16. package/{types → dist/es}/ui/breakpoints.d.ts +9 -9
  17. package/dist/es/ui/breakpoints.d.ts.map +1 -0
  18. package/dist/es/ui/breakpoints.js +194 -0
  19. package/{types → dist/es}/ui/collapsible.d.ts +28 -7
  20. package/dist/es/ui/collapsible.d.ts.map +1 -0
  21. package/dist/es/ui/collapsible.js +140 -0
  22. package/{types → dist/es}/ui/details-group.d.ts +1 -1
  23. package/dist/es/ui/details-group.d.ts.map +1 -0
  24. package/dist/es/ui/details-group.js +49 -0
  25. package/{types → dist/es}/ui/dialog.d.ts +3 -3
  26. package/dist/es/ui/dialog.d.ts.map +1 -0
  27. package/dist/es/ui/dialog.js +112 -0
  28. package/{types → dist/es}/ui/flipcard.d.ts +1 -1
  29. package/dist/es/ui/flipcard.d.ts.map +1 -0
  30. package/dist/es/ui/flipcard.js +97 -0
  31. package/{types → dist/es}/ui/grid.d.ts +2 -2
  32. package/dist/es/ui/grid.d.ts.map +1 -0
  33. package/dist/es/ui/grid.js +18 -0
  34. package/dist/es/ui/index.d.ts +23 -0
  35. package/{types → dist/es}/ui/index.d.ts.map +1 -1
  36. package/{types → dist/es}/ui/modal-builder.d.ts +22 -17
  37. package/dist/es/ui/modal-builder.d.ts.map +1 -0
  38. package/dist/es/ui/modal-builder.js +136 -0
  39. package/dist/es/ui/overflow-scroller-pager.d.ts.map +1 -0
  40. package/dist/es/ui/overflow-scroller-pager.js +28 -0
  41. package/{types → dist/es}/ui/overflow-scroller.d.ts +3 -3
  42. package/dist/es/ui/overflow-scroller.d.ts.map +1 -0
  43. package/dist/es/ui/overflow-scroller.js +90 -0
  44. package/dist/es/ui/page.d.ts.map +1 -0
  45. package/dist/es/ui/page.js +7 -0
  46. package/{types → dist/es}/ui/popover.d.ts +4 -4
  47. package/dist/es/ui/popover.d.ts.map +1 -0
  48. package/dist/es/ui/popover.js +77 -0
  49. package/dist/es/ui/print-details.d.ts.map +1 -0
  50. package/dist/es/ui/print-details.js +22 -0
  51. package/dist/es/ui/print.d.ts.map +1 -0
  52. package/dist/es/ui/print.js +34 -0
  53. package/{types → dist/es}/ui/programmatic-modal.d.ts +2 -2
  54. package/dist/es/ui/programmatic-modal.d.ts.map +1 -0
  55. package/dist/es/ui/programmatic-modal.js +55 -0
  56. package/{types → dist/es}/ui/proxy-click.d.ts +4 -4
  57. package/dist/es/ui/proxy-click.d.ts.map +1 -0
  58. package/dist/es/ui/proxy-click.js +44 -0
  59. package/{types → dist/es}/ui/resizer.d.ts +17 -17
  60. package/dist/es/ui/resizer.d.ts.map +1 -0
  61. package/dist/es/ui/resizer.js +242 -0
  62. package/{types → dist/es}/ui/scroll-slider.d.ts +1 -1
  63. package/dist/es/ui/scroll-slider.d.ts.map +1 -0
  64. package/dist/es/ui/scroll-slider.js +29 -0
  65. package/{types → dist/es}/ui/scrollpoint.d.ts +80 -12
  66. package/dist/es/ui/scrollpoint.d.ts.map +1 -0
  67. package/dist/es/ui/scrollpoint.js +178 -0
  68. package/{types → dist/es}/ui/slider.d.ts +16 -13
  69. package/dist/es/ui/slider.d.ts.map +1 -0
  70. package/dist/es/ui/slider.js +290 -0
  71. package/{types → dist/es}/ui/tabs.d.ts +2 -2
  72. package/dist/es/ui/tabs.d.ts.map +1 -0
  73. package/dist/es/ui/tabs.js +64 -0
  74. package/{types → dist/es}/ui/theme-toggle.d.ts +4 -4
  75. package/dist/es/ui/theme-toggle.d.ts.map +1 -0
  76. package/dist/es/ui/theme-toggle.js +190 -0
  77. package/{types → dist/es}/ui/tooltip.d.ts +5 -5
  78. package/dist/es/ui/tooltip.d.ts.map +1 -0
  79. package/dist/es/ui/tooltip.js +184 -0
  80. package/{types → dist/es}/utils/class-logger.d.ts +4 -4
  81. package/dist/es/utils/class-logger.d.ts.map +1 -0
  82. package/dist/es/utils/class-logger.js +37 -0
  83. package/dist/es/utils/css.d.ts.map +1 -0
  84. package/dist/es/utils/css.js +6 -0
  85. package/{types → dist/es}/utils/dom.d.ts +1 -1
  86. package/dist/es/utils/dom.d.ts.map +1 -0
  87. package/dist/es/utils/dom.js +29 -0
  88. package/{types → dist/es}/utils/file-save.d.ts +4 -1
  89. package/dist/es/utils/file-save.d.ts.map +1 -0
  90. package/dist/es/utils/file-save.js +46 -0
  91. package/{types → dist/es}/utils/floating-ui.d.ts +1 -1
  92. package/dist/es/utils/floating-ui.d.ts.map +1 -0
  93. package/dist/es/utils/floating-ui.js +46 -0
  94. package/dist/es/utils/font-awesome.d.ts.map +1 -0
  95. package/dist/es/utils/font-awesome.js +13 -0
  96. package/dist/es/utils/id.d.ts.map +1 -0
  97. package/dist/es/utils/id.js +11 -0
  98. package/dist/es/utils/index.d.ts +8 -0
  99. package/dist/es/utils/index.d.ts.map +1 -0
  100. package/dist/es/utils/pause-youtube-video.d.ts.map +1 -0
  101. package/dist/es/utils/pause-youtube-video.js +27 -0
  102. package/dist/umd/style.css +1 -0
  103. package/dist/umd/ulu-frontend.umd.js +70 -0
  104. package/lib/index.js +5 -0
  105. package/{js/utils/system.js → lib/js/core/component.js} +13 -12
  106. package/lib/js/core/events.js +98 -0
  107. package/lib/js/core/index.js +34 -0
  108. package/{js → lib/js/core}/settings.js +3 -3
  109. package/lib/js/exports.md +126 -0
  110. package/lib/js/index.js +7 -0
  111. package/{js → lib/js}/ui/breakpoints.js +40 -35
  112. package/{js → lib/js}/ui/collapsible.js +2 -2
  113. package/{js → lib/js}/ui/details-group.js +2 -2
  114. package/{js → lib/js}/ui/dialog.js +6 -6
  115. package/{js → lib/js}/ui/flipcard.js +2 -2
  116. package/{js → lib/js}/ui/grid.js +2 -2
  117. package/lib/js/ui/index.js +165 -0
  118. package/{js → lib/js}/ui/modal-builder.js +11 -9
  119. package/{js → lib/js}/ui/overflow-scroller.js +2 -2
  120. package/{js → lib/js}/ui/popover.js +2 -2
  121. package/{js → lib/js}/ui/print-details.js +3 -3
  122. package/{js → lib/js}/ui/print.js +2 -2
  123. package/{js → lib/js}/ui/programmatic-modal.js +3 -3
  124. package/{js → lib/js}/ui/proxy-click.js +2 -2
  125. package/{js → lib/js}/ui/resizer.js +2 -2
  126. package/{js → lib/js}/ui/scroll-slider.js +2 -2
  127. package/{js → lib/js}/ui/scrollpoint.js +2 -2
  128. package/{js → lib/js}/ui/slider.js +25 -16
  129. package/{js → lib/js}/ui/tabs.js +2 -2
  130. package/{js → lib/js}/ui/theme-toggle.js +5 -5
  131. package/{js → lib/js}/ui/tooltip.js +4 -4
  132. package/{js → lib/js}/utils/css.js +1 -1
  133. package/{js → lib/js}/utils/font-awesome.js +2 -2
  134. package/lib/js/utils/index.js +63 -0
  135. package/{scss → lib/scss}/_breakpoint.scss +4 -4
  136. package/{scss → lib/scss}/_button.scss +1 -0
  137. package/{scss → lib/scss}/_color.scss +42 -38
  138. package/{scss → lib/scss}/_element.scss +13 -2
  139. package/{scss → lib/scss}/_typography.scss +15 -0
  140. package/lib/scss/components/_accordion.scss +268 -0
  141. package/{scss → lib/scss}/components/_basic-hero.scss +1 -1
  142. package/lib/scss/components/_breadcrumb.scss +110 -0
  143. package/{scss → lib/scss}/components/_button.scss +23 -4
  144. package/{scss → lib/scss}/components/_card-grid.scss +8 -2
  145. package/lib/scss/components/_card.scss +655 -0
  146. package/lib/scss/components/_definition-list.scss +178 -0
  147. package/{scss → lib/scss}/components/_form-theme.scss +3 -3
  148. package/{scss → lib/scss}/components/_index.scss +25 -0
  149. package/{scss → lib/scss}/components/_menu-stack.scss +170 -16
  150. package/{scss → lib/scss}/components/_modal.scss +23 -13
  151. package/lib/scss/components/_progress-bar.scss +260 -0
  152. package/lib/scss/components/_progress-circle.scss +175 -0
  153. package/{scss → lib/scss}/components/_skeleton.scss +24 -20
  154. package/{scss → lib/scss}/components/_tag.scss +49 -7
  155. package/{scss → lib/scss}/helpers/_utilities.scss +22 -3
  156. package/package.json +65 -43
  157. package/.browserslistrc +0 -2
  158. package/.eslintrc +0 -17
  159. package/.prettierrc +0 -10
  160. package/CHANGELOG.md +0 -750
  161. package/deprecated/js/doc-ready.js +0 -28
  162. package/deprecated/js/drupal-programmatic-modal.js +0 -91
  163. package/deprecated/js/jquery-prototypes.js +0 -309
  164. package/deprecated/js/micromodal-modals.js +0 -196
  165. package/deprecated/js/mini-collapsible-popper-positioning.js +0 -126
  166. package/deprecated/js/mini-collapsible.js +0 -607
  167. package/deprecated/js/node-data-manager.js +0 -78
  168. package/deprecated/js/script-loader.js +0 -60
  169. package/deprecated/js/waypoints/README.md +0 -3
  170. package/deprecated/js/waypoints/anchor-menu.js +0 -76
  171. package/deprecated/js/waypoints/element-waypoint.js +0 -75
  172. package/deprecated/js/waypoints/examples/page-link-menu.md +0 -106
  173. package/deprecated/js/waypoints/state-in-attribute.js +0 -32
  174. package/dist/ulu-frontend.min.css +0 -1
  175. package/dist/ulu-frontend.min.js +0 -77
  176. package/docs-dev/.nojekyll +0 -1
  177. package/docs-dev/assets/chunks/modulepreload-polyfill.DaKOjhqt.js +0 -37
  178. package/docs-dev/assets/favicons/android-chrome-192x192.png +0 -0
  179. package/docs-dev/assets/favicons/android-chrome-256x256.png +0 -0
  180. package/docs-dev/assets/favicons/apple-touch-icon.png +0 -0
  181. package/docs-dev/assets/favicons/browserconfig.xml +0 -9
  182. package/docs-dev/assets/favicons/favicon-16x16.png +0 -0
  183. package/docs-dev/assets/favicons/favicon-32x32.png +0 -0
  184. package/docs-dev/assets/favicons/favicon.ico +0 -0
  185. package/docs-dev/assets/favicons/mstile-150x150.png +0 -0
  186. package/docs-dev/assets/favicons/safari-pinned-tab.svg +0 -1
  187. package/docs-dev/assets/favicons/site.webmanifest +0 -19
  188. package/docs-dev/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
  189. package/docs-dev/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
  190. package/docs-dev/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
  191. package/docs-dev/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
  192. package/docs-dev/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
  193. package/docs-dev/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
  194. package/docs-dev/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
  195. package/docs-dev/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
  196. package/docs-dev/assets/fonts/inter/Inter-Black.woff2 +0 -0
  197. package/docs-dev/assets/fonts/inter/Inter-BlackItalic.woff2 +0 -0
  198. package/docs-dev/assets/fonts/inter/Inter-Bold.woff2 +0 -0
  199. package/docs-dev/assets/fonts/inter/Inter-BoldItalic.woff2 +0 -0
  200. package/docs-dev/assets/fonts/inter/Inter-ExtraBold.woff2 +0 -0
  201. package/docs-dev/assets/fonts/inter/Inter-ExtraBoldItalic.woff2 +0 -0
  202. package/docs-dev/assets/fonts/inter/Inter-ExtraLight.woff2 +0 -0
  203. package/docs-dev/assets/fonts/inter/Inter-ExtraLightItalic.woff2 +0 -0
  204. package/docs-dev/assets/fonts/inter/Inter-Italic.woff2 +0 -0
  205. package/docs-dev/assets/fonts/inter/Inter-Light.woff2 +0 -0
  206. package/docs-dev/assets/fonts/inter/Inter-LightItalic.woff2 +0 -0
  207. package/docs-dev/assets/fonts/inter/Inter-Medium.woff2 +0 -0
  208. package/docs-dev/assets/fonts/inter/Inter-MediumItalic.woff2 +0 -0
  209. package/docs-dev/assets/fonts/inter/Inter-Regular.woff2 +0 -0
  210. package/docs-dev/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
  211. package/docs-dev/assets/fonts/inter/Inter-SemiBoldItalic.woff2 +0 -0
  212. package/docs-dev/assets/fonts/inter/Inter-Thin.woff2 +0 -0
  213. package/docs-dev/assets/fonts/inter/Inter-ThinItalic.woff2 +0 -0
  214. package/docs-dev/assets/fonts/inter/InterDisplay-Black.woff2 +0 -0
  215. package/docs-dev/assets/fonts/inter/InterDisplay-BlackItalic.woff2 +0 -0
  216. package/docs-dev/assets/fonts/inter/InterDisplay-Bold.woff2 +0 -0
  217. package/docs-dev/assets/fonts/inter/InterDisplay-BoldItalic.woff2 +0 -0
  218. package/docs-dev/assets/fonts/inter/InterDisplay-ExtraBold.woff2 +0 -0
  219. package/docs-dev/assets/fonts/inter/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  220. package/docs-dev/assets/fonts/inter/InterDisplay-ExtraLight.woff2 +0 -0
  221. package/docs-dev/assets/fonts/inter/InterDisplay-ExtraLightItalic.woff2 +0 -0
  222. package/docs-dev/assets/fonts/inter/InterDisplay-Italic.woff2 +0 -0
  223. package/docs-dev/assets/fonts/inter/InterDisplay-Light.woff2 +0 -0
  224. package/docs-dev/assets/fonts/inter/InterDisplay-LightItalic.woff2 +0 -0
  225. package/docs-dev/assets/fonts/inter/InterDisplay-Medium.woff2 +0 -0
  226. package/docs-dev/assets/fonts/inter/InterDisplay-MediumItalic.woff2 +0 -0
  227. package/docs-dev/assets/fonts/inter/InterDisplay-Regular.woff2 +0 -0
  228. package/docs-dev/assets/fonts/inter/InterDisplay-SemiBold.woff2 +0 -0
  229. package/docs-dev/assets/fonts/inter/InterDisplay-SemiBoldItalic.woff2 +0 -0
  230. package/docs-dev/assets/fonts/inter/InterDisplay-Thin.woff2 +0 -0
  231. package/docs-dev/assets/fonts/inter/InterDisplay-ThinItalic.woff2 +0 -0
  232. package/docs-dev/assets/fonts/inter/InterVariable-Italic.woff2 +0 -0
  233. package/docs-dev/assets/fonts/inter/InterVariable.woff2 +0 -0
  234. package/docs-dev/assets/fonts/inter/LICENSE.txt +0 -92
  235. package/docs-dev/assets/fonts/inter/inter.css +0 -37
  236. package/docs-dev/assets/main.js +0 -23312
  237. package/docs-dev/assets/placeholder/4065947-uhd_4096_2160_25fps.credits.txt +0 -2
  238. package/docs-dev/assets/placeholder/4065947-uhd_4096_2160_25fps.mp4 +0 -0
  239. package/docs-dev/assets/placeholder/icon-calendar.svg +0 -1
  240. package/docs-dev/assets/placeholder/icon-check.svg +0 -1
  241. package/docs-dev/assets/placeholder/image-1-attribution.txt +0 -7
  242. package/docs-dev/assets/placeholder/image-1-darkened.jpg +0 -0
  243. package/docs-dev/assets/placeholder/image-1-lightened.jpg +0 -0
  244. package/docs-dev/assets/placeholder/image-1.jpg +0 -0
  245. package/docs-dev/assets/style.css +0 -19153
  246. package/docs-dev/changelog/index.html +0 -7184
  247. package/docs-dev/demos/accordion/index.html +0 -5811
  248. package/docs-dev/demos/badge/index.html +0 -5655
  249. package/docs-dev/demos/badge-stack/index.html +0 -5636
  250. package/docs-dev/demos/badge.1/index.html +0 -5595
  251. package/docs-dev/demos/basic-hero/index.html +0 -111
  252. package/docs-dev/demos/breakpoints-manager/index.html +0 -5666
  253. package/docs-dev/demos/button/index.html +0 -5665
  254. package/docs-dev/demos/button-group/index.html +0 -5652
  255. package/docs-dev/demos/button-verbose/index.html +0 -5658
  256. package/docs-dev/demos/callout/index.html +0 -5704
  257. package/docs-dev/demos/captioned-figure/index.html +0 -5686
  258. package/docs-dev/demos/card/index.html +0 -5682
  259. package/docs-dev/demos/card-grid/index.html +0 -5777
  260. package/docs-dev/demos/counter-list/index.html +0 -5660
  261. package/docs-dev/demos/css-icons/index.html +0 -6298
  262. package/docs-dev/demos/data-grid/index.html +0 -6529
  263. package/docs-dev/demos/data-table/index.html +0 -5833
  264. package/docs-dev/demos/details-group/index.html +0 -5687
  265. package/docs-dev/demos/file-save/index.html +0 -5675
  266. package/docs-dev/demos/flipcard/index.html +0 -6224
  267. package/docs-dev/demos/form-theme/index.html +0 -5842
  268. package/docs-dev/demos/headline-label/index.html +0 -5622
  269. package/docs-dev/demos/hero/index.html +0 -309
  270. package/docs-dev/demos/image-grid/index.html +0 -165
  271. package/docs-dev/demos/index.html +0 -5613
  272. package/docs-dev/demos/list-inline/index.html +0 -5640
  273. package/docs-dev/demos/list-lines/index.html +0 -5630
  274. package/docs-dev/demos/menu-stack/index.html +0 -5769
  275. package/docs-dev/demos/modals/index.html +0 -5844
  276. package/docs-dev/demos/nav-strip/index.html +0 -5725
  277. package/docs-dev/demos/overlay-section/index.html +0 -5701
  278. package/docs-dev/demos/panel/index.html +0 -5682
  279. package/docs-dev/demos/popovers/index.html +0 -0
  280. package/docs-dev/demos/print/index.html +0 -5633
  281. package/docs-dev/demos/pull-quote/index.html +0 -5632
  282. package/docs-dev/demos/rail/index.html +0 -5730
  283. package/docs-dev/demos/rule/index.html +0 -5694
  284. package/docs-dev/demos/scroll-slider/index.html +0 -170
  285. package/docs-dev/demos/scrollpoints/index.html +0 -5651
  286. package/docs-dev/demos/skeleton/index.html +0 -5676
  287. package/docs-dev/demos/slider/index.html +0 -172
  288. package/docs-dev/demos/spoke-spinner/index.html +0 -5628
  289. package/docs-dev/demos/sticky-list/index.html +0 -5643
  290. package/docs-dev/demos/tabs/index.html +0 -5753
  291. package/docs-dev/demos/tag/index.html +0 -5633
  292. package/docs-dev/demos/theme-toggle/index.html +0 -5699
  293. package/docs-dev/demos/tile-grid-overlay/index.html +0 -390
  294. package/docs-dev/demos/tiles/index.html +0 -5882
  295. package/docs-dev/demos/tooltip/index.html +0 -5661
  296. package/docs-dev/demos/wysiwyg/index.html +0 -5672
  297. package/docs-dev/guide/building-stylesheet/index.html +0 -5682
  298. package/docs-dev/guide/developing-ulu-scss-module/index.html +0 -5734
  299. package/docs-dev/guide/index.html +0 -5615
  300. package/docs-dev/index.html +0 -5662
  301. package/docs-dev/javascript/events/index.html +0 -5811
  302. package/docs-dev/javascript/index.html +0 -5628
  303. package/docs-dev/javascript/settings/index.html +0 -5825
  304. package/docs-dev/javascript/ui-breakpoints/index.html +0 -6071
  305. package/docs-dev/javascript/ui-collapsible/index.html +0 -5738
  306. package/docs-dev/javascript/ui-details-group/index.html +0 -5742
  307. package/docs-dev/javascript/ui-dialog/index.html +0 -5787
  308. package/docs-dev/javascript/ui-flipcard/index.html +0 -5678
  309. package/docs-dev/javascript/ui-grid/index.html +0 -5653
  310. package/docs-dev/javascript/ui-modal-builder/index.html +0 -5901
  311. package/docs-dev/javascript/ui-overflow-scroller/index.html +0 -5611
  312. package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +0 -5629
  313. package/docs-dev/javascript/ui-page/index.html +0 -5626
  314. package/docs-dev/javascript/ui-popover/index.html +0 -5661
  315. package/docs-dev/javascript/ui-print/index.html +0 -5670
  316. package/docs-dev/javascript/ui-print-details/index.html +0 -5641
  317. package/docs-dev/javascript/ui-programmatic-modal/index.html +0 -5611
  318. package/docs-dev/javascript/ui-proxy-click/index.html +0 -5740
  319. package/docs-dev/javascript/ui-resizer/index.html +0 -5946
  320. package/docs-dev/javascript/ui-scroll-slider/index.html +0 -5672
  321. package/docs-dev/javascript/ui-scrollpoint/index.html +0 -5851
  322. package/docs-dev/javascript/ui-slider/index.html +0 -5813
  323. package/docs-dev/javascript/ui-tabs/index.html +0 -5706
  324. package/docs-dev/javascript/ui-theme-toggle/index.html +0 -5830
  325. package/docs-dev/javascript/ui-tooltip/index.html +0 -5754
  326. package/docs-dev/javascript/utils-class-logger/index.html +0 -5746
  327. package/docs-dev/javascript/utils-css/index.html +0 -5644
  328. package/docs-dev/javascript/utils-dom/index.html +0 -5711
  329. package/docs-dev/javascript/utils-file-save/index.html +0 -5783
  330. package/docs-dev/javascript/utils-floating-ui/index.html +0 -5643
  331. package/docs-dev/javascript/utils-id/index.html +0 -5653
  332. package/docs-dev/javascript/utils-pause-youtube-video/index.html +0 -5661
  333. package/docs-dev/javascript/utils-system/index.html +0 -5947
  334. package/docs-dev/sass/base/color/index.html +0 -5644
  335. package/docs-dev/sass/base/elements/index.html +0 -5815
  336. package/docs-dev/sass/base/index/index.html +0 -5814
  337. package/docs-dev/sass/base/index.html +0 -5622
  338. package/docs-dev/sass/base/keyframes/index.html +0 -5646
  339. package/docs-dev/sass/base/layout/index.html +0 -5806
  340. package/docs-dev/sass/base/normalize/index.html +0 -5654
  341. package/docs-dev/sass/base/print/index.html +0 -5650
  342. package/docs-dev/sass/base/root/index.html +0 -5670
  343. package/docs-dev/sass/base/typography/index.html +0 -5670
  344. package/docs-dev/sass/components/accordion/index.html +0 -5979
  345. package/docs-dev/sass/components/adaptive-spacing/index.html +0 -5915
  346. package/docs-dev/sass/components/badge/index.html +0 -5881
  347. package/docs-dev/sass/components/badge-stack/index.html +0 -5811
  348. package/docs-dev/sass/components/basic-hero/index.html +0 -5805
  349. package/docs-dev/sass/components/button/index.html +0 -5799
  350. package/docs-dev/sass/components/button-group/index.html +0 -5803
  351. package/docs-dev/sass/components/button-verbose/index.html +0 -5986
  352. package/docs-dev/sass/components/callout/index.html +0 -5961
  353. package/docs-dev/sass/components/captioned-figure/index.html +0 -5904
  354. package/docs-dev/sass/components/card/index.html +0 -6219
  355. package/docs-dev/sass/components/card-grid/index.html +0 -5813
  356. package/docs-dev/sass/components/counter-list/index.html +0 -5887
  357. package/docs-dev/sass/components/css-icon/index.html +0 -5917
  358. package/docs-dev/sass/components/data-grid/index.html +0 -6052
  359. package/docs-dev/sass/components/data-table/index.html +0 -5988
  360. package/docs-dev/sass/components/fill-context/index.html +0 -5679
  361. package/docs-dev/sass/components/flipcard/index.html +0 -5980
  362. package/docs-dev/sass/components/flipcard-grid/index.html +0 -5800
  363. package/docs-dev/sass/components/form-theme/index.html +0 -6525
  364. package/docs-dev/sass/components/headline-label/index.html +0 -5833
  365. package/docs-dev/sass/components/hero/index.html +0 -5849
  366. package/docs-dev/sass/components/horizontal-rule/index.html +0 -5798
  367. package/docs-dev/sass/components/image-grid/index.html +0 -5805
  368. package/docs-dev/sass/components/index/index.html +0 -5859
  369. package/docs-dev/sass/components/index.html +0 -5622
  370. package/docs-dev/sass/components/links/index.html +0 -5649
  371. package/docs-dev/sass/components/list-inline/index.html +0 -5819
  372. package/docs-dev/sass/components/list-lines/index.html +0 -5840
  373. package/docs-dev/sass/components/list-ordered/index.html +0 -5645
  374. package/docs-dev/sass/components/list-unordered/index.html +0 -5649
  375. package/docs-dev/sass/components/menu-stack/index.html +0 -5992
  376. package/docs-dev/sass/components/modal/index.html +0 -6068
  377. package/docs-dev/sass/components/nav-strip/index.html +0 -5899
  378. package/docs-dev/sass/components/overlay-section/index.html +0 -5843
  379. package/docs-dev/sass/components/pager/index.html +0 -5961
  380. package/docs-dev/sass/components/panel/index.html +0 -6033
  381. package/docs-dev/sass/components/placeholder-block/index.html +0 -5883
  382. package/docs-dev/sass/components/popover/index.html +0 -5994
  383. package/docs-dev/sass/components/pull-quote/index.html +0 -5857
  384. package/docs-dev/sass/components/rail/index.html +0 -5823
  385. package/docs-dev/sass/components/ratio-box/index.html +0 -5803
  386. package/docs-dev/sass/components/rule/index.html +0 -5805
  387. package/docs-dev/sass/components/scroll-slider/index.html +0 -5904
  388. package/docs-dev/sass/components/skeleton/index.html +0 -5860
  389. package/docs-dev/sass/components/skip-link/index.html +0 -5789
  390. package/docs-dev/sass/components/slider/index.html +0 -5913
  391. package/docs-dev/sass/components/spoke-spinner/index.html +0 -5863
  392. package/docs-dev/sass/components/sticky-list/index.html +0 -6023
  393. package/docs-dev/sass/components/table-sticky/index.html +0 -5677
  394. package/docs-dev/sass/components/tabs/index.html +0 -5954
  395. package/docs-dev/sass/components/tag/index.html +0 -5964
  396. package/docs-dev/sass/components/tile-button/index.html +0 -5844
  397. package/docs-dev/sass/components/tile-grid/index.html +0 -5979
  398. package/docs-dev/sass/components/tile-grid-overlay/index.html +0 -5780
  399. package/docs-dev/sass/components/vignette/index.html +0 -5799
  400. package/docs-dev/sass/components/wysiwyg/index.html +0 -5827
  401. package/docs-dev/sass/core/breakpoint/index.html +0 -6454
  402. package/docs-dev/sass/core/button/index.html +0 -6538
  403. package/docs-dev/sass/core/color/index.html +0 -6520
  404. package/docs-dev/sass/core/cssvar/index.html +0 -6411
  405. package/docs-dev/sass/core/element/index.html +0 -6816
  406. package/docs-dev/sass/core/index.html +0 -5609
  407. package/docs-dev/sass/core/layout/index.html +0 -6388
  408. package/docs-dev/sass/core/path/index.html +0 -5778
  409. package/docs-dev/sass/core/selector/index.html +0 -5857
  410. package/docs-dev/sass/core/typography/index.html +0 -6783
  411. package/docs-dev/sass/core/units/index.html +0 -5822
  412. package/docs-dev/sass/core/utils/index.html +0 -8406
  413. package/docs-dev/sass/helpers/color/index.html +0 -5644
  414. package/docs-dev/sass/helpers/display/index.html +0 -5649
  415. package/docs-dev/sass/helpers/index/index.html +0 -5811
  416. package/docs-dev/sass/helpers/index.html +0 -5622
  417. package/docs-dev/sass/helpers/print/index.html +0 -5199
  418. package/docs-dev/sass/helpers/typography/index.html +0 -5672
  419. package/docs-dev/sass/helpers/units/index.html +0 -5818
  420. package/docs-dev/sass/helpers/utilities/index.html +0 -5649
  421. package/docs-dev/sass/index.html +0 -5673
  422. package/index.js +0 -7
  423. package/js/events/index.js +0 -108
  424. package/js/index.js +0 -11
  425. package/js/ui/index.js +0 -22
  426. package/js/utils/index.js +0 -8
  427. package/resources/drupal/twig-macros/accordion.twig +0 -99
  428. package/resources/drupal/twig-macros/dropdown.twig +0 -44
  429. package/resources/drupal/twig-macros/flipcard.twig +0 -69
  430. package/resources/drupal/twig-macros/image.twig +0 -30
  431. package/resources/drupal/twig-macros/layout.twig +0 -338
  432. package/resources/drupal/twig-macros/slider.twig +0 -214
  433. package/resources/drupal/twig-macros/tabs.twig +0 -84
  434. package/scss/components/_accordion.scss +0 -231
  435. package/scss/components/_card.scss +0 -596
  436. package/types/events/index.d.ts +0 -26
  437. package/types/events/index.d.ts.map +0 -1
  438. package/types/index.d.ts +0 -5
  439. package/types/settings.d.ts.map +0 -1
  440. package/types/ui/breakpoints.d.ts.map +0 -1
  441. package/types/ui/collapsible.d.ts.map +0 -1
  442. package/types/ui/details-group.d.ts.map +0 -1
  443. package/types/ui/dialog.d.ts.map +0 -1
  444. package/types/ui/flipcard.d.ts.map +0 -1
  445. package/types/ui/grid.d.ts.map +0 -1
  446. package/types/ui/index.d.ts +0 -24
  447. package/types/ui/modal-builder.d.ts.map +0 -1
  448. package/types/ui/overflow-scroller-pager.d.ts.map +0 -1
  449. package/types/ui/overflow-scroller.d.ts.map +0 -1
  450. package/types/ui/page.d.ts.map +0 -1
  451. package/types/ui/popover.d.ts.map +0 -1
  452. package/types/ui/print-details.d.ts.map +0 -1
  453. package/types/ui/print.d.ts.map +0 -1
  454. package/types/ui/programmatic-modal.d.ts.map +0 -1
  455. package/types/ui/proxy-click.d.ts.map +0 -1
  456. package/types/ui/resizer.d.ts.map +0 -1
  457. package/types/ui/scroll-slider.d.ts.map +0 -1
  458. package/types/ui/scrollpoint.d.ts.map +0 -1
  459. package/types/ui/slider.d.ts.map +0 -1
  460. package/types/ui/tabs.d.ts.map +0 -1
  461. package/types/ui/theme-toggle.d.ts.map +0 -1
  462. package/types/ui/tooltip.d.ts.map +0 -1
  463. package/types/utils/class-logger.d.ts.map +0 -1
  464. package/types/utils/css.d.ts.map +0 -1
  465. package/types/utils/dom.d.ts.map +0 -1
  466. package/types/utils/file-save.d.ts.map +0 -1
  467. package/types/utils/floating-ui.d.ts.map +0 -1
  468. package/types/utils/font-awesome.d.ts.map +0 -1
  469. package/types/utils/id.d.ts.map +0 -1
  470. package/types/utils/index.d.ts +0 -10
  471. package/types/utils/pause-youtube-video.d.ts.map +0 -1
  472. package/types/utils/system.d.ts.map +0 -1
  473. /package/{types → dist/es}/ui/overflow-scroller-pager.d.ts +0 -0
  474. /package/{types → dist/es}/ui/page.d.ts +0 -0
  475. /package/{types → dist/es}/ui/print-details.d.ts +0 -0
  476. /package/{types → dist/es}/ui/print.d.ts +0 -0
  477. /package/{types → dist/es}/utils/css.d.ts +0 -0
  478. /package/{types → dist/es}/utils/font-awesome.d.ts +0 -0
  479. /package/{types → dist/es}/utils/id.d.ts +0 -0
  480. /package/{types → dist/es}/utils/pause-youtube-video.d.ts +0 -0
  481. /package/{js → lib/js}/ui/dialog.todo +0 -0
  482. /package/{js → lib/js}/ui/overflow-scroller-pager.js +0 -0
  483. /package/{js → lib/js}/ui/page.js +0 -0
  484. /package/{js → lib/js}/utils/class-logger.js +0 -0
  485. /package/{js → lib/js}/utils/dom.js +0 -0
  486. /package/{js → lib/js}/utils/file-save.js +0 -0
  487. /package/{js → lib/js}/utils/floating-ui.js +0 -0
  488. /package/{js → lib/js}/utils/id.js +0 -0
  489. /package/{js → lib/js}/utils/pause-youtube-video.js +0 -0
  490. /package/{scss → lib/scss}/README.md +0 -0
  491. /package/{scss → lib/scss}/_cssvar.scss +0 -0
  492. /package/{scss → lib/scss}/_index.scss +0 -0
  493. /package/{scss → lib/scss}/_layout.scss +0 -0
  494. /package/{scss → lib/scss}/_path.scss +0 -0
  495. /package/{scss → lib/scss}/_selector.scss +0 -0
  496. /package/{scss → lib/scss}/_units.scss +0 -0
  497. /package/{scss → lib/scss}/_utils.scss +0 -0
  498. /package/{scss → lib/scss}/base/_color.scss +0 -0
  499. /package/{scss → lib/scss}/base/_elements.scss +0 -0
  500. /package/{scss → lib/scss}/base/_index.scss +0 -0
  501. /package/{scss → lib/scss}/base/_keyframes.scss +0 -0
  502. /package/{scss → lib/scss}/base/_layout.scss +0 -0
  503. /package/{scss → lib/scss}/base/_normalize.scss +0 -0
  504. /package/{scss → lib/scss}/base/_print.scss +0 -0
  505. /package/{scss → lib/scss}/base/_root.scss +0 -0
  506. /package/{scss → lib/scss}/base/_typography.scss +0 -0
  507. /package/{scss → lib/scss}/components/README.md +0 -0
  508. /package/{scss → lib/scss}/components/README.todos +0 -0
  509. /package/{scss → lib/scss}/components/_adaptive-spacing.scss +0 -0
  510. /package/{scss → lib/scss}/components/_badge-stack.scss +0 -0
  511. /package/{scss → lib/scss}/components/_badge.scss +0 -0
  512. /package/{scss → lib/scss}/components/_button-group.scss +0 -0
  513. /package/{scss → lib/scss}/components/_button-verbose.scss +0 -0
  514. /package/{scss → lib/scss}/components/_callout.scss +0 -0
  515. /package/{scss → lib/scss}/components/_captioned-figure.scss +0 -0
  516. /package/{scss → lib/scss}/components/_counter-list.scss +0 -0
  517. /package/{scss → lib/scss}/components/_css-icon.scss +0 -0
  518. /package/{scss → lib/scss}/components/_data-grid.scss +0 -0
  519. /package/{scss → lib/scss}/components/_data-table.scss +0 -0
  520. /package/{scss → lib/scss}/components/_fill-context.scss +0 -0
  521. /package/{scss → lib/scss}/components/_flipcard-grid.scss +0 -0
  522. /package/{scss → lib/scss}/components/_flipcard.scss +0 -0
  523. /package/{scss → lib/scss}/components/_headline-label.scss +0 -0
  524. /package/{scss → lib/scss}/components/_hero.scss +0 -0
  525. /package/{scss → lib/scss}/components/_horizontal-rule.scss +0 -0
  526. /package/{scss → lib/scss}/components/_image-grid.scss +0 -0
  527. /package/{scss → lib/scss}/components/_links.scss +0 -0
  528. /package/{scss → lib/scss}/components/_list-inline.scss +0 -0
  529. /package/{scss → lib/scss}/components/_list-lines.scss +0 -0
  530. /package/{scss → lib/scss}/components/_list-ordered.scss +0 -0
  531. /package/{scss → lib/scss}/components/_list-unordered.scss +0 -0
  532. /package/{scss → lib/scss}/components/_nav-strip.scss +0 -0
  533. /package/{scss → lib/scss}/components/_overlay-section.scss +0 -0
  534. /package/{scss → lib/scss}/components/_pager.scss +0 -0
  535. /package/{scss → lib/scss}/components/_panel.scss +0 -0
  536. /package/{scss → lib/scss}/components/_placeholder-block.scss +0 -0
  537. /package/{scss → lib/scss}/components/_popover.scss +0 -0
  538. /package/{scss → lib/scss}/components/_pull-quote.scss +0 -0
  539. /package/{scss → lib/scss}/components/_rail.scss +0 -0
  540. /package/{scss → lib/scss}/components/_ratio-box.scss +0 -0
  541. /package/{scss → lib/scss}/components/_rule.scss +0 -0
  542. /package/{scss → lib/scss}/components/_scroll-slider.scss +0 -0
  543. /package/{scss → lib/scss}/components/_skip-link.scss +0 -0
  544. /package/{scss → lib/scss}/components/_slider.scss +0 -0
  545. /package/{scss → lib/scss}/components/_spoke-spinner.scss +0 -0
  546. /package/{scss → lib/scss}/components/_sticky-list.scss +0 -0
  547. /package/{scss → lib/scss}/components/_tabs.scss +0 -0
  548. /package/{scss → lib/scss}/components/_tile-button.scss +0 -0
  549. /package/{scss → lib/scss}/components/_tile-grid-overlay.scss +0 -0
  550. /package/{scss → lib/scss}/components/_tile-grid.scss +0 -0
  551. /package/{scss → lib/scss}/components/_vignette.scss +0 -0
  552. /package/{scss → lib/scss}/components/_wysiwyg.scss +0 -0
  553. /package/{scss → lib/scss}/helpers/_color.scss +0 -0
  554. /package/{scss → lib/scss}/helpers/_display.scss +0 -0
  555. /package/{scss → lib/scss}/helpers/_index.scss +0 -0
  556. /package/{scss → lib/scss}/helpers/_print.scss +0 -0
  557. /package/{scss → lib/scss}/helpers/_typography.scss +0 -0
  558. /package/{scss → lib/scss}/helpers/_units.scss +0 -0
  559. /package/{scss → lib/scss}/stylesheets/README.md +0 -0
  560. /package/{scss → lib/scss}/stylesheets/base-styles.scss +0 -0
  561. /package/{scss → lib/scss}/stylesheets/component-styles.scss +0 -0
  562. /package/{scss → lib/scss}/stylesheets/full.scss +0 -0
  563. /package/{scss → lib/scss}/stylesheets/helper-styles.scss +0 -0
package/dist/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Dist
2
+
3
+ ## UMD
4
+
5
+ This is for testing (code pen, etc) it includes the full library, externals are set to globals and it has the full stylesheet (only useful for basic testing).
6
+
7
+ ## ES
8
+
9
+ This is the version of the library that should be consumed by users. It includes the JS bundle and typescript declarations.
10
+
11
+ Note the legacy `import { something } from "@ulu/frontend/js/ui/some-module.js"` import syntax is preserved/mapped through this bundle now. But most users should import like `import { something } from "@ulu/frontend"`.
12
+
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export class ComponentInitializer {
5
5
  static defaults: {
6
- type: any;
7
- baseAttribute: any;
6
+ type: null;
7
+ baseAttribute: null;
8
8
  };
9
9
  static requiredOptions: string[];
10
- static hasRequiredOptions: Function;
10
+ static hasRequiredOptions: any;
11
11
  /**
12
12
  * Create a new instance of ComponentInitializer
13
13
  * @param {Object} options Options for configuring the component initializer.
@@ -18,7 +18,7 @@ export class ComponentInitializer {
18
18
  type: string;
19
19
  baseAttribute: string;
20
20
  });
21
- options: any;
21
+ options: never;
22
22
  logTitle: string;
23
23
  /**
24
24
  * Initializes the component based on the provided configuration.
@@ -26,16 +26,14 @@ export class ComponentInitializer {
26
26
  * @param {Function} config.setup The setup function to call for each element.
27
27
  * @param {String} config.key [null] The optional key to use with attribute selector.
28
28
  * @param {Boolean} config.withData [null] Whether to retrieve element data.
29
- * @param {Array} config.events [null] Ulu events that should call setup when dispatched (ie. pageModified, pageResized)
30
- * @param {Boolean} config.onPageResized [null] Whether to bind event listener for page resize end
29
+ * @param {Array} config.coreEvents [null] An array of core event names (e.g., 'pageModified') that should trigger a re-initialization.
31
30
  * @param {HTMLElement} config.context [document] The context to query within.
32
31
  */
33
32
  init(config: {
34
33
  setup: Function;
35
34
  key: string;
36
35
  withData: boolean;
37
- events: any[];
38
- onPageResized: boolean;
36
+ coreEvents: any[];
39
37
  context: HTMLElement;
40
38
  }): void;
41
39
  /**
@@ -44,14 +42,12 @@ export class ComponentInitializer {
44
42
  * @param {function} config.setup The setup function to call for each element.
45
43
  * @param {string} config.key The optional key to use with attribute selector.
46
44
  * @param {boolean} config.withData [false] Whether to retrieve element data.
47
- * @param {boolean} config.onPageModified [true] Whether to bind event listener for page modifications.
48
45
  * @param {HTMLElement} config.context [document] The context to query within.
49
46
  */
50
47
  setupElements(config: {
51
48
  setup: Function;
52
49
  key: string;
53
50
  withData: boolean;
54
- onPageModified: boolean;
55
51
  context: HTMLElement;
56
52
  }): void;
57
53
  /**
@@ -105,9 +101,4 @@ export class ComponentInitializer {
105
101
  */
106
102
  logError(...msgs: any[]): void;
107
103
  }
108
- /**
109
- * Class serves as a base for representing individual occurrences of a UI component, providing a consistent structure for each
110
- */
111
- export class ComponentInstance {
112
- }
113
- //# sourceMappingURL=system.d.ts.map
104
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../lib/js/core/component.js"],"names":[],"mappings":"AAUA;;GAEG;AACH;IACE;;;MAGE;IACF,iCAGE;IACF,+BAEE;IAEF;;;;;OAKG;IACH,qBAHG;QAAwB,IAAI;QACJ,aAAa;KACvC,EASA;IAFC,eAAwE;IACxE,iBAAgD;IAElD;;;;;;;;OAQG;IACH,aANG;QAAyB,KAAK;QACP,GAAG;QACF,QAAQ;QACV,UAAU;QACJ,OAAO,EAA3B,WAAW;KACrB,QAcA;IACD;;;;;;;OAOG;IACH,sBALG;QAAyB,KAAK;QACP,GAAG,EAAlB,MAAM;QACU,QAAQ,EAAxB,OAAO;QACa,OAAO,EAA3B,WAAW;KACrB,QAKA;IACD;;;;OAIG;IACH,kCAGC;IACD;;;OAGG;IACH,uCAEC;IACD;;;OAGG;IACH,2CAEC;IACD;;;;;;OAMG;IACH,uDALW,WAAW,GAGT,KAAK,CAAC;QAAC,OAAO,EAAE,WAAW,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,WAAU;KAAC,CAAC,CAS7E;IACD;;;OAGG;IACH,2BAFW,WAAW,QAIrB;IACD;;;OAGG;IACH,iCAFY,GAAC,CAKZ;IACD;;OAEG;IACH,0BAEC;IACD;;OAEG;IACH,2BAEC;IACD;;OAEG;IACH,+BAEC;CACF"}
@@ -0,0 +1,134 @@
1
+ var h = Object.defineProperty;
2
+ var c = (r, t, e) => t in r ? h(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var n = (r, t, e) => c(r, typeof t != "symbol" ? t + "" : t, e);
4
+ import { hasRequiredProps as p } from "@ulu/utils/object.js";
5
+ import { getDatasetOptionalJson as b } from "@ulu/utils/browser/dom.js";
6
+ import { dataAttributeToDatasetKey as d } from "../utils/dom.js";
7
+ import { getCoreEventName as g } from "./events.js";
8
+ const i = class i {
9
+ /**
10
+ * Create a new instance of ComponentInitializer
11
+ * @param {Object} options Options for configuring the component initializer.
12
+ * @param {String} options.type Type of component (used for logs).
13
+ * @param {String} options.baseAttribute Prefix and base attribute name (used for base attribute and further element attribute names).
14
+ */
15
+ constructor(t) {
16
+ if (!i.hasRequiredOptions(t))
17
+ throw new Error(
18
+ `Missing a required options: ${i.requiredOptions.join(", ")}`
19
+ );
20
+ this.options = Object.assign({}, i.defaults, t), this.logTitle = `ULU: ${this.options.type}:
21
+ `;
22
+ }
23
+ /**
24
+ * Initializes the component based on the provided configuration.
25
+ * @param {Object} config The initialization configuration.
26
+ * @param {Function} config.setup The setup function to call for each element.
27
+ * @param {String} config.key [null] The optional key to use with attribute selector.
28
+ * @param {Boolean} config.withData [null] Whether to retrieve element data.
29
+ * @param {Array} config.coreEvents [null] An array of core event names (e.g., 'pageModified') that should trigger a re-initialization.
30
+ * @param {HTMLElement} config.context [document] The context to query within.
31
+ */
32
+ init(t) {
33
+ var e;
34
+ this.setupElements(t), (e = t.coreEvents) != null && e.length && t.coreEvents.forEach((s) => {
35
+ const o = g(s);
36
+ o && document.addEventListener(o, () => this.setupElements(t));
37
+ });
38
+ }
39
+ /**
40
+ * Processes the elements based on the provided configuration.
41
+ * @param {object} config The initialization configuration.
42
+ * @param {function} config.setup The setup function to call for each element.
43
+ * @param {string} config.key The optional key to use with attribute selector.
44
+ * @param {boolean} config.withData [false] Whether to retrieve element data.
45
+ * @param {HTMLElement} config.context [document] The context to query within.
46
+ */
47
+ setupElements(t) {
48
+ const { setup: e, key: s, withData: o, context: a } = t;
49
+ this.queryAllInitial(s, o, a).forEach((u) => e(u, this));
50
+ }
51
+ /**
52
+ * Get an attribute name
53
+ * @param {String} key Optional key, if no key will return baseAttribute if key will return key added to base
54
+ * @returns {String} String like data-ulu-dialog or data-ulu-dialog-element
55
+ */
56
+ getAttribute(t) {
57
+ const { baseAttribute: e } = this.options;
58
+ return t ? `${e}-${t}` : `${e}`;
59
+ }
60
+ /**
61
+ * Create an attribute selector
62
+ * @param {String} key Optional key (see getAttribute)
63
+ */
64
+ attributeSelector(t) {
65
+ return `[${this.getAttribute(t)}]`;
66
+ }
67
+ /**
68
+ * Create an attribute selector for initial
69
+ * @return {String}
70
+ */
71
+ attributeSelectorInitial(t) {
72
+ return `${this.attributeSelector(t)}:not([${this.getAttribute("init")}])`;
73
+ }
74
+ /**
75
+ * Queries all main elements of a component that have not been initialized and extracts their data attributes.
76
+ * @param {HTMLElement} context The context to query within.
77
+ * @param {Boolean} withData Include dataset from element (as optional JSON)
78
+ * @param {Node} context Element to query elements from
79
+ * @returns {Array<{element: HTMLElement, data: object, initialize: Function}>} An array of objects containing the elements, their data, and convenience function initialize() which when called will set the init attribute on the element
80
+ */
81
+ queryAllInitial(t, e, s = document) {
82
+ return [...s.querySelectorAll(this.attributeSelectorInitial(t))].map((a) => ({
83
+ element: a,
84
+ data: e ? this.getData(a, t) : null,
85
+ initialize: () => this.initializeElement(a)
86
+ }));
87
+ }
88
+ /**
89
+ * Sets the init attribute on an element, marking it as initialized.
90
+ * @param {HTMLElement} element The element to initialize.
91
+ */
92
+ initializeElement(t) {
93
+ t.setAttribute(this.getAttribute("init"), "");
94
+ }
95
+ /**
96
+ * Get an elements dataset value as JSON or other value
97
+ * @return {*} The value of the dataset, if JSON will return object else will return string value or undefined
98
+ */
99
+ getData(t, e) {
100
+ const s = d(this.getAttribute(e));
101
+ return b(t, s);
102
+ }
103
+ /**
104
+ * Will output namespaced console logs for the given initializer
105
+ */
106
+ log(...t) {
107
+ console.log(this.logTitle, ...t);
108
+ }
109
+ /**
110
+ * Will output namespaced console warnings for the given initializer
111
+ */
112
+ warn(...t) {
113
+ console.warn(this.logTitle, ...t);
114
+ }
115
+ /**
116
+ * Will output namespaced console error for the given initializer
117
+ */
118
+ logError(...t) {
119
+ console.error(this.logTitle, ...t);
120
+ }
121
+ };
122
+ n(i, "defaults", {
123
+ type: null,
124
+ baseAttribute: null
125
+ }), n(i, "requiredOptions", [
126
+ "type",
127
+ "baseAttribute"
128
+ ]), n(i, "hasRequiredOptions", p(
129
+ i.requiredOptions
130
+ ));
131
+ let l = i;
132
+ export {
133
+ l as ComponentInitializer
134
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Triggers one of the predefined core lifecycle events.
3
+ * @param {String} type Type of core event to dispatch.
4
+ * @param {Node} context Element to trigger the event from.
5
+ */
6
+ export function dispatchCoreEvent(type: string, context: Node): void;
7
+ /**
8
+ * A general-purpose utility to get a ULU-namespaced event name.
9
+ * @param {String} type The base name for the event.
10
+ * @returns {String} The `ulu:` prefixed event name.
11
+ */
12
+ export function getUluEventName(type: string): string;
13
+ /**
14
+ * Safely gets the full namespaced name for a predefined core event.
15
+ * @param {String} type The base name of the core event (e.g., 'pageModified').
16
+ * @returns {String|null} The full event name if valid, otherwise null.
17
+ */
18
+ export function getCoreEventName(type: string): string | null;
19
+ /**
20
+ * A general-purpose utility to create a ULU-namespaced CustomEvent.
21
+ * @param {String} type Event base name.
22
+ * @param {any} data Custom data to pass with the event.
23
+ * @param {Object} options CustomEvent options.
24
+ * @returns {CustomEvent}
25
+ */
26
+ export function createUluEvent(type: string, data?: any, options?: Object): CustomEvent;
27
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../lib/js/core/events.js"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,yDAFW,IAAI,QAQd;AAED;;;;GAIG;AACH,sDAEC;AAED;;;;GAIG;AACH,gDAFa,SAAO,IAAI,CAQvB;AAED;;;;;;GAMG;AACH,oDAJW,GAAG,YACH,MAAM,GACJ,WAAW,CAIvB"}
@@ -0,0 +1,45 @@
1
+ import { debounce as s } from "@ulu/utils/performance.js";
2
+ import { isBrowser as a } from "@ulu/utils/browser/dom.js";
3
+ a() && (u(), f());
4
+ const i = {
5
+ pageModified(e) {
6
+ e.dispatchEvent(n("pageModified"));
7
+ },
8
+ pageResized(e) {
9
+ e.dispatchEvent(n("pageResized"));
10
+ },
11
+ beforePrint(e) {
12
+ e.dispatchEvent(n("beforePrint"));
13
+ },
14
+ afterPrint(e) {
15
+ e.dispatchEvent(n("afterPrint"));
16
+ }
17
+ }, c = Object.keys(i);
18
+ function r(e, t) {
19
+ i[e] ? i[e](t) : console.warn(`Unable to dispatch non-core event: ${e}`);
20
+ }
21
+ function o(e) {
22
+ return "ulu:" + e;
23
+ }
24
+ function p(e) {
25
+ return c.includes(e) ? o(e) : (console.warn(`'${e}' is not a valid core event type.`), null);
26
+ }
27
+ function n(e, t = null, d = { bubbles: !0 }) {
28
+ return new CustomEvent(o(e), { detail: t, ...d });
29
+ }
30
+ function u() {
31
+ window.addEventListener("resize", s(() => r("pageResized", document), 250));
32
+ }
33
+ function f() {
34
+ window.addEventListener("beforeprint", () => {
35
+ r("beforePrint", document);
36
+ }), window.addEventListener("afterprint", () => {
37
+ r("afterPrint", document);
38
+ });
39
+ }
40
+ export {
41
+ n as createUluEvent,
42
+ r as dispatchCoreEvent,
43
+ p as getCoreEventName,
44
+ o as getUluEventName
45
+ };
@@ -0,0 +1,4 @@
1
+ export { ComponentInitializer } from './component.js';
2
+ export { dispatchCoreEvent, getCoreEventName, getUluEventName, createUluEvent } from './events.js';
3
+ export { getDefaultSettings, updateSettings, getSettings, getSetting, updateSetting, wrapSettingString } from './settings.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../js/utils/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/js/core/index.js"],"names":[],"mappings":""}
@@ -37,7 +37,7 @@ export function updateSetting(key: string, value: any): void;
37
37
  * @returns {Object} An object with a `toString()` method that returns the
38
38
  * (optionally transformed) setting value as a string.
39
39
  */
40
- export function wrapSettingString(key: string, transform: Function): any;
40
+ export function wrapSettingString(key: string, transform: Function): Object;
41
41
  /**
42
42
  * Default settings
43
43
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../lib/js/core/settings.js"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,sCAFa,MAAM,CAIlB;AAED;;;GAGG;AACH,wCAFW,MAAM,QAIhB;AAED;;;GAGG;AACH,+BAFa,MAAM,CAIlB;AAED;;;;GAIG;AACH,gCAHW,MAAM,GACJ,GAAC,CAQb;AAED;;;;GAIG;AACH,mCAHW,MAAM,SACN,GAAC,QAIX;AAED;;;;;;;;;;;GAWG;AACH,qEAHa,MAAM,CAUlB;;;;;;;;oBAxFa,MAAM;;;;oBACN,MAAM;;;;uBACN,MAAM;;;;uBACN,MAAM;;;;mBACN,MAAM;;;;kBACN,MAAM"}
@@ -0,0 +1,44 @@
1
+ const c = {
2
+ iconClassClose: "css-icon css-icon--close",
3
+ iconClassDragX: "css-icon css-icon--drag-x",
4
+ iconClassDragBoth: "css-icon css-icon--drag-both",
5
+ iconClassPrevious: "css-icon css-icon--angle-left",
6
+ iconClassNext: "css-icon css-icon--angle-right",
7
+ cssvarPrefix: ""
8
+ };
9
+ let t = { ...c };
10
+ function o() {
11
+ return { ...c };
12
+ }
13
+ function r(n) {
14
+ Object.assign(t, n);
15
+ }
16
+ function a() {
17
+ return { ...t };
18
+ }
19
+ function i(n) {
20
+ if (!t.hasOwnProperty(n)) {
21
+ console.warn(`Attempted to access non-existent setting: ${n}`);
22
+ return;
23
+ }
24
+ return t[n];
25
+ }
26
+ function g(n, s) {
27
+ t[n] = s;
28
+ }
29
+ function u(n, s) {
30
+ return {
31
+ toString() {
32
+ const e = i(n);
33
+ return s ? s(e) : e;
34
+ }
35
+ };
36
+ }
37
+ export {
38
+ o as getDefaultSettings,
39
+ i as getSetting,
40
+ a as getSettings,
41
+ g as updateSetting,
42
+ r as updateSettings,
43
+ u as wrapSettingString
44
+ };
@@ -0,0 +1,4 @@
1
+ export * from './core/index.js';
2
+ export * from './ui/index.js';
3
+ export * from './utils/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../js/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/js/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,125 @@
1
+ import { createUluEvent as i, dispatchCoreEvent as r, getCoreEventName as a, getUluEventName as o } from "./core/events.js";
2
+ import { getDefaultSettings as l, getSetting as n, getSettings as p, updateSetting as g, updateSettings as u, wrapSettingString as f } from "./core/settings.js";
3
+ import { ComponentInitializer as m } from "./core/component.js";
4
+ import { BreakpointManager as I } from "./ui/breakpoints.js";
5
+ import { Collapsible as z } from "./ui/collapsible.js";
6
+ import { init as D, initializer as C, setupGroup as v } from "./ui/details-group.js";
7
+ import { baseAttribute as y, closeAttribute as T, defaults as B, getDialogOptions as P, init as h, initializer as A, setDefaults as k, setupDialog as G, setupTrigger as L } from "./ui/dialog.js";
8
+ import { Flipcard as w, init as M, initializer as U } from "./ui/flipcard.js";
9
+ import { init as F, initializer as O } from "./ui/grid.js";
10
+ import { buildModal as N, defaults as R, init as W, initializer as K, setDefaults as j } from "./ui/modal-builder.js";
11
+ import { ProgrammaticModalManager as J } from "./ui/programmatic-modal.js";
12
+ import { OverflowScroller as X } from "./ui/overflow-scroller.js";
13
+ import { createPager as Z } from "./ui/overflow-scroller-pager.js";
14
+ import { init as $ } from "./ui/page.js";
15
+ import { Popover as te, getContentByTrigger as ie, init as re, initializer as ae, instances as oe, resolve as se } from "./ui/popover.js";
16
+ import { attrs as ne, init as pe } from "./ui/print-details.js";
17
+ import { init as ue } from "./ui/print.js";
18
+ import { attachHandlers as de, defaults as me, init as xe, initializer as Ie, setDefaults as ce, setupProxy as ze } from "./ui/proxy-click.js";
19
+ import { Resizer as De } from "./ui/resizer.js";
20
+ import { init as ve, initializer as be } from "./ui/scroll-slider.js";
21
+ import { Scrollpoint as Te, init as Be, initializer as Pe } from "./ui/scrollpoint.js";
22
+ import { Slider as Ae, init as ke, initializer as Ge, setupSlider as Le } from "./ui/slider.js";
23
+ import { init as we, initializer as Me, instances as Ue, setup as Ve } from "./ui/tabs.js";
24
+ import { defaults as Oe, init as He, initializer as Ne, setDefaults as Re, setupToggle as We } from "./ui/theme-toggle.js";
25
+ import { Tooltip as je, init as qe, initializer as Je } from "./ui/tooltip.js";
26
+ import { log as Xe, logError as Ye, logWarning as Ze, set as _e } from "./utils/class-logger.js";
27
+ import { dataAttributeToDatasetKey as et, resolveClasses as tt, setPositionClasses as it } from "./utils/dom.js";
28
+ import { FileSave as at } from "./utils/file-save.js";
29
+ import { createFloatingUi as st, defaults as lt } from "./utils/floating-ui.js";
30
+ import { configureIcons as pt } from "./utils/font-awesome.js";
31
+ import { ensureId as ut, newId as ft } from "./utils/id.js";
32
+ import { pauseVideos as mt, prepVideos as xt } from "./utils/pause-youtube-video.js";
33
+ export {
34
+ I as BreakpointManager,
35
+ z as Collapsible,
36
+ m as ComponentInitializer,
37
+ at as FileSave,
38
+ w as Flipcard,
39
+ X as OverflowScroller,
40
+ te as Popover,
41
+ J as ProgrammaticModalManager,
42
+ De as Resizer,
43
+ Te as Scrollpoint,
44
+ Ae as Slider,
45
+ je as Tooltip,
46
+ Xe as classLoggerLog,
47
+ Ye as classLoggerLogError,
48
+ Ze as classLoggerLogWarning,
49
+ _e as classLoggerSet,
50
+ st as createFloatingUi,
51
+ i as createUluEvent,
52
+ et as dataAttributeToDatasetKey,
53
+ D as detailsGroupInit,
54
+ C as detailsGroupInitializer,
55
+ v as detailsGroupSetupGroup,
56
+ y as dialogBaseAttribute,
57
+ T as dialogCloseAttribute,
58
+ B as dialogDefaults,
59
+ P as dialogGetDialogOptions,
60
+ h as dialogInit,
61
+ A as dialogInitializer,
62
+ k as dialogSetDefaults,
63
+ G as dialogSetupDialog,
64
+ L as dialogSetupTrigger,
65
+ r as dispatchCoreEvent,
66
+ ut as ensureId,
67
+ M as flipcardInit,
68
+ U as flipcardInitializer,
69
+ lt as floatingUiDefaults,
70
+ pt as fontAwesomeConfigureIcons,
71
+ a as getCoreEventName,
72
+ l as getDefaultSettings,
73
+ n as getSetting,
74
+ p as getSettings,
75
+ o as getUluEventName,
76
+ F as gridInit,
77
+ O as gridInitializer,
78
+ N as modalBuilderBuildModal,
79
+ R as modalBuilderDefaults,
80
+ W as modalBuilderInit,
81
+ K as modalBuilderInitializer,
82
+ j as modalBuilderSetDefaults,
83
+ ft as newId,
84
+ Z as overflowScrollerCreatePager,
85
+ $ as pageInit,
86
+ ie as popoverGetContentByTrigger,
87
+ re as popoverInit,
88
+ ae as popoverInitializer,
89
+ oe as popoverInstances,
90
+ se as popoverResolve,
91
+ ne as printDetailsAttrs,
92
+ pe as printDetailsInit,
93
+ ue as printInit,
94
+ de as proxyClickAttachHandlers,
95
+ me as proxyClickDefaults,
96
+ xe as proxyClickInit,
97
+ Ie as proxyClickInitializer,
98
+ ce as proxyClickSetDefaults,
99
+ ze as proxyClickSetupProxy,
100
+ tt as resolveClasses,
101
+ ve as scrollSliderInit,
102
+ be as scrollSliderInitializer,
103
+ Be as scrollpointInit,
104
+ Pe as scrollpointInitializer,
105
+ it as setPositionClasses,
106
+ ke as sliderInit,
107
+ Ge as sliderInitializer,
108
+ Le as sliderSetupSlider,
109
+ we as tabsInit,
110
+ Me as tabsInitializer,
111
+ Ue as tabsInstances,
112
+ Ve as tabsSetup,
113
+ Oe as themeToggleDefaults,
114
+ He as themeToggleInit,
115
+ Ne as themeToggleInitializer,
116
+ Re as themeToggleSetDefaults,
117
+ We as themeToggleSetupToggle,
118
+ qe as tooltipInit,
119
+ Je as tooltipInitializer,
120
+ g as updateSetting,
121
+ u as updateSettings,
122
+ f as wrapSettingString,
123
+ mt as youtubePauseVideos,
124
+ xt as youtubePrepVideos
125
+ };
@@ -5,10 +5,12 @@
5
5
  */
6
6
  export class BreakpointManager {
7
7
  static instances: any[];
8
+ static globalsInitialized: boolean;
9
+ static _initializeGlobals(): void;
8
10
  static defaults: {
9
11
  element: HTMLElement;
10
12
  valueFromPseudo: boolean;
11
- customProperty: any;
13
+ customProperty: Object;
12
14
  pseudoSelector: string;
13
15
  order: string[];
14
16
  debug: boolean;
@@ -31,7 +33,7 @@ export class BreakpointManager {
31
33
  active: any;
32
34
  previous: any;
33
35
  activeIndex: any;
34
- resizeDirection: string;
36
+ resizeDirection: string | null;
35
37
  previousIndex: any;
36
38
  breakpoints: {};
37
39
  onChangeCallbacks: any[];
@@ -91,16 +93,14 @@ declare class Breakpoint {
91
93
  */
92
94
  _setDirection(direction: string, active: boolean): void;
93
95
  /**
94
- * Attach handler to be executed from the breakpoint and to all breakpoints below.
95
- * - If the browser resizes from a breakpoint below this breakpoint,
96
- * and above the breakpoint name specified, this handler will fire
96
+ * Attach handler to be executed from the breakpoint and to all breakpoints below (inclusive).
97
+ * This corresponds to a `max-width` media query in SCSS.
97
98
  * @param {Function} handler Handler to be executed
98
99
  */
99
100
  max(handler: Function): void;
100
101
  /**
101
- * Attach handler to be executed from the breakpoint and to all breakpoints below.
102
- * - If the browser resizes from a breakpoint above this breakpoint,
103
- * and below the breakpoint name specified, this handler will fire
102
+ * Attach handler to be executed from the breakpoint and to all breakpoints above (inclusive).
103
+ * This corresponds to a `min-width` media query in SCSS.
104
104
  * @param {Function} handler Handler to be executed
105
105
  */
106
106
  min(handler: Function): void;
@@ -146,7 +146,7 @@ declare class BreakpointDirection {
146
146
  * @param {Function|Object} handler.on Function to be executed when direction is active
147
147
  * @param {Function|Object} handler.off Function to be executed when direction was active and is now changed to inactive
148
148
  */
149
- add(handler: Function | any): void;
149
+ add(handler: Function | Object): void;
150
150
  /**
151
151
  * Removes a handler
152
152
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../lib/js/ui/breakpoints.js"],"names":[],"mappings":"AAcA;;;;GAIG;AACH;IACE,wBAAsB;IACtB,mCAAkC;IAElC,kCAQC;IACD;;;;;;;MAQC;IACD;;;;;;;OAOG;IACH,oBANG;QAAsB,KAAK;QACL,cAAc;QACd,eAAe;QAChB,OAAO,EAApB,IAAI;QACW,cAAc;KACvC,EAeA;IAXC,YAAkB;IAClB,cAAoB;IACpB,iBAAuB;IACvB,+BAA2B;IAC3B,mBAAyB;IACzB,gBAAqB;IACrB,yBAA2B;IAM7B;;;;;OAKG;IACH,mCAEC;IACD;;;OAGG;IACH,yCAEC;IACD;;OAEG;IACH,gCAEC;IACD;;OAEG;IACH,kCAEC;IACD;;OAEG;IACH,wBAMC;IACD;;OAEG;IACH,eAuCC;IACD;;;;OAIG;IACH,kBAFY,UAAU,CAQrB;CACF;AAsED;;;GAGG;AACH;IACE,qCAQC;IAPC;;;;MAIC;IACD,cAAuB;IACvB,UAAgB;IAElB;;;;;OAKG;IACH,wDAEC;IACD;;;;OAIG;IACH,6BAEC;IACD;;;;OAIG;IACH,6BAEC;IACD;;;OAGG;IACH,8BAEC;IACD;;;;OAIG;IACH,mDAOC;IAED,yBAGC;CACF;AArID;;;GAGG;AACH;IACE,6CAMC;IALC,eAA0B;IAC1B,gBAAmB;IACnB,UAAY;IACZ,WAAa;IACb,gBAA4B;IAE9B;;OAEG;IACH,sBAMC;IACD;;OAEG;IACH,4BAIC;IACD;;OAEG;IACH,+BAEC;IACD;;;;;OAKG;IACH,aAJW,WAAS,MAAM,QAiBzB;IACD;;OAEG;IACH,2BAQC;CACF"}