@triptease/tt-navbar 0.0.62 → 0.0.65

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 (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +11 -15
  3. package/demo/index.html +3 -6
  4. package/dist/src/Config.js.map +1 -1
  5. package/dist/src/TtNavbar.js +9 -16
  6. package/dist/src/TtNavbar.js.map +1 -1
  7. package/dist/src/getInitialNavbarState.js +2 -5
  8. package/dist/src/getInitialNavbarState.js.map +1 -1
  9. package/dist/src/styles.js +1 -3
  10. package/dist/src/styles.js.map +1 -1
  11. package/dist/src/triptease-logo.js.map +1 -1
  12. package/dist/test/tt-navbar.test.js +11 -29
  13. package/dist/test/tt-navbar.test.js.map +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -0
  15. package/dist/web/Config.js +1 -1
  16. package/dist/web/Config.js.map +1 -1
  17. package/dist/web/Routes.js +1 -1
  18. package/dist/web/TtNavbar.js +323 -225
  19. package/dist/web/TtNavbar.js.map +4 -4
  20. package/dist/web/getInitialNavbarState.js +1 -1
  21. package/dist/web/getInitialNavbarState.js.map +2 -2
  22. package/dist/web/global.d.js +1 -1
  23. package/dist/web/index.js +323 -225
  24. package/dist/web/index.js.map +4 -4
  25. package/dist/web/styles.js +2 -4
  26. package/dist/web/styles.js.map +2 -2
  27. package/dist/web/triptease-logo.js +1 -1
  28. package/dist/web/triptease-logo.js.map +2 -2
  29. package/dist/web/tt-navbar.js +323 -225
  30. package/dist/web/tt-navbar.js.map +4 -4
  31. package/dist/web/urlMappings.js +1 -1
  32. package/package.json +7 -52
  33. package/src/Config.ts +2 -2
  34. package/src/TtNavbar.ts +16 -23
  35. package/src/getInitialNavbarState.ts +2 -7
  36. package/src/styles.ts +1 -3
  37. package/src/triptease-logo.ts +2 -2
  38. package/test/tt-navbar.test.ts +52 -137
  39. package/web-test-runner.config.js +1 -1
  40. package/.husky/pre-commit +0 -1
  41. package/.storybook/main.js +0 -8
  42. package/.storybook/preview-head.html +0 -7
package/dist/web/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.62
2
+ * @triptease/tt-navbar v0.0.64
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __decorateClass = (decorators, target, key, kind) => {
7
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ var __decorateClass = (decorators, target2, key, kind) => {
7
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target2, key) : target2;
8
8
  for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
9
9
  if (decorator = decorators[i7])
10
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
- if (kind && result) __defProp(target, key, result);
10
+ result = (kind ? decorator(target2, key, result) : decorator(result)) || result;
11
+ if (kind && result) __defProp(target2, key, result);
12
12
  return result;
13
13
  };
14
14
 
@@ -686,22 +686,22 @@ var t4 = class extends e8 {
686
686
  t4.directiveName = "unsafeSVG", t4.resultType = 2;
687
687
  var o8 = e7(t4);
688
688
 
689
- // node_modules/@triptease/icons/dist/src/icons/alert.js
689
+ // ../icons/dist/src/icons/alert.js
690
690
  var alert = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
691
691
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM9.25 5.75C9.25 5.33579 9.58579 5 10 5C10.4142 5 10.75 5.33579 10.75 5.75V11.25C10.75 11.6642 10.4142 12 10 12C9.58579 12 9.25 11.6642 9.25 11.25V5.75ZM10.75 13.75C10.75 14.1642 10.4142 14.5 10 14.5C9.58579 14.5 9.25 14.1642 9.25 13.75C9.25 13.3358 9.58579 13 10 13C10.4142 13 10.75 13.3358 10.75 13.75Z" fill="#3B353B"/>
692
692
  </svg>`;
693
693
 
694
- // node_modules/@triptease/icons/dist/src/icons/campaigns.js
694
+ // ../icons/dist/src/icons/campaigns.js
695
695
  var campaigns = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
696
696
  <path fill-rule="evenodd" clip-rule="evenodd" d="M13.75 11C13.75 9.47056 14.1646 8.11984 14.7956 7.17338C15.1658 6.61803 15.5905 6.22612 16.0341 5.99602L17.0795 5.75165C17.8298 5.78274 18.5916 6.25415 19.2044 7.17338C19.8354 8.11984 20.25 9.47056 20.25 11C20.25 12.5294 19.8354 13.8802 19.2044 14.8266C18.5916 15.7458 17.8298 16.2173 17.0794 16.2484L16.0341 16.004C15.5905 15.7739 15.1659 15.382 14.7956 14.8266C14.1646 13.8802 13.75 12.5294 13.75 11ZM12.25 11C12.25 9.3468 12.6627 7.80949 13.373 6.61808L5.48783 8.46138C4.46994 8.69932 3.75 9.60698 3.75 10.6523V11.3477C3.75 12.393 4.46994 13.3007 5.48783 13.5386L13.373 15.3819C12.6627 14.1905 12.25 12.6532 12.25 11ZM5.14639 7.00075L15.5263 4.57427C15.9817 4.36663 16.4756 4.25 17 4.25C18.4334 4.25 19.6392 5.12146 20.4525 6.34133C21.2692 7.56645 21.75 9.21573 21.75 11C21.75 12.7843 21.2692 14.4335 20.4525 15.6587C19.6392 16.8785 18.4334 17.75 17 17.75C16.4756 17.75 15.9817 17.6334 15.5263 17.4257L11.75 16.5429V17.5C11.75 19.2949 10.2949 20.75 8.5 20.75C6.70507 20.75 5.25 19.2949 5.25 17.5V15.0235L5.14639 14.9992C3.4499 14.6027 2.25 13.0899 2.25 11.3477V10.6523C2.25 8.91009 3.4499 7.39734 5.14639 7.00075ZM6.75 15.3741V17.5C6.75 18.4665 7.5335 19.25 8.5 19.25C9.4665 19.25 10.25 18.4665 10.25 17.5V16.1923L6.75 15.3741Z" />
697
697
  </svg>`;
698
698
 
699
- // node_modules/@triptease/icons/dist/src/icons/channels.js
699
+ // ../icons/dist/src/icons/channels.js
700
700
  var channels = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
701
701
  <path d="M18 3C19.6569 3 21 4.34315 21 6C21 7.65685 19.6569 9 18 9C17.4435 9 16.9243 8.84513 16.4775 8.58105L15.3076 9.75098C15.7443 10.3919 16 11.166 16 12C16 12.8334 15.7437 13.6064 15.3076 14.2471L16.4775 15.417C16.9241 15.1532 17.4438 15 18 15C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 17.4438 15.1532 16.9241 15.417 16.4775L14.2471 15.3076C13.6064 15.7437 12.8334 16 12 16C11.166 16 10.3919 15.7443 9.75098 15.3076L8.58105 16.4775C8.84513 16.9243 9 17.4435 9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.3431 4.34315 15 6 15C6.55558 15 7.07429 15.1538 7.52051 15.417L8.69141 14.2471C8.2555 13.6065 8 12.8332 8 12C8 11.1665 8.25523 10.3927 8.69141 9.75195L7.52148 8.58203C7.07501 8.84569 6.55606 9 6 9C4.34315 9 3 7.65685 3 6C3 4.34315 4.34315 3 6 3C7.65685 3 9 4.34315 9 6C9 6.55606 8.84569 7.07501 8.58203 7.52148L9.75195 8.69141C9.73784 8.70101 9.72394 8.71092 9.70996 8.7207C10.3587 8.26679 11.1481 8 12 8C12.833 8 13.6066 8.25472 14.2471 8.69043L15.417 7.52051C15.1538 7.07429 15 6.55558 15 6C15 4.34315 16.3431 3 18 3ZM6 16.5C5.17157 16.5 4.5 17.1716 4.5 18C4.5 18.8284 5.17157 19.5 6 19.5C6.82843 19.5 7.5 18.8284 7.5 18C7.5 17.1716 6.82843 16.5 6 16.5ZM18 16.5C17.1716 16.5 16.5 17.1716 16.5 18C16.5 18.8284 17.1716 19.5 18 19.5C18.8284 19.5 19.5 18.8284 19.5 18C19.5 17.1716 18.8284 16.5 18 16.5ZM12 9.5C10.6193 9.5 9.5 10.6193 9.5 12C9.5 13.3807 10.6193 14.5 12 14.5C13.3807 14.5 14.5 13.3807 14.5 12C14.5 10.6193 13.3807 9.5 12 9.5ZM6 4.5C5.17157 4.5 4.5 5.17157 4.5 6C4.5 6.82843 5.17157 7.5 6 7.5C6.82843 7.5 7.5 6.82843 7.5 6C7.5 5.17157 6.82843 4.5 6 4.5ZM18 4.5C17.1716 4.5 16.5 5.17157 16.5 6C16.5 6.82843 17.1716 7.5 18 7.5C18.8284 7.5 19.5 6.82843 19.5 6C19.5 5.17157 18.8284 4.5 18 4.5Z" />
702
702
  </svg>`;
703
703
 
704
- // node_modules/@triptease/icons/dist/src/icons/chevron-down.js
704
+ // ../icons/dist/src/icons/chevron-down.js
705
705
  var chevronDown = `
706
706
  <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-chevron-down chevron-down"
707
707
  viewBox="0 0 16 16" role="presentation">
@@ -710,53 +710,53 @@ var chevronDown = `
710
710
  stroke="currentColor"/>
711
711
  </svg>`;
712
712
 
713
- // node_modules/@triptease/icons/dist/src/icons/external.js
713
+ // ../icons/dist/src/icons/external.js
714
714
  var external = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
715
715
  <path d="M6 2C6.41421 2 6.75 2.33579 6.75 2.75C6.75 3.16421 6.41421 3.5 6 3.5H4.75C4.05964 3.5 3.5 4.05964 3.5 4.75V11.25C3.5 11.9404 4.05964 12.5 4.75 12.5H11.25C11.9404 12.5 12.5 11.9404 12.5 11.25V10C12.5 9.58579 12.8358 9.25 13.25 9.25C13.6642 9.25 14 9.58579 14 10V11.25C14 12.7688 12.7688 14 11.25 14H4.75C3.23122 14 2 12.7688 2 11.25V4.75C2 3.23122 3.23122 2 4.75 2H6ZM14 6C14 6.41421 13.6642 6.75 13.25 6.75C12.8358 6.75 12.5 6.41421 12.5 6V4.56055L8.03027 9.03027C7.73738 9.32317 7.26262 9.32317 6.96973 9.03027C6.67683 8.73738 6.67683 8.26262 6.96973 7.96973L11.4395 3.5H10C9.58579 3.5 9.25 3.16421 9.25 2.75C9.25 2.33579 9.58579 2 10 2H14V6Z" fill="#D3D3DA"/>
716
716
  </svg>`;
717
717
 
718
- // node_modules/@triptease/icons/dist/src/icons/gear.js
718
+ // ../icons/dist/src/icons/gear.js
719
719
  var gear = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
720
720
  <path d="M13.4678 2C13.9142 2.00002 14.307 2.2963 14.4297 2.72559L15.0049 4.74219L16.8398 3.72363C17.1813 3.53396 17.5973 3.56262 17.9072 3.78418L18.0332 3.89062L20.1084 5.9668C20.4241 6.2825 20.4932 6.76987 20.2764 7.16016L19.2568 8.99316L21.2744 9.57031C21.6502 9.67769 21.9239 9.9921 21.9863 10.3682L22 10.5322V13.4678C22 13.9142 21.7037 14.307 21.2744 14.4297L19.2568 15.0049L20.2764 16.8398C20.4661 17.1813 20.4374 17.5972 20.2158 17.9072L20.1094 18.0332L18.0332 20.1084C17.7175 20.4241 17.2301 20.4932 16.8398 20.2764L15.0049 19.2568L14.4297 21.2744C14.3223 21.6502 14.0079 21.9239 13.6318 21.9863L13.4678 22H10.5322C10.0858 22 9.69297 21.7037 9.57031 21.2744L8.99316 19.2568L7.16016 20.2764C6.81867 20.466 6.40275 20.4374 6.09277 20.2158L5.9668 20.1094L3.8916 18.0332C3.5759 17.7175 3.50683 17.2301 3.72363 16.8398L4.74219 15.0059L2.72559 14.4297C2.34982 14.3223 2.07606 14.0079 2.01367 13.6318L2 13.4678V10.5322C2.00005 10.0858 2.29632 9.69296 2.72559 9.57031L4.74219 8.99316L3.72363 7.16016C3.53394 6.81866 3.5626 6.40276 3.78418 6.09277L3.89062 5.9668L5.9668 3.8916C6.28251 3.57589 6.76986 3.5068 7.16016 3.72363L8.99316 4.74219L9.57031 2.72559C9.67768 2.34981 9.99209 2.07606 10.3682 2.01367L10.5322 2H13.4678ZM10.4014 5.27148C9.70554 5.47089 9.05368 5.77388 8.46484 6.16504L6.76074 5.21875L5.21777 6.76074L6.22363 8.57031L6.23242 8.56738C5.91398 9.13213 5.67275 9.74545 5.52051 10.3936L5.49023 10.3398L3.5 10.9092V13.0908L5.49121 13.6592L5.52051 13.6055C5.67256 14.2532 5.91338 14.8662 6.23145 15.4307L6.22363 15.4287L5.21875 17.2393L5.21777 17.2383V17.2393H5.21875L6.76074 18.7822L8.46484 17.834C9.05398 18.2254 9.7061 18.5281 10.4023 18.7275L10.9092 20.5H13.0908L13.5488 18.8916C14.3898 18.7443 15.1787 18.4482 15.8877 18.0293L17.2393 18.7812L18.7822 17.2393L18.085 15.9863C18.6037 15.2393 18.9814 14.3876 19.1777 13.4678L20.5 13.0908V10.9092L19.1777 10.5303C18.9812 9.61065 18.6038 8.75856 18.085 8.01172L18.7812 6.76074L17.2393 5.21777L15.8857 5.96875C15.1773 5.55053 14.389 5.25458 13.5488 5.10742L13.0908 3.5H10.9092L10.4014 5.27148ZM12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8ZM12 9.5C10.6193 9.5 9.5 10.6193 9.5 12C9.5 13.3807 10.6193 14.5 12 14.5C13.3807 14.5 14.5 13.3807 14.5 12C14.5 10.6193 13.3807 9.5 12 9.5Z" />
721
721
  <path d="M13.6328 2.01367C14.0085 2.07631 14.3224 2.35007 14.4297 2.72559L15.0049 4.74219L16.8398 3.72363C17.1813 3.53396 17.5973 3.56262 17.9072 3.78418L18.0332 3.89062L20.1084 5.9668L20.2158 6.09277C20.4372 6.40274 20.466 6.81875 20.2764 7.16016L19.2568 8.99316L21.2744 9.57031C21.6502 9.67769 21.9239 9.9921 21.9863 10.3682L22 10.5322V13.4678L21.9863 13.6328C21.9237 14.0085 21.6499 14.3224 21.2744 14.4297L19.2568 15.0049L20.2764 16.8398C20.4661 17.1813 20.4374 17.5972 20.2158 17.9072L20.1094 18.0332L18.0332 20.1084L17.9072 20.2158C17.5973 20.4372 17.1813 20.466 16.8398 20.2764L15.0049 19.2568L14.4297 21.2744C14.3223 21.6502 14.0079 21.9239 13.6318 21.9863L13.4678 22H10.5322L10.3672 21.9863C9.99146 21.9237 9.6776 21.6499 9.57031 21.2744L8.99316 19.2568L7.16016 20.2764C6.81867 20.466 6.40275 20.4374 6.09277 20.2158L5.9668 20.1094L3.8916 18.0332L3.78418 17.9072C3.56278 17.5973 3.53398 17.1812 3.72363 16.8398L4.74219 15.0059L2.72559 14.4297C2.34982 14.3223 2.07606 14.0079 2.01367 13.6318L2 13.4678V10.5322L2.01367 10.3672C2.07633 9.99149 2.35009 9.6776 2.72559 9.57031L4.74219 8.99316L3.72363 7.16016C3.53394 6.81866 3.5626 6.40276 3.78418 6.09277L3.89062 5.9668L5.9668 3.8916L6.09277 3.78418C6.40275 3.56277 6.81875 3.53396 7.16016 3.72363L8.99316 4.74219L9.57031 2.72559C9.67768 2.34981 9.99209 2.07606 10.3682 2.01367L10.5322 2H13.4678L13.6328 2.01367ZM10.4014 5.27148C9.70554 5.47089 9.05368 5.77388 8.46484 6.16504L6.76074 5.21875L5.21777 6.76074L6.22363 8.57031L6.23242 8.56738C5.91398 9.13213 5.67275 9.74545 5.52051 10.3936L5.49023 10.3398L3.5 10.9092V13.0908L5.49121 13.6592L5.52051 13.6055C5.67256 14.2532 5.91338 14.8662 6.23145 15.4307L6.22363 15.4287L5.21875 17.2393L5.21777 17.2383V17.2393H5.21875L6.76074 18.7822L8.46484 17.834C9.05398 18.2254 9.7061 18.5281 10.4023 18.7275L10.9092 20.5H13.0908L13.5488 18.8916C14.3898 18.7443 15.1787 18.4482 15.8877 18.0293L17.2393 18.7812L18.7822 17.2393L18.085 15.9863C18.6037 15.2393 18.9814 14.3876 19.1777 13.4678L20.5 13.0908V10.9092L19.1777 10.5303C18.9812 9.61065 18.6038 8.75856 18.085 8.01172L18.7812 6.76074L17.2393 5.21777L15.8857 5.96875C15.1773 5.55053 14.389 5.25458 13.5488 5.10742L13.0908 3.5H10.9092L10.4014 5.27148ZM12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8ZM12 9.5C10.6193 9.5 9.5 10.6193 9.5 12C9.5 13.3807 10.6193 14.5 12 14.5C13.3807 14.5 14.5 13.3807 14.5 12C14.5 10.6193 13.3807 9.5 12 9.5Z" />
722
722
  </svg>`;
723
723
 
724
- // node_modules/@triptease/icons/dist/src/icons/graph.js
724
+ // ../icons/dist/src/icons/graph.js
725
725
  var graph = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
726
726
  <path d="M18.1543 3.00391C19.7394 3.08421 21 4.39489 21 6V18L20.9961 18.1543C20.9184 19.6883 19.6883 20.9184 18.1543 20.9961L18 21H6C4.39489 21 3.08421 19.7394 3.00391 18.1543L3 18V6C3 4.34315 4.34315 3 6 3H18L18.1543 3.00391ZM6 4.5C5.17157 4.5 4.5 5.17157 4.5 6V18C4.5 18.8284 5.17157 19.5 6 19.5H18C18.8284 19.5 19.5 18.8284 19.5 18V6C19.5 5.17157 18.8284 4.5 18 4.5H6ZM8 9C8.41421 9 8.75 9.33579 8.75 9.75V16.25C8.75 16.6642 8.41421 17 8 17C7.58579 17 7.25 16.6642 7.25 16.25V9.75C7.25 9.33579 7.58579 9 8 9ZM12 12C12.4142 12 12.75 12.3358 12.75 12.75V16.25C12.75 16.6642 12.4142 17 12 17C11.5858 17 11.25 16.6642 11.25 16.25V12.75C11.25 12.3358 11.5858 12 12 12ZM16 9C16.4142 9 16.75 9.33579 16.75 9.75V16.25C16.75 16.6642 16.4142 17 16 17C15.5858 17 15.25 16.6642 15.25 16.25V9.75C15.25 9.33579 15.5858 9 16 9Z" />
727
727
  </svg>`;
728
728
 
729
- // node_modules/@triptease/icons/dist/src/icons/home.js
729
+ // ../icons/dist/src/icons/home.js
730
730
  var home = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
731
731
  <path d="M10.7725 3.95499C11.4946 3.39358 12.5054 3.39358 13.2275 3.95499L20.2275 9.39936C20.7146 9.77822 20.9999 10.3614 21 10.9785V18C21 19.6051 19.7394 20.9158 18.1543 20.9961L18 21H6C4.39489 21 3.08421 19.7394 3.00391 18.1543L3 18V10.9785C3.00007 10.4386 3.21792 9.92445 3.59863 9.55073L3.77246 9.39936L10.7725 3.95499ZM12.3066 5.13859C12.1263 4.99869 11.8737 4.99869 11.6934 5.13859L4.69336 10.583C4.57163 10.6776 4.50008 10.8243 4.5 10.9785V18C4.5 18.8284 5.17157 19.5 6 19.5H8V16C8.00014 14.3432 9.34323 13 11 13H13C14.6568 13 15.9999 14.3432 16 16V19.5H18C18.8284 19.5 19.5 18.8284 19.5 18V10.9785C19.4999 10.8243 19.4284 10.6776 19.3066 10.583L12.3066 5.13859ZM11 14.5C10.1717 14.5 9.50014 15.1717 9.5 16V19.5H14.5V16C14.4999 15.1717 13.8283 14.5 13 14.5H11Z" />
732
732
  </svg>`;
733
733
 
734
- // node_modules/@triptease/icons/dist/src/icons/logout.js
734
+ // ../icons/dist/src/icons/logout.js
735
735
  var logout = `<svg width="17" height="20" viewBox="0 0 17 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
736
736
  <path d="M12 0C12.4142 0 12.75 0.335786 12.75 0.75C12.75 1.16421 12.4142 1.5 12 1.5H3.75C2.50736 1.5 1.5 2.50736 1.5 3.75V16.25C1.5 17.4926 2.50736 18.5 3.75 18.5H12C12.4142 18.5 12.75 18.8358 12.75 19.25C12.75 19.6642 12.4142 20 12 20H3.75C1.67893 20 0 18.3211 0 16.25V3.75C2.57706e-07 1.67893 1.67893 1.28851e-07 3.75 0H12ZM10.7197 5.71973C11.0125 5.42693 11.4874 5.42713 11.7803 5.71973L16.0605 10L11.7803 14.2803C11.4874 14.5729 11.0126 14.573 10.7197 14.2803C10.4272 13.9874 10.4272 13.5125 10.7197 13.2197L13.1895 10.75H6.5C6.08605 10.7498 5.7501 10.414 5.75 10C5.75009 9.58601 6.08604 9.25023 6.5 9.25H13.1895L10.7197 6.78027C10.4272 6.48743 10.4272 6.01254 10.7197 5.71973Z" />
737
737
  </svg>`;
738
738
 
739
- // node_modules/@triptease/icons/dist/src/icons/sidebar-collapsed.js
739
+ // ../icons/dist/src/icons/sidebar-collapsed.js
740
740
  var sidebarCollapsed = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
741
741
  <path d="M17 3.25C19.0711 3.25 20.75 4.92893 20.75 7V17C20.75 19.0711 19.0711 20.75 17 20.75H7C4.92893 20.75 3.25 19.0711 3.25 17V7C3.25 4.92893 4.92893 3.25 7 3.25H17ZM10 19.25H17C18.2426 19.25 19.25 18.2426 19.25 17V7C19.25 5.75736 18.2426 4.75 17 4.75H10V19.25Z"/>
742
742
  </svg>`;
743
743
 
744
- // node_modules/@triptease/icons/dist/src/icons/user.js
744
+ // ../icons/dist/src/icons/user.js
745
745
  var user = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
746
746
  <path d="M12 2C17.5228 2 22 6.47715 22 12C22 15.2098 20.4857 18.0638 18.1348 19.8936C18.0344 20.055 17.8763 20.1738 17.6875 20.2227C16.0725 21.3418 14.1137 22 12 22C9.88604 22 7.92664 21.3421 6.31152 20.2227C6.12294 20.1736 5.96441 20.055 5.86426 19.8936C3.51367 18.0638 2 15.2095 2 12C2 6.47715 6.47715 2 12 2ZM11.25 15.5C9.1884 15.5 7.49093 17.0597 7.27344 19.0635C8.62515 19.9698 10.2503 20.5 12 20.5C13.7494 20.5 15.374 19.9695 16.7256 19.0635C16.508 17.0598 14.8116 15.5 12.75 15.5H11.25ZM12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 14.3333 4.44073 16.4464 5.96289 17.9824C6.62169 15.683 8.73895 14 11.25 14H12.75C15.2609 14 17.3772 15.6832 18.0361 17.9824C19.5586 16.4464 20.5 14.3335 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5ZM12 5.25C14.0711 5.25 15.75 6.92893 15.75 9C15.75 11.0711 14.0711 12.75 12 12.75C9.92893 12.75 8.25 11.0711 8.25 9C8.25 6.92893 9.92893 5.25 12 5.25ZM12 6.75C10.7574 6.75 9.75 7.75736 9.75 9C9.75 10.2426 10.7574 11.25 12 11.25C13.2426 11.25 14.25 10.2426 14.25 9C14.25 7.75736 13.2426 6.75 12 6.75Z" />
747
747
  </svg>`;
748
748
 
749
- // node_modules/@triptease/icons/dist/src/icons/wallet.js
749
+ // ../icons/dist/src/icons/wallet.js
750
750
  var wallet = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
751
751
  <path d="M14.2275 3.02681C16.5581 2.53634 18.7497 4.3152 18.75 6.69674V7.09518C20.0437 7.42823 20.9998 8.60187 21 9.99948V16.9995C21 18.6046 19.7394 19.9153 18.1543 19.9956L18 19.9995H6C4.39489 19.9995 3.08421 18.7389 3.00391 17.1538L3 16.9995V8.43405C3.00022 6.66092 4.2424 5.12941 5.97754 4.76412L14.2275 3.02681ZM6 8.49948C5.17173 8.49948 4.50026 9.17127 4.5 9.99948V16.9995C4.5 17.8279 5.17157 18.4995 6 18.4995H18C18.8284 18.4995 19.5 17.8279 19.5 16.9995V9.99948C19.4997 9.17127 18.8283 8.49948 18 8.49948H6ZM16.5 11.9995C17.3283 11.9995 17.9997 12.6713 18 13.4995C18 14.3279 17.3284 14.9995 16.5 14.9995C15.6716 14.9995 15 14.3279 15 13.4995C15.0003 12.6713 15.6717 11.9995 16.5 11.9995ZM17.25 6.69674C17.2497 5.26791 15.9344 4.20028 14.5361 4.49459L6.28613 6.2319C5.67607 6.36042 5.16896 6.73055 4.85254 7.22799C5.20609 7.08147 5.59347 6.99948 6 6.99948H17.25V6.69674Z" />
752
752
  </svg>`;
753
753
 
754
754
  // ../../node_modules/tslib/tslib.es6.mjs
755
- function __decorate(decorators, target, key, desc) {
756
- var c5 = arguments.length, r8 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
757
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r8 = Reflect.decorate(decorators, target, key, desc);
758
- else for (var i7 = decorators.length - 1; i7 >= 0; i7--) if (d3 = decorators[i7]) r8 = (c5 < 3 ? d3(r8) : c5 > 3 ? d3(target, key, r8) : d3(target, key)) || r8;
759
- return c5 > 3 && r8 && Object.defineProperty(target, key, r8), r8;
755
+ function __decorate(decorators, target2, key, desc) {
756
+ var c5 = arguments.length, r8 = c5 < 3 ? target2 : desc === null ? desc = Object.getOwnPropertyDescriptor(target2, key) : desc, d3;
757
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r8 = Reflect.decorate(decorators, target2, key, desc);
758
+ else for (var i7 = decorators.length - 1; i7 >= 0; i7--) if (d3 = decorators[i7]) r8 = (c5 < 3 ? d3(r8) : c5 > 3 ? d3(target2, key, r8) : d3(target2, key)) || r8;
759
+ return c5 > 3 && r8 && Object.defineProperty(target2, key, r8), r8;
760
760
  }
761
761
 
762
762
  // ../../node_modules/lit-html/directives/if-defined.js
@@ -870,7 +870,7 @@ var i6 = e7(class extends i5 {
870
870
  }
871
871
  });
872
872
 
873
- // node_modules/@triptease/tt-combobox/dist/src/styles.js
873
+ // ../tt-combobox/dist/src/styles.js
874
874
  var styles = i`
875
875
  :host {
876
876
  display: flex;
@@ -921,11 +921,11 @@ var styles = i`
921
921
  height: 20px;
922
922
  }
923
923
 
924
- .tt-combobox-container:has([role="combobox"][aria-invalid="true"]) ~ .errormessage {
924
+ .tt-combobox-container:has([role='combobox'][aria-invalid='true']) ~ .errormessage {
925
925
  visibility: visible;
926
926
  }
927
927
 
928
- :has([role="combobox"][aria-invalid="true"]) ::slotted([slot="error"]) {
928
+ :has([role='combobox'][aria-invalid='true']) ::slotted([slot='error']) {
929
929
  color: var(--color-alert-400, darkred);
930
930
  font-size: var(--font-size-100);
931
931
  margin: 0;
@@ -933,7 +933,7 @@ var styles = i`
933
933
  line-height: 1.2;
934
934
  }
935
935
 
936
- slot[name="option"]::slotted(*) {
936
+ slot[name='option']::slotted(*) {
937
937
  display: none;
938
938
  }
939
939
 
@@ -960,11 +960,11 @@ var styles = i`
960
960
  //width: 100%;
961
961
  }
962
962
 
963
- [role="listbox"] {
963
+ [role='listbox'] {
964
964
  display: none;
965
965
  }
966
966
 
967
- [role="combobox"] {
967
+ [role='combobox'] {
968
968
  width: 100%;
969
969
  border-style: none;
970
970
  background-color: transparent;
@@ -975,26 +975,26 @@ var styles = i`
975
975
  caret-color: transparent;
976
976
  }
977
977
 
978
- [role="combobox"]::placeholder {
978
+ [role='combobox']::placeholder {
979
979
  color: var(--tt-combobox-placeholder-color, var(--color-text-300));
980
980
  font-family: var(--font-family-inter);
981
981
  font-size: var(--tt-combobox-font-size, var(--font-size-200));
982
982
  }
983
983
 
984
- :host([disabled]) [role="combobox"]::placeholder {
984
+ :host([disabled]) [role='combobox']::placeholder {
985
985
  color: var(--tt-combobox-disabled-placeholder-color, var(--color-text-200));
986
986
  }
987
987
 
988
- [role="combobox"]:placeholder-shown {
988
+ [role='combobox']:placeholder-shown {
989
989
  text-overflow: ellipsis;
990
990
  overflow: clip;
991
991
  }
992
992
 
993
- [role="combobox"]:focus {
993
+ [role='combobox']:focus {
994
994
  outline: none;
995
995
  }
996
996
 
997
- [role="combobox"] ~ button {
997
+ [role='combobox'] ~ button {
998
998
  appearance: none;
999
999
  padding: 0;
1000
1000
  border-width: 0;
@@ -1002,16 +1002,16 @@ var styles = i`
1002
1002
  aspect-ratio: 1;
1003
1003
  }
1004
1004
 
1005
- [role="combobox"] ~ button svg {
1005
+ [role='combobox'] ~ button svg {
1006
1006
  transition: transform 0.2s ease-in-out;
1007
1007
  color: var(--tt-combobox-dropdown-color, var(--color-text-400));
1008
1008
  }
1009
1009
 
1010
- [role="combobox"][aria-expanded="true"] ~ button svg {
1010
+ [role='combobox'][aria-expanded='true'] ~ button svg {
1011
1011
  transform: rotate(180deg);
1012
1012
  }
1013
1013
 
1014
- [role="combobox"][aria-expanded="true"] ~ [role="listbox"] {
1014
+ [role='combobox'][aria-expanded='true'] ~ [role='listbox'] {
1015
1015
  display: block;
1016
1016
  width: max-content;
1017
1017
  max-width: var(--tt-combobox-list-max-width, 35ch);
@@ -1032,114 +1032,55 @@ var styles = i`
1032
1032
  max-height: var(--tt-combobox-max-height, 400px);
1033
1033
  overflow-y: auto;
1034
1034
 
1035
-
1036
- li {
1037
- display: flex;
1038
- padding: 0.5rem;
1039
- box-sizing: border-box;
1040
- text-align: left;
1041
- text-overflow: ellipsis;
1042
- text-wrap: nowrap;
1043
- align-items: center;
1044
- gap: 0.25rem;
1045
- max-width: 100%;
1046
- width: 100%;
1047
- overflow-y: visible;
1048
- flex: 1;
1049
-
1050
-
1051
- input[type="checkbox"] {
1052
- width: var(--checkbox-size, var(--space-scale-2));
1053
- aspect-ratio: 1;
1054
- flex: 0 0 auto;
1055
- }
1056
-
1057
- span {
1058
- overflow: hidden;
1059
- text-overflow: ellipsis;
1060
- white-space: nowrap;
1061
- flex: 1;
1062
- line-height: 1.1;
1063
- }
1064
-
1065
- &.no-results {
1066
- display: none;
1067
- }
1068
-
1069
- &[aria-hidden="true"] {
1070
- visibility: hidden;
1071
- display: none;
1072
- }
1035
+ .no-results {
1036
+ display: none;
1073
1037
  }
1074
1038
 
1075
- &:not(:has([role="option"]:not([data-value="select-all"]))) {
1039
+ &:not(:has(tt-option:not([hidden], .select-all))) {
1076
1040
  .no-results {
1077
1041
  display: flex;
1042
+ padding: 0.5rem;
1043
+ box-sizing: border-box;
1044
+ text-align: left;
1045
+ text-overflow: ellipsis;
1046
+ text-wrap: nowrap;
1047
+ align-items: center;
1048
+ gap: 0.25rem;
1049
+ max-width: 100%;
1050
+ width: 100%;
1051
+ overflow-y: visible;
1052
+ flex: 1;
1053
+
1054
+ span {
1055
+ overflow: hidden;
1056
+ text-overflow: ellipsis;
1057
+ white-space: nowrap;
1058
+ flex: 1;
1059
+ line-height: 1.1;
1060
+ }
1078
1061
  }
1079
1062
 
1080
1063
  .select-all {
1081
1064
  display: none;
1082
1065
  }
1083
1066
  }
1084
-
1085
-
1086
1067
  }
1087
1068
 
1088
- [role="combobox"][aria-expanded="true"] ~ [role="listbox"][data-open-upward] {
1069
+ [role='combobox'][aria-expanded='true'] ~ [role='listbox'][data-open-upward] {
1089
1070
  top: unset;
1090
1071
  bottom: calc(100% + 0.5rem);
1091
1072
  }
1092
1073
 
1093
- slot[name="icon"] {
1074
+ slot[name='icon'] {
1094
1075
  display: inline-block;
1095
1076
  max-width: var(--tt-combobox-icon-size, 1rem);
1096
1077
  aspect-ratio: 1;
1097
1078
  }
1098
1079
 
1099
- [role="option"].select-all {
1080
+ tt-option.select-all::part(option) {
1100
1081
  border-bottom: 1px solid var(--color-border-300);
1101
1082
  }
1102
1083
 
1103
- [aria-multiselectable="false"] [role="option"][aria-selected="true"] {
1104
- color: var(--tt-combobox-option-selected-color, var(--color-primary-400));
1105
- font-weight: var(--font-weight-medium);
1106
- }
1107
-
1108
- [role="option"]:is(:hover, [data-active="true"]) {
1109
- background-color: var(--tt-combobox-option-background-color-hover, inherit);
1110
- color: var(--tt-combobox-option-color-hover, inherit);
1111
-
1112
- &:first-child {
1113
- border-top-left-radius: var(--border-radius);
1114
- border-top-right-radius: var(--border-radius);
1115
- }
1116
-
1117
- &:last-child {
1118
- border-bottom-left-radius: var(--border-radius);
1119
- border-bottom-right-radius: var(--border-radius);
1120
- }
1121
- }
1122
-
1123
- [role="option"]:hover {
1124
- cursor: pointer;
1125
- }
1126
-
1127
- [role="option"][aria-disabled="true"] {
1128
- pointer-events: none;
1129
- opacity: 0.5;
1130
- }
1131
-
1132
- [role="listbox"][aria-multiselectable="true"] [role="option"] input[type="checkbox"] {
1133
- accent-color: var(--color-primary-400);
1134
- width: var(--checkbox-size, var(--space-scale-2));
1135
- aspect-ratio: 1;
1136
- pointer-events: none;
1137
- }
1138
-
1139
- [role="listbox"][aria-multiselectable="true"] [role="option"][aria-disabled="true"] input[type="checkbox"] {
1140
- pointer-events: none;
1141
- }
1142
-
1143
1084
  label {
1144
1085
  font-size: var(--tt-combobox-label-font-size, inherit);
1145
1086
  color: var(--tt-combobox-label-color, inherit);
@@ -1148,17 +1089,22 @@ var styles = i`
1148
1089
  &[data-hidden] {
1149
1090
  display: none;
1150
1091
  }
1151
-
1152
1092
  }
1153
1093
  `;
1154
1094
 
1155
- // node_modules/@triptease/tt-combobox/dist/src/TtCombobox.js
1095
+ // ../tt-combobox/dist/src/TtCombobox.js
1156
1096
  var TtCombobox = class extends i4 {
1157
1097
  get form() {
1158
1098
  return this.internals.form;
1159
1099
  }
1160
1100
  get _isAllSelected() {
1161
- return Array.from(this._selectableVisibleOptions).every((option) => Array.from(this._selectedVisibleOptions).includes(option));
1101
+ return Boolean(this._visibleOptionsNotSelectAll.length) && Array.from(this._visibleOptionsNotSelectAll).every((option) => this.value.includes(option.value));
1102
+ }
1103
+ get _selectedVisibleOptions() {
1104
+ return Array.from(this._visibleOptions).filter((option) => this.value.includes(option.value));
1105
+ }
1106
+ get _selectedOptions() {
1107
+ return Array.from(this._visibleOptionsNotSelectAll).filter((option) => this.value.includes(option.value));
1162
1108
  }
1163
1109
  constructor() {
1164
1110
  super();
@@ -1184,7 +1130,7 @@ var TtCombobox = class extends i4 {
1184
1130
  });
1185
1131
  this._valueChanged = () => {
1186
1132
  this._selectableOptions.forEach((option) => {
1187
- if (this.value.includes(option.dataset.value)) {
1133
+ if (this.value.includes(option.value)) {
1188
1134
  this._checkOption(option);
1189
1135
  } else {
1190
1136
  this._uncheckOption(option);
@@ -1201,14 +1147,14 @@ var TtCombobox = class extends i4 {
1201
1147
  event.preventDefault();
1202
1148
  event.stopPropagation();
1203
1149
  if (this._filter !== "" && this._isAllSelected) {
1204
- const selectedVisibleValues = Array.from(this._selectedVisibleOptions).map((option) => option.dataset.value);
1150
+ const selectedVisibleValues = this._selectedVisibleOptions.map((option) => option.value);
1205
1151
  this.value = this.value.filter((value) => !selectedVisibleValues.includes(value));
1206
1152
  } else if (this._filter !== "") {
1207
- this.value = Array.from(/* @__PURE__ */ new Set([...this.value, ...Array.from(this._selectableVisibleOptions).map((option) => option.dataset.value)]));
1153
+ this.value = Array.from(/* @__PURE__ */ new Set([...this.value, ...Array.from(this._selectableVisibleOptions).map((option) => option.value)]));
1208
1154
  } else if (this.value.length === this._selectableOptions.length) {
1209
1155
  this.value = [];
1210
1156
  } else {
1211
- this.value = Array.from(this._selectableOptions).map((option) => option.dataset.value);
1157
+ this.value = Array.from(this._selectableOptions).map((option) => option.value);
1212
1158
  }
1213
1159
  };
1214
1160
  this._renderSelectAll = () => {
@@ -1219,24 +1165,31 @@ var TtCombobox = class extends i4 {
1219
1165
  const active = this._getActiveOptionId() === id;
1220
1166
  const selected = this._isAllSelected;
1221
1167
  return x`
1222
- <li
1168
+ <tt-option
1169
+ id="${id}"
1223
1170
  class="select-all"
1224
- role="option"
1225
- id="${this.id}-option-select-all"
1226
- aria-selected="${selected}"
1227
- data-active=${active}
1171
+ ?selected=${selected}
1172
+ ?active=${active}
1173
+ include-checkbox
1228
1174
  @click="${this._selectAll}"
1229
- @mousedown="${(evt) => evt.preventDefault()}"
1230
- data-value="select-all"
1175
+ exportparts="option, checkbox"
1231
1176
  part="option"
1177
+ value="select-all"
1178
+ >Select all</tt-option
1232
1179
  >
1233
- <input type="checkbox" ?checked=${selected} role="presentation" tabindex="-1" part="checkbox">
1234
- Select all
1235
- </li>`;
1180
+ `;
1236
1181
  };
1237
1182
  this._renderChevron = () => x`
1238
- <button type="button" aria-label="Expand" @click="${this._onChevronClick}" aria-expanded="${this._expanded}"
1239
- aria-controls="${this.id}-list" tabindex="-1" ?disabled=${this.disabled} part="arrow">
1183
+ <button
1184
+ type="button"
1185
+ aria-label="Expand"
1186
+ @click="${this._onChevronClick}"
1187
+ aria-expanded="${this._expanded}"
1188
+ aria-controls="${this.id}-list"
1189
+ tabindex="-1"
1190
+ ?disabled=${this.disabled}
1191
+ part="arrow"
1192
+ >
1240
1193
  ${o8(chevronDown)}
1241
1194
  </button>
1242
1195
  `;
@@ -1277,7 +1230,8 @@ var TtCombobox = class extends i4 {
1277
1230
  }
1278
1231
  if (changedProperties.has("options")) {
1279
1232
  this.updateComplete.then(() => {
1280
- this.value = Array.from(/* @__PURE__ */ new Set([...this.value, ...Array.from(this._selectedOptions).map((option) => option.dataset.value)]));
1233
+ const selectedAssignedOptions = Array.from(this.options).filter((option) => option.selected);
1234
+ this.value = Array.from(/* @__PURE__ */ new Set([...this.value, ...selectedAssignedOptions.map((option) => option.value)]));
1281
1235
  this._listenForOptionChange();
1282
1236
  });
1283
1237
  }
@@ -1285,7 +1239,7 @@ var TtCombobox = class extends i4 {
1285
1239
  }
1286
1240
  _reportValidity() {
1287
1241
  if (this.required && !this.value.length) {
1288
- const errorMessage = this.multiselect ? "Please select at least one option" : "Please select an option";
1242
+ const errorMessage = this.multiselect ? "Please select at least one tt-option" : "Please select an tt-option";
1289
1243
  this.internals.setValidity({
1290
1244
  valueMissing: true
1291
1245
  }, errorMessage, this._comboboxInput);
@@ -1382,7 +1336,9 @@ var TtCombobox = class extends i4 {
1382
1336
  event.preventDefault();
1383
1337
  event.stopPropagation();
1384
1338
  const option = event.currentTarget;
1385
- const selectedValue = option.dataset.value;
1339
+ if (option.disabled)
1340
+ return;
1341
+ const selectedValue = option.value;
1386
1342
  if (this.multiselect) {
1387
1343
  if (this.value.includes(selectedValue)) {
1388
1344
  this.value = this.value.filter((value) => value !== selectedValue);
@@ -1420,78 +1376,78 @@ var TtCombobox = class extends i4 {
1420
1376
  if (this.disabled) {
1421
1377
  return "Disabled";
1422
1378
  }
1423
- if (!this._selectedVisibleOptions.length) {
1379
+ if (!this.value.length) {
1424
1380
  return "No options selected";
1425
1381
  }
1426
- if (this._selectedVisibleOptions.length === 1) {
1427
- return this._selectedVisibleOptions[0].textContent?.trim();
1382
+ if (this.value.length === 1) {
1383
+ return Array.from(this._selectableVisibleOptions).find((option) => option.value === this.value[0])?.textContent?.trim();
1428
1384
  }
1429
1385
  if (this._isAllSelected) {
1430
1386
  return this.selectAllPlaceholder || "All options selected";
1431
1387
  }
1432
1388
  return `${this._selectedVisibleOptions.length} options selected`;
1433
1389
  });
1434
- return x`
1435
- <input
1436
- type="text"
1437
- id="${this.id}"
1438
- name="${this.name}"
1439
- autocomplete="off"
1440
- aria-label="${this.labelContent}"
1441
- aria-labelledby="${this.ariaLabelledby}"
1442
- role="combobox"
1443
- aria-controls="${this.id}-list"
1444
- aria-expanded="${this._expanded}"
1445
- aria-autocomplete="list"
1446
- aria-haspopup="listbox"
1447
- aria-disabled="${this.disabled}"
1448
- aria-invalid="${!this._isValid}"
1449
- aria-errormessage="${!this._isValid ? `error-msg-${this.id}` : E}"
1450
- aria-required="${this.required}"
1451
- ?disabled=${this.disabled}
1452
- aria-activedescendant="${o9(this._getActiveOptionId())}"
1453
- @input="${this._onInput}"
1454
- .value="${this._filter}"
1455
- .placeholder="${placeHolderValue}"
1456
- @focusout="${this._handleFocusOut}"
1457
- part="input"
1458
- class=${this.hideCaret ? "hide-caret" : ""}
1459
- />`;
1390
+ return x` <input
1391
+ type="text"
1392
+ id="${this.id}"
1393
+ name="${this.name}"
1394
+ autocomplete="off"
1395
+ aria-label="${this.labelContent}"
1396
+ aria-labelledby="${this.ariaLabelledby}"
1397
+ role="combobox"
1398
+ aria-controls="${this.id}-list"
1399
+ aria-expanded="${this._expanded}"
1400
+ aria-autocomplete="list"
1401
+ aria-haspopup="listbox"
1402
+ aria-disabled="${this.disabled}"
1403
+ aria-invalid="${!this._isValid}"
1404
+ aria-errormessage="${!this._isValid ? `error-msg-${this.id}` : E}"
1405
+ aria-required="${this.required}"
1406
+ ?disabled=${this.disabled}
1407
+ aria-activedescendant="${o9(this._getActiveOptionId())}"
1408
+ @input="${this._onInput}"
1409
+ .value="${this._filter}"
1410
+ .placeholder="${placeHolderValue}"
1411
+ @focusout="${this._handleFocusOut}"
1412
+ part="input"
1413
+ class=${this.hideCaret ? "hide-caret" : ""}
1414
+ />`;
1460
1415
  }
1461
1416
  _renderOption(option) {
1462
1417
  const hidden = Boolean(this._filter !== "" && !option.value.toLowerCase().includes(this._filter.toLowerCase()) && !option.innerText.toLowerCase().includes(this._filter.toLowerCase()) || option.hidden);
1463
1418
  const id = `${this.id}-option-${option.value}`;
1464
1419
  const active = this._getActiveOptionId() === id;
1465
- const selected = Boolean(this.multiselect && option.selected);
1420
+ const selected = this.value.includes(option.value);
1466
1421
  return x`
1467
- <li
1468
- role="option"
1469
- id="${this.id}-option-${option.value}"
1470
- aria-selected=${this.multiselect && option.selected}
1471
- data-active=${active}
1422
+ <tt-option
1423
+ id="${id}"
1424
+ value="${option.value}"
1425
+ ?selected=${selected}
1426
+ ?disabled=${option.disabled}
1427
+ ?active=${active}
1428
+ ?include-checkbox=${this.multiselect}
1429
+ ?hidden=${hidden}
1472
1430
  @click="${this._onClickOption}"
1473
- @mousedown="${(event) => event.preventDefault()}"
1474
- data-value="${option.value}"
1475
- aria-disabled=${option.disabled}
1476
- aria-hidden=${hidden || E}
1477
- data-deselectable=${!option.selected}
1478
- part="option"
1479
1431
  >
1480
- ${this.multiselect ? x`<input type="checkbox" ?checked=${selected}
1481
- role="presentation" tabindex="-1" part="checkbox">` : E}
1482
- <span>${o7(option.innerHTML)}</span>
1483
- </li>`;
1432
+ ${o7(option.innerHTML)}
1433
+ </tt-option>
1434
+ `;
1484
1435
  }
1485
1436
  _hasErrorContent() {
1486
1437
  return this.errorElements?.length > 0;
1487
1438
  }
1488
1439
  render() {
1489
1440
  return x`
1490
- <div class="tt-combobox-container" @focus="${this._onFocus}" @keydown="${this._onKeyUp}" @click="${this._onClick}"
1491
- aria-disabled="${this.disabled}" part="container">
1441
+ <div
1442
+ class="tt-combobox-container"
1443
+ @focus="${this._onFocus}"
1444
+ @keydown="${this._onKeyUp}"
1445
+ @click="${this._onClick}"
1446
+ aria-disabled="${this.disabled}"
1447
+ part="container"
1448
+ >
1492
1449
  <slot name="icon" part="icon"></slot>
1493
- ${this._renderCombobox()}
1494
- ${this._renderChevron()}
1450
+ ${this._renderCombobox()} ${this._renderChevron()}
1495
1451
  <ul
1496
1452
  id="${this.id}-list"
1497
1453
  role="listbox"
@@ -1500,16 +1456,20 @@ var TtCombobox = class extends i4 {
1500
1456
  part="listbox"
1501
1457
  ?data-open-upward="${this.openUpward}"
1502
1458
  >
1503
- ${this._renderSelectAll()}
1504
-
1505
- ${c4(this.options, (opt) => opt.value, this._renderOption.bind(this))}
1459
+ ${this._renderSelectAll()} ${c4(this.options, (opt) => opt.value, this._renderOption.bind(this))}
1506
1460
 
1507
1461
  <li part="no-results" class="no-results">No results</li>
1508
1462
  </ul>
1509
1463
  </div>
1510
1464
  <slot name="option" @slotchange=${() => this.requestUpdate("options")}></slot>
1511
- <div class="errormessage" id="error-msg-${this.id}" role="alert" aria-atomic="true"
1512
- ?data-hidden="${!this._hasErrorContent()}" part="error">
1465
+ <div
1466
+ class="errormessage"
1467
+ id="error-msg-${this.id}"
1468
+ role="alert"
1469
+ aria-atomic="true"
1470
+ ?data-hidden="${!this._hasErrorContent()}"
1471
+ part="error"
1472
+ >
1513
1473
  ${o8(alert)}
1514
1474
  <slot name="error"></slot>
1515
1475
  </div>
@@ -1568,26 +1528,23 @@ __decorate([
1568
1528
  o6({ slot: "option", selector: "option" })
1569
1529
  ], TtCombobox.prototype, "options", void 0);
1570
1530
  __decorate([
1571
- o6({ slot: "option", selector: "option:not([disabled])" })
1531
+ o6({ slot: "option", selector: "tt-option:not([disabled])" })
1572
1532
  ], TtCombobox.prototype, "activeOptions", void 0);
1573
1533
  __decorate([
1574
1534
  o6({ slot: "error" })
1575
1535
  ], TtCombobox.prototype, "errorElements", void 0);
1576
1536
  __decorate([
1577
- r6('li[role="option"]:not([aria-disabled="true"], [aria-hidden="true"])')
1537
+ r6("tt-option:not([hidden], [disabled])")
1578
1538
  ], TtCombobox.prototype, "_visibleOptions", void 0);
1579
1539
  __decorate([
1580
- r6('li[role="option"]:not([aria-disabled="true"], [data-value="select-all"])')
1540
+ r6("tt-option:not([hidden], .select-all")
1541
+ ], TtCombobox.prototype, "_visibleOptionsNotSelectAll", void 0);
1542
+ __decorate([
1543
+ r6("tt-option:not([disabled], .select-all)")
1581
1544
  ], TtCombobox.prototype, "_selectableOptions", void 0);
1582
1545
  __decorate([
1583
- r6('li[role="option"]:not([aria-disabled="true"], [data-value="select-all"], [aria-hidden="true"])')
1546
+ r6("tt-option:not([disabled], [hidden], .select-all)")
1584
1547
  ], TtCombobox.prototype, "_selectableVisibleOptions", void 0);
1585
- __decorate([
1586
- r6('li[role="option"]:not([data-value="select-all"])[aria-selected="true"]')
1587
- ], TtCombobox.prototype, "_selectedOptions", void 0);
1588
- __decorate([
1589
- r6('li[role="option"]:not([data-value="select-all"], [aria-hidden="true"])[aria-selected="true"]')
1590
- ], TtCombobox.prototype, "_selectedVisibleOptions", void 0);
1591
1548
  __decorate([
1592
1549
  e5('input[role="combobox"]')
1593
1550
  ], TtCombobox.prototype, "_comboboxInput", void 0);
@@ -1598,7 +1555,153 @@ __decorate([
1598
1555
  n4({ type: Array, attribute: "value" })
1599
1556
  ], TtCombobox.prototype, "value", void 0);
1600
1557
 
1601
- // node_modules/@triptease/tt-combobox/dist/src/tt-combobox.js
1558
+ // ../tt-combobox/dist/src/tt-option/styles.js
1559
+ var styles2 = i`
1560
+ li {
1561
+ cursor: pointer;
1562
+ display: flex;
1563
+ padding: 0.5rem;
1564
+ box-sizing: border-box;
1565
+ text-align: left;
1566
+ text-overflow: ellipsis;
1567
+ text-wrap: nowrap;
1568
+ align-items: center;
1569
+ gap: 0.25rem;
1570
+ max-width: 100%;
1571
+ width: 100%;
1572
+ overflow-y: visible;
1573
+ flex: 1;
1574
+
1575
+ input[type='checkbox'] {
1576
+ width: var(--checkbox-size, var(--space-scale-2));
1577
+ aspect-ratio: 1;
1578
+ flex: 0 0 auto;
1579
+ accent-color: var(--color-primary-400);
1580
+ pointer-events: none;
1581
+ }
1582
+
1583
+ span {
1584
+ overflow: hidden;
1585
+ text-overflow: ellipsis;
1586
+ white-space: nowrap;
1587
+ flex: 1;
1588
+ line-height: 1.1;
1589
+ }
1590
+
1591
+ &[aria-hidden='true'] {
1592
+ visibility: hidden;
1593
+ display: none;
1594
+ }
1595
+
1596
+ &[aria-disabled='true'] {
1597
+ pointer-events: none;
1598
+ opacity: 0.5;
1599
+ }
1600
+
1601
+ &[aria-selected='true']:not(:has(input[type='checkbox'])) {
1602
+ color: var(--tt-combobox-option-selected-color, var(--color-primary-400));
1603
+ font-weight: var(--font-weight-medium);
1604
+ }
1605
+ }
1606
+
1607
+ :host([active]),
1608
+ :host(:hover) {
1609
+ li {
1610
+ background-color: var(--tt-combobox-option-background-color-hover, var(--color-surface-300));
1611
+ color: var(--tt-combobox-option-color-hover, inherit);
1612
+ }
1613
+
1614
+ &:first-child li {
1615
+ border-top-left-radius: var(--border-radius);
1616
+ border-top-right-radius: var(--border-radius);
1617
+ }
1618
+
1619
+ &:last-child li {
1620
+ border-bottom-left-radius: var(--border-radius);
1621
+ border-bottom-right-radius: var(--border-radius);
1622
+ }
1623
+ }
1624
+
1625
+ :host([disabled]) {
1626
+ pointer-events: none;
1627
+ }
1628
+ `;
1629
+
1630
+ // ../tt-combobox/dist/src/tt-option/TtOption.js
1631
+ var TtOption = class extends i4 {
1632
+ constructor() {
1633
+ super(...arguments);
1634
+ this.disabled = false;
1635
+ this.selected = false;
1636
+ this.active = false;
1637
+ this.value = "";
1638
+ this.includeCheckbox = false;
1639
+ this._onClick = (event) => {
1640
+ if (this.disabled) {
1641
+ event.preventDefault();
1642
+ event.stopImmediatePropagation();
1643
+ event.stopPropagation();
1644
+ }
1645
+ };
1646
+ }
1647
+ connectedCallback() {
1648
+ super.connectedCallback();
1649
+ this.addEventListener("click", this._onClick);
1650
+ }
1651
+ disconnectedCallback() {
1652
+ super.disconnectedCallback();
1653
+ this.removeEventListener("click", this._onClick);
1654
+ }
1655
+ render() {
1656
+ return x`
1657
+ <li
1658
+ role="option"
1659
+ aria-selected="${this.selected}"
1660
+ aria-disabled="${this.disabled}"
1661
+ ?aria-hidden="${this.hidden}"
1662
+ data-active="${this.active}"
1663
+ data-value="${this.value}"
1664
+ @click="${this._onClick}"
1665
+ @mousedown="${(event) => event.preventDefault()}"
1666
+ part="option"
1667
+ >
1668
+ ${this.includeCheckbox ? x`<input type="checkbox" ?checked=${this.selected} role="presentation" tabindex="-1" part="checkbox" />` : E}
1669
+ <span>
1670
+ <slot></slot>
1671
+ </span>
1672
+ </li>
1673
+ `;
1674
+ }
1675
+ };
1676
+ TtOption.styles = styles2;
1677
+ TtOption.shadowRootOptions = {
1678
+ ...i4.shadowRootOptions,
1679
+ delegatesFocus: true
1680
+ };
1681
+ __decorate([
1682
+ n4({ type: Boolean })
1683
+ ], TtOption.prototype, "disabled", void 0);
1684
+ __decorate([
1685
+ n4({ type: Boolean })
1686
+ ], TtOption.prototype, "selected", void 0);
1687
+ __decorate([
1688
+ n4({ type: Boolean })
1689
+ ], TtOption.prototype, "active", void 0);
1690
+ __decorate([
1691
+ n4({ type: String })
1692
+ ], TtOption.prototype, "value", void 0);
1693
+ __decorate([
1694
+ n4({ type: Boolean, attribute: "include-checkbox" })
1695
+ ], TtOption.prototype, "includeCheckbox", void 0);
1696
+
1697
+ // ../tt-combobox/dist/src/tt-option/tt-option.js
1698
+ if (typeof window !== "undefined") {
1699
+ if (!window.customElements.get("tt-option")) {
1700
+ window.customElements.define("tt-option", TtOption);
1701
+ }
1702
+ }
1703
+
1704
+ // ../tt-combobox/dist/src/tt-combobox.js
1602
1705
  if (typeof window !== "undefined") {
1603
1706
  if (!window.customElements.get("tt-combobox")) {
1604
1707
  window.customElements.define("tt-combobox", TtCombobox);
@@ -1618,7 +1721,7 @@ var visuallyHiddenCss = i`
1618
1721
  clip-path: inset(50%);
1619
1722
  white-space: nowrap;
1620
1723
  `;
1621
- var styles2 = i`
1724
+ var styles3 = i`
1622
1725
  :host {
1623
1726
  --nav-bar-width: 260px;
1624
1727
 
@@ -1911,9 +2014,7 @@ var styles2 = i`
1911
2014
  --tt-combobox-color: var(--color-text-inverted-400);
1912
2015
  --tt-combobox-dropdown-color: var(--color-text-inverted-400);
1913
2016
  --tt-combobox-list-background-color: var(--color-surface-inverted-100);
1914
- --tt-combobox-option-background-color-hover: var(
1915
- --color-surface-inverted-200
1916
- );
2017
+ --tt-combobox-option-background-color-hover: var(--color-surface-inverted-200);
1917
2018
  --tt-combobox-placeholder-color: var(--color-text-inverted-300);
1918
2019
  --tt-combobox-background-color: var(--color-surface-inverted-100);
1919
2020
  --tt-combobox-hover-background-color: var(--color-surface-inverted-200);
@@ -2016,7 +2117,9 @@ var TtNavbar = class extends i4 {
2016
2117
  if (!bestMatch && this.clientKey) {
2017
2118
  const parsedPath = currentPath.replace(this.clientKey, "$CLIENT_KEY");
2018
2119
  let mappedUrl = urlMappings[parsedPath];
2019
- const matchedPattern = this.mappedUrlPatterns.find((pattern) => pattern.test(currentPath, window.location.origin))?.pathname;
2120
+ const matchedPattern = this.mappedUrlPatterns.find(
2121
+ (pattern) => pattern.test(currentPath, window.location.origin)
2122
+ )?.pathname;
2020
2123
  if (matchedPattern) {
2021
2124
  mappedUrl = urlMappings[matchedPattern];
2022
2125
  }
@@ -2066,22 +2169,18 @@ var TtNavbar = class extends i4 {
2066
2169
  this.toggleSidebar = () => {
2067
2170
  this.closeAllDetails();
2068
2171
  this.isOpen = !this.isOpen;
2069
- const {
2070
- NavbarStateCookieName,
2071
- NavbarStateCookieOpenValue,
2072
- NavbarStateCookieClosedValue
2073
- } = Config;
2172
+ const { NavbarStateCookieName, NavbarStateCookieOpenValue, NavbarStateCookieClosedValue } = Config;
2074
2173
  const domain = window.location.hostname.endsWith(".triptease.io") ? "domain=.triptease.io" : "";
2075
2174
  document.cookie = `${NavbarStateCookieName}=${this.isOpen ? NavbarStateCookieOpenValue : NavbarStateCookieClosedValue}; path=/; max-age=31536000; ${domain}`;
2076
2175
  };
2077
2176
  this.handleDetailsToggle = (e10) => {
2078
2177
  const { newState } = e10;
2079
- const target = e10.currentTarget;
2178
+ const target2 = e10.currentTarget;
2080
2179
  if (newState === "open") {
2081
2180
  if (!this.isOpen) {
2082
2181
  this.toggleSidebar();
2083
2182
  }
2084
- this.closeAllDetails(target);
2183
+ this.closeAllDetails(target2);
2085
2184
  }
2086
2185
  };
2087
2186
  this.buildUrl = (path) => {
@@ -2120,9 +2219,10 @@ var TtNavbar = class extends i4 {
2120
2219
  window.removeEventListener("tetris:navigate", this.setActiveState);
2121
2220
  super.disconnectedCallback();
2122
2221
  }
2123
- // eslint-disable-next-line no-undef
2124
2222
  get mappedUrlPatterns() {
2125
- return Object.keys(urlMappings).map((pattern) => new URLPattern({ pathname: pattern, baseURL: window.location.origin }));
2223
+ return Object.keys(urlMappings).map(
2224
+ (pattern) => new URLPattern({ pathname: pattern, baseURL: window.location.origin })
2225
+ );
2126
2226
  }
2127
2227
  render() {
2128
2228
  return x`
@@ -2308,9 +2408,7 @@ var TtNavbar = class extends i4 {
2308
2408
  >
2309
2409
  ${this.clients.map(
2310
2410
  (client) => x`
2311
- <option slot="option" value=${client.clientKey}>
2312
- ${client.displayName}
2313
- </option>
2411
+ <option slot="option" value=${client.clientKey}>${client.displayName}</option>
2314
2412
  `
2315
2413
  )}
2316
2414
  </tt-combobox>
@@ -2332,7 +2430,7 @@ var TtNavbar = class extends i4 {
2332
2430
  `;
2333
2431
  }
2334
2432
  };
2335
- TtNavbar.styles = styles2;
2433
+ TtNavbar.styles = styles3;
2336
2434
  __decorateClass([
2337
2435
  n4({ type: Function })
2338
2436
  ], TtNavbar.prototype, "navigate", 2);