@ulu/frontend 0.1.0-beta.33 → 0.1.0-beta.35

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 (209) hide show
  1. package/CHANGELOG.md +43 -17
  2. package/dist/ulu-frontend.min.css +1 -1
  3. package/dist/ulu-frontend.min.js +23 -23
  4. package/docs-dev/changelog/index.html +105 -10
  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/button-verbose/index.html +30 -0
  8. package/docs-dev/demos/callout/index.html +39 -0
  9. package/docs-dev/demos/captioned-figure/index.html +30 -0
  10. package/docs-dev/demos/card/index.html +44 -14
  11. package/docs-dev/demos/card-grid/index.html +30 -0
  12. package/docs-dev/demos/css-icons/index.html +30 -0
  13. package/docs-dev/demos/data-grid/index.html +30 -0
  14. package/docs-dev/demos/data-table/index.html +55 -25
  15. package/docs-dev/demos/details-group/index.html +63 -0
  16. package/docs-dev/demos/file-save/index.html +30 -0
  17. package/docs-dev/demos/flipcard/index.html +30 -0
  18. package/docs-dev/demos/form-theme/index.html +30 -0
  19. package/docs-dev/demos/index.html +30 -0
  20. package/docs-dev/demos/list-inline/index.html +30 -0
  21. package/docs-dev/demos/list-lines/index.html +30 -0
  22. package/docs-dev/demos/menu-stack/index.html +30 -0
  23. package/docs-dev/demos/modals/index.html +43 -2
  24. package/docs-dev/demos/nav-strip/index.html +30 -0
  25. package/docs-dev/demos/overlay-section/index.html +30 -0
  26. package/docs-dev/demos/popovers/index.html +30 -0
  27. package/docs-dev/demos/print/index.html +30 -0
  28. package/docs-dev/demos/pull-quote/index.html +30 -0
  29. package/docs-dev/demos/rule/index.html +30 -0
  30. package/docs-dev/demos/scrollpoints/index.html +31 -1
  31. package/docs-dev/demos/spoke-spinner/index.html +30 -0
  32. package/docs-dev/demos/sticky-list/index.html +30 -0
  33. package/docs-dev/demos/tabs/index.html +66 -0
  34. package/docs-dev/demos/tag/index.html +30 -0
  35. package/docs-dev/demos/theme-toggle/index.html +30 -0
  36. package/docs-dev/demos/tiles/index.html +30 -0
  37. package/docs-dev/demos/tooltip/index.html +30 -0
  38. package/docs-dev/guide/building-stylesheet/index.html +30 -0
  39. package/docs-dev/guide/developing-ulu-scss-module/index.html +30 -0
  40. package/docs-dev/guide/index.html +30 -0
  41. package/docs-dev/index.html +30 -0
  42. package/docs-dev/javascript/events/index.html +30 -0
  43. package/docs-dev/javascript/index.html +30 -0
  44. package/docs-dev/javascript/settings/index.html +30 -0
  45. package/docs-dev/javascript/ui-breakpoints/index.html +30 -0
  46. package/docs-dev/javascript/ui-collapsible/index.html +30 -0
  47. package/docs-dev/javascript/ui-details-group/index.html +48 -30
  48. package/docs-dev/javascript/ui-dialog/index.html +62 -17
  49. package/docs-dev/javascript/ui-flipcard/index.html +91 -5
  50. package/docs-dev/javascript/ui-grid/index.html +40 -36
  51. package/docs-dev/javascript/ui-modal-builder/index.html +41 -32
  52. package/docs-dev/javascript/ui-overflow-scroller/index.html +30 -0
  53. package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +30 -0
  54. package/docs-dev/javascript/ui-page/index.html +30 -0
  55. package/docs-dev/javascript/ui-popover/index.html +38 -12
  56. package/docs-dev/javascript/ui-print/index.html +30 -8
  57. package/docs-dev/javascript/ui-print-details/index.html +30 -0
  58. package/docs-dev/javascript/ui-programmatic-modal/index.html +30 -0
  59. package/docs-dev/javascript/ui-proxy-click/index.html +117 -2
  60. package/docs-dev/javascript/ui-resizer/index.html +30 -0
  61. package/docs-dev/javascript/ui-scroll-slider/index.html +68 -6
  62. package/docs-dev/javascript/ui-scrollpoint/index.html +36 -13
  63. package/docs-dev/javascript/ui-slider/index.html +226 -5
  64. package/docs-dev/javascript/ui-tabs/index.html +41 -48
  65. package/docs-dev/javascript/ui-theme-toggle/index.html +35 -13
  66. package/docs-dev/javascript/ui-tooltip/index.html +37 -11
  67. package/docs-dev/javascript/utils-class-logger/index.html +30 -0
  68. package/docs-dev/javascript/utils-dom/index.html +55 -0
  69. package/docs-dev/javascript/utils-file-save/index.html +30 -0
  70. package/docs-dev/javascript/utils-floating-ui/index.html +30 -0
  71. package/docs-dev/javascript/utils-id/index.html +30 -0
  72. package/docs-dev/javascript/utils-pause-youtube-video/index.html +30 -0
  73. package/docs-dev/javascript/utils-system/index.html +5437 -0
  74. package/docs-dev/sass/base/color/index.html +30 -0
  75. package/docs-dev/sass/base/elements/index.html +30 -0
  76. package/docs-dev/sass/base/index/index.html +30 -0
  77. package/docs-dev/sass/base/index.html +30 -0
  78. package/docs-dev/sass/base/keyframes/index.html +30 -0
  79. package/docs-dev/sass/base/layout/index.html +30 -0
  80. package/docs-dev/sass/base/normalize/index.html +30 -0
  81. package/docs-dev/sass/base/print/index.html +30 -0
  82. package/docs-dev/sass/base/root/index.html +30 -0
  83. package/docs-dev/sass/base/typography/index.html +30 -0
  84. package/docs-dev/sass/components/accordion/index.html +31 -1
  85. package/docs-dev/sass/components/adaptive-spacing/index.html +30 -0
  86. package/docs-dev/sass/components/badge/index.html +30 -0
  87. package/docs-dev/sass/components/basic-hero/index.html +30 -0
  88. package/docs-dev/sass/components/button/index.html +30 -0
  89. package/docs-dev/sass/components/button-verbose/index.html +30 -0
  90. package/docs-dev/sass/components/callout/index.html +30 -0
  91. package/docs-dev/sass/components/captioned-figure/index.html +30 -0
  92. package/docs-dev/sass/components/card/index.html +30 -0
  93. package/docs-dev/sass/components/card-grid/index.html +30 -0
  94. package/docs-dev/sass/components/css-icon/index.html +30 -0
  95. package/docs-dev/sass/components/data-grid/index.html +30 -0
  96. package/docs-dev/sass/components/data-table/index.html +45 -8
  97. package/docs-dev/sass/components/fill-context/index.html +30 -0
  98. package/docs-dev/sass/components/flipcard/index.html +30 -0
  99. package/docs-dev/sass/components/flipcard-grid/index.html +30 -0
  100. package/docs-dev/sass/components/form-theme/index.html +76 -52
  101. package/docs-dev/sass/components/hero/index.html +30 -0
  102. package/docs-dev/sass/components/horizontal-rule/index.html +30 -0
  103. package/docs-dev/sass/components/image-grid/index.html +30 -0
  104. package/docs-dev/sass/components/index/index.html +30 -0
  105. package/docs-dev/sass/components/index.html +30 -0
  106. package/docs-dev/sass/components/links/index.html +30 -0
  107. package/docs-dev/sass/components/list-inline/index.html +30 -0
  108. package/docs-dev/sass/components/list-lines/index.html +30 -0
  109. package/docs-dev/sass/components/list-ordered/index.html +30 -0
  110. package/docs-dev/sass/components/list-unordered/index.html +30 -0
  111. package/docs-dev/sass/components/menu-stack/index.html +30 -0
  112. package/docs-dev/sass/components/modal/index.html +30 -0
  113. package/docs-dev/sass/components/nav-strip/index.html +30 -0
  114. package/docs-dev/sass/components/overlay-section/index.html +30 -0
  115. package/docs-dev/sass/components/pager/index.html +30 -0
  116. package/docs-dev/sass/components/placeholder-block/index.html +30 -0
  117. package/docs-dev/sass/components/popover/index.html +30 -0
  118. package/docs-dev/sass/components/pull-quote/index.html +30 -0
  119. package/docs-dev/sass/components/ratio-box/index.html +30 -0
  120. package/docs-dev/sass/components/rule/index.html +30 -0
  121. package/docs-dev/sass/components/scroll-slider/index.html +38 -20
  122. package/docs-dev/sass/components/skip-link/index.html +30 -0
  123. package/docs-dev/sass/components/slider/index.html +30 -0
  124. package/docs-dev/sass/components/spoke-spinner/index.html +30 -0
  125. package/docs-dev/sass/components/sticky-list/index.html +30 -0
  126. package/docs-dev/sass/components/tabs/index.html +30 -0
  127. package/docs-dev/sass/components/tag/index.html +30 -0
  128. package/docs-dev/sass/components/tile-button/index.html +30 -0
  129. package/docs-dev/sass/components/tile-grid/index.html +30 -0
  130. package/docs-dev/sass/components/tile-grid-overlay/index.html +30 -0
  131. package/docs-dev/sass/components/vignette/index.html +30 -0
  132. package/docs-dev/sass/components/wysiwyg/index.html +30 -0
  133. package/docs-dev/sass/core/breakpoint/index.html +30 -0
  134. package/docs-dev/sass/core/button/index.html +30 -0
  135. package/docs-dev/sass/core/color/index.html +30 -0
  136. package/docs-dev/sass/core/cssvar/index.html +30 -0
  137. package/docs-dev/sass/core/element/index.html +30 -0
  138. package/docs-dev/sass/core/index.html +30 -0
  139. package/docs-dev/sass/core/layout/index.html +30 -0
  140. package/docs-dev/sass/core/path/index.html +30 -0
  141. package/docs-dev/sass/core/selector/index.html +30 -0
  142. package/docs-dev/sass/core/typography/index.html +30 -0
  143. package/docs-dev/sass/core/units/index.html +30 -0
  144. package/docs-dev/sass/core/utils/index.html +30 -0
  145. package/docs-dev/sass/helpers/color/index.html +30 -0
  146. package/docs-dev/sass/helpers/display/index.html +30 -0
  147. package/docs-dev/sass/helpers/index/index.html +30 -0
  148. package/docs-dev/sass/helpers/index.html +30 -0
  149. package/docs-dev/sass/helpers/print/index.html +30 -0
  150. package/docs-dev/sass/helpers/typography/index.html +30 -0
  151. package/docs-dev/sass/helpers/units/index.html +30 -0
  152. package/docs-dev/sass/helpers/utilities/index.html +30 -0
  153. package/docs-dev/sass/index.html +30 -0
  154. package/js/ui/breakpoints.js +1 -2
  155. package/js/ui/details-group.js +33 -42
  156. package/js/ui/dialog.js +64 -41
  157. package/js/ui/dialog.todo +2 -36
  158. package/js/ui/flipcard.js +37 -57
  159. package/js/ui/grid.js +15 -13
  160. package/js/ui/modal-builder.js +24 -38
  161. package/js/ui/popover.js +38 -39
  162. package/js/ui/print.js +16 -25
  163. package/js/ui/proxy-click.js +50 -36
  164. package/js/ui/scroll-slider.js +24 -30
  165. package/js/ui/scrollpoint.js +27 -63
  166. package/js/ui/slider.js +53 -55
  167. package/js/ui/tabs.js +23 -36
  168. package/js/ui/theme-toggle.js +37 -41
  169. package/js/ui/tooltip.js +27 -33
  170. package/js/utils/dom.js +12 -0
  171. package/js/utils/system.js +154 -0
  172. package/package.json +1 -1
  173. package/scss/components/_accordion.scss +1 -2
  174. package/scss/components/_data-table.scss +3 -0
  175. package/scss/components/_form-theme.scss +24 -25
  176. package/scss/components/_scroll-slider.scss +0 -4
  177. package/types/ui/breakpoints.d.ts.map +1 -1
  178. package/types/ui/details-group.d.ts +7 -12
  179. package/types/ui/details-group.d.ts.map +1 -1
  180. package/types/ui/dialog.d.ts +19 -14
  181. package/types/ui/dialog.d.ts.map +1 -1
  182. package/types/ui/flipcard.d.ts +16 -10
  183. package/types/ui/flipcard.d.ts.map +1 -1
  184. package/types/ui/grid.d.ts +4 -6
  185. package/types/ui/grid.d.ts.map +1 -1
  186. package/types/ui/modal-builder.d.ts +5 -9
  187. package/types/ui/modal-builder.d.ts.map +1 -1
  188. package/types/ui/popover.d.ts +6 -7
  189. package/types/ui/popover.d.ts.map +1 -1
  190. package/types/ui/print.d.ts +0 -4
  191. package/types/ui/print.d.ts.map +1 -1
  192. package/types/ui/proxy-click.d.ts +19 -3
  193. package/types/ui/proxy-click.d.ts.map +1 -1
  194. package/types/ui/scroll-slider.d.ts +5 -7
  195. package/types/ui/scroll-slider.d.ts.map +1 -1
  196. package/types/ui/scrollpoint.d.ts +3 -8
  197. package/types/ui/scrollpoint.d.ts.map +1 -1
  198. package/types/ui/slider.d.ts +22 -12
  199. package/types/ui/slider.d.ts.map +1 -1
  200. package/types/ui/tabs.d.ts +6 -8
  201. package/types/ui/tabs.d.ts.map +1 -1
  202. package/types/ui/theme-toggle.d.ts +6 -13
  203. package/types/ui/theme-toggle.d.ts.map +1 -1
  204. package/types/ui/tooltip.d.ts +3 -5
  205. package/types/ui/tooltip.d.ts.map +1 -1
  206. package/types/utils/dom.d.ts +6 -0
  207. package/types/utils/dom.d.ts.map +1 -1
  208. package/types/utils/system.d.ts +113 -0
  209. package/types/utils/system.d.ts.map +1 -0
@@ -0,0 +1,154 @@
1
+ /**
2
+ * @module utils/system
3
+ * @description Core classes and mechanisms that define how UI components are created and managed within the library
4
+ */
5
+
6
+ import { hasRequiredProps } from "@ulu/utils/object.js";
7
+ import { getDatasetOptionalJson, dataAttributeToDatasetKey } from "./dom.js";
8
+ import { getName } from "../events/index.js";
9
+
10
+ /**
11
+ * Class serves as a utility for UI modules, handling the selection of elements and the initialization of corresponding component instances, ensuring consistent setup within the module
12
+ */
13
+ export class ComponentInitializer {
14
+ static defaults = {
15
+ type: null,
16
+ baseAttribute: null
17
+ };
18
+ static requiredOptions = [
19
+ "type",
20
+ "baseAttribute"
21
+ ];
22
+ static hasRequiredOptions = hasRequiredProps(
23
+ ComponentInitializer.requiredOptions
24
+ );
25
+
26
+ /**
27
+ * Create a new instance of ComponentInitializer
28
+ * @param {Object} options Options for configuring the component initializer.
29
+ * @param {String} options.type Type of component (used for logs).
30
+ * @param {String} options.baseAttribute Prefix and base attribute name (used for base attribute and further element attribute names).
31
+ */
32
+ constructor(options) {
33
+ if (!ComponentInitializer.hasRequiredOptions(options)) {
34
+ throw new Error(
35
+ `Missing a required options: ${ ComponentInitializer.requiredOptions.join(", ") }`
36
+ );
37
+ }
38
+ this.options = Object.assign({}, ComponentInitializer.defaults, options);
39
+ this.logTitle = `ULU: ${ this.options.type }:\n`;
40
+ }
41
+ /**
42
+ * Initializes the component based on the provided configuration.
43
+ * @param {Object} config The initialization configuration.
44
+ * @param {Function} config.setup The setup function to call for each element.
45
+ * @param {String} config.key [null] The optional key to use with attribute selector.
46
+ * @param {Boolean} config.withData [null] Whether to retrieve element data.
47
+ * @param {Array} config.events [null] Ulu events that should call setup when dispatched (ie. pageModified, pageResized)
48
+ * @param {Boolean} config.onPageResized [null] Whether to bind event listener for page resize end
49
+ * @param {HTMLElement} config.context [document] The context to query within.
50
+ */
51
+ init(config) {
52
+ this.setupElements(config);
53
+ // Attach Handler to reinitialize if page is updated
54
+ // Specifically checking entire document incase element that dispatched
55
+ // event made alterations outside of itself
56
+ if (config.events?.length) {
57
+ config.events.forEach(name => {
58
+ document.addEventListener(getName(name), () => this.setupElements(config));
59
+ });
60
+ }
61
+ }
62
+ /**
63
+ * Processes the elements based on the provided configuration.
64
+ * @param {object} config The initialization configuration.
65
+ * @param {function} config.setup The setup function to call for each element.
66
+ * @param {string} config.key The optional key to use with attribute selector.
67
+ * @param {boolean} config.withData [false] Whether to retrieve element data.
68
+ * @param {boolean} config.onPageModified [true] Whether to bind event listener for page modifications.
69
+ * @param {HTMLElement} config.context [document] The context to query within.
70
+ */
71
+ setupElements(config) {
72
+ const { setup, key, withData, context } = config;
73
+ const elementsWithData = this.queryAllInitial(key, withData, context);
74
+ elementsWithData.forEach(elementWithData => setup(elementWithData, this));
75
+ }
76
+ /**
77
+ * Get an attribute name
78
+ * @param {String} key Optional key, if no key will return baseAttribute if key will return key added to base
79
+ * @returns {String} String like data-ulu-dialog or data-ulu-dialog-element
80
+ */
81
+ getAttribute(key) {
82
+ const { baseAttribute } = this.options;
83
+ return key ? `${ baseAttribute }-${ key }` : `${ baseAttribute }`;
84
+ }
85
+ /**
86
+ * Create an attribute selector
87
+ * @param {String} key Optional key (see getAttribute)
88
+ */
89
+ attributeSelector(key) {
90
+ return `[${ this.getAttribute(key) }]`;
91
+ }
92
+ /**
93
+ * Create an attribute selector for initial
94
+ * @return {String}
95
+ */
96
+ attributeSelectorInitial(key) {
97
+ return `${ this.attributeSelector(key) }:not([${ this.getAttribute("init") }])`
98
+ }
99
+ /**
100
+ * Queries all main elements of a component that have not been initialized and extracts their data attributes.
101
+ * @param {HTMLElement} context The context to query within.
102
+ * @param {Boolean} withData Include dataset from element (as optional JSON)
103
+ * @param {Node} context Element to query elements from
104
+ * @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
105
+ */
106
+ queryAllInitial(key, withData, context = document) {
107
+ const elements = [ ...context.querySelectorAll(this.attributeSelectorInitial(key)) ];
108
+ return elements.map((element) => ({
109
+ element,
110
+ data: withData ? this.getData(element, key) : null,
111
+ initialize: () => this.initializeElement(element)
112
+ }));
113
+ }
114
+ /**
115
+ * Sets the init attribute on an element, marking it as initialized.
116
+ * @param {HTMLElement} element The element to initialize.
117
+ */
118
+ initializeElement(element) {
119
+ element.setAttribute(this.getAttribute("init"), "");
120
+ }
121
+ /**
122
+ * Get an elements dataset value as JSON or other value
123
+ * @return {*} The value of the dataset, if JSON will return object else will return string value or undefined
124
+ */
125
+ getData(element, key) {
126
+ const datasetKey = dataAttributeToDatasetKey(this.getAttribute(key));
127
+ return getDatasetOptionalJson(element, datasetKey);
128
+ }
129
+ /**
130
+ * Will output namespaced console logs for the given initializer
131
+ */
132
+ log(...msgs) {
133
+ console.log(this.logTitle, ...msgs);
134
+ }
135
+ /**
136
+ * Will output namespaced console warnings for the given initializer
137
+ */
138
+ warn(...msgs) {
139
+ console.warn(this.logTitle, ...msgs);
140
+ }
141
+ /**
142
+ * Will output namespaced console error for the given initializer
143
+ */
144
+ logError(...msgs) {
145
+ console.error(this.logTitle, ...msgs);
146
+ }
147
+ }
148
+
149
+ /**
150
+ * Class serves as a base for representing individual occurrences of a UI component, providing a consistent structure for each
151
+ */
152
+ export class ComponentInstance {
153
+
154
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.1.0-beta.33",
3
+ "version": "0.1.0-beta.35",
4
4
  "description": "Modular Sass Theming Library",
5
5
  "browser": "js/index.js",
6
6
  "main": "index.js",
@@ -120,7 +120,7 @@ $config: (
120
120
  & + & {
121
121
  $gap: -(get("margin") - get("margin-between"));
122
122
  margin-top: $gap;
123
- margin-top: calc($gap - 1px);
123
+ margin-top: calc($gap - get("border-width"));
124
124
  }
125
125
  &[open],
126
126
  &.is-active {
@@ -208,7 +208,6 @@ $config: (
208
208
  }
209
209
  #{ $prefix }--no-borders {
210
210
  border: none;
211
- margin-bottom: 4rem;
212
211
  &[open] > .accordion__summary {
213
212
  border-bottom: none;
214
213
  }
@@ -33,6 +33,7 @@ $-fallbacks: (
33
33
  /// @prop {Color} footer-background-color [#f3f3f3] Background color of table footer.
34
34
  /// @prop {Color} color ["type-secondary"] Font color of the table.
35
35
  /// @prop {Color} header-color ["headline"] Font color for the table header.
36
+ /// @prop {Color} footer-color [null] Font color for the table footer.
36
37
  /// @prop {Number} line-height [true] Line height for the table.
37
38
  /// @prop {Dimension} column-min-width [6em] Min-width of the th element.
38
39
  /// @prop {Dimension} first-column-large-min-width [15em] When using "--large-first" style, the min width of the first th element.
@@ -63,6 +64,7 @@ $config: (
63
64
  "footer-background-color" : #f3f3f3,
64
65
  "color" : "type-secondary",
65
66
  "header-color" : "headline",
67
+ "footer-color" : null,
66
68
  "line-height" : true,
67
69
  "column-min-width" : 6em,
68
70
  "first-column-large-min-width" : 15em,
@@ -175,6 +177,7 @@ $config: (
175
177
  }
176
178
  tfoot tr {
177
179
  background-color: color.get(get("footer-background-color"));
180
+ color: color.get(get("footer-color"));
178
181
  }
179
182
  th,
180
183
  td {
@@ -64,34 +64,33 @@ $-fallbacks: (
64
64
  /// @prop {Color} check-input-border-color-indeterminate [null] Indeterminate check input border color.
65
65
  /// @prop {Color} check-input-border-color-focus [null] Check input border color when hovered or focused.
66
66
  /// @prop {CssValue} check-input-outline [null] Check input outline.
67
- /// @prop {CssValue} check-input-outline-hover [null]
68
- /// @prop {CssValue} check-input-outline-checked [null]
69
- /// @prop {CssValue} check-input-outline-focus [1px solid white]
70
- /// @prop {Color} check-input-touch-color-hover [#e8e8e8]
71
- /// @prop {Color} check-input-touch-color-focus [null]
72
- /// @prop {Dimension} check-input-radio-size [0.3em]
73
- /// @prop {Dimension} check-input-checkmark-width [0.38em]
74
- /// @prop {Dimension} check-input-checkmark-height [0.68em]
75
- /// @prop {Dimension} check-input-checkmark-offset-y [-0.2em]
76
- /// @prop {Dimension} check-input-checkmark-stroke-size [0.18em]
77
- /// @prop {Color} check-input-mark-color [currentColor]
78
- /// @prop {Color} check-input-mark-color-hover [null]
79
- /// @prop {Color} check-input-mark-color-focus [null]
80
- /// @prop {Color} check-input-mark-color-checked [null]
81
- /// @prop {Color} check-input-mark-color-indeterminate [null]
82
- /// @prop {Number} check-input-disabled-opacity [0.6]
83
- /// @prop {Dimension} check-input-border-radius [null]
84
- /// @prop {Color} description-color [false]
85
- /// @prop {CssValue} description-margin [(0.25em 0)]
86
- /// @prop {Dimension} description-max-width [25em]
87
- /// @prop {Number} description-line-height [true] Line height for description element, defaults to typograpahy line-height-dense
88
- /// @prop {Color} fieldset-background [transparent]
89
- /// @prop {CssValue} fieldset-border [none]
67
+ /// @prop {CssValue} check-input-outline-hover [null] Check input outline when hovered.
68
+ /// @prop {CssValue} check-input-outline-checked [null] Check input outline when checked.
69
+ /// @prop {CssValue} check-input-outline-focus [1px solid white] Check input outline when focused.
70
+ /// @prop {Color} check-input-touch-color-hover [#e8e8e8] Check input background color when hovered.
71
+ /// @prop {Color} check-input-touch-color-focus [null] Check input background color when focused.
72
+ /// @prop {Dimension} check-input-radio-size [0.3em] Radio border size.
73
+ /// @prop {Dimension} check-input-checkmark-width [0.38em] Width of checkmark.
74
+ /// @prop {Dimension} check-input-checkmark-height [0.68em] Height of checkmark.
75
+ /// @prop {Dimension} check-input-checkmark-offset-y [-0.2em] vertical offset of checkmark.
76
+ /// @prop {Dimension} check-input-checkmark-stroke-size [0.18em] stroke size of checkmark.
77
+ /// @prop {Color} check-input-mark-color [currentColor] Check input color.
78
+ /// @prop {Color} check-input-mark-color-hover [null] Check input color when hovered.
79
+ /// @prop {Color} check-input-mark-color-focus [null] Check input color when focused.
80
+ /// @prop {Color} check-input-mark-color-checked [null] Check input color when checked.
81
+ /// @prop {Color} check-input-mark-color-indeterminate [null] Check input color when indeterminate.
82
+ /// @prop {Number} check-input-disabled-opacity [0.6] Opacity of the check input when disabled.
83
+ /// @prop {Dimension} check-input-border-radius [null] Checkbox input border radius.
84
+ /// @prop {Color} description-color [false] Color of help text.
85
+ /// @prop {CssValue} description-margin [(0.25em 0)] Margin for help text.
86
+ /// @prop {Dimension} description-max-width [25em] Max width of help text.
87
+ /// @prop {Number} description-line-height [true] Line height for description element, defaults to typography line-height-dense
88
+ /// @prop {Color} fieldset-background [transparent] Background color of fieldset.
89
+ /// @prop {CssValue} fieldset-border [none] Border for fieldset
90
90
  /// @prop {Dimension} fieldset-margin-bottom [1rem]
91
91
  /// @prop {Dimension} fieldset-margin-top [1rem]
92
92
  /// @prop {Dimension} fieldset-padding [0]
93
- /// @prop {Dimension} fieldset-margin-compact [0]
94
- /// @prop {Dimension} fieldset-border-bottom [0]
93
+ /// @prop {Dimension} fieldset-margin-compact [0] @joe-check unused
95
94
  /// @prop {Dimension} fieldset-border-radius [0]
96
95
  /// @prop {Color} fieldset-legend-color [inherit]
97
96
  /// @prop {Dimension} fieldset-legend-border-bottom [null]
@@ -22,8 +22,6 @@
22
22
  /// @prop {Dimension} padding-bottom [0]
23
23
  /// @prop {Dimension} padding-top [0]
24
24
  /// @prop {String} prefix ["scroll-slide"]
25
- /// @prop {Color} button-background-color [white]
26
- /// @prop {Color} button-background-color-hover [white]
27
25
  /// @prop {CssValue} button-border [2px solid white]
28
26
  /// @prop {Color} button-border-color-hover [white]
29
27
  /// @prop {Dimension} button-border-radius [50%]
@@ -46,8 +44,6 @@ $config: (
46
44
  "padding-bottom" : 0,
47
45
  "padding-top" : 0,
48
46
  "prefix": "scroll-slider",
49
- "button-background-color" : white,
50
- "button-background-color-hover" : white,
51
47
  "button-border" : 2px solid white,
52
48
  "button-border-color-hover" : white,
53
49
  "button-border-radius" : 50%,
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../js/ui/breakpoints.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH;IACE,wBAAsB;IACtB;;;;;;;MAOC;IACD;;;;;;;OAOG;IACH;QANyB,KAAK;QACL,cAAc;QACd,eAAe;QAChB,OAAO,EAApB,IAAI;QACW,cAAc;OAevC;IAXC,YAAkB;IAClB,cAAoB;IACpB,iBAAuB;IACvB,wBAA2B;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,eA6CC;IACD;;;;OAIG;IACH,kBAFY,UAAU,CAQrB;CACF;AAsED;;;GAGG;AACH;IACE,qCAQC;IAPC;;;;MAIC;IACD,cAAuB;IACvB,UAAgB;IAElB;;;;;OAKG;IACH,wDAEC;IACD;;;;;OAKG;IACH,6BAEC;IACD;;;;;OAKG;IACH,6BAEC;IACD;;;OAGG;IACH,8BAEC;IACD;;;;OAIG;IACH,mDAGC;IAED,yBAGC;CACF;AAnID;;;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,cAAe,QAiBzB;IACD;;OAEG;IACH,2BAQC;CACF"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../js/ui/breakpoints.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH;IACE,wBAAsB;IACtB;;;;;;;MAOC;IACD;;;;;;;OAOG;IACH;QANyB,KAAK;QACL,cAAc;QACd,eAAe;QAChB,OAAO,EAApB,IAAI;QACW,cAAc;OAevC;IAXC,YAAkB;IAClB,cAAoB;IACpB,iBAAuB;IACvB,wBAA2B;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,eA4CC;IACD;;;;OAIG;IACH,kBAFY,UAAU,CAQrB;CACF;AAsED;;;GAGG;AACH;IACE,qCAQC;IAPC;;;;MAIC;IACD,cAAuB;IACvB,UAAgB;IAElB;;;;;OAKG;IACH,wDAEC;IACD;;;;;OAKG;IACH,6BAEC;IACD;;;;;OAKG;IACH,6BAEC;IACD;;;OAGG;IACH,8BAEC;IACD;;;;OAIG;IACH,mDAGC;IAED,yBAGC;CACF;AAnID;;;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,cAAe,QAiBzB;IACD;;OAEG;IACH,2BAQC;CACF"}
@@ -3,12 +3,6 @@
3
3
  * - This will only initialize elements once, it is safe to call on page changes
4
4
  */
5
5
  export function init(): void;
6
- /**
7
- * Setup all dialog groups within context
8
- * @param {HTMLElement} context [document] Element to query within
9
- * @returns {Array} Array matching the groups queried with their return objects from setupGroup() [used for destroy/etc]
10
- */
11
- export function setup(context?: HTMLElement): any[];
12
6
  /**
13
7
  * @typedef {Object} DetailsGroupInstance
14
8
  * @property {Function} destroy A function to remove event listeners and attributes.
@@ -18,14 +12,14 @@ export function setup(context?: HTMLElement): any[];
18
12
  /**
19
13
  * Sets up a single group of details elements to manage their behavior.
20
14
  * @param {HTMLElement} element - The parent element containing the details elements.
15
+ * @param {Object} options - The options for this group
21
16
  * @returns {DetailsGroupInstance}
22
17
  */
23
- export function setupGroup(element: HTMLElement): DetailsGroupInstance;
24
- export namespace attrs {
25
- let init: string;
26
- let childInit: string;
27
- let group: string;
28
- }
18
+ export function setupGroup(element: HTMLElement, userOptions: any): DetailsGroupInstance;
19
+ /**
20
+ * Dialog Component Initializer
21
+ */
22
+ export const initializer: ComponentInitializer;
29
23
  export type DetailsGroupInstance = {
30
24
  /**
31
25
  * A function to remove event listeners and attributes.
@@ -40,4 +34,5 @@ export type DetailsGroupInstance = {
40
34
  */
41
35
  setupChildren: Function;
42
36
  };
37
+ import { ComponentInitializer } from "../utils/system.js";
43
38
  //# sourceMappingURL=details-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"details-group.d.ts","sourceRoot":"","sources":["../../js/ui/details-group.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,6BAGC;AAED;;;;GAIG;AACH,gCAHW,WAAW,SAYrB;AAED;;;;;GAKG;AAEH;;;;GAIG;AACH,oCAHW,WAAW,GACT,oBAAoB,CA8DhC;;;;;;;;;;;;;;aArEa,WAAW"}
1
+ {"version":3,"file":"details-group.d.ts","sourceRoot":"","sources":["../../js/ui/details-group.js"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,6BASC;AAED;;;;;GAKG;AAEH;;;;;GAKG;AACH,oCAJW,WAAW,qBAET,oBAAoB,CAgEhC;AAxGD;;GAEG;AACH,+CAGG;;;;;;;;;aA0BW,WAAW;;;;;;qCAlCY,oBAAoB"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @param {Object} options Change options used as default for dialogs, can then be overriden by data attribute settings on element
2
+ * @param {Object} options Change options used as default for dialogs, can then be overridden by data attribute settings on element
3
3
  */
4
4
  export function setDefaults(options: any): void;
5
5
  /**
@@ -7,36 +7,41 @@ export function setDefaults(options: any): void;
7
7
  * - This will only initialize elements once, it is safe to call on page changes
8
8
  */
9
9
  export function init(): void;
10
- /**
11
- * Setup dialogs and triggers
12
- */
13
- export function setup(): void;
14
10
  /**
15
11
  * Setup click handlers on a trigger
16
- * @param {Node} trigger
12
+ * @param {Node} trigger Trigger button element
13
+ * @param {String} dialogId The dialog's id to open
17
14
  */
18
- export function setupTrigger(trigger: Node): void;
15
+ export function setupTrigger(trigger: Node, dialogId: string): void;
19
16
  /**
20
17
  * Setup click handlers for a dialog
21
18
  * @param {Node} dialog
22
19
  */
23
- export function setupDialog(dialog: Node): void;
20
+ export function setupDialog(dialog: Node, userOptions: any): void;
24
21
  /**
25
22
  * For a given dialog, get it's options (from data attribute)
26
23
  * @param {Node} dialog
27
24
  * @returns {Object}
28
25
  */
29
26
  export function getDialogOptions(dialog: Node): any;
30
- export namespace attrs {
31
- let init: string;
32
- let dialog: string;
33
- let trigger: string;
34
- let close: string;
35
- }
27
+ /**
28
+ * Base attribute for a dialog
29
+ */
30
+ export const baseAttribute: "data-ulu-dialog";
31
+ /**
32
+ * Dialog Component Initializer
33
+ */
34
+ export const initializer: ComponentInitializer;
35
+ /**
36
+ * Attribute for close buttons within a dialog
37
+ */
38
+ export const closeAttribute: string;
36
39
  export namespace defaults {
37
40
  let nonModal: boolean;
38
41
  let documentEnd: boolean;
39
42
  let clickOutsideCloses: boolean;
40
43
  let pauseVideos: boolean;
44
+ let preventScroll: boolean;
41
45
  }
46
+ import { ComponentInitializer } from "../utils/system.js";
42
47
  //# sourceMappingURL=dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../js/ui/dialog.js"],"names":[],"mappings":"AAkDA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BAGC;AAED;;GAEG;AACH,8BAOC;AAED;;;GAGG;AACH,sCAFW,IAAI,QAoBd;AAED;;;GAGG;AACH,oCAFW,IAAI,QA0Bd;AAED;;;;GAIG;AACH,yCAHW,IAAI,OAMd"}
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../js/ui/dialog.js"],"names":[],"mappings":"AAuDA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BAqBC;AAED;;;;GAIG;AACH,sCAHW,IAAI,0BAmBd;AAED;;;GAGG;AACH,oCAFW,IAAI,0BAuCd;AAED;;;;GAIG;AACH,yCAHW,IAAI,OAKd;AA1JD;;GAEG;AACH,8CAA+C;AAE/C;;GAEG;AACH,+CAAuF;AAEvF;;GAEG;AACH,oCAAgE;;;;;;;;qCAjB3B,oBAAoB"}
@@ -1,7 +1,19 @@
1
+ /**
2
+ * Initialize flipcards using data-ulu-flipcard attribute
3
+ */
1
4
  export function init(): void;
2
- export function setup(): void;
5
+ /**
6
+ * Flipcard Component Initializer
7
+ */
8
+ export const initializer: ComponentInitializer;
9
+ /**
10
+ * Flipcard class (creates flipcard instance and behaviors)
11
+ */
3
12
  export class Flipcard {
4
13
  static instances: any[];
14
+ /**
15
+ * Default options for Flipcard
16
+ */
5
17
  static defaults: {
6
18
  namespace: string;
7
19
  proxyClick: {
@@ -10,9 +22,8 @@ export class Flipcard {
10
22
  exclude: string;
11
23
  };
12
24
  };
13
- constructor(container: any, front: any, back: any, config: any, debug?: boolean);
25
+ constructor(container: any, front: any, back: any, config: any);
14
26
  options: any;
15
- debug: boolean;
16
27
  elements: {
17
28
  container: any;
18
29
  front: any;
@@ -32,14 +43,9 @@ export class Flipcard {
32
43
  }): void;
33
44
  getClass(child: any): any;
34
45
  createControlContent(): string;
35
- setVisiblity(visible: any): void;
46
+ setVisibility(visible: any): void;
36
47
  containerCss(): string;
37
48
  panelCss(zIndex?: number): string;
38
49
  }
39
- export namespace attrs {
40
- let init: string;
41
- let flipcard: string;
42
- let front: string;
43
- let back: string;
44
- }
50
+ import { ComponentInitializer } from "../utils/system.js";
45
51
  //# sourceMappingURL=flipcard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flipcard.d.ts","sourceRoot":"","sources":["../../js/ui/flipcard.js"],"names":[],"mappings":"AAmJA,6BAGC;AAED,8BAGC;AAjJD;IACE,wBAAsB;IACtB;;;;;;;MAOE;IACF,iFAgBC;IAZC,aAA2D;IAI3D,eAA+B;IAC/B;;;;MAA0C;IAC1C,gBAAmB;IACnB,YAA6D;IAC7D,kBAA0D;IAK5D,eAEC;IACD,cAqCC;IACD;;;OAGG;IACH;;aAQC;IACD,0BAGC;IACD,+BAIC;IACD,iCASC;IACD,uBAWC;IACD,kCAKC;CACF"}
1
+ {"version":3,"file":"flipcard.d.ts","sourceRoot":"","sources":["../../js/ui/flipcard.js"],"names":[],"mappings":"AAgBA;;GAEG;AACH,6BAYC;AAvBD;;GAEG;AACH,+CAGG;AAmBH;;GAEG;AACH;IACE,wBAAsB;IACtB;;OAEG;IACH;;;;;;;MAOE;IACF,gEAgBC;IAZC,aAA2D;IAK3D;;;;MAA0C;IAC1C,gBAAmB;IACnB,YAA6D;IAC7D,kBAA0D;IAK5D,eAEC;IACD,cAqCC;IACD;;;OAGG;IACH;;aAQC;IACD,0BAGC;IACD,+BAIC;IACD,kCASC;IACD,uBAWC;IACD,kCAKC;CACF;qCAzJoC,oBAAoB"}
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * Sets up document for grid position classes
3
- * @param {String} selector The selector for the parent element
4
3
  * @param {Object} classes Classes (optional) @see setPositionClasses
5
4
  */
6
- export function init(selector: string, classes: any): void;
5
+ export function init(classes: any): void;
7
6
  /**
8
- * Goes through document and finds elements that need to have positioning classes
9
- * @param {String} selector The selector for the parent element
10
- * @param {Object} classes Classes (optional) @see setPositionClasses
7
+ * Dialog Component Initializer
11
8
  */
12
- export function setup(selector: string, classes: any): void;
9
+ export const initializer: ComponentInitializer;
10
+ import { ComponentInitializer } from "../utils/system.js";
13
11
  //# sourceMappingURL=grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../js/ui/grid.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,2DAIC;AAED;;;;GAIG;AACH,4DAEC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../js/ui/grid.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH,yCAQC;AApBD;;GAEG;AACH,+CAGG;qCATkC,oBAAoB"}
@@ -7,15 +7,6 @@ export function setDefaults(options: any): void;
7
7
  * - This will only initialize elements once, it is safe to call on page changes
8
8
  */
9
9
  export function init(): void;
10
- /**
11
- * Query and setup all builder
12
- */
13
- export function setup(): void;
14
- /**
15
- * Build a dialog for the given content
16
- * @param {Node} element
17
- */
18
- export function setupBuilder(element: Node): void;
19
10
  /**
20
11
  *
21
12
  * @param {Node} content Content element of the dialog (what is inserted into the body)
@@ -24,6 +15,10 @@ export function setupBuilder(element: Node): void;
24
15
  export function buildModal(content: Node, options: any): {
25
16
  modal: Element;
26
17
  };
18
+ /**
19
+ * Modal Builder Component Initializer
20
+ */
21
+ export const initializer: ComponentInitializer;
27
22
  export namespace defaults {
28
23
  export let title: any;
29
24
  export let titleIcon: any;
@@ -51,4 +46,5 @@ export namespace defaults {
51
46
  */
52
47
  export function template(id: string, config: any): string;
53
48
  }
49
+ import { ComponentInitializer } from "../utils/system.js";
54
50
  //# sourceMappingURL=modal-builder.d.ts.map
@@ -1 +1 @@
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"}
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,6BAQC;AAED;;;;GAIG;AACH,oCAHW,IAAI;;EAmDd;AA7JD;;GAEG;AACH,+CAGG;;;;;;;;;;;;;;;;;;IAwBD,uDAEC;IACD,yDAEC;IACD;;;;;OAKG;IACH,0DAmCC;;qCApFkC,oBAAoB"}
@@ -2,16 +2,10 @@
2
2
  * Initialize default popover
3
3
  */
4
4
  export function init(): void;
5
- /**
6
- * Query all popovers on current page and set them up
7
- * - Use this manually if needed
8
- * - Won't setup a popover more than once
9
- */
10
- export function setup(): void;
11
5
  /**
12
6
  * Find the popover's elements
13
7
  */
14
- export function resolve(trigger: any): false | {
8
+ export function resolve(trigger: any, userOptions: any): false | {
15
9
  elements: {
16
10
  trigger: any;
17
11
  content: any;
@@ -22,6 +16,10 @@ export function resolve(trigger: any): false | {
22
16
  floatingOptions: any;
23
17
  };
24
18
  export function getContentByTrigger(trigger: any): any;
19
+ /**
20
+ * Popover Component Initializer
21
+ */
22
+ export const initializer: ComponentInitializer;
25
23
  /**
26
24
  * Array of current instances
27
25
  */
@@ -36,5 +34,6 @@ export class Popover extends Collapsible {
36
34
  floatingCleanup: Function;
37
35
  destroyFloatingInstance(): void;
38
36
  }
37
+ import { ComponentInitializer } from "../utils/system.js";
39
38
  import { Collapsible } from "./collapsible.js";
40
39
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../js/ui/popover.js"],"names":[],"mappings":"AA6BA;;GAEG;AACH,6BAGC;AAED;;;;GAIG;AACH,8BAWC;AAED;;GAEG;AACH;;;;;;;;;EAkBC;AAKD,uDAmBC;AA5FD;;GAEG;AACH,4BAAqC;AA4FrC;;GAEG;AACH;IACE,8DAIC;IADC,qBAA4C;IAa9C,+BAKC;IADC,0BAA+E;IAEjF,gCAKC;CACF;4BAjI2B,kBAAkB"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../js/ui/popover.js"],"names":[],"mappings":"AAgCA;;GAEG;AACH,6BAmBC;AAED;;GAEG;AACH;;;;;;;;;EAiBC;AAKD,uDAmBC;AA5FD;;GAEG;AACH,+CAGG;AAOH;;GAEG;AACH,4BAAqC;AA+ErC;;GAEG;AACH;IACE,8DAIC;IADC,qBAA4C;IAa9C,+BAIC;IADC,0BAA+E;IAEjF,gCAKC;CACF;qCAlIoC,oBAAoB;4BAE7B,kBAAkB"}
@@ -3,8 +3,4 @@
3
3
  * - This will only initialize elements once, it is safe to call on page changes
4
4
  */
5
5
  export function init(): void;
6
- export namespace attrs {
7
- let trigger: string;
8
- let init: string;
9
- }
10
6
  //# sourceMappingURL=print.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../js/ui/print.js"],"names":[],"mappings":"AA2BA;;;GAGG;AACH,6BAGC"}
1
+ {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../js/ui/print.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,6BASC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @param {Object} options Change options used as default for dialogs, can then be overriden by data attribute settings on element
2
+ * @param {Object} options Change options used as default for dialogs, can then be overridden by data attribute settings on element
3
3
  */
4
4
  export function setDefaults(options: any): void;
5
5
  /**
@@ -7,12 +7,28 @@ export function setDefaults(options: any): void;
7
7
  * - This will only initialize elements once, it is safe to call on page changes
8
8
  */
9
9
  export function init(): void;
10
- export function setup(context?: Document): void;
11
- export function attachHandlers(proxy: any, child: any, options: any): void;
10
+ /**
11
+ * Setup a single proxy click
12
+ * @param {Node} proxy The container who's click should proxy the click of inner element with options.selector (defaults to [data-ulu-proxy-click-source])
13
+ * @param {Object} userOptions Options to override defaults
14
+ */
15
+ export function setupProxy(proxy: Node, userOptions: any): void;
16
+ /**
17
+ * Main function for attaching behaviors that enable proxy click
18
+ * @param {Node} proxy The container who's click should proxy the click of inner element with options.selector (defaults to [data-ulu-proxy-click-source])
19
+ * @param {Node} child The element who is being proxied and will get clicked if the proxy is clicked (as long as not an interactive element within proxy)
20
+ * @param {Object} config Merged/final options object
21
+ */
22
+ export function attachHandlers(proxy: Node, child: Node, config: any): void;
23
+ /**
24
+ * Proxy Click Component Initializer
25
+ */
26
+ export const initializer: ComponentInitializer;
12
27
  export namespace defaults {
13
28
  let selector: string;
14
29
  let selectorPreventBase: string;
15
30
  let selectorPrevent: string;
16
31
  let mousedownDurationPrevent: number;
17
32
  }
33
+ import { ComponentInitializer } from "../utils/system.js";
18
34
  //# sourceMappingURL=proxy-click.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"proxy-click.d.ts","sourceRoot":"","sources":["../../js/ui/proxy-click.js"],"names":[],"mappings":"AAiCA;;GAEG;AACH,gDAEC;AACD;;;GAGG;AACH,6BAGC;AAED,gDAaC;AACD,2EAiBC"}
1
+ {"version":3,"file":"proxy-click.d.ts","sourceRoot":"","sources":["../../js/ui/proxy-click.js"],"names":[],"mappings":"AAkCA;;GAEG;AACH,gDAEC;AACD;;;GAGG;AACH,6BASC;AAED;;;;GAIG;AACH,kCAHW,IAAI,0BAWd;AAED;;;;;GAKG;AACH,sCAJW,IAAI,SACJ,IAAI,qBAoBd;AAhFD;;GAEG;AACH,+CAGG;;;;;;;qCARkC,oBAAoB"}
@@ -3,11 +3,9 @@
3
3
  * - This will only initialize elements once, it is safe to call on page changes
4
4
  */
5
5
  export function init(): void;
6
- export function setup(): void;
7
- export namespace attrs {
8
- let init: string;
9
- let slider: string;
10
- let track: string;
11
- let controls: string;
12
- }
6
+ /**
7
+ * Scroll Slider Component Initializer
8
+ */
9
+ export const initializer: ComponentInitializer;
10
+ import { ComponentInitializer } from "../utils/system.js";
13
11
  //# sourceMappingURL=scroll-slider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-slider.d.ts","sourceRoot":"","sources":["../../js/ui/scroll-slider.js"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,6BAGC;AAED,8BAGC"}
1
+ {"version":3,"file":"scroll-slider.d.ts","sourceRoot":"","sources":["../../js/ui/scroll-slider.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,6BASC;AA5BD;;GAEG;AACH,+CAGG;qCAVkC,oBAAoB"}