@axos-web-dev/shared-components 1.0.100-dev.75 → 1.0.100-dev.77

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.
Files changed (77) hide show
  1. package/README.md +111 -111
  2. package/dist/Accordion/Accordion.js +3 -3
  3. package/dist/AlertBanner/index.js +1 -1
  4. package/dist/Article/Article.js +1 -1
  5. package/dist/Avatar/Avatar.module.js +7 -7
  6. package/dist/Blockquote/Blockquote.module.js +3 -3
  7. package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
  8. package/dist/Calculators/ApyCalculator/index.js +1 -1
  9. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  10. package/dist/Calculators/MarginTradingCalculator/index.js +1 -1
  11. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +1 -1
  12. package/dist/Calculators/MaxLoanCalculator/index.js +1 -1
  13. package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -1
  14. package/dist/Calculators/MonthlyPaymentLVFCalculator/index.js +1 -1
  15. package/dist/Carousel/index.js +1 -1
  16. package/dist/Chatbot/ChatWindow.js +5 -9
  17. package/dist/Chatbot/Chatbot.js +19 -11
  18. package/dist/Chatbot/ChatbotMessage.js +37 -20
  19. package/dist/ContentBanner/index.js +1 -1
  20. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  21. package/dist/ExecutiveBio/ExecutiveBioSet.js +1 -1
  22. package/dist/FaqAccordion/index.js +1 -1
  23. package/dist/FdicCallout/FdicCallout.module.js +2 -2
  24. package/dist/FooterDisclosure/FooterDisclosure.js +1 -1
  25. package/dist/Forms/ConstructionLendingDynamic.js +27 -1
  26. package/dist/Forms/FormEnums.js +1 -3
  27. package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
  28. package/dist/HeroBanner/HeroBanner.js +2 -2
  29. package/dist/Hyperlink/index.js +3 -2
  30. package/dist/IconBillboard/IconBillboardSet.js +1 -1
  31. package/dist/ImageBillboard/ImageBillboard.js +1 -1
  32. package/dist/Input/Checkbox.js +2 -2
  33. package/dist/Input/DownPaymentInput.js +1 -1
  34. package/dist/Input/Dropdown.js +1 -1
  35. package/dist/Input/Input.js +1 -1
  36. package/dist/Input/InputTextArea.js +1 -1
  37. package/dist/Insight/Featured/Featured.js +2 -2
  38. package/dist/Interstitial/Interstitial.module.js +10 -10
  39. package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
  40. package/dist/Modal/contextApi/store.js +1 -1
  41. package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
  42. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
  43. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
  44. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +27 -27
  45. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
  46. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +3 -0
  47. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
  48. package/dist/NavigationMenu/AxosBank/SubNavBar.js +9 -0
  49. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
  50. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
  51. package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
  52. package/dist/PageNavItem/PageNavItem.js +1 -1
  53. package/dist/SetContainer/SetContainer.js +1 -1
  54. package/dist/StepItem/StepItem.js +1 -1
  55. package/dist/StepItemSet/StepItemSet.js +1 -1
  56. package/dist/Table/Table.js +1 -1
  57. package/dist/Topic/Topic.js +1 -1
  58. package/dist/WalnutIframe/wrapper.module.js +3 -3
  59. package/dist/assets/Avatar/Avatar.css.css +59 -59
  60. package/dist/assets/Blockquote/Blockquote.css.css +72 -72
  61. package/dist/assets/Chatbot/ChatWindow.css +7 -4
  62. package/dist/assets/FdicCallout/FdicCallout.css.css +48 -48
  63. package/dist/assets/Interstitial/Interstitial.css.css +142 -142
  64. package/dist/assets/NavigationMenu/AxosALTS/NavBar.css.css +264 -264
  65. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +609 -609
  66. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +630 -630
  67. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +353 -353
  68. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +445 -445
  69. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +484 -484
  70. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +427 -427
  71. package/dist/assets/NavigationMenu/LaVictoire/NavBar.css.css +429 -429
  72. package/dist/assets/WalnutIframe/wrapper.css.css +48 -48
  73. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
  74. package/dist/utils/appendQueryParams.js +36 -5
  75. package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
  76. package/dist/utils/validateExternalLinks.js +2 -4
  77. package/package.json +1 -1
@@ -1,48 +1,48 @@
1
- @keyframes _shimmer_f1tr5_1 {
2
- from {
3
- transform: translateX(-100%);
4
- }
5
- to {
6
- transform: translateX(100%);
7
- }
8
- }
9
-
10
- ._wrapper_f1tr5_10 {
11
- background: #1e3860;
12
- border-radius: 8px;
13
- height: 555px;
14
- isolation: isolate;
15
- margin-block: 48px;
16
- }
17
-
18
- section > ._wrapper_f1tr5_10:first-child {
19
- margin-top: 0 !important;
20
- }
21
-
22
- ._wrapper_f1tr5_10::before {
23
- content: "";
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- width: 190%;
28
- height: 100%;
29
- background: linear-gradient(
30
- 65deg,
31
- rgba(255, 255, 255, 0) 20%,
32
- rgba(255, 255, 255, 0.5) 50%,
33
- rgba(255, 255, 255, 0) 80%
34
- );
35
- animation: _shimmer_f1tr5_1 1.3s infinite linear;
36
- z-index: -1;
37
- }
38
-
39
- ._wrapper_control_f1tr5_39 {
40
- height: 100%;
41
- width: 100%;
42
- }
43
-
44
- @media (max-width: 1023px) {
45
- ._wrapper_f1tr5_10 {
46
- display: none;
47
- }
48
- }
1
+ @keyframes _shimmer_1wqdl_1 {
2
+ from {
3
+ transform: translateX(-100%);
4
+ }
5
+ to {
6
+ transform: translateX(100%);
7
+ }
8
+ }
9
+
10
+ ._wrapper_1wqdl_19 {
11
+ background: #1e3860;
12
+ border-radius: 8px;
13
+ height: 555px;
14
+ isolation: isolate;
15
+ margin-block: 48px;
16
+ }
17
+
18
+ section > ._wrapper_1wqdl_19:first-child {
19
+ margin-top: 0 !important;
20
+ }
21
+
22
+ ._wrapper_1wqdl_19::before {
23
+ content: "";
24
+ position: absolute;
25
+ top: 0;
26
+ left: 0;
27
+ width: 190%;
28
+ height: 100%;
29
+ background: linear-gradient(
30
+ 65deg,
31
+ rgba(255, 255, 255, 0) 20%,
32
+ rgba(255, 255, 255, 0.5) 50%,
33
+ rgba(255, 255, 255, 0) 80%
34
+ );
35
+ animation: _shimmer_1wqdl_1 1.3s infinite linear;
36
+ z-index: -1;
37
+ }
38
+
39
+ ._wrapper_control_1wqdl_77 {
40
+ height: 100%;
41
+ width: 100%;
42
+ }
43
+
44
+ @media (max-width: 1023px) {
45
+ ._wrapper_1wqdl_19 {
46
+ display: none;
47
+ }
48
+ }
@@ -1,47 +1,47 @@
1
- @keyframes _shimmer_pwl74_1 {
2
- from {
3
- transform: translateX(-100%);
4
- }
5
- to {
6
- transform: translateX(100%);
7
- }
8
- }
9
-
10
- ._loader_pwl74_10 {
11
- height: 100%;
12
- width: 100%;
13
- inset: 0;
14
- }
15
-
16
- ._loading_pwl74_16 {
17
- position: relative;
18
- width: 100%;
19
- height: 100%;
20
- overflow: hidden;
21
- background: #1e3860;
22
- }
23
-
24
- ._1es6o1h0 ._loading_pwl74_16 {
25
- background-color: var(--_1073cm8f);
26
- }
27
-
28
- .fl2fv50 ._loading_pwl74_16 {
29
- background-color: #28587d;
30
- }
31
-
32
- ._loading_pwl74_16::before {
33
- content: "";
34
- position: absolute;
35
- top: 0;
36
- left: 0;
37
- width: 190%;
38
- height: 100%;
39
- background: linear-gradient(
40
- 65deg,
41
- rgba(255, 255, 255, 0) 20%,
42
- rgba(255, 255, 255, 0.5) 50%,
43
- rgba(255, 255, 255, 0) 80%
44
- );
45
- animation: _shimmer_pwl74_1 1.3s infinite linear;
46
- z-index: 1;
47
- }
1
+ @keyframes _shimmer_1cu2x_1 {
2
+ from {
3
+ transform: translateX(-100%);
4
+ }
5
+ to {
6
+ transform: translateX(100%);
7
+ }
8
+ }
9
+
10
+ ._loader_1cu2x_19 {
11
+ height: 100%;
12
+ width: 100%;
13
+ inset: 0;
14
+ }
15
+
16
+ ._loading_1cu2x_31 {
17
+ position: relative;
18
+ width: 100%;
19
+ height: 100%;
20
+ overflow: hidden;
21
+ background: #1e3860;
22
+ }
23
+
24
+ ._1es6o1h0 ._loading_1cu2x_31 {
25
+ background-color: var(--_1073cm8f);
26
+ }
27
+
28
+ .fl2fv50 ._loading_1cu2x_31 {
29
+ background-color: #28587d;
30
+ }
31
+
32
+ ._loading_1cu2x_31::before {
33
+ content: "";
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ width: 190%;
38
+ height: 100%;
39
+ background: linear-gradient(
40
+ 65deg,
41
+ rgba(255, 255, 255, 0) 20%,
42
+ rgba(255, 255, 255, 0.5) 50%,
43
+ rgba(255, 255, 255, 0) 80%
44
+ );
45
+ animation: _shimmer_1cu2x_1 1.3s infinite linear;
46
+ z-index: 1;
47
+ }
@@ -1,8 +1,12 @@
1
1
  const appendQueryParams = () => {
2
- const searchParams = new URLSearchParams(window.location.search);
3
- const filterParams = (href) => {
2
+ const currentOrigin = window.location.origin;
3
+ const currentPathname = window.location.pathname;
4
+ const filterParams = (href, currentSearch) => {
4
5
  try {
5
- const url = new URL(href, window.location.origin);
6
+ const search = currentSearch ?? window.location.search;
7
+ const searchParams = new URLSearchParams(search);
8
+ const base = window.location.origin + window.location.pathname + window.location.search;
9
+ const url = new URL(href, base);
6
10
  const existingParams = new URLSearchParams(url.search);
7
11
  const newParams = new URLSearchParams();
8
12
  const addedKeys = /* @__PURE__ */ new Set();
@@ -25,17 +29,44 @@ const appendQueryParams = () => {
25
29
  }
26
30
  const mergedParams = new URLSearchParams(existingParams);
27
31
  newParams.forEach((value, key) => mergedParams.append(key, value));
28
- return `${url.origin}${url.pathname}?${mergedParams.toString()}`;
32
+ return `${url.origin}${url.pathname}?${mergedParams.toString()}${url.hash}`;
29
33
  } catch (e) {
30
34
  console.error(e);
31
35
  return href;
32
36
  }
33
37
  };
38
+ const handleSamePageClick = (e) => {
39
+ const anchor = e.target?.closest?.("a[href]");
40
+ if (!anchor || anchor.classList.contains("ext-link"))
41
+ return;
42
+ const href = anchor.getAttribute("href")?.trim();
43
+ if (!href || href.startsWith("tel:") || href.startsWith("mailto:") || href === "#" || href === "" || href.startsWith("#"))
44
+ return;
45
+ const base = window.location.origin + window.location.pathname + window.location.search;
46
+ const url = new URL(href, base);
47
+ if (url.origin !== currentOrigin || url.pathname !== currentPathname)
48
+ return;
49
+ e.preventDefault();
50
+ e.stopImmediatePropagation();
51
+ const merged = filterParams(href, window.location.search);
52
+ const mergedUrl = new URL(merged, window.location.origin);
53
+ const fullUrl = `${mergedUrl.pathname}${mergedUrl.search}${mergedUrl.hash}`;
54
+ window.history.replaceState({ ...window.history.state }, "", fullUrl);
55
+ window.dispatchEvent(
56
+ new PopStateEvent("popstate", { state: window.history.state })
57
+ );
58
+ if (mergedUrl.hash) {
59
+ const el = document.querySelector(mergedUrl.hash);
60
+ el?.scrollIntoView({ behavior: "smooth" });
61
+ }
62
+ };
63
+ document.addEventListener("click", handleSamePageClick, true);
34
64
  if (window.location.search.length) {
65
+ const searchParams = new URLSearchParams(window.location.search);
35
66
  document.querySelectorAll("a[href]:not(.ext-link)").forEach((anchor) => {
36
67
  const href = anchor.getAttribute("href")?.trim();
37
68
  if (href && !href.startsWith("tel:") && !href.startsWith("mailto:") && href !== "#" && href !== "" && !href.startsWith("#")) {
38
- anchor.href = filterParams(href);
69
+ anchor.href = filterParams(href, searchParams.toString());
39
70
  }
40
71
  });
41
72
  }
@@ -1,6 +1,6 @@
1
- import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "_loader_pwl74_10";
2
- const loading = "_loading_pwl74_16";
3
- const shimmer = "_shimmer_pwl74_1";
1
+ import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "_loader_1cu2x_19";
2
+ const loading = "_loading_1cu2x_31";
3
+ const shimmer = "_shimmer_1cu2x_1";
4
4
  const css = {
5
5
  loader,
6
6
  loading,
@@ -8,12 +8,10 @@ const shortUrl = (url) => {
8
8
  return uri.hostname;
9
9
  };
10
10
  const isEmailLink = (url) => {
11
- const uri = new URL(url, location.href);
12
- return uri.protocol == "mailto:";
11
+ return typeof url === "string" && url.trim().toLowerCase().startsWith("mailto:");
13
12
  };
14
13
  const isPhoneLink = (url) => {
15
- const uri = new URL(url, location.href);
16
- return uri.protocol === "tel:";
14
+ return typeof url === "string" && url.trim().toLowerCase().startsWith("tel:");
17
15
  };
18
16
  const validateLink = (url) => {
19
17
  let openModal = false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "1.0.100-dev.75",
4
+ "version": "1.0.100-dev.77",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",