Manarah/Manarah.App/wwwroot/dist/js/adminlte.js.map

1 line
48 KiB
Plaintext
Raw Normal View History

{"version":3,"file":"adminlte.js","sources":["../../src/ts/util/index.ts","../../src/ts/layout.ts","../../src/ts/push-menu.ts","../../src/ts/treeview.ts","../../src/ts/direct-chat.ts","../../src/ts/card-widget.ts","../../src/ts/fullscreen.ts"],"sourcesContent":["const domContentLoadedCallbacks: Array<() => void> = []\n\nconst onDOMContentLoaded = (callback: () => void): void => {\n if (document.readyState === 'loading') {\n // add listener on the first call when the document is in loading state\n if (!domContentLoadedCallbacks.length) {\n document.addEventListener('DOMContentLoaded', () => {\n for (const callback of domContentLoadedCallbacks) {\n callback()\n }\n })\n }\n\n domContentLoadedCallbacks.push(callback)\n } else {\n callback()\n }\n}\n\n/* SLIDE UP */\nconst slideUp = (target: HTMLElement, duration = 500) => {\n target.style.transitionProperty = 'height, margin, padding'\n target.style.transitionDuration = `${duration}ms`\n target.style.boxSizing = 'border-box'\n target.style.height = `${target.offsetHeight}px`\n target.style.overflow = 'hidden'\n\n window.setTimeout(() => {\n target.style.height = '0'\n target.style.paddingTop = '0'\n target.style.paddingBottom = '0'\n target.style.marginTop = '0'\n target.style.marginBottom = '0'\n }, 1)\n\n window.setTimeout(() => {\n target.style.display = 'none'\n target.style.removeProperty('height')\n target.style.removeProperty('padding-top')\n target.style.removeProperty('padding-bottom')\n target.style.removeProperty('margin-top')\n target.style.removeProperty('margin-bottom')\n target.style.removeProperty('overflow')\n target.style.removeProperty('transition-duration')\n target.style.removeProperty('transition-property')\n }, duration)\n}\n\n/* SLIDE DOWN */\nconst slideDown = (target: HTMLElement, duration = 500) => {\n target.style.removeProperty('display')\n let { display } = window.getComputedStyle(target)\n\n if (display === 'none') {\n display = 'block'\n }\n\n target.style.display = display\n const height = target.offsetHeight\n target.style.overflow = 'hidden'\n target.style.height = '0'\n target.style.paddingTop = '0'\n target.style.paddingBottom = '0'\n target.style.marginTop = '0'\n target.style.marginBottom = '0'\n\n window.setTimeout(() => {\n target.style.boxSizing = 'border-box'\n target.style.transitionProperty = 'height, margin, padding'\n target.style.transitionDuration = `${duration}ms`\n target.style.height = `${height}px`\n target.style.removeProperty('padding-top')\n target.style.removeProperty('padding-bottom')\n target.style.removeProperty('margin-top')\n target.style.removeProperty('margin-bottom')\n }, 1)\n\n window.setTimeout(() => {\n target.style.removeProperty('height')\n target.style.removeProperty('overflow')\n target.style.removeProperty('transition-duration')\n target.style.removeProperty('transition-property')\n }, duration)\n}\n\n/* TOOGLE */\nconst slideToggle = (target: HTMLElement, duration = 500) => {\n if (window.getComputedStyle(target).display === 'none') {\n slideDown(target, duration)\n return\n }\n\n slideUp(target, duration)\n}\n\nexport {\n onDOMContentLoaded,\n slideUp,\n slideDown,\n slideToggle\n}\n","/**\n * --------------------------------------------\n * @file AdminLTE layout.ts\n * @description Layout for AdminLTE.\n * @license MIT\n * --------------------------------------------\n */\n\nimport {\n onDOMContentLoaded\n} from './util/index'\n\n/**\n * ------------------------------------------------------------------------\n * Constants\n * ------------------------------------------------------------------------\n */\n\nconst CLASS_NAME_HOLD_TRANSITIONS = 'hold-transition'\nconst CLASS_NAME_APP_LOADED = 'app-loaded'\n\n/**\n * Class Definition\n * ====================================================\n */\n\nclass Layout {\n _element: HTMLElement\n\n constructor(element: HTMLElement) {\n this._element = element\n }\n\n holdTransition(): v