@haiilo/catalyst 10.25.3 → 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 (70) 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-57a035f5.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 +177 -74
  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-inline/cat-date-inline.js +1 -1
  27. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  28. package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
  29. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  30. package/dist/collection/components/cat-time/cat-time.js +4 -4
  31. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  32. package/dist/collection/components/cat-toggle/cat-toggle.js +1 -1
  33. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  34. package/dist/components/cat-badge.js +67 -5
  35. package/dist/components/cat-badge.js.map +1 -1
  36. package/dist/components/cat-button-group.js +7 -6
  37. package/dist/components/cat-button-group.js.map +1 -1
  38. package/dist/components/cat-button2.js +10 -125
  39. package/dist/components/cat-button2.js.map +1 -1
  40. package/dist/components/cat-checkbox2.js +1 -1
  41. package/dist/components/cat-checkbox2.js.map +1 -1
  42. package/dist/components/cat-date-inline2.js +1 -1
  43. package/dist/components/cat-date-inline2.js.map +1 -1
  44. package/dist/components/cat-dropdown2.js +1 -1
  45. package/dist/components/cat-dropdown2.js.map +1 -1
  46. package/dist/components/cat-time.js +4 -4
  47. package/dist/components/cat-time.js.map +1 -1
  48. package/dist/components/cat-toggle.js +1 -1
  49. package/dist/components/cat-toggle.js.map +1 -1
  50. package/dist/components/floating-ui.dom.esm.js +85 -32
  51. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  52. package/dist/components/from.js +3 -2
  53. package/dist/components/from.js.map +1 -1
  54. package/dist/components/media-matcher.js +120 -0
  55. package/dist/components/media-matcher.js.map +1 -0
  56. package/dist/esm/cat-alert_30.entry.js +177 -74
  57. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  58. package/dist/esm/catalyst.js +1 -1
  59. package/dist/esm/index.js +2 -2
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/esm/{of-625babef.js → of-acb1f3a9.js} +4 -3
  62. package/dist/esm/of-acb1f3a9.js.map +1 -0
  63. package/dist/types/components/cat-badge/cat-badge.d.ts +23 -0
  64. package/dist/types/components/cat-button-group/cat-button-group.d.ts +1 -1
  65. package/dist/types/components.d.ts +24 -0
  66. package/package.json +2 -2
  67. package/dist/catalyst/p-57a035f5.entry.js.map +0 -1
  68. package/dist/catalyst/p-f4873629.js.map +0 -1
  69. package/dist/cjs/of-5cd84f84.js.map +0 -1
  70. 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
  };
@@ -2464,7 +2514,7 @@ const CatDateInline = class {
2464
2514
  else if (isSameMonth(this.viewDate, now) && (!minDate || minDate <= now)) {
2465
2515
  return isSameMonth(this.viewDate, date) && isSameDay(now, date);
2466
2516
  }
2467
- const minDay = isSameMonth(date, minDate) ? minDate?.getDate() ?? 1 : 1;
2517
+ const minDay = isSameMonth(date, minDate) ? (minDate?.getDate() ?? 1) : 1;
2468
2518
  return isSameMonth(this.viewDate, date) && date.getDate() === minDay;
2469
2519
  }
2470
2520
  canClick(date) {
@@ -5411,12 +5461,21 @@ function getPaddingObject(padding) {
5411
5461
  };
5412
5462
  }
5413
5463
  function rectToClientRect(rect) {
5464
+ const {
5465
+ x,
5466
+ y,
5467
+ width,
5468
+ height
5469
+ } = rect;
5414
5470
  return {
5415
- ...rect,
5416
- top: rect.y,
5417
- left: rect.x,
5418
- right: rect.x + rect.width,
5419
- 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
5420
5479
  };
5421
5480
  }
5422
5481
 
@@ -5605,9 +5664,10 @@ async function detectOverflow(state, options) {
5605
5664
  strategy
5606
5665
  }));
5607
5666
  const rect = elementContext === 'floating' ? {
5608
- ...rects.floating,
5609
5667
  x,
5610
- y
5668
+ y,
5669
+ width: rects.floating.width,
5670
+ height: rects.floating.height
5611
5671
  } : rects.reference;
5612
5672
  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
5613
5673
  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
@@ -5857,10 +5917,12 @@ const flip$1 = function (options) {
5857
5917
  return {};
5858
5918
  }
5859
5919
  const side = getSide(placement);
5920
+ const initialSideAxis = getSideAxis(initialPlacement);
5860
5921
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
5861
5922
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
5862
5923
  const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
5863
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
5924
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
5925
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
5864
5926
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
5865
5927
  }
5866
5928
  const placements = [initialPlacement, ...fallbackPlacements];
@@ -5906,8 +5968,17 @@ const flip$1 = function (options) {
5906
5968
  switch (fallbackStrategy) {
5907
5969
  case 'bestFit':
5908
5970
  {
5909
- var _overflowsData$map$so;
5910
- 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];
5911
5982
  if (placement) {
5912
5983
  resetPlacement = placement;
5913
5984
  }
@@ -6147,6 +6218,8 @@ async function convertValueToCoords(state, options) {
6147
6218
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
6148
6219
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
6149
6220
  const rawValue = evaluate(options, state);
6221
+
6222
+ // eslint-disable-next-line prefer-const
6150
6223
  let {
6151
6224
  mainAxis,
6152
6225
  crossAxis,
@@ -6156,10 +6229,9 @@ async function convertValueToCoords(state, options) {
6156
6229
  crossAxis: 0,
6157
6230
  alignmentAxis: null
6158
6231
  } : {
6159
- mainAxis: 0,
6160
- crossAxis: 0,
6161
- alignmentAxis: null,
6162
- ...rawValue
6232
+ mainAxis: rawValue.mainAxis || 0,
6233
+ crossAxis: rawValue.crossAxis || 0,
6234
+ alignmentAxis: rawValue.alignmentAxis
6163
6235
  };
6164
6236
  if (alignment && typeof alignmentAxis === 'number') {
6165
6237
  crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
@@ -6281,7 +6353,11 @@ const shift$1 = function (options) {
6281
6353
  ...limitedCoords,
6282
6354
  data: {
6283
6355
  x: limitedCoords.x - x,
6284
- y: limitedCoords.y - y
6356
+ y: limitedCoords.y - y,
6357
+ enabled: {
6358
+ [mainAxis]: checkMainAxis,
6359
+ [crossAxis]: checkCrossAxis
6360
+ }
6285
6361
  }
6286
6362
  };
6287
6363
  }
@@ -6370,6 +6446,7 @@ const size$1 = function (options) {
6370
6446
  name: 'size',
6371
6447
  options,
6372
6448
  async fn(state) {
6449
+ var _state$middlewareData, _state$middlewareData2;
6373
6450
  const {
6374
6451
  placement,
6375
6452
  rects,
@@ -6397,17 +6474,18 @@ const size$1 = function (options) {
6397
6474
  widthSide = side;
6398
6475
  heightSide = alignment === 'end' ? 'top' : 'bottom';
6399
6476
  }
6400
- const overflowAvailableHeight = height - overflow[heightSide];
6401
- 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);
6402
6481
  const noShift = !state.middlewareData.shift;
6403
6482
  let availableHeight = overflowAvailableHeight;
6404
6483
  let availableWidth = overflowAvailableWidth;
6405
- if (isYAxis) {
6406
- const maximumClippingWidth = width - overflow.left - overflow.right;
6407
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
6408
- } else {
6409
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
6410
- 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;
6411
6489
  }
6412
6490
  if (noShift && !alignment) {
6413
6491
  const xMin = max(overflow.left, 0);
@@ -6438,6 +6516,9 @@ const size$1 = function (options) {
6438
6516
  };
6439
6517
  };
6440
6518
 
6519
+ function hasWindow() {
6520
+ return typeof window !== 'undefined';
6521
+ }
6441
6522
  function getNodeName(node) {
6442
6523
  if (isNode(node)) {
6443
6524
  return (node.nodeName || '').toLowerCase();
@@ -6456,17 +6537,25 @@ function getDocumentElement(node) {
6456
6537
  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
6457
6538
  }
6458
6539
  function isNode(value) {
6540
+ if (!hasWindow()) {
6541
+ return false;
6542
+ }
6459
6543
  return value instanceof Node || value instanceof getWindow(value).Node;
6460
6544
  }
6461
6545
  function isElement(value) {
6546
+ if (!hasWindow()) {
6547
+ return false;
6548
+ }
6462
6549
  return value instanceof Element || value instanceof getWindow(value).Element;
6463
6550
  }
6464
6551
  function isHTMLElement(value) {
6552
+ if (!hasWindow()) {
6553
+ return false;
6554
+ }
6465
6555
  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
6466
6556
  }
6467
6557
  function isShadowRoot(value) {
6468
- // Browsers without `ShadowRoot` support.
6469
- if (typeof ShadowRoot === 'undefined') {
6558
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
6470
6559
  return false;
6471
6560
  }
6472
6561
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
@@ -6483,9 +6572,18 @@ function isOverflowElement(element) {
6483
6572
  function isTableElement(element) {
6484
6573
  return ['table', 'td', 'th'].includes(getNodeName(element));
6485
6574
  }
6486
- 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) {
6487
6585
  const webkit = isWebKit();
6488
- const css = getComputedStyle$1(element);
6586
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
6489
6587
 
6490
6588
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
6491
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));
@@ -6495,9 +6593,10 @@ function getContainingBlock(element) {
6495
6593
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
6496
6594
  if (isContainingBlock(currentNode)) {
6497
6595
  return currentNode;
6498
- } else {
6499
- currentNode = getParentNode(currentNode);
6596
+ } else if (isTopLayer$1(currentNode)) {
6597
+ return null;
6500
6598
  }
6599
+ currentNode = getParentNode(currentNode);
6501
6600
  }
6502
6601
  return null;
6503
6602
  }
@@ -6519,8 +6618,8 @@ function getNodeScroll(element) {
6519
6618
  };
6520
6619
  }
6521
6620
  return {
6522
- scrollLeft: element.pageXOffset,
6523
- scrollTop: element.pageYOffset
6621
+ scrollLeft: element.scrollX,
6622
+ scrollTop: element.scrollY
6524
6623
  };
6525
6624
  }
6526
6625
  function getParentNode(node) {
@@ -6560,10 +6659,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
6560
6659
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
6561
6660
  const win = getWindow(scrollableAncestor);
6562
6661
  if (isBody) {
6563
- 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) : []);
6564
6664
  }
6565
6665
  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
6566
6666
  }
6667
+ function getFrameElement(win) {
6668
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
6669
+ }
6567
6670
 
6568
6671
  function getCssDimensions(element) {
6569
6672
  const css = getComputedStyle$1(element);
@@ -8604,7 +8707,7 @@ const CatDropdown = class {
8604
8707
  const elem = elems.shift();
8605
8708
  trigger = elem?.hasAttribute('data-trigger')
8606
8709
  ? elem
8607
- : elem?.querySelector('[data-trigger]') ?? undefined;
8710
+ : (elem?.querySelector('[data-trigger]') ?? undefined);
8608
8711
  }
8609
8712
  if (!trigger) {
8610
8713
  trigger = firstTabbable(this.triggerSlot);
@@ -13534,7 +13637,7 @@ const CatTime = class {
13534
13637
  }
13535
13638
  else if (value !== oldValue) {
13536
13639
  this.set12hFormat();
13537
- this.syncValue(value);
13640
+ this.syncValue(value ?? '');
13538
13641
  }
13539
13642
  }
13540
13643
  componentWillLoad() {
@@ -13573,7 +13676,7 @@ const CatTime = class {
13573
13676
  let newValue = this.value;
13574
13677
  if (!date) {
13575
13678
  this.selectionTime = null;
13576
- this.value = undefined;
13679
+ newValue = undefined;
13577
13680
  }
13578
13681
  else {
13579
13682
  const time = clampTime(this.min ?? null, date, this.max ?? null);
@@ -13619,14 +13722,14 @@ const CatTime = class {
13619
13722
  this.input?.clear();
13620
13723
  }
13621
13724
  render() {
13622
- 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 => {
13623
13726
  const isoTime = formatIso(time);
13624
13727
  const disabled = isBefore(time, this.min ?? null) || isAfter(time, this.max ?? null);
13625
13728
  return (h("li", null, h("cat-button", { class: {
13626
13729
  'cat-nav-item': true,
13627
13730
  'time-disabled': disabled
13628
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))));
13629
- }))))), 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" }))))));
13630
13733
  }
13631
13734
  timeArray() {
13632
13735
  const result = [];
@@ -13775,7 +13878,7 @@ const CatToggle = class {
13775
13878
  this.catBlur.emit(event);
13776
13879
  }
13777
13880
  updateResolved() {
13778
- this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
13881
+ this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
13779
13882
  }
13780
13883
  get hostElement() { return getElement(this); }
13781
13884
  };