@caweb/framework 1.9.3 → 1.9.4
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.css +1 -0
- package/build/delta.js +1 -1
- package/build/eureka.asset.php +1 -1
- package/build/eureka.css +1 -0
- package/build/eureka.js +1 -1
- package/build/mono.asset.php +1 -1
- package/build/mono.css +1 -0
- package/build/mono.js +1 -1
- package/build/oceanside.asset.php +1 -1
- package/build/oceanside.css +1 -0
- package/build/oceanside.js +1 -1
- package/build/orangecounty.asset.php +1 -1
- package/build/orangecounty.css +1 -0
- package/build/orangecounty.js +1 -1
- package/build/pasorobles.asset.php +1 -1
- package/build/pasorobles.css +1 -0
- package/build/pasorobles.js +1 -1
- package/build/sacramento.asset.php +1 -1
- package/build/sacramento.css +1 -0
- package/build/sacramento.js +1 -1
- package/build/santabarbara.asset.php +1 -1
- package/build/santabarbara.css +1 -0
- package/build/santabarbara.js +1 -1
- package/build/santacruz.asset.php +1 -1
- package/build/santacruz.css +1 -0
- package/build/santacruz.js +1 -1
- package/build/shasta.asset.php +1 -1
- package/build/shasta.css +1 -0
- package/build/shasta.js +1 -1
- package/build/sierra.asset.php +1 -1
- package/build/sierra.css +1 -0
- package/build/sierra.js +1 -1
- package/build/trinity.asset.php +1 -1
- package/build/trinity.css +1 -0
- package/build/trinity.js +1 -1
- package/package.json +4 -4
- package/src/scripts/components/header.js +62 -32
- package/src/styles/components/structural/_header.scss +1 -1
- package/src/styles/components/structural/_type.scss +3 -2
- package/src/styles/index.scss +1 -1
- package/build/delta.min.asset.php +0 -1
- package/build/delta.min.css +0 -23
- package/build/delta.min.css.map +0 -1
- package/build/delta.min.js +0 -2
- package/build/delta.min.js.map +0 -1
- package/build/eureka.min.asset.php +0 -1
- package/build/eureka.min.css +0 -23
- package/build/eureka.min.css.map +0 -1
- package/build/eureka.min.js +0 -2
- package/build/eureka.min.js.map +0 -1
- package/build/mono.min.asset.php +0 -1
- package/build/mono.min.css +0 -23
- package/build/mono.min.css.map +0 -1
- package/build/mono.min.js +0 -2
- package/build/mono.min.js.map +0 -1
- package/build/oceanside.min.asset.php +0 -1
- package/build/oceanside.min.css +0 -23
- package/build/oceanside.min.css.map +0 -1
- package/build/oceanside.min.js +0 -2
- package/build/oceanside.min.js.map +0 -1
- package/build/orangecounty.min.asset.php +0 -1
- package/build/orangecounty.min.css +0 -23
- package/build/orangecounty.min.css.map +0 -1
- package/build/orangecounty.min.js +0 -2
- package/build/orangecounty.min.js.map +0 -1
- package/build/pasorobles.min.asset.php +0 -1
- package/build/pasorobles.min.css +0 -23
- package/build/pasorobles.min.css.map +0 -1
- package/build/pasorobles.min.js +0 -2
- package/build/pasorobles.min.js.map +0 -1
- package/build/sacramento.min.asset.php +0 -1
- package/build/sacramento.min.css +0 -23
- package/build/sacramento.min.css.map +0 -1
- package/build/sacramento.min.js +0 -2
- package/build/sacramento.min.js.map +0 -1
- package/build/santabarbara.min.asset.php +0 -1
- package/build/santabarbara.min.css +0 -23
- package/build/santabarbara.min.css.map +0 -1
- package/build/santabarbara.min.js +0 -2
- package/build/santabarbara.min.js.map +0 -1
- package/build/santacruz.min.asset.php +0 -1
- package/build/santacruz.min.css +0 -23
- package/build/santacruz.min.css.map +0 -1
- package/build/santacruz.min.js +0 -2
- package/build/santacruz.min.js.map +0 -1
- package/build/shasta.min.asset.php +0 -1
- package/build/shasta.min.css +0 -23
- package/build/shasta.min.css.map +0 -1
- package/build/shasta.min.js +0 -2
- package/build/shasta.min.js.map +0 -1
- package/build/sierra.min.asset.php +0 -1
- package/build/sierra.min.css +0 -23
- package/build/sierra.min.css.map +0 -1
- package/build/sierra.min.js +0 -2
- package/build/sierra.min.js.map +0 -1
- package/build/trinity.min.asset.php +0 -1
- package/build/trinity.min.css +0 -23
- package/build/trinity.min.css.map +0 -1
- package/build/trinity.min.js +0 -2
- package/build/trinity.min.js.map +0 -1
package/build/delta.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '199f529ffe27046b976c');
|
package/build/delta.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/delta.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
package/build/eureka.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'dccc2d572231080464ce');
|
package/build/eureka.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/eureka.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
package/build/mono.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '9044cec209bb8089a88f');
|
package/build/mono.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/mono.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '1f691346f03fd99eb511');
|
package/build/oceanside.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/oceanside.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'f8b0587b1c1ea0d50015');
|
package/build/orangecounty.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/orangecounty.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '89dbf0a697c4d3ff06bb');
|
package/build/pasorobles.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/pasorobles.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'b61aa766421d0d02320a');
|
package/build/sacramento.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/sacramento.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '9dadd276dc1369a2db01');
|
package/build/santabarbara.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/santabarbara.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '17b3f9b9ebbf643603d7');
|
package/build/santacruz.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/santacruz.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
package/build/shasta.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '816e24dbea72ae295128');
|
package/build/shasta.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/shasta.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
package/build/sierra.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '2ac1b3dc6b2f51cfacbd');
|
package/build/sierra.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/sierra.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
package/build/trinity.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => 'ae4151ae76434c63dff3');
|
package/build/trinity.css
CHANGED
|
@@ -14959,6 +14959,7 @@ footer.keywords ul li {
|
|
|
14959
14959
|
----------------------------------------- */
|
|
14960
14960
|
header.global-header {
|
|
14961
14961
|
position: sticky;
|
|
14962
|
+
top: 0;
|
|
14962
14963
|
background-color: var(--bs-white, #fff);
|
|
14963
14964
|
z-index: 15;
|
|
14964
14965
|
transition: all 0.3s ease;
|
package/build/trinity.js
CHANGED
|
@@ -28,7 +28,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n//@ts-check\n\n/* EXTERNAL L
|
|
|
28
28
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
|
|
30
30
|
"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
|
|
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 * 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
32
|
|
|
33
33
|
/***/ },
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/framework",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"description": "Official CAWebPublishing Framework frontend toolkit",
|
|
5
5
|
"author": "CAWebPublishing",
|
|
6
6
|
"homepage": "https://github.com/CAWebPublishing/framework#readme",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@caweb/icon-library": "^1.1.
|
|
30
|
+
"@caweb/icon-library": "^1.1.7",
|
|
31
31
|
"@caweb/template": "^1.0.13",
|
|
32
|
-
"@caweb/webpack": "^1.6.
|
|
32
|
+
"@caweb/webpack": "^1.6.4",
|
|
33
33
|
"@inquirer/prompts": "^8.2.0",
|
|
34
34
|
"animate.css": "^4.1.1",
|
|
35
35
|
"bootstrap": "^5.3.8",
|
|
36
36
|
"bootstrap-forced-colors-css": "^1.0.7",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"cross-spawn": "^7.0.6",
|
|
39
|
-
"fast-xml-parser": "^5.3.
|
|
39
|
+
"fast-xml-parser": "^5.3.5"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"webpack": "webpack",
|