@ulu/frontend 0.1.0-beta.14 → 0.1.0-beta.16

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 (165) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/ulu-frontend.min.css +1 -1
  3. package/dist/ulu-frontend.min.js +18 -18
  4. package/docs-dev/changelog/index.html +30 -0
  5. package/docs-dev/demos/accordion/index.html +30 -0
  6. package/docs-dev/demos/button/index.html +30 -0
  7. package/docs-dev/demos/callout/index.html +30 -0
  8. package/docs-dev/demos/captioned-figure/index.html +30 -0
  9. package/docs-dev/demos/card/index.html +30 -0
  10. package/docs-dev/demos/css-icons/index.html +30 -0
  11. package/docs-dev/demos/data-grid/index.html +30 -0
  12. package/docs-dev/demos/data-table/index.html +55 -25
  13. package/docs-dev/demos/file-save/index.html +30 -0
  14. package/docs-dev/demos/flipcard/index.html +30 -0
  15. package/docs-dev/demos/form-theme/index.html +30 -0
  16. package/docs-dev/demos/index.html +30 -0
  17. package/docs-dev/demos/list-inline/index.html +30 -0
  18. package/docs-dev/demos/list-lines/index.html +30 -0
  19. package/docs-dev/demos/menu-stack/index.html +30 -0
  20. package/docs-dev/demos/modals/index.html +30 -0
  21. package/docs-dev/demos/nav-strip/index.html +30 -0
  22. package/docs-dev/demos/overlay-section/index.html +30 -0
  23. package/docs-dev/demos/popovers/index.html +30 -0
  24. package/docs-dev/demos/print/index.html +30 -0
  25. package/docs-dev/demos/pull-quote/index.html +30 -0
  26. package/docs-dev/demos/rule/index.html +30 -0
  27. package/docs-dev/demos/scrollpoints/index.html +30 -0
  28. package/docs-dev/demos/spoke-spinner/index.html +30 -0
  29. package/docs-dev/demos/tabs/index.html +30 -0
  30. package/docs-dev/demos/tag/index.html +30 -0
  31. package/docs-dev/demos/tiles/index.html +30 -0
  32. package/docs-dev/demos/tooltip/index.html +30 -0
  33. package/docs-dev/guide/building-stylesheet/index.html +30 -0
  34. package/docs-dev/guide/developing-ulu-scss-module/index.html +30 -0
  35. package/docs-dev/guide/index.html +30 -0
  36. package/docs-dev/index.html +30 -0
  37. package/docs-dev/javascript/events/index.html +30 -0
  38. package/docs-dev/javascript/index.html +30 -0
  39. package/docs-dev/javascript/settings/index.html +4907 -0
  40. package/docs-dev/javascript/ui-breakpoints/index.html +30 -0
  41. package/docs-dev/javascript/ui-collapsible/index.html +30 -0
  42. package/docs-dev/javascript/ui-dialog/index.html +30 -0
  43. package/docs-dev/javascript/ui-flipcard/index.html +30 -0
  44. package/docs-dev/javascript/ui-grid/index.html +30 -0
  45. package/docs-dev/javascript/ui-modal-builder/index.html +30 -0
  46. package/docs-dev/javascript/ui-overflow-scroller/index.html +30 -0
  47. package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +30 -0
  48. package/docs-dev/javascript/ui-page/index.html +30 -0
  49. package/docs-dev/javascript/ui-popover/index.html +30 -0
  50. package/docs-dev/javascript/ui-print/index.html +30 -0
  51. package/docs-dev/javascript/ui-print-details/index.html +30 -0
  52. package/docs-dev/javascript/ui-programmatic-modal/index.html +30 -0
  53. package/docs-dev/javascript/ui-proxy-click/index.html +30 -0
  54. package/docs-dev/javascript/ui-resizer/index.html +30 -0
  55. package/docs-dev/javascript/ui-scroll-slider/index.html +30 -0
  56. package/docs-dev/javascript/ui-scrollpoint/index.html +30 -0
  57. package/docs-dev/javascript/ui-slider/index.html +30 -0
  58. package/docs-dev/javascript/ui-tabs/index.html +30 -0
  59. package/docs-dev/javascript/ui-tooltip/index.html +30 -0
  60. package/docs-dev/javascript/utils-class-logger/index.html +30 -0
  61. package/docs-dev/javascript/utils-dom/index.html +30 -0
  62. package/docs-dev/javascript/utils-file-save/index.html +30 -0
  63. package/docs-dev/javascript/utils-floating-ui/index.html +30 -0
  64. package/docs-dev/javascript/utils-id/index.html +30 -0
  65. package/docs-dev/javascript/utils-pause-youtube-video/index.html +30 -0
  66. package/docs-dev/sass/base/color/index.html +30 -0
  67. package/docs-dev/sass/base/elements/index.html +30 -0
  68. package/docs-dev/sass/base/index/index.html +30 -0
  69. package/docs-dev/sass/base/index.html +30 -0
  70. package/docs-dev/sass/base/keyframes/index.html +30 -0
  71. package/docs-dev/sass/base/layout/index.html +30 -0
  72. package/docs-dev/sass/base/normalize/index.html +30 -0
  73. package/docs-dev/sass/base/print/index.html +30 -0
  74. package/docs-dev/sass/base/root/index.html +30 -0
  75. package/docs-dev/sass/base/typography/index.html +30 -0
  76. package/docs-dev/sass/components/accordion/index.html +30 -0
  77. package/docs-dev/sass/components/adaptive-spacing/index.html +30 -0
  78. package/docs-dev/sass/components/badge/index.html +30 -0
  79. package/docs-dev/sass/components/button/index.html +30 -0
  80. package/docs-dev/sass/components/button-verbose/index.html +30 -0
  81. package/docs-dev/sass/components/callout/index.html +30 -0
  82. package/docs-dev/sass/components/captioned-figure/index.html +30 -0
  83. package/docs-dev/sass/components/card/index.html +30 -0
  84. package/docs-dev/sass/components/card-grid/index.html +30 -0
  85. package/docs-dev/sass/components/css-icon/index.html +30 -0
  86. package/docs-dev/sass/components/data-grid/index.html +30 -0
  87. package/docs-dev/sass/components/data-table/index.html +30 -0
  88. package/docs-dev/sass/components/fill-context/index.html +30 -0
  89. package/docs-dev/sass/components/flipcard/index.html +30 -0
  90. package/docs-dev/sass/components/flipcard-grid/index.html +30 -0
  91. package/docs-dev/sass/components/form-theme/index.html +30 -0
  92. package/docs-dev/sass/components/hero/index.html +30 -0
  93. package/docs-dev/sass/components/horizontal-rule/index.html +30 -0
  94. package/docs-dev/sass/components/image-grid/index.html +30 -0
  95. package/docs-dev/sass/components/index/index.html +30 -0
  96. package/docs-dev/sass/components/index.html +30 -0
  97. package/docs-dev/sass/components/links/index.html +30 -0
  98. package/docs-dev/sass/components/list-inline/index.html +30 -0
  99. package/docs-dev/sass/components/list-lines/index.html +30 -0
  100. package/docs-dev/sass/components/list-ordered/index.html +30 -0
  101. package/docs-dev/sass/components/list-unordered/index.html +30 -0
  102. package/docs-dev/sass/components/menu-stack/index.html +30 -0
  103. package/docs-dev/sass/components/modal/index.html +30 -0
  104. package/docs-dev/sass/components/nav-strip/index.html +30 -0
  105. package/docs-dev/sass/components/overlay-section/index.html +30 -0
  106. package/docs-dev/sass/components/pager/index.html +30 -0
  107. package/docs-dev/sass/components/placeholder-block/index.html +30 -0
  108. package/docs-dev/sass/components/popover/index.html +30 -0
  109. package/docs-dev/sass/components/pull-quote/index.html +30 -0
  110. package/docs-dev/sass/components/ratio-box/index.html +30 -0
  111. package/docs-dev/sass/components/rule/index.html +30 -0
  112. package/docs-dev/sass/components/scroll-slider/index.html +30 -0
  113. package/docs-dev/sass/components/skip-link/index.html +30 -0
  114. package/docs-dev/sass/components/slider/index.html +32 -2
  115. package/docs-dev/sass/components/spoke-spinner/index.html +30 -0
  116. package/docs-dev/sass/components/tabs/index.html +30 -0
  117. package/docs-dev/sass/components/tag/index.html +30 -0
  118. package/docs-dev/sass/components/tile-button/index.html +30 -0
  119. package/docs-dev/sass/components/tile-grid/index.html +30 -0
  120. package/docs-dev/sass/components/tile-grid-overlay/index.html +30 -0
  121. package/docs-dev/sass/components/vignette/index.html +30 -0
  122. package/docs-dev/sass/components/wysiwyg/index.html +30 -0
  123. package/docs-dev/sass/core/breakpoint/index.html +30 -0
  124. package/docs-dev/sass/core/button/index.html +30 -0
  125. package/docs-dev/sass/core/color/index.html +30 -0
  126. package/docs-dev/sass/core/cssvar/index.html +30 -0
  127. package/docs-dev/sass/core/element/index.html +30 -0
  128. package/docs-dev/sass/core/index.html +30 -0
  129. package/docs-dev/sass/core/layout/index.html +30 -0
  130. package/docs-dev/sass/core/path/index.html +30 -0
  131. package/docs-dev/sass/core/selector/index.html +30 -0
  132. package/docs-dev/sass/core/typography/index.html +30 -0
  133. package/docs-dev/sass/core/units/index.html +30 -0
  134. package/docs-dev/sass/core/utils/index.html +30 -0
  135. package/docs-dev/sass/helpers/color/index.html +30 -0
  136. package/docs-dev/sass/helpers/display/index.html +30 -0
  137. package/docs-dev/sass/helpers/index/index.html +30 -0
  138. package/docs-dev/sass/helpers/index.html +30 -0
  139. package/docs-dev/sass/helpers/print/index.html +30 -0
  140. package/docs-dev/sass/helpers/typography/index.html +30 -0
  141. package/docs-dev/sass/helpers/units/index.html +30 -0
  142. package/docs-dev/sass/helpers/utilities/index.html +30 -0
  143. package/docs-dev/sass/index.html +30 -0
  144. package/js/index.js +1 -0
  145. package/js/settings.js +78 -0
  146. package/js/ui/modal-builder.js +3 -2
  147. package/js/ui/overflow-scroller.js +5 -4
  148. package/js/ui/programmatic-modal.js +4 -3
  149. package/js/ui/slider.js +7 -6
  150. package/js/utils/font-awesome.js +18 -0
  151. package/js/utils/index.js +2 -1
  152. package/package.json +1 -1
  153. package/scss/components/_slider.scss +6 -27
  154. package/types/index.d.ts +1 -0
  155. package/types/settings.d.ts +38 -0
  156. package/types/settings.d.ts.map +1 -0
  157. package/types/ui/modal-builder.d.ts +2 -2
  158. package/types/ui/modal-builder.d.ts.map +1 -1
  159. package/types/ui/overflow-scroller.d.ts +2 -2
  160. package/types/ui/overflow-scroller.d.ts.map +1 -1
  161. package/types/ui/slider.d.ts +2 -2
  162. package/types/ui/slider.d.ts.map +1 -1
  163. package/types/utils/font-awesome.d.ts +5 -0
  164. package/types/utils/font-awesome.d.ts.map +1 -0
  165. package/types/utils/index.d.ts +1 -0
package/js/settings.js ADDED
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @module settings
3
+ * @description Manages shared configuration for the library.
4
+ */
5
+
6
+ // Default configuration settings
7
+ const defaults = {
8
+ iconClassClose: "css-icon css-icon--close",
9
+ iconClassDragX: "css-icon css-icon--drag-x",
10
+ iconClassPrevious: "css-icon css-icon--angle-left",
11
+ iconClassNext: "css-icon css-icon--angle-right"
12
+ };
13
+
14
+ // Current configuration, initialized with defaults
15
+ let currentSettings = { ...defaults };
16
+
17
+ /**
18
+ * Retrieves a copy of the default settings.
19
+ * @returns {object} A copy of the default settings object.
20
+ */
21
+ export function getDefaultSettings() {
22
+ return { ...defaults };
23
+ }
24
+
25
+ /**
26
+ * Updates multiple configuration settings.
27
+ * @param {object} changes An object containing the settings to update.
28
+ */
29
+ export function updateSettings(changes) {
30
+ Object.assign(currentSettings, changes);
31
+ }
32
+
33
+ /**
34
+ * Retrieves a copy of the current configuration settings.
35
+ * @returns {object} A copy of the current settings object.
36
+ */
37
+ export function getSettings() {
38
+ return { ...currentSettings };
39
+ }
40
+
41
+ /**
42
+ * Retrieves a specific configuration setting by key.
43
+ * @param {string} key The key of the setting to retrieve.
44
+ * @returns {*} The value of the setting, or undefined if not found.
45
+ */
46
+ export function getSetting(key) {
47
+ if (!currentSettings.hasOwnProperty(key)) {
48
+ console.warn(`Attempted to access non-existent setting: ${key}`);
49
+ return undefined;
50
+ }
51
+ return currentSettings[key];
52
+ }
53
+
54
+ /**
55
+ * Updates a specific configuration setting.
56
+ * @param {string} key The key of the setting to update.
57
+ * @param {*} value The new value for the setting.
58
+ */
59
+ export function updateSetting(key, value) {
60
+ currentSettings[key] = value;
61
+ }
62
+
63
+ /**
64
+ * Creates a wrapped string representation of a configuration setting.
65
+ * This function returns an object with a `toString()` method that, when called,
66
+ * retrieves the current value of the specified setting. This allows the setting
67
+ * to be used as a string literal, dynamically retrieving its value.
68
+ *
69
+ * @param {string} key The key of the setting to wrap.
70
+ * @returns {object} An object with a `toString()` method that returns the setting value.
71
+ */
72
+ export function wrapSettingString(key) {
73
+ return {
74
+ toString() {
75
+ return getSetting(key);
76
+ }
77
+ };
78
+ }
@@ -4,6 +4,7 @@
4
4
 
5
5
  // Note this needs to be run before dialogs are initialized!
6
6
 
7
+ import { wrapSettingString } from "../settings.js";
7
8
  import { getName } from "../events/index.js";
8
9
  import { createElementFromHtml } from "@ulu/utils/browser/dom.js";
9
10
  import { Resizer } from "./resizer.js";
@@ -37,8 +38,8 @@ export const defaults = {
37
38
  print: false,
38
39
  noMinHeight: false,
39
40
  class: "",
40
- classCloseIcon: "css-icon css-icon--close",
41
- classResizerIcon: "css-icon css-icon--drag-x",
41
+ classCloseIcon: wrapSettingString("iconClassClose"),
42
+ classResizerIcon: wrapSettingString("iconClassDragX"),
42
43
  debug: false,
43
44
  templateCloseIcon(config) {
44
45
  return `<span class="modal__close-icon ${ config.classCloseIcon }" aria-hidden="true"></span>`;
@@ -10,6 +10,7 @@
10
10
  * @todo - Document that user could use something like [https://github.com/LachlanArthur/scroll-snap-api/tree/master/src] to have it go between items
11
11
  *
12
12
  */
13
+ import { wrapSettingString } from "../settings.js";
13
14
  import { hasRequiredProps } from '@ulu/utils/object.js';
14
15
  import { logError } from "../utils/class-logger.js";
15
16
  const requiredElements = [
@@ -26,8 +27,8 @@ export class OverflowScroller {
26
27
  offsetEnd: 100,
27
28
  amount: "auto",
28
29
  buttonClasses: ["button", "button--icon"],
29
- iconClassesPrevious: ["css-icon", "css-icon--angle-left"],
30
- iconClassesNext: ["css-icon", "css-icon--angle-right"]
30
+ iconClassPrevious: wrapSettingString("iconClassPrevious"),
31
+ iconClassNext: wrapSettingString("iconClassNext"),
31
32
  }
32
33
  constructor(elements, config) {
33
34
  this.options = Object.assign({}, OverflowScroller.defaults, config);
@@ -87,10 +88,10 @@ export class OverflowScroller {
87
88
  return button;
88
89
  }
89
90
  getControlContent(action) {
90
- const classes = this.options[action === "next" ? "iconClassesNext" : "iconClassesPrevious"];
91
+ const classes = this.options[action === "next" ? "iconClassNext" : "iconClassPrevious"];
91
92
  return `
92
93
  <span class="hidden-visually">${ action }</span>
93
- <span class="${ classes.join(' ') }" aria-hidden="true"></span>
94
+ <span class="${ classes }" aria-hidden="true"></span>
94
95
  `;
95
96
  }
96
97
  onScroll(event) {
@@ -5,6 +5,7 @@
5
5
 
6
6
  import { getName, dispatch } from "../events/index.js";
7
7
  import { newId } from "../utils/id.js";
8
+ import { getElement } from "../utils/dom.js";
8
9
  import { buildModal } from "./modal-builder.js";
9
10
 
10
11
  export class ProgrammaticModalManager {
@@ -43,8 +44,8 @@ export class ProgrammaticModalManager {
43
44
  });
44
45
  }
45
46
  createAndOpen(config, afterCreate) {
46
- const { selector, noClickTrigger, removeOnClose } = config;
47
- const content = document.querySelector(selector);
47
+ const { noClickTrigger, removeOnClose, element } = config;
48
+ const content = getElement(element);
48
49
  if (!content.id) {
49
50
  content.id = newId();
50
51
  }
@@ -57,7 +58,7 @@ export class ProgrammaticModalManager {
57
58
  }
58
59
 
59
60
  if (!content) {
60
- console.error("No element found from config.selector. ", config);
61
+ console.error("No element found from config.element. ", config);
61
62
  return;
62
63
  }
63
64
  const { modal } = buildModal(content, config.modal);
package/js/ui/slider.js CHANGED
@@ -27,6 +27,7 @@
27
27
  // https://dev.opera.com/articles/css-will-change-property/
28
28
  // * Will Change use
29
29
 
30
+ import { wrapSettingString } from "../settings.js";
30
31
  import maintain from 'ally.js/maintain/_maintain';
31
32
  import { hasRequiredProps } from '@ulu/utils/object.js';
32
33
  import { trimWhitespace } from "@ulu/utils/string.js";
@@ -120,9 +121,9 @@ export class Slider {
120
121
  transitionDuration: 700,
121
122
  transitionDurationExit: 400,
122
123
  transitionTimingFunction: "ease-in-out",
123
- buttonClasses: ["Slider__control-icon", "button", "button--icon"],
124
- iconClassesPrevious: ["css-icon", "css-icon--angle-left"],
125
- iconClassesNext: ["css-icon", "css-icon--angle-right"]
124
+ buttonClasses: ["button", "button--icon"],
125
+ iconClassPrevious: wrapSettingString("iconClassPrevious"),
126
+ iconClassNext: wrapSettingString("iconClassNext"),
126
127
  // transition: true
127
128
  }
128
129
  // constructor(container, title, trackContainer, track, slides, config, debug = false) {
@@ -454,6 +455,7 @@ export class Slider {
454
455
  const button = document.createElement("button");
455
456
  button.classList.add(this.getClass("control-button"));
456
457
  button.classList.add(this.getClass(`control-button--${ action }`));
458
+
457
459
  button.classList.add(...this.options.buttonClasses);
458
460
  button.setAttribute("data-slider-control", action);
459
461
  button.setAttribute("type", "button");
@@ -514,12 +516,11 @@ export class Slider {
514
516
  button.addEventListener("click", this.goto.bind(this, index));
515
517
  return button;
516
518
  }
517
- // change to css-icon
518
519
  getControlContent(action) {
519
- const classes = this.options[action === "next" ? "iconClassesNext" : "iconClassesPrevious"];
520
+ const classes = this.options[action === "next" ? "iconClassNext" : "iconClassPrevious"];
520
521
  return `
521
522
  <span class="hidden-visually">${ action }</span>
522
- <span class="${ classes.join(' ') }" aria-hidden="true"></span>
523
+ <span class="${ this.getClass("control-icon") } ${ classes }" aria-hidden="true"></span>
523
524
  `;
524
525
  }
525
526
  getNavContent(number) {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @module settings
3
+ * @description Utility module for setting up Font Awesome
4
+ */
5
+
6
+ import { updateSettings } from "../settings.js";
7
+
8
+ /**
9
+ * Sets icon settings to Font Awesome icons
10
+ */
11
+ export function configureIcons() {
12
+ updateSettings({
13
+ iconClassClose: "fas fa-xmark",
14
+ iconClassDragX: "fas fa-solid fa-grip-lines-vertical",
15
+ iconClassPrevious: "fas fa-solid fa-chevron-left",
16
+ iconClassNext: "fas fa-solid fa-chevron-right"
17
+ });
18
+ }
package/js/utils/index.js CHANGED
@@ -4,4 +4,5 @@ export * as floatingUi from "./floating-ui.js";
4
4
  export * as id from "./id.js";
5
5
  export * as index from "./index.js";
6
6
  export * as pauseYoutubeVideo from "./pause-youtube-video.js";
7
- export * as fileSave from "./file-save.js";
7
+ export * as fileSave from "./file-save.js";
8
+ export * as fontAwesome from "./font-awesome.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.1.0-beta.14",
3
+ "version": "0.1.0-beta.16",
4
4
  "description": "Modular Sass Theming Library",
5
5
  "browser": "js/index.js",
6
6
  "main": "index.js",
@@ -37,7 +37,7 @@ $config: (
37
37
  "margin-bottom" : 3rem,
38
38
  "margin-top" : 1rem,
39
39
  "button-icon-offset-x" : 2rem,
40
- "button-icon-offset-y" : false,
40
+ "button-icon-offset-y" : null,
41
41
  "button-margin" : 2rem,
42
42
  "button-size" : 3rem,
43
43
  "button-height": 2.5rem,
@@ -97,11 +97,7 @@ $config: (
97
97
  top: 50%;
98
98
  transform: translateY(-50%);
99
99
  z-index: 10;
100
- }
101
- @if get("button-icon-offset-y") {
102
- #{ $prefix-plugin }__control-icon {
103
- margin-top: get("button-icon-offset-y");
104
- }
100
+ margin-top: get("button-icon-offset-y");
105
101
  }
106
102
  #{ $prefix-plugin }__nav {
107
103
  display: flex;
@@ -164,19 +160,11 @@ $config: (
164
160
  }
165
161
  #{ $prefix-plugin }__control-button--previous {
166
162
  left: 0;
167
- @if get("button-icon-offset-x") {
168
- #{ $prefix-plugin }__control-icon {
169
- margin-left: get("button-icon-offset-x");
170
- }
171
- }
163
+ margin-left: get("button-icon-offset-x");
172
164
  }
173
165
  #{ $prefix-plugin }__control-button--next {
174
166
  right: 0;
175
- @if get("button-icon-offset-x") {
176
- #{ $prefix-plugin }__control-icon {
177
- margin-right: get("button-icon-offset-x");
178
- }
179
- }
167
+ margin-right: get("button-icon-offset-x");
180
168
  }
181
169
  #{ $prefix }--inset-controls {
182
170
  #{ $prefix }__slide-gap-for-controls {
@@ -186,20 +174,11 @@ $config: (
186
174
  }
187
175
  #{ $prefix-plugin }__control-button--previous {
188
176
  left: 0;
189
- @if get("button-icon-offset-x") {
190
- &#{ $prefix-plugin }__control-icon {
191
- margin-left: get("button-icon-offset-x");
192
-
193
- }
194
- }
177
+ margin-left: get("button-icon-offset-x");
195
178
  }
196
179
  #{ $prefix-plugin }__control-button--next {
197
180
  right: 0;
198
- @if get("button-icon-offset-x") {
199
- &#{ $prefix-plugin }__control-icon {
200
- margin-right: get("button-icon-offset-x");
201
- }
202
- }
181
+ margin-right: get("button-icon-offset-x");
203
182
  }
204
183
  }
205
184
  }
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * as settings from "./settings.js";
1
2
  export * as events from "./events/index.js";
2
3
  export * as ui from "./ui/index.js";
3
4
  export * as utils from "./utils/index.js";
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Retrieves a copy of the default settings.
3
+ * @returns {object} A copy of the default settings object.
4
+ */
5
+ export function getDefaultSettings(): object;
6
+ /**
7
+ * Updates multiple configuration settings.
8
+ * @param {object} changes An object containing the settings to update.
9
+ */
10
+ export function updateSettings(changes: object): void;
11
+ /**
12
+ * Retrieves a copy of the current configuration settings.
13
+ * @returns {object} A copy of the current settings object.
14
+ */
15
+ export function getSettings(): object;
16
+ /**
17
+ * Retrieves a specific configuration setting by key.
18
+ * @param {string} key The key of the setting to retrieve.
19
+ * @returns {*} The value of the setting, or undefined if not found.
20
+ */
21
+ export function getSetting(key: string): any;
22
+ /**
23
+ * Updates a specific configuration setting.
24
+ * @param {string} key The key of the setting to update.
25
+ * @param {*} value The new value for the setting.
26
+ */
27
+ export function updateSetting(key: string, value: any): void;
28
+ /**
29
+ * Creates a wrapped string representation of a configuration setting.
30
+ * This function returns an object with a `toString()` method that, when called,
31
+ * retrieves the current value of the specified setting. This allows the setting
32
+ * to be used as a string literal, dynamically retrieving its value.
33
+ *
34
+ * @param {string} key The key of the setting to wrap.
35
+ * @returns {object} An object with a `toString()` method that returns the setting value.
36
+ */
37
+ export function wrapSettingString(key: string): object;
38
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../js/settings.js"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,sCAFa,MAAM,CAIlB;AAED;;;GAGG;AACH,wCAFW,MAAM,QAIhB;AAED;;;GAGG;AACH,+BAFa,MAAM,CAIlB;AAED;;;;GAIG;AACH,gCAHW,MAAM,OAShB;AAED;;;;GAIG;AACH,mCAHW,MAAM,oBAKhB;AAED;;;;;;;;GAQG;AACH,uCAHW,MAAM,GACJ,MAAM,CAQlB"}
@@ -38,8 +38,8 @@ export namespace defaults {
38
38
  export let noMinHeight: boolean;
39
39
  let _class: string;
40
40
  export { _class as class };
41
- export let classCloseIcon: string;
42
- export let classResizerIcon: string;
41
+ export let classCloseIcon: any;
42
+ export let classResizerIcon: any;
43
43
  export let debug: boolean;
44
44
  export function templateCloseIcon(config: any): string;
45
45
  export function templateResizerIcon(config: any): string;
@@ -1 +1 @@
1
- {"version":3,"file":"modal-builder.d.ts","sourceRoot":"","sources":["../../js/ui/modal-builder.js"],"names":[],"mappings":"AA+FA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BAGC;AAED;;GAEG;AACH,8BAGC;AAED;;;GAGG;AACH,sCAFW,IAAI,QAMd;AAED;;;;GAIG;AACH,oCAHW,IAAI;;EAmDd;;;;;;;;;;;;;;;;;;IA5IC,uDAEC;IACD,yDAEC;IACD;;;;;OAKG;IACH,0DAmCC"}
1
+ {"version":3,"file":"modal-builder.d.ts","sourceRoot":"","sources":["../../js/ui/modal-builder.js"],"names":[],"mappings":"AAgGA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BAGC;AAED;;GAEG;AACH,8BAGC;AAED;;;GAGG;AACH,sCAFW,IAAI,QAMd;AAED;;;;GAIG;AACH,oCAHW,IAAI;;EAmDd;;;;;;;;;;;;;;;;;;IA5IC,uDAEC;IACD,yDAEC;IACD;;;;;OAKG;IACH,0DAmCC"}
@@ -8,8 +8,8 @@ export class OverflowScroller {
8
8
  offsetEnd: number;
9
9
  amount: string;
10
10
  buttonClasses: string[];
11
- iconClassesPrevious: string[];
12
- iconClassesNext: string[];
11
+ iconClassPrevious: any;
12
+ iconClassNext: any;
13
13
  };
14
14
  constructor(elements: any, config: any);
15
15
  options: any;
@@ -1 +1 @@
1
- {"version":3,"file":"overflow-scroller.d.ts","sourceRoot":"","sources":["../../js/ui/overflow-scroller.js"],"names":[],"mappings":"AAkBA;IACE,wBAAsB;IACtB;;;;;;;;;;MAUC;IACD,wCAeC;IAdC,aAAmE;IAInE,cAGC;IACD,qBAAuB;IACvB,yBAA2B;IAC3B,gCAA4C;IAK9C,sBAGC;IADC,qBAAwD;IAE1D;;;;;;MA2BC;IACD,oDAQC;IACD,uCAMC;IACD,2BAGC;IACD,2BAiBC;IACD,8CAeC;IACD,6BAaC;IACD,aAMC;IACD,iBAMC;IACD,6BAGC;CACF"}
1
+ {"version":3,"file":"overflow-scroller.d.ts","sourceRoot":"","sources":["../../js/ui/overflow-scroller.js"],"names":[],"mappings":"AAmBA;IACE,wBAAsB;IACtB;;;;;;;;;;MAUC;IACD,wCAeC;IAdC,aAAmE;IAInE,cAGC;IACD,qBAAuB;IACvB,yBAA2B;IAC3B,gCAA4C;IAK9C,sBAGC;IADC,qBAAwD;IAE1D;;;;;;MA2BC;IACD,oDAQC;IACD,uCAMC;IACD,2BAGC;IACD,2BAiBC;IACD,8CAeC;IACD,6BAaC;IACD,aAMC;IACD,iBAMC;IACD,6BAGC;CACF"}
@@ -20,8 +20,8 @@ export class Slider {
20
20
  transitionDurationExit: number;
21
21
  transitionTimingFunction: string;
22
22
  buttonClasses: string[];
23
- iconClassesPrevious: string[];
24
- iconClassesNext: string[];
23
+ iconClassPrevious: any;
24
+ iconClassNext: any;
25
25
  };
26
26
  constructor(elements: any, config: any, debug?: boolean);
27
27
  debug: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../js/ui/slider.js"],"names":[],"mappings":"AA8EA,6BAGC;AAED,8BAGC;AAED,kDAqBC;;;;;;;;AAED;IACE,wBAAsB;IACtB;;;;;;;;;;;;MAaC;IAED,yDAiCC;IA/BC,eAA+B;IAC/B,aAAsB;IACtB;;;;MAAiB;IACjB,WAAiB;IACjB,uBAA0B;IAQ1B;;;;QAME;IACF,cAIC;IAED;;;cACuF;IAMzF;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,2BAOC;IACD;;OAEG;IACH,uBAMC;IACD;;;;;;OAMG;IACH,8BAJW,MAAM,YACN,MAAM,kCAqChB;IACD;;OAEG;IACH,wCASC;IACD;;;OAGG;IACH,oDASC;IACD;;OAEG;IACH,yCAOC;IACD;;OAEG;IACH;;;;;;sBAoDC;IACD;;OAEG;IACH;;;sBAUC;IACD;;OAEG;IACH;;;YAOC;IACD,qDA0CC;IACD,cAYC;IACD,+BAKC;IACD,qCAOC;IACD,mBAQC;IACD,mBASC;IACD,yCASC;IACD,oDASC;IACD;;;;;;MAwBC;IACD;;;;MAmBC;IACD,2DAQC;IAED,uCAMC;IACD,mCAEC;IACD,iCAIC;CACF"}
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../js/ui/slider.js"],"names":[],"mappings":"AA+EA,6BAGC;AAED,8BAGC;AAED,kDAqBC;;;;;;;;AAED;IACE,wBAAsB;IACtB;;;;;;;;;;;;MAaC;IAED,yDAiCC;IA/BC,eAA+B;IAC/B,aAAsB;IACtB;;;;MAAiB;IACjB,WAAiB;IACjB,uBAA0B;IAQ1B;;;;QAME;IACF,cAIC;IAED;;;cACuF;IAMzF;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,2BAOC;IACD;;OAEG;IACH,uBAMC;IACD;;;;;;OAMG;IACH,8BAJW,MAAM,YACN,MAAM,kCAqChB;IACD;;OAEG;IACH,wCASC;IACD;;;OAGG;IACH,oDASC;IACD;;OAEG;IACH,yCAOC;IACD;;OAEG;IACH;;;;;;sBAoDC;IACD;;OAEG;IACH;;;sBAUC;IACD;;OAEG;IACH;;;YAOC;IACD,qDA0CC;IACD,cAYC;IACD,+BAKC;IACD,qCAOC;IACD,mBAQC;IACD,mBASC;IACD,yCASC;IACD,oDAUC;IACD;;;;;;MAwBC;IACD;;;;MAmBC;IACD,2DAQC;IACD,uCAMC;IACD,mCAEC;IACD,iCAIC;CACF"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Sets icon settings to Font Awesome icons
3
+ */
4
+ export function configureIcons(): void;
5
+ //# sourceMappingURL=font-awesome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font-awesome.d.ts","sourceRoot":"","sources":["../../js/utils/font-awesome.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,uCAOC"}
@@ -5,5 +5,6 @@ export * as id from "./id.js";
5
5
  export * as index from "./index.js";
6
6
  export * as pauseYoutubeVideo from "./pause-youtube-video.js";
7
7
  export * as fileSave from "./file-save.js";
8
+ export * as fontAwesome from "./font-awesome.js";
8
9
  declare namespace ___Users_joescherben_Personal_Projects_ULU_frontend_js_utils_index_ { }
9
10
  //# sourceMappingURL=index.d.ts.map