@haiilo/catalyst 10.9.0 → 10.11.0

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 (114) hide show
  1. package/dist/catalyst/catalyst.css +1 -0
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/{p-20919029.js → p-22f0435a.js} +3 -3
  5. package/dist/catalyst/p-22f0435a.js.map +1 -0
  6. package/dist/catalyst/p-392d4655.entry.js +10 -0
  7. package/dist/catalyst/p-392d4655.entry.js.map +1 -0
  8. package/dist/catalyst/scss/core/_notification.scss +1 -0
  9. package/dist/cjs/cat-alert_29.cjs.entry.js +1199 -1159
  10. package/dist/cjs/cat-alert_29.cjs.entry.js.map +1 -1
  11. package/dist/cjs/catalyst.cjs.js +2 -2
  12. package/dist/cjs/{index-13aff0b4.js → index-66a60071.js} +7 -2
  13. package/dist/cjs/index-66a60071.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +2 -2
  15. package/dist/collection/components/cat-avatar/cat-avatar.js +2 -4
  16. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  17. package/dist/collection/components/cat-button/cat-button.js +2 -4
  18. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  19. package/dist/collection/components/cat-card/cat-card.js +27 -1
  20. package/dist/collection/components/cat-card/cat-card.js.map +1 -1
  21. package/dist/collection/components/cat-checkbox/cat-checkbox.js +7 -7
  22. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  23. package/dist/collection/components/cat-date/cat-date.js +2 -2
  24. package/dist/collection/components/cat-date-inline/cat-date-inline.css +93 -1
  25. package/dist/collection/components/cat-date-inline/cat-date-inline.js +164 -11
  26. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  27. package/dist/collection/components/cat-datepicker/cat-datepicker.js +2 -2
  28. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +2 -2
  29. package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
  30. package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
  31. package/dist/collection/components/cat-icon/cat-icon.js +1 -1
  32. package/dist/collection/components/cat-input/cat-input.css +1 -0
  33. package/dist/collection/components/cat-input/cat-input.js +10 -10
  34. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  35. package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
  36. package/dist/collection/components/cat-radio/cat-radio.js +7 -7
  37. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  38. package/dist/collection/components/cat-radio-group/cat-radio-group.js +1 -1
  39. package/dist/collection/components/cat-scrollable/cat-scrollable.js +3 -3
  40. package/dist/collection/components/cat-select/cat-select.js +10 -10
  41. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  42. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
  43. package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
  44. package/dist/collection/components/cat-spinner/cat-spinner.js +2 -2
  45. package/dist/collection/components/cat-tab/cat-tab.js +1 -1
  46. package/dist/collection/components/cat-tabs/cat-tabs.js +1 -1
  47. package/dist/collection/components/cat-textarea/cat-textarea.js +9 -9
  48. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  49. package/dist/collection/components/cat-time/cat-time.js +1 -1
  50. package/dist/collection/components/cat-toggle/cat-toggle.js +7 -7
  51. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  52. package/dist/collection/components/cat-tooltip/cat-tooltip.js +3 -3
  53. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  54. package/dist/collection/scss/core/_notification.scss +1 -0
  55. package/dist/collection/utils/assert.js +9 -0
  56. package/dist/collection/utils/assert.js.map +1 -0
  57. package/dist/components/assert.js +13 -0
  58. package/dist/components/assert.js.map +1 -0
  59. package/dist/components/cat-avatar2.js +2 -4
  60. package/dist/components/cat-avatar2.js.map +1 -1
  61. package/dist/components/cat-button2.js +2 -3
  62. package/dist/components/cat-button2.js.map +1 -1
  63. package/dist/components/cat-card.js +6 -2
  64. package/dist/components/cat-card.js.map +1 -1
  65. package/dist/components/cat-checkbox2.js +7 -7
  66. package/dist/components/cat-checkbox2.js.map +1 -1
  67. package/dist/components/cat-date-inline2.js +55 -13
  68. package/dist/components/cat-date-inline2.js.map +1 -1
  69. package/dist/components/cat-date.js +2 -2
  70. package/dist/components/cat-datepicker-inline.js +2 -2
  71. package/dist/components/cat-datepicker.js +2 -2
  72. package/dist/components/cat-dropdown2.js +2 -574
  73. package/dist/components/cat-dropdown2.js.map +1 -1
  74. package/dist/components/cat-form-group.js +1 -1
  75. package/dist/components/cat-icon2.js +1 -1
  76. package/dist/components/cat-input2.js +11 -11
  77. package/dist/components/cat-input2.js.map +1 -1
  78. package/dist/components/cat-pagination.js +2 -2
  79. package/dist/components/cat-radio-group.js +1 -1
  80. package/dist/components/cat-radio.js +7 -7
  81. package/dist/components/cat-radio.js.map +1 -1
  82. package/dist/components/cat-scrollable2.js +3 -3
  83. package/dist/components/cat-select-demo.js +1 -1
  84. package/dist/components/cat-select2.js +10 -10
  85. package/dist/components/cat-select2.js.map +1 -1
  86. package/dist/components/cat-skeleton2.js +1 -1
  87. package/dist/components/cat-spinner2.js +2 -2
  88. package/dist/components/cat-tab.js +1 -1
  89. package/dist/components/cat-tabs.js +1 -1
  90. package/dist/components/cat-textarea.js +9 -9
  91. package/dist/components/cat-textarea.js.map +1 -1
  92. package/dist/components/cat-time.js +1 -1
  93. package/dist/components/cat-toggle.js +7 -7
  94. package/dist/components/cat-toggle.js.map +1 -1
  95. package/dist/components/cat-tooltip.js +3 -3
  96. package/dist/components/cat-tooltip.js.map +1 -1
  97. package/dist/components/first-tabbable.js +576 -0
  98. package/dist/components/first-tabbable.js.map +1 -0
  99. package/dist/esm/cat-alert_29.entry.js +1199 -1159
  100. package/dist/esm/cat-alert_29.entry.js.map +1 -1
  101. package/dist/esm/catalyst.js +3 -3
  102. package/dist/esm/{index-ecb4a974.js → index-b7832dfc.js} +7 -2
  103. package/dist/esm/index-b7832dfc.js.map +1 -0
  104. package/dist/esm/loader.js +3 -3
  105. package/dist/types/components/cat-card/cat-card.d.ts +6 -0
  106. package/dist/types/components/cat-date-inline/cat-date-inline.d.ts +33 -0
  107. package/dist/types/components.d.ts +64 -0
  108. package/dist/types/utils/assert.d.ts +1 -0
  109. package/package.json +2 -2
  110. package/dist/catalyst/p-18c3eb4d.entry.js +0 -10
  111. package/dist/catalyst/p-18c3eb4d.entry.js.map +0 -1
  112. package/dist/catalyst/p-20919029.js.map +0 -1
  113. package/dist/cjs/index-13aff0b4.js.map +0 -1
  114. package/dist/esm/index-ecb4a974.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-ecb4a974.js';
2
- export { s as setNonce } from './index-ecb4a974.js';
1
+ import { b as bootstrapLazy } from './index-b7832dfc.js';
2
+ export { s as setNonce } from './index-b7832dfc.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["cat-alert_29",[[0,"cat-select-demo"],[1,"cat-date",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"placement":[1],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"min":["onMinChanged"],"max":["onMaxChanged"]}],[1,"cat-time",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"placement":[1],"step":[2],"hasSlottedLabel":[32],"hasSlottedHint":[32],"selectionTime":[32],"isAm":[32],"select":[64],"doFocus":[64],"doBlur":[64],"clear":[64]},[[0,"catOpen","onOpen"]],{"min":["onMinChanged"],"max":["onMaxChanged"]}],[1,"cat-datepicker",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"mode":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"step":[2],"attachToElement":[4,"attach-to-element"],"position":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"nativePickerAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"],"mode":["onDisabledChanged"],"min":["onMinChanged"],"max":["onMinChanged"]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1537,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"setActive":[64],"setActiveIndex":[64]},[[0,"keydown","onKeydown"]],{"activeTab":["onActiveTabChange"]}],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-button-group",{"a11yLabel":[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{"disabled":[4],"max":[1],"min":[1],"mode":[1],"readonly":[4],"step":[2],"value":[1025],"nativePickerAttributes":[16]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"]}],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"labelSize":[1,"label-size"]},null,{"requiredMarker":["onRequiredMarkerChanged"],"horizontal":["onHorizontalChanged"]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1032],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{"name":["onNameChanged"],"value":["onValueChanged"],"disabled":["onDisabledChanged"],"labelLeft":["onLabelLeftChanged"]}],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516],"error":[516],"nativeAttributes":[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"noValue":[8,"no-value"],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"],"open":[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"connector":[32],"state":[32],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{"connector":["onConnectorChanged"],"value":["onValueChanged"],"errors":["onErrorsChanged"],"state":["onStateChanged"]}],[1,"cat-date-inline",{"noClear":[4,"no-clear"],"hint":[4],"noToday":[4,"no-today"],"weeks":[4],"min":[1],"max":[1],"range":[4],"value":[1025],"viewDate":[32],"select":[64],"clear":[64],"resetView":[64]},[[0,"keydown","onKeyDown"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]},null,{"src":["onSrcChanged"]}],[1,"cat-checkbox",{"checked":[1028],"indeterminate":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"noValue":[8,"no-value"],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"togglePassword":[4,"toggle-password"],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"isPasswordShown":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64],"mask":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"arrowNavigation":[1,"arrow-navigation"],"noResize":[4,"no-resize"],"overflow":[4],"noInitialFocus":[4,"no-initial-focus"],"toggle":[64],"open":[64],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"nativeAttributes":[16],"nativeContentAttributes":[16],"buttonGroupPosition":[1,"button-group-position"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]],{"iconOnly":["onIconOnlyChanged"]}],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
8
+ return bootstrapLazy([["cat-alert_29",[[0,"cat-select-demo"],[1,"cat-date",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"placement":[1],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"min":["onMinChanged"],"max":["onMaxChanged"]}],[1,"cat-time",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"placement":[1],"step":[2],"hasSlottedLabel":[32],"hasSlottedHint":[32],"selectionTime":[32],"isAm":[32],"select":[64],"doFocus":[64],"doBlur":[64],"clear":[64]},[[0,"catOpen","onOpen"]],{"min":["onMinChanged"],"max":["onMaxChanged"]}],[1,"cat-datepicker",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[1],"min":[1],"mode":[1],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"step":[2],"attachToElement":[4,"attach-to-element"],"position":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"nativePickerAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"],"mode":["onDisabledChanged"],"min":["onMinChanged"],"max":["onMinChanged"]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1537,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"setActive":[64],"setActiveIndex":[64]},[[0,"keydown","onKeydown"]],{"activeTab":["onActiveTabChange"]}],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-button-group",{"a11yLabel":[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{"disabled":[4],"max":[1],"min":[1],"mode":[1],"readonly":[4],"step":[2],"value":[1025],"nativePickerAttributes":[16]},null,{"value":["onValueChanged"],"disabled":["onDisabledChanged"],"readonly":["onDisabledChanged"]}],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"labelSize":[1,"label-size"]},null,{"requiredMarker":["onRequiredMarkerChanged"],"horizontal":["onHorizontalChanged"]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1032],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{"name":["onNameChanged"],"value":["onValueChanged"],"disabled":["onDisabledChanged"],"labelLeft":["onLabelLeftChanged"]}],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516],"error":[516],"nativeAttributes":[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"noValue":[8,"no-value"],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"],"open":[32]},[[8,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"connector":[32],"state":[32],"hasSlottedLabel":[32],"hasSlottedHint":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{"connector":["onConnectorChanged"],"value":["onValueChanged"],"errors":["onErrorsChanged"],"state":["onStateChanged"]}],[1,"cat-date-inline",{"noClear":[4,"no-clear"],"identifier":[1],"hint":[4],"noToday":[4,"no-today"],"weeks":[4],"label":[1],"labelHidden":[4,"label-hidden"],"min":[1],"max":[1],"range":[4],"required":[4],"requiredMarker":[1,"required-marker"],"value":[1025],"hasSlottedLabel":[32],"hasSlottedHint":[32],"viewDate":[32],"select":[64],"clear":[64],"resetView":[64],"doFocus":[64]},[[0,"keydown","onKeyDown"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]},null,{"src":["onSrcChanged"]}],[1,"cat-checkbox",{"checked":[1028],"indeterminate":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[8],"noValue":[8,"no-value"],"resolvedValue":[1032,"resolved-value"],"hint":[1],"labelLeft":[4,"label-left"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"doFocus":[64],"doBlur":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"horizontal":[4],"autoComplete":[1,"auto-complete"],"clearable":[4],"togglePassword":[4,"toggle-password"],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1025],"errors":[4],"errorUpdate":[8,"error-update"],"nativeAttributes":[16],"hasSlottedLabel":[32],"hasSlottedHint":[32],"isPasswordShown":[32],"errorMap":[32],"doFocus":[64],"doBlur":[64],"clear":[64],"mask":[64]},null,{"errors":["onErrorsChanged"]}],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"arrowNavigation":[1,"arrow-navigation"],"noResize":[4,"no-resize"],"overflow":[4],"noInitialFocus":[4,"no-initial-focus"],"toggle":[64],"open":[64],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"nativeAttributes":[16],"nativeContentAttributes":[16],"buttonGroupPosition":[1,"button-group-position"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]],{"iconOnly":["onIconOnlyChanged"]}],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,7 +1,13 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  /**
2
3
  * Cards are surfaces that display content and actions on a single topic. They
3
4
  * should be easy to scan for relevant and actionable information.
4
5
  */
5
6
  export declare class CatCard {
7
+ /**
8
+ * Emitted when the card and all the children are fully loaded.
9
+ */
10
+ catLoad: EventEmitter<FocusEvent>;
6
11
  render(): any;
12
+ componentDidLoad(): void;
7
13
  }
@@ -3,15 +3,23 @@ import { EventEmitter } from '../../stencil-public-runtime';
3
3
  * An inline date picker component to select a date.
4
4
  */
5
5
  export declare class CatDateInline {
6
+ private readonly _id;
7
+ private get id();
6
8
  private readonly language;
7
9
  private readonly locale;
8
10
  private focusDate;
9
11
  hostElement: HTMLElement;
12
+ hasSlottedLabel: boolean;
13
+ hasSlottedHint: boolean;
10
14
  viewDate: Date;
11
15
  /**
12
16
  * Hides the clear button.
13
17
  */
14
18
  noClear: boolean;
19
+ /**
20
+ * A unique identifier for the input.
21
+ */
22
+ identifier?: string;
15
23
  /**
16
24
  * Shows an arrow keys navigation hint.
17
25
  */
@@ -24,6 +32,14 @@ export declare class CatDateInline {
24
32
  * Show week numbers.
25
33
  */
26
34
  weeks: boolean;
35
+ /**
36
+ * The label for the input.
37
+ */
38
+ label: string;
39
+ /**
40
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
41
+ */
42
+ labelHidden: boolean;
27
43
  /**
28
44
  * A minimum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
29
45
  */
@@ -36,6 +52,14 @@ export declare class CatDateInline {
36
52
  * Allow the selection of a range of dates, i.e. start and end date.
37
53
  */
38
54
  range: boolean;
55
+ /**
56
+ * A value is required or must be check for the form to be submittable.
57
+ */
58
+ required: boolean;
59
+ /**
60
+ * Whether the label need a marker to shown if the input is required or optional.
61
+ */
62
+ requiredMarker?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
39
63
  /**
40
64
  * The value of the control, given in local ISO 8601 date format YYYY-MM-DD.
41
65
  */
@@ -46,6 +70,7 @@ export declare class CatDateInline {
46
70
  catChange: EventEmitter<string>;
47
71
  private get focusedDate();
48
72
  componentWillLoad(): void;
73
+ componentWillRender(): void;
49
74
  componentDidRender(): void;
50
75
  onKeyDown(e: KeyboardEvent): void;
51
76
  /**
@@ -62,6 +87,14 @@ export declare class CatDateInline {
62
87
  * Resets the view of the picker.
63
88
  */
64
89
  resetView(): Promise<void>;
90
+ /**
91
+ * Programmatically move focus to the inline datepicker, i,e, the first
92
+ * focusable date.
93
+ *
94
+ * @param options An optional object providing options to control aspects of
95
+ * the focusing process.
96
+ */
97
+ doFocus(options?: FocusOptions): Promise<void>;
65
98
  render(): any;
66
99
  private focus;
67
100
  private navigate;
@@ -421,10 +421,27 @@ export namespace Components {
421
421
  * Clear the picker.
422
422
  */
423
423
  "clear": () => Promise<void>;
424
+ /**
425
+ * Programmatically move focus to the inline datepicker, i,e, the first focusable date.
426
+ * @param options An optional object providing options to control aspects of the focusing process.
427
+ */
428
+ "doFocus": (options?: FocusOptions) => Promise<void>;
424
429
  /**
425
430
  * Shows an arrow keys navigation hint.
426
431
  */
427
432
  "hint": boolean;
433
+ /**
434
+ * A unique identifier for the input.
435
+ */
436
+ "identifier"?: string;
437
+ /**
438
+ * The label for the input.
439
+ */
440
+ "label": string;
441
+ /**
442
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
443
+ */
444
+ "labelHidden": boolean;
428
445
  /**
429
446
  * A maximum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
430
447
  */
@@ -445,6 +462,14 @@ export namespace Components {
445
462
  * Allow the selection of a range of dates, i.e. start and end date.
446
463
  */
447
464
  "range": boolean;
465
+ /**
466
+ * A value is required or must be check for the form to be submittable.
467
+ */
468
+ "required": boolean;
469
+ /**
470
+ * Whether the label need a marker to shown if the input is required or optional.
471
+ */
472
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
448
473
  /**
449
474
  * Resets the view of the picker.
450
475
  */
@@ -1541,6 +1566,10 @@ export interface CatButtonCustomEvent<T> extends CustomEvent<T> {
1541
1566
  detail: T;
1542
1567
  target: HTMLCatButtonElement;
1543
1568
  }
1569
+ export interface CatCardCustomEvent<T> extends CustomEvent<T> {
1570
+ detail: T;
1571
+ target: HTMLCatCardElement;
1572
+ }
1544
1573
  export interface CatCheckboxCustomEvent<T> extends CustomEvent<T> {
1545
1574
  detail: T;
1546
1575
  target: HTMLCatCheckboxElement;
@@ -1672,11 +1701,22 @@ declare global {
1672
1701
  prototype: HTMLCatButtonGroupElement;
1673
1702
  new (): HTMLCatButtonGroupElement;
1674
1703
  };
1704
+ interface HTMLCatCardElementEventMap {
1705
+ "catLoad": FocusEvent;
1706
+ }
1675
1707
  /**
1676
1708
  * Cards are surfaces that display content and actions on a single topic. They
1677
1709
  * should be easy to scan for relevant and actionable information.
1678
1710
  */
1679
1711
  interface HTMLCatCardElement extends Components.CatCard, HTMLStencilElement {
1712
+ addEventListener<K extends keyof HTMLCatCardElementEventMap>(type: K, listener: (this: HTMLCatCardElement, ev: CatCardCustomEvent<HTMLCatCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1713
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1714
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1715
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1716
+ removeEventListener<K extends keyof HTMLCatCardElementEventMap>(type: K, listener: (this: HTMLCatCardElement, ev: CatCardCustomEvent<HTMLCatCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1717
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1718
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1719
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1680
1720
  }
1681
1721
  var HTMLCatCardElement: {
1682
1722
  prototype: HTMLCatCardElement;
@@ -2345,6 +2385,10 @@ declare namespace LocalJSX {
2345
2385
  * should be easy to scan for relevant and actionable information.
2346
2386
  */
2347
2387
  interface CatCard {
2388
+ /**
2389
+ * Emitted when the card and all the children are fully loaded.
2390
+ */
2391
+ "onCatLoad"?: (event: CatCardCustomEvent<FocusEvent>) => void;
2348
2392
  }
2349
2393
  /**
2350
2394
  * Checkboxes are used to let a user choose one or more options from a limited
@@ -2541,6 +2585,18 @@ declare namespace LocalJSX {
2541
2585
  * Shows an arrow keys navigation hint.
2542
2586
  */
2543
2587
  "hint"?: boolean;
2588
+ /**
2589
+ * A unique identifier for the input.
2590
+ */
2591
+ "identifier"?: string;
2592
+ /**
2593
+ * The label for the input.
2594
+ */
2595
+ "label"?: string;
2596
+ /**
2597
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
2598
+ */
2599
+ "labelHidden"?: boolean;
2544
2600
  /**
2545
2601
  * A maximum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
2546
2602
  */
@@ -2565,6 +2621,14 @@ declare namespace LocalJSX {
2565
2621
  * Allow the selection of a range of dates, i.e. start and end date.
2566
2622
  */
2567
2623
  "range"?: boolean;
2624
+ /**
2625
+ * A value is required or must be check for the form to be submittable.
2626
+ */
2627
+ "required"?: boolean;
2628
+ /**
2629
+ * Whether the label need a marker to shown if the input is required or optional.
2630
+ */
2631
+ "requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
2568
2632
  /**
2569
2633
  * The value of the control, given in local ISO 8601 date format YYYY-MM-DD.
2570
2634
  */
@@ -0,0 +1 @@
1
+ export declare function delayedAssertWarn(component: unknown, assertion: () => boolean, message: string, timeout?: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "10.9.0",
3
+ "version": "10.11.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "sanitize.css": "13.0.0",
41
41
  "tabbable": "6.2.0",
42
42
  "toastify-js": "1.12.0",
43
- "@haiilo/catalyst-tokens": "10.9.0"
43
+ "@haiilo/catalyst-tokens": "10.11.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.23.3",