@public-ui/hydrate 3.0.9 → 3.0.10-rc.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 (3) hide show
  1. package/dist/index.js +239 -119
  2. package/dist/index.mjs +239 -119
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -146,7 +146,7 @@ function _mergeNamespaces(n, m) {
146
146
 
147
147
  const NAMESPACE = 'kolibri';
148
148
  const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
149
- const Env = /* kolibri */ {"kolibriVersion":"3.0.9"};
149
+ const Env = /* kolibri */ {"kolibriVersion":"3.0.10-rc.0"};
150
150
 
151
151
  function getDefaultExportFromCjs (x) {
152
152
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -6331,9 +6331,12 @@ class KolAccordion {
6331
6331
  _on: {},
6332
6332
  };
6333
6333
  }
6334
- async kolFocus() {
6334
+ async focus() {
6335
6335
  var _a;
6336
- await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
6336
+ return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
6337
+ }
6338
+ async kolFocus() {
6339
+ return this.focus();
6337
6340
  }
6338
6341
  render() {
6339
6342
  const { _open, _label, _disabled, _level } = this.state;
@@ -6357,7 +6360,7 @@ class KolAccordion {
6357
6360
  animationClass: `${rootClass}__wrapper-animation`,
6358
6361
  },
6359
6362
  };
6360
- return (hAsync(KolCollapsibleFc, Object.assign({ key: '750cf0bb226ec5139c7098bd44e2a64546888a32' }, props), hAsync("slot", { key: '08908025b6753ebe36defc6e2d210736eabff629' })));
6363
+ return (hAsync(KolCollapsibleFc, Object.assign({ key: '4ab810c8ca65c74d9dd4911410289d301b88b747' }, props), hAsync("slot", { key: '8b395959dbca7708ef79080e80b7fbf94fa3e535' })));
6361
6364
  }
6362
6365
  validateDisabled(value) {
6363
6366
  validateDisabled(this, value);
@@ -6404,6 +6407,7 @@ class KolAccordion {
6404
6407
  "_on": [16],
6405
6408
  "_open": [1540],
6406
6409
  "state": [32],
6410
+ "focus": [64],
6407
6411
  "kolFocus": [64]
6408
6412
  },
6409
6413
  "$listeners$": undefined,
@@ -18594,18 +18598,21 @@ class KolBadge {
18594
18598
  renderSmartButton(props) {
18595
18599
  return (hAsync(KolButtonWcTag, { ref: this.catchSmartButtonRef, class: "kol-badge__smart-button", _ariaControls: this.id, _ariaDescription: props._ariaDescription, _buttonVariant: props._variant, _customClass: props._customClass, _disabled: props._disabled, _hideLabel: true, _icons: props._icons, _id: props._id, _label: props._label, _on: props._on, _tooltipAlign: props._tooltipAlign }));
18596
18600
  }
18597
- async kolFocus() {
18601
+ async focus() {
18598
18602
  var _a;
18599
- await ((_a = this.smartButtonRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
18603
+ return Promise.resolve((_a = this.smartButtonRef) === null || _a === void 0 ? void 0 : _a.focus());
18604
+ }
18605
+ async kolFocus() {
18606
+ return this.focus();
18600
18607
  }
18601
18608
  render() {
18602
18609
  const hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;
18603
- return (hAsync("span", { key: '1783be722727cb3b05b54342718cc09a753f9470', class: clsx('kol-badge', {
18610
+ return (hAsync("span", { key: 'aa434ba6ebe2fd58562931d192cc7747b3d4c429', class: clsx('kol-badge', {
18604
18611
  'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,
18605
18612
  }), style: {
18606
18613
  backgroundColor: this.bgColorStr,
18607
18614
  color: this.colorStr,
18608
- } }, hAsync(KolSpanFc, { key: '273924ed45d55804ef6a0636604b4f7a9fb7257c', class: "kol-badge__label", id: hasSmartButton ? this.id : undefined, allowMarkdown: true, icons: this.state._icons, label: this._label }), hasSmartButton && this.renderSmartButton(this.state._smartButton)));
18615
+ } }, hAsync(KolSpanFc, { key: 'fa0dd9eadb49f101a9e85348187cfecd9958dfc4', class: "kol-badge__label", id: hasSmartButton ? this.id : undefined, allowMarkdown: true, icons: this.state._icons, label: this._label }), hasSmartButton && this.renderSmartButton(this.state._smartButton)));
18609
18616
  }
18610
18617
  validateIcons(value) {
18611
18618
  validateIcons(this, value);
@@ -18650,6 +18657,7 @@ class KolBadge {
18650
18657
  "_label": [1],
18651
18658
  "_smartButton": [1, "_smart-button"],
18652
18659
  "state": [32],
18660
+ "focus": [64],
18653
18661
  "kolFocus": [64]
18654
18662
  },
18655
18663
  "$listeners$": undefined,
@@ -18752,12 +18760,15 @@ class KolButton {
18752
18760
  async getValue() {
18753
18761
  return this._value;
18754
18762
  }
18755
- async kolFocus() {
18763
+ async focus() {
18756
18764
  var _a;
18757
- await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
18765
+ return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
18766
+ }
18767
+ async kolFocus() {
18768
+ return this.focus();
18758
18769
  }
18759
18770
  render() {
18760
- return (hAsync(KolButtonWcTag, { key: 'd48c2b2f907e42ff87337bd7916595876082436d', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }, hAsync("slot", { key: '9d93698e6a0700a79af93e8f0f5f8e4775e5e024', name: "expert", slot: "expert" })));
18771
+ return (hAsync(KolButtonWcTag, { key: '04885e75c1664f013521070617765c168714c6db', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }, hAsync("slot", { key: '5f2085cc413dfee10d13ecc5b0a681645b4052ee', name: "expert", slot: "expert" })));
18761
18772
  }
18762
18773
  static get style() { return {
18763
18774
  default: defaultStyleCss$G
@@ -18788,6 +18799,7 @@ class KolButton {
18788
18799
  "_value": [8],
18789
18800
  "_variant": [1],
18790
18801
  "getValue": [64],
18802
+ "focus": [64],
18791
18803
  "kolFocus": [64]
18792
18804
  },
18793
18805
  "$listeners$": undefined,
@@ -18814,12 +18826,15 @@ class KolButtonLink {
18814
18826
  async getValue() {
18815
18827
  return this._value;
18816
18828
  }
18817
- async kolFocus() {
18829
+ async focus() {
18818
18830
  var _a;
18819
- await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
18831
+ return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
18832
+ }
18833
+ async kolFocus() {
18834
+ return this.focus();
18820
18835
  }
18821
18836
  render() {
18822
- return (hAsync(KolButtonWcTag, { key: 'ebfebfefff5331deafba6a34909b2512a2572710', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline !== undefined ? this._inline : this._variant === 'inline' ? true : this._variant === 'standalone' ? false : undefined, _label: this._label, _name: this._name, _on: this._on, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { key: '7d01aa85397de0121baf8b694c85d9e854cfbbfa', name: "expert", slot: "expert" })));
18837
+ return (hAsync(KolButtonWcTag, { key: 'fcbd8b1c16714336207186854cdec13ad4b51af5', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline !== undefined ? this._inline : this._variant === 'inline' ? true : this._variant === 'standalone' ? false : undefined, _label: this._label, _name: this._name, _on: this._on, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { key: '137fbfe36f98126f0291b21a358fd4386ba53eb0', name: "expert", slot: "expert" })));
18823
18838
  }
18824
18839
  static get style() { return {
18825
18840
  default: defaultStyleCss$F
@@ -18849,6 +18864,7 @@ class KolButtonLink {
18849
18864
  "_type": [1],
18850
18865
  "_value": [8],
18851
18866
  "getValue": [64],
18867
+ "focus": [64],
18852
18868
  "kolFocus": [64]
18853
18869
  },
18854
18870
  "$listeners$": undefined,
@@ -19122,9 +19138,12 @@ class AssociatedInputController {
19122
19138
  }
19123
19139
 
19124
19140
  class KolButtonWc {
19125
- async kolFocus() {
19141
+ async focus() {
19126
19142
  var _a;
19127
- (_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
19143
+ return Promise.resolve((_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus());
19144
+ }
19145
+ async kolFocus() {
19146
+ return this.focus();
19128
19147
  }
19129
19148
  render() {
19130
19149
  var _a;
@@ -19133,14 +19152,14 @@ class KolButtonWc {
19133
19152
  const badgeText = this.state._accessKey || this.state._shortKey;
19134
19153
  const isDisabled = this.state._disabled === true;
19135
19154
  const hideLabel = this.state._hideLabel === true;
19136
- return (hAsync(Host, { key: 'fb9fe1c0e76de97770affa7a0d091854e227e2bd' }, hAsync("button", { key: '97132be4e8e29fdd3d66674e9d68cadd799d7b5c', ref: (ref) => (this.buttonRef = ref), accessKey: this.state._accessKey, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-haspopup": this._ariaHasPopup, "aria-keyshortcuts": this.state._shortKey, "aria-label": hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: clsx('kol-button', {
19155
+ return (hAsync(Host, { key: '0d3d25815145b6edb52f339e7c856fd562a9d8c4' }, hAsync("button", { key: '8645454cf97c128e930ddb3968e1a4ec8865664e', ref: (ref) => (this.buttonRef = ref), accessKey: this.state._accessKey, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-haspopup": this._ariaHasPopup, "aria-keyshortcuts": this.state._shortKey, "aria-label": hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: clsx('kol-button', {
19137
19156
  'kol-button--disabled': isDisabled,
19138
19157
  [`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
19139
19158
  'kol-button--inline': this.state._inline === true,
19140
19159
  'kol-button--standalone': this.state._inline === false,
19141
19160
  'kol-button--hide-label': hideLabel,
19142
19161
  [this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
19143
- }), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: 'fbd2188192ab9c349baa587086afe2f7b1275768', class: "kol-button__text", badgeText: badgeText, icons: this.state._icons, hideLabel: hideLabel, label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: 'b8fac8325037390ad93136fb0c7b6be935233933', name: "expert", slot: "expert" }))), hideLabel && (hAsync(KolTooltipWcTag, { key: '59c048aec59c738ef86190bdbdac6ecbc7a09035', ref: (ref) => (this.tooltipRef = ref), "aria-hidden": "true", hidden: hasExpertSlot, class: "kol-button__tooltip", _badgeText: badgeText, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' }))));
19162
+ }), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: '5c9c0d4b1128b1c693f20efd92b3a6ee85a78a23', class: "kol-button__text", badgeText: badgeText, icons: this.state._icons, hideLabel: hideLabel, label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: '3c30ccb15fe9026b96e1e606be9c5d5566ef875f', name: "expert", slot: "expert" }))), hideLabel && (hAsync(KolTooltipWcTag, { key: '9bd70dbe2ca962b34cb59c2a1dd32055a854b286', ref: (ref) => (this.tooltipRef = ref), "aria-hidden": "true", hidden: hasExpertSlot, class: "kol-button__tooltip", _badgeText: badgeText, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' }))));
19144
19163
  }
19145
19164
  constructor(hostRef) {
19146
19165
  registerInstance(this, hostRef);
@@ -19345,6 +19364,7 @@ class KolButtonWc {
19345
19364
  "_value": [8],
19346
19365
  "_buttonVariant": [1, "_button-variant"],
19347
19366
  "state": [32],
19367
+ "focus": [64],
19348
19368
  "kolFocus": [64]
19349
19369
  },
19350
19370
  "$listeners$": undefined,
@@ -19939,9 +19959,12 @@ class KolCombobox {
19939
19959
  async getValue() {
19940
19960
  return this.state._value;
19941
19961
  }
19942
- async kolFocus() {
19962
+ async focus() {
19943
19963
  var _a;
19944
- (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
19964
+ return Promise.resolve((_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus());
19965
+ }
19966
+ async kolFocus() {
19967
+ return this.focus();
19945
19968
  }
19946
19969
  selectOption(option) {
19947
19970
  var _a;
@@ -20048,15 +20071,15 @@ class KolCombobox {
20048
20071
  }
20049
20072
  render() {
20050
20073
  const isDisabled = this.state._disabled === true;
20051
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '0d9f276131000a7a398df8167b7ab687bf191bf8' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '4bf740e369911ad5af8dc96498a7f895d09e7d86', state: this.state }, hAsync("div", { key: '839fb3245b49c1fc922e61898f0e966b3f8946d7', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: 'c51fa942fe784d4b409e40c07b9f62ba623e8220' }, this.getInputProps())), this.state._value && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '7121cc55857a492973ab7ea3b6cb68654dc30fcc', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _disabled: isDisabled, "data-testid": "combobox-delete", class: clsx('kol-combobox__delete', {
20074
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'c5afe28a1d16ea7880bf51e27eea443ce569a8ff' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'dbccf31419288c4bec6e081c5a4c7dcf56c42f9c', state: this.state }, hAsync("div", { key: '99e682a31fdc8dbbcb92621b6618108c433f321e', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: 'c9da0b608dabe6adc24221722287fe373273ece4' }, this.getInputProps())), this.state._value && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '58e6def1c6e17c1e0e7ad8540700de3576164eef', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _disabled: isDisabled, "data-testid": "combobox-delete", class: clsx('kol-combobox__delete', {
20052
20075
  'kol-combobox__delete--disabled': isDisabled,
20053
20076
  }), _on: {
20054
20077
  onClick: () => {
20055
20078
  this.clearSelection();
20056
20079
  },
20057
- } })), hAsync(KolIconTag, { key: '6b4af46bfe72c9da959729263c8f0adae6c92f81', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
20080
+ } })), hAsync(KolIconTag, { key: 'e6b4d8abc7b46bcf94c6abdd3b3929a655cdda11', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
20058
20081
  'kol-custom-suggestions-toggle--disabled': isDisabled,
20059
- }), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'ffbaa34f6801783d5255b82d6df3df643b53913f', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
20082
+ }), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'e6fb48734b7c3e4f0abc466a9be4ba4fcedd5c36', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
20060
20083
  this._filteredSuggestions.length > 0 &&
20061
20084
  this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { disabled: false, index: index, option: option, searchTerm: this.state._value, ref: (el) => {
20062
20085
  if (el)
@@ -20365,6 +20388,7 @@ class KolCombobox {
20365
20388
  "state": [32],
20366
20389
  "inputHasFocus": [32],
20367
20390
  "getValue": [64],
20391
+ "focus": [64],
20368
20392
  "kolFocus": [64]
20369
20393
  },
20370
20394
  "$listeners$": [[0, "keydown", "handleKeyDown"], [8, "click", "handleWindowClick"], [1, "mousemove", "handleMouseEvent"], [8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"]],
@@ -20402,9 +20426,12 @@ class KolDetails {
20402
20426
  _on: {},
20403
20427
  };
20404
20428
  }
20405
- async kolFocus() {
20429
+ async focus() {
20406
20430
  var _a;
20407
- await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
20431
+ return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
20432
+ }
20433
+ async kolFocus() {
20434
+ return this.focus();
20408
20435
  }
20409
20436
  render() {
20410
20437
  const { _open, _label, _disabled, _level } = this.state;
@@ -20429,7 +20456,7 @@ class KolDetails {
20429
20456
  animationClass: `${rootClass}__wrapper-animation`,
20430
20457
  },
20431
20458
  };
20432
- return (hAsync(KolCollapsibleFc, Object.assign({ key: 'e149779c3d5053267bcd2785b061c3862c1ab806' }, props), hAsync("slot", { key: 'ba4278e16e1cd27c08ecc5aef1d47d8427d94575' })));
20459
+ return (hAsync(KolCollapsibleFc, Object.assign({ key: 'ea189966b0a9072b03f4296f71c8c7e5c25eb4c8' }, props), hAsync("slot", { key: '4a369f362fc6db0109baa6a4048eae8b2d640f78' })));
20433
20460
  }
20434
20461
  validateDisabled(value) {
20435
20462
  validateDisabled(this, value);
@@ -20476,6 +20503,7 @@ class KolDetails {
20476
20503
  "_on": [16],
20477
20504
  "_open": [1540],
20478
20505
  "state": [32],
20506
+ "focus": [64],
20479
20507
  "kolFocus": [64]
20480
20508
  },
20481
20509
  "$listeners$": undefined,
@@ -21212,9 +21240,12 @@ class KolInputCheckbox {
21212
21240
  async getValue() {
21213
21241
  return this.getModelValue();
21214
21242
  }
21215
- async kolFocus() {
21243
+ async focus() {
21216
21244
  var _a;
21217
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
21245
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
21246
+ }
21247
+ async kolFocus() {
21248
+ return this.focus();
21218
21249
  }
21219
21250
  getFormFieldProps() {
21220
21251
  return {
@@ -21263,7 +21294,7 @@ class KolInputCheckbox {
21263
21294
  return this.state._icons.unchecked;
21264
21295
  }
21265
21296
  render() {
21266
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'ea78897d3814398c2b65d1a345d910d874a08098' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: '6b5bee7c4aa84f1a204f1ce6aafd5981e48d64b5' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '4f8275511a19f813c31ae714c448133588480339' }, this.getInputProps())))));
21297
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'cc0ffae3ec39155469c69de197ded8237de408ba' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: '44e9e3efa2ead54cac40be2247c5a01c29927f74' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: 'add2135c5daca032c59c192cb59c45422c453914' }, this.getInputProps())))));
21267
21298
  }
21268
21299
  constructor(hostRef) {
21269
21300
  registerInstance(this, hostRef);
@@ -21437,6 +21468,7 @@ class KolInputCheckbox {
21437
21468
  "state": [32],
21438
21469
  "inputHasFocus": [32],
21439
21470
  "getValue": [64],
21471
+ "focus": [64],
21440
21472
  "kolFocus": [64]
21441
21473
  },
21442
21474
  "$listeners$": undefined,
@@ -21475,9 +21507,12 @@ class KolInputColor {
21475
21507
  var _a;
21476
21508
  return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.value;
21477
21509
  }
21478
- async kolFocus() {
21510
+ async focus() {
21479
21511
  var _a;
21480
- (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus();
21512
+ return Promise.resolve((_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus());
21513
+ }
21514
+ async kolFocus() {
21515
+ return this.focus();
21481
21516
  }
21482
21517
  get hasSuggestions() {
21483
21518
  return Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
@@ -21501,7 +21536,7 @@ class KolInputColor {
21501
21536
  return Object.assign(Object.assign({ state: Object.assign(Object.assign({}, other), { _suggestions: [] }) }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus });
21502
21537
  }
21503
21538
  render() {
21504
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'a9a8baf58305f955d0820faff80c814487da8a56' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '38b01dba706ac81df9c7c3c02087593b22da143c', state: this.state, class: "kol-input-color__inputs-wrapper" }, hAsync("div", { key: '0c566fb29b89078f3063a1e169c78869a2dfc0d1', class: "kol-input-color__inputs-wrapper" }, hAsync(InputStateWrapper, Object.assign({ key: 'ab44bc1b7a58d70e7492d0ab9e225073df28846e', class: "kol-input-color__input kol-input-color__input--color" }, this.getInputColorProps())), hAsync(InputStateWrapper, Object.assign({ key: '5ff9950fe9f98ee0f42d3bd52d5bf5a3d8649736', class: "kol-input-color__input kol-input-color__input--text" }, this.getInputTextProps()))))));
21539
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '07425efeb1819802cf6d4d5ac80ec66805c3181b' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '12e13d63cfbcc8281439d1138b7c1701f58da5a2', state: this.state, class: "kol-input-color__inputs-wrapper" }, hAsync("div", { key: '03daa1de5b4457d4a6dcea7f625733c5220272c5', class: "kol-input-color__inputs-wrapper" }, hAsync(InputStateWrapper, Object.assign({ key: '3f02cb3c793566c942368e31ed4bb243ac94b9a3', class: "kol-input-color__input kol-input-color__input--color" }, this.getInputColorProps())), hAsync(InputStateWrapper, Object.assign({ key: 'bcdec98b332975ef3513976a81d97cfe472060bb', class: "kol-input-color__input kol-input-color__input--text" }, this.getInputTextProps()))))));
21505
21540
  }
21506
21541
  constructor(hostRef) {
21507
21542
  registerInstance(this, hostRef);
@@ -21670,6 +21705,7 @@ class KolInputColor {
21670
21705
  "state": [32],
21671
21706
  "inputHasFocus": [32],
21672
21707
  "getValue": [64],
21708
+ "focus": [64],
21673
21709
  "kolFocus": [64]
21674
21710
  },
21675
21711
  "$listeners$": undefined,
@@ -21834,9 +21870,12 @@ class KolInputDate {
21834
21870
  var _a;
21835
21871
  return this.inputRef && this.remapValue((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value);
21836
21872
  }
21837
- async kolFocus() {
21873
+ async focus() {
21838
21874
  var _a;
21839
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
21875
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
21876
+ }
21877
+ async kolFocus() {
21878
+ return this.focus();
21840
21879
  }
21841
21880
  async reset() {
21842
21881
  this.state = Object.assign(Object.assign({}, this.state), { _value: null });
@@ -21876,7 +21915,7 @@ class KolInputDate {
21876
21915
  return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onChange: this.onChange, onInput: this.onInput });
21877
21916
  }
21878
21917
  render() {
21879
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '948a0677c26b943797ca51d4152dd9bf39ef4e17' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '1a192d4a5044def41d8e4bcb14f721a2a233ad60', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'eeddd14ae717e39a8f4c6693ddd80ab14125dc47' }, this.getInputProps())))));
21918
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '1e8bc172c374000fe352895606f9eec87bb21e92' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'c03c72257382a9e1282e933fc175d55c156d8db8', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '0a6b0bcadcc0bd107ddf7fd67f3250b5ccb21701' }, this.getInputProps())))));
21880
21919
  }
21881
21920
  constructor(hostRef) {
21882
21921
  registerInstance(this, hostRef);
@@ -22093,6 +22132,7 @@ class KolInputDate {
22093
22132
  "state": [32],
22094
22133
  "inputHasFocus": [32],
22095
22134
  "getValue": [64],
22135
+ "focus": [64],
22096
22136
  "kolFocus": [64],
22097
22137
  "reset": [64]
22098
22138
  },
@@ -22227,9 +22267,12 @@ class KolInputEmail {
22227
22267
  var _a;
22228
22268
  return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
22229
22269
  }
22230
- async kolFocus() {
22270
+ async focus() {
22231
22271
  var _a;
22232
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
22272
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
22273
+ }
22274
+ async kolFocus() {
22275
+ return this.focus();
22233
22276
  }
22234
22277
  getFormFieldProps() {
22235
22278
  return {
@@ -22253,7 +22296,7 @@ class KolInputEmail {
22253
22296
  } });
22254
22297
  }
22255
22298
  render() {
22256
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'f6847f7adcceccc5156ca7108293e863ace8fb1f' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'dc180e9fc68c63016dedde5680ce2ee2c1118519', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '73735b308bd8c3ecdb4261bed785dc0686ead067' }, this.getInputProps())))));
22299
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'bcd5bb2ce1dc31c18614a9d956577ba9c3517b6e' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'fc088e01b4d3341fb870e5d0a13898aaf1a7b287', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'b204fe11a8858f3d8146c9f689cdad19d8d16b9a' }, this.getInputProps())))));
22257
22300
  }
22258
22301
  constructor(hostRef) {
22259
22302
  registerInstance(this, hostRef);
@@ -22448,6 +22491,7 @@ class KolInputEmail {
22448
22491
  "state": [32],
22449
22492
  "inputHasFocus": [32],
22450
22493
  "getValue": [64],
22494
+ "focus": [64],
22451
22495
  "kolFocus": [64]
22452
22496
  },
22453
22497
  "$listeners$": undefined,
@@ -22485,9 +22529,12 @@ class KolInputFile {
22485
22529
  var _a;
22486
22530
  return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.files;
22487
22531
  }
22488
- async kolFocus() {
22532
+ async focus() {
22489
22533
  var _a;
22490
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
22534
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
22535
+ }
22536
+ async kolFocus() {
22537
+ return this.focus();
22491
22538
  }
22492
22539
  async reset() {
22493
22540
  this.controller.setFormAssociatedValue('');
@@ -22515,7 +22562,7 @@ class KolInputFile {
22515
22562
  } });
22516
22563
  }
22517
22564
  render() {
22518
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '558fc9257273a3587a1b6a02025c14513c02d191' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '81d0a3762e019cb406b92598e270bd5949cc5fae', state: this.state }, hAsync("span", { key: '4efe43a4882d3b3b179ae25065f83e962e3df615', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(InputStateWrapper, Object.assign({ key: '49ba7e1659a3d0390f3de9be34a50618fdcf2252' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: 'fb7260d1a845f5c65b3a6f9856e1b44634280108', class: "kol-input-container__button", _label: this.translateDataBrowseText, _buttonVariant: "primary", _disabled: this._disabled }))));
22565
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '7deee0c8c3bf1f1c01672bcce64738117081422f' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '43825237a7bf2b2d56da97790c1b544241ebad2d', state: this.state }, hAsync("span", { key: 'e2c2d541070fdf8607d2ddfeb9a806cdf3730d61', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(InputStateWrapper, Object.assign({ key: 'ba08af270d798fc274d85176c5aaa880540a321d' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: '48746427ef21a0e1d0ea5c907ccbb53beec85f7d', class: "kol-input-container__button", _label: this.translateDataBrowseText, _buttonVariant: "primary", _disabled: this._disabled }))));
22519
22566
  }
22520
22567
  constructor(hostRef) {
22521
22568
  registerInstance(this, hostRef);
@@ -22702,6 +22749,7 @@ class KolInputFile {
22702
22749
  "state": [32],
22703
22750
  "inputHasFocus": [32],
22704
22751
  "getValue": [64],
22752
+ "focus": [64],
22705
22753
  "kolFocus": [64],
22706
22754
  "reset": [64]
22707
22755
  },
@@ -22764,9 +22812,12 @@ class KolInputNumber {
22764
22812
  async getValue() {
22765
22813
  return this.remapValue(this.state._value);
22766
22814
  }
22767
- async kolFocus() {
22815
+ async focus() {
22768
22816
  var _a;
22769
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
22817
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
22818
+ }
22819
+ async kolFocus() {
22820
+ return this.focus();
22770
22821
  }
22771
22822
  setInitialValueType(value) {
22772
22823
  if (this.controller.isNumberString(value)) {
@@ -22808,7 +22859,7 @@ class KolInputNumber {
22808
22859
  } });
22809
22860
  }
22810
22861
  render() {
22811
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '5e33361f11d47a3a5dc39797a291258ab5e27c54' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2035ec896170fdb2cf473d15ca87f32242c0e500', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '6d9b49fc92337ef6078c1ff3d32fb02fb21bf860' }, this.getInputProps())))));
22862
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '60f3ab5d10c2382ed837f5a1b7b872141bcae69e' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '818c2e4227f8a27231c17d9971187522938d8e3f', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'd42c7b5454f2282771436f736f1f1a78e614b6c4' }, this.getInputProps())))));
22812
22863
  }
22813
22864
  constructor(hostRef) {
22814
22865
  registerInstance(this, hostRef);
@@ -23004,6 +23055,7 @@ class KolInputNumber {
23004
23055
  "_initialValueType": [32],
23005
23056
  "inputHasFocus": [32],
23006
23057
  "getValue": [64],
23058
+ "focus": [64],
23007
23059
  "kolFocus": [64]
23008
23060
  },
23009
23061
  "$listeners$": undefined,
@@ -23019,9 +23071,12 @@ class KolInputPassword {
23019
23071
  var _a;
23020
23072
  return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
23021
23073
  }
23022
- async kolFocus() {
23074
+ async focus() {
23023
23075
  var _a;
23024
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
23076
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
23077
+ }
23078
+ async kolFocus() {
23079
+ return this.focus();
23025
23080
  }
23026
23081
  getFormFieldProps() {
23027
23082
  return {
@@ -23055,7 +23110,7 @@ class KolInputPassword {
23055
23110
  }, icon: `codicon codicon-eye-${this._passwordVisible ? 'closed' : 'watch'}`, disabled: this._disabled }));
23056
23111
  }
23057
23112
  render() {
23058
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '20803f39ce7c575e6f4fe341e8be9cf7cce43288' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'a74adf9d03c50218965183a42ebf38a92b451e1f', state: this.state, endAdornment: this.getShowPasswordButton() }, hAsync(InputStateWrapper, Object.assign({ key: 'b364562f0b6834c37643a567ecdfc3a66aee3f48' }, this.getInputProps())))));
23113
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'dfecc1fc1f5b43297449e1e705fa110119e6d509' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '0ac3083a7ab3c671656745de60c2275d76748a2e', state: this.state, endAdornment: this.getShowPasswordButton() }, hAsync(InputStateWrapper, Object.assign({ key: 'a68a8e309aa062a8e2b7270aafaa352442147790' }, this.getInputProps())))));
23059
23114
  }
23060
23115
  constructor(hostRef) {
23061
23116
  registerInstance(this, hostRef);
@@ -23252,6 +23307,7 @@ class KolInputPassword {
23252
23307
  "_passwordVisible": [32],
23253
23308
  "inputHasFocus": [32],
23254
23309
  "getValue": [64],
23310
+ "focus": [64],
23255
23311
  "kolFocus": [64]
23256
23312
  },
23257
23313
  "$listeners$": undefined,
@@ -23307,9 +23363,12 @@ class KolInputRadio {
23307
23363
  async getValue() {
23308
23364
  return this._value;
23309
23365
  }
23310
- async kolFocus() {
23366
+ async focus() {
23311
23367
  var _a;
23312
- (_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus();
23368
+ return Promise.resolve((_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus());
23369
+ }
23370
+ async kolFocus() {
23371
+ return this.focus();
23313
23372
  }
23314
23373
  getFocusableInput() {
23315
23374
  const options = this.state._options;
@@ -23346,7 +23405,7 @@ class KolInputRadio {
23346
23405
  };
23347
23406
  }
23348
23407
  render() {
23349
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '9e2b42643b7eec87fcef68c4e8bf471e67738689' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
23408
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '1a5ada4341373c623af39a98c98c71de59b89bb4' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
23350
23409
  }
23351
23410
  calculateDisabled(option) {
23352
23411
  return Boolean(this.state._disabled) || Boolean(option.disabled);
@@ -23543,6 +23602,7 @@ class KolInputRadio {
23543
23602
  "state": [32],
23544
23603
  "inputHasFocus": [32],
23545
23604
  "getValue": [64],
23605
+ "focus": [64],
23546
23606
  "kolFocus": [64]
23547
23607
  },
23548
23608
  "$listeners$": undefined,
@@ -23590,9 +23650,12 @@ class InputRangeController extends InputIconController {
23590
23650
  const defaultStyleCss$o = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input {\n background-color: transparent;\n width: 100%;\n min-width: var(--a11y-min-size);\n }\n .kol-input:focus {\n outline: none;\n }\n .kol-input-range__inputs-wrapper {\n display: flex;\n flex-grow: 1;\n flex-direction: row;\n align-items: center;\n }\n .kol-input-range__input--number {\n width: var(--kolibri-input-range--input-number--width);\n }\n .kol-input-range__input--range {\n background-color: #d3d3d3;\n display: inline-block;\n /* Design-Hack - related with flex-grow */\n width: 0;\n height: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n margin: 0;\n padding: 0;\n flex-grow: 1;\n line-height: 1.5;\n appearance: none;\n border: 1px solid #000;\n }\n .kol-input-range__input:not(:disabled).kol-input-range__input--range::-webkit-slider-thumb {\n cursor: pointer;\n }\n .kol-input-range__input--range::-webkit-slider-thumb {\n background-color: #000;\n border-radius: 20px;\n width: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n -webkit-appearance: none;\n }\n @media (prefers-contrast: more) or (forced-colors: active) {\n .kol-input-range__input--range::-webkit-slider-thumb {\n outline: 1px solid currentColor;\n }\n }\n .kol-input-range__input:not(:disabled).kol-input-range__input--range::-moz-range-thumb {\n cursor: pointer;\n }\n .kol-input-range__input--range::-moz-range-thumb {\n background-color: #000;\n border-radius: 20px;\n width: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n -moz-appearance: none;\n }\n}";
23591
23651
 
23592
23652
  class KolInputRange {
23593
- async kolFocus() {
23653
+ async focus() {
23594
23654
  var _a;
23595
- (_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus();
23655
+ return Promise.resolve((_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus());
23656
+ }
23657
+ async kolFocus() {
23658
+ return this.focus();
23596
23659
  }
23597
23660
  getSanitizedFloatValue(value) {
23598
23661
  const floatValue = parseFloat(value);
@@ -23662,7 +23725,7 @@ class KolInputRange {
23662
23725
  const inputsWrapperStyle = {
23663
23726
  '--kolibri-input-range--input-number--width': `calc(${String(this.state._max).length}ch + 2em)`,
23664
23727
  };
23665
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '2b79d0c28561a4f0035f6e35afdb0ff9957d0ed8' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '9c544b7bae6dc2abb3e297015216c88872a78b8e', state: this.state }, hAsync("div", { key: '6fc42d92419cc0a65cf37b7af227fea0ef53c7a9', class: "kol-input-range__inputs-wrapper", style: inputsWrapperStyle }, hAsync(InputStateWrapper, Object.assign({ key: 'b31e2cf0b5ffefdc0a274e6186a1b62865ba15d4', class: "kol-input-range__input kol-input-range__input--range" }, this.getInputRangeProps())), hAsync(InputStateWrapper, Object.assign({ key: 'd05addcf1b45132df1903bc05b4742fd0e48a5fc', class: "kol-input-range__input kol-input-range__input--number" }, this.getInputNumberProps()))), this.hasSuggestions && hAsync(SuggestionsFc, { key: 'ebb28556a2f6f6fa0545e681ff4a7854f9058167', id: this.state._id, suggestions: this.state._suggestions }))));
23728
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'a910d0bb8de191e293db17e94c60583f4c2c77d8' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'da96a03aa89386f355fcfbba0cf2d57bbd234a95', state: this.state }, hAsync("div", { key: 'c24b4097a08283a425c5304bbdf57ff898528495', class: "kol-input-range__inputs-wrapper", style: inputsWrapperStyle }, hAsync(InputStateWrapper, Object.assign({ key: '600e5633f2e19b187da6f0159f72dd4e2dd45672', class: "kol-input-range__input kol-input-range__input--range" }, this.getInputRangeProps())), hAsync(InputStateWrapper, Object.assign({ key: 'ead61404d1106e6a7beac4847b05f88e452f5edd', class: "kol-input-range__input kol-input-range__input--number" }, this.getInputNumberProps()))), this.hasSuggestions && hAsync(SuggestionsFc, { key: 'f07c941fe69b6d31ccba62af4d3a567ce5e456e7', id: this.state._id, suggestions: this.state._suggestions }))));
23666
23729
  }
23667
23730
  constructor(hostRef) {
23668
23731
  registerInstance(this, hostRef);
@@ -23847,6 +23910,7 @@ class KolInputRange {
23847
23910
  "state": [32],
23848
23911
  "_initialValueType": [32],
23849
23912
  "inputHasFocus": [32],
23913
+ "focus": [64],
23850
23914
  "kolFocus": [64],
23851
23915
  "getValue": [64]
23852
23916
  },
@@ -23863,9 +23927,12 @@ class KolInputText {
23863
23927
  var _a;
23864
23928
  return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
23865
23929
  }
23866
- async kolFocus() {
23930
+ async focus() {
23867
23931
  var _a;
23868
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
23932
+ return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
23933
+ }
23934
+ async kolFocus() {
23935
+ return this.focus();
23869
23936
  }
23870
23937
  async selectionStart() {
23871
23938
  var _a;
@@ -23908,7 +23975,7 @@ class KolInputText {
23908
23975
  return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, ariaDescribedBy }, this.controller.onFacade), { onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown });
23909
23976
  }
23910
23977
  render() {
23911
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '7aa95da7581005eb7dae4f5d4e166b32ac0a12b9' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'ae8aebf9a3c9c21fd2b0ab85873fff2714208824', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'c46a7a83ecaa4f48f06e1cd3d35494a9fe7c3f8d' }, this.getInputProps())))));
23978
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'd86ef7efc8ffb8893f60c3f5d129a1bf368f39d3' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '7038d9b03bedb83fa603ec889404c9aa2f376543', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'ea63bc12e147832944b1f450d9d65bed39989dd0' }, this.getInputProps())))));
23912
23979
  }
23913
23980
  constructor(hostRef) {
23914
23981
  registerInstance(this, hostRef);
@@ -24128,6 +24195,7 @@ class KolInputText {
24128
24195
  "state": [32],
24129
24196
  "inputHasFocus": [32],
24130
24197
  "getValue": [64],
24198
+ "focus": [64],
24131
24199
  "kolFocus": [64],
24132
24200
  "selectionStart": [64],
24133
24201
  "selectioconEnd": [64],
@@ -24227,12 +24295,15 @@ class KolLink {
24227
24295
  this._variant = 'inline';
24228
24296
  this._tooltipAlign = 'right';
24229
24297
  }
24230
- async kolFocus() {
24298
+ async focus() {
24231
24299
  var _a;
24232
- await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
24300
+ return Promise.resolve((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.focus());
24301
+ }
24302
+ async kolFocus() {
24303
+ return this.focus();
24233
24304
  }
24234
24305
  render() {
24235
- return (hAsync(KolLinkWcTag, { key: '32f4d596c230ce59c8ac1b0796472d3f5b356612', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _inline: this._inline !== undefined ? this._inline : this._variant === 'inline' ? true : this._variant === 'standalone' ? false : undefined, _label: this._label, _on: this._on, _shortKey: this._shortKey, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: 'e722786c07ed893d1d81d980d31b2b83e207501a', name: "expert", slot: "expert" })));
24306
+ return (hAsync(KolLinkWcTag, { key: '23a5ea0ad3023e264f7bf477e783683001c176d2', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _inline: this._inline !== undefined ? this._inline : this._variant === 'inline' ? true : this._variant === 'standalone' ? false : undefined, _label: this._label, _on: this._on, _shortKey: this._shortKey, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: 'a96c6b26f1f69e70a8968a947af50ee8f904bfb6', name: "expert", slot: "expert" })));
24236
24307
  }
24237
24308
  static get style() { return {
24238
24309
  default: defaultStyleCss$l
@@ -24259,6 +24330,7 @@ class KolLink {
24259
24330
  "_shortKey": [1, "_short-key"],
24260
24331
  "_target": [1],
24261
24332
  "_tooltipAlign": [1, "_tooltip-align"],
24333
+ "focus": [64],
24262
24334
  "kolFocus": [64]
24263
24335
  },
24264
24336
  "$listeners$": undefined,
@@ -24280,12 +24352,15 @@ class KolLinkButton {
24280
24352
  this._tooltipAlign = 'right';
24281
24353
  this._variant = 'normal';
24282
24354
  }
24283
- async kolFocus() {
24355
+ async focus() {
24284
24356
  var _a;
24285
- await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
24357
+ return Promise.resolve((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.focus());
24358
+ }
24359
+ async kolFocus() {
24360
+ return this.focus();
24286
24361
  }
24287
24362
  render() {
24288
- return (hAsync(KolLinkWcTag, { key: '3e35c1a02a7989ee062aee31462d4b9792fbbd59', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _customClass: this._customClass, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _shortKey: this._shortKey, _target: this._target, _tooltipAlign: this._tooltipAlign, _buttonVariant: this._variant }, hAsync("slot", { key: 'ec540b986bf137e66131aa4edef252e6d4f6f24e', name: "expert", slot: "expert" })));
24363
+ return (hAsync(KolLinkWcTag, { key: 'a50c7113048bd52f614eac349eda9b9a351db611', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _customClass: this._customClass, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _shortKey: this._shortKey, _target: this._target, _tooltipAlign: this._tooltipAlign, _buttonVariant: this._variant }, hAsync("slot", { key: '38a6bece6ad8af57eaab0a86ca45b3c98a81124b', name: "expert", slot: "expert" })));
24289
24364
  }
24290
24365
  static get style() { return {
24291
24366
  default: defaultStyleCss$k
@@ -24311,6 +24386,7 @@ class KolLinkButton {
24311
24386
  "_target": [1],
24312
24387
  "_tooltipAlign": [1, "_tooltip-align"],
24313
24388
  "_variant": [1],
24389
+ "focus": [64],
24314
24390
  "kolFocus": [64]
24315
24391
  },
24316
24392
  "$listeners$": undefined,
@@ -24378,16 +24454,19 @@ class KolLinkWc {
24378
24454
  _icons: {},
24379
24455
  };
24380
24456
  }
24381
- async kolFocus() {
24457
+ async focus() {
24382
24458
  var _a;
24383
- (_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus();
24459
+ return Promise.resolve((_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus());
24460
+ }
24461
+ async kolFocus() {
24462
+ return this.focus();
24384
24463
  }
24385
24464
  render() {
24386
24465
  var _a;
24387
24466
  const { isExternal, tagAttrs } = this.getRenderValues();
24388
24467
  const hasExpertSlot = showExpertSlot(this.state._label);
24389
24468
  const ariaDescription = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim();
24390
- return (hAsync(Host, { key: '892c5cc729d746dc7b1f046d1b43f198752d2806' }, hAsync("a", Object.assign({ key: '66793d9388bdd0b7d291fc1d137ba269cfd2b228', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-disabled": this.state._disabled ? 'true' : undefined, "aria-expanded": typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined, "aria-owns": this.state._ariaOwns, "aria-label": this.state._hideLabel && typeof this.state._label === 'string'
24469
+ return (hAsync(Host, { key: 'ee0556d521befa51a659f1094aaf5ac1865a791d' }, hAsync("a", Object.assign({ key: '667457adb4151768c5c06492d8c5123436021cea', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-disabled": this.state._disabled ? 'true' : undefined, "aria-expanded": typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined, "aria-owns": this.state._ariaOwns, "aria-label": this.state._hideLabel && typeof this.state._label === 'string'
24391
24470
  ? `${this.state._label}${isExternal ? ` (${this.translateOpenLinkInTab})` : ''}`
24392
24471
  : undefined, "aria-keyshortcuts": this.state._shortKey, class: clsx('kol-link', {
24393
24472
  'kol-link--disabled': this.state._disabled === true,
@@ -24397,7 +24476,7 @@ class KolLinkWc {
24397
24476
  'kol-link--inline': this.state._inline === true,
24398
24477
  'kol-link--standalone': this.state._inline === false,
24399
24478
  [this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
24400
- }) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '5c7d16010d9be97330357727cd077a5938d34e7f', class: "kol-link__text", badgeText: this.state._accessKey || this.state._shortKey, icons: this.state._icons, hideLabel: this.state._hideLabel, label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { key: 'b01d5620e864c978c8e87b5601b8736334af2959', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: '4a817ada365a0c78003c921049be05705dd532ea', class: "kol-link__icon", _label: this.state._hideLabel ? '' : this.translateOpenLinkInTab, _icons: 'codicon codicon-link-external', "aria-hidden": this.state._hideLabel }))), this.state._hideLabel === true && (hAsync(KolTooltipWcTag, { key: '509f958cb96c22e1f037c9c82bd74ef4e89e0b3d', "aria-hidden": "true", class: "kol-link__tooltip", ref: (ref) => (this.tooltipRef = ref), hidden: hasExpertSlot, _badgeText: this.state._accessKey || this.state._shortKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href }))));
24479
+ }) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '61ee7232a2c97863f71b98637c1f0026ba695d36', class: "kol-link__text", badgeText: this.state._accessKey || this.state._shortKey, icons: this.state._icons, hideLabel: this.state._hideLabel, label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { key: '58ddc8b7ade66d1c6f2a203716e904955ba0ea29', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: '43951151785257140a4328b45b418e185b0e1b71', class: "kol-link__icon", _label: this.state._hideLabel ? '' : this.translateOpenLinkInTab, _icons: 'codicon codicon-link-external', "aria-hidden": this.state._hideLabel }))), this.state._hideLabel === true && (hAsync(KolTooltipWcTag, { key: '1417866df9586f4c670f6cb2bdf60851818a11e4', "aria-hidden": "true", class: "kol-link__tooltip", ref: (ref) => (this.tooltipRef = ref), hidden: hasExpertSlot, _badgeText: this.state._accessKey || this.state._shortKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href }))));
24401
24480
  }
24402
24481
  validateAccessKey(value) {
24403
24482
  validateAccessKey(this, value);
@@ -24548,6 +24627,7 @@ class KolLinkWc {
24548
24627
  "_tooltipAlign": [1, "_tooltip-align"],
24549
24628
  "_buttonVariant": [1, "_button-variant"],
24550
24629
  "state": [32],
24630
+ "focus": [64],
24551
24631
  "kolFocus": [64]
24552
24632
  },
24553
24633
  "$listeners$": undefined,
@@ -27164,12 +27244,15 @@ let KolPopoverButton$1 = class KolPopoverButton {
27164
27244
  var _a;
27165
27245
  void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.showPopover());
27166
27246
  }
27167
- async kolFocus() {
27247
+ async focus() {
27168
27248
  var _a;
27169
- await ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.kolFocus());
27249
+ return Promise.resolve((_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus());
27250
+ }
27251
+ async kolFocus() {
27252
+ return this.focus();
27170
27253
  }
27171
27254
  render() {
27172
- return (hAsync(KolPopoverButtonWcTag, { key: 'be19658765366007a44c6bbb72adb9c24f130a02', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _popoverAlign: this._popoverAlign, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: '0e75a52b0ea083a4dad9ba209911fcdf01c5cd5b', name: "expert", slot: "expert" }), hAsync("slot", { key: 'dede1a8a8d21416611598c6d21171d4c190da780' })));
27255
+ return (hAsync(KolPopoverButtonWcTag, { key: '1d3afde57cc37f626f7a35788899ae443d0f8c26', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _popoverAlign: this._popoverAlign, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: 'b1fa37c8b4d5f290a4020176459f9a9450fb147e', name: "expert", slot: "expert" }), hAsync("slot", { key: '62fac80f4873cf7c0a93b8f6495c4a14bf914848' })));
27173
27256
  }
27174
27257
  static get style() { return {
27175
27258
  default: defaultStyleCss$g
@@ -27202,6 +27285,7 @@ let KolPopoverButton$1 = class KolPopoverButton {
27202
27285
  "_variant": [1],
27203
27286
  "hidePopover": [64],
27204
27287
  "showPopover": [64],
27288
+ "focus": [64],
27205
27289
  "kolFocus": [64]
27206
27290
  },
27207
27291
  "$listeners$": undefined,
@@ -27235,9 +27319,12 @@ class KolPopoverButton {
27235
27319
  var _a;
27236
27320
  void ((_a = this.refPopover) === null || _a === void 0 ? void 0 : _a.showPopover());
27237
27321
  }
27238
- async kolFocus() {
27322
+ async focus() {
27239
27323
  var _a;
27240
- await ((_a = this.refButton) === null || _a === void 0 ? void 0 : _a.kolFocus());
27324
+ return Promise.resolve((_a = this.refButton) === null || _a === void 0 ? void 0 : _a.focus());
27325
+ }
27326
+ async kolFocus() {
27327
+ return this.focus();
27241
27328
  }
27242
27329
  handleBeforeToggle(event) {
27243
27330
  if (event.newState === 'closed') {
@@ -27293,11 +27380,11 @@ class KolPopoverButton {
27293
27380
  (_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
27294
27381
  }
27295
27382
  render() {
27296
- return (hAsync("div", { key: '874282cd81b305d92a155d8c848a5004e128db80', class: clsx('kol-popover-button', {
27383
+ return (hAsync("div", { key: '32a785aba018c6cbd915d91380b28a5e6db05088', class: clsx('kol-popover-button', {
27297
27384
  'kol-popover-button--open': this.popoverOpen,
27298
27385
  'kol-popover-button--inline': this.state._inline === true,
27299
27386
  'kol-popover-button--standalone': this.state._inline === false,
27300
- }) }, hAsync(KolButtonWcTag, { key: 'ae45f6997d3dac685229bfec19111fe3f63df687', _accessKey: this._accessKey, "_aria-controls": "popover", _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this.popoverOpen, _ariaHasPopup: 'dialog', _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant, "data-testid": "popover-button", class: "kol-popover-button__button", ref: (element) => (this.refButton = element), onClick: this.handleButtonClick.bind(this) }, hAsync("slot", { key: '5fdf299465dc56f94bfb739a6d66b03353687e1f', name: "expert", slot: "expert" })), hAsync("div", { key: 'f3e492c4f3a403b36b8e073599377c56823d0d7b', ref: (element) => (this.refPopover = element), "data-testid": "popover-content", popover: "auto", id: "popover", class: "kol-popover-button__popover" }, hAsync("slot", { key: '26ce33d67f396c08acdbc3782e4395344b37da8f' }))));
27387
+ }) }, hAsync(KolButtonWcTag, { key: 'dc421640367e726bc5f6de43065d6fe888375b1c', _accessKey: this._accessKey, "_aria-controls": "popover", _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this.popoverOpen, _ariaHasPopup: 'dialog', _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant, "data-testid": "popover-button", class: "kol-popover-button__button", ref: (element) => (this.refButton = element), onClick: this.handleButtonClick.bind(this) }, hAsync("slot", { key: '1fd63443f543963f56e2646f88320e50f34430b0', name: "expert", slot: "expert" })), hAsync("div", { key: 'a1cec965c9b92cbe79ce6b09cf84fd0ae619eb33', ref: (element) => (this.refPopover = element), "data-testid": "popover-content", popover: "auto", id: "popover", class: "kol-popover-button__popover" }, hAsync("slot", { key: 'bc9c769a2036a69596497cc3a522b121b885f88b' }))));
27301
27388
  }
27302
27389
  validateInline(value) {
27303
27390
  validateInline(this, value, {
@@ -27346,6 +27433,7 @@ class KolPopoverButton {
27346
27433
  "popoverOpen": [32],
27347
27434
  "hidePopover": [64],
27348
27435
  "showPopover": [64],
27436
+ "focus": [64],
27349
27437
  "kolFocus": [64]
27350
27438
  },
27351
27439
  "$listeners$": undefined,
@@ -27545,12 +27633,15 @@ class KolSelect {
27545
27633
  var _a;
27546
27634
  return (_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.getValue();
27547
27635
  }
27548
- async kolFocus() {
27636
+ async focus() {
27549
27637
  var _a;
27550
- await ((_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
27638
+ return Promise.resolve((_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.focus());
27639
+ }
27640
+ async kolFocus() {
27641
+ return this.focus();
27551
27642
  }
27552
27643
  render() {
27553
- return (hAsync(Host, { key: '0d395dee2532c2a584f3bea2296e2c683e7e5acc', class: "kol-select" }, hAsync(KolSelectWcTag, { key: '86d7ddcc1bc8df6adc4e56266182fb6162015076', ref: this.catchRef, _accessKey: this._accessKey, _disabled: this._disabled, _hideLabel: this._hideLabel, _hint: this._hint, _icons: this._icons, _id: this._id, _label: this._label, _msg: this._msg, _multiple: this._multiple, _name: this._name, _on: this._on, _options: this._options, _required: this._required, _rows: this._rows, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _touched: this._touched, _value: this._value }, hAsync("slot", { key: 'f33ffa61e68105f707d945c9fc75f462e3f7d57d', name: "expert", slot: "expert" }))));
27644
+ return (hAsync(Host, { key: '79b2cc9bb971a19d28ad336fb0c2eabea48ee4b4', class: "kol-select" }, hAsync(KolSelectWcTag, { key: '52bf10514527602adf6be51070c617be0f2079d3', ref: this.catchRef, _accessKey: this._accessKey, _disabled: this._disabled, _hideLabel: this._hideLabel, _hint: this._hint, _icons: this._icons, _id: this._id, _label: this._label, _msg: this._msg, _multiple: this._multiple, _name: this._name, _on: this._on, _options: this._options, _required: this._required, _rows: this._rows, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _touched: this._touched, _value: this._value }, hAsync("slot", { key: '1143357c41df4471403e29fd8d263ce765191455', name: "expert", slot: "expert" }))));
27554
27645
  }
27555
27646
  static get style() { return {
27556
27647
  default: defaultStyleCss$d
@@ -27581,6 +27672,7 @@ class KolSelect {
27581
27672
  "_touched": [1540],
27582
27673
  "_value": [1544],
27583
27674
  "getValue": [64],
27675
+ "focus": [64],
27584
27676
  "kolFocus": [64]
27585
27677
  },
27586
27678
  "$listeners$": undefined,
@@ -27786,9 +27878,12 @@ class KolSelectWc {
27786
27878
  return Array.isArray(this.state._value) && this.state._value.length > 0 ? this.state._value[0] : this.state._value;
27787
27879
  }
27788
27880
  }
27789
- async kolFocus() {
27881
+ async focus() {
27790
27882
  var _a;
27791
- (_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus();
27883
+ return Promise.resolve((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus());
27884
+ }
27885
+ async kolFocus() {
27886
+ return this.focus();
27792
27887
  }
27793
27888
  getFormFieldProps() {
27794
27889
  return {
@@ -27811,11 +27906,11 @@ class KolSelectWc {
27811
27906
  } });
27812
27907
  }
27813
27908
  render() {
27814
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '149de6c2a2a155d9869e4d09118d7b511058b606' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '84abd564f808296ad32ea68165780862e7808fd0', state: this.state }, hAsync("form", { key: '3d143d2d857793ef6e744def1eada9346983f4d5', onSubmit: (event) => {
27909
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '809e5c7953715be68d2b22a5ff1c5a031951c733' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'cf898096d4ff2695e4d6065828c9349b383a645b', state: this.state }, hAsync("form", { key: 'a9c6f5786c3a62c2d4285c8087f1cc1131f178fe', onSubmit: (event) => {
27815
27910
  event.preventDefault();
27816
27911
  propagateSubmitEventToForm({
27817
27912
  form: this.host});
27818
- } }, hAsync("input", { key: '4f654dceadd96f6074e22a56aefec34944ab2faa', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'e576920b9756ed1f8fce70c13c070749d463e839' }, this.getSelectProps()))))));
27913
+ } }, hAsync("input", { key: '76d68fa0755e7770a5fea3dbfdcf22a244cd808d', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'c81b30d32fbcecd2202511bd0e9834d9b7c5190d' }, this.getSelectProps()))))));
27819
27914
  }
27820
27915
  constructor(hostRef) {
27821
27916
  registerInstance(this, hostRef);
@@ -27985,6 +28080,7 @@ class KolSelectWc {
27985
28080
  "state": [32],
27986
28081
  "inputHasFocus": [32],
27987
28082
  "getValue": [64],
28083
+ "focus": [64],
27988
28084
  "kolFocus": [64]
27989
28085
  },
27990
28086
  "$listeners$": undefined,
@@ -28051,9 +28147,12 @@ class KolSingleSelect {
28051
28147
  async getValue() {
28052
28148
  return this._value;
28053
28149
  }
28054
- async kolFocus() {
28150
+ async focus() {
28055
28151
  var _a;
28056
- (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
28152
+ return Promise.resolve((_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus());
28153
+ }
28154
+ async kolFocus() {
28155
+ return this.focus();
28057
28156
  }
28058
28157
  onBlur() {
28059
28158
  var _a, _b, _c;
@@ -28217,7 +28316,7 @@ class KolSingleSelect {
28217
28316
  render() {
28218
28317
  var _a;
28219
28318
  const isDisabled = this.state._disabled === true;
28220
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '022bd32dfdbc965f0311456da17cf56032cdbb4e' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '65092ea7e9b0a6a6beab48b75cb2129a5240e94e', state: this.state }, hAsync("div", { key: 'aa18c4f22ac372d12d21d3098666630874f35d9a', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '357c2dd70789f13cc3d6f6f71503a4f588eadde4' }, this.getInputProps())), this._inputValue && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '36713c8e322d38ff76f3fa4d8eddc52995dd1551', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _buttonVariant: "ghost", _disabled: isDisabled, "data-testid": "single-select-delete", class: clsx('kol-single-select__delete', {
28319
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'a8f37dd81bcd050534fe3171b330483cc13914b5' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'a699579be7c019859cc6166169e1c9a801bb443c', state: this.state }, hAsync("div", { key: 'c5340be07f80de622cf6fccdfc0f55d9bf232e27', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '8f9b7377e48d004661acbf5f0f2bbe36c9298fd7' }, this.getInputProps())), this._inputValue && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: 'cef3caacc0bb51c0b4760ac6f734ee44087b25d1', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _buttonVariant: "ghost", _disabled: isDisabled, "data-testid": "single-select-delete", class: clsx('kol-single-select__delete', {
28221
28320
  'kol-single-select__delete--disabled': isDisabled,
28222
28321
  }), _on: {
28223
28322
  onClick: () => {
@@ -28225,9 +28324,9 @@ class KolSingleSelect {
28225
28324
  this.clearSelection();
28226
28325
  (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
28227
28326
  },
28228
- } })), hAsync(KolIconTag, { key: '9edf8cc32fcd57b8dc1b6c5c2bb848e5331b4c84', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
28327
+ } })), hAsync(KolIconTag, { key: '4ca81413133d6ad53061ab833255ae48c37fd85a', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
28229
28328
  'kol-custom-suggestions-toggle--disabled': isDisabled,
28230
- }), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '2d6d172165735e5a9f9dae7b5c11839ffe6a76eb', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this), style: { '--visible-options': `${(_a = this._rows) !== null && _a !== void 0 ? _a : 5}` } }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option.label, searchTerm: this._inputValue, ref: (el) => {
28329
+ }), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '410bb602f1a0c347f69dce17ce1b7b7e0f1ddc94', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this), style: { '--visible-options': `${(_a = this._rows) !== null && _a !== void 0 ? _a : 5}` } }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option.label, searchTerm: this._inputValue, ref: (el) => {
28231
28330
  if (el)
28232
28331
  this.refOptions[index] = el;
28233
28332
  }, selected: this._value === option.value, disabled: option.disabled ? true : false, onClick: (event) => {
@@ -28571,6 +28670,7 @@ class KolSingleSelect {
28571
28670
  "state": [32],
28572
28671
  "inputHasFocus": [32],
28573
28672
  "getValue": [64],
28673
+ "focus": [64],
28574
28674
  "kolFocus": [64]
28575
28675
  },
28576
28676
  "$listeners$": [[8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"], [0, "keydown", "handleKeyDown"], [1, "mousemove", "handleMouseEvent"]],
@@ -28594,6 +28694,13 @@ class KolSkipNav {
28594
28694
  return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link, { ref: index === 0 ? (el) => (this.firstLinkRef = el) : undefined }))));
28595
28695
  }))));
28596
28696
  }
28697
+ async focus() {
28698
+ var _a;
28699
+ return Promise.resolve((_a = this.firstLinkRef) === null || _a === void 0 ? void 0 : _a.focus());
28700
+ }
28701
+ async kolFocus() {
28702
+ return this.focus();
28703
+ }
28597
28704
  validateLabel(value, _oldValue, initial = false) {
28598
28705
  if (!initial) {
28599
28706
  removeNavLabel(this.state._label);
@@ -28613,10 +28720,6 @@ class KolSkipNav {
28613
28720
  disconnectedCallback() {
28614
28721
  removeNavLabel(this.state._label);
28615
28722
  }
28616
- async kolFocus() {
28617
- var _a;
28618
- await ((_a = this.firstLinkRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
28619
- }
28620
28723
  static get watchers() { return {
28621
28724
  "_label": ["validateLabel"],
28622
28725
  "_links": ["validateLinks"]
@@ -28631,6 +28734,7 @@ class KolSkipNav {
28631
28734
  "_label": [1],
28632
28735
  "_links": [1],
28633
28736
  "state": [32],
28737
+ "focus": [64],
28634
28738
  "kolFocus": [64]
28635
28739
  },
28636
28740
  "$listeners$": undefined,
@@ -28747,16 +28851,19 @@ class KolSplitButton {
28747
28851
  async getValue() {
28748
28852
  return this._value;
28749
28853
  }
28750
- async kolFocus() {
28854
+ async focus() {
28751
28855
  var _a;
28752
- await ((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
28856
+ return Promise.resolve((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
28857
+ }
28858
+ async kolFocus() {
28859
+ return this.focus();
28753
28860
  }
28754
28861
  render() {
28755
28862
  const i18nDropdownLabel = 'kol-split-button-dropdown-label';
28756
- return (hAsync("div", { key: '156668962e6ff2011625d1128a20a9dba6e24a9b', class: "kol-split-button" }, hAsync("div", { key: 'a273dc653d3c0a1efb5e3c83bd0e5f2ee2478e79', class: "kol-split-button__root" }, hAsync(KolButtonWcTag, { key: '88f61eecb6fdce911538179e721eae5af2c41c0f', class: clsx('kol-split-button__button', {
28863
+ return (hAsync("div", { key: 'fd28aa257b89ec88249c2f7eb4f1178abd5b70f1', class: "kol-split-button" }, hAsync("div", { key: '7abb8684272b4cb0145124cfb74189f1f4d2e06c', class: "kol-split-button__root" }, hAsync(KolButtonWcTag, { key: '808d218153cb14a95b7640fe0312f9386922168e', class: clsx('kol-split-button__button', {
28757
28864
  [this._variant]: this._variant !== 'custom',
28758
28865
  [this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
28759
- }), ref: this.catchPrimaryRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _id: this._id, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: '609e38bd0f8c2c80e831b0f933cec91d8d590d93', class: "kol-split-button__horizontal-line" }), hAsync(KolButtonWcTag, { key: '95da68081863776d4ea3ae7f67cc4752b6299d72', class: "kol-split-button__secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler })), hAsync(KolPopoverWcTag, { key: 'b8ca42df85abdfbd34c9df79c416b78aada35a56', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: '3af62ecf99ccdd770b926535d51f875426408103' }))));
28866
+ }), ref: this.catchPrimaryRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _id: this._id, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: '1f4dec3081093baf3435447615be0f466fa47890', class: "kol-split-button__horizontal-line" }), hAsync(KolButtonWcTag, { key: 'e0545b6a2565cecb3e65e79635771ebcac12c1cc', class: "kol-split-button__secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler })), hAsync(KolPopoverWcTag, { key: 'af16aee240137561a45847448a8144de33a100f5', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: '0c2ffbeaf67e040c2c101829332b90df397200fa' }))));
28760
28867
  }
28761
28868
  async closePopup() {
28762
28869
  this.handleOnClose();
@@ -28791,6 +28898,7 @@ class KolSplitButton {
28791
28898
  "_variant": [1],
28792
28899
  "state": [32],
28793
28900
  "getValue": [64],
28901
+ "focus": [64],
28794
28902
  "kolFocus": [64],
28795
28903
  "closePopup": [64]
28796
28904
  },
@@ -30395,9 +30503,12 @@ class KolTextarea {
30395
30503
  var _a;
30396
30504
  return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.value;
30397
30505
  }
30398
- async kolFocus() {
30506
+ async focus() {
30399
30507
  var _a;
30400
- (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus();
30508
+ return Promise.resolve((_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus());
30509
+ }
30510
+ async kolFocus() {
30511
+ return this.focus();
30401
30512
  }
30402
30513
  getFormFieldProps() {
30403
30514
  return {
@@ -30423,7 +30534,7 @@ class KolTextarea {
30423
30534
  } });
30424
30535
  }
30425
30536
  render() {
30426
- return (hAsync(FormFieldStateWrapper, Object.assign({ key: '2c2f033030f99e33507c059de0820cc72de7a599' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'b64d16f3b7484d98ef5c85f0a2fd41a90bc2469a', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: 'dec62bcfd41aaf9af259d7c40bb194d5dd157e8b' }, this.getTextAreaProps())))));
30537
+ return (hAsync(FormFieldStateWrapper, Object.assign({ key: '8c0e36e0f3518438ad47719a0487838b50458bfa' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '46550d2a7fe6d389b92205e55da49cd30e525fb3', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: '95bfd7318945abbd30a807e2f705946d8e2dabf1' }, this.getTextAreaProps())))));
30427
30538
  }
30428
30539
  constructor(hostRef) {
30429
30540
  registerInstance(this, hostRef);
@@ -30624,6 +30735,7 @@ class KolTextarea {
30624
30735
  "state": [32],
30625
30736
  "inputHasFocus": [32],
30626
30737
  "getValue": [64],
30738
+ "focus": [64],
30627
30739
  "kolFocus": [64]
30628
30740
  },
30629
30741
  "$listeners$": undefined,
@@ -30796,7 +30908,7 @@ class KolToolbar {
30796
30908
  if ((_d = (_c = this.state._items) === null || _c === void 0 ? void 0 : _c[nextIndex]) === null || _d === void 0 ? void 0 : _d._disabled)
30797
30909
  return;
30798
30910
  this.currentIndex = nextIndex;
30799
- void ((_e = this.getCurrentToolbarItem(nextIndex)) === null || _e === void 0 ? void 0 : _e.kolFocus());
30911
+ void ((_e = this.getCurrentToolbarItem(nextIndex)) === null || _e === void 0 ? void 0 : _e.focus());
30800
30912
  }
30801
30913
  handleBlur(event) {
30802
30914
  if (event.target === this.host)
@@ -31089,27 +31201,27 @@ class KolTreeItem {
31089
31201
  constructor(hostRef) {
31090
31202
  registerInstance(this, hostRef);
31091
31203
  }
31204
+ async focus() {
31205
+ var _a;
31206
+ return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.focus());
31207
+ }
31092
31208
  async focusLink() {
31093
- if (this.element) {
31094
- await this.element.focusLink();
31095
- }
31209
+ return this.focus();
31096
31210
  }
31097
31211
  async expand() {
31098
- if (this.element) {
31099
- await this.element.expand();
31100
- }
31212
+ var _a;
31213
+ return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.expand());
31101
31214
  }
31102
31215
  async collapse() {
31103
- if (this.element) {
31104
- await this.element.collapse();
31105
- }
31216
+ var _a;
31217
+ return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.collapse());
31106
31218
  }
31107
31219
  async isOpen() {
31108
31220
  var _a, _b;
31109
31221
  return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
31110
31222
  }
31111
31223
  render() {
31112
- return (hAsync(KolTreeItemWcTag, { key: '87d60840b65ed567e5e6075f362e33933563c5c9', _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: 'b0b1d7110cc70ee74fe026e0bedd2620fc423c1d' })));
31224
+ return (hAsync(KolTreeItemWcTag, { key: '10423bea3abc1e93d76d9cc740af25991e1944cf', _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: 'efc07e646a66d0034caab0ff546529a70098c836' })));
31113
31225
  }
31114
31226
  static get style() { return {
31115
31227
  default: defaultStyleCss$1
@@ -31122,6 +31234,7 @@ class KolTreeItem {
31122
31234
  "_label": [1],
31123
31235
  "_open": [4],
31124
31236
  "_href": [1],
31237
+ "focus": [64],
31125
31238
  "focusLink": [64],
31126
31239
  "expand": [64],
31127
31240
  "collapse": [64],
@@ -31190,12 +31303,17 @@ class KolTreeItemWc {
31190
31303
  var _a, _b;
31191
31304
  this.state = Object.assign(Object.assign({}, this.state), { _hasChildren: Boolean((_b = (_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedElements) === null || _b === void 0 ? void 0 : _b.call(_a).length) });
31192
31305
  }
31306
+ async focus() {
31307
+ var _a;
31308
+ return Promise.resolve((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
31309
+ }
31193
31310
  async focusLink() {
31194
- await this.linkElement.kolFocus();
31311
+ return this.focus();
31195
31312
  }
31196
31313
  async handleExpandClick(event) {
31314
+ var _a;
31197
31315
  event.preventDefault();
31198
- await this.linkElement.kolFocus();
31316
+ await ((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
31199
31317
  await this.expand();
31200
31318
  }
31201
31319
  async expand() {
@@ -31204,8 +31322,9 @@ class KolTreeItemWc {
31204
31322
  }
31205
31323
  }
31206
31324
  async handleCollapseClick(event) {
31325
+ var _a;
31207
31326
  event.preventDefault();
31208
- this.linkElement.focus();
31327
+ await ((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
31209
31328
  await this.collapse();
31210
31329
  }
31211
31330
  async collapse() {
@@ -31234,6 +31353,7 @@ class KolTreeItemWc {
31234
31353
  "_href": [1],
31235
31354
  "level": [32],
31236
31355
  "state": [32],
31356
+ "focus": [64],
31237
31357
  "focusLink": [64],
31238
31358
  "expand": [64],
31239
31359
  "collapse": [64],
@@ -31319,7 +31439,7 @@ class KolTreeWc {
31319
31439
  return elementsWithInclude.filter((element) => element.include).map((element) => element.value);
31320
31440
  }
31321
31441
  async handleKeyDown(event) {
31322
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
31442
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
31323
31443
  const openItems = await this.getOpenTreeItemElements();
31324
31444
  const currentTreeItem = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(KolTreeItemTag);
31325
31445
  const hasModifierKeyPressed = event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;
@@ -31329,12 +31449,12 @@ class KolTreeWc {
31329
31449
  const currentIndex = openItems === null || openItems === void 0 ? void 0 : openItems.findIndex((elem) => elem === currentTreeItem);
31330
31450
  switch (event.key) {
31331
31451
  case 'ArrowDown': {
31332
- await ((_b = openItems[currentIndex + 1]) === null || _b === void 0 ? void 0 : _b.focusLink());
31452
+ await ((_b = openItems[currentIndex + 1]) === null || _b === void 0 ? void 0 : _b.focus());
31333
31453
  event.preventDefault();
31334
31454
  break;
31335
31455
  }
31336
31456
  case 'ArrowUp': {
31337
- await ((_c = openItems[currentIndex - 1]) === null || _c === void 0 ? void 0 : _c.focusLink());
31457
+ await ((_c = openItems[currentIndex - 1]) === null || _c === void 0 ? void 0 : _c.focus());
31338
31458
  event.preventDefault();
31339
31459
  break;
31340
31460
  }
@@ -31342,7 +31462,7 @@ class KolTreeWc {
31342
31462
  case 'ArrowRight': {
31343
31463
  event.preventDefault();
31344
31464
  if (await currentTreeItem.isOpen()) {
31345
- await ((_d = openItems[currentIndex + 1]) === null || _d === void 0 ? void 0 : _d.focusLink());
31465
+ await ((_d = openItems[currentIndex + 1]) === null || _d === void 0 ? void 0 : _d.focus());
31346
31466
  }
31347
31467
  else {
31348
31468
  await currentTreeItem.expand();
@@ -31357,17 +31477,17 @@ class KolTreeWc {
31357
31477
  }
31358
31478
  else {
31359
31479
  const parentIndex = openItems.findIndex((item) => item === currentTreeItem.parentElement);
31360
- parentIndex !== -1 && (await ((_e = openItems[parentIndex]) === null || _e === void 0 ? void 0 : _e.focusLink()));
31480
+ parentIndex !== -1 && (await ((_e = openItems[parentIndex]) === null || _e === void 0 ? void 0 : _e.focus()));
31361
31481
  }
31362
31482
  break;
31363
31483
  }
31364
31484
  case 'Home': {
31365
- await ((_f = openItems[0]) === null || _f === void 0 ? void 0 : _f.focusLink());
31485
+ await ((_f = openItems[0]) === null || _f === void 0 ? void 0 : _f.focus());
31366
31486
  event.preventDefault();
31367
31487
  break;
31368
31488
  }
31369
31489
  case 'End': {
31370
- await ((_g = openItems[openItems.length - 1]) === null || _g === void 0 ? void 0 : _g.focusLink());
31490
+ await ((_g = openItems[openItems.length - 1]) === null || _g === void 0 ? void 0 : _g.focus());
31371
31491
  event.preventDefault();
31372
31492
  break;
31373
31493
  }
@@ -31380,14 +31500,14 @@ class KolTreeWc {
31380
31500
  .slice(startIndex, startIndex + openItems.length)
31381
31501
  .findIndex((item) => { var _a; return (_a = item.getAttribute('_label')) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase().startsWith(char); });
31382
31502
  if (matchIndex !== -1) {
31383
- await wrapAroundItems[startIndex + matchIndex].focusLink();
31503
+ await ((_j = wrapAroundItems[startIndex + matchIndex]) === null || _j === void 0 ? void 0 : _j.focus());
31384
31504
  event.preventDefault();
31385
31505
  }
31386
31506
  }
31387
31507
  break;
31388
31508
  }
31389
31509
  case '*': {
31390
- const siblings = (_j = currentTreeItem.parentElement) === null || _j === void 0 ? void 0 : _j.querySelectorAll(KolTreeItemTag);
31510
+ const siblings = (_k = currentTreeItem.parentElement) === null || _k === void 0 ? void 0 : _k.querySelectorAll(KolTreeItemTag);
31391
31511
  siblings === null || siblings === void 0 ? void 0 : siblings.forEach((element) => {
31392
31512
  void element.expand();
31393
31513
  });