@caweb/framework 1.9.4 → 1.9.5
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/build/delta.asset.php +1 -1
- package/build/delta.js +9 -9
- package/build/eureka.asset.php +1 -1
- package/build/eureka.js +9 -9
- package/build/mono.asset.php +1 -1
- package/build/mono.js +9 -9
- package/build/oceanside.asset.php +1 -1
- package/build/oceanside.js +9 -9
- package/build/orangecounty.asset.php +1 -1
- package/build/orangecounty.js +9 -9
- package/build/pasorobles.asset.php +1 -1
- package/build/pasorobles.js +9 -9
- package/build/sacramento.asset.php +1 -1
- package/build/sacramento.js +9 -9
- package/build/santabarbara.asset.php +1 -1
- package/build/santabarbara.js +9 -9
- package/build/santacruz.asset.php +1 -1
- package/build/santacruz.js +9 -9
- package/build/shasta.asset.php +1 -1
- package/build/shasta.js +9 -9
- package/build/sierra.asset.php +1 -1
- package/build/sierra.js +9 -9
- package/build/trinity.asset.php +1 -1
- package/build/trinity.js +9 -9
- package/package.json +1 -1
- package/src/scripts/components/header.js +1 -1
package/build/delta.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'a72d1beae01bd2203977');
|
package/build/delta.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/delta.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/delta.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/delta.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/delta.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
package/build/eureka.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'd13d9589eecfacf0469d');
|
package/build/eureka.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/eureka.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/eureka.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/eureka.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/eureka.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
package/build/mono.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '7786c7108dfe1248bd33');
|
package/build/mono.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/mono.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/mono.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/mono.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/mono.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'bb2dda282afc55a09dd3');
|
package/build/oceanside.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/oceanside.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/oceanside.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/oceanside.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/oceanside.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'a88a61f0884df9303968');
|
package/build/orangecounty.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/orangecounty.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/orangecounty.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/orangecounty.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/orangecounty.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '3a655e5256466c7b8e7d');
|
package/build/pasorobles.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/pasorobles.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/pasorobles.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/pasorobles.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/pasorobles.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '46795bfd62876c67937d');
|
package/build/sacramento.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/sacramento.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/sacramento.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/sacramento.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/sacramento.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'b941c263dada6b7424a1');
|
package/build/santabarbara.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/santabarbara.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/santabarbara.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/santabarbara.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/santabarbara.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '9e5a3ec701cb3c1c0dcc');
|
package/build/santacruz.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/santacruz.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/santacruz.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/santacruz.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/santacruz.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
package/build/shasta.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'be89f9e1ec010255b838');
|
package/build/shasta.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/shasta.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/shasta.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/shasta.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/shasta.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
package/build/sierra.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '976a69f8f72d74f9b94e');
|
package/build/sierra.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/sierra.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/sierra.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/sierra.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/sierra.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
package/build/trinity.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '74f95d595640fb9df9f0');
|
package/build/trinity.js
CHANGED
|
@@ -16,6 +16,14 @@ eval("{/*!\n * Bootstrap v5.3.8 (https://getbootstrap.com/)\n * Copyright 2011
|
|
|
16
16
|
|
|
17
17
|
/***/ },
|
|
18
18
|
|
|
19
|
+
/***/ "./src/styles/colorschemes/trinity.scss"
|
|
20
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/trinity.scss?\n}");
|
|
24
|
+
|
|
25
|
+
/***/ },
|
|
26
|
+
|
|
19
27
|
/***/ "./src/scripts/components/external-link.js"
|
|
20
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
21
29
|
|
|
@@ -28,7 +36,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
36
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
37
|
|
|
30
38
|
"use strict";
|
|
31
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEventListener('DOMContentLoaded', () => {\n let location_hash = window.location.hash.replace(/(\\|)/g, \"\\\\$1\");\n const header = document.querySelector('header');\n const pageContainer = document.querySelector('#page-container');\n\n // array of elements that are compacted\n const compactedElements = [document.querySelector('.alerts'), document.querySelector('.utility-header')].filter(Boolean);\n let compactedElementsHeight = compactedElements.reduce((total, element) => {\n if (element instanceof HTMLElement) {\n return total + element.clientHeight;\n }\n return total;\n }, 0);\n\n // lets collect the height of any fixed elements above the header.\n let topOffset = 0;\n let current = header?.previousElementSibling;\n while (current) {\n // if current element has a fixed position, add its height to the topOffset.\n if (current instanceof HTMLElement && window.getComputedStyle(current).position === 'fixed') {\n topOffset += current.clientHeight;\n }\n current = current.previousElementSibling;\n }\n\n // scroll to target\n if (location_hash) {\n // location hash has leading #, so we remove it\n let target = document.getElementById(location_hash.substring(1));\n\n // if the location hash is not empty, we scroll to the target element\n requestAnimationFrame(() => {\n target?.scrollIntoView({\n behavior: 'smooth'\n });\n });\n }\n if (!header) {\n return;\n }\n const compactHeader = () => {\n // downscroll code passed the header height\n if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {\n // move the header up to hide the compacted elements height, minus the top offset.\n header.style.top = `-${compactedElementsHeight - topOffset}px`;\n } else {\n // reset header to initial position\n // we need to set the header's top to the offset.\n if (header) {\n header.style.top = `${topOffset}px`;\n }\n\n // if we have a page container, we need to set its top padding to the offset\n if (pageContainer && pageContainer instanceof HTMLElement) {\n pageContainer.style.paddingTop = `${topOffset}px`;\n }\n }\n };\n\n // for each element with an id we add the scroll-margin-top\n document.querySelectorAll('#page-container [id]').forEach(element => {\n if (element instanceof HTMLElement) {\n let scrollMarginHeight = header.clientHeight + topOffset;\n\n // if the elements offsetTop is greater than twice the header size, \n // we can assume the header is compacted\n // so we need to subtract the compacted elements height from the scroll margin.\n if (element.offsetTop > scrollMarginHeight + scrollMarginHeight / 2) {\n scrollMarginHeight -= compactedElementsHeight;\n }\n element.style.scrollMarginTop = `${scrollMarginHeight}px`;\n }\n });\n\n // reset position on scroll\n window.addEventListener('scroll', compactHeader);\n compactHeader();\n});\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/components/header.js?\n}");
|
|
32
40
|
|
|
33
41
|
/***/ },
|
|
34
42
|
|
|
@@ -54,14 +62,6 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\nwindow.addEvent
|
|
|
54
62
|
"use strict";
|
|
55
63
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var bootstrap_dist_js_bootstrap_bundle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"./node_modules/bootstrap/dist/js/bootstrap.bundle.js\");\n/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/scripts/components/mobile-controls.js\");\n/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/scripts/components/return-top.js\");\n/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/scripts/components/external-link.js\");\n/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/scripts/components/header.js\");\n\n\n\n\n\n\n//# sourceURL=webpack://@caweb/framework/./src/scripts/index.js?\n}");
|
|
56
64
|
|
|
57
|
-
/***/ },
|
|
58
|
-
|
|
59
|
-
/***/ "./src/styles/colorschemes/trinity.scss"
|
|
60
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
61
|
-
|
|
62
|
-
"use strict";
|
|
63
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://@caweb/framework/./src/styles/colorschemes/trinity.scss?\n}");
|
|
64
|
-
|
|
65
65
|
/***/ }
|
|
66
66
|
|
|
67
67
|
/******/ });
|
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
|
|
84
84
|
// if the elements offsetTop is greater than twice the header size,
|
|
85
85
|
// we can assume the header is compacted
|
|
86
86
|
// so we need to subtract the compacted elements height from the scroll margin.
|
|
87
|
-
if( element.offsetTop > scrollMarginHeight
|
|
87
|
+
if( element.offsetTop > scrollMarginHeight + (scrollMarginHeight / 2) ){
|
|
88
88
|
scrollMarginHeight -= compactedElementsHeight;
|
|
89
89
|
}
|
|
90
90
|
|