@haiilo/catalyst 10.25.2 → 10.26.1

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 (75) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.esm.js +1 -1
  4. package/dist/catalyst/{p-f4873629.js → p-e5aee21d.js} +2 -2
  5. package/dist/catalyst/p-e5aee21d.js.map +1 -0
  6. package/dist/catalyst/{p-33cfd838.entry.js → p-eb4e484c.entry.js} +4 -4
  7. package/dist/catalyst/p-eb4e484c.entry.js.map +1 -0
  8. package/dist/cjs/cat-alert_30.cjs.entry.js +184 -78
  9. package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
  10. package/dist/cjs/catalyst.cjs.js +1 -1
  11. package/dist/cjs/index.cjs.js +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/{of-5cd84f84.js → of-aaee31a6.js} +4 -3
  14. package/dist/cjs/of-aaee31a6.js.map +1 -0
  15. package/dist/collection/components/cat-badge/cat-badge.css +35 -0
  16. package/dist/collection/components/cat-badge/cat-badge.js +120 -2
  17. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  18. package/dist/collection/components/cat-button/cat-button.css +14 -9
  19. package/dist/collection/components/cat-button/cat-button.js +8 -8
  20. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  21. package/dist/collection/components/cat-button-group/cat-button-group.css +0 -10
  22. package/dist/collection/components/cat-button-group/cat-button-group.js +6 -5
  23. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
  24. package/dist/collection/components/cat-checkbox/cat-checkbox.js +1 -1
  25. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  26. package/dist/collection/components/cat-date/cat-date.js +7 -4
  27. package/dist/collection/components/cat-date/cat-date.js.map +1 -1
  28. package/dist/collection/components/cat-date-inline/cat-date-inline.js +1 -1
  29. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  30. package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
  31. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  32. package/dist/collection/components/cat-time/cat-time.js +4 -4
  33. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  34. package/dist/collection/components/cat-toggle/cat-toggle.js +1 -1
  35. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  36. package/dist/components/cat-badge.js +67 -5
  37. package/dist/components/cat-badge.js.map +1 -1
  38. package/dist/components/cat-button-group.js +7 -6
  39. package/dist/components/cat-button-group.js.map +1 -1
  40. package/dist/components/cat-button2.js +10 -125
  41. package/dist/components/cat-button2.js.map +1 -1
  42. package/dist/components/cat-checkbox2.js +1 -1
  43. package/dist/components/cat-checkbox2.js.map +1 -1
  44. package/dist/components/cat-date-inline2.js +1 -1
  45. package/dist/components/cat-date-inline2.js.map +1 -1
  46. package/dist/components/cat-date.js +7 -4
  47. package/dist/components/cat-date.js.map +1 -1
  48. package/dist/components/cat-dropdown2.js +1 -1
  49. package/dist/components/cat-dropdown2.js.map +1 -1
  50. package/dist/components/cat-time.js +4 -4
  51. package/dist/components/cat-time.js.map +1 -1
  52. package/dist/components/cat-toggle.js +1 -1
  53. package/dist/components/cat-toggle.js.map +1 -1
  54. package/dist/components/floating-ui.dom.esm.js +85 -32
  55. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  56. package/dist/components/from.js +3 -2
  57. package/dist/components/from.js.map +1 -1
  58. package/dist/components/media-matcher.js +120 -0
  59. package/dist/components/media-matcher.js.map +1 -0
  60. package/dist/esm/cat-alert_30.entry.js +184 -78
  61. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  62. package/dist/esm/catalyst.js +1 -1
  63. package/dist/esm/index.js +2 -2
  64. package/dist/esm/loader.js +1 -1
  65. package/dist/esm/{of-625babef.js → of-acb1f3a9.js} +4 -3
  66. package/dist/esm/of-acb1f3a9.js.map +1 -0
  67. package/dist/types/components/cat-badge/cat-badge.d.ts +23 -0
  68. package/dist/types/components/cat-button-group/cat-button-group.d.ts +1 -1
  69. package/dist/types/components/cat-date/cat-date.d.ts +1 -0
  70. package/dist/types/components.d.ts +24 -0
  71. package/package.json +2 -2
  72. package/dist/catalyst/p-33cfd838.entry.js.map +0 -1
  73. package/dist/catalyst/p-f4873629.js.map +0 -1
  74. package/dist/cjs/of-5cd84f84.js.map +0 -1
  75. package/dist/esm/of-625babef.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-3059296e.js';
2
- import { e as createErrorClass, O as Observable, f as errorContext, E as EMPTY_SUBSCRIPTION, S as Subscription, g as arrRemove, h as operate, i as createOperatorSubscriber, j as innerFrom, k as executeSchedule, l as isFunction, m as identity, n as from, p as popScheduler, q as isArrayLike, r as isScheduler, s as popNumber, t as noop, u as log, a as catI18nRegistry, c as commonjsGlobal$1, d as catIconRegistry, o as of } from './of-625babef.js';
2
+ import { e as createErrorClass, O as Observable, f as errorContext, E as EMPTY_SUBSCRIPTION, S as Subscription, g as arrRemove, h as operate, i as createOperatorSubscriber, j as innerFrom, k as executeSchedule, l as isFunction, m as identity, n as from, p as popScheduler, q as isArrayLike, r as isScheduler, s as popNumber, t as noop, u as log, a as catI18nRegistry, c as commonjsGlobal$1, d as catIconRegistry, o as of } from './of-acb1f3a9.js';
3
3
 
4
4
  const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
5
5
  _super(this);
@@ -903,25 +903,6 @@ const CatAvatar = class {
903
903
  };
904
904
  CatAvatar.style = CatAvatarStyle0;
905
905
 
906
- const catBadgeCss = ":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;line-height:1.5;flex-shrink:0}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;color:rgb(var(--text));box-shadow:inset 0 0 0 1px rgba(var(--text), 0.2)}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0)}:host([color=info]){--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230)}:host([color=success]){--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88)}:host([color=warning]){--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0)}:host([color=danger]){--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13)}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=outlined]){animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--text), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--text), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--text), 0.2)}}";
907
- const CatBadgeStyle0 = catBadgeCss;
908
-
909
- const CatBadge = class {
910
- constructor(hostRef) {
911
- registerInstance(this, hostRef);
912
- this.variant = 'filled';
913
- this.color = 'primary';
914
- this.size = 'm';
915
- this.round = false;
916
- this.pulse = false;
917
- }
918
- render() {
919
- return h("slot", { key: '23ddf7fc9b33cb4410ba74dbafda8d084cdc3606' });
920
- }
921
- get hostElement() { return getElement(this); }
922
- };
923
- CatBadge.style = CatBadgeStyle0;
924
-
925
906
  const _breakpoints = ['xs', 's', 'm', 'l', 'xl'];
926
907
  const Breakpoints = {
927
908
  xs: '(max-width: 539.98px)',
@@ -1037,6 +1018,74 @@ function createEmptyStyleRule(query) {
1037
1018
  }
1038
1019
  }
1039
1020
 
1021
+ const catBadgeCss = ":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;line-height:1.5;flex-shrink:0}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;color:rgb(var(--text));box-shadow:inset 0 0 0 1px rgba(var(--text), 0.2)}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0)}:host([color=info]){--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230)}:host([color=success]){--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88)}:host([color=warning]){--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0)}:host([color=danger]){--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13)}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem;gap:0.25rem}:host([data-icon-badge=xs]){width:1rem;height:1rem;padding:0}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem;gap:0.25rem}:host([data-icon-badge=s]){width:1.5rem;height:1.5rem;padding:0}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem;gap:0.25rem}:host([data-icon-badge=m]){width:2rem;height:2rem;padding:0}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem;gap:0.25rem}:host([data-icon-badge=l]){width:2.5rem;height:2.5rem;padding:0}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem;gap:0.25rem}:host([data-icon-badge=xl]){width:3rem;height:3rem;padding:0}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=outlined]){animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--text), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--text), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--text), 0.2)}}";
1022
+ const CatBadgeStyle0 = catBadgeCss;
1023
+
1024
+ const CatBadge = class {
1025
+ constructor(hostRef) {
1026
+ registerInstance(this, hostRef);
1027
+ this._iconOnly = true;
1028
+ this.variant = 'filled';
1029
+ this.color = 'primary';
1030
+ this.size = 'm';
1031
+ this.round = false;
1032
+ this.pulse = false;
1033
+ this.icon = undefined;
1034
+ this.iconOnly = false;
1035
+ this.iconRight = false;
1036
+ }
1037
+ onIconOnlyChanged(value) {
1038
+ // teardown
1039
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1040
+ this.mediaQueryList?.removeEventListener('change', this.mediaQueryListener);
1041
+ this.mediaQueryList = undefined;
1042
+ this.mediaQueryListener = undefined;
1043
+ // setup
1044
+ if (isBreakpoint(value)) {
1045
+ this.mediaMatcher ?? (this.mediaMatcher = new MediaMatcher());
1046
+ this.mediaQueryList = this.mediaMatcher.matchMedia(Breakpoints[value]);
1047
+ this.mediaQueryListener = (event) => (this._iconOnly = event.matches);
1048
+ this.mediaQueryList.addEventListener('change', this.mediaQueryListener);
1049
+ this._iconOnly = this.mediaQueryList.matches;
1050
+ }
1051
+ else {
1052
+ this._iconOnly = value;
1053
+ }
1054
+ }
1055
+ componentWillLoad() {
1056
+ this.onIconOnlyChanged(this.iconOnly);
1057
+ }
1058
+ get isIconBadge() {
1059
+ return Boolean(this.icon) && this._iconOnly;
1060
+ }
1061
+ get hasPrefixIcon() {
1062
+ return Boolean(this.icon) && !this._iconOnly && !this.iconRight;
1063
+ }
1064
+ get hasSuffixIcon() {
1065
+ return Boolean(this.icon) && !this._iconOnly && this.iconRight;
1066
+ }
1067
+ get iconSize() {
1068
+ switch (this.size) {
1069
+ case 'xs':
1070
+ case 's':
1071
+ return 'xs';
1072
+ case 'l':
1073
+ case 'xl':
1074
+ return 'l';
1075
+ default:
1076
+ return 'm';
1077
+ }
1078
+ }
1079
+ render() {
1080
+ return (h(Host, { key: '2c10a8da896b2fe6b7637ec871386da6ee9dc132', "data-icon-badge": this.isIconBadge ? this.size : null }, this.hasPrefixIcon ? h("cat-icon", { icon: this.icon, size: this.iconSize, part: "prefix" }) : null, this.isIconBadge ? (h("cat-icon", { icon: this.icon, size: this.iconSize, class: "icon-only" })) : (h("slot", null)), this.hasSuffixIcon ? h("cat-icon", { icon: this.icon, size: this.iconSize, part: "prefix" }) : null));
1081
+ }
1082
+ get hostElement() { return getElement(this); }
1083
+ static get watchers() { return {
1084
+ "iconOnly": ["onIconOnlyChanged"]
1085
+ }; }
1086
+ };
1087
+ CatBadge.style = CatBadgeStyle0;
1088
+
1040
1089
  /**
1041
1090
  * Find the closest parent element matching the given selector while traversing
1042
1091
  * up the DOM tree (including Shadow DOM).
@@ -1050,7 +1099,7 @@ function findClosest(selector, element) {
1050
1099
  return nextElement ? findClosest(selector, nextElement) : null;
1051
1100
  }
1052
1101
 
1053
- const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 125ms linear, border-color 125ms linear, background-color 125ms linear, box-shadow 125ms linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{display:flex;flex-direction:column;min-width:0}.cat-button-empty .cat-button-content{display:none}.cat-button-content-inner{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-group-button-first{border-top-right-radius:0;border-bottom-right-radius:0}.cat-group-button-middle{border-radius:0}.cat-group-button-last{border-top-left-radius:0;border-bottom-left-radius:0}.cat-group-button:hover{z-index:1}.cat-group-button:focus-visible{z-index:2}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:var(--cat-font-weight-button, 600);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:242, 244, 247;--fill:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined.cat-button-disabled{--base:var(--cat-font-color-muted, 81, 92, 108);--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:var(--cat-link-button-decoration, none)}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-link{background-color:transparent;color:rgb(var(--text))}.cat-button-link.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-link:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-link.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 99, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 99, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-secondary-text-active, 0, 0, 0)}.cat-button-info{--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230);--base:var(--cat-info-text, 0, 115, 230)}.cat-button-info:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-hover, 0, 107, 227);--fill:var(--cat-info-fill-hover, 255, 255, 255);--text:var(--cat-info-text-hover, 0, 107, 227)}.cat-button-info.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-info:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-active, 0, 96, 223);--fill:var(--cat-info-fill-active, 255, 255, 255);--text:var(--cat-info-text-active, 0, 96, 223)}.cat-button-success{--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-danger-text-active, 174, 42, 10)}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.1875rem 0.25rem;font-size:0.875rem;line-height:1.125rem;gap:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;height:1.5rem;padding:0}:host(.cat-button-pull[size=xs]){margin:-0.1875rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.1875rem;margin-bottom:-0.1875rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.1875rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.1875rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;height:2rem;padding:0}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;height:2.5rem;padding:0}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;height:3rem;padding:0}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem;gap:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;height:3.5rem;padding:0}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}:host(.cat-tab)::part(button){padding:1.125rem 0.75rem;--cat-secondary-bg:transparent;--cat-primary-text:transparent;--cat-danger-text:transparent}:host(.cat-tab)::part(content)::before{content:attr(data-text);content:attr(data-text)/\"\";height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:700}:host(.cat-text-left) .cat-button{justify-content:left;text-align:left}:host(.cat-text-right) .cat-button{justify-content:right;text-align:right}:host(.cat-nav-item){width:100%}:host(.cat-nav-item) .cat-button{box-shadow:none;justify-content:left;gap:0.5rem}:host(.cat-nav-item) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-time-format) .cat-button{border-radius:0}:host(.cat-date-toggle) .cat-button,:host(.cat-time-toggle) .cat-button{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host(.cat-date-item) .cat-button:hover,:host(.cat-date-toggle) .cat-button:hover,:host(.cat-time-format) .cat-button:hover,:host(.cat-time-toggle) .cat-button:hover{z-index:1}:host(.cat-date-item) .cat-button:focus-visible,:host(.cat-date-toggle) .cat-button:focus-visible,:host(.cat-time-format) .cat-button:focus-visible,:host(.cat-time-toggle) .cat-button:focus-visible{z-index:2}:host(.cat-date-item) .cat-button{padding:0;min-width:2rem;max-height:3rem;aspect-ratio:1}:host(.date-start:not(.date-end)) .cat-button{border-top-right-radius:0;border-bottom-right-radius:0}:host(.date-end:not(.date-start)) .cat-button{border-top-left-radius:0;border-bottom-left-radius:0}";
1102
+ const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}:host([data-button-group=middle]),:host([data-button-group=last]){margin-left:-1px}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 125ms linear, border-color 125ms linear, background-color 125ms linear, box-shadow 125ms linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{display:flex;flex-direction:column;min-width:0}.cat-button-empty .cat-button-content{display:none}.cat-button-content-inner{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-group-first{border-top-right-radius:0;border-bottom-right-radius:0}.cat-button-group-middle{border-radius:0}.cat-button-group-last{border-top-left-radius:0;border-bottom-left-radius:0}.cat-button-group:hover{z-index:1}.cat-button-group:focus-visible{z-index:2}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:var(--cat-font-weight-button, 600);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:242, 244, 247;--fill:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px color-mix(in srgb, rgb(var(--base)) 20%, #fff);color:rgb(var(--text))}.cat-button-outlined.cat-button-disabled{--base:var(--cat-font-color-muted, 81, 92, 108);--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:var(--cat-link-button-decoration, none)}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-link{background-color:transparent;color:rgb(var(--text))}.cat-button-link.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-link:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-link.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 99, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 99, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-secondary-text-active, 0, 0, 0)}.cat-button-info{--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230);--base:var(--cat-info-text, 0, 115, 230)}.cat-button-info:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-hover, 0, 107, 227);--fill:var(--cat-info-fill-hover, 255, 255, 255);--text:var(--cat-info-text-hover, 0, 107, 227)}.cat-button-info.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-info:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-active, 0, 96, 223);--fill:var(--cat-info-fill-active, 255, 255, 255);--text:var(--cat-info-text-active, 0, 96, 223)}.cat-button-success{--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-danger-text-active, 174, 42, 10)}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.1875rem 0.25rem;font-size:0.875rem;line-height:1.125rem;gap:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;height:1.5rem;padding:0}:host(.cat-button-pull[size=xs]){margin:-0.1875rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.1875rem;margin-bottom:-0.1875rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.1875rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.1875rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;height:2rem;padding:0}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;height:2.5rem;padding:0}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;height:3rem;padding:0}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem;gap:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;height:3.5rem;padding:0}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}:host(.cat-tab)::part(button){padding:1.125rem 0.75rem;--cat-secondary-bg:transparent;--cat-primary-text:transparent;--cat-danger-text:transparent}:host(.cat-tab)::part(content)::before{content:attr(data-text);content:attr(data-text)/\"\";height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:700}:host(.cat-text-left) .cat-button{justify-content:left;text-align:left}:host(.cat-text-right) .cat-button{justify-content:right;text-align:right}:host(.cat-nav-item){width:100%}:host(.cat-nav-item) .cat-button{box-shadow:none;justify-content:left;gap:0.5rem}:host(.cat-nav-item) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-time-format) .cat-button{border-radius:0}:host(.cat-date-toggle) .cat-button,:host(.cat-time-toggle) .cat-button{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host(.cat-date-item) .cat-button:hover,:host(.cat-date-toggle) .cat-button:hover,:host(.cat-time-format) .cat-button:hover,:host(.cat-time-toggle) .cat-button:hover{z-index:1}:host(.cat-date-item) .cat-button:focus-visible,:host(.cat-date-toggle) .cat-button:focus-visible,:host(.cat-time-format) .cat-button:focus-visible,:host(.cat-time-toggle) .cat-button:focus-visible{z-index:2}:host(.cat-date-item) .cat-button{padding:0;min-width:2rem;max-height:3rem;aspect-ratio:1}:host(.date-start:not(.date-end)) .cat-button{border-top-right-radius:0;border-bottom-right-radius:0}:host(.date-end:not(.date-start)) .cat-button{border-top-left-radius:0;border-bottom-left-radius:0}";
1054
1103
  const CatButtonStyle0 = catButtonCss;
1055
1104
 
1056
1105
  const CatButton = class {
@@ -1146,7 +1195,7 @@ const CatButton = class {
1146
1195
  }
1147
1196
  render() {
1148
1197
  if (this.url) {
1149
- return (h("a", { ...this.nativeAttributes, ref: el => (this.button = el), href: this.disabled ? undefined : this.url, target: this.urlTarget, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
1198
+ return (h(Host, { "data-button-group": this.buttonGroupPosition }, h("a", { ...this.nativeAttributes, ref: el => (this.button = el), href: this.disabled ? undefined : this.url, target: this.urlTarget, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
1150
1199
  'cat-button': true,
1151
1200
  'cat-button-empty': !this.hasSlottedContent,
1152
1201
  'cat-button-active': this.active,
@@ -1157,11 +1206,12 @@ const CatButton = class {
1157
1206
  'cat-button-ellipsed': !this.noEllipsis && !this.isIconButton,
1158
1207
  [`cat-button-${this.variant}`]: Boolean(this.variant),
1159
1208
  [`cat-button-${this.color}`]: Boolean(this.color),
1160
- [`cat-button-${this.size}`]: Boolean(this.size)
1161
- }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content));
1209
+ [`cat-button-${this.size}`]: Boolean(this.size),
1210
+ [`cat-button-group-${this.buttonGroupPosition}`]: Boolean(this.buttonGroupPosition)
1211
+ }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content)));
1162
1212
  }
1163
1213
  else {
1164
- return (h("button", { ...this.nativeAttributes, ref: el => (this.button = el), type: this.submit ? 'submit' : 'button', name: this.name, value: this.value, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
1214
+ return (h(Host, { "data-button-group": this.buttonGroupPosition }, h("button", { ...this.nativeAttributes, ref: el => (this.button = el), type: this.submit ? 'submit' : 'button', name: this.name, value: this.value, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
1165
1215
  'cat-button': true,
1166
1216
  'cat-button-empty': !this.hasSlottedContent,
1167
1217
  'cat-button-active': this.active,
@@ -1173,9 +1223,8 @@ const CatButton = class {
1173
1223
  [`cat-button-${this.variant}`]: Boolean(this.variant),
1174
1224
  [`cat-button-${this.color}`]: Boolean(this.color),
1175
1225
  [`cat-button-${this.size}`]: Boolean(this.size),
1176
- [`cat-group-button-${this.buttonGroupPosition}`]: Boolean(this.buttonGroupPosition),
1177
- 'cat-group-button': Boolean(this.buttonGroupPosition)
1178
- }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content));
1226
+ [`cat-button-group-${this.buttonGroupPosition}`]: Boolean(this.buttonGroupPosition)
1227
+ }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content)));
1179
1228
  }
1180
1229
  }
1181
1230
  get iconSize() {
@@ -1227,22 +1276,23 @@ const CatButton = class {
1227
1276
  };
1228
1277
  CatButton.style = CatButtonStyle0;
1229
1278
 
1230
- const catButtonGroupCss = ":host{position:relative;display:inline-flex;vertical-align:middle}::slotted(cat-button[variant=outlined]),::slotted(cat-button:not([variant])){margin-right:-1px}::slotted(cat-button[variant=outlined]:last-child),::slotted(cat-button:not([variant]):last-child){margin-right:0}";
1279
+ const catButtonGroupCss = ":host{position:relative;display:inline-flex;vertical-align:middle}";
1231
1280
  const CatButtonGroupStyle0 = catButtonGroupCss;
1232
1281
 
1233
1282
  const CatButtonGroup = class {
1234
1283
  constructor(hostRef) {
1235
1284
  registerInstance(this, hostRef);
1236
- this.formElements = [];
1285
+ this.buttonElements = [];
1237
1286
  this.a11yLabel = undefined;
1238
1287
  }
1239
1288
  render() {
1240
- return (h(Host, { key: 'ca23ccee6536ec2cef9d82832cf16dacac31ef2a', role: "group", "aria-label": this.a11yLabel }, h("slot", { key: 'b4a3485c8595874779ef41468e5af98163c6573c', onSlotchange: this.onSlotChange.bind(this) })));
1289
+ return (h(Host, { key: '2b9aeb09c4290a27751f568e596a3de21f8deeb3', role: "group", "aria-label": this.a11yLabel }, h("slot", { key: '5a6afa70513843b8c201a649ed0edb30fea9b7fc', onSlotchange: this.onSlotChange.bind(this) })));
1241
1290
  }
1242
1291
  onSlotChange() {
1243
- this.formElements = Array.from(this.hostElement.querySelectorAll('cat-button'));
1244
- this.formElements.forEach((element, index) => {
1245
- element.buttonGroupPosition = index === 0 ? 'first' : index === this.formElements.length - 1 ? 'last' : 'middle';
1292
+ this.buttonElements = Array.from(this.hostElement.querySelectorAll(':scope > cat-button, :scope > cat-tooltip > cat-button, :scope > cat-dropdown cat-button[slot="trigger"]'));
1293
+ this.buttonElements.forEach((element, index) => {
1294
+ element.buttonGroupPosition =
1295
+ index === 0 ? 'first' : index === this.buttonElements.length - 1 ? 'last' : 'middle';
1246
1296
  });
1247
1297
  }
1248
1298
  get hostElement() { return getElement(this); }
@@ -1366,7 +1416,7 @@ const CatCheckbox = class {
1366
1416
  this.catBlur.emit(event);
1367
1417
  }
1368
1418
  updateResolved() {
1369
- this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
1419
+ this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
1370
1420
  }
1371
1421
  get hostElement() { return getElement(this); }
1372
1422
  };
@@ -1485,6 +1535,7 @@ const CatDate = class {
1485
1535
  this.catBlur = createEvent(this, "catBlur", 7);
1486
1536
  this.language = catI18nRegistry.getLocale();
1487
1537
  this.locale = getLocale$2(this.language);
1538
+ this.inputFocused = false;
1488
1539
  this.requiredMarker = 'optional';
1489
1540
  this.horizontal = false;
1490
1541
  this.autoComplete = undefined;
@@ -1564,22 +1615,24 @@ const CatDate = class {
1564
1615
  this.input?.clear();
1565
1616
  }
1566
1617
  render() {
1567
- return (h(Host, { key: '8e98fa37e7c7a5a5b06e78d4db55a0221ab3c9aa' }, h("cat-input", { key: '3bc212816beb5dc6dc077c16aeba37494e726710', class: "cat-date-input", ref: el => (this.input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, value: this.inputValue, onCatFocus: e => {
1618
+ return (h(Host, { key: '0dddaceee870f7e1d16131988a1c344b22656594' }, h("cat-input", { key: '969ebd4ca18452f0eb5550b440666886ddc664ec', class: "cat-date-input", ref: el => (this.input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, value: this.inputValue, onCatFocus: e => {
1619
+ this.inputFocused = e.target === this.input;
1568
1620
  e.stopPropagation();
1569
1621
  this.catFocus.emit(e.detail);
1570
1622
  }, onCatBlur: e => {
1571
1623
  e.stopPropagation();
1572
1624
  this.onInputBlur(e.detail);
1573
- } }, h("span", { key: '1108b31cf626f5e1879b5d06e15539a60c103925', slot: "label" }, this.label, h("span", { key: '253ac251c4313b1b61381c6b7063ed9c6d87f892', class: "label-aria" }, " (", this.locale.formatStr, ")")), h("cat-dropdown", { key: 'a251ebdee91aa19060e03fd22a0b02c3c8af59df', slot: "addon", placement: this.placement, arrowNavigation: "none", noResize: true, onCatOpen: () => this.dateInline?.resetView() }, h("cat-button", { key: '5fbcfe990cae800326e686b798b63be2d1783248', slot: "trigger", icon: "$cat:datepicker-calendar", iconOnly: true, class: "cat-date-toggle", disabled: this.disabled, a11yLabel: this.getTriggerA11yLabel() }), h("div", { key: '3dd9bc1b62c30e8d8ff63c878e1a141e5eac71e5', slot: "content" }, h("cat-date-inline", { key: '871799fce9dda73e5242d3d1ef94c03b8144dcf2', ref: el => (this.dateInline = el), min: this.min, max: this.max, value: this.value, hint: true, weeks: true, noClear: true, onCatChange: this.onDateChange.bind(this) }))))));
1625
+ } }, h("span", { key: '7bf41bdd4f7b8f0b69ef43f11fe075d05ac7e959', slot: "label" }, this.label, h("span", { key: '0c454cbb586b0e3e45af2a0601bb735836a17105', class: "label-aria" }, " (", this.locale.formatStr, ")")), h("cat-dropdown", { key: 'ce4169eb447fb61b1e98da380446aeb744b1e319', slot: "addon", placement: this.placement, arrowNavigation: "none", noResize: true, onCatOpen: () => this.dateInline?.resetView() }, h("cat-button", { key: '2c9f064a88a711d38fe5f293764ab963cee71782', slot: "trigger", icon: "$cat:datepicker-calendar", iconOnly: true, class: "cat-date-toggle", disabled: this.disabled, a11yLabel: this.getTriggerA11yLabel() }), h("div", { key: 'fe782bbda78ff445f760f80547a0a57252d041ba', slot: "content" }, h("cat-date-inline", { key: '8ecfa83e38d2016148e1d970f0142ce62d5d58e4', ref: el => (this.dateInline = el), min: this.min, max: this.max, value: this.value, hint: true, weeks: true, noClear: true, onCatChange: this.onDateChange.bind(this) }))))));
1574
1626
  }
1575
1627
  getTriggerA11yLabel() {
1576
1628
  const date = this.locale.fromLocalISO(this.value);
1577
1629
  return date ? `${this.locale.change}, ${this.locale.toLocalStr(date)}` : this.locale.choose;
1578
1630
  }
1579
1631
  onInputBlur(e) {
1580
- if (!this.input) {
1632
+ if (!this.input || !this.inputFocused) {
1581
1633
  return;
1582
1634
  }
1635
+ this.inputFocused = false;
1583
1636
  const oldValue = this.value;
1584
1637
  const dateParsed = this.parse(this.input.value ?? '');
1585
1638
  const dateMin = this.locale.fromLocalISO(this.min);
@@ -1601,7 +1654,7 @@ const CatDate = class {
1601
1654
  onDateChange(e) {
1602
1655
  e.stopPropagation();
1603
1656
  const oldValue = this.value;
1604
- const date = e.detail ? new Date(e.detail) : null;
1657
+ const date = e.detail ? this.locale.fromLocalISO(e.detail) : null;
1605
1658
  this.value = date ? this.locale.toLocalISO(date) : undefined;
1606
1659
  if (oldValue !== this.value) {
1607
1660
  this.catChange.emit(this.value);
@@ -2461,7 +2514,7 @@ const CatDateInline = class {
2461
2514
  else if (isSameMonth(this.viewDate, now) && (!minDate || minDate <= now)) {
2462
2515
  return isSameMonth(this.viewDate, date) && isSameDay(now, date);
2463
2516
  }
2464
- const minDay = isSameMonth(date, minDate) ? minDate?.getDate() ?? 1 : 1;
2517
+ const minDay = isSameMonth(date, minDate) ? (minDate?.getDate() ?? 1) : 1;
2465
2518
  return isSameMonth(this.viewDate, date) && date.getDate() === minDay;
2466
2519
  }
2467
2520
  canClick(date) {
@@ -5408,12 +5461,21 @@ function getPaddingObject(padding) {
5408
5461
  };
5409
5462
  }
5410
5463
  function rectToClientRect(rect) {
5464
+ const {
5465
+ x,
5466
+ y,
5467
+ width,
5468
+ height
5469
+ } = rect;
5411
5470
  return {
5412
- ...rect,
5413
- top: rect.y,
5414
- left: rect.x,
5415
- right: rect.x + rect.width,
5416
- bottom: rect.y + rect.height
5471
+ width,
5472
+ height,
5473
+ top: y,
5474
+ left: x,
5475
+ right: x + width,
5476
+ bottom: y + height,
5477
+ x,
5478
+ y
5417
5479
  };
5418
5480
  }
5419
5481
 
@@ -5602,9 +5664,10 @@ async function detectOverflow(state, options) {
5602
5664
  strategy
5603
5665
  }));
5604
5666
  const rect = elementContext === 'floating' ? {
5605
- ...rects.floating,
5606
5667
  x,
5607
- y
5668
+ y,
5669
+ width: rects.floating.width,
5670
+ height: rects.floating.height
5608
5671
  } : rects.reference;
5609
5672
  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
5610
5673
  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
@@ -5854,10 +5917,12 @@ const flip$1 = function (options) {
5854
5917
  return {};
5855
5918
  }
5856
5919
  const side = getSide(placement);
5920
+ const initialSideAxis = getSideAxis(initialPlacement);
5857
5921
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
5858
5922
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
5859
5923
  const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
5860
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
5924
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
5925
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
5861
5926
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
5862
5927
  }
5863
5928
  const placements = [initialPlacement, ...fallbackPlacements];
@@ -5903,8 +5968,17 @@ const flip$1 = function (options) {
5903
5968
  switch (fallbackStrategy) {
5904
5969
  case 'bestFit':
5905
5970
  {
5906
- var _overflowsData$map$so;
5907
- const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
5971
+ var _overflowsData$filter2;
5972
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
5973
+ if (hasFallbackAxisSideDirection) {
5974
+ const currentSideAxis = getSideAxis(d.placement);
5975
+ return currentSideAxis === initialSideAxis ||
5976
+ // Create a bias to the `y` side axis due to horizontal
5977
+ // reading directions favoring greater width.
5978
+ currentSideAxis === 'y';
5979
+ }
5980
+ return true;
5981
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
5908
5982
  if (placement) {
5909
5983
  resetPlacement = placement;
5910
5984
  }
@@ -6144,6 +6218,8 @@ async function convertValueToCoords(state, options) {
6144
6218
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
6145
6219
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
6146
6220
  const rawValue = evaluate(options, state);
6221
+
6222
+ // eslint-disable-next-line prefer-const
6147
6223
  let {
6148
6224
  mainAxis,
6149
6225
  crossAxis,
@@ -6153,10 +6229,9 @@ async function convertValueToCoords(state, options) {
6153
6229
  crossAxis: 0,
6154
6230
  alignmentAxis: null
6155
6231
  } : {
6156
- mainAxis: 0,
6157
- crossAxis: 0,
6158
- alignmentAxis: null,
6159
- ...rawValue
6232
+ mainAxis: rawValue.mainAxis || 0,
6233
+ crossAxis: rawValue.crossAxis || 0,
6234
+ alignmentAxis: rawValue.alignmentAxis
6160
6235
  };
6161
6236
  if (alignment && typeof alignmentAxis === 'number') {
6162
6237
  crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
@@ -6278,7 +6353,11 @@ const shift$1 = function (options) {
6278
6353
  ...limitedCoords,
6279
6354
  data: {
6280
6355
  x: limitedCoords.x - x,
6281
- y: limitedCoords.y - y
6356
+ y: limitedCoords.y - y,
6357
+ enabled: {
6358
+ [mainAxis]: checkMainAxis,
6359
+ [crossAxis]: checkCrossAxis
6360
+ }
6282
6361
  }
6283
6362
  };
6284
6363
  }
@@ -6367,6 +6446,7 @@ const size$1 = function (options) {
6367
6446
  name: 'size',
6368
6447
  options,
6369
6448
  async fn(state) {
6449
+ var _state$middlewareData, _state$middlewareData2;
6370
6450
  const {
6371
6451
  placement,
6372
6452
  rects,
@@ -6394,17 +6474,18 @@ const size$1 = function (options) {
6394
6474
  widthSide = side;
6395
6475
  heightSide = alignment === 'end' ? 'top' : 'bottom';
6396
6476
  }
6397
- const overflowAvailableHeight = height - overflow[heightSide];
6398
- const overflowAvailableWidth = width - overflow[widthSide];
6477
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
6478
+ const maximumClippingWidth = width - overflow.left - overflow.right;
6479
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
6480
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
6399
6481
  const noShift = !state.middlewareData.shift;
6400
6482
  let availableHeight = overflowAvailableHeight;
6401
6483
  let availableWidth = overflowAvailableWidth;
6402
- if (isYAxis) {
6403
- const maximumClippingWidth = width - overflow.left - overflow.right;
6404
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
6405
- } else {
6406
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
6407
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
6484
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
6485
+ availableWidth = maximumClippingWidth;
6486
+ }
6487
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
6488
+ availableHeight = maximumClippingHeight;
6408
6489
  }
6409
6490
  if (noShift && !alignment) {
6410
6491
  const xMin = max(overflow.left, 0);
@@ -6435,6 +6516,9 @@ const size$1 = function (options) {
6435
6516
  };
6436
6517
  };
6437
6518
 
6519
+ function hasWindow() {
6520
+ return typeof window !== 'undefined';
6521
+ }
6438
6522
  function getNodeName(node) {
6439
6523
  if (isNode(node)) {
6440
6524
  return (node.nodeName || '').toLowerCase();
@@ -6453,17 +6537,25 @@ function getDocumentElement(node) {
6453
6537
  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
6454
6538
  }
6455
6539
  function isNode(value) {
6540
+ if (!hasWindow()) {
6541
+ return false;
6542
+ }
6456
6543
  return value instanceof Node || value instanceof getWindow(value).Node;
6457
6544
  }
6458
6545
  function isElement(value) {
6546
+ if (!hasWindow()) {
6547
+ return false;
6548
+ }
6459
6549
  return value instanceof Element || value instanceof getWindow(value).Element;
6460
6550
  }
6461
6551
  function isHTMLElement(value) {
6552
+ if (!hasWindow()) {
6553
+ return false;
6554
+ }
6462
6555
  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
6463
6556
  }
6464
6557
  function isShadowRoot(value) {
6465
- // Browsers without `ShadowRoot` support.
6466
- if (typeof ShadowRoot === 'undefined') {
6558
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
6467
6559
  return false;
6468
6560
  }
6469
6561
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
@@ -6480,9 +6572,18 @@ function isOverflowElement(element) {
6480
6572
  function isTableElement(element) {
6481
6573
  return ['table', 'td', 'th'].includes(getNodeName(element));
6482
6574
  }
6483
- function isContainingBlock(element) {
6575
+ function isTopLayer$1(element) {
6576
+ return [':popover-open', ':modal'].some(selector => {
6577
+ try {
6578
+ return element.matches(selector);
6579
+ } catch (e) {
6580
+ return false;
6581
+ }
6582
+ });
6583
+ }
6584
+ function isContainingBlock(elementOrCss) {
6484
6585
  const webkit = isWebKit();
6485
- const css = getComputedStyle$1(element);
6586
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
6486
6587
 
6487
6588
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
6488
6589
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
@@ -6492,9 +6593,10 @@ function getContainingBlock(element) {
6492
6593
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
6493
6594
  if (isContainingBlock(currentNode)) {
6494
6595
  return currentNode;
6495
- } else {
6496
- currentNode = getParentNode(currentNode);
6596
+ } else if (isTopLayer$1(currentNode)) {
6597
+ return null;
6497
6598
  }
6599
+ currentNode = getParentNode(currentNode);
6498
6600
  }
6499
6601
  return null;
6500
6602
  }
@@ -6516,8 +6618,8 @@ function getNodeScroll(element) {
6516
6618
  };
6517
6619
  }
6518
6620
  return {
6519
- scrollLeft: element.pageXOffset,
6520
- scrollTop: element.pageYOffset
6621
+ scrollLeft: element.scrollX,
6622
+ scrollTop: element.scrollY
6521
6623
  };
6522
6624
  }
6523
6625
  function getParentNode(node) {
@@ -6557,10 +6659,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
6557
6659
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
6558
6660
  const win = getWindow(scrollableAncestor);
6559
6661
  if (isBody) {
6560
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
6662
+ const frameElement = getFrameElement(win);
6663
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
6561
6664
  }
6562
6665
  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
6563
6666
  }
6667
+ function getFrameElement(win) {
6668
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
6669
+ }
6564
6670
 
6565
6671
  function getCssDimensions(element) {
6566
6672
  const css = getComputedStyle$1(element);
@@ -8601,7 +8707,7 @@ const CatDropdown = class {
8601
8707
  const elem = elems.shift();
8602
8708
  trigger = elem?.hasAttribute('data-trigger')
8603
8709
  ? elem
8604
- : elem?.querySelector('[data-trigger]') ?? undefined;
8710
+ : (elem?.querySelector('[data-trigger]') ?? undefined);
8605
8711
  }
8606
8712
  if (!trigger) {
8607
8713
  trigger = firstTabbable(this.triggerSlot);
@@ -13531,7 +13637,7 @@ const CatTime = class {
13531
13637
  }
13532
13638
  else if (value !== oldValue) {
13533
13639
  this.set12hFormat();
13534
- this.syncValue(value);
13640
+ this.syncValue(value ?? '');
13535
13641
  }
13536
13642
  }
13537
13643
  componentWillLoad() {
@@ -13570,7 +13676,7 @@ const CatTime = class {
13570
13676
  let newValue = this.value;
13571
13677
  if (!date) {
13572
13678
  this.selectionTime = null;
13573
- this.value = undefined;
13679
+ newValue = undefined;
13574
13680
  }
13575
13681
  else {
13576
13682
  const time = clampTime(this.min ?? null, date, this.max ?? null);
@@ -13616,14 +13722,14 @@ const CatTime = class {
13616
13722
  this.input?.clear();
13617
13723
  }
13618
13724
  render() {
13619
- return (h(Host, { key: 'e7f3fec7aac9269904c5b85554e1c066b1ca630e' }, h("cat-input", { key: 'e7e3ecb30bdbe05e07bb749edbddca5f23312985', class: "cat-time-input", ref: el => (this.input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, label: this.label, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, value: this.format(this.selectionTime, false), errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, onCatFocus: e => this.catFocus.emit(e.detail), onCatBlur: e => this.onInputBlur(e.detail) }, h("span", { key: 'fb1227046b0e70ca3b3e7fdd817693415f3c95cd', slot: "label" }, this.hasSlottedLabel && h("slot", { key: '80986dbd022a16c7346fce67aa9142c77b7f878f', name: "label" }), !this.hasSlottedLabel && this.label, h("span", { key: 'a0122503c91023c09cfaf02a528a2af9a8fae457', class: "label-aria" }, " (HH:mm)")), h("div", { key: '3f8179a371368b89267571e66827b7f79f1b0cda', slot: "addon", class: "cat-time-addon" }, this.locale.timeFormat === '12' && (h("cat-button", { key: '62cd7e32d099d45142a5241a7485275e675d498d', class: "cat-time-format", disabled: this.disabled || this.readonly, onCatClick: () => this.toggleAm() }, this.isAm ? 'AM' : 'PM')), h("cat-dropdown", { key: '8a7926b666c69528396a683048efaf9d8ad54df1', slot: "addon", placement: this.placement }, h("cat-button", { key: '47b6dffa1c65644bc36706d0187c1681fbd3327e', slot: "trigger", class: "cat-time-toggle", disabled: this.disabled || this.readonly, icon: "$cat:timepicker-clock", iconOnly: true, a11yLabel: this.selectionTime ? `${this.locale.change}, ${this.format(this.selectionTime)}` : this.locale.choose }), h("nav", { key: '6afd81a1b00e31723efcb3b49c3df97c52ea21b0', slot: "content", class: "cat-nav" }, h("ul", { key: 'd1176db0809d98ad0dd4919dd28aed480b668cbc' }, this.timeArray().map(time => {
13725
+ return (h(Host, { key: 'b71fce8999b68ab9372e79cff859e00c3c3b5ae3' }, h("cat-input", { key: 'cb824f43ba631809d3229e57fe70ad3d89d25e25', class: "cat-time-input", ref: el => (this.input = el), requiredMarker: this.requiredMarker, horizontal: this.horizontal, autoComplete: this.autoComplete, clearable: this.clearable, disabled: this.disabled, hint: this.hint, icon: this.icon, iconRight: this.iconRight, identifier: this.identifier, label: this.label, labelHidden: this.labelHidden, name: this.name, placeholder: this.placeholder, textPrefix: this.textPrefix, textSuffix: this.textSuffix, readonly: this.readonly, required: this.required, value: this.format(this.selectionTime, false), errors: this.errors, errorUpdate: this.errorUpdate, nativeAttributes: this.nativeAttributes, onCatFocus: e => this.catFocus.emit(e.detail), onCatBlur: e => this.onInputBlur(e.detail) }, h("span", { key: '245d373d89a8b03d3bbc772bd35e260c35cc3c26', slot: "label" }, this.hasSlottedLabel && h("slot", { key: 'b9717682f61035f64a7230fe775267f723f8ecb2', name: "label" }), !this.hasSlottedLabel && this.label, h("span", { key: '747a7a112450391f3ba970cb7faefd904877e1a5', class: "label-aria" }, " (HH:mm)")), h("div", { key: '15c380b767ef28aade17e1ac21a2134677060772', slot: "addon", class: "cat-time-addon" }, this.locale.timeFormat === '12' && (h("cat-button", { key: '63d2eef4a5e69c15e23233f57912b4a20e869470', class: "cat-time-format", disabled: this.disabled || this.readonly, onCatClick: () => this.toggleAm() }, this.isAm ? 'AM' : 'PM')), h("cat-dropdown", { key: '581392dc8dc6ce127fdafc75676f6c9ab46925fb', slot: "addon", placement: this.placement }, h("cat-button", { key: 'f563afde31e991f8f1533ad0d3a50ee34eee81b4', slot: "trigger", class: "cat-time-toggle", disabled: this.disabled || this.readonly, icon: "$cat:timepicker-clock", iconOnly: true, a11yLabel: this.selectionTime ? `${this.locale.change}, ${this.format(this.selectionTime)}` : this.locale.choose }), h("nav", { key: 'baa0539c318511783cd5c4d85d39b310df7016d4', slot: "content", class: "cat-nav" }, h("ul", { key: '10af19bdc805117f96ab2d67ef76065c0cc02bff' }, this.timeArray().map(time => {
13620
13726
  const isoTime = formatIso(time);
13621
13727
  const disabled = isBefore(time, this.min ?? null) || isAfter(time, this.max ?? null);
13622
13728
  return (h("li", null, h("cat-button", { class: {
13623
13729
  'cat-nav-item': true,
13624
13730
  'time-disabled': disabled
13625
13731
  }, disabled: disabled, active: isoTime === this.value, color: isoTime === this.value ? 'primary' : 'secondary', variant: isoTime === this.value ? 'filled' : 'outlined', onCatClick: () => this.select(time), "data-time": isoTime }, this.format(time))));
13626
- }))))), this.hasSlottedHint && (h("span", { key: '9c46d6be446c162b785d2d03a856b63417f1a38e', slot: "hint" }, h("slot", { key: '1e581c2ee687c125552ad560da773da4dfdd4691', name: "hint" }))))));
13732
+ }))))), this.hasSlottedHint && (h("span", { key: 'f66debdaced2d5c33af41d7c435f67c4831e98a4', slot: "hint" }, h("slot", { key: 'f66d541b07a9b822a414447ff7888f3d4df0e63c', name: "hint" }))))));
13627
13733
  }
13628
13734
  timeArray() {
13629
13735
  const result = [];
@@ -13772,7 +13878,7 @@ const CatToggle = class {
13772
13878
  this.catBlur.emit(event);
13773
13879
  }
13774
13880
  updateResolved() {
13775
- this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
13881
+ this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
13776
13882
  }
13777
13883
  get hostElement() { return getElement(this); }
13778
13884
  };