@appartmint/mint 0.12.26 → 0.12.28
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/css/mint.css +27 -4
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/components/header.d.ts.map +1 -1
- package/dist/js/imports/util/object.d.ts.map +1 -1
- package/dist/js/index.js +6 -4
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/dist/js/util.js +2 -2
- package/dist/js/util.js.map +1 -1
- package/dist/js/util.min.js +1 -1
- package/dist/js/util.min.js.map +1 -1
- package/package.json +18 -13
- package/src/scss/imports/components/_header.scss +27 -3
- package/src/scss/imports/global/_global.scss +2 -2
- package/src/scss/imports/util/_vars.scss +5 -0
- package/src/ts/imports/components/header.ts +378 -0
- package/src/ts/imports/enum.ts +9 -0
- package/src/ts/imports/models/color.ts +96 -0
- package/src/ts/imports/models/item.ts +66 -0
- package/src/ts/imports/util/display.ts +7 -0
- package/src/ts/imports/util/event.ts +7 -0
- package/src/ts/imports/util/icon.ts +67 -0
- package/src/ts/imports/util/list.ts +19 -0
- package/src/ts/imports/util/math.ts +17 -0
- package/src/ts/imports/util/object.ts +141 -0
- package/src/ts/imports/util/selectors.ts +230 -0
- package/src/ts/imports/util/settings.ts +120 -0
- package/src/ts/imports/util/text.ts +47 -0
- package/src/ts/imports/util/window.ts +7 -0
- package/src/ts/index.ts +33 -0
- package/src/ts/util.ts +209 -0
package/dist/js/util.js.map
CHANGED
|
@@ -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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AEA;;;;;;EAMA,OAAOW,OAAOA,CAAEZ,IAAY;IACxB,OAAO,IAAI,KAAKA,IAAI,CAACa,KAAK,CAAC,gcAAgc,CAAC;EAChe;;AApMJ9J,gBAAA,GAAAmG,QAAA;AAsMAnG,kBAAA,GAAemG,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 = [...el.querySelectorAll<HTMLElement>(this.focusable)];\n } else {\n focusables = [...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","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","from","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,aAAa;EAoG/B;;;;;EAKA,OAAOC,MAAMA,CAAEC,IAAY;IACvBA,IAAI,GAAGA,IAAI,CAACC,WAAW,EAAE;IACzB,OAAOD,IAAI,CAACE,UAAU,CAAC,IAAI,CAACC,GAAG,CAAC,GAAGH,IAAI,GAAG,GAAG,IAAI,CAACG,GAAG,GAAGH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,EAAE,CAAC4G,KAAK,CAAC/B,KAAK,GAAG,GAAG;;QAE5B,CAAC,CAAC;MACN,CAAC,CAAC;MACFU,UAAU,CAAC,MAAK;QACZvF,EAAE,CAAC4G,KAAK,CAACC,OAAO,GAAG,MAAM;MAC7B,CAAC,EAAE5D,KAAK,CAAC;;EAEjB;EAEA;;;;;EAKA,OAAOoE,QAAQA,CAAEC,IAAY;IACzB,IAAIC,QAAQ,GAAwBjH,QAAQ,CAACkH,aAAa,CAAC,UAAU,CAAC;IAEtE,IAAI,CAACF,IAAI,IAAI,CAACC,QAAQ,EAAE;MACpB,OAAO,KAAK;;IAGhBA,QAAQ,CAACE,KAAK,GAAGH,IAAI;IACrBC,QAAQ,CAACX,KAAK,CAACc,OAAO,GAAG;;;;;;;SAOxB;IAEDpH,QAAQ,CAACqE,IAAI,CAACgD,WAAW,CAACJ,QAAQ,CAAC;IACnCA,QAAQ,CAACK,MAAM,EAAE;IACjBL,QAAQ,CAACM,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC;IACpCC,SAAS,CAACC,SAAS,CAACC,SAAS,CAACT,QAAQ,CAACE,KAAK,CAAC;IAC7CnH,QAAQ,CAACqE,IAAI,CAACsD,WAAW,CAACV,QAAQ,CAAC;IAEnC,OAAO,IAAI;EACf;EAEA;;;;;;EAMA,OAAOW,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":""}
|
package/dist/js/util.min.js
CHANGED
|
@@ -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?
|
|
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})()));
|
|
2
2
|
//# sourceMappingURL=util.min.js.map
|
package/dist/js/util.min.js.map
CHANGED
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G,EAAGwG,MAAMO,WAC1B/G,EAAGwG,MAAMO,WAAa,GACtBL,uBAAsB,KACdnD,IAASlB,EAAAzD,SAAS2H,KAAOhD,IAASlB,EAAAzD,SAAS+H,OAC3C3G,EAAGwG,MAAMI,OAAS,GAAGA,MAErB5G,EAAGwG,MAAM3B,MAAQ,GAAGA,MAGxB7E,EAAGwG,MAAMO,WAAaA,EACtBL,uBAAsB,KACdnD,IAASlB,EAAAzD,SAAS2H,KAAOhD,IAASlB,EAAAzD,SAAS+H,OAC3C3G,EAAGwG,MAAMI,OAAS,IAElB5G,EAAGwG,MAAM3B,MAAQ,G,GAEvB,IAENS,YAAW,KACPtF,EAAGwG,MAAMC,QAAU,MAAM,GAC1B3D,E,CAEX,CAOAhE,gBAAiBkI,GACb,IAAIC,EAAgC7G,SAAS8G,cAAc,YAE3D,SAAKF,IAASC,IAIdA,EAASE,MAAQH,EACjBC,EAAST,MAAMY,QAAU,0LASzBhH,SAASuE,KAAK0C,YAAYJ,GAC1BA,EAASK,SACTL,EAASM,kBAAkB,EAAG,OAC9BC,UAAUC,UAAUC,UAAUT,EAASE,OACvC/G,SAASuE,KAAKgD,YAAYV,GAEnB,GACX,CAQAnI,eAAgBkI,GACZ,OAAO,OAASA,EAAKY,MAAM,icAC/B,EApMJrJ,EAAAA,SAAAkG,EAsMAlG,EAAAA,QAAekG,C,GC/MXoD,EAA2B,CAAC,ECE5BC,EDCJ,SAASC,EAAoBC,GAE5B,IAAIC,EAAeJ,EAAyBG,GAC5C,QAAqB7C,IAAjB8C,EACH,OAAOA,EAAa1J,QAGrB,IAAIC,EAASqJ,EAAyBG,GAAY,CAGjDzJ,QAAS,CAAC,GAOX,OAHA2J,EAAoBF,GAAUG,KAAK3J,EAAOD,QAASC,EAAQA,EAAOD,QAASwJ,GAGpEvJ,EAAOD,OACf,CCnB0BwJ,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 = [...el.querySelectorAll<HTMLElement>(this.focusable)];\n } else {\n focusables = [...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","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","from","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,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,GACpB,CATD,CASGK,MAAM,I,qCCNR,IAAYC,E,oEAAAA,EAAAL,EAAAK,WAAAL,EAAAA,SAAQ,KACjBK,EAAA,aACAA,EAAAA,EAAA,iBACAA,EAAAA,EAAA,mBACAA,EAAAA,EAAA,c,4FCHJ,MAAsBC,EAyGlBC,cAAeC,GAEX,OADAA,EAAOA,EAAKC,eACAC,WAAWN,KAAKO,KAAOH,EAAO,GAAGJ,KAAKO,MAAMH,GAC5D,CAOAD,iBAAkBC,GACd,MAAO,KAAKJ,KAAKQ,OAAOJ,EAAKK,QAAQ,MAAO,MAChD,CAOAN,cAAeC,GACX,MAAO,OAAOJ,KAAKU,UAAUN,KACjC,CAOAD,WAAYC,GACR,MAAO,QAAQA,IACnB,CAOAD,aAAcC,GACV,MAAO,IAAIJ,KAAKQ,OAAOJ,IAC3B,CAOAD,UAAWC,GACP,MAAO,IAAIJ,KAAKQ,OAAOJ,IAC3B,CAOAD,gBAAiBQ,GACb,OAAOA,EAAK,mBAAmBX,KAAKQ,OAAOG,OAAUX,KAAKY,WAC9D,CAOAT,gBAAiBU,GACb,MAAuB,kBAATA,EAAqB,mBAAmBA,MAAWb,KAAKc,WAC1E,CAKAX,aAAcQ,G,MACV,OAAmC,QAA5BI,EAAAf,KAAKgB,IAAIL,QAAAA,GAAO,UAAY,IAAAI,EAAAA,EAAI,EAC3C,CAKAZ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AASC,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":""}
|
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.12.
|
|
4
|
+
"version": "0.12.28",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The front-end TS/SCSS framework of App Art Mint",
|
|
7
7
|
"keywords": [
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/App-Art-Mint/npm-mint/issues"
|
|
21
21
|
},
|
|
22
|
-
"main": "
|
|
23
|
-
"
|
|
22
|
+
"main": "src/ts/index.ts",
|
|
23
|
+
"type": "module",
|
|
24
24
|
"files": [
|
|
25
|
-
"src
|
|
25
|
+
"src/**/*.{ts,scss}",
|
|
26
26
|
"dist/**/*.{css,js,d.ts,map}"
|
|
27
27
|
],
|
|
28
28
|
"directories": {
|
|
@@ -44,35 +44,40 @@
|
|
|
44
44
|
"webpack": "node_modules/@appartmint/config/dist/js/webpack.config.min.js"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"upgrade
|
|
47
|
+
"upgrade": "npm up -D @appartmint/config && mint-config",
|
|
48
48
|
"prepare": "npm-run-all clean bundle",
|
|
49
|
-
"bundle": "npm-run-all build build:**",
|
|
50
49
|
"preversion": "npm i && npm run test",
|
|
51
50
|
"version": "npm publish && git add -A",
|
|
52
51
|
"postversion": "git push && git push --tags && npm run endversion --if-present",
|
|
53
|
-
"clean": "rimraf $npm_package_config_dirs_dist $npm_package_config_dirs_doc",
|
|
52
|
+
"clean": "cross-var rimraf $npm_package_config_dirs_dist $npm_package_config_dirs_doc",
|
|
54
53
|
"clear": "npm run clean",
|
|
55
|
-
"
|
|
54
|
+
"bundle": "npm-run-all build build:**",
|
|
55
|
+
"build": "cross-var webpack --config $npm_package_config_webpack",
|
|
56
56
|
"build:prod": "cross-env NODE_ENV=production npm run build",
|
|
57
57
|
"build:index": "cross-env BUILD_MODE=index npm run build",
|
|
58
58
|
"build:index:prod": "cross-env NODE_ENV=production BUILD_MODE=index npm run build",
|
|
59
59
|
"build:config": "cross-env BUILD_MODE=config npm run build",
|
|
60
60
|
"build:config:prod": "cross-env NODE_ENV=production BUILD_MODE=config npm run build",
|
|
61
61
|
"build:tsdoc": "typedoc",
|
|
62
|
-
"build:sassdoc": "sassdoc $npm_package_config_dirs_src/$npm_package_config_dirs_scss -p > $npm_package_config_dirs_doc/sassdoc.json",
|
|
63
|
-
"serve": "webpack serve --config $npm_package_config_webpack",
|
|
62
|
+
"build:sassdoc": "cross-var sassdoc $npm_package_config_dirs_src/$npm_package_config_dirs_scss -p > $npm_package_config_dirs_doc/sassdoc.json",
|
|
63
|
+
"serve": "cross-var webpack serve --config $npm_package_config_webpack",
|
|
64
64
|
"watch": "npm run build -- --watch",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
65
|
+
"watch:prod": "cross-env NODE_ENV=production npm run watch",
|
|
66
|
+
"watch:tsdoc": "npm run build:tsdoc -- --watch",
|
|
67
|
+
"test": "echo-cli \"\\nRun tests here!\\n\"",
|
|
68
|
+
"relink": "npm r -g @appartmint/mint && npm link",
|
|
69
|
+
"upgrade:config": "npm up -D @appartmint/config && mint-config"
|
|
67
70
|
},
|
|
68
71
|
"devDependencies": {
|
|
69
|
-
"@appartmint/config": "^0.
|
|
72
|
+
"@appartmint/config": "^0.7.0",
|
|
70
73
|
"@babel/core": "^7.19.6",
|
|
71
74
|
"@babel/preset-env": "^7.19.4",
|
|
72
75
|
"babel-loader": "^9.0.1",
|
|
73
76
|
"copy-webpack-plugin": "^11.0.0",
|
|
74
77
|
"cross-env": "^7.0.3",
|
|
78
|
+
"cross-var": "^1.1.0",
|
|
75
79
|
"css-loader": "^6.7.1",
|
|
80
|
+
"echo-cli": "^2.0.0",
|
|
76
81
|
"jasmine-core": "^4.5.0",
|
|
77
82
|
"karma": "^6.4.1",
|
|
78
83
|
"karma-babel-preprocessor": "^8.0.2",
|
|
@@ -159,6 +159,18 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
|
|
163
|
+
&#{neg(class(expand))} {
|
|
164
|
+
#{$has-controls + neg(controls(wrapper))} {
|
|
165
|
+
display: none;
|
|
166
|
+
|
|
167
|
+
& + ul {
|
|
168
|
+
display: flex !important;
|
|
169
|
+
height: auto !important;
|
|
170
|
+
margin-bottom: 1rem !important;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
162
174
|
}
|
|
163
175
|
|
|
164
176
|
&::before {
|
|
@@ -236,6 +248,7 @@
|
|
|
236
248
|
z-index: 1000;
|
|
237
249
|
|
|
238
250
|
@include states(hover) {
|
|
251
|
+
background: css-var($header-link-back-hover);
|
|
239
252
|
#{class(menu-icon)} {
|
|
240
253
|
|
|
241
254
|
&,
|
|
@@ -308,7 +321,8 @@
|
|
|
308
321
|
}
|
|
309
322
|
|
|
310
323
|
nav {
|
|
311
|
-
height:
|
|
324
|
+
height: calc(100vh - css-var(header-height));
|
|
325
|
+
height: calc(100dvh - css-var(header-height));
|
|
312
326
|
background: css-var(back);
|
|
313
327
|
overflow: auto;
|
|
314
328
|
background-repeat: repeat;
|
|
@@ -324,10 +338,14 @@
|
|
|
324
338
|
}
|
|
325
339
|
|
|
326
340
|
&>ul {
|
|
327
|
-
|
|
341
|
+
height: 100%;
|
|
342
|
+
overflow: auto;
|
|
343
|
+
|
|
344
|
+
@include break(md) {
|
|
328
345
|
display: flex;
|
|
329
346
|
flex-direction: row;
|
|
330
347
|
flex-wrap: wrap;
|
|
348
|
+
align-items: center;
|
|
331
349
|
justify-content: space-evenly;
|
|
332
350
|
width: 100%;
|
|
333
351
|
}
|
|
@@ -340,13 +358,19 @@
|
|
|
340
358
|
font-size: 3em;
|
|
341
359
|
padding: 0.5rem;
|
|
342
360
|
text-align: center;
|
|
361
|
+
border-radius: $header-link-border-radius;
|
|
343
362
|
|
|
344
363
|
@include break(xs) {
|
|
345
364
|
font-size: 4em;
|
|
365
|
+
padding: 1rem 1.5rem;
|
|
366
|
+
|
|
367
|
+
i {
|
|
368
|
+
font-size: 0.75em;
|
|
369
|
+
}
|
|
346
370
|
}
|
|
347
371
|
|
|
348
372
|
@include states(hover, focus) {
|
|
349
|
-
background-color: css-var(
|
|
373
|
+
background-color: css-var($header-link-back-hover);
|
|
350
374
|
color: css-var($header-link-fore-hover);
|
|
351
375
|
}
|
|
352
376
|
|
|
@@ -85,6 +85,7 @@ $border-radius: 1rem !default;
|
|
|
85
85
|
/// Header
|
|
86
86
|
$header-height: 4rem !default;
|
|
87
87
|
$header-break: sm !default;
|
|
88
|
+
$header-link-border-radius: $border-radius !default;
|
|
88
89
|
|
|
89
90
|
/// Default Shadows
|
|
90
91
|
$shadow-color: glow-2 !default;
|
|
@@ -164,6 +165,9 @@ $header-back: $header-back-default !default;
|
|
|
164
165
|
$header-fore-default: fore;
|
|
165
166
|
$header-fore: $header-fore-default !default;
|
|
166
167
|
|
|
168
|
+
$header-link-back-hover-default: shadow-5;
|
|
169
|
+
$header-link-back-hover: $header-link-back-hover-default !default;
|
|
170
|
+
|
|
167
171
|
$header-link-fore-default: fore;
|
|
168
172
|
$header-link-fore: $header-link-fore-default !default;
|
|
169
173
|
|
|
@@ -180,4 +184,5 @@ $header-link-fore-hover: $header-link-fore-hover-default !default;
|
|
|
180
184
|
/// Header
|
|
181
185
|
$header-back: if($header-back != $header-back-default, $header-back, brand-4);
|
|
182
186
|
$header-fore: if($header-fore != $header-fore-default, $header-fore, back);
|
|
187
|
+
$header-link-back-hover: if($header-link-back-hover != $header-link-back-hover-default, $header-link-back-hover, glow-5);
|
|
183
188
|
}
|