@public-ui/hydrate 3.0.9-rc.3 → 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.
- package/dist/index.js +239 -119
- package/dist/index.mjs +239 -119
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -144,7 +144,7 @@ function _mergeNamespaces(n, m) {
|
|
|
144
144
|
|
|
145
145
|
const NAMESPACE = 'kolibri';
|
|
146
146
|
const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
147
|
-
const Env = /* kolibri */ {"kolibriVersion":"3.0.
|
|
147
|
+
const Env = /* kolibri */ {"kolibriVersion":"3.0.10-rc.0"};
|
|
148
148
|
|
|
149
149
|
function getDefaultExportFromCjs (x) {
|
|
150
150
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -6329,9 +6329,12 @@ class KolAccordion {
|
|
|
6329
6329
|
_on: {},
|
|
6330
6330
|
};
|
|
6331
6331
|
}
|
|
6332
|
-
async
|
|
6332
|
+
async focus() {
|
|
6333
6333
|
var _a;
|
|
6334
|
-
|
|
6334
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
6335
|
+
}
|
|
6336
|
+
async kolFocus() {
|
|
6337
|
+
return this.focus();
|
|
6335
6338
|
}
|
|
6336
6339
|
render() {
|
|
6337
6340
|
const { _open, _label, _disabled, _level } = this.state;
|
|
@@ -6355,7 +6358,7 @@ class KolAccordion {
|
|
|
6355
6358
|
animationClass: `${rootClass}__wrapper-animation`,
|
|
6356
6359
|
},
|
|
6357
6360
|
};
|
|
6358
|
-
return (hAsync(KolCollapsibleFc, Object.assign({ key: '
|
|
6361
|
+
return (hAsync(KolCollapsibleFc, Object.assign({ key: '4ab810c8ca65c74d9dd4911410289d301b88b747' }, props), hAsync("slot", { key: '8b395959dbca7708ef79080e80b7fbf94fa3e535' })));
|
|
6359
6362
|
}
|
|
6360
6363
|
validateDisabled(value) {
|
|
6361
6364
|
validateDisabled(this, value);
|
|
@@ -6402,6 +6405,7 @@ class KolAccordion {
|
|
|
6402
6405
|
"_on": [16],
|
|
6403
6406
|
"_open": [1540],
|
|
6404
6407
|
"state": [32],
|
|
6408
|
+
"focus": [64],
|
|
6405
6409
|
"kolFocus": [64]
|
|
6406
6410
|
},
|
|
6407
6411
|
"$listeners$": undefined,
|
|
@@ -18592,18 +18596,21 @@ class KolBadge {
|
|
|
18592
18596
|
renderSmartButton(props) {
|
|
18593
18597
|
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 }));
|
|
18594
18598
|
}
|
|
18595
|
-
async
|
|
18599
|
+
async focus() {
|
|
18596
18600
|
var _a;
|
|
18597
|
-
|
|
18601
|
+
return Promise.resolve((_a = this.smartButtonRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
18602
|
+
}
|
|
18603
|
+
async kolFocus() {
|
|
18604
|
+
return this.focus();
|
|
18598
18605
|
}
|
|
18599
18606
|
render() {
|
|
18600
18607
|
const hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;
|
|
18601
|
-
return (hAsync("span", { key: '
|
|
18608
|
+
return (hAsync("span", { key: 'aa434ba6ebe2fd58562931d192cc7747b3d4c429', class: clsx('kol-badge', {
|
|
18602
18609
|
'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,
|
|
18603
18610
|
}), style: {
|
|
18604
18611
|
backgroundColor: this.bgColorStr,
|
|
18605
18612
|
color: this.colorStr,
|
|
18606
|
-
} }, hAsync(KolSpanFc, { key: '
|
|
18613
|
+
} }, 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)));
|
|
18607
18614
|
}
|
|
18608
18615
|
validateIcons(value) {
|
|
18609
18616
|
validateIcons(this, value);
|
|
@@ -18648,6 +18655,7 @@ class KolBadge {
|
|
|
18648
18655
|
"_label": [1],
|
|
18649
18656
|
"_smartButton": [1, "_smart-button"],
|
|
18650
18657
|
"state": [32],
|
|
18658
|
+
"focus": [64],
|
|
18651
18659
|
"kolFocus": [64]
|
|
18652
18660
|
},
|
|
18653
18661
|
"$listeners$": undefined,
|
|
@@ -18750,12 +18758,15 @@ class KolButton {
|
|
|
18750
18758
|
async getValue() {
|
|
18751
18759
|
return this._value;
|
|
18752
18760
|
}
|
|
18753
|
-
async
|
|
18761
|
+
async focus() {
|
|
18754
18762
|
var _a;
|
|
18755
|
-
|
|
18763
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
18764
|
+
}
|
|
18765
|
+
async kolFocus() {
|
|
18766
|
+
return this.focus();
|
|
18756
18767
|
}
|
|
18757
18768
|
render() {
|
|
18758
|
-
return (hAsync(KolButtonWcTag, { key: '
|
|
18769
|
+
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" })));
|
|
18759
18770
|
}
|
|
18760
18771
|
static get style() { return {
|
|
18761
18772
|
default: defaultStyleCss$G
|
|
@@ -18786,6 +18797,7 @@ class KolButton {
|
|
|
18786
18797
|
"_value": [8],
|
|
18787
18798
|
"_variant": [1],
|
|
18788
18799
|
"getValue": [64],
|
|
18800
|
+
"focus": [64],
|
|
18789
18801
|
"kolFocus": [64]
|
|
18790
18802
|
},
|
|
18791
18803
|
"$listeners$": undefined,
|
|
@@ -18812,12 +18824,15 @@ class KolButtonLink {
|
|
|
18812
18824
|
async getValue() {
|
|
18813
18825
|
return this._value;
|
|
18814
18826
|
}
|
|
18815
|
-
async
|
|
18827
|
+
async focus() {
|
|
18816
18828
|
var _a;
|
|
18817
|
-
|
|
18829
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
18830
|
+
}
|
|
18831
|
+
async kolFocus() {
|
|
18832
|
+
return this.focus();
|
|
18818
18833
|
}
|
|
18819
18834
|
render() {
|
|
18820
|
-
return (hAsync(KolButtonWcTag, { key: '
|
|
18835
|
+
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" })));
|
|
18821
18836
|
}
|
|
18822
18837
|
static get style() { return {
|
|
18823
18838
|
default: defaultStyleCss$F
|
|
@@ -18847,6 +18862,7 @@ class KolButtonLink {
|
|
|
18847
18862
|
"_type": [1],
|
|
18848
18863
|
"_value": [8],
|
|
18849
18864
|
"getValue": [64],
|
|
18865
|
+
"focus": [64],
|
|
18850
18866
|
"kolFocus": [64]
|
|
18851
18867
|
},
|
|
18852
18868
|
"$listeners$": undefined,
|
|
@@ -19120,9 +19136,12 @@ class AssociatedInputController {
|
|
|
19120
19136
|
}
|
|
19121
19137
|
|
|
19122
19138
|
class KolButtonWc {
|
|
19123
|
-
async
|
|
19139
|
+
async focus() {
|
|
19124
19140
|
var _a;
|
|
19125
|
-
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19141
|
+
return Promise.resolve((_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
19142
|
+
}
|
|
19143
|
+
async kolFocus() {
|
|
19144
|
+
return this.focus();
|
|
19126
19145
|
}
|
|
19127
19146
|
render() {
|
|
19128
19147
|
var _a;
|
|
@@ -19131,14 +19150,14 @@ class KolButtonWc {
|
|
|
19131
19150
|
const badgeText = this.state._accessKey || this.state._shortKey;
|
|
19132
19151
|
const isDisabled = this.state._disabled === true;
|
|
19133
19152
|
const hideLabel = this.state._hideLabel === true;
|
|
19134
|
-
return (hAsync(Host, { key: '
|
|
19153
|
+
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', {
|
|
19135
19154
|
'kol-button--disabled': isDisabled,
|
|
19136
19155
|
[`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
|
|
19137
19156
|
'kol-button--inline': this.state._inline === true,
|
|
19138
19157
|
'kol-button--standalone': this.state._inline === false,
|
|
19139
19158
|
'kol-button--hide-label': hideLabel,
|
|
19140
19159
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
19141
|
-
}), 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: '
|
|
19160
|
+
}), 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 : '' }))));
|
|
19142
19161
|
}
|
|
19143
19162
|
constructor(hostRef) {
|
|
19144
19163
|
registerInstance(this, hostRef);
|
|
@@ -19343,6 +19362,7 @@ class KolButtonWc {
|
|
|
19343
19362
|
"_value": [8],
|
|
19344
19363
|
"_buttonVariant": [1, "_button-variant"],
|
|
19345
19364
|
"state": [32],
|
|
19365
|
+
"focus": [64],
|
|
19346
19366
|
"kolFocus": [64]
|
|
19347
19367
|
},
|
|
19348
19368
|
"$listeners$": undefined,
|
|
@@ -19937,9 +19957,12 @@ class KolCombobox {
|
|
|
19937
19957
|
async getValue() {
|
|
19938
19958
|
return this.state._value;
|
|
19939
19959
|
}
|
|
19940
|
-
async
|
|
19960
|
+
async focus() {
|
|
19941
19961
|
var _a;
|
|
19942
|
-
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19962
|
+
return Promise.resolve((_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus());
|
|
19963
|
+
}
|
|
19964
|
+
async kolFocus() {
|
|
19965
|
+
return this.focus();
|
|
19943
19966
|
}
|
|
19944
19967
|
selectOption(option) {
|
|
19945
19968
|
var _a;
|
|
@@ -20046,15 +20069,15 @@ class KolCombobox {
|
|
|
20046
20069
|
}
|
|
20047
20070
|
render() {
|
|
20048
20071
|
const isDisabled = this.state._disabled === true;
|
|
20049
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
20072
|
+
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', {
|
|
20050
20073
|
'kol-combobox__delete--disabled': isDisabled,
|
|
20051
20074
|
}), _on: {
|
|
20052
20075
|
onClick: () => {
|
|
20053
20076
|
this.clearSelection();
|
|
20054
20077
|
},
|
|
20055
|
-
} })), hAsync(KolIconTag, { key: '
|
|
20078
|
+
} })), hAsync(KolIconTag, { key: 'e6b4d8abc7b46bcf94c6abdd3b3929a655cdda11', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
20056
20079
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
20057
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
20080
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'e6fb48734b7c3e4f0abc466a9be4ba4fcedd5c36', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
20058
20081
|
this._filteredSuggestions.length > 0 &&
|
|
20059
20082
|
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { disabled: false, index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
20060
20083
|
if (el)
|
|
@@ -20363,6 +20386,7 @@ class KolCombobox {
|
|
|
20363
20386
|
"state": [32],
|
|
20364
20387
|
"inputHasFocus": [32],
|
|
20365
20388
|
"getValue": [64],
|
|
20389
|
+
"focus": [64],
|
|
20366
20390
|
"kolFocus": [64]
|
|
20367
20391
|
},
|
|
20368
20392
|
"$listeners$": [[0, "keydown", "handleKeyDown"], [8, "click", "handleWindowClick"], [1, "mousemove", "handleMouseEvent"], [8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"]],
|
|
@@ -20400,9 +20424,12 @@ class KolDetails {
|
|
|
20400
20424
|
_on: {},
|
|
20401
20425
|
};
|
|
20402
20426
|
}
|
|
20403
|
-
async
|
|
20427
|
+
async focus() {
|
|
20404
20428
|
var _a;
|
|
20405
|
-
|
|
20429
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
20430
|
+
}
|
|
20431
|
+
async kolFocus() {
|
|
20432
|
+
return this.focus();
|
|
20406
20433
|
}
|
|
20407
20434
|
render() {
|
|
20408
20435
|
const { _open, _label, _disabled, _level } = this.state;
|
|
@@ -20427,7 +20454,7 @@ class KolDetails {
|
|
|
20427
20454
|
animationClass: `${rootClass}__wrapper-animation`,
|
|
20428
20455
|
},
|
|
20429
20456
|
};
|
|
20430
|
-
return (hAsync(KolCollapsibleFc, Object.assign({ key: '
|
|
20457
|
+
return (hAsync(KolCollapsibleFc, Object.assign({ key: 'ea189966b0a9072b03f4296f71c8c7e5c25eb4c8' }, props), hAsync("slot", { key: '4a369f362fc6db0109baa6a4048eae8b2d640f78' })));
|
|
20431
20458
|
}
|
|
20432
20459
|
validateDisabled(value) {
|
|
20433
20460
|
validateDisabled(this, value);
|
|
@@ -20474,6 +20501,7 @@ class KolDetails {
|
|
|
20474
20501
|
"_on": [16],
|
|
20475
20502
|
"_open": [1540],
|
|
20476
20503
|
"state": [32],
|
|
20504
|
+
"focus": [64],
|
|
20477
20505
|
"kolFocus": [64]
|
|
20478
20506
|
},
|
|
20479
20507
|
"$listeners$": undefined,
|
|
@@ -21210,9 +21238,12 @@ class KolInputCheckbox {
|
|
|
21210
21238
|
async getValue() {
|
|
21211
21239
|
return this.getModelValue();
|
|
21212
21240
|
}
|
|
21213
|
-
async
|
|
21241
|
+
async focus() {
|
|
21214
21242
|
var _a;
|
|
21215
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21243
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
21244
|
+
}
|
|
21245
|
+
async kolFocus() {
|
|
21246
|
+
return this.focus();
|
|
21216
21247
|
}
|
|
21217
21248
|
getFormFieldProps() {
|
|
21218
21249
|
return {
|
|
@@ -21261,7 +21292,7 @@ class KolInputCheckbox {
|
|
|
21261
21292
|
return this.state._icons.unchecked;
|
|
21262
21293
|
}
|
|
21263
21294
|
render() {
|
|
21264
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21295
|
+
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())))));
|
|
21265
21296
|
}
|
|
21266
21297
|
constructor(hostRef) {
|
|
21267
21298
|
registerInstance(this, hostRef);
|
|
@@ -21435,6 +21466,7 @@ class KolInputCheckbox {
|
|
|
21435
21466
|
"state": [32],
|
|
21436
21467
|
"inputHasFocus": [32],
|
|
21437
21468
|
"getValue": [64],
|
|
21469
|
+
"focus": [64],
|
|
21438
21470
|
"kolFocus": [64]
|
|
21439
21471
|
},
|
|
21440
21472
|
"$listeners$": undefined,
|
|
@@ -21473,9 +21505,12 @@ class KolInputColor {
|
|
|
21473
21505
|
var _a;
|
|
21474
21506
|
return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.value;
|
|
21475
21507
|
}
|
|
21476
|
-
async
|
|
21508
|
+
async focus() {
|
|
21477
21509
|
var _a;
|
|
21478
|
-
(_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21510
|
+
return Promise.resolve((_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus());
|
|
21511
|
+
}
|
|
21512
|
+
async kolFocus() {
|
|
21513
|
+
return this.focus();
|
|
21479
21514
|
}
|
|
21480
21515
|
get hasSuggestions() {
|
|
21481
21516
|
return Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
@@ -21499,7 +21534,7 @@ class KolInputColor {
|
|
|
21499
21534
|
return Object.assign(Object.assign({ state: Object.assign(Object.assign({}, other), { _suggestions: [] }) }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus });
|
|
21500
21535
|
}
|
|
21501
21536
|
render() {
|
|
21502
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21537
|
+
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()))))));
|
|
21503
21538
|
}
|
|
21504
21539
|
constructor(hostRef) {
|
|
21505
21540
|
registerInstance(this, hostRef);
|
|
@@ -21668,6 +21703,7 @@ class KolInputColor {
|
|
|
21668
21703
|
"state": [32],
|
|
21669
21704
|
"inputHasFocus": [32],
|
|
21670
21705
|
"getValue": [64],
|
|
21706
|
+
"focus": [64],
|
|
21671
21707
|
"kolFocus": [64]
|
|
21672
21708
|
},
|
|
21673
21709
|
"$listeners$": undefined,
|
|
@@ -21832,9 +21868,12 @@ class KolInputDate {
|
|
|
21832
21868
|
var _a;
|
|
21833
21869
|
return this.inputRef && this.remapValue((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value);
|
|
21834
21870
|
}
|
|
21835
|
-
async
|
|
21871
|
+
async focus() {
|
|
21836
21872
|
var _a;
|
|
21837
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21873
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
21874
|
+
}
|
|
21875
|
+
async kolFocus() {
|
|
21876
|
+
return this.focus();
|
|
21838
21877
|
}
|
|
21839
21878
|
async reset() {
|
|
21840
21879
|
this.state = Object.assign(Object.assign({}, this.state), { _value: null });
|
|
@@ -21874,7 +21913,7 @@ class KolInputDate {
|
|
|
21874
21913
|
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 });
|
|
21875
21914
|
}
|
|
21876
21915
|
render() {
|
|
21877
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21916
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '1e8bc172c374000fe352895606f9eec87bb21e92' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'c03c72257382a9e1282e933fc175d55c156d8db8', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '0a6b0bcadcc0bd107ddf7fd67f3250b5ccb21701' }, this.getInputProps())))));
|
|
21878
21917
|
}
|
|
21879
21918
|
constructor(hostRef) {
|
|
21880
21919
|
registerInstance(this, hostRef);
|
|
@@ -22091,6 +22130,7 @@ class KolInputDate {
|
|
|
22091
22130
|
"state": [32],
|
|
22092
22131
|
"inputHasFocus": [32],
|
|
22093
22132
|
"getValue": [64],
|
|
22133
|
+
"focus": [64],
|
|
22094
22134
|
"kolFocus": [64],
|
|
22095
22135
|
"reset": [64]
|
|
22096
22136
|
},
|
|
@@ -22225,9 +22265,12 @@ class KolInputEmail {
|
|
|
22225
22265
|
var _a;
|
|
22226
22266
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
22227
22267
|
}
|
|
22228
|
-
async
|
|
22268
|
+
async focus() {
|
|
22229
22269
|
var _a;
|
|
22230
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22270
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
22271
|
+
}
|
|
22272
|
+
async kolFocus() {
|
|
22273
|
+
return this.focus();
|
|
22231
22274
|
}
|
|
22232
22275
|
getFormFieldProps() {
|
|
22233
22276
|
return {
|
|
@@ -22251,7 +22294,7 @@ class KolInputEmail {
|
|
|
22251
22294
|
} });
|
|
22252
22295
|
}
|
|
22253
22296
|
render() {
|
|
22254
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22297
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'bcd5bb2ce1dc31c18614a9d956577ba9c3517b6e' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'fc088e01b4d3341fb870e5d0a13898aaf1a7b287', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'b204fe11a8858f3d8146c9f689cdad19d8d16b9a' }, this.getInputProps())))));
|
|
22255
22298
|
}
|
|
22256
22299
|
constructor(hostRef) {
|
|
22257
22300
|
registerInstance(this, hostRef);
|
|
@@ -22446,6 +22489,7 @@ class KolInputEmail {
|
|
|
22446
22489
|
"state": [32],
|
|
22447
22490
|
"inputHasFocus": [32],
|
|
22448
22491
|
"getValue": [64],
|
|
22492
|
+
"focus": [64],
|
|
22449
22493
|
"kolFocus": [64]
|
|
22450
22494
|
},
|
|
22451
22495
|
"$listeners$": undefined,
|
|
@@ -22483,9 +22527,12 @@ class KolInputFile {
|
|
|
22483
22527
|
var _a;
|
|
22484
22528
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.files;
|
|
22485
22529
|
}
|
|
22486
|
-
async
|
|
22530
|
+
async focus() {
|
|
22487
22531
|
var _a;
|
|
22488
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22532
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
22533
|
+
}
|
|
22534
|
+
async kolFocus() {
|
|
22535
|
+
return this.focus();
|
|
22489
22536
|
}
|
|
22490
22537
|
async reset() {
|
|
22491
22538
|
this.controller.setFormAssociatedValue('');
|
|
@@ -22513,7 +22560,7 @@ class KolInputFile {
|
|
|
22513
22560
|
} });
|
|
22514
22561
|
}
|
|
22515
22562
|
render() {
|
|
22516
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22563
|
+
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 }))));
|
|
22517
22564
|
}
|
|
22518
22565
|
constructor(hostRef) {
|
|
22519
22566
|
registerInstance(this, hostRef);
|
|
@@ -22700,6 +22747,7 @@ class KolInputFile {
|
|
|
22700
22747
|
"state": [32],
|
|
22701
22748
|
"inputHasFocus": [32],
|
|
22702
22749
|
"getValue": [64],
|
|
22750
|
+
"focus": [64],
|
|
22703
22751
|
"kolFocus": [64],
|
|
22704
22752
|
"reset": [64]
|
|
22705
22753
|
},
|
|
@@ -22762,9 +22810,12 @@ class KolInputNumber {
|
|
|
22762
22810
|
async getValue() {
|
|
22763
22811
|
return this.remapValue(this.state._value);
|
|
22764
22812
|
}
|
|
22765
|
-
async
|
|
22813
|
+
async focus() {
|
|
22766
22814
|
var _a;
|
|
22767
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22815
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
22816
|
+
}
|
|
22817
|
+
async kolFocus() {
|
|
22818
|
+
return this.focus();
|
|
22768
22819
|
}
|
|
22769
22820
|
setInitialValueType(value) {
|
|
22770
22821
|
if (this.controller.isNumberString(value)) {
|
|
@@ -22806,7 +22857,7 @@ class KolInputNumber {
|
|
|
22806
22857
|
} });
|
|
22807
22858
|
}
|
|
22808
22859
|
render() {
|
|
22809
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22860
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '60f3ab5d10c2382ed837f5a1b7b872141bcae69e' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '818c2e4227f8a27231c17d9971187522938d8e3f', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'd42c7b5454f2282771436f736f1f1a78e614b6c4' }, this.getInputProps())))));
|
|
22810
22861
|
}
|
|
22811
22862
|
constructor(hostRef) {
|
|
22812
22863
|
registerInstance(this, hostRef);
|
|
@@ -23002,6 +23053,7 @@ class KolInputNumber {
|
|
|
23002
23053
|
"_initialValueType": [32],
|
|
23003
23054
|
"inputHasFocus": [32],
|
|
23004
23055
|
"getValue": [64],
|
|
23056
|
+
"focus": [64],
|
|
23005
23057
|
"kolFocus": [64]
|
|
23006
23058
|
},
|
|
23007
23059
|
"$listeners$": undefined,
|
|
@@ -23017,9 +23069,12 @@ class KolInputPassword {
|
|
|
23017
23069
|
var _a;
|
|
23018
23070
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23019
23071
|
}
|
|
23020
|
-
async
|
|
23072
|
+
async focus() {
|
|
23021
23073
|
var _a;
|
|
23022
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23074
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23075
|
+
}
|
|
23076
|
+
async kolFocus() {
|
|
23077
|
+
return this.focus();
|
|
23023
23078
|
}
|
|
23024
23079
|
getFormFieldProps() {
|
|
23025
23080
|
return {
|
|
@@ -23053,7 +23108,7 @@ class KolInputPassword {
|
|
|
23053
23108
|
}, icon: `codicon codicon-eye-${this._passwordVisible ? 'closed' : 'watch'}`, disabled: this._disabled }));
|
|
23054
23109
|
}
|
|
23055
23110
|
render() {
|
|
23056
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23111
|
+
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())))));
|
|
23057
23112
|
}
|
|
23058
23113
|
constructor(hostRef) {
|
|
23059
23114
|
registerInstance(this, hostRef);
|
|
@@ -23250,6 +23305,7 @@ class KolInputPassword {
|
|
|
23250
23305
|
"_passwordVisible": [32],
|
|
23251
23306
|
"inputHasFocus": [32],
|
|
23252
23307
|
"getValue": [64],
|
|
23308
|
+
"focus": [64],
|
|
23253
23309
|
"kolFocus": [64]
|
|
23254
23310
|
},
|
|
23255
23311
|
"$listeners$": undefined,
|
|
@@ -23305,9 +23361,12 @@ class KolInputRadio {
|
|
|
23305
23361
|
async getValue() {
|
|
23306
23362
|
return this._value;
|
|
23307
23363
|
}
|
|
23308
|
-
async
|
|
23364
|
+
async focus() {
|
|
23309
23365
|
var _a;
|
|
23310
|
-
(_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23366
|
+
return Promise.resolve((_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23367
|
+
}
|
|
23368
|
+
async kolFocus() {
|
|
23369
|
+
return this.focus();
|
|
23311
23370
|
}
|
|
23312
23371
|
getFocusableInput() {
|
|
23313
23372
|
const options = this.state._options;
|
|
@@ -23344,7 +23403,7 @@ class KolInputRadio {
|
|
|
23344
23403
|
};
|
|
23345
23404
|
}
|
|
23346
23405
|
render() {
|
|
23347
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23406
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '1a5ada4341373c623af39a98c98c71de59b89bb4' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
|
|
23348
23407
|
}
|
|
23349
23408
|
calculateDisabled(option) {
|
|
23350
23409
|
return Boolean(this.state._disabled) || Boolean(option.disabled);
|
|
@@ -23541,6 +23600,7 @@ class KolInputRadio {
|
|
|
23541
23600
|
"state": [32],
|
|
23542
23601
|
"inputHasFocus": [32],
|
|
23543
23602
|
"getValue": [64],
|
|
23603
|
+
"focus": [64],
|
|
23544
23604
|
"kolFocus": [64]
|
|
23545
23605
|
},
|
|
23546
23606
|
"$listeners$": undefined,
|
|
@@ -23588,9 +23648,12 @@ class InputRangeController extends InputIconController {
|
|
|
23588
23648
|
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}";
|
|
23589
23649
|
|
|
23590
23650
|
class KolInputRange {
|
|
23591
|
-
async
|
|
23651
|
+
async focus() {
|
|
23592
23652
|
var _a;
|
|
23593
|
-
(_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23653
|
+
return Promise.resolve((_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23654
|
+
}
|
|
23655
|
+
async kolFocus() {
|
|
23656
|
+
return this.focus();
|
|
23594
23657
|
}
|
|
23595
23658
|
getSanitizedFloatValue(value) {
|
|
23596
23659
|
const floatValue = parseFloat(value);
|
|
@@ -23660,7 +23723,7 @@ class KolInputRange {
|
|
|
23660
23723
|
const inputsWrapperStyle = {
|
|
23661
23724
|
'--kolibri-input-range--input-number--width': `calc(${String(this.state._max).length}ch + 2em)`,
|
|
23662
23725
|
};
|
|
23663
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23726
|
+
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 }))));
|
|
23664
23727
|
}
|
|
23665
23728
|
constructor(hostRef) {
|
|
23666
23729
|
registerInstance(this, hostRef);
|
|
@@ -23845,6 +23908,7 @@ class KolInputRange {
|
|
|
23845
23908
|
"state": [32],
|
|
23846
23909
|
"_initialValueType": [32],
|
|
23847
23910
|
"inputHasFocus": [32],
|
|
23911
|
+
"focus": [64],
|
|
23848
23912
|
"kolFocus": [64],
|
|
23849
23913
|
"getValue": [64]
|
|
23850
23914
|
},
|
|
@@ -23861,9 +23925,12 @@ class KolInputText {
|
|
|
23861
23925
|
var _a;
|
|
23862
23926
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23863
23927
|
}
|
|
23864
|
-
async
|
|
23928
|
+
async focus() {
|
|
23865
23929
|
var _a;
|
|
23866
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23930
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23931
|
+
}
|
|
23932
|
+
async kolFocus() {
|
|
23933
|
+
return this.focus();
|
|
23867
23934
|
}
|
|
23868
23935
|
async selectionStart() {
|
|
23869
23936
|
var _a;
|
|
@@ -23906,7 +23973,7 @@ class KolInputText {
|
|
|
23906
23973
|
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 });
|
|
23907
23974
|
}
|
|
23908
23975
|
render() {
|
|
23909
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23976
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'd86ef7efc8ffb8893f60c3f5d129a1bf368f39d3' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '7038d9b03bedb83fa603ec889404c9aa2f376543', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'ea63bc12e147832944b1f450d9d65bed39989dd0' }, this.getInputProps())))));
|
|
23910
23977
|
}
|
|
23911
23978
|
constructor(hostRef) {
|
|
23912
23979
|
registerInstance(this, hostRef);
|
|
@@ -24126,6 +24193,7 @@ class KolInputText {
|
|
|
24126
24193
|
"state": [32],
|
|
24127
24194
|
"inputHasFocus": [32],
|
|
24128
24195
|
"getValue": [64],
|
|
24196
|
+
"focus": [64],
|
|
24129
24197
|
"kolFocus": [64],
|
|
24130
24198
|
"selectionStart": [64],
|
|
24131
24199
|
"selectioconEnd": [64],
|
|
@@ -24225,12 +24293,15 @@ class KolLink {
|
|
|
24225
24293
|
this._variant = 'inline';
|
|
24226
24294
|
this._tooltipAlign = 'right';
|
|
24227
24295
|
}
|
|
24228
|
-
async
|
|
24296
|
+
async focus() {
|
|
24229
24297
|
var _a;
|
|
24230
|
-
|
|
24298
|
+
return Promise.resolve((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
24299
|
+
}
|
|
24300
|
+
async kolFocus() {
|
|
24301
|
+
return this.focus();
|
|
24231
24302
|
}
|
|
24232
24303
|
render() {
|
|
24233
|
-
return (hAsync(KolLinkWcTag, { key: '
|
|
24304
|
+
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" })));
|
|
24234
24305
|
}
|
|
24235
24306
|
static get style() { return {
|
|
24236
24307
|
default: defaultStyleCss$l
|
|
@@ -24257,6 +24328,7 @@ class KolLink {
|
|
|
24257
24328
|
"_shortKey": [1, "_short-key"],
|
|
24258
24329
|
"_target": [1],
|
|
24259
24330
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
24331
|
+
"focus": [64],
|
|
24260
24332
|
"kolFocus": [64]
|
|
24261
24333
|
},
|
|
24262
24334
|
"$listeners$": undefined,
|
|
@@ -24278,12 +24350,15 @@ class KolLinkButton {
|
|
|
24278
24350
|
this._tooltipAlign = 'right';
|
|
24279
24351
|
this._variant = 'normal';
|
|
24280
24352
|
}
|
|
24281
|
-
async
|
|
24353
|
+
async focus() {
|
|
24282
24354
|
var _a;
|
|
24283
|
-
|
|
24355
|
+
return Promise.resolve((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
24356
|
+
}
|
|
24357
|
+
async kolFocus() {
|
|
24358
|
+
return this.focus();
|
|
24284
24359
|
}
|
|
24285
24360
|
render() {
|
|
24286
|
-
return (hAsync(KolLinkWcTag, { key: '
|
|
24361
|
+
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" })));
|
|
24287
24362
|
}
|
|
24288
24363
|
static get style() { return {
|
|
24289
24364
|
default: defaultStyleCss$k
|
|
@@ -24309,6 +24384,7 @@ class KolLinkButton {
|
|
|
24309
24384
|
"_target": [1],
|
|
24310
24385
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
24311
24386
|
"_variant": [1],
|
|
24387
|
+
"focus": [64],
|
|
24312
24388
|
"kolFocus": [64]
|
|
24313
24389
|
},
|
|
24314
24390
|
"$listeners$": undefined,
|
|
@@ -24376,16 +24452,19 @@ class KolLinkWc {
|
|
|
24376
24452
|
_icons: {},
|
|
24377
24453
|
};
|
|
24378
24454
|
}
|
|
24379
|
-
async
|
|
24455
|
+
async focus() {
|
|
24380
24456
|
var _a;
|
|
24381
|
-
(_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24457
|
+
return Promise.resolve((_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
24458
|
+
}
|
|
24459
|
+
async kolFocus() {
|
|
24460
|
+
return this.focus();
|
|
24382
24461
|
}
|
|
24383
24462
|
render() {
|
|
24384
24463
|
var _a;
|
|
24385
24464
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
24386
24465
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
24387
24466
|
const ariaDescription = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim();
|
|
24388
|
-
return (hAsync(Host, { key: '
|
|
24467
|
+
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'
|
|
24389
24468
|
? `${this.state._label}${isExternal ? ` (${this.translateOpenLinkInTab})` : ''}`
|
|
24390
24469
|
: undefined, "aria-keyshortcuts": this.state._shortKey, class: clsx('kol-link', {
|
|
24391
24470
|
'kol-link--disabled': this.state._disabled === true,
|
|
@@ -24395,7 +24474,7 @@ class KolLinkWc {
|
|
|
24395
24474
|
'kol-link--inline': this.state._inline === true,
|
|
24396
24475
|
'kol-link--standalone': this.state._inline === false,
|
|
24397
24476
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
24398
|
-
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '
|
|
24477
|
+
}) }, 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 }))));
|
|
24399
24478
|
}
|
|
24400
24479
|
validateAccessKey(value) {
|
|
24401
24480
|
validateAccessKey(this, value);
|
|
@@ -24546,6 +24625,7 @@ class KolLinkWc {
|
|
|
24546
24625
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
24547
24626
|
"_buttonVariant": [1, "_button-variant"],
|
|
24548
24627
|
"state": [32],
|
|
24628
|
+
"focus": [64],
|
|
24549
24629
|
"kolFocus": [64]
|
|
24550
24630
|
},
|
|
24551
24631
|
"$listeners$": undefined,
|
|
@@ -27162,12 +27242,15 @@ let KolPopoverButton$1 = class KolPopoverButton {
|
|
|
27162
27242
|
var _a;
|
|
27163
27243
|
void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.showPopover());
|
|
27164
27244
|
}
|
|
27165
|
-
async
|
|
27245
|
+
async focus() {
|
|
27166
27246
|
var _a;
|
|
27167
|
-
|
|
27247
|
+
return Promise.resolve((_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27248
|
+
}
|
|
27249
|
+
async kolFocus() {
|
|
27250
|
+
return this.focus();
|
|
27168
27251
|
}
|
|
27169
27252
|
render() {
|
|
27170
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
27253
|
+
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' })));
|
|
27171
27254
|
}
|
|
27172
27255
|
static get style() { return {
|
|
27173
27256
|
default: defaultStyleCss$g
|
|
@@ -27200,6 +27283,7 @@ let KolPopoverButton$1 = class KolPopoverButton {
|
|
|
27200
27283
|
"_variant": [1],
|
|
27201
27284
|
"hidePopover": [64],
|
|
27202
27285
|
"showPopover": [64],
|
|
27286
|
+
"focus": [64],
|
|
27203
27287
|
"kolFocus": [64]
|
|
27204
27288
|
},
|
|
27205
27289
|
"$listeners$": undefined,
|
|
@@ -27233,9 +27317,12 @@ class KolPopoverButton {
|
|
|
27233
27317
|
var _a;
|
|
27234
27318
|
void ((_a = this.refPopover) === null || _a === void 0 ? void 0 : _a.showPopover());
|
|
27235
27319
|
}
|
|
27236
|
-
async
|
|
27320
|
+
async focus() {
|
|
27237
27321
|
var _a;
|
|
27238
|
-
|
|
27322
|
+
return Promise.resolve((_a = this.refButton) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27323
|
+
}
|
|
27324
|
+
async kolFocus() {
|
|
27325
|
+
return this.focus();
|
|
27239
27326
|
}
|
|
27240
27327
|
handleBeforeToggle(event) {
|
|
27241
27328
|
if (event.newState === 'closed') {
|
|
@@ -27291,11 +27378,11 @@ class KolPopoverButton {
|
|
|
27291
27378
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
27292
27379
|
}
|
|
27293
27380
|
render() {
|
|
27294
|
-
return (hAsync("div", { key: '
|
|
27381
|
+
return (hAsync("div", { key: '32a785aba018c6cbd915d91380b28a5e6db05088', class: clsx('kol-popover-button', {
|
|
27295
27382
|
'kol-popover-button--open': this.popoverOpen,
|
|
27296
27383
|
'kol-popover-button--inline': this.state._inline === true,
|
|
27297
27384
|
'kol-popover-button--standalone': this.state._inline === false,
|
|
27298
|
-
}) }, hAsync(KolButtonWcTag, { key: '
|
|
27385
|
+
}) }, 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' }))));
|
|
27299
27386
|
}
|
|
27300
27387
|
validateInline(value) {
|
|
27301
27388
|
validateInline(this, value, {
|
|
@@ -27344,6 +27431,7 @@ class KolPopoverButton {
|
|
|
27344
27431
|
"popoverOpen": [32],
|
|
27345
27432
|
"hidePopover": [64],
|
|
27346
27433
|
"showPopover": [64],
|
|
27434
|
+
"focus": [64],
|
|
27347
27435
|
"kolFocus": [64]
|
|
27348
27436
|
},
|
|
27349
27437
|
"$listeners$": undefined,
|
|
@@ -27543,12 +27631,15 @@ class KolSelect {
|
|
|
27543
27631
|
var _a;
|
|
27544
27632
|
return (_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.getValue();
|
|
27545
27633
|
}
|
|
27546
|
-
async
|
|
27634
|
+
async focus() {
|
|
27547
27635
|
var _a;
|
|
27548
|
-
|
|
27636
|
+
return Promise.resolve((_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27637
|
+
}
|
|
27638
|
+
async kolFocus() {
|
|
27639
|
+
return this.focus();
|
|
27549
27640
|
}
|
|
27550
27641
|
render() {
|
|
27551
|
-
return (hAsync(Host, { key: '
|
|
27642
|
+
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" }))));
|
|
27552
27643
|
}
|
|
27553
27644
|
static get style() { return {
|
|
27554
27645
|
default: defaultStyleCss$d
|
|
@@ -27579,6 +27670,7 @@ class KolSelect {
|
|
|
27579
27670
|
"_touched": [1540],
|
|
27580
27671
|
"_value": [1544],
|
|
27581
27672
|
"getValue": [64],
|
|
27673
|
+
"focus": [64],
|
|
27582
27674
|
"kolFocus": [64]
|
|
27583
27675
|
},
|
|
27584
27676
|
"$listeners$": undefined,
|
|
@@ -27784,9 +27876,12 @@ class KolSelectWc {
|
|
|
27784
27876
|
return Array.isArray(this.state._value) && this.state._value.length > 0 ? this.state._value[0] : this.state._value;
|
|
27785
27877
|
}
|
|
27786
27878
|
}
|
|
27787
|
-
async
|
|
27879
|
+
async focus() {
|
|
27788
27880
|
var _a;
|
|
27789
|
-
(_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
27881
|
+
return Promise.resolve((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27882
|
+
}
|
|
27883
|
+
async kolFocus() {
|
|
27884
|
+
return this.focus();
|
|
27790
27885
|
}
|
|
27791
27886
|
getFormFieldProps() {
|
|
27792
27887
|
return {
|
|
@@ -27809,11 +27904,11 @@ class KolSelectWc {
|
|
|
27809
27904
|
} });
|
|
27810
27905
|
}
|
|
27811
27906
|
render() {
|
|
27812
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
27907
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '809e5c7953715be68d2b22a5ff1c5a031951c733' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'cf898096d4ff2695e4d6065828c9349b383a645b', state: this.state }, hAsync("form", { key: 'a9c6f5786c3a62c2d4285c8087f1cc1131f178fe', onSubmit: (event) => {
|
|
27813
27908
|
event.preventDefault();
|
|
27814
27909
|
propagateSubmitEventToForm({
|
|
27815
27910
|
form: this.host});
|
|
27816
|
-
} }, hAsync("input", { key: '
|
|
27911
|
+
} }, hAsync("input", { key: '76d68fa0755e7770a5fea3dbfdcf22a244cd808d', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'c81b30d32fbcecd2202511bd0e9834d9b7c5190d' }, this.getSelectProps()))))));
|
|
27817
27912
|
}
|
|
27818
27913
|
constructor(hostRef) {
|
|
27819
27914
|
registerInstance(this, hostRef);
|
|
@@ -27983,6 +28078,7 @@ class KolSelectWc {
|
|
|
27983
28078
|
"state": [32],
|
|
27984
28079
|
"inputHasFocus": [32],
|
|
27985
28080
|
"getValue": [64],
|
|
28081
|
+
"focus": [64],
|
|
27986
28082
|
"kolFocus": [64]
|
|
27987
28083
|
},
|
|
27988
28084
|
"$listeners$": undefined,
|
|
@@ -28049,9 +28145,12 @@ class KolSingleSelect {
|
|
|
28049
28145
|
async getValue() {
|
|
28050
28146
|
return this._value;
|
|
28051
28147
|
}
|
|
28052
|
-
async
|
|
28148
|
+
async focus() {
|
|
28053
28149
|
var _a;
|
|
28054
|
-
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28150
|
+
return Promise.resolve((_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus());
|
|
28151
|
+
}
|
|
28152
|
+
async kolFocus() {
|
|
28153
|
+
return this.focus();
|
|
28055
28154
|
}
|
|
28056
28155
|
onBlur() {
|
|
28057
28156
|
var _a, _b, _c;
|
|
@@ -28215,7 +28314,7 @@ class KolSingleSelect {
|
|
|
28215
28314
|
render() {
|
|
28216
28315
|
var _a;
|
|
28217
28316
|
const isDisabled = this.state._disabled === true;
|
|
28218
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28317
|
+
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', {
|
|
28219
28318
|
'kol-single-select__delete--disabled': isDisabled,
|
|
28220
28319
|
}), _on: {
|
|
28221
28320
|
onClick: () => {
|
|
@@ -28223,9 +28322,9 @@ class KolSingleSelect {
|
|
|
28223
28322
|
this.clearSelection();
|
|
28224
28323
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28225
28324
|
},
|
|
28226
|
-
} })), hAsync(KolIconTag, { key: '
|
|
28325
|
+
} })), hAsync(KolIconTag, { key: '4ca81413133d6ad53061ab833255ae48c37fd85a', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
28227
28326
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
28228
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
28327
|
+
}), 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) => {
|
|
28229
28328
|
if (el)
|
|
28230
28329
|
this.refOptions[index] = el;
|
|
28231
28330
|
}, selected: this._value === option.value, disabled: option.disabled ? true : false, onClick: (event) => {
|
|
@@ -28569,6 +28668,7 @@ class KolSingleSelect {
|
|
|
28569
28668
|
"state": [32],
|
|
28570
28669
|
"inputHasFocus": [32],
|
|
28571
28670
|
"getValue": [64],
|
|
28671
|
+
"focus": [64],
|
|
28572
28672
|
"kolFocus": [64]
|
|
28573
28673
|
},
|
|
28574
28674
|
"$listeners$": [[8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"], [0, "keydown", "handleKeyDown"], [1, "mousemove", "handleMouseEvent"]],
|
|
@@ -28592,6 +28692,13 @@ class KolSkipNav {
|
|
|
28592
28692
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link, { ref: index === 0 ? (el) => (this.firstLinkRef = el) : undefined }))));
|
|
28593
28693
|
}))));
|
|
28594
28694
|
}
|
|
28695
|
+
async focus() {
|
|
28696
|
+
var _a;
|
|
28697
|
+
return Promise.resolve((_a = this.firstLinkRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
28698
|
+
}
|
|
28699
|
+
async kolFocus() {
|
|
28700
|
+
return this.focus();
|
|
28701
|
+
}
|
|
28595
28702
|
validateLabel(value, _oldValue, initial = false) {
|
|
28596
28703
|
if (!initial) {
|
|
28597
28704
|
removeNavLabel(this.state._label);
|
|
@@ -28611,10 +28718,6 @@ class KolSkipNav {
|
|
|
28611
28718
|
disconnectedCallback() {
|
|
28612
28719
|
removeNavLabel(this.state._label);
|
|
28613
28720
|
}
|
|
28614
|
-
async kolFocus() {
|
|
28615
|
-
var _a;
|
|
28616
|
-
await ((_a = this.firstLinkRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
28617
|
-
}
|
|
28618
28721
|
static get watchers() { return {
|
|
28619
28722
|
"_label": ["validateLabel"],
|
|
28620
28723
|
"_links": ["validateLinks"]
|
|
@@ -28629,6 +28732,7 @@ class KolSkipNav {
|
|
|
28629
28732
|
"_label": [1],
|
|
28630
28733
|
"_links": [1],
|
|
28631
28734
|
"state": [32],
|
|
28735
|
+
"focus": [64],
|
|
28632
28736
|
"kolFocus": [64]
|
|
28633
28737
|
},
|
|
28634
28738
|
"$listeners$": undefined,
|
|
@@ -28745,16 +28849,19 @@ class KolSplitButton {
|
|
|
28745
28849
|
async getValue() {
|
|
28746
28850
|
return this._value;
|
|
28747
28851
|
}
|
|
28748
|
-
async
|
|
28852
|
+
async focus() {
|
|
28749
28853
|
var _a;
|
|
28750
|
-
|
|
28854
|
+
return Promise.resolve((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
28855
|
+
}
|
|
28856
|
+
async kolFocus() {
|
|
28857
|
+
return this.focus();
|
|
28751
28858
|
}
|
|
28752
28859
|
render() {
|
|
28753
28860
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
28754
|
-
return (hAsync("div", { key: '
|
|
28861
|
+
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', {
|
|
28755
28862
|
[this._variant]: this._variant !== 'custom',
|
|
28756
28863
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
28757
|
-
}), 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: '
|
|
28864
|
+
}), 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' }))));
|
|
28758
28865
|
}
|
|
28759
28866
|
async closePopup() {
|
|
28760
28867
|
this.handleOnClose();
|
|
@@ -28789,6 +28896,7 @@ class KolSplitButton {
|
|
|
28789
28896
|
"_variant": [1],
|
|
28790
28897
|
"state": [32],
|
|
28791
28898
|
"getValue": [64],
|
|
28899
|
+
"focus": [64],
|
|
28792
28900
|
"kolFocus": [64],
|
|
28793
28901
|
"closePopup": [64]
|
|
28794
28902
|
},
|
|
@@ -30393,9 +30501,12 @@ class KolTextarea {
|
|
|
30393
30501
|
var _a;
|
|
30394
30502
|
return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
30395
30503
|
}
|
|
30396
|
-
async
|
|
30504
|
+
async focus() {
|
|
30397
30505
|
var _a;
|
|
30398
|
-
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30506
|
+
return Promise.resolve((_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
30507
|
+
}
|
|
30508
|
+
async kolFocus() {
|
|
30509
|
+
return this.focus();
|
|
30399
30510
|
}
|
|
30400
30511
|
getFormFieldProps() {
|
|
30401
30512
|
return {
|
|
@@ -30421,7 +30532,7 @@ class KolTextarea {
|
|
|
30421
30532
|
} });
|
|
30422
30533
|
}
|
|
30423
30534
|
render() {
|
|
30424
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
30535
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '8c0e36e0f3518438ad47719a0487838b50458bfa' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '46550d2a7fe6d389b92205e55da49cd30e525fb3', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: '95bfd7318945abbd30a807e2f705946d8e2dabf1' }, this.getTextAreaProps())))));
|
|
30425
30536
|
}
|
|
30426
30537
|
constructor(hostRef) {
|
|
30427
30538
|
registerInstance(this, hostRef);
|
|
@@ -30622,6 +30733,7 @@ class KolTextarea {
|
|
|
30622
30733
|
"state": [32],
|
|
30623
30734
|
"inputHasFocus": [32],
|
|
30624
30735
|
"getValue": [64],
|
|
30736
|
+
"focus": [64],
|
|
30625
30737
|
"kolFocus": [64]
|
|
30626
30738
|
},
|
|
30627
30739
|
"$listeners$": undefined,
|
|
@@ -30794,7 +30906,7 @@ class KolToolbar {
|
|
|
30794
30906
|
if ((_d = (_c = this.state._items) === null || _c === void 0 ? void 0 : _c[nextIndex]) === null || _d === void 0 ? void 0 : _d._disabled)
|
|
30795
30907
|
return;
|
|
30796
30908
|
this.currentIndex = nextIndex;
|
|
30797
|
-
void ((_e = this.getCurrentToolbarItem(nextIndex)) === null || _e === void 0 ? void 0 : _e.
|
|
30909
|
+
void ((_e = this.getCurrentToolbarItem(nextIndex)) === null || _e === void 0 ? void 0 : _e.focus());
|
|
30798
30910
|
}
|
|
30799
30911
|
handleBlur(event) {
|
|
30800
30912
|
if (event.target === this.host)
|
|
@@ -31087,27 +31199,27 @@ class KolTreeItem {
|
|
|
31087
31199
|
constructor(hostRef) {
|
|
31088
31200
|
registerInstance(this, hostRef);
|
|
31089
31201
|
}
|
|
31202
|
+
async focus() {
|
|
31203
|
+
var _a;
|
|
31204
|
+
return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31205
|
+
}
|
|
31090
31206
|
async focusLink() {
|
|
31091
|
-
|
|
31092
|
-
await this.element.focusLink();
|
|
31093
|
-
}
|
|
31207
|
+
return this.focus();
|
|
31094
31208
|
}
|
|
31095
31209
|
async expand() {
|
|
31096
|
-
|
|
31097
|
-
|
|
31098
|
-
}
|
|
31210
|
+
var _a;
|
|
31211
|
+
return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.expand());
|
|
31099
31212
|
}
|
|
31100
31213
|
async collapse() {
|
|
31101
|
-
|
|
31102
|
-
|
|
31103
|
-
}
|
|
31214
|
+
var _a;
|
|
31215
|
+
return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.collapse());
|
|
31104
31216
|
}
|
|
31105
31217
|
async isOpen() {
|
|
31106
31218
|
var _a, _b;
|
|
31107
31219
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
31108
31220
|
}
|
|
31109
31221
|
render() {
|
|
31110
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
31222
|
+
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' })));
|
|
31111
31223
|
}
|
|
31112
31224
|
static get style() { return {
|
|
31113
31225
|
default: defaultStyleCss$1
|
|
@@ -31120,6 +31232,7 @@ class KolTreeItem {
|
|
|
31120
31232
|
"_label": [1],
|
|
31121
31233
|
"_open": [4],
|
|
31122
31234
|
"_href": [1],
|
|
31235
|
+
"focus": [64],
|
|
31123
31236
|
"focusLink": [64],
|
|
31124
31237
|
"expand": [64],
|
|
31125
31238
|
"collapse": [64],
|
|
@@ -31188,12 +31301,17 @@ class KolTreeItemWc {
|
|
|
31188
31301
|
var _a, _b;
|
|
31189
31302
|
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) });
|
|
31190
31303
|
}
|
|
31304
|
+
async focus() {
|
|
31305
|
+
var _a;
|
|
31306
|
+
return Promise.resolve((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31307
|
+
}
|
|
31191
31308
|
async focusLink() {
|
|
31192
|
-
|
|
31309
|
+
return this.focus();
|
|
31193
31310
|
}
|
|
31194
31311
|
async handleExpandClick(event) {
|
|
31312
|
+
var _a;
|
|
31195
31313
|
event.preventDefault();
|
|
31196
|
-
await this.linkElement.
|
|
31314
|
+
await ((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31197
31315
|
await this.expand();
|
|
31198
31316
|
}
|
|
31199
31317
|
async expand() {
|
|
@@ -31202,8 +31320,9 @@ class KolTreeItemWc {
|
|
|
31202
31320
|
}
|
|
31203
31321
|
}
|
|
31204
31322
|
async handleCollapseClick(event) {
|
|
31323
|
+
var _a;
|
|
31205
31324
|
event.preventDefault();
|
|
31206
|
-
this.linkElement.focus();
|
|
31325
|
+
await ((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31207
31326
|
await this.collapse();
|
|
31208
31327
|
}
|
|
31209
31328
|
async collapse() {
|
|
@@ -31232,6 +31351,7 @@ class KolTreeItemWc {
|
|
|
31232
31351
|
"_href": [1],
|
|
31233
31352
|
"level": [32],
|
|
31234
31353
|
"state": [32],
|
|
31354
|
+
"focus": [64],
|
|
31235
31355
|
"focusLink": [64],
|
|
31236
31356
|
"expand": [64],
|
|
31237
31357
|
"collapse": [64],
|
|
@@ -31317,7 +31437,7 @@ class KolTreeWc {
|
|
|
31317
31437
|
return elementsWithInclude.filter((element) => element.include).map((element) => element.value);
|
|
31318
31438
|
}
|
|
31319
31439
|
async handleKeyDown(event) {
|
|
31320
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
31440
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
31321
31441
|
const openItems = await this.getOpenTreeItemElements();
|
|
31322
31442
|
const currentTreeItem = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(KolTreeItemTag);
|
|
31323
31443
|
const hasModifierKeyPressed = event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;
|
|
@@ -31327,12 +31447,12 @@ class KolTreeWc {
|
|
|
31327
31447
|
const currentIndex = openItems === null || openItems === void 0 ? void 0 : openItems.findIndex((elem) => elem === currentTreeItem);
|
|
31328
31448
|
switch (event.key) {
|
|
31329
31449
|
case 'ArrowDown': {
|
|
31330
|
-
await ((_b = openItems[currentIndex + 1]) === null || _b === void 0 ? void 0 : _b.
|
|
31450
|
+
await ((_b = openItems[currentIndex + 1]) === null || _b === void 0 ? void 0 : _b.focus());
|
|
31331
31451
|
event.preventDefault();
|
|
31332
31452
|
break;
|
|
31333
31453
|
}
|
|
31334
31454
|
case 'ArrowUp': {
|
|
31335
|
-
await ((_c = openItems[currentIndex - 1]) === null || _c === void 0 ? void 0 : _c.
|
|
31455
|
+
await ((_c = openItems[currentIndex - 1]) === null || _c === void 0 ? void 0 : _c.focus());
|
|
31336
31456
|
event.preventDefault();
|
|
31337
31457
|
break;
|
|
31338
31458
|
}
|
|
@@ -31340,7 +31460,7 @@ class KolTreeWc {
|
|
|
31340
31460
|
case 'ArrowRight': {
|
|
31341
31461
|
event.preventDefault();
|
|
31342
31462
|
if (await currentTreeItem.isOpen()) {
|
|
31343
|
-
await ((_d = openItems[currentIndex + 1]) === null || _d === void 0 ? void 0 : _d.
|
|
31463
|
+
await ((_d = openItems[currentIndex + 1]) === null || _d === void 0 ? void 0 : _d.focus());
|
|
31344
31464
|
}
|
|
31345
31465
|
else {
|
|
31346
31466
|
await currentTreeItem.expand();
|
|
@@ -31355,17 +31475,17 @@ class KolTreeWc {
|
|
|
31355
31475
|
}
|
|
31356
31476
|
else {
|
|
31357
31477
|
const parentIndex = openItems.findIndex((item) => item === currentTreeItem.parentElement);
|
|
31358
|
-
parentIndex !== -1 && (await ((_e = openItems[parentIndex]) === null || _e === void 0 ? void 0 : _e.
|
|
31478
|
+
parentIndex !== -1 && (await ((_e = openItems[parentIndex]) === null || _e === void 0 ? void 0 : _e.focus()));
|
|
31359
31479
|
}
|
|
31360
31480
|
break;
|
|
31361
31481
|
}
|
|
31362
31482
|
case 'Home': {
|
|
31363
|
-
await ((_f = openItems[0]) === null || _f === void 0 ? void 0 : _f.
|
|
31483
|
+
await ((_f = openItems[0]) === null || _f === void 0 ? void 0 : _f.focus());
|
|
31364
31484
|
event.preventDefault();
|
|
31365
31485
|
break;
|
|
31366
31486
|
}
|
|
31367
31487
|
case 'End': {
|
|
31368
|
-
await ((_g = openItems[openItems.length - 1]) === null || _g === void 0 ? void 0 : _g.
|
|
31488
|
+
await ((_g = openItems[openItems.length - 1]) === null || _g === void 0 ? void 0 : _g.focus());
|
|
31369
31489
|
event.preventDefault();
|
|
31370
31490
|
break;
|
|
31371
31491
|
}
|
|
@@ -31378,14 +31498,14 @@ class KolTreeWc {
|
|
|
31378
31498
|
.slice(startIndex, startIndex + openItems.length)
|
|
31379
31499
|
.findIndex((item) => { var _a; return (_a = item.getAttribute('_label')) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase().startsWith(char); });
|
|
31380
31500
|
if (matchIndex !== -1) {
|
|
31381
|
-
await wrapAroundItems[startIndex + matchIndex].
|
|
31501
|
+
await ((_j = wrapAroundItems[startIndex + matchIndex]) === null || _j === void 0 ? void 0 : _j.focus());
|
|
31382
31502
|
event.preventDefault();
|
|
31383
31503
|
}
|
|
31384
31504
|
}
|
|
31385
31505
|
break;
|
|
31386
31506
|
}
|
|
31387
31507
|
case '*': {
|
|
31388
|
-
const siblings = (
|
|
31508
|
+
const siblings = (_k = currentTreeItem.parentElement) === null || _k === void 0 ? void 0 : _k.querySelectorAll(KolTreeItemTag);
|
|
31389
31509
|
siblings === null || siblings === void 0 ? void 0 : siblings.forEach((element) => {
|
|
31390
31510
|
void element.expand();
|
|
31391
31511
|
});
|