@appartmint/mint 0.13.4 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/util.js CHANGED
@@ -38,234 +38,11 @@ var mintSide;
38
38
 
39
39
  /***/ }),
40
40
 
41
- /***/ "./src/ts/imports/util/selectors.ts":
42
- /*!******************************************!*\
43
- !*** ./src/ts/imports/util/selectors.ts ***!
44
- \******************************************/
45
- /***/ ((__unused_webpack_module, exports) => {
46
-
47
-
48
-
49
- var _a;
50
- Object.defineProperty(exports, "__esModule", ({
51
- value: true
52
- }));
53
- exports.mintSelectors = void 0;
54
- /**
55
- * CSS-selector helpers
56
- * @public
57
- */
58
- class mintSelectors {
59
- /**
60
- * Adds the library prefix to the beginning of the provided string
61
- * @param base - the string to be prefixed
62
- * @returns - the provided string prefixed with the library name
63
- */
64
- static prefix(base) {
65
- base = base.toLowerCase();
66
- return base.startsWith(this.pre) ? base : `${this.pre}${base}`;
67
- }
68
- /**
69
- * Adds two dashes to the beginning of the provided string
70
- * @param base - the string to be prefixed
71
- * @returns - the provided string prefixed with two dashes
72
- */
73
- static cssPrefix(base) {
74
- return `--${this.prefix(base.replace(/^-+/, ''))}`;
75
- }
76
- /**
77
- * Turns the provided string into a CSS variable call
78
- * @param base - the name of the CSS variable to call
79
- * @returns - the CSS variable call for the provided string
80
- */
81
- static cssVar(base) {
82
- return `var(${this.cssPrefix(base)})`;
83
- }
84
- /**
85
- * Negates the provided CSS selector
86
- * @param base - the CSS selector to negate
87
- * @returns - the negated CSS selector
88
- */
89
- static neg(base) {
90
- return `:not(${base})`;
91
- }
92
- /**
93
- * Generates a class CSS selector
94
- * @param base - the name of the class to generate
95
- * @returns - the generated CSS selector
96
- */
97
- static class(base) {
98
- return `.${this.prefix(base)}`;
99
- }
100
- /**
101
- * Generates an id CSS selector
102
- * @param base - the name of the id to generate
103
- * @returns - the generated CSS selector
104
- */
105
- static id(base) {
106
- return `#${this.prefix(base)}`;
107
- }
108
- /**
109
- * Generates an aria-controls CSS selector
110
- * @param id - the id of the controlled element
111
- * @returns - the generated CSS selector
112
- */
113
- static controls(id) {
114
- return id ? `[aria-controls="${this.prefix(id)}"]` : this.hasControls;
115
- }
116
- /**
117
- * Generates an aria-expanded CSS selector
118
- * @param bool - whether the element is expanded or not
119
- * @returns - the generated CSS selector
120
- */
121
- static expanded(bool) {
122
- return typeof bool === 'boolean' ? `[aria-expanded="${bool}"]` : this.hasExpanded;
123
- }
124
- /**
125
- * Returns the id of the requested element
126
- */
127
- static getId(id) {
128
- var _b;
129
- return (_b = this.ids[id !== null && id !== void 0 ? id : -1]) !== null && _b !== void 0 ? _b : '';
130
- }
131
- /**
132
- * Returns the class of the requested element
133
- */
134
- static getClass(className, classGroup) {
135
- var _b, _c;
136
- if (classGroup) {
137
- let group = this.classes[classGroup];
138
- return (_b = group[className !== null && className !== void 0 ? className : -1]) !== null && _b !== void 0 ? _b : '';
139
- }
140
- return (_c = this.classes[className !== null && className !== void 0 ? className : -1]) !== null && _c !== void 0 ? _c : '';
141
- }
142
- /**
143
- * Returns a NodeList of HTMLElements within the given element that are focusable
144
- * @param el - the element whose focusable children will be returned
145
- * @returns - the elements within the given element that are focusable
146
- */
147
- static getFocusables(el) {
148
- let focusables;
149
- if (el) {
150
- focusables = Array.from(el.querySelectorAll(this.focusable));
151
- } else {
152
- focusables = Array.from(document.querySelectorAll(this.focusable));
153
- }
154
- return focusables.filter(el => this.isFocusable(el));
155
- }
156
- /**
157
- * Returns true if an element is focusable and false if not,
158
- * based on styles (i.e. a parent has display: none;)
159
- * NOTE: Still need to determine what other styles may make an element un-focusable
160
- * @param el - the element
161
- * @returns - true if the element is focusable; false if not
162
- */
163
- static isFocusable(el) {
164
- let current = el;
165
- do {
166
- if (window.getComputedStyle(current).getPropertyValue('display').toLowerCase() === 'none') {
167
- return false;
168
- }
169
- current = current.parentElement;
170
- } while (current);
171
- return true;
172
- }
173
- }
174
- exports.mintSelectors = mintSelectors;
175
- _a = mintSelectors;
176
- /**
177
- * The library name that will be added as a prefix
178
- */
179
- mintSelectors.lib = 'mint';
180
- /**
181
- * The prefix built from the library name
182
- */
183
- mintSelectors.pre = `${_a.lib}-`;
184
- /**
185
- * CSS-selector for disabled elements
186
- */
187
- mintSelectors.disabled = '[disabled]';
188
- /**
189
- * CSS-selector for elements with an aria-controls attribute
190
- */
191
- mintSelectors.hasControls = '[aria-controls]';
192
- /**
193
- * CSS-selector for elements with an aria-expanded attribute
194
- */
195
- mintSelectors.hasExpanded = '[aria-expanded]';
196
- /**
197
- * CSS-selector for elements with an href attribute
198
- */
199
- mintSelectors.hasLink = '[href]';
200
- /**
201
- * CSS-selector for elements with a routerLink attribute
202
- */
203
- mintSelectors.hasRouterLink = '[routerLink]';
204
- /**
205
- * CSS-selector for elements with an id attribute
206
- */
207
- mintSelectors.hasId = '[id]';
208
- /**
209
- * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)
210
- */
211
- mintSelectors.notTabbable = '[tabindex^="-"]';
212
- /**
213
- * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)
214
- */
215
- mintSelectors.tabbable = `[tabindex]${_a.neg(_a.notTabbable)}`;
216
- /**
217
- * CSS-selector for elements that can receive focus
218
- */
219
- mintSelectors.focusable = `input${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
220
- select${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
221
- textarea${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
222
- button${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
223
- object${_a.neg(_a.disabled)}${_a.neg(_a.notTabbable)},
224
- a${_a.hasLink}, a${_a.hasRouterLink},
225
- area${_a.hasLink},
226
- ${_a.tabbable}`.replace(/\s/g, '');
227
- /**
228
- * CSS-selector for submenu buttons
229
- */
230
- mintSelectors.subMenuButtons = `button${_a.hasControls}`;
231
- /**
232
- * CSS-selector for submenus
233
- */
234
- mintSelectors.subMenu = `${_a.subMenuButtons} + ul${_a.hasId}`;
235
- /**
236
- * Frequently-used ids
237
- */
238
- mintSelectors.ids = {
239
- header: _a.prefix('header'),
240
- logo: _a.prefix('logo'),
241
- wrapper: _a.prefix('wrapper'),
242
- mainContent: _a.prefix('main-content')
243
- };
244
- /**
245
- * Classes
246
- */
247
- mintSelectors.classes = {
248
- sides: {
249
- top: _a.prefix('top'),
250
- right: _a.prefix('right'),
251
- bottom: _a.prefix('bottom'),
252
- left: _a.prefix('left')
253
- },
254
- srOnly: _a.prefix('sr-only'),
255
- js: _a.prefix('js'),
256
- ready: _a.prefix('ready'),
257
- fixed: _a.prefix('fixed'),
258
- open: _a.prefix('open')
259
- };
260
- exports["default"] = mintSelectors;
261
-
262
- /***/ }),
263
-
264
41
  /***/ "./src/ts/imports/util/settings.ts":
265
42
  /*!*****************************************!*\
266
43
  !*** ./src/ts/imports/util/settings.ts ***!
267
44
  \*****************************************/
268
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
45
+ /***/ ((__unused_webpack_module, exports) => {
269
46
 
270
47
 
271
48
 
@@ -274,11 +51,6 @@ Object.defineProperty(exports, "__esModule", ({
274
51
  value: true
275
52
  }));
276
53
  exports.mintSettings = void 0;
277
- /**
278
- * Imports
279
- */
280
- const enum_1 = __webpack_require__(/*! ../enum */ "./src/ts/imports/enum.ts");
281
- const selectors_1 = __webpack_require__(/*! ./selectors */ "./src/ts/imports/util/selectors.ts");
282
54
  /**
283
55
  * Settings management
284
56
  * @public
@@ -306,11 +78,10 @@ class mintSettings {
306
78
  this.delay = Object.assign(Object.assign({}, this.delay), settings.delay);
307
79
  }
308
80
  }
309
- if (typeof settings.from === 'number') {
310
- this.setFrom(settings.from);
311
- }
312
- if (typeof settings.fixed === 'boolean') {
313
- this.setFixed(settings.fixed);
81
+ if (settings.break && Object.keys(settings.break).length) {
82
+ if (Object.values(settings.break).reduce((prev, next) => prev && typeof next === 'number', true)) {
83
+ this.break = Object.assign(Object.assign({}, this.break), settings.break);
84
+ }
314
85
  }
315
86
  }
316
87
  /**
@@ -326,32 +97,6 @@ class mintSettings {
326
97
  slow: this.delayBase + this.delayStep * 5
327
98
  };
328
99
  }
329
- /**
330
- * Updates the direction the navbar enters from
331
- */
332
- static setFrom(from) {
333
- if (this.from !== from) {
334
- this.from = from;
335
- let header = document.getElementById(selectors_1.mintSelectors.getId('header'));
336
- header === null || header === void 0 ? void 0 : header.classList.remove(...Object.values(selectors_1.mintSelectors.classes.sides));
337
- header === null || header === void 0 ? void 0 : header.classList.add(selectors_1.mintSelectors.getClass(enum_1.mintSide[this.from].toLowerCase(), 'sides'));
338
- }
339
- }
340
- /**
341
- * Updates whether or not the navbar is fixed
342
- */
343
- static setFixed(fixed) {
344
- if (this.fixed !== fixed) {
345
- this.fixed = fixed;
346
- let header = document.getElementById(selectors_1.mintSelectors.getId('header')),
347
- fixedClass = selectors_1.mintSelectors.getClass('fixed');
348
- if (this.fixed) {
349
- header === null || header === void 0 ? void 0 : header.classList.add(fixedClass);
350
- } else {
351
- header === null || header === void 0 ? void 0 : header.classList.remove(fixedClass);
352
- }
353
- }
354
- }
355
100
  }
356
101
  exports.mintSettings = mintSettings;
357
102
  _a = mintSettings;
@@ -374,6 +119,17 @@ mintSettings.delay = {
374
119
  medSlow: _a.delayBase + _a.delayStep * 4,
375
120
  slow: _a.delayBase + _a.delayStep * 5
376
121
  };
122
+ /**
123
+ * Breakpoint variables
124
+ */
125
+ mintSettings.break = {
126
+ z: 0,
127
+ xs: 480,
128
+ sm: 768,
129
+ md: 1024,
130
+ lg: 1200,
131
+ xl: 1440
132
+ };
377
133
  ;
378
134
  exports["default"] = mintSettings;
379
135
 
@@ -1 +1 @@
1
- {"version":3,"file":"js/util.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;ACVA;;;AAGC,IAAYA,QAKZ;AALA,WAAYA,QAAQ;EACjBA,QAAA,CAAAA,QAAA,oBAAG;EACHA,QAA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,OAAOA,CAAEZ,IAAY;IACxB,OAAO,IAAI,KAAKA,IAAI,CAACa,KAAK,CAAC,gcAAgc,CAAC;EAChe;;AApMJ/J,gBAAA,GAAAoG,QAAA;AAsMApG,kBAAA,GAAeoG,QAAQ;;;;;;UChNvB;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://mint/webpack/universalModuleDefinition","webpack://mint/./src/ts/imports/enum.ts","webpack://mint/./src/ts/imports/util/selectors.ts","webpack://mint/./src/ts/imports/util/settings.ts","webpack://mint/./src/ts/util.ts","webpack://mint/webpack/bootstrap","webpack://mint/webpack/before-startup","webpack://mint/webpack/startup","webpack://mint/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mintUtil\"] = factory();\n\telse\n\t\troot[\"mintUtil\"] = factory();\n})(this, () => {\nreturn ","/**\n * Side Enum\n */\n export enum mintSide {\n Top,\n Right,\n Bottom,\n Left\n};\n","/**\n * CSS-selector helpers\n * @public\n */\nexport abstract class mintSelectors {\n /**\n * The library name that will be added as a prefix\n */\n static lib: string = 'mint';\n\n /**\n * The prefix built from the library name\n */\n static pre: string = `${this.lib}-`;\n\n /**\n * CSS-selector for disabled elements\n */\n static disabled: string = '[disabled]';\n\n /**\n * CSS-selector for elements with an aria-controls attribute\n */\n static hasControls: string = '[aria-controls]';\n\n /**\n * CSS-selector for elements with an aria-expanded attribute\n */\n static hasExpanded: string = '[aria-expanded]';\n\n /**\n * CSS-selector for elements with an href attribute\n */\n static hasLink: string = '[href]';\n\n /**\n * CSS-selector for elements with a routerLink attribute\n */\n static hasRouterLink: string = '[routerLink]';\n\n /**\n * CSS-selector for elements with an id attribute\n */\n static hasId: string = '[id]';\n\n /**\n * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)\n */\n static notTabbable: string = '[tabindex^=\"-\"]';\n\n /**\n * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)\n */\n static tabbable: string = `[tabindex]${this.neg(this.notTabbable)}`;\n\n /**\n * CSS-selector for elements that can receive focus\n */\n static focusable: string = `input${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n select${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n textarea${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n button${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n object${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n a${this.hasLink}, a${this.hasRouterLink},\n area${this.hasLink},\n ${this.tabbable}`.replace(/\\s/g, '');\n\n /**\n * CSS-selector for submenu buttons\n */\n static subMenuButtons: string = `button${this.hasControls}`;\n\n /**\n * CSS-selector for submenus\n */\n static subMenu: string = `${this.subMenuButtons} + ul${this.hasId}`;\n\n /**\n * Frequently-used ids\n */\n static ids: {[key: string]: string | {[key: string]: string}} = {\n header: this.prefix('header'),\n logo: this.prefix('logo'),\n wrapper: this.prefix('wrapper'),\n mainContent: this.prefix('main-content')\n };\n\n /**\n * Classes\n */\n static classes: {[key: string]: string | {[key: string]: string}} = {\n sides: {\n top: this.prefix('top'),\n right: this.prefix('right'),\n bottom: this.prefix('bottom'),\n left: this.prefix('left')\n },\n srOnly: this.prefix('sr-only'),\n js: this.prefix('js'),\n ready: this.prefix('ready'),\n fixed: this.prefix('fixed'),\n open: this.prefix('open')\n };\n\n /**\n * Adds the library prefix to the beginning of the provided string\n * @param base - the string to be prefixed\n * @returns - the provided string prefixed with the library name\n */\n static prefix (base: string) : string {\n base = base.toLowerCase();\n return base.startsWith(this.pre) ? base : `${this.pre}${base}`;\n }\n\n /**\n * Adds two dashes to the beginning of the provided string\n * @param base - the string to be prefixed\n * @returns - the provided string prefixed with two dashes\n */\n static cssPrefix (base: string) : string {\n return `--${this.prefix(base.replace(/^-+/, ''))}`;\n }\n\n /**\n * Turns the provided string into a CSS variable call\n * @param base - the name of the CSS variable to call\n * @returns - the CSS variable call for the provided string\n */\n static cssVar (base: string) : string {\n return `var(${this.cssPrefix(base)})`;\n }\n\n /**\n * Negates the provided CSS selector\n * @param base - the CSS selector to negate\n * @returns - the negated CSS selector\n */\n static neg (base: string) : string {\n return `:not(${base})`;\n }\n\n /**\n * Generates a class CSS selector\n * @param base - the name of the class to generate\n * @returns - the generated CSS selector\n */\n static class (base: string) : string {\n return `.${this.prefix(base)}`;\n }\n\n /**\n * Generates an id CSS selector\n * @param base - the name of the id to generate\n * @returns - the generated CSS selector\n */\n static id (base: string) : string {\n return `#${this.prefix(base)}`;\n }\n\n /**\n * Generates an aria-controls CSS selector\n * @param id - the id of the controlled element\n * @returns - the generated CSS selector\n */\n static controls (id?: string | null) : string {\n return id ? `[aria-controls=\"${this.prefix(id)}\"]` : this.hasControls;\n }\n\n /**\n * Generates an aria-expanded CSS selector\n * @param bool - whether the element is expanded or not\n * @returns - the generated CSS selector\n */\n static expanded (bool?: boolean | null) : string {\n return typeof bool === 'boolean' ? `[aria-expanded=\"${bool}\"]` : this.hasExpanded;\n }\n\n /**\n * Returns the id of the requested element\n */\n static getId (id?: string) : string {\n return this.ids[id ?? -1] as string ?? '';\n }\n\n /**\n * Returns the class of the requested element\n */\n static getClass (className?: string, classGroup?: string) : string {\n if (classGroup) {\n let group: {[key: string]: string} = this.classes[classGroup] as {[key: string]: string};\n return group[className ?? -1] ?? '';\n }\n return this.classes[className ?? -1] as string ?? '';\n }\n\n /**\n * Returns a NodeList of HTMLElements within the given element that are focusable\n * @param el - the element whose focusable children will be returned\n * @returns - the elements within the given element that are focusable\n */\n static getFocusables (el?: HTMLElement) : HTMLElement[] {\n let focusables: HTMLElement[];\n if (el) {\n focusables = Array.from(el.querySelectorAll<HTMLElement>(this.focusable));\n } else {\n focusables = Array.from(document.querySelectorAll<HTMLElement>(this.focusable));\n }\n return focusables.filter((el: HTMLElement) => this.isFocusable(el));\n }\n\n /**\n * Returns true if an element is focusable and false if not,\n * based on styles (i.e. a parent has display: none;)\n * NOTE: Still need to determine what other styles may make an element un-focusable\n * @param el - the element\n * @returns - true if the element is focusable; false if not\n */\n static isFocusable (el: HTMLElement) : boolean {\n let current: HTMLElement | null = el;\n\n do {\n if (window.getComputedStyle(current).getPropertyValue('display').toLowerCase() === 'none') {\n return false;\n }\n current = current.parentElement;\n } while (current);\n return true;\n }\n}\nexport default mintSelectors;\n","/**\n * Imports\n */\nimport { mintSide } from '../enum';\nimport { mintSelectors } from './selectors';\n\n/**\n * Settings management\n * @public\n */\nexport abstract class mintSettings {\n /**\n * Value added to all delay variables\n */\n static delayBase: number = 0;\n\n /**\n * Value multiplied by delay variable index\n */\n static delayStep: number = 100;\n\n /**\n * Delay variables\n */\n static delay: {[key: string]: number} = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n\n /**\n * Side of the window the mobile navbar enters from\n */\n static from?: mintSide;\n\n /**\n * Whether the navbar is fixed or not\n */\n static fixed?: boolean;\n\n /**\n * Update the provided settings variables\n * @param settings - Object of settings variables to update\n */\n static set (settings: {[key: string]: any}) : void {\n let newDelay: boolean = false;\n if (typeof settings.delayBase === 'number') {\n this.delayBase = settings.delayBase;\n newDelay = true;\n }\n if (typeof settings.delayStep === 'number') {\n this.delayStep = settings.delayStep;\n newDelay = true;\n }\n if (newDelay) {\n this.setDelay();\n }\n\n if (settings.delay && Object.keys(settings.delay).length) {\n if (Object.values(settings.delay).reduce((prev: any, next: any) => prev && typeof next === 'number', true)) {\n this.delay = {...this.delay, ...settings.delay};\n }\n }\n\n if (typeof settings.from === 'number') {\n this.setFrom(settings.from);\n }\n\n if (typeof settings.fixed === 'boolean') {\n this.setFixed(settings.fixed);\n }\n }\n\n /**\n * Updates the delay variables based on `this.delayBase` and `this.delayStep`\n */\n protected static setDelay () : void {\n this.delay = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n }\n\n /**\n * Updates the direction the navbar enters from\n */\n protected static setFrom (from: mintSide) : void {\n if (this.from !== from) {\n this.from = from;\n let header: HTMLElement | null = document.getElementById(mintSelectors.getId('header'));\n header?.classList.remove(...Object.values(mintSelectors.classes.sides));\n header?.classList.add(mintSelectors.getClass(mintSide[this.from].toLowerCase(), 'sides'));\n }\n }\n\n /**\n * Updates whether or not the navbar is fixed\n */\n protected static setFixed (fixed: boolean) : void {\n if (this.fixed !== fixed) {\n this.fixed = fixed;\n let header: HTMLElement | null = document.getElementById(mintSelectors.getId('header')),\n fixedClass: string = mintSelectors.getClass('fixed');\n if (this.fixed) {\n header?.classList.add(fixedClass);\n } else {\n header?.classList.remove(fixedClass);\n }\n }\n }\n};\n\nexport default mintSettings;\n","/**\n * Imports\n */\nimport { mintSide } from './imports/enum';\nimport mintSettings from './imports/util/settings';\n\n/**\n * Utility functions\n * @public\n */\nexport abstract class mintUtil {\n /**\n * Returns the width of the window, including fractional pixels\n * @returns the width of the window\n */\n static windowWidth () : number {\n const decimal: number = document.body.getBoundingClientRect().width % 1;\n return window.innerWidth + decimal;\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function\n */\n static debounce (func: Function, wait: number = mintSettings.delay.default) : Function {\n let timer: number;\n return function (e: any) {\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(func, wait, e);\n }\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function as an EventListener\n */\n static debounceEvent (func: Function, wait: number = mintSettings.delay.default) : EventListener {\n return mintUtil.debounce(func, wait) as EventListener;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function\n */\n static throttle (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : Function {\n let context: any, args: any, result: any,\n timeout: number, previous: number = 0,\n later: Function = function () {\n previous = options?.leading === false ? 0 : new Date().getTime();\n timeout = 0;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n },\n throttled: Function = function (this: any): any {\n let now: number = new Date().getTime();\n if (!previous && options?.leading === false) {\n previous = now;\n }\n let remaining: number = wait - now + previous;\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = 0;\n }\n previous = now;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n } else if (!timeout && options?.trailing !== false) {\n timeout = window.setTimeout(later, remaining);\n }\n return result;\n };\n\n return throttled;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function as an EventListener\n */\n static throttleEvent (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : EventListener {\n return mintUtil.throttle(func, wait, options) as EventListener;\n }\n\n /**\n * Sets the element's height to its `innerHeight`, then to `auto` after a delay\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static show (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n el.style.display = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${el.scrollHeight}px`;\n } else {\n el.style.width = `${el.scrollWidth}px`;\n }\n \n setTimeout(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = 'auto';\n } else {\n el.style.width = 'auto';\n }\n }, delay);\n });\n }\n }\n\n /**\n * Sets the element's height to 0\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static hide (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n let height = el.scrollHeight,\n width = el.scrollWidth,\n transition = el.style.transition;\n el.style.transition = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${height}px`;\n } else {\n el.style.width = `${width}px`;\n }\n \n el.style.transition = transition;\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = '0';\n } else {\n el.style.width = '0';\n }\n });\n });\n setTimeout(() => {\n el.style.display = 'none';\n }, delay);\n }\n }\n\n /**\n * Copies the provided text to the clipboard\n * @param text - the text to copy\n * @returns - true if the text was successfully copied to the clipboard; else false\n */\n static copyText (text: string) : boolean {\n let textArea: HTMLTextAreaElement = document.createElement('textarea');\n\n if (!text || !textArea) {\n return false;\n }\n\n textArea.value = text;\n textArea.style.cssText = `\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n `;\n\n document.body.appendChild(textArea);\n textArea.select();\n textArea.setSelectionRange(0, 99999);\n navigator.clipboard.writeText(textArea.value);\n document.body.removeChild(textArea);\n\n return true;\n }\n\n /**\n * Tests the validity of an email address\n * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}\n * @param text - the string to test\n * @returns - true if the given string is an email address; false if not\n */\n static isEmail (text: string) : boolean {\n return null !== text.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])/);\n }\n}\nexport default mintUtil;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./src/ts/util.ts\");\n",""],"names":["mintSide","exports","mintSelectors","prefix","base","toLowerCase","startsWith","pre","cssPrefix","replace","cssVar","neg","class","id","controls","hasControls","expanded","bool","hasExpanded","getId","_b","ids","getClass","className","classGroup","group","classes","_c","getFocusables","el","focusables","Array","from","querySelectorAll","focusable","document","filter","isFocusable","current","window","getComputedStyle","getPropertyValue","parentElement","lib","_a","disabled","hasLink","hasRouterLink","hasId","notTabbable","tabbable","subMenuButtons","subMenu","header","logo","wrapper","mainContent","sides","top","right","bottom","left","srOnly","js","ready","fixed","open","default","enum_1","require","selectors_1","mintSettings","set","settings","newDelay","delayBase","delayStep","setDelay","delay","Object","keys","length","values","reduce","prev","next","assign","setFrom","setFixed","instant","fast","medFast","medSlow","slow","getElementById","classList","remove","add","fixedClass","settings_1","__importDefault","mintUtil","windowWidth","decimal","body","getBoundingClientRect","width","innerWidth","debounce","func","wait","arguments","undefined","timer","e","clearTimeout","setTimeout","debounceEvent","throttle","options","context","args","result","timeout","previous","later","leading","Date","getTime","apply","throttled","now","remaining","trailing","throttleEvent","show","Top","style","display","requestAnimationFrame","Bottom","height","scrollHeight","scrollWidth","hide","transition","copyText","text","textArea","createElement","value","cssText","appendChild","select","setSelectionRange","navigator","clipboard","writeText","removeChild","isEmail","match"],"sourceRoot":""}
1
+ {"version":3,"file":"js/util.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;ACVA;;;AAGC,IAAYA,QAKZ;AALA,WAAYA,QAAQ;EACjBA,QAAA,CAAAA,QAAA,oBAAG;EACHA,QAAA,CAAAA,QAAA,wBAAK;EACLA,QAAA,CAAAA,QAAA,0BAAM;EACNA,QAAA,CAAAA,QAAA,sBAAI;AACR,CAAC,EALYA,QAAQ,GAARC,OAAA,CAAAD,QAAQ,KAARC,gBAAQ;AAKpB;;;;;;;;;;;;;;;;;ACRD;;;;AAIA,MAAsBC,YAAY;EAmC9B;;;;EAIA,OAAOC,GAAGA,CAAEC,QAA8B;IACtC,IAAIC,QAAQ,GAAY,KAAK;IAC7B,IAAI,OAAOD,QAAQ,CAACE,SAAS,KAAK,QAAQ,EAAE;MACxC,IAAI,CAACA,SAAS,GAAGF,QAAQ,CAACE,SAAS;MACnCD,QAAQ,GAAG,IAAI;;IAEnB,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;;;UEtBA;UACA;UACA;UACA","sources":["webpack://mint/webpack/universalModuleDefinition","webpack://mint/./src/ts/imports/enum.ts","webpack://mint/./src/ts/imports/util/settings.ts","webpack://mint/./src/ts/util.ts","webpack://mint/webpack/bootstrap","webpack://mint/webpack/before-startup","webpack://mint/webpack/startup","webpack://mint/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mintUtil\"] = factory();\n\telse\n\t\troot[\"mintUtil\"] = factory();\n})(this, () => {\nreturn ","/**\n * Side Enum\n */\n export enum mintSide {\n Top,\n Right,\n Bottom,\n Left\n};\n","/**\n * Settings management\n * @public\n */\nexport abstract class mintSettings {\n /**\n * Value added to all delay variables\n */\n static delayBase: number = 0;\n\n /**\n * Value multiplied by delay variable index\n */\n static delayStep: number = 100;\n\n /**\n * Delay variables\n */\n static delay: {[key: string]: number} = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n\n /**\n * Breakpoint variables\n */\n static break: {[key: string]: number} = {\n z: 0,\n xs: 480,\n sm: 768,\n md: 1024,\n lg: 1200,\n xl: 1440\n };\n\n /**\n * Update the provided settings variables\n * @param settings - Object of settings variables to update\n */\n static set (settings: {[key: string]: any}) : void {\n let newDelay: boolean = false;\n if (typeof settings.delayBase === 'number') {\n this.delayBase = settings.delayBase;\n newDelay = true;\n }\n if (typeof settings.delayStep === 'number') {\n this.delayStep = settings.delayStep;\n newDelay = true;\n }\n if (newDelay) {\n this.setDelay();\n }\n\n if (settings.delay && Object.keys(settings.delay).length) {\n if (Object.values(settings.delay).reduce((prev: any, next: any) => prev && typeof next === 'number', true)) {\n this.delay = {...this.delay, ...settings.delay};\n }\n }\n\n if (settings.break && Object.keys(settings.break).length) {\n if (Object.values(settings.break).reduce((prev: any, next: any) => prev && typeof next === 'number', true)) {\n this.break = {...this.break, ...settings.break};\n }\n }\n }\n\n /**\n * Updates the delay variables based on `this.delayBase` and `this.delayStep`\n */\n protected static setDelay () : void {\n this.delay = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n }\n};\n\nexport default mintSettings;\n","/**\n * Imports\n */\nimport { mintSide } from './imports/enum';\nimport mintSettings from './imports/util/settings';\n\n/**\n * Utility functions\n * @public\n */\nexport abstract class mintUtil {\n /**\n * Returns the width of the window, including fractional pixels\n * @returns the width of the window\n */\n static windowWidth () : number {\n const decimal: number = document.body.getBoundingClientRect().width % 1;\n return window.innerWidth + decimal;\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function\n */\n static debounce (func: Function, wait: number = mintSettings.delay.default) : Function {\n let timer: number;\n return function (e: any) {\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(func, wait, e);\n }\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function as an EventListener\n */\n static debounceEvent (func: Function, wait: number = mintSettings.delay.default) : EventListener {\n return mintUtil.debounce(func, wait) as EventListener;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function\n */\n static throttle (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : Function {\n let context: any, args: any, result: any,\n timeout: number, previous: number = 0,\n later: Function = function () {\n previous = options?.leading === false ? 0 : new Date().getTime();\n timeout = 0;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n },\n throttled: Function = function (this: any): any {\n let now: number = new Date().getTime();\n if (!previous && options?.leading === false) {\n previous = now;\n }\n let remaining: number = wait - now + previous;\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = 0;\n }\n previous = now;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n } else if (!timeout && options?.trailing !== false) {\n timeout = window.setTimeout(later, remaining);\n }\n return result;\n };\n\n return throttled;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function as an EventListener\n */\n static throttleEvent (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : EventListener {\n return mintUtil.throttle(func, wait, options) as EventListener;\n }\n\n /**\n * Sets the element's height to its `innerHeight`, then to `auto` after a delay\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static show (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n el.style.display = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${el.scrollHeight}px`;\n } else {\n el.style.width = `${el.scrollWidth}px`;\n }\n \n setTimeout(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = 'auto';\n } else {\n el.style.width = 'auto';\n }\n }, delay);\n });\n }\n }\n\n /**\n * Sets the element's height to 0\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static hide (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n let height = el.scrollHeight,\n width = el.scrollWidth,\n transition = el.style.transition;\n el.style.transition = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${height}px`;\n } else {\n el.style.width = `${width}px`;\n }\n \n el.style.transition = transition;\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = '0';\n } else {\n el.style.width = '0';\n }\n });\n });\n setTimeout(() => {\n el.style.display = 'none';\n }, delay);\n }\n }\n\n /**\n * Copies the provided text to the clipboard\n * @param text - the text to copy\n * @returns - true if the text was successfully copied to the clipboard; else false\n */\n static copyText (text: string) : boolean {\n let textArea: HTMLTextAreaElement = document.createElement('textarea');\n\n if (!text || !textArea) {\n return false;\n }\n\n textArea.value = text;\n textArea.style.cssText = `\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n `;\n\n document.body.appendChild(textArea);\n textArea.select();\n textArea.setSelectionRange(0, 99999);\n navigator.clipboard.writeText(textArea.value);\n document.body.removeChild(textArea);\n\n return true;\n }\n\n /**\n * Tests the validity of an email address\n * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}\n * @param text - the string to test\n * @returns - true if the given string is an email address; false if not\n */\n static isEmail (text: string) : boolean {\n return null !== text.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])/);\n }\n}\nexport default mintUtil;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./src/ts/util.ts\");\n",""],"names":["mintSide","exports","mintSettings","set","settings","newDelay","delayBase","delayStep","setDelay","delay","Object","keys","length","values","reduce","prev","next","assign","break","instant","fast","medFast","default","medSlow","slow","_a","z","xs","sm","md","lg","xl","enum_1","require","settings_1","__importDefault","mintUtil","windowWidth","decimal","document","body","getBoundingClientRect","width","window","innerWidth","debounce","func","wait","arguments","undefined","timer","e","clearTimeout","setTimeout","debounceEvent","throttle","options","context","args","result","timeout","previous","later","leading","Date","getTime","apply","throttled","now","remaining","trailing","throttleEvent","show","el","from","Top","style","display","requestAnimationFrame","Bottom","height","scrollHeight","scrollWidth","hide","transition","copyText","text","textArea","createElement","value","cssText","appendChild","select","setSelectionRange","navigator","clipboard","writeText","removeChild","isEmail","match"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mintUtil=t():e.mintUtil=t()}(this,(()=>(()=>{"use strict";var e={64:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSide=void 0,(i=t.mintSide||(t.mintSide={}))[i.Top=0]="Top",i[i.Right=1]="Right",i[i.Bottom=2]="Bottom",i[i.Left=3]="Left"},378:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSelectors=void 0;class a{static prefix(e){return(e=e.toLowerCase()).startsWith(this.pre)?e:`${this.pre}${e}`}static cssPrefix(e){return`--${this.prefix(e.replace(/^-+/,""))}`}static cssVar(e){return`var(${this.cssPrefix(e)})`}static neg(e){return`:not(${e})`}static class(e){return`.${this.prefix(e)}`}static id(e){return`#${this.prefix(e)}`}static controls(e){return e?`[aria-controls="${this.prefix(e)}"]`:this.hasControls}static expanded(e){return"boolean"==typeof e?`[aria-expanded="${e}"]`:this.hasExpanded}static getId(e){var t;return null!==(t=this.ids[null!=e?e:-1])&&void 0!==t?t:""}static getClass(e,t){var i,a;return t?null!==(i=this.classes[t][null!=e?e:-1])&&void 0!==i?i:"":null!==(a=this.classes[null!=e?e:-1])&&void 0!==a?a:""}static getFocusables(e){let t;return t=e?Array.from(e.querySelectorAll(this.focusable)):Array.from(document.querySelectorAll(this.focusable)),t.filter((e=>this.isFocusable(e)))}static isFocusable(e){let t=e;do{if("none"===window.getComputedStyle(t).getPropertyValue("display").toLowerCase())return!1;t=t.parentElement}while(t);return!0}}t.mintSelectors=a,i=a,a.lib="mint",a.pre=`${i.lib}-`,a.disabled="[disabled]",a.hasControls="[aria-controls]",a.hasExpanded="[aria-expanded]",a.hasLink="[href]",a.hasRouterLink="[routerLink]",a.hasId="[id]",a.notTabbable='[tabindex^="-"]',a.tabbable=`[tabindex]${i.neg(i.notTabbable)}`,a.focusable=`input${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n select${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n textarea${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n button${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n object${i.neg(i.disabled)}${i.neg(i.notTabbable)},\n a${i.hasLink}, a${i.hasRouterLink},\n area${i.hasLink},\n ${i.tabbable}`.replace(/\s/g,""),a.subMenuButtons=`button${i.hasControls}`,a.subMenu=`${i.subMenuButtons} + ul${i.hasId}`,a.ids={header:i.prefix("header"),logo:i.prefix("logo"),wrapper:i.prefix("wrapper"),mainContent:i.prefix("main-content")},a.classes={sides:{top:i.prefix("top"),right:i.prefix("right"),bottom:i.prefix("bottom"),left:i.prefix("left")},srOnly:i.prefix("sr-only"),js:i.prefix("js"),ready:i.prefix("ready"),fixed:i.prefix("fixed"),open:i.prefix("open")},t.default=a},110:(e,t,i)=>{var a;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSettings=void 0;const s=i(64),l=i(378);class n{static set(e){let t=!1;"number"==typeof e.delayBase&&(this.delayBase=e.delayBase,t=!0),"number"==typeof e.delayStep&&(this.delayStep=e.delayStep,t=!0),t&&this.setDelay(),e.delay&&Object.keys(e.delay).length&&Object.values(e.delay).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.delay=Object.assign(Object.assign({},this.delay),e.delay)),"number"==typeof e.from&&this.setFrom(e.from),"boolean"==typeof e.fixed&&this.setFixed(e.fixed)}static setDelay(){this.delay={instant:this.delayBase+0*this.delayStep,fast:this.delayBase+1*this.delayStep,medFast:this.delayBase+2*this.delayStep,default:this.delayBase+3*this.delayStep,medSlow:this.delayBase+4*this.delayStep,slow:this.delayBase+5*this.delayStep}}static setFrom(e){if(this.from!==e){this.from=e;let t=document.getElementById(l.mintSelectors.getId("header"));null==t||t.classList.remove(...Object.values(l.mintSelectors.classes.sides)),null==t||t.classList.add(l.mintSelectors.getClass(s.mintSide[this.from].toLowerCase(),"sides"))}}static setFixed(e){if(this.fixed!==e){this.fixed=e;let t=document.getElementById(l.mintSelectors.getId("header")),i=l.mintSelectors.getClass("fixed");this.fixed?null==t||t.classList.add(i):null==t||t.classList.remove(i)}}}t.mintSettings=n,a=n,n.delayBase=0,n.delayStep=100,n.delay={instant:a.delayBase+0*a.delayStep,fast:a.delayBase+1*a.delayStep,medFast:a.delayBase+2*a.delayStep,default:a.delayBase+3*a.delayStep,medSlow:a.delayBase+4*a.delayStep,slow:a.delayBase+5*a.delayStep},t.default=n},427:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintUtil=void 0;const s=i(64),l=a(i(110));class n{static windowWidth(){const e=document.body.getBoundingClientRect().width%1;return window.innerWidth+e}static debounce(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.delay.default;return function(a){t&&clearTimeout(t),t=setTimeout(e,i,a)}}static debounceEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.delay.default;return n.debounce(e,t)}static throttle(e){let t,i,a,s,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.delay.default,o=arguments.length>2?arguments[2]:void 0,d=0,r=function(){d=!1===(null==o?void 0:o.leading)?0:(new Date).getTime(),s=0,a=e.apply(t,i),s||(t=i=null)};return function(){let l=(new Date).getTime();d||!1!==(null==o?void 0:o.leading)||(d=l);let u=n-l+d;return t=this,i=arguments,u<=0||u>n?(s&&(clearTimeout(s),s=0),d=l,a=e.apply(t,i),s||(t=i=null)):s||!1===(null==o?void 0:o.trailing)||(s=window.setTimeout(r,u)),a}}static throttleEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.delay.default,i=arguments.length>2?arguments[2]:void 0;return n.throttle(e,t,i)}static show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;e&&(e.style.display="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${e.scrollHeight}px`:e.style.width=`${e.scrollWidth}px`,setTimeout((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="auto":e.style.width="auto"}),t)})))}static hide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.mintSide.Top;if(e){let a=e.scrollHeight,l=e.scrollWidth,n=e.style.transition;e.style.transition="",requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height=`${a}px`:e.style.width=`${l}px`,e.style.transition=n,requestAnimationFrame((()=>{i===s.mintSide.Top||i===s.mintSide.Bottom?e.style.height="0":e.style.width="0"}))})),setTimeout((()=>{e.style.display="none"}),t)}}static copyText(e){let t=document.createElement("textarea");return!(!e||!t||(t.value=e,t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n ",document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),0))}static isEmail(e){return null!==e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)}}t.mintUtil=n,t.default=n}},t={},i=function i(a){var s=t[a];if(void 0!==s)return s.exports;var l=t[a]={exports:{}};return e[a].call(l.exports,l,l.exports,i),l.exports}(427);return i.default})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mintUtil=t():e.mintUtil=t()}(this,(()=>(()=>{"use strict";var e={64:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSide=void 0,(i=t.mintSide||(t.mintSide={}))[i.Top=0]="Top",i[i.Right=1]="Right",i[i.Bottom=2]="Bottom",i[i.Left=3]="Left"},110:(e,t)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.mintSettings=void 0;class a{static set(e){let t=!1;"number"==typeof e.delayBase&&(this.delayBase=e.delayBase,t=!0),"number"==typeof e.delayStep&&(this.delayStep=e.delayStep,t=!0),t&&this.setDelay(),e.delay&&Object.keys(e.delay).length&&Object.values(e.delay).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.delay=Object.assign(Object.assign({},this.delay),e.delay)),e.break&&Object.keys(e.break).length&&Object.values(e.break).reduce(((e,t)=>e&&"number"==typeof t),!0)&&(this.break=Object.assign(Object.assign({},this.break),e.break))}static setDelay(){this.delay={instant:this.delayBase+0*this.delayStep,fast:this.delayBase+1*this.delayStep,medFast:this.delayBase+2*this.delayStep,default:this.delayBase+3*this.delayStep,medSlow:this.delayBase+4*this.delayStep,slow:this.delayBase+5*this.delayStep}}}t.mintSettings=a,i=a,a.delayBase=0,a.delayStep=100,a.delay={instant:i.delayBase+0*i.delayStep,fast:i.delayBase+1*i.delayStep,medFast:i.delayBase+2*i.delayStep,default:i.delayBase+3*i.delayStep,medSlow:i.delayBase+4*i.delayStep,slow:i.delayBase+5*i.delayStep},a.break={z:0,xs:480,sm:768,md:1024,lg:1200,xl:1440},t.default=a},427:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintUtil=void 0;const l=i(64),d=a(i(110));class n{static windowWidth(){const e=document.body.getBoundingClientRect().width%1;return window.innerWidth+e}static debounce(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.delay.default;return function(a){t&&clearTimeout(t),t=setTimeout(e,i,a)}}static debounceEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.delay.default;return n.debounce(e,t)}static throttle(e){let t,i,a,l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.delay.default,s=arguments.length>2?arguments[2]:void 0,o=0,r=function(){o=!1===(null==s?void 0:s.leading)?0:(new Date).getTime(),l=0,a=e.apply(t,i),l||(t=i=null)};return function(){let d=(new Date).getTime();o||!1!==(null==s?void 0:s.leading)||(o=d);let u=n-d+o;return t=this,i=arguments,u<=0||u>n?(l&&(clearTimeout(l),l=0),o=d,a=e.apply(t,i),l||(t=i=null)):l||!1===(null==s?void 0:s.trailing)||(l=window.setTimeout(r,u)),a}}static throttleEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.delay.default,i=arguments.length>2?arguments[2]:void 0;return n.throttle(e,t,i)}static show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.mintSide.Top;e&&(e.style.display="",requestAnimationFrame((()=>{i===l.mintSide.Top||i===l.mintSide.Bottom?e.style.height=`${e.scrollHeight}px`:e.style.width=`${e.scrollWidth}px`,setTimeout((()=>{i===l.mintSide.Top||i===l.mintSide.Bottom?e.style.height="auto":e.style.width="auto"}),t)})))}static hide(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.delay.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.mintSide.Top;if(e){let a=e.scrollHeight,d=e.scrollWidth,n=e.style.transition;e.style.transition="",requestAnimationFrame((()=>{i===l.mintSide.Top||i===l.mintSide.Bottom?e.style.height=`${a}px`:e.style.width=`${d}px`,e.style.transition=n,requestAnimationFrame((()=>{i===l.mintSide.Top||i===l.mintSide.Bottom?e.style.height="0":e.style.width="0"}))})),setTimeout((()=>{e.style.display="none"}),t)}}static copyText(e){let t=document.createElement("textarea");return!(!e||!t||(t.value=e,t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n ",document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),0))}static isEmail(e){return null!==e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)}}t.mintUtil=n,t.default=n}},t={},i=function i(a){var l=t[a];if(void 0!==l)return l.exports;var d=t[a]={exports:{}};return e[a].call(d.exports,d,d.exports,i),d.exports}(427);return i.default})()));
2
2
  //# sourceMappingURL=util.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js/util.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,GACpB,CATD,CASGK,MAAM,I,qCCNR,IA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ASoC,EAAA3D,SAAS4H,KAAOrG,IAASoC,EAAA3D,SAASgI,OAC3C5G,EAAGyG,MAAMI,OAAS,IAElB7G,EAAGyG,MAAM3B,MAAQ,G,GAEvB,IAENS,YAAW,KACPvF,EAAGyG,MAAMC,QAAU,MAAM,GAC1B1D,E,CAEX,CAOAlE,gBAAiBmI,GACb,IAAIC,EAAgC5G,SAAS6G,cAAc,YAE3D,SAAKF,IAASC,IAIdA,EAASE,MAAQH,EACjBC,EAAST,MAAMY,QAAU,0LASzB/G,SAASsE,KAAK0C,YAAYJ,GAC1BA,EAASK,SACTL,EAASM,kBAAkB,EAAG,OAC9BC,UAAUC,UAAUC,UAAUT,EAASE,OACvC9G,SAASsE,KAAKgD,YAAYV,GAEnB,GACX,CAQApI,eAAgBmI,GACZ,OAAO,OAASA,EAAKY,MAAM,icAC/B,EApMJtJ,EAAAA,SAAAmG,EAsMAnG,EAAAA,QAAemG,C,GC/MXoD,EAA2B,CAAC,ECE5BC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqB7C,IAAjB8C,EACH,OAAOA,EAAa3J,QAGrB,IAAIC,EAASsJ,EAAyBG,GAAY,CAGjD1J,QAAS,CAAC,GAOX,OAHA4J,EAAoBF,GAAUG,KAAK5J,EAAOD,QAASC,EAAQA,EAAOD,QAASyJ,GAGpExJ,EAAOD,OACf,CCnB0ByJ,CAAoB,K","sources":["webpack://mint/webpack/universalModuleDefinition","webpack://mint/./src/ts/imports/enum.ts","webpack://mint/./src/ts/imports/util/selectors.ts","webpack://mint/./src/ts/imports/util/settings.ts","webpack://mint/./src/ts/util.ts","webpack://mint/webpack/bootstrap","webpack://mint/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mintUtil\"] = factory();\n\telse\n\t\troot[\"mintUtil\"] = factory();\n})(this, () => {\nreturn ","/**\n * Side Enum\n */\n export enum mintSide {\n Top,\n Right,\n Bottom,\n Left\n};\n","/**\n * CSS-selector helpers\n * @public\n */\nexport abstract class mintSelectors {\n /**\n * The library name that will be added as a prefix\n */\n static lib: string = 'mint';\n\n /**\n * The prefix built from the library name\n */\n static pre: string = `${this.lib}-`;\n\n /**\n * CSS-selector for disabled elements\n */\n static disabled: string = '[disabled]';\n\n /**\n * CSS-selector for elements with an aria-controls attribute\n */\n static hasControls: string = '[aria-controls]';\n\n /**\n * CSS-selector for elements with an aria-expanded attribute\n */\n static hasExpanded: string = '[aria-expanded]';\n\n /**\n * CSS-selector for elements with an href attribute\n */\n static hasLink: string = '[href]';\n\n /**\n * CSS-selector for elements with a routerLink attribute\n */\n static hasRouterLink: string = '[routerLink]';\n\n /**\n * CSS-selector for elements with an id attribute\n */\n static hasId: string = '[id]';\n\n /**\n * CSS-selector for elements that aren't tabbable (i.e. tabindex is negative)\n */\n static notTabbable: string = '[tabindex^=\"-\"]';\n\n /**\n * CSS-selector for elements that are tabbable (i.e. tabindex isn't negative)\n */\n static tabbable: string = `[tabindex]${this.neg(this.notTabbable)}`;\n\n /**\n * CSS-selector for elements that can receive focus\n */\n static focusable: string = `input${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n select${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n textarea${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n button${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n object${this.neg(this.disabled)}${this.neg(this.notTabbable)},\n a${this.hasLink}, a${this.hasRouterLink},\n area${this.hasLink},\n ${this.tabbable}`.replace(/\\s/g, '');\n\n /**\n * CSS-selector for submenu buttons\n */\n static subMenuButtons: string = `button${this.hasControls}`;\n\n /**\n * CSS-selector for submenus\n */\n static subMenu: string = `${this.subMenuButtons} + ul${this.hasId}`;\n\n /**\n * Frequently-used ids\n */\n static ids: {[key: string]: string | {[key: string]: string}} = {\n header: this.prefix('header'),\n logo: this.prefix('logo'),\n wrapper: this.prefix('wrapper'),\n mainContent: this.prefix('main-content')\n };\n\n /**\n * Classes\n */\n static classes: {[key: string]: string | {[key: string]: string}} = {\n sides: {\n top: this.prefix('top'),\n right: this.prefix('right'),\n bottom: this.prefix('bottom'),\n left: this.prefix('left')\n },\n srOnly: this.prefix('sr-only'),\n js: this.prefix('js'),\n ready: this.prefix('ready'),\n fixed: this.prefix('fixed'),\n open: this.prefix('open')\n };\n\n /**\n * Adds the library prefix to the beginning of the provided string\n * @param base - the string to be prefixed\n * @returns - the provided string prefixed with the library name\n */\n static prefix (base: string) : string {\n base = base.toLowerCase();\n return base.startsWith(this.pre) ? base : `${this.pre}${base}`;\n }\n\n /**\n * Adds two dashes to the beginning of the provided string\n * @param base - the string to be prefixed\n * @returns - the provided string prefixed with two dashes\n */\n static cssPrefix (base: string) : string {\n return `--${this.prefix(base.replace(/^-+/, ''))}`;\n }\n\n /**\n * Turns the provided string into a CSS variable call\n * @param base - the name of the CSS variable to call\n * @returns - the CSS variable call for the provided string\n */\n static cssVar (base: string) : string {\n return `var(${this.cssPrefix(base)})`;\n }\n\n /**\n * Negates the provided CSS selector\n * @param base - the CSS selector to negate\n * @returns - the negated CSS selector\n */\n static neg (base: string) : string {\n return `:not(${base})`;\n }\n\n /**\n * Generates a class CSS selector\n * @param base - the name of the class to generate\n * @returns - the generated CSS selector\n */\n static class (base: string) : string {\n return `.${this.prefix(base)}`;\n }\n\n /**\n * Generates an id CSS selector\n * @param base - the name of the id to generate\n * @returns - the generated CSS selector\n */\n static id (base: string) : string {\n return `#${this.prefix(base)}`;\n }\n\n /**\n * Generates an aria-controls CSS selector\n * @param id - the id of the controlled element\n * @returns - the generated CSS selector\n */\n static controls (id?: string | null) : string {\n return id ? `[aria-controls=\"${this.prefix(id)}\"]` : this.hasControls;\n }\n\n /**\n * Generates an aria-expanded CSS selector\n * @param bool - whether the element is expanded or not\n * @returns - the generated CSS selector\n */\n static expanded (bool?: boolean | null) : string {\n return typeof bool === 'boolean' ? `[aria-expanded=\"${bool}\"]` : this.hasExpanded;\n }\n\n /**\n * Returns the id of the requested element\n */\n static getId (id?: string) : string {\n return this.ids[id ?? -1] as string ?? '';\n }\n\n /**\n * Returns the class of the requested element\n */\n static getClass (className?: string, classGroup?: string) : string {\n if (classGroup) {\n let group: {[key: string]: string} = this.classes[classGroup] as {[key: string]: string};\n return group[className ?? -1] ?? '';\n }\n return this.classes[className ?? -1] as string ?? '';\n }\n\n /**\n * Returns a NodeList of HTMLElements within the given element that are focusable\n * @param el - the element whose focusable children will be returned\n * @returns - the elements within the given element that are focusable\n */\n static getFocusables (el?: HTMLElement) : HTMLElement[] {\n let focusables: HTMLElement[];\n if (el) {\n focusables = Array.from(el.querySelectorAll<HTMLElement>(this.focusable));\n } else {\n focusables = Array.from(document.querySelectorAll<HTMLElement>(this.focusable));\n }\n return focusables.filter((el: HTMLElement) => this.isFocusable(el));\n }\n\n /**\n * Returns true if an element is focusable and false if not,\n * based on styles (i.e. a parent has display: none;)\n * NOTE: Still need to determine what other styles may make an element un-focusable\n * @param el - the element\n * @returns - true if the element is focusable; false if not\n */\n static isFocusable (el: HTMLElement) : boolean {\n let current: HTMLElement | null = el;\n\n do {\n if (window.getComputedStyle(current).getPropertyValue('display').toLowerCase() === 'none') {\n return false;\n }\n current = current.parentElement;\n } while (current);\n return true;\n }\n}\nexport default mintSelectors;\n","/**\n * Imports\n */\nimport { mintSide } from '../enum';\nimport { mintSelectors } from './selectors';\n\n/**\n * Settings management\n * @public\n */\nexport abstract class mintSettings {\n /**\n * Value added to all delay variables\n */\n static delayBase: number = 0;\n\n /**\n * Value multiplied by delay variable index\n */\n static delayStep: number = 100;\n\n /**\n * Delay variables\n */\n static delay: {[key: string]: number} = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n\n /**\n * Side of the window the mobile navbar enters from\n */\n static from?: mintSide;\n\n /**\n * Whether the navbar is fixed or not\n */\n static fixed?: boolean;\n\n /**\n * Update the provided settings variables\n * @param settings - Object of settings variables to update\n */\n static set (settings: {[key: string]: any}) : void {\n let newDelay: boolean = false;\n if (typeof settings.delayBase === 'number') {\n this.delayBase = settings.delayBase;\n newDelay = true;\n }\n if (typeof settings.delayStep === 'number') {\n this.delayStep = settings.delayStep;\n newDelay = true;\n }\n if (newDelay) {\n this.setDelay();\n }\n\n if (settings.delay && Object.keys(settings.delay).length) {\n if (Object.values(settings.delay).reduce((prev: any, next: any) => prev && typeof next === 'number', true)) {\n this.delay = {...this.delay, ...settings.delay};\n }\n }\n\n if (typeof settings.from === 'number') {\n this.setFrom(settings.from);\n }\n\n if (typeof settings.fixed === 'boolean') {\n this.setFixed(settings.fixed);\n }\n }\n\n /**\n * Updates the delay variables based on `this.delayBase` and `this.delayStep`\n */\n protected static setDelay () : void {\n this.delay = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n }\n\n /**\n * Updates the direction the navbar enters from\n */\n protected static setFrom (from: mintSide) : void {\n if (this.from !== from) {\n this.from = from;\n let header: HTMLElement | null = document.getElementById(mintSelectors.getId('header'));\n header?.classList.remove(...Object.values(mintSelectors.classes.sides));\n header?.classList.add(mintSelectors.getClass(mintSide[this.from].toLowerCase(), 'sides'));\n }\n }\n\n /**\n * Updates whether or not the navbar is fixed\n */\n protected static setFixed (fixed: boolean) : void {\n if (this.fixed !== fixed) {\n this.fixed = fixed;\n let header: HTMLElement | null = document.getElementById(mintSelectors.getId('header')),\n fixedClass: string = mintSelectors.getClass('fixed');\n if (this.fixed) {\n header?.classList.add(fixedClass);\n } else {\n header?.classList.remove(fixedClass);\n }\n }\n }\n};\n\nexport default mintSettings;\n","/**\n * Imports\n */\nimport { mintSide } from './imports/enum';\nimport mintSettings from './imports/util/settings';\n\n/**\n * Utility functions\n * @public\n */\nexport abstract class mintUtil {\n /**\n * Returns the width of the window, including fractional pixels\n * @returns the width of the window\n */\n static windowWidth () : number {\n const decimal: number = document.body.getBoundingClientRect().width % 1;\n return window.innerWidth + decimal;\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function\n */\n static debounce (func: Function, wait: number = mintSettings.delay.default) : Function {\n let timer: number;\n return function (e: any) {\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(func, wait, e);\n }\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function as an EventListener\n */\n static debounceEvent (func: Function, wait: number = mintSettings.delay.default) : EventListener {\n return mintUtil.debounce(func, wait) as EventListener;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function\n */\n static throttle (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : Function {\n let context: any, args: any, result: any,\n timeout: number, previous: number = 0,\n later: Function = function () {\n previous = options?.leading === false ? 0 : new Date().getTime();\n timeout = 0;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n },\n throttled: Function = function (this: any): any {\n let now: number = new Date().getTime();\n if (!previous && options?.leading === false) {\n previous = now;\n }\n let remaining: number = wait - now + previous;\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = 0;\n }\n previous = now;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n } else if (!timeout && options?.trailing !== false) {\n timeout = window.setTimeout(later, remaining);\n }\n return result;\n };\n\n return throttled;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function as an EventListener\n */\n static throttleEvent (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : EventListener {\n return mintUtil.throttle(func, wait, options) as EventListener;\n }\n\n /**\n * Sets the element's height to its `innerHeight`, then to `auto` after a delay\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static show (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n el.style.display = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${el.scrollHeight}px`;\n } else {\n el.style.width = `${el.scrollWidth}px`;\n }\n \n setTimeout(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = 'auto';\n } else {\n el.style.width = 'auto';\n }\n }, delay);\n });\n }\n }\n\n /**\n * Sets the element's height to 0\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static hide (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n let height = el.scrollHeight,\n width = el.scrollWidth,\n transition = el.style.transition;\n el.style.transition = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${height}px`;\n } else {\n el.style.width = `${width}px`;\n }\n \n el.style.transition = transition;\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = '0';\n } else {\n el.style.width = '0';\n }\n });\n });\n setTimeout(() => {\n el.style.display = 'none';\n }, delay);\n }\n }\n\n /**\n * Copies the provided text to the clipboard\n * @param text - the text to copy\n * @returns - true if the text was successfully copied to the clipboard; else false\n */\n static copyText (text: string) : boolean {\n let textArea: HTMLTextAreaElement = document.createElement('textarea');\n\n if (!text || !textArea) {\n return false;\n }\n\n textArea.value = text;\n textArea.style.cssText = `\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n `;\n\n document.body.appendChild(textArea);\n textArea.select();\n textArea.setSelectionRange(0, 99999);\n navigator.clipboard.writeText(textArea.value);\n document.body.removeChild(textArea);\n\n return true;\n }\n\n /**\n * Tests the validity of an email address\n * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}\n * @param text - the string to test\n * @returns - true if the given string is an email address; false if not\n */\n static isEmail (text: string) : boolean {\n return null !== text.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])/);\n }\n}\nexport default mintUtil;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(427);\n"],"names":["root","factory","exports","module","define","amd","this","mintSide","mintSelectors","static","base","toLowerCase","startsWith","pre","prefix","replace","cssPrefix","id","hasControls","bool","hasExpanded","_b","ids","className","classGroup","classes","_c","el","focusables","Array","from","querySelectorAll","focusable","document","filter","isFocusable","current","window","getComputedStyle","getPropertyValue","parentElement","lib","_a","disabled","hasLink","hasRouterLink","hasId","notTabbable","tabbable","neg","subMenuButtons","subMenu","header","logo","wrapper","mainContent","sides","top","right","bottom","left","srOnly","js","ready","fixed","open","enum_1","require","selectors_1","mintSettings","settings","newDelay","delayBase","delayStep","setDelay","delay","Object","keys","length","values","reduce","prev","next","assign","setFrom","setFixed","instant","fast","medFast","default","medSlow","slow","getElementById","getId","classList","remove","add","getClass","fixedClass","settings_1","__importDefault","mintUtil","decimal","body","getBoundingClientRect","width","innerWidth","func","timer","wait","arguments","undefined","e","clearTimeout","setTimeout","debounce","context","args","result","timeout","options","previous","later","leading","Date","getTime","apply","now","remaining","trailing","throttle","Top","style","display","requestAnimationFrame","Bottom","height","scrollHeight","scrollWidth","transition","text","textArea","createElement","value","cssText","appendChild","select","setSelectionRange","navigator","clipboard","writeText","removeChild","match","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","call"],"sourceRoot":""}
1
+ {"version":3,"file":"js/util.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAA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,EApMJ/F,EAAAA,SAAAwC,EAsMAxC,EAAAA,QAAewC,C,GC/MXwD,EAA2B,CAAC,ECE5BC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqB/C,IAAjBgD,EACH,OAAOA,EAAapG,QAGrB,IAAIC,EAAS+F,EAAyBG,GAAY,CAGjDnG,QAAS,CAAC,GAOX,OAHAqG,EAAoBF,GAAUG,KAAKrG,EAAOD,QAASC,EAAQA,EAAOD,QAASkG,GAGpEjG,EAAOD,OACf,CCnB0BkG,CAAoB,K","sources":["webpack://mint/webpack/universalModuleDefinition","webpack://mint/./src/ts/imports/enum.ts","webpack://mint/./src/ts/imports/util/settings.ts","webpack://mint/./src/ts/util.ts","webpack://mint/webpack/bootstrap","webpack://mint/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mintUtil\"] = factory();\n\telse\n\t\troot[\"mintUtil\"] = factory();\n})(this, () => {\nreturn ","/**\n * Side Enum\n */\n export enum mintSide {\n Top,\n Right,\n Bottom,\n Left\n};\n","/**\n * Settings management\n * @public\n */\nexport abstract class mintSettings {\n /**\n * Value added to all delay variables\n */\n static delayBase: number = 0;\n\n /**\n * Value multiplied by delay variable index\n */\n static delayStep: number = 100;\n\n /**\n * Delay variables\n */\n static delay: {[key: string]: number} = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n\n /**\n * Breakpoint variables\n */\n static break: {[key: string]: number} = {\n z: 0,\n xs: 480,\n sm: 768,\n md: 1024,\n lg: 1200,\n xl: 1440\n };\n\n /**\n * Update the provided settings variables\n * @param settings - Object of settings variables to update\n */\n static set (settings: {[key: string]: any}) : void {\n let newDelay: boolean = false;\n if (typeof settings.delayBase === 'number') {\n this.delayBase = settings.delayBase;\n newDelay = true;\n }\n if (typeof settings.delayStep === 'number') {\n this.delayStep = settings.delayStep;\n newDelay = true;\n }\n if (newDelay) {\n this.setDelay();\n }\n\n if (settings.delay && Object.keys(settings.delay).length) {\n if (Object.values(settings.delay).reduce((prev: any, next: any) => prev && typeof next === 'number', true)) {\n this.delay = {...this.delay, ...settings.delay};\n }\n }\n\n if (settings.break && Object.keys(settings.break).length) {\n if (Object.values(settings.break).reduce((prev: any, next: any) => prev && typeof next === 'number', true)) {\n this.break = {...this.break, ...settings.break};\n }\n }\n }\n\n /**\n * Updates the delay variables based on `this.delayBase` and `this.delayStep`\n */\n protected static setDelay () : void {\n this.delay = {\n instant: this.delayBase + this.delayStep * 0,\n fast: this.delayBase + this.delayStep * 1,\n medFast: this.delayBase + this.delayStep * 2,\n default: this.delayBase + this.delayStep * 3,\n medSlow: this.delayBase + this.delayStep * 4,\n slow: this.delayBase + this.delayStep * 5\n };\n }\n};\n\nexport default mintSettings;\n","/**\n * Imports\n */\nimport { mintSide } from './imports/enum';\nimport mintSettings from './imports/util/settings';\n\n/**\n * Utility functions\n * @public\n */\nexport abstract class mintUtil {\n /**\n * Returns the width of the window, including fractional pixels\n * @returns the width of the window\n */\n static windowWidth () : number {\n const decimal: number = document.body.getBoundingClientRect().width % 1;\n return window.innerWidth + decimal;\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function\n */\n static debounce (func: Function, wait: number = mintSettings.delay.default) : Function {\n let timer: number;\n return function (e: any) {\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(func, wait, e);\n }\n }\n\n /**\n * Ensures that a function `func` is run only after not being called for `wait` milliseconds\n * @param func - the function to debounce\n * @param wait - the amount of time to wait before running the function\n * @returns - the debounced function as an EventListener\n */\n static debounceEvent (func: Function, wait: number = mintSettings.delay.default) : EventListener {\n return mintUtil.debounce(func, wait) as EventListener;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function\n */\n static throttle (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : Function {\n let context: any, args: any, result: any,\n timeout: number, previous: number = 0,\n later: Function = function () {\n previous = options?.leading === false ? 0 : new Date().getTime();\n timeout = 0;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n },\n throttled: Function = function (this: any): any {\n let now: number = new Date().getTime();\n if (!previous && options?.leading === false) {\n previous = now;\n }\n let remaining: number = wait - now + previous;\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = 0;\n }\n previous = now;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n } else if (!timeout && options?.trailing !== false) {\n timeout = window.setTimeout(later, remaining);\n }\n return result;\n };\n\n return throttled;\n }\n\n /**\n * Ensures that a function `func` is called at most every `wait` milliseconds with optional leading and trailing calls\n * @param func - the function to throttle\n * @param wait - the amount of time between function calls\n * @param options - leading and trailing options: default = \\{ leading: true, trailing, true \\}\n * @returns - the throttled function as an EventListener\n */\n static throttleEvent (func: Function,\n wait: number = mintSettings.delay.default,\n options?: {[key: string]: boolean}) : EventListener {\n return mintUtil.throttle(func, wait, options) as EventListener;\n }\n\n /**\n * Sets the element's height to its `innerHeight`, then to `auto` after a delay\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static show (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n el.style.display = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${el.scrollHeight}px`;\n } else {\n el.style.width = `${el.scrollWidth}px`;\n }\n \n setTimeout(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = 'auto';\n } else {\n el.style.width = 'auto';\n }\n }, delay);\n });\n }\n }\n\n /**\n * Sets the element's height to 0\n * @param el - the element whose height will be set\n * @param delay - the amount of time in milliseconds that the show animation will be active\n * @param from - the side that the element is animating from\n */\n static hide (el?: HTMLElement | null, delay: number = mintSettings.delay.default, from: mintSide = mintSide.Top) : void {\n if (el) {\n let height = el.scrollHeight,\n width = el.scrollWidth,\n transition = el.style.transition;\n el.style.transition = '';\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = `${height}px`;\n } else {\n el.style.width = `${width}px`;\n }\n \n el.style.transition = transition;\n requestAnimationFrame(() => {\n if (from === mintSide.Top || from === mintSide.Bottom) {\n el.style.height = '0';\n } else {\n el.style.width = '0';\n }\n });\n });\n setTimeout(() => {\n el.style.display = 'none';\n }, delay);\n }\n }\n\n /**\n * Copies the provided text to the clipboard\n * @param text - the text to copy\n * @returns - true if the text was successfully copied to the clipboard; else false\n */\n static copyText (text: string) : boolean {\n let textArea: HTMLTextAreaElement = document.createElement('textarea');\n\n if (!text || !textArea) {\n return false;\n }\n\n textArea.value = text;\n textArea.style.cssText = `\n position: fixed;\n top: 0;\n left: 0;\n transform: translate(-100%, -100%);\n opacity: 0;\n z-index: -1;\n `;\n\n document.body.appendChild(textArea);\n textArea.select();\n textArea.setSelectionRange(0, 99999);\n navigator.clipboard.writeText(textArea.value);\n document.body.removeChild(textArea);\n\n return true;\n }\n\n /**\n * Tests the validity of an email address\n * @see {@link https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression}\n * @param text - the string to test\n * @returns - true if the given string is an email address; false if not\n */\n static isEmail (text: string) : boolean {\n return null !== text.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])/);\n }\n}\nexport default mintUtil;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(427);\n"],"names":["root","factory","exports","module","define","amd","this","mintSide","mintSettings","static","settings","newDelay","delayBase","delayStep","setDelay","delay","Object","keys","length","values","reduce","prev","next","assign","break","instant","fast","medFast","default","medSlow","slow","_a","z","xs","sm","md","lg","xl","enum_1","require","settings_1","__importDefault","mintUtil","decimal","document","body","getBoundingClientRect","width","window","innerWidth","func","timer","wait","arguments","undefined","e","clearTimeout","setTimeout","debounce","context","args","result","timeout","options","previous","later","leading","Date","getTime","apply","now","remaining","trailing","throttle","el","from","Top","style","display","requestAnimationFrame","Bottom","height","scrollHeight","scrollWidth","transition","text","textArea","createElement","value","cssText","appendChild","select","setSelectionRange","navigator","clipboard","writeText","removeChild","match","__webpack_module_cache__","__webpack_exports__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","call"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appartmint/mint",
3
3
  "author": "App Art Mint LLC",
4
- "version": "0.13.4",
4
+ "version": "0.14.0",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [