@public-ui/hydrate 2.2.13-rc.0 → 2.2.13-rc.2
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 +654 -150
- package/dist/index.mjs +654 -150
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3834,29 +3834,13 @@ const validateAccessKey = (component, value) => {
|
|
|
3834
3834
|
watchString(component, '_accessKey', value);
|
|
3835
3835
|
};
|
|
3836
3836
|
|
|
3837
|
-
const validateAccordionCallbacks = (component, value) => {
|
|
3838
|
-
watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['AccordionCallbacksPropType {Events.onClick}']), value);
|
|
3839
|
-
};
|
|
3840
|
-
|
|
3841
|
-
const validateActive = (component, value, options) => {
|
|
3842
|
-
watchBoolean(component, '_active', value, options);
|
|
3843
|
-
};
|
|
3844
|
-
|
|
3845
|
-
const validateAdjustHeight = (component, value) => {
|
|
3846
|
-
watchBoolean(component, '_adjustHeight', value);
|
|
3847
|
-
};
|
|
3848
|
-
|
|
3849
|
-
const validateAlert = (component, value) => {
|
|
3850
|
-
watchBoolean(component, '_alert', value);
|
|
3851
|
-
};
|
|
3852
|
-
|
|
3853
3837
|
const validateAlignment = (component, propName, value) => {
|
|
3854
3838
|
watchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {
|
|
3855
3839
|
defaultValue: 'top',
|
|
3856
3840
|
});
|
|
3857
3841
|
};
|
|
3858
3842
|
|
|
3859
|
-
const isObject$
|
|
3843
|
+
const isObject$2 = (value) => typeof value === 'object' && value !== null;
|
|
3860
3844
|
const isString$2 = (value, minLength = 0) => typeof value === 'string' && value.length >= minLength;
|
|
3861
3845
|
const isStyle = (style) => {
|
|
3862
3846
|
if (typeof style === 'object' && style !== null) {
|
|
@@ -3908,6 +3892,22 @@ const validateTabIndex = (component, value) => {
|
|
|
3908
3892
|
watchNumber(component, '_tabIndex', value, options);
|
|
3909
3893
|
};
|
|
3910
3894
|
|
|
3895
|
+
const validateAccordionCallbacks = (component, value) => {
|
|
3896
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['AccordionCallbacksPropType {Events.onClick}']), value);
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
const validateActive = (component, value, options) => {
|
|
3900
|
+
watchBoolean(component, '_active', value, options);
|
|
3901
|
+
};
|
|
3902
|
+
|
|
3903
|
+
const validateAdjustHeight = (component, value) => {
|
|
3904
|
+
watchBoolean(component, '_adjustHeight', value);
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3907
|
+
const validateAlert = (component, value) => {
|
|
3908
|
+
watchBoolean(component, '_alert', value);
|
|
3909
|
+
};
|
|
3910
|
+
|
|
3911
3911
|
const horizontalAlignOptions = ['left', 'right'];
|
|
3912
3912
|
const verticalAlignOptions = ['top', 'bottom'];
|
|
3913
3913
|
const alignPropTypeOptions = [...horizontalAlignOptions, ...verticalAlignOptions];
|
|
@@ -3954,7 +3954,7 @@ const validateBadgeText = (component, value) => {
|
|
|
3954
3954
|
};
|
|
3955
3955
|
|
|
3956
3956
|
const validateButtonCallbacks = (component, value) => {
|
|
3957
|
-
watchValidator(component, `_on`, (value) =>
|
|
3957
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}']), value);
|
|
3958
3958
|
};
|
|
3959
3959
|
|
|
3960
3960
|
const buttonTypePropTypeOptions = ['button', 'reset', 'submit'];
|
|
@@ -4082,7 +4082,7 @@ const validateCustomClass = (component, value) => {
|
|
|
4082
4082
|
};
|
|
4083
4083
|
|
|
4084
4084
|
const validateDetailsCallbacks = (component, value) => {
|
|
4085
|
-
watchValidator(component, `_on`, (value) =>
|
|
4085
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['DetailsCallbacksPropType {Events.onToggle}']), value);
|
|
4086
4086
|
};
|
|
4087
4087
|
|
|
4088
4088
|
const validateDisabled = (component, value) => {
|
|
@@ -4139,7 +4139,7 @@ const validateHref = (component, value, options = {}) => {
|
|
|
4139
4139
|
};
|
|
4140
4140
|
|
|
4141
4141
|
const mapCustomIcon = (state, alignment, icon) => {
|
|
4142
|
-
if (isObject$
|
|
4142
|
+
if (isObject$2(icon)) {
|
|
4143
4143
|
state[alignment] = icon;
|
|
4144
4144
|
}
|
|
4145
4145
|
else if (isString$2(icon, 1)) {
|
|
@@ -4157,11 +4157,12 @@ const mapIconProp2State = (icon) => {
|
|
|
4157
4157
|
},
|
|
4158
4158
|
};
|
|
4159
4159
|
}
|
|
4160
|
-
else if (
|
|
4161
|
-
|
|
4162
|
-
mapCustomIcon(state, '
|
|
4163
|
-
mapCustomIcon(state, '
|
|
4164
|
-
mapCustomIcon(state, '
|
|
4160
|
+
else if (isObject$2(icon)) {
|
|
4161
|
+
const icons = icon;
|
|
4162
|
+
mapCustomIcon(state, 'top', icons.top);
|
|
4163
|
+
mapCustomIcon(state, 'right', icons.right);
|
|
4164
|
+
mapCustomIcon(state, 'bottom', icons.bottom);
|
|
4165
|
+
mapCustomIcon(state, 'left', icons.left);
|
|
4165
4166
|
}
|
|
4166
4167
|
return state;
|
|
4167
4168
|
};
|
|
@@ -4172,8 +4173,7 @@ const beforePatchIcon = (component) => {
|
|
|
4172
4173
|
(_c = component.nextState) === null || _c === void 0 ? void 0 : _c.set('_icons', mapIconProp2State(icons));
|
|
4173
4174
|
}
|
|
4174
4175
|
};
|
|
4175
|
-
const isIcon = (value) =>
|
|
4176
|
-
value !== null &&
|
|
4176
|
+
const isIcon = (value) => isObject$2(value) &&
|
|
4177
4177
|
(typeof value.style === 'undefined' || isStyle(value.style)) &&
|
|
4178
4178
|
(typeof value.label === 'undefined' || isString$2(value.label)) &&
|
|
4179
4179
|
isString$2(value.icon, 1);
|
|
@@ -4186,12 +4186,11 @@ const validateIcons = (component, value, options = {}) => {
|
|
|
4186
4186
|
catch (e) {
|
|
4187
4187
|
}
|
|
4188
4188
|
watchValidator(component, '_icons', (value) => {
|
|
4189
|
-
const valueIsEmptyObject =
|
|
4189
|
+
const valueIsEmptyObject = isObject$2(value) && Object.keys(value).length === 0;
|
|
4190
4190
|
return (value === null ||
|
|
4191
4191
|
valueIsEmptyObject ||
|
|
4192
4192
|
isString$2(value, 1) ||
|
|
4193
|
-
(
|
|
4194
|
-
value !== null &&
|
|
4193
|
+
(isObject$2(value) &&
|
|
4195
4194
|
(isString$2(value.left, 1) ||
|
|
4196
4195
|
isIcon(value.left) ||
|
|
4197
4196
|
isString$2(value.right, 1) ||
|
|
@@ -4293,7 +4292,7 @@ const validateMsg = (component, value) => {
|
|
|
4293
4292
|
}
|
|
4294
4293
|
catch (e) {
|
|
4295
4294
|
}
|
|
4296
|
-
watchValidator(component, `_msg`, (value) => isObject$
|
|
4295
|
+
watchValidator(component, `_msg`, (value) => isObject$2(value) && typeof (value === null || value === void 0 ? void 0 : value._description) === 'string', new Set(['MsgPropType']), value, {
|
|
4297
4296
|
defaultValue: {
|
|
4298
4297
|
_description: '',
|
|
4299
4298
|
_type: 'error',
|
|
@@ -4315,7 +4314,7 @@ const validateOpen = (component, value, options) => {
|
|
|
4315
4314
|
};
|
|
4316
4315
|
|
|
4317
4316
|
const validateOptions = (component, value, options = {}) => {
|
|
4318
|
-
watchJsonArrayString(component, '_options', (item) =>
|
|
4317
|
+
watchJsonArrayString(component, '_options', (item) => isObject$2(item) && typeof item.label === 'string' && item.label.length > 0, value, undefined, options);
|
|
4319
4318
|
};
|
|
4320
4319
|
const validateOptionsWithOptgroup = (component, value, options = {}) => {
|
|
4321
4320
|
watchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);
|
|
@@ -4333,7 +4332,7 @@ const validatePopoverAlign = (component, value) => {
|
|
|
4333
4332
|
};
|
|
4334
4333
|
|
|
4335
4334
|
const validatePopoverCallbacks = (component, value) => {
|
|
4336
|
-
watchValidator(component, `_on`, (value) =>
|
|
4335
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['PopoverCallbacksPropType {Events.onClose}']), value);
|
|
4337
4336
|
};
|
|
4338
4337
|
|
|
4339
4338
|
const validateReadOnly = (component, value) => {
|
|
@@ -4380,10 +4379,10 @@ const validateTabBehavior = (component, value) => {
|
|
|
4380
4379
|
};
|
|
4381
4380
|
|
|
4382
4381
|
const validateTableCallbacks = (component, value) => {
|
|
4383
|
-
watchValidator(component, `_on`, (value) =>
|
|
4382
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange}']), value);
|
|
4384
4383
|
};
|
|
4385
4384
|
const validateTableStatefulCallbacks = (component, value) => {
|
|
4386
|
-
watchValidator(component, `_on`, (value) =>
|
|
4385
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']), value);
|
|
4387
4386
|
};
|
|
4388
4387
|
|
|
4389
4388
|
const validateTableData = (component, value, setStateHooks) => {
|
|
@@ -4397,7 +4396,7 @@ const validateTableData = (component, value, setStateHooks) => {
|
|
|
4397
4396
|
}
|
|
4398
4397
|
catch (e) {
|
|
4399
4398
|
}
|
|
4400
|
-
if (Array.isArray(value) && value.every((data) =>
|
|
4399
|
+
if (Array.isArray(value) && value.every((data) => isObject$2(data))) {
|
|
4401
4400
|
setState(component, '_data', value, setStateHooks);
|
|
4402
4401
|
}
|
|
4403
4402
|
});
|
|
@@ -4415,7 +4414,7 @@ const validateTableDataFoot = (component, value, setStateHooks) => {
|
|
|
4415
4414
|
}
|
|
4416
4415
|
catch (e) {
|
|
4417
4416
|
}
|
|
4418
|
-
if (Array.isArray(value) && value.every((data) =>
|
|
4417
|
+
if (Array.isArray(value) && value.every((data) => isObject$2(data))) {
|
|
4419
4418
|
setState(component, '_dataFoot', value, setStateHooks);
|
|
4420
4419
|
}
|
|
4421
4420
|
});
|
|
@@ -4450,7 +4449,7 @@ const validateTableSelection = (component, value) => {
|
|
|
4450
4449
|
}
|
|
4451
4450
|
};
|
|
4452
4451
|
const validateObject = (value) => {
|
|
4453
|
-
return value && isObject$
|
|
4452
|
+
return value && isObject$2(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));
|
|
4454
4453
|
};
|
|
4455
4454
|
const objectValue = typeof value === 'string' ? parseSerializedValue() : value;
|
|
4456
4455
|
if (validateObject(objectValue)) {
|
|
@@ -4469,7 +4468,7 @@ const validateToolbarItems = (component, value) => {
|
|
|
4469
4468
|
}
|
|
4470
4469
|
catch (e) {
|
|
4471
4470
|
}
|
|
4472
|
-
if (Array.isArray(value) && value.every((items) =>
|
|
4471
|
+
if (Array.isArray(value) && value.every((items) => isObject$2(items))) {
|
|
4473
4472
|
setState(component, '_items', value);
|
|
4474
4473
|
}
|
|
4475
4474
|
});
|
|
@@ -6510,13 +6509,13 @@ class KolCombobox {
|
|
|
6510
6509
|
render() {
|
|
6511
6510
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
6512
6511
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
6513
|
-
return (hAsync(Host, { key: 'cf7083a921cfc2e9d888e92475ec43b5ad0d976f', class: "kol-combobox" }, hAsync("div", { key: '917e314a61bedb601cf02437f7041c7fcbb54995', class: clsx('combobox', this.state._disabled && 'combobox--disabled') }, hAsync(KolInputTag, { key: '2ddc4e2327d66e32290ea22a8c051eedfdf543f3', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'b598b5ed2c21fd212b231c79bf9ee2cff24b96cd', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'a2ac90571622a9c093018ff83be3469f26d66592', slot: "input" }, hAsync("div", { key: '5eb0f614f2b433081181e29917398eeb6c358e3a', class: "combobox__group" }, hAsync("input", Object.assign({ key: '
|
|
6512
|
+
return (hAsync(Host, { key: 'cf7083a921cfc2e9d888e92475ec43b5ad0d976f', class: "kol-combobox" }, hAsync("div", { key: '917e314a61bedb601cf02437f7041c7fcbb54995', class: clsx('combobox', this.state._disabled && 'combobox--disabled') }, hAsync(KolInputTag, { key: '2ddc4e2327d66e32290ea22a8c051eedfdf543f3', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'b598b5ed2c21fd212b231c79bf9ee2cff24b96cd', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'a2ac90571622a9c093018ff83be3469f26d66592', slot: "input" }, hAsync("div", { key: '5eb0f614f2b433081181e29917398eeb6c358e3a', class: "combobox__group" }, hAsync("input", Object.assign({ key: '6d6d57e07299e5fbd4b64135ee1364087d1112e3', ref: this.catchRef, class: "combobox__input", type: "text", role: "combobox", "aria-autocomplete": "both", "aria-expanded": this._isOpen ? 'true' : 'false', "aria-controls": "listbox", value: this.state._value, accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-labelledby": this.state._id, "aria-activedescendant": this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, name: this.state._name, required: this.state._required }, this.controller.onFacade, { onFocus: (event) => {
|
|
6514
6513
|
this.controller.onFacade.onFocus(event);
|
|
6515
6514
|
this.inputHasFocus = true;
|
|
6516
6515
|
}, onBlur: (event) => {
|
|
6517
6516
|
this.controller.onFacade.onBlur(event);
|
|
6518
6517
|
this.inputHasFocus = false;
|
|
6519
|
-
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })), hAsync("button", { key: '
|
|
6518
|
+
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })), hAsync("button", { key: '7377de41e82a84d309e09cf962bc7a35b8edb7c9', tabindex: "-1", class: "combobox__icon", onClick: this.toggleListbox.bind(this), disabled: this.state._disabled }, hAsync(KolIconTag, { key: '1b3210da573ae33e86e91c9d18c56c1f3b1ad255', _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') }))), this._isOpen && !(this.state._disabled === true) && (hAsync("ul", { key: '9f56e7ced7caadb47658754f04fed6779fad0fe6', role: "listbox", class: clsx('combobox__listbox', this.blockSuggestionMouseOver && 'combobox__listbox--cursor-hidden'), onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
6520
6519
|
this._filteredSuggestions.length > 0 &&
|
|
6521
6520
|
this._filteredSuggestions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
6522
6521
|
if (el)
|
|
@@ -7138,11 +7137,11 @@ class KolForm {
|
|
|
7138
7137
|
return (hAsync(KolAlertFc, { ref: this.setBlockElement, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: index === 0 ? this.setFirstLinkElement : undefined }))))))));
|
|
7139
7138
|
}
|
|
7140
7139
|
renderFormElement() {
|
|
7141
|
-
return (hAsync("form", { method: "post", onSubmit: this.onSubmit, onReset: this.onReset,
|
|
7140
|
+
return (hAsync("form", { autoComplete: "off", method: "post", onSubmit: this.onSubmit, onReset: this.onReset, noValidate: true }, this.state._requiredText === true ? (hAsync("p", null, hAsync("div", { class: "mandatory-fields-hint" }, translate('kol-form-description')))) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (hAsync("p", null, hAsync("div", { class: "mandatory-fields-hint" }, this.state._requiredText))) : null, hAsync("slot", null)));
|
|
7142
7141
|
}
|
|
7143
7142
|
render() {
|
|
7144
7143
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
7145
|
-
return (hAsync(Host, { key: '
|
|
7144
|
+
return (hAsync(Host, { key: 'f8faff3a737be164f14bc26a0efbf081399c73f0', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
7146
7145
|
}
|
|
7147
7146
|
scrollToErrorList() {
|
|
7148
7147
|
var _a;
|
|
@@ -7204,7 +7203,7 @@ class KolForm {
|
|
|
7204
7203
|
}; }
|
|
7205
7204
|
}
|
|
7206
7205
|
|
|
7207
|
-
const defaultStyleCss$C = "/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}";
|
|
7206
|
+
const defaultStyleCss$C = "/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * 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 * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n.secondary-headline {\n margin: 0;\n}";
|
|
7208
7207
|
var KolHeadingDefaultStyle0 = defaultStyleCss$C;
|
|
7209
7208
|
|
|
7210
7209
|
class KolHeading {
|
|
@@ -7248,24 +7247,6 @@ class KolHeadingWc {
|
|
|
7248
7247
|
[`headline-${variant}`]: true,
|
|
7249
7248
|
} }, headline, hAsync("slot", { name: "expert" })));
|
|
7250
7249
|
};
|
|
7251
|
-
this.renderSecondaryHeadline = (headline, level) => {
|
|
7252
|
-
switch (level) {
|
|
7253
|
-
case 1:
|
|
7254
|
-
return hAsync("span", { class: "secondary-headline" }, headline);
|
|
7255
|
-
case 2:
|
|
7256
|
-
return hAsync("h2", { class: "secondary-headline" }, headline);
|
|
7257
|
-
case 3:
|
|
7258
|
-
return hAsync("h3", { class: "secondary-headline" }, headline);
|
|
7259
|
-
case 4:
|
|
7260
|
-
return hAsync("h4", { class: "secondary-headline" }, headline);
|
|
7261
|
-
case 5:
|
|
7262
|
-
return hAsync("h5", { class: "secondary-headline" }, headline);
|
|
7263
|
-
case 6:
|
|
7264
|
-
return hAsync("h6", { class: "secondary-headline" }, headline);
|
|
7265
|
-
default:
|
|
7266
|
-
return hAsync("strong", { class: "secondary-headline" }, headline);
|
|
7267
|
-
}
|
|
7268
|
-
};
|
|
7269
7250
|
this._label = undefined;
|
|
7270
7251
|
this._level = 1;
|
|
7271
7252
|
this._secondaryHeadline = undefined;
|
|
@@ -7294,7 +7275,7 @@ class KolHeadingWc {
|
|
|
7294
7275
|
this.validateVariant(this._variant);
|
|
7295
7276
|
}
|
|
7296
7277
|
render() {
|
|
7297
|
-
return (hAsync(Host, { key: '
|
|
7278
|
+
return (hAsync(Host, { key: '32478d3aa42ca01b63611be036146eefa0f35f90', class: "kol-heading-wc" }, typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (hAsync("hgroup", null, this.renderHeadline(this.state._label, this.state._level), hAsync("p", { class: "secondary-headline" }, this.state._secondaryHeadline))) : (this.renderHeadline(this.state._label, this.state._level))));
|
|
7298
7279
|
}
|
|
7299
7280
|
static get watchers() { return {
|
|
7300
7281
|
"_label": ["validateLabel"],
|
|
@@ -7472,7 +7453,7 @@ class KolIndentedTextWc {
|
|
|
7472
7453
|
this.state = {};
|
|
7473
7454
|
}
|
|
7474
7455
|
render() {
|
|
7475
|
-
return (hAsync(Host, { key: '
|
|
7456
|
+
return (hAsync(Host, { key: '9d055cf1199950842de282faaccd67e05d2495ba', class: "kol-indented-text-wc" }, hAsync("div", { key: '4409c9619ccf102b58f796aa41e9f533813cd69b' }, hAsync("slot", { key: '691be16bd16b4a88c02f978905c5a35a2c2154c9' }))));
|
|
7476
7457
|
}
|
|
7477
7458
|
static get cmpMeta() { return {
|
|
7478
7459
|
"$flags$": 4,
|
|
@@ -8538,14 +8519,507 @@ const validatePasswordVariant = (component, value) => {
|
|
|
8538
8519
|
watchValidator(component, '_variant', (value) => typeof value === 'string' && PasswordVariantPropTypeOptions.includes(value), new Set(PasswordVariantPropTypeOptions), value);
|
|
8539
8520
|
};
|
|
8540
8521
|
|
|
8522
|
+
/** Detect free variable `global` from Node.js. */
|
|
8523
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
8524
|
+
|
|
8525
|
+
var freeGlobal$1 = freeGlobal;
|
|
8526
|
+
|
|
8527
|
+
/** Detect free variable `self`. */
|
|
8528
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
8529
|
+
|
|
8530
|
+
/** Used as a reference to the global object. */
|
|
8531
|
+
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
8532
|
+
|
|
8533
|
+
var root$1 = root;
|
|
8534
|
+
|
|
8535
|
+
/** Built-in value references. */
|
|
8536
|
+
var Symbol = root$1.Symbol;
|
|
8537
|
+
|
|
8538
|
+
var Symbol$1 = Symbol;
|
|
8539
|
+
|
|
8540
|
+
/** Used for built-in method references. */
|
|
8541
|
+
var objectProto$1 = Object.prototype;
|
|
8542
|
+
|
|
8543
|
+
/** Used to check objects for own properties. */
|
|
8544
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
8545
|
+
|
|
8546
|
+
/**
|
|
8547
|
+
* Used to resolve the
|
|
8548
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
8549
|
+
* of values.
|
|
8550
|
+
*/
|
|
8551
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
8552
|
+
|
|
8553
|
+
/** Built-in value references. */
|
|
8554
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
8555
|
+
|
|
8556
|
+
/**
|
|
8557
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
8558
|
+
*
|
|
8559
|
+
* @private
|
|
8560
|
+
* @param {*} value The value to query.
|
|
8561
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
8562
|
+
*/
|
|
8563
|
+
function getRawTag(value) {
|
|
8564
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
8565
|
+
tag = value[symToStringTag$1];
|
|
8566
|
+
|
|
8567
|
+
try {
|
|
8568
|
+
value[symToStringTag$1] = undefined;
|
|
8569
|
+
var unmasked = true;
|
|
8570
|
+
} catch (e) {}
|
|
8571
|
+
|
|
8572
|
+
var result = nativeObjectToString$1.call(value);
|
|
8573
|
+
if (unmasked) {
|
|
8574
|
+
if (isOwn) {
|
|
8575
|
+
value[symToStringTag$1] = tag;
|
|
8576
|
+
} else {
|
|
8577
|
+
delete value[symToStringTag$1];
|
|
8578
|
+
}
|
|
8579
|
+
}
|
|
8580
|
+
return result;
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
/** Used for built-in method references. */
|
|
8584
|
+
var objectProto = Object.prototype;
|
|
8585
|
+
|
|
8586
|
+
/**
|
|
8587
|
+
* Used to resolve the
|
|
8588
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
8589
|
+
* of values.
|
|
8590
|
+
*/
|
|
8591
|
+
var nativeObjectToString = objectProto.toString;
|
|
8592
|
+
|
|
8593
|
+
/**
|
|
8594
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
8595
|
+
*
|
|
8596
|
+
* @private
|
|
8597
|
+
* @param {*} value The value to convert.
|
|
8598
|
+
* @returns {string} Returns the converted string.
|
|
8599
|
+
*/
|
|
8600
|
+
function objectToString(value) {
|
|
8601
|
+
return nativeObjectToString.call(value);
|
|
8602
|
+
}
|
|
8603
|
+
|
|
8604
|
+
/** `Object#toString` result references. */
|
|
8605
|
+
var nullTag = '[object Null]',
|
|
8606
|
+
undefinedTag = '[object Undefined]';
|
|
8607
|
+
|
|
8608
|
+
/** Built-in value references. */
|
|
8609
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
8610
|
+
|
|
8611
|
+
/**
|
|
8612
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
8613
|
+
*
|
|
8614
|
+
* @private
|
|
8615
|
+
* @param {*} value The value to query.
|
|
8616
|
+
* @returns {string} Returns the `toStringTag`.
|
|
8617
|
+
*/
|
|
8618
|
+
function baseGetTag(value) {
|
|
8619
|
+
if (value == null) {
|
|
8620
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
8621
|
+
}
|
|
8622
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
8623
|
+
? getRawTag(value)
|
|
8624
|
+
: objectToString(value);
|
|
8625
|
+
}
|
|
8626
|
+
|
|
8627
|
+
/**
|
|
8628
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
8629
|
+
* and has a `typeof` result of "object".
|
|
8630
|
+
*
|
|
8631
|
+
* @static
|
|
8632
|
+
* @memberOf _
|
|
8633
|
+
* @since 4.0.0
|
|
8634
|
+
* @category Lang
|
|
8635
|
+
* @param {*} value The value to check.
|
|
8636
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
8637
|
+
* @example
|
|
8638
|
+
*
|
|
8639
|
+
* _.isObjectLike({});
|
|
8640
|
+
* // => true
|
|
8641
|
+
*
|
|
8642
|
+
* _.isObjectLike([1, 2, 3]);
|
|
8643
|
+
* // => true
|
|
8644
|
+
*
|
|
8645
|
+
* _.isObjectLike(_.noop);
|
|
8646
|
+
* // => false
|
|
8647
|
+
*
|
|
8648
|
+
* _.isObjectLike(null);
|
|
8649
|
+
* // => false
|
|
8650
|
+
*/
|
|
8651
|
+
function isObjectLike(value) {
|
|
8652
|
+
return value != null && typeof value == 'object';
|
|
8653
|
+
}
|
|
8654
|
+
|
|
8655
|
+
/** `Object#toString` result references. */
|
|
8656
|
+
var symbolTag = '[object Symbol]';
|
|
8657
|
+
|
|
8658
|
+
/**
|
|
8659
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
8660
|
+
*
|
|
8661
|
+
* @static
|
|
8662
|
+
* @memberOf _
|
|
8663
|
+
* @since 4.0.0
|
|
8664
|
+
* @category Lang
|
|
8665
|
+
* @param {*} value The value to check.
|
|
8666
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
8667
|
+
* @example
|
|
8668
|
+
*
|
|
8669
|
+
* _.isSymbol(Symbol.iterator);
|
|
8670
|
+
* // => true
|
|
8671
|
+
*
|
|
8672
|
+
* _.isSymbol('abc');
|
|
8673
|
+
* // => false
|
|
8674
|
+
*/
|
|
8675
|
+
function isSymbol(value) {
|
|
8676
|
+
return typeof value == 'symbol' ||
|
|
8677
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
8678
|
+
}
|
|
8679
|
+
|
|
8680
|
+
/** Used to match a single whitespace character. */
|
|
8681
|
+
var reWhitespace = /\s/;
|
|
8682
|
+
|
|
8683
|
+
/**
|
|
8684
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
8685
|
+
* character of `string`.
|
|
8686
|
+
*
|
|
8687
|
+
* @private
|
|
8688
|
+
* @param {string} string The string to inspect.
|
|
8689
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
8690
|
+
*/
|
|
8691
|
+
function trimmedEndIndex(string) {
|
|
8692
|
+
var index = string.length;
|
|
8693
|
+
|
|
8694
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
8695
|
+
return index;
|
|
8696
|
+
}
|
|
8697
|
+
|
|
8698
|
+
/** Used to match leading whitespace. */
|
|
8699
|
+
var reTrimStart = /^\s+/;
|
|
8700
|
+
|
|
8701
|
+
/**
|
|
8702
|
+
* The base implementation of `_.trim`.
|
|
8703
|
+
*
|
|
8704
|
+
* @private
|
|
8705
|
+
* @param {string} string The string to trim.
|
|
8706
|
+
* @returns {string} Returns the trimmed string.
|
|
8707
|
+
*/
|
|
8708
|
+
function baseTrim(string) {
|
|
8709
|
+
return string
|
|
8710
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
8711
|
+
: string;
|
|
8712
|
+
}
|
|
8713
|
+
|
|
8714
|
+
/**
|
|
8715
|
+
* Checks if `value` is the
|
|
8716
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
8717
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
8718
|
+
*
|
|
8719
|
+
* @static
|
|
8720
|
+
* @memberOf _
|
|
8721
|
+
* @since 0.1.0
|
|
8722
|
+
* @category Lang
|
|
8723
|
+
* @param {*} value The value to check.
|
|
8724
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
8725
|
+
* @example
|
|
8726
|
+
*
|
|
8727
|
+
* _.isObject({});
|
|
8728
|
+
* // => true
|
|
8729
|
+
*
|
|
8730
|
+
* _.isObject([1, 2, 3]);
|
|
8731
|
+
* // => true
|
|
8732
|
+
*
|
|
8733
|
+
* _.isObject(_.noop);
|
|
8734
|
+
* // => true
|
|
8735
|
+
*
|
|
8736
|
+
* _.isObject(null);
|
|
8737
|
+
* // => false
|
|
8738
|
+
*/
|
|
8739
|
+
function isObject$1(value) {
|
|
8740
|
+
var type = typeof value;
|
|
8741
|
+
return value != null && (type == 'object' || type == 'function');
|
|
8742
|
+
}
|
|
8743
|
+
|
|
8744
|
+
/** Used as references for various `Number` constants. */
|
|
8745
|
+
var NAN = 0 / 0;
|
|
8746
|
+
|
|
8747
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
8748
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
8749
|
+
|
|
8750
|
+
/** Used to detect binary string values. */
|
|
8751
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
8752
|
+
|
|
8753
|
+
/** Used to detect octal string values. */
|
|
8754
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
8755
|
+
|
|
8756
|
+
/** Built-in method references without a dependency on `root`. */
|
|
8757
|
+
var freeParseInt = parseInt;
|
|
8758
|
+
|
|
8759
|
+
/**
|
|
8760
|
+
* Converts `value` to a number.
|
|
8761
|
+
*
|
|
8762
|
+
* @static
|
|
8763
|
+
* @memberOf _
|
|
8764
|
+
* @since 4.0.0
|
|
8765
|
+
* @category Lang
|
|
8766
|
+
* @param {*} value The value to process.
|
|
8767
|
+
* @returns {number} Returns the number.
|
|
8768
|
+
* @example
|
|
8769
|
+
*
|
|
8770
|
+
* _.toNumber(3.2);
|
|
8771
|
+
* // => 3.2
|
|
8772
|
+
*
|
|
8773
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
8774
|
+
* // => 5e-324
|
|
8775
|
+
*
|
|
8776
|
+
* _.toNumber(Infinity);
|
|
8777
|
+
* // => Infinity
|
|
8778
|
+
*
|
|
8779
|
+
* _.toNumber('3.2');
|
|
8780
|
+
* // => 3.2
|
|
8781
|
+
*/
|
|
8782
|
+
function toNumber(value) {
|
|
8783
|
+
if (typeof value == 'number') {
|
|
8784
|
+
return value;
|
|
8785
|
+
}
|
|
8786
|
+
if (isSymbol(value)) {
|
|
8787
|
+
return NAN;
|
|
8788
|
+
}
|
|
8789
|
+
if (isObject$1(value)) {
|
|
8790
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
8791
|
+
value = isObject$1(other) ? (other + '') : other;
|
|
8792
|
+
}
|
|
8793
|
+
if (typeof value != 'string') {
|
|
8794
|
+
return value === 0 ? value : +value;
|
|
8795
|
+
}
|
|
8796
|
+
value = baseTrim(value);
|
|
8797
|
+
var isBinary = reIsBinary.test(value);
|
|
8798
|
+
return (isBinary || reIsOctal.test(value))
|
|
8799
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
8800
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
8801
|
+
}
|
|
8802
|
+
|
|
8803
|
+
/**
|
|
8804
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
8805
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
8806
|
+
*
|
|
8807
|
+
* @static
|
|
8808
|
+
* @memberOf _
|
|
8809
|
+
* @since 2.4.0
|
|
8810
|
+
* @category Date
|
|
8811
|
+
* @returns {number} Returns the timestamp.
|
|
8812
|
+
* @example
|
|
8813
|
+
*
|
|
8814
|
+
* _.defer(function(stamp) {
|
|
8815
|
+
* console.log(_.now() - stamp);
|
|
8816
|
+
* }, _.now());
|
|
8817
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
8818
|
+
*/
|
|
8819
|
+
var now = function() {
|
|
8820
|
+
return root$1.Date.now();
|
|
8821
|
+
};
|
|
8822
|
+
|
|
8823
|
+
var now$1 = now;
|
|
8824
|
+
|
|
8825
|
+
/** Error message constants. */
|
|
8826
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
8827
|
+
|
|
8828
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
8829
|
+
var nativeMax = Math.max,
|
|
8830
|
+
nativeMin = Math.min;
|
|
8831
|
+
|
|
8832
|
+
/**
|
|
8833
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
8834
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
8835
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
8836
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
8837
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
8838
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
8839
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
8840
|
+
* calls to the debounced function return the result of the last `func`
|
|
8841
|
+
* invocation.
|
|
8842
|
+
*
|
|
8843
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
8844
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
8845
|
+
* is invoked more than once during the `wait` timeout.
|
|
8846
|
+
*
|
|
8847
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
8848
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
8849
|
+
*
|
|
8850
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
8851
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
8852
|
+
*
|
|
8853
|
+
* @static
|
|
8854
|
+
* @memberOf _
|
|
8855
|
+
* @since 0.1.0
|
|
8856
|
+
* @category Function
|
|
8857
|
+
* @param {Function} func The function to debounce.
|
|
8858
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
8859
|
+
* @param {Object} [options={}] The options object.
|
|
8860
|
+
* @param {boolean} [options.leading=false]
|
|
8861
|
+
* Specify invoking on the leading edge of the timeout.
|
|
8862
|
+
* @param {number} [options.maxWait]
|
|
8863
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
8864
|
+
* @param {boolean} [options.trailing=true]
|
|
8865
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
8866
|
+
* @returns {Function} Returns the new debounced function.
|
|
8867
|
+
* @example
|
|
8868
|
+
*
|
|
8869
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
8870
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
8871
|
+
*
|
|
8872
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
8873
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
8874
|
+
* 'leading': true,
|
|
8875
|
+
* 'trailing': false
|
|
8876
|
+
* }));
|
|
8877
|
+
*
|
|
8878
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
8879
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
8880
|
+
* var source = new EventSource('/stream');
|
|
8881
|
+
* jQuery(source).on('message', debounced);
|
|
8882
|
+
*
|
|
8883
|
+
* // Cancel the trailing debounced invocation.
|
|
8884
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
8885
|
+
*/
|
|
8886
|
+
function debounce(func, wait, options) {
|
|
8887
|
+
var lastArgs,
|
|
8888
|
+
lastThis,
|
|
8889
|
+
maxWait,
|
|
8890
|
+
result,
|
|
8891
|
+
timerId,
|
|
8892
|
+
lastCallTime,
|
|
8893
|
+
lastInvokeTime = 0,
|
|
8894
|
+
leading = false,
|
|
8895
|
+
maxing = false,
|
|
8896
|
+
trailing = true;
|
|
8897
|
+
|
|
8898
|
+
if (typeof func != 'function') {
|
|
8899
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
8900
|
+
}
|
|
8901
|
+
wait = toNumber(wait) || 0;
|
|
8902
|
+
if (isObject$1(options)) {
|
|
8903
|
+
leading = !!options.leading;
|
|
8904
|
+
maxing = 'maxWait' in options;
|
|
8905
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
8906
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
8907
|
+
}
|
|
8908
|
+
|
|
8909
|
+
function invokeFunc(time) {
|
|
8910
|
+
var args = lastArgs,
|
|
8911
|
+
thisArg = lastThis;
|
|
8912
|
+
|
|
8913
|
+
lastArgs = lastThis = undefined;
|
|
8914
|
+
lastInvokeTime = time;
|
|
8915
|
+
result = func.apply(thisArg, args);
|
|
8916
|
+
return result;
|
|
8917
|
+
}
|
|
8918
|
+
|
|
8919
|
+
function leadingEdge(time) {
|
|
8920
|
+
// Reset any `maxWait` timer.
|
|
8921
|
+
lastInvokeTime = time;
|
|
8922
|
+
// Start the timer for the trailing edge.
|
|
8923
|
+
timerId = setTimeout(timerExpired, wait);
|
|
8924
|
+
// Invoke the leading edge.
|
|
8925
|
+
return leading ? invokeFunc(time) : result;
|
|
8926
|
+
}
|
|
8927
|
+
|
|
8928
|
+
function remainingWait(time) {
|
|
8929
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
8930
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
8931
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
8932
|
+
|
|
8933
|
+
return maxing
|
|
8934
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
8935
|
+
: timeWaiting;
|
|
8936
|
+
}
|
|
8937
|
+
|
|
8938
|
+
function shouldInvoke(time) {
|
|
8939
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
8940
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
8941
|
+
|
|
8942
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
8943
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
8944
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
8945
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
8946
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
8947
|
+
}
|
|
8948
|
+
|
|
8949
|
+
function timerExpired() {
|
|
8950
|
+
var time = now$1();
|
|
8951
|
+
if (shouldInvoke(time)) {
|
|
8952
|
+
return trailingEdge(time);
|
|
8953
|
+
}
|
|
8954
|
+
// Restart the timer.
|
|
8955
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
8956
|
+
}
|
|
8957
|
+
|
|
8958
|
+
function trailingEdge(time) {
|
|
8959
|
+
timerId = undefined;
|
|
8960
|
+
|
|
8961
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
8962
|
+
// debounced at least once.
|
|
8963
|
+
if (trailing && lastArgs) {
|
|
8964
|
+
return invokeFunc(time);
|
|
8965
|
+
}
|
|
8966
|
+
lastArgs = lastThis = undefined;
|
|
8967
|
+
return result;
|
|
8968
|
+
}
|
|
8969
|
+
|
|
8970
|
+
function cancel() {
|
|
8971
|
+
if (timerId !== undefined) {
|
|
8972
|
+
clearTimeout(timerId);
|
|
8973
|
+
}
|
|
8974
|
+
lastInvokeTime = 0;
|
|
8975
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
8976
|
+
}
|
|
8977
|
+
|
|
8978
|
+
function flush() {
|
|
8979
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
8980
|
+
}
|
|
8981
|
+
|
|
8982
|
+
function debounced() {
|
|
8983
|
+
var time = now$1(),
|
|
8984
|
+
isInvoking = shouldInvoke(time);
|
|
8985
|
+
|
|
8986
|
+
lastArgs = arguments;
|
|
8987
|
+
lastThis = this;
|
|
8988
|
+
lastCallTime = time;
|
|
8989
|
+
|
|
8990
|
+
if (isInvoking) {
|
|
8991
|
+
if (timerId === undefined) {
|
|
8992
|
+
return leadingEdge(lastCallTime);
|
|
8993
|
+
}
|
|
8994
|
+
if (maxing) {
|
|
8995
|
+
// Handle invocations in a tight loop.
|
|
8996
|
+
clearTimeout(timerId);
|
|
8997
|
+
timerId = setTimeout(timerExpired, wait);
|
|
8998
|
+
return invokeFunc(lastCallTime);
|
|
8999
|
+
}
|
|
9000
|
+
}
|
|
9001
|
+
if (timerId === undefined) {
|
|
9002
|
+
timerId = setTimeout(timerExpired, wait);
|
|
9003
|
+
}
|
|
9004
|
+
return result;
|
|
9005
|
+
}
|
|
9006
|
+
debounced.cancel = cancel;
|
|
9007
|
+
debounced.flush = flush;
|
|
9008
|
+
return debounced;
|
|
9009
|
+
}
|
|
9010
|
+
|
|
8541
9011
|
class InputPasswordController extends InputIconController {
|
|
8542
9012
|
constructor(component, name, host) {
|
|
8543
9013
|
super(component, name, host);
|
|
8544
9014
|
this.afterSyncCharCounter = () => {
|
|
8545
9015
|
if (typeof this.component._value === 'string' && this.component._value.length > 0) {
|
|
8546
9016
|
this.component.state._currentLength = this.component._value.length;
|
|
9017
|
+
this.component.state._currentLengthDebounced = this.component._value.length;
|
|
8547
9018
|
}
|
|
8548
9019
|
};
|
|
9020
|
+
this.updateCurrentLengthDebounced = debounce((length) => {
|
|
9021
|
+
setState(this.component, '_currentLengthDebounced', length);
|
|
9022
|
+
}, 500);
|
|
8549
9023
|
this.component = component;
|
|
8550
9024
|
}
|
|
8551
9025
|
validateAutoComplete(value) {
|
|
@@ -8668,10 +9142,10 @@ class KolInputEmail {
|
|
|
8668
9142
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
8669
9143
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
8670
9144
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
8671
|
-
return (hAsync(Host, { key: '
|
|
9145
|
+
return (hAsync(Host, { key: '6c57a606b7ba37bb861b6fae65b328859d1a968b', class: {
|
|
8672
9146
|
'kol-input-email': true,
|
|
8673
9147
|
'has-value': this.state._hasValue,
|
|
8674
|
-
} }, hAsync(KolInputTag, { key: '
|
|
9148
|
+
} }, hAsync(KolInputTag, { key: '31bbb733888e56936c23eb578200731616fc0973', class: { email: true, 'hide-label': !!this.state._hideLabel }, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _currentLengthDebounced: this.state._currentLengthDebounced, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'c7c4225185caaa7294da2381cbf7f46207592016', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'a907065779945e16431309c4cc32d34bdb18934a', slot: "input" }, hAsync("input", Object.assign({ key: '790659497ef8a240a8184e65c6118330d29a2c24', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, multiple: this.state._multiple, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, type: "email", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onInput: this.onInput, onFocus: (event) => {
|
|
8675
9149
|
this.controller.onFacade.onFocus(event);
|
|
8676
9150
|
this.inputHasFocus = true;
|
|
8677
9151
|
}, onBlur: (event) => {
|
|
@@ -8694,6 +9168,7 @@ class KolInputEmail {
|
|
|
8694
9168
|
};
|
|
8695
9169
|
this.onInput = (event) => {
|
|
8696
9170
|
setState(this, '_currentLength', event.target.value.length);
|
|
9171
|
+
this.controller.updateCurrentLengthDebounced(event.target.value.length);
|
|
8697
9172
|
this.controller.onFacade.onInput(event);
|
|
8698
9173
|
};
|
|
8699
9174
|
this._accessKey = undefined;
|
|
@@ -8728,6 +9203,7 @@ class KolInputEmail {
|
|
|
8728
9203
|
this.state = {
|
|
8729
9204
|
_autoComplete: 'off',
|
|
8730
9205
|
_currentLength: 0,
|
|
9206
|
+
_currentLengthDebounced: 0,
|
|
8731
9207
|
_hasValue: false,
|
|
8732
9208
|
_hideError: false,
|
|
8733
9209
|
_id: `id-${nonce()}`,
|
|
@@ -9518,13 +9994,13 @@ class KolInputPassword {
|
|
|
9518
9994
|
render() {
|
|
9519
9995
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
9520
9996
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9521
|
-
return (hAsync(Host, { key: '
|
|
9997
|
+
return (hAsync(Host, { key: 'd53cee1707ec75ae565309eab98ce749fc94f95d', class: {
|
|
9522
9998
|
'kol-input-password': true,
|
|
9523
9999
|
'has-value': this.state._hasValue,
|
|
9524
|
-
} }, hAsync(KolInputTag, { key: '
|
|
10000
|
+
} }, hAsync(KolInputTag, { key: '7b5d974cdc73afe036cbe424c27a866e07ce1400', class: {
|
|
9525
10001
|
'hide-label': !!this.state._hideLabel,
|
|
9526
10002
|
password: true,
|
|
9527
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _msg: this.state._msg, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '
|
|
10003
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _currentLengthDebounced: this.state._currentLengthDebounced, _disabled: this.state._disabled, _msg: this.state._msg, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'e9aa043946a8ad3068b8f600a30900cc287f9bd6', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '89bf6715146d2ff426547ec26fd8496d7086fe28', slot: "input" }, hAsync("input", Object.assign({ key: '0f6f2bb633a21e1da59af31374040dc3c67c6aa6', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, type: this._passwordVisible ? 'text' : 'password', value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onInput: this.onInput, onFocus: (event) => {
|
|
9528
10004
|
this.controller.onFacade.onFocus(event);
|
|
9529
10005
|
this.inputHasFocus = true;
|
|
9530
10006
|
}, onBlur: (event) => {
|
|
@@ -9551,6 +10027,7 @@ class KolInputPassword {
|
|
|
9551
10027
|
};
|
|
9552
10028
|
this.onInput = (event) => {
|
|
9553
10029
|
setState(this, '_currentLength', event.target.value.length);
|
|
10030
|
+
this.controller.updateCurrentLengthDebounced(event.target.value.length);
|
|
9554
10031
|
this.controller.onFacade.onInput(event);
|
|
9555
10032
|
};
|
|
9556
10033
|
this._accessKey = undefined;
|
|
@@ -9584,6 +10061,7 @@ class KolInputPassword {
|
|
|
9584
10061
|
this.state = {
|
|
9585
10062
|
_autoComplete: 'off',
|
|
9586
10063
|
_currentLength: 0,
|
|
10064
|
+
_currentLengthDebounced: 0,
|
|
9587
10065
|
_hasValue: false,
|
|
9588
10066
|
_hideError: false,
|
|
9589
10067
|
_id: `id-${nonce()}`,
|
|
@@ -10356,13 +10834,13 @@ class KolInputText {
|
|
|
10356
10834
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
10357
10835
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
10358
10836
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
10359
|
-
return (hAsync(Host, { key: '
|
|
10837
|
+
return (hAsync(Host, { key: 'b17b30056c0636149b29724ac95b958684f9637e', class: {
|
|
10360
10838
|
'has-value': this.state._hasValue,
|
|
10361
10839
|
'kol-input-text': true,
|
|
10362
|
-
} }, hAsync(KolInputTag, { key: '
|
|
10840
|
+
} }, hAsync(KolInputTag, { key: '0440727702a29ba67e89d426e6401d2c6836d706', class: {
|
|
10363
10841
|
[this.state._type]: true,
|
|
10364
10842
|
'hide-label': !!this.state._hideLabel,
|
|
10365
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _msg: this.state._msg, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _suggestions: this.state._suggestions, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '
|
|
10843
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _currentLengthDebounced: this.state._currentLengthDebounced, _disabled: this.state._disabled, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _msg: this.state._msg, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _suggestions: this.state._suggestions, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'a6ea0437c1769c35e4ce410b2f14b3ad86967fdb', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'cca6b100296d52d0be1cef69a0eb0b7bb4743c56', slot: "input" }, hAsync("input", Object.assign({ key: '2187a5c6d8ae47524f2541153c6fd793bb888224', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, spellcheck: this.state._spellCheck, type: this.state._type, value: this.state._value }, this.controller.onFacade, { onChange: this.onChange, onInput: this.onInput, onKeyDown: this.onKeyDown, onFocus: (event) => {
|
|
10366
10844
|
this.controller.onFacade.onFocus(event);
|
|
10367
10845
|
this.inputHasFocus = true;
|
|
10368
10846
|
}, onBlur: (event) => {
|
|
@@ -10384,6 +10862,7 @@ class KolInputText {
|
|
|
10384
10862
|
};
|
|
10385
10863
|
this.onInput = (event) => {
|
|
10386
10864
|
setState(this, '_currentLength', event.target.value.length);
|
|
10865
|
+
this.controller.updateCurrentLengthDebounced(event.target.value.length);
|
|
10387
10866
|
this.controller.onFacade.onInput(event);
|
|
10388
10867
|
};
|
|
10389
10868
|
this.onKeyDown = (event) => {
|
|
@@ -10427,6 +10906,7 @@ class KolInputText {
|
|
|
10427
10906
|
this.state = {
|
|
10428
10907
|
_autoComplete: 'off',
|
|
10429
10908
|
_currentLength: 0,
|
|
10909
|
+
_currentLengthDebounced: 0,
|
|
10430
10910
|
_hasValue: false,
|
|
10431
10911
|
_hideError: false,
|
|
10432
10912
|
_id: `id-${nonce()}`,
|
|
@@ -10630,6 +11110,7 @@ class KolInputWc {
|
|
|
10630
11110
|
this._accessKey = undefined;
|
|
10631
11111
|
this._alert = true;
|
|
10632
11112
|
this._currentLength = undefined;
|
|
11113
|
+
this._currentLengthDebounced = undefined;
|
|
10633
11114
|
this._disabled = false;
|
|
10634
11115
|
this._hasCounter = false;
|
|
10635
11116
|
this._hideError = false;
|
|
@@ -10674,7 +11155,7 @@ class KolInputWc {
|
|
|
10674
11155
|
input: true,
|
|
10675
11156
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
10676
11157
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
10677
|
-
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: 'e7f0db71fab21ae736a66dc02f0c78357e18bf91', _label: "", _icons: ((_h = this._icons) === null || _h === void 0 ? void 0 : _h.left).icon, style: this.getIconStyles((_j = this._icons) === null || _j === void 0 ? void 0 : _j.left) })), hAsync("div", { key: '9669a185c1451fc77642c5e062a4c153e70abaca', ref: this.catchInputSlot, id: this.slotName, class: "input-slot" }), typeof this._smartButton === 'object' && this._smartButton !== null && (hAsync(KolButtonWcTag, { key: 'a3d9e730f5e6b026990e697d02d8cf945af5c11c', _customClass: this._smartButton._customClass, _disabled: this._smartButton._disabled, _icons: this._smartButton._icons, _hideLabel: true, _id: this._smartButton._id, _label: this._smartButton._label, _on: this._smartButton._on, _tooltipAlign: this._smartButton._tooltipAlign, _variant: this._smartButton._variant })), ((_k = this._icons) === null || _k === void 0 ? void 0 : _k.right) && (hAsync(KolIconTag, { key: 'f6e6042d20148fb236129588c14cbca5b19dd873', _label: "", _icons: ((_l = this._icons) === null || _l === void 0 ? void 0 : _l.right).icon, style: this.getIconStyles((_m = this._icons) === null || _m === void 0 ? void 0 : _m.right) }))), useTooltopInsteadOfLabel && (hAsync(KolTooltipWcTag, { key: 'e08bdf1c1ea0f363e3f3824809ee30d75a7868cc', "aria-hidden": "true", class: "input-tooltip", _badgeText: this._accessKey || this._shortKey, _align: this._tooltipAlign, _id: this._hideLabel ? `${this._id}-label` : undefined, _label: this._label })), showMsg && hAsync(FormFieldMsgFc, { key: '4d82ed833659163c1315cd84d644f4022d2fb0ad', _alert: this._alert, _hideError: this._hideError, _msg: this._msg, _id: this._id }), Array.isArray(this._suggestions) && this._suggestions.length > 0 && (hAsync("datalist", { key: 'bf391ca45c04582bc9e1d1083a3b0777c5ef433c', id: `${this._id}-list` }, this._suggestions.map((option) => (hAsync("option", { value: option }))))), this._hasCounter && (hAsync("span", { key: '
|
|
11158
|
+
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: 'e7f0db71fab21ae736a66dc02f0c78357e18bf91', _label: "", _icons: ((_h = this._icons) === null || _h === void 0 ? void 0 : _h.left).icon, style: this.getIconStyles((_j = this._icons) === null || _j === void 0 ? void 0 : _j.left) })), hAsync("div", { key: '9669a185c1451fc77642c5e062a4c153e70abaca', ref: this.catchInputSlot, id: this.slotName, class: "input-slot" }), typeof this._smartButton === 'object' && this._smartButton !== null && (hAsync(KolButtonWcTag, { key: 'a3d9e730f5e6b026990e697d02d8cf945af5c11c', _customClass: this._smartButton._customClass, _disabled: this._smartButton._disabled, _icons: this._smartButton._icons, _hideLabel: true, _id: this._smartButton._id, _label: this._smartButton._label, _on: this._smartButton._on, _tooltipAlign: this._smartButton._tooltipAlign, _variant: this._smartButton._variant })), ((_k = this._icons) === null || _k === void 0 ? void 0 : _k.right) && (hAsync(KolIconTag, { key: 'f6e6042d20148fb236129588c14cbca5b19dd873', _label: "", _icons: ((_l = this._icons) === null || _l === void 0 ? void 0 : _l.right).icon, style: this.getIconStyles((_m = this._icons) === null || _m === void 0 ? void 0 : _m.right) }))), useTooltopInsteadOfLabel && (hAsync(KolTooltipWcTag, { key: 'e08bdf1c1ea0f363e3f3824809ee30d75a7868cc', "aria-hidden": "true", class: "input-tooltip", _badgeText: this._accessKey || this._shortKey, _align: this._tooltipAlign, _id: this._hideLabel ? `${this._id}-label` : undefined, _label: this._label })), showMsg && hAsync(FormFieldMsgFc, { key: '4d82ed833659163c1315cd84d644f4022d2fb0ad', _alert: this._alert, _hideError: this._hideError, _msg: this._msg, _id: this._id }), Array.isArray(this._suggestions) && this._suggestions.length > 0 && (hAsync("datalist", { key: 'bf391ca45c04582bc9e1d1083a3b0777c5ef433c', id: `${this._id}-list` }, this._suggestions.map((option) => (hAsync("option", { value: option }))))), this._hasCounter && (hAsync(Fragment, null, hAsync("span", { key: '6ca742ce2019bfa752590249a3c369418a561de4', class: "counter", "aria-hidden": "true", "data-testid": "input-counter" }, this._currentLength, this._maxLength && `/${this._maxLength}`, " ", translate('kol-characters')), hAsync("span", { key: 'b26bbe2c1389911e90c709a270a83258f979acbf', "aria-live": "polite", "aria-atomic": "true", class: "visually-hidden", "data-testid": "input-counter-aria" }, this._currentLengthDebounced, this._maxLength && ` ${translate('kol-of')} ${this._maxLength}`, " ", translate('kol-characters'))))));
|
|
10678
11159
|
}
|
|
10679
11160
|
getModifierClassNameByMsgType(showMsg) {
|
|
10680
11161
|
var _a, _b;
|
|
@@ -10696,6 +11177,7 @@ class KolInputWc {
|
|
|
10696
11177
|
"_accessKey": [1, "_access-key"],
|
|
10697
11178
|
"_alert": [4],
|
|
10698
11179
|
"_currentLength": [2, "_current-length"],
|
|
11180
|
+
"_currentLengthDebounced": [2, "_current-length-debounced"],
|
|
10699
11181
|
"_disabled": [4],
|
|
10700
11182
|
"_hasCounter": [4, "_has-counter"],
|
|
10701
11183
|
"_hideError": [4, "_hide-error"],
|
|
@@ -10754,7 +11236,7 @@ class KolKolibri {
|
|
|
10754
11236
|
}
|
|
10755
11237
|
render() {
|
|
10756
11238
|
const fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;
|
|
10757
|
-
return (hAsync(Host, { key: '
|
|
11239
|
+
return (hAsync(Host, { key: 'f1f56e7011ff6ae4db1c8ad52a3343c9531b7cd6', class: "kol-kolibri" }, hAsync("svg", { key: '180fad6a6044a602eb0aac1cba1b3645fea614e5', role: "img", "aria-label": translate('kol-kolibri-logo'), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 600 600", fill: fillColor }, hAsync("path", { key: 'ab5b4f2f2f818b2dede111c3cfba335c13a24bd5', d: "M353 322L213 304V434L353 322Z" }), hAsync("path", { key: '71b9f18444c07790a82c05f5aa0def051c5ea4c6', d: "M209 564V304L149 434L209 564Z" }), hAsync("path", { key: '8f4d8749d0686252c46141fd09e77149d7789f55', d: "M357 316L417 250L361 210L275 244L357 316Z" }), hAsync("path", { key: 'f23d3bc36245dadf71238f0ae7a3979950c30759', d: "M329 218L237 92L250 222L272 241L329 218Z" }), hAsync("path", { key: '4d1e985c40a089f8321445cbcb0fe5b56112cb2f', d: "M353 318L35 36L213 300L353 318Z" }), hAsync("path", { key: '23f639be684138f56f5cf193f03e6bb29a5a2b9f', d: "M391 286L565 272L421 252L391 286Z" }), this.state._labeled === true && (hAsync("text", { key: '41b52159554e1254e76024d40aa489bb3ed0a844', x: "250", y: "525", fill: fillColor }, "KoliBri")))));
|
|
10758
11240
|
}
|
|
10759
11241
|
validateColor(value) {
|
|
10760
11242
|
validateColor(this, value, {
|
|
@@ -10827,7 +11309,7 @@ class KolLink {
|
|
|
10827
11309
|
await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
10828
11310
|
}
|
|
10829
11311
|
render() {
|
|
10830
|
-
return (hAsync(Host, { key: '
|
|
11312
|
+
return (hAsync(Host, { key: '140a0fe730de5d61f443eec6192789817f2bdb9c', class: "kol-link" }, hAsync(KolLinkWcTag, { key: 'b595a76bf792422f310fa75184b02df17f2cd141', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaDescription: this._ariaDescription, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _role: this._role, _shortKey: this._shortKey, _tabIndex: this._tabIndex, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: '6d15e069807d719d577d60f7c44d3e0beaecb81b', name: "expert", slot: "expert" }))));
|
|
10831
11313
|
}
|
|
10832
11314
|
static get delegatesFocus() { return true; }
|
|
10833
11315
|
static get style() { return {
|
|
@@ -10896,9 +11378,9 @@ class KolLinkButton {
|
|
|
10896
11378
|
await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
10897
11379
|
}
|
|
10898
11380
|
render() {
|
|
10899
|
-
return (hAsync(Host, { key: '
|
|
11381
|
+
return (hAsync(Host, { key: '2060e9972d3e35203f8f2a64db28edfd5934886f', class: "kol-link-button" }, hAsync(KolLinkWcTag, { key: 'c773d23014fcd4f364e419f24f06e307d25324d4', ref: this.catchRef, class: {
|
|
10900
11382
|
button: true,
|
|
10901
|
-
}, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _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, _role: "button", _shortKey: this._shortKey, _tabIndex: this._tabIndex, _target: this._target, _tooltipAlign: this._tooltipAlign, _variant: this._variant }, hAsync("slot", { key: '
|
|
11383
|
+
}, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _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, _role: "button", _shortKey: this._shortKey, _tabIndex: this._tabIndex, _target: this._target, _tooltipAlign: this._tooltipAlign, _variant: this._variant }, hAsync("slot", { key: 'e2b8a2c96c15a39a737b1df04689833884ee0ee8', name: "expert", slot: "expert" }))));
|
|
10902
11384
|
}
|
|
10903
11385
|
static get delegatesFocus() { return true; }
|
|
10904
11386
|
static get style() { return {
|
|
@@ -10965,10 +11447,10 @@ class KolLinkGroup {
|
|
|
10965
11447
|
}
|
|
10966
11448
|
render() {
|
|
10967
11449
|
const ListTag = this.isUl ? 'ul' : 'ol';
|
|
10968
|
-
return (hAsync(Host, { key: '
|
|
11450
|
+
return (hAsync(Host, { key: 'f022377c671dd28a32301b5b70a6f99e5e695a95', class: "kol-link-group" }, hAsync(ListTag, { key: 'daee992a78bd6bf425c211fdde871de3a487f994', "aria-label": this.state._label, class: {
|
|
10969
11451
|
vertical: this.state._orientation === 'vertical',
|
|
10970
11452
|
horizontal: this.state._orientation === 'horizontal',
|
|
10971
|
-
} }, hAsync(ListItem, { key: '
|
|
11453
|
+
} }, hAsync(ListItem, { key: 'd1b2ef6b3af0b8d7c96f006cf0020ba82b97ae37', links: this.state._links, orientation: this.state._orientation, listStyleType: this.state._listStyleType }))));
|
|
10972
11454
|
}
|
|
10973
11455
|
validateLabel(value, _oldValue, initial = false) {
|
|
10974
11456
|
if (!initial && this.state._label) {
|
|
@@ -11119,7 +11601,7 @@ class KolLinkWc {
|
|
|
11119
11601
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
11120
11602
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
11121
11603
|
const hasAriaDescription = Boolean((_b = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim()) === null || _b === void 0 ? void 0 : _b.length);
|
|
11122
|
-
return (hAsync(Host, { key: '
|
|
11604
|
+
return (hAsync(Host, { key: '93e81c49ed733028ed9187679814d22d7d955bdc', class: "kol-link-wc" }, hAsync("a", Object.assign({ key: '9ae167f7dc634a1e09182b35bda6c4cefbd91350', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-describedby": hasAriaDescription ? this.internalDescriptionById : 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'
|
|
11123
11605
|
? `${this.state._label}${isExternal ? ` (${translate('kol-open-link-in-tab')})` : ''}`
|
|
11124
11606
|
: undefined, class: {
|
|
11125
11607
|
disabled: this.state._disabled === true,
|
|
@@ -11127,7 +11609,7 @@ class KolLinkWc {
|
|
|
11127
11609
|
'hide-label': this.state._hideLabel === true,
|
|
11128
11610
|
[this.state._variant]: this.state._variant !== 'custom',
|
|
11129
11611
|
[this.state._customClass]: this.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
11130
|
-
} }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanWcTag, { key: '
|
|
11612
|
+
} }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanWcTag, { key: '84ce5c2d3aed1ef85c6e3214a81e292d4f34f3d2', _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: 'e6085382173ef3cc4e3c0ac785327036e1673a45', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: '7cb094c767fad5e4e9d47acbc559e2bec4104ebf', class: "external-link-icon", _label: this.state._hideLabel ? '' : translate('kol-open-link-in-tab'), _icons: 'codicon codicon-link-external', "aria-hidden": this.state._hideLabel }))), hAsync(KolTooltipWcTag, { key: '1bc8bf9b6fad3051f71cfb7e42a259f007e3fc65', "aria-hidden": "true", hidden: hasExpertSlot || !this.state._hideLabel, _badgeText: this.state._accessKey || this.state._shortKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href }), hasAriaDescription && (hAsync("span", { key: '347cb67dd0512baeddf94d8b542809cbbb38ed12', class: "visually-hidden", id: this.internalDescriptionById }, this.state._ariaDescription))));
|
|
11131
11613
|
}
|
|
11132
11614
|
validateAccessKey(value) {
|
|
11133
11615
|
validateAccessKey(this, value);
|
|
@@ -11480,7 +11962,7 @@ class KolLogo {
|
|
|
11480
11962
|
}
|
|
11481
11963
|
render() {
|
|
11482
11964
|
var _a;
|
|
11483
|
-
return (hAsync(Host, { key: '
|
|
11965
|
+
return (hAsync(Host, { key: '701f1123b81445ce2af6d02bf219764194e1e2a7', class: "kol-logo" }, hAsync("svg", { key: '3d4797d01fc963abadb8a5d332a737a79b2ea867', "aria-label": translate('kol-logo-description', { placeholders: { orgShort: this.state._org, orgLong: getAriaLabel(this.state._org) } }), role: "img", viewBox: "0 0 225 100" }, hAsync("rect", { key: 'cfcccfc45402855a450e698bae2302c48281c286', width: "100%", height: "100%", fill: "white" }), hAsync("svg", { key: 'c2c5d6ff786f393eefa59298a6cf97e0c010bf47', x: "0", y: "4", height: "75" }, hAsync(Adler, { key: 'cd5db6b3158a8a5360491f509a5e139ca8f5e90a' })), hAsync("svg", { key: '185d01bb49ae03f4d9d6f2b2dbae5f833269faa0', x: "40.5", y: "3.5", height: "100" }, hAsync("rect", { key: 'aad04cf215f0e2049f4874bb411cc2929c761a5a', width: "5", height: "30" }), hAsync("rect", { key: '786b939ae9c7f36825c34c500dad51660a43e458', y: "30", width: "5", height: "30", fill: "red" }), hAsync("rect", { key: '61cff4501b965aa83a819a6b351af0ddfad23915', y: "60", width: "5", height: "30", fill: "#fc0" })), hAsync("svg", { key: '4018effbe3e5c0958bcaf09fea18dafb309ea7e0', x: "50", y: "0" }, hAsync("text", { key: 'b7eaeea560a0a0531caa6b0c6740686f711e2863', x: "0", y: "-0.05em", "font-family": "Verdana", style: { backgroundColor: 'white', color: 'black' } }, BUND_LOGO_TEXT_MAP.has(this.state._org) ? (hAsync("tspan", null, (_a = BUND_LOGO_TEXT_MAP.get(this.state._org)) === null || _a === void 0 ? void 0 : _a.map((text, index) => {
|
|
11484
11966
|
return (hAsync("tspan", { x: "0", dy: "1.1em", key: `kol-logo-text-${index}` }, text));
|
|
11485
11967
|
}))) : (hAsync("tspan", { fill: "red" }, hAsync("tspan", { x: "0", dy: "1.1em" }, "Der Schl\u00FCsselwert"), hAsync("tspan", { x: "0", dy: "1.1em", "font-weight": "bold" }, "'", this.state._org, "'"), hAsync("tspan", { x: "0", dy: "1.1em" }, "ist nicht definiert."), hAsync("tspan", { x: "0", dy: "1.1em" }, "oder freigegeben."))))))));
|
|
11486
11968
|
}
|
|
@@ -11542,11 +12024,11 @@ class KolModal {
|
|
|
11542
12024
|
(_b = (_a = this.refDialog) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
11543
12025
|
}
|
|
11544
12026
|
render() {
|
|
11545
|
-
return (hAsync("dialog", { key: '
|
|
12027
|
+
return (hAsync("dialog", { key: '894ddd0ad3ca225cc54cbbe10bc4c70b1170aaac', class: "kol-modal", ref: (el) => {
|
|
11546
12028
|
this.refDialog = el;
|
|
11547
12029
|
}, style: {
|
|
11548
12030
|
width: this.state._width,
|
|
11549
|
-
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: '
|
|
12031
|
+
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: 'bd71fa9c01bd98b6fc0ab783554d50e3f5d5d05b' }, hAsync("slot", { key: 'aa88fbc590eb357d4d760741515fefe01aa656b6' }))));
|
|
11550
12032
|
}
|
|
11551
12033
|
validateActiveElement(value) {
|
|
11552
12034
|
watchValidator(this, '_activeElement', (value) => typeof value === 'object' || value === null, new Set(['HTMLElement', 'null']), value, {
|
|
@@ -11696,6 +12178,7 @@ class KolNav {
|
|
|
11696
12178
|
}, key: index }, this.entry(collapsible, hideLabel, hasChildren, link, expanded), expanded && hAsync(this.linkList, { collapsible: collapsible, hideLabel: hideLabel, deep: deep + 1, links: link._children || [], orientation: orientation })));
|
|
11697
12179
|
}
|
|
11698
12180
|
initializeExpandedChildren() {
|
|
12181
|
+
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
11699
12182
|
const handleBranch = (branch) => {
|
|
11700
12183
|
if (branch._active) {
|
|
11701
12184
|
if (branch._children) {
|
|
@@ -11724,11 +12207,11 @@ class KolNav {
|
|
|
11724
12207
|
const collapsible = this.state._collapsible === true;
|
|
11725
12208
|
const hideLabel = this.state._hideLabel === true;
|
|
11726
12209
|
const orientation = this.state._orientation;
|
|
11727
|
-
return (hAsync(Host, { key: '
|
|
12210
|
+
return (hAsync(Host, { key: 'bcd3d3425423a241def22c80072236a0ca1af502', class: "kol-nav" }, hAsync("div", { key: '4847c97f6b9d13332a0e3823a4c2e65ee92b2f67', class: {
|
|
11728
12211
|
nav: true,
|
|
11729
12212
|
[orientation]: true,
|
|
11730
12213
|
'is-compact': this.state._hideLabel,
|
|
11731
|
-
} }, hAsync("nav", { key: '
|
|
12214
|
+
} }, hAsync("nav", { key: '62a1e0c73ae617723ffa47078f0970e1779e9376', "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { key: '1e7d0b1c1ba67dd33d8587997dc410e1f2afadec', collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })), hasCompactButton && (hAsync("div", { key: 'df53af8d571541c905ae1fff63dceaf56aba5c96', class: "compact" }, hAsync(KolButtonWcTag, { key: 'c9de4df6c78c2ba07eea38b6137573144ca883a1', class: "toggle-button", _ariaControls: "nav", _ariaExpanded: !hideLabel, _icons: hideLabel ? 'codicon codicon-chevron-right' : 'codicon codicon-chevron-left', _hideLabel: true, _label: translate(hideLabel ? 'kol-nav-maximize' : 'kol-nav-minimize'), _on: {
|
|
11732
12215
|
onClick: () => {
|
|
11733
12216
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
11734
12217
|
},
|
|
@@ -11759,6 +12242,7 @@ class KolNav {
|
|
|
11759
12242
|
validateLinks(value) {
|
|
11760
12243
|
watchNavLinks('KolNav', this, value);
|
|
11761
12244
|
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
12245
|
+
this.initializeExpandedChildren();
|
|
11762
12246
|
}
|
|
11763
12247
|
validateOrientation(value) {
|
|
11764
12248
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -11995,14 +12479,16 @@ class KolPagination {
|
|
|
11995
12479
|
}, _value: [this.state._pageSize] }))));
|
|
11996
12480
|
}
|
|
11997
12481
|
getUnselectedPageButton(page) {
|
|
11998
|
-
|
|
12482
|
+
const pageText = NUMBER_FORMATTER.format(page);
|
|
12483
|
+
return (hAsync("li", { key: nonce() }, hAsync(KolButtonWcTag, { _ariaDescription: `${translate('kol-page')} ${pageText}`, _customClass: this.state._customClass, _label: pageText, _on: {
|
|
11999
12484
|
onClick: (event) => {
|
|
12000
12485
|
this.onClick(event, page);
|
|
12001
12486
|
},
|
|
12002
|
-
} }
|
|
12487
|
+
} })));
|
|
12003
12488
|
}
|
|
12004
12489
|
getSelectedPageButton(page) {
|
|
12005
|
-
|
|
12490
|
+
const pageText = NUMBER_FORMATTER.format(page);
|
|
12491
|
+
return (hAsync("li", { key: nonce() }, hAsync(KolButtonWcTag, { "aria-current": "page", class: "selected", _ariaDescription: `${translate('kol-page')} ${pageText}`, _customClass: this.state._customClass, _disabled: true, _label: pageText })));
|
|
12006
12492
|
}
|
|
12007
12493
|
validateBoundaryCount(value) {
|
|
12008
12494
|
watchNumber(this, '_boundaryCount', Math.max(0, value !== null && value !== void 0 ? value : 1));
|
|
@@ -14342,7 +14828,7 @@ class KolPopover {
|
|
|
14342
14828
|
});
|
|
14343
14829
|
}
|
|
14344
14830
|
render() {
|
|
14345
|
-
return (hAsync(Host, { key: '
|
|
14831
|
+
return (hAsync(Host, { key: '302be9c67fc8e124f88c5c414064c5799b6b642e', ref: this.catchHostAndTriggerElement, class: "kol-popover" }, hAsync("div", { key: '37f22c12ea19e242f18b7c624f48bf34fd1d3ee2', class: { popover: true, show: this.state._visible }, ref: this.catchPopoverElement, hidden: !this.state._show }, hAsync("div", { key: 'cf4249d4d09c113553a824395508f973b5826b9a', class: `arrow ${this.state._align}`, ref: this.catchArrowElement }), hAsync("slot", { key: '9adfa8cec79eb49976240674643e4470e4b2b37f' }))));
|
|
14346
14832
|
}
|
|
14347
14833
|
validateAlign(value) {
|
|
14348
14834
|
validateAlign(this, value);
|
|
@@ -14465,11 +14951,11 @@ class KolPopoverButton {
|
|
|
14465
14951
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
14466
14952
|
}
|
|
14467
14953
|
render() {
|
|
14468
|
-
return (hAsync("div", { key: '
|
|
14954
|
+
return (hAsync("div", { key: 'c8d363ad3ece07f32124b3972e52ed0cb411f134', class: "kol-popover-button" }, hAsync(KolButtonWcTag, { key: '30ae967556a043fc93a20d03661178caed87c8f3', _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, _label: this._label, _name: this._name, _on: Object.assign(Object.assign({}, this._on), { onClick: (event, value) => {
|
|
14469
14955
|
var _a, _b;
|
|
14470
14956
|
this.handleButtonClick();
|
|
14471
14957
|
(_b = (_a = this._on) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event, value);
|
|
14472
|
-
} }), _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant, "data-testid": "popover-button", class: clsx('kol-popover-button__button'), ref: (element) => (this.refButton = element) }, hAsync("slot", { key: '
|
|
14958
|
+
} }), _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant, "data-testid": "popover-button", class: clsx('kol-popover-button__button'), ref: (element) => (this.refButton = element) }, hAsync("slot", { key: '6523e6e6dc16bb2eb1b49e1006e7be63ee75af9d', name: "expert", slot: "expert" })), hAsync("div", { key: '5415b73f5e25227769a62cf48cc655855efcc14f', ref: (element) => (this.refPopover = element), "data-testid": "popover-content", popover: "auto", id: "popover", class: "kol-popover-button__popover" }, hAsync("slot", { key: '1e0d6428d87a8e1b0dd46f2bee613f8ece1f6534' }))));
|
|
14473
14959
|
}
|
|
14474
14960
|
validatePopoverAlign(value) {
|
|
14475
14961
|
validatePopoverAlign(this, value);
|
|
@@ -14560,10 +15046,10 @@ class KolProgress {
|
|
|
14560
15046
|
const isPercentage = this.state._unit === '%';
|
|
14561
15047
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}%` : this.state._liveValue;
|
|
14562
15048
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
14563
|
-
return (hAsync(Host, { key: '
|
|
15049
|
+
return (hAsync(Host, { key: 'acccccbfd2ceb0afc154e059df308e31b4ed506e', class: "kol-progress" }, hAsync("div", { key: 'df5526c148f6da0bab6a6f9b4b5b70eeabdb821e', "aria-hidden": "true", class: {
|
|
14564
15050
|
cycle: this.state._variant === 'cycle',
|
|
14565
15051
|
bar: this.state._variant === 'bar',
|
|
14566
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
15052
|
+
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: 'afa3d67874533d734fa520385f85e513ede2781b', class: "label" }, this.state._label), createProgressSVG(this.state), this.state._variant === 'cycle' && (hAsync("div", { key: '166fe80b6f643881dde073ba85d0e35e797e54d3', class: "text" }, this.state._label && hAsync("div", { key: 'bf8d102124835d9a5379623ab2f4ed950871f941', class: "label" }, this.state._label), hAsync("div", { key: '8f9df4a04f460f6f2d548c4ca421da6f5c0f26c5', class: "value" }, `${displayValue} ${this.state._unit}`))), this.state._variant === 'bar' && (hAsync("div", { key: '11b9eb51798c751cedc8e316711037ff3df95740', class: "value", style: { width: `${`${(isPercentage ? 100 : this.state._max) + 1}`.length}ch` } }, displayValue)), this.state._variant === 'bar' && hAsync("div", { key: '33fbc9bd2fe885381fe3b609f595a0ae1c61b08c', class: "unit" }, this.state._unit)), hAsync("progress", { key: '106caebed2251566f5fd7fc843442234c6666be6', "aria-busy": this.state._value < this.state._max ? 'true' : 'false', class: "visually-hidden", max: this.state._max, value: this.state._value }), hAsync("span", { key: '21dae4bd2d07926b9a952b23e7a2cfa58977690f', "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, isPercentage ? `${liveProgressValue} %` : `${liveProgressValue} von ${this.state._max} ${this.state._unit}`)));
|
|
14567
15053
|
}
|
|
14568
15054
|
validateLabel(value) {
|
|
14569
15055
|
validateLabel(this, value);
|
|
@@ -14672,9 +15158,9 @@ class KolQuote {
|
|
|
14672
15158
|
}
|
|
14673
15159
|
render() {
|
|
14674
15160
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
14675
|
-
return (hAsync(Host, { key: '
|
|
15161
|
+
return (hAsync(Host, { key: '8f2cbdcdf70ca047200e7db9534c84e127c39a93', class: "kol-quote" }, hAsync("figure", { key: '7e1caffee8775084765a592ac547ab3efd7d04fe', class: {
|
|
14676
15162
|
[this.state._variant]: true,
|
|
14677
|
-
} }, this.state._variant === 'block' ? (hAsync("blockquote", { cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))) : (hAsync("q", { cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))), typeof this.state._label === 'string' && this.state._label.length > 0 && (hAsync("figcaption", { key: '
|
|
15163
|
+
} }, this.state._variant === 'block' ? (hAsync("blockquote", { cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))) : (hAsync("q", { cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))), typeof this.state._label === 'string' && this.state._label.length > 0 && (hAsync("figcaption", { key: '8f7a70d0dcc187573756568706074b87b3889e0e' }, hAsync("cite", { key: 'ff89fe32a45e65c130bb69fe85be49609356ae39' }, hAsync(KolLinkTag, { key: 'd228fa76b62b65771be55f062539fb867267b702', _href: this.state._href, _label: this.state._label, _target: "_blank" })))))));
|
|
14678
15164
|
}
|
|
14679
15165
|
static get watchers() { return {
|
|
14680
15166
|
"_label": ["validateLabel"],
|
|
@@ -14812,16 +15298,16 @@ class KolSelect {
|
|
|
14812
15298
|
render() {
|
|
14813
15299
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
14814
15300
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
14815
|
-
return (hAsync(Host, { key: '
|
|
15301
|
+
return (hAsync(Host, { key: '138f37117db51c51d5ce73df3bf2274357f67238', class: { 'kol-select': true, 'has-value': this.state._hasValue } }, hAsync(KolInputTag, { key: 'efe6a56a163014598d4d9239bf4e9b7747fd0601', class: {
|
|
14816
15302
|
'hide-label': !!this.state._hideLabel,
|
|
14817
15303
|
select: true,
|
|
14818
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '
|
|
15304
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'e442a86559ffd63774505a04348573c3760b7cb5', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '1fce5a88d76f88c3031f4d9386a5b67254766f3d', slot: "input" }, hAsync("form", { key: '3cf145d6cab02bc76962dd8405ac0e3cabf1d2e0', onSubmit: (event) => {
|
|
14819
15305
|
event.preventDefault();
|
|
14820
15306
|
propagateSubmitEventToForm({
|
|
14821
15307
|
form: this.host,
|
|
14822
15308
|
ref: this.selectRef,
|
|
14823
15309
|
});
|
|
14824
|
-
} }, hAsync("input", { key: '
|
|
15310
|
+
} }, hAsync("input", { key: 'eef3a716b2cd40380281baa02719048d7dbe9402', type: "submit", hidden: true }), hAsync("select", Object.assign({ key: 'ad5753d53c6168ab1233a3476b2c7bb0de38ee0b', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, multiple: this.state._multiple, name: this.state._name, required: this.state._required, size: this.state._rows }, this.controller.onFacade, { onInput: this.onInput.bind(this), onChange: this.onChange.bind(this), onFocus: (event) => {
|
|
14825
15311
|
this.controller.onFacade.onFocus(event);
|
|
14826
15312
|
this.inputHasFocus = true;
|
|
14827
15313
|
}, onBlur: (event) => {
|
|
@@ -15101,9 +15587,13 @@ class KolSingleSelect {
|
|
|
15101
15587
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15102
15588
|
}
|
|
15103
15589
|
onBlur() {
|
|
15104
|
-
var _a;
|
|
15105
|
-
|
|
15106
|
-
|
|
15590
|
+
var _a, _b, _c;
|
|
15591
|
+
const matchingOption = (_a = this.state._options) === null || _a === void 0 ? void 0 : _a.find((option) => { var _a, _b; return ((_a = option.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = this._inputValue) === null || _b === void 0 ? void 0 : _b.toLowerCase()); });
|
|
15592
|
+
if (matchingOption) {
|
|
15593
|
+
this.selectOption(matchingOption);
|
|
15594
|
+
}
|
|
15595
|
+
else {
|
|
15596
|
+
this._inputValue = (_c = (_b = this.state._options) === null || _b === void 0 ? void 0 : _b.find((option) => option.value === this._value)) === null || _c === void 0 ? void 0 : _c.label;
|
|
15107
15597
|
this._filteredOptions = [...this.state._options];
|
|
15108
15598
|
}
|
|
15109
15599
|
this._isOpen = false;
|
|
@@ -15114,13 +15604,13 @@ class KolSingleSelect {
|
|
|
15114
15604
|
return;
|
|
15115
15605
|
}
|
|
15116
15606
|
else {
|
|
15117
|
-
const emptyValue =
|
|
15607
|
+
const emptyValue = null;
|
|
15118
15608
|
this._focusedOptionIndex = -1;
|
|
15119
15609
|
this._value = emptyValue;
|
|
15120
|
-
this._inputValue =
|
|
15610
|
+
this._inputValue = '';
|
|
15121
15611
|
this._filteredOptions = [...this.state._options];
|
|
15122
|
-
this.controller.onFacade.onInput(new CustomEvent('input', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), true, emptyValue);
|
|
15123
|
-
this.controller.onFacade.onChange(new CustomEvent('change', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), emptyValue);
|
|
15612
|
+
this.controller.onFacade.onInput(new CustomEvent('input', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), true, { value: emptyValue });
|
|
15613
|
+
this.controller.onFacade.onChange(new CustomEvent('change', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), { value: emptyValue });
|
|
15124
15614
|
}
|
|
15125
15615
|
}
|
|
15126
15616
|
selectOption(option) {
|
|
@@ -15188,17 +15678,17 @@ class KolSingleSelect {
|
|
|
15188
15678
|
var _a;
|
|
15189
15679
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
15190
15680
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
15191
|
-
return (hAsync(Host, { key: '
|
|
15681
|
+
return (hAsync(Host, { key: 'cc1f3cfb10d9a89336dd37f635eb9494874206bd', class: "kol-single-select" }, hAsync("div", { key: '760f7abe608a369d289cf7a5728763cd74a9bc91', class: `single-select ${this.state._disabled === true ? 'disabled' : ''} ` }, hAsync(KolInputTag, { key: 'a61e64e8f57ae222c2ea6833ea6bd21c547a64c3', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, role: `presentation` }, hAsync("span", { key: 'ac6c289b2091cea9cadc3ebb588536cb0c721af0', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey || this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'c22e2c4f84de347b5c295dc9e50f0ff9d14e251b', slot: "input" }, hAsync("div", { key: '89906c776e1b7b6b7c05b6b23c6987f28fb44b86', class: "single-select__group" }, hAsync("input", Object.assign({ key: '9cbe8cabf6b89a408292dcf1ed8717db2a4b971e', ref: this.catchRef, class: "single-select__input", "data-testid": "single-select-input", type: "text", "aria-autocomplete": "both", "aria-controls": "listbox", value: this._inputValue, accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-activedescendant": this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", disabled: this.state._disabled, name: this.state._name, required: this.state._required }, this.controller.onFacade, { onInput: this.onInput.bind(this), onChange: this.onChange.bind(this), onClick: this.toggleListbox.bind(this), onFocus: (event) => {
|
|
15192
15682
|
this.controller.onFacade.onFocus(event);
|
|
15193
15683
|
this.inputHasFocus = true;
|
|
15194
15684
|
}, onBlur: (event) => {
|
|
15195
15685
|
this.controller.onFacade.onBlur(event);
|
|
15196
15686
|
this.inputHasFocus = false;
|
|
15197
|
-
}, placeholder: this.state._placeholder })), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: '
|
|
15687
|
+
}, placeholder: this.state._placeholder })), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: 'bb693e6367410321d3039f1e51bd6e330906e713', _icons: "codicon codicon-close", _label: translate('kol-delete-selection'), onClick: () => {
|
|
15198
15688
|
var _a;
|
|
15199
15689
|
this.clearSelection();
|
|
15200
15690
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15201
|
-
}, class: "single-select__delete" })), hAsync("button", { key: '
|
|
15691
|
+
}, class: "single-select__delete" })), hAsync("button", { key: 'baf27c00461f39ce7fa736f1ae67345c54a20387', tabindex: "-1", class: "single-select__button", onClick: this.toggleListbox.bind(this), disabled: this.state._disabled }, hAsync(KolIconTag, { key: '03b9d8c1e091a389736fc5aa1c4dd3d101cbf53f', _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') }))), this._isOpen && !(this.state._disabled === true) && (hAsync("ul", { key: 'd5c7591ecdb8409f7cdcdb6f0ac78d088cc04a9a', role: "listbox", class: clsx('single-select__listbox', this.blockSuggestionMouseOver && 'single-select__listbox--cursor-hidden'), style: { '--visible-options': `${(_a = this._rows) !== null && _a !== void 0 ? _a : 5}` }, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
15202
15692
|
if (el)
|
|
15203
15693
|
this.refOptions[index] = el;
|
|
15204
15694
|
}, tabIndex: -1, role: "option", "aria-selected": this._value === option.value ? 'true' : undefined, onClick: (event) => {
|
|
@@ -15580,7 +16070,7 @@ class KolSkipNav {
|
|
|
15580
16070
|
};
|
|
15581
16071
|
}
|
|
15582
16072
|
render() {
|
|
15583
|
-
return (hAsync(Host, { key: '
|
|
16073
|
+
return (hAsync(Host, { key: '0cf5bfae60f90e65d475324e1c3b12445b0581a3', class: "kol-skip-nav" }, hAsync("nav", { key: 'e055b8aa4dfe75ab84a82d3848a69910e8681b58', "aria-label": this.state._label }, hAsync("ul", { key: 'acdbfbc60b9bbe2f265145dc3a0819d17c44b3c4' }, this.state._links.map((link, index) => {
|
|
15584
16074
|
return (hAsync("li", { key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
15585
16075
|
})))));
|
|
15586
16076
|
}
|
|
@@ -23968,10 +24458,10 @@ class KolSpanWc {
|
|
|
23968
24458
|
render() {
|
|
23969
24459
|
var _a, _b, _c, _d, _e;
|
|
23970
24460
|
const hideExpertSlot = !showExpertSlot(this.state._label);
|
|
23971
|
-
return (hAsync(Host, { key: '
|
|
24461
|
+
return (hAsync(Host, { key: '61c2a5584c2099d943d708443fbc4b6d5dd287f2', class: {
|
|
23972
24462
|
'kol-span-wc': true,
|
|
23973
24463
|
'hide-label': !!this.state._hideLabel,
|
|
23974
|
-
} }, this.state._icons.top && (hAsync(KolIconTag, { key: '
|
|
24464
|
+
} }, this.state._icons.top && (hAsync(KolIconTag, { key: '8dddfc14a28ee32bf4831ce85d34c7da8e0f2516', class: "icon top", style: this.state._icons.top.style, _label: (_a = this.state._icons.top.label) !== null && _a !== void 0 ? _a : '', _icons: this.state._icons.top.icon })), hAsync("span", { key: 'e18f60ad9b46fa2ec694b316d9dd678637cc94ef' }, this.state._icons.left && (hAsync(KolIconTag, { key: '09eac87a482884d79f32ea4d0cb57ad2a5cb7881', class: "icon left", style: this.state._icons.left.style, _label: (_b = this.state._icons.left.label) !== null && _b !== void 0 ? _b : '', _icons: this.state._icons.left.icon })), !this.state._hideLabel && hideExpertSlot ? (this.state._allowMarkdown && typeof this.state._label === 'string' && this.state._label.length > 0 ? (hAsync("span", { class: "span-label md", innerHTML: md(this.state._label) })) : (hAsync("span", { class: "span-label" }, this.state._badgeText && this.state._label.length ? (hAsync(InternalUnderlinedBadgeText, { label: this.state._label, badgeText: this.state._badgeText })) : (((_c = this.state._label) !== null && _c !== void 0 ? _c : ''))))) : (''), hAsync("span", { key: 'c83600685031e8b75ba7d68a96e85379225802dd', "aria-hidden": hideExpertSlot ? 'true' : undefined, class: "span-label", hidden: hideExpertSlot }, hAsync("slot", { key: '8d215e01ad9fefe4903f089398a110e54b4be298', name: "expert" })), this.state._badgeText && (hAsync("span", { key: '487289fed5350d8eb14ee3b2150ed65f437a71ed', class: "badge-text-hint", "aria-hidden": "true" }, this.state._badgeText)), this.state._icons.right && (hAsync(KolIconTag, { key: 'fe647311fa6b5e6d2b52cbc76b0b9852f48b494b', class: "icon right", style: this.state._icons.right.style, _label: (_d = this.state._icons.right.label) !== null && _d !== void 0 ? _d : '', _icons: this.state._icons.right.icon }))), this.state._icons.bottom && (hAsync(KolIconTag, { key: '626d2437d28382cd014795f431458a0252f51541', class: "icon bottom", style: this.state._icons.bottom.style, _label: (_e = this.state._icons.bottom.label) !== null && _e !== void 0 ? _e : '', _icons: this.state._icons.bottom.icon }))));
|
|
23975
24465
|
}
|
|
23976
24466
|
validateBadgeText(value) {
|
|
23977
24467
|
validateBadgeText(this, value);
|
|
@@ -24049,7 +24539,7 @@ class KolSpin {
|
|
|
24049
24539
|
};
|
|
24050
24540
|
}
|
|
24051
24541
|
render() {
|
|
24052
|
-
return (hAsync(Host, { key: '
|
|
24542
|
+
return (hAsync(Host, { key: '0733583d9a2ed6b865f91f218af816881991a661', class: "kol-spin" }, this.state._show ? (hAsync("span", { "aria-busy": "true", "aria-label": translate('kol-action-running'), "aria-live": "polite", class: {
|
|
24053
24543
|
spin: true,
|
|
24054
24544
|
[this.state._variant]: true,
|
|
24055
24545
|
}, role: "alert" }, renderSpin(this.state._variant))) : (this.showToggled && hAsync("span", { "aria-label": translate('kol-action-done'), "aria-busy": "false", "aria-live": "polite", role: "alert" }))));
|
|
@@ -24134,10 +24624,10 @@ class KolSplitButton {
|
|
|
24134
24624
|
}
|
|
24135
24625
|
render() {
|
|
24136
24626
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
24137
|
-
return (hAsync(Host, { key: '
|
|
24627
|
+
return (hAsync(Host, { key: 'cf6ac525bf85bfb0fe16d7275808b1c2466be185', class: "kol-split-button" }, hAsync("div", { key: 'e508675a55f10001239c47362c569e7ce3991dd5', class: "split-button-root" }, hAsync(KolButtonWcTag, { key: '59b44b060c2e949191e3da275e11b1e67c34159a', class: {
|
|
24138
24628
|
'main-button': true,
|
|
24139
24629
|
button: true,
|
|
24140
|
-
}, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }), hAsync("div", { key: '
|
|
24630
|
+
}, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }), hAsync("div", { key: '077e67c07b03f786f02d14e1f5d99c5aa2362721', class: "horizontal-line" }), hAsync(KolButtonWcTag, { key: '98af91aba2eb06c3d637b983386c0bc46c1259de', class: { 'secondary-button': true, [this._variant]: this._variant !== 'custom' }, _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler, _variant: this._variant })), hAsync(KolPopoverWcTag, { key: '9546540b0ca474b3b8d8d6582a8eb9863d33289c', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: 'a92e0ad1f9f2bf6f95f013f4e2ead60d432d7285' }))));
|
|
24141
24631
|
}
|
|
24142
24632
|
async closePopup() {
|
|
24143
24633
|
this.handleOnClose();
|
|
@@ -24189,7 +24679,7 @@ class KolSymbol {
|
|
|
24189
24679
|
};
|
|
24190
24680
|
}
|
|
24191
24681
|
render() {
|
|
24192
|
-
return (hAsync(Host, { key: '
|
|
24682
|
+
return (hAsync(Host, { key: '09195f2f3abd530937a2f1fb5a879f0cb38d7657', class: "kol-symbol" }, hAsync("span", { key: '597e49d33699b0f4ea2918e685bdd3f6e2ca5dab', "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
24193
24683
|
}
|
|
24194
24684
|
validateLabel(value) {
|
|
24195
24685
|
validateLabel(this, value, {
|
|
@@ -24238,7 +24728,7 @@ class KolTable {
|
|
|
24238
24728
|
this._on = undefined;
|
|
24239
24729
|
}
|
|
24240
24730
|
render() {
|
|
24241
|
-
return (hAsync(KolTableStatefulTag, { key: '
|
|
24731
|
+
return (hAsync(KolTableStatefulTag, { key: 'd91c3a2f2757e4541d2b79c9d7df62371001accd', _allowMultiSort: this._allowMultiSort, _data: this._data, _dataFoot: this._dataFoot, _headers: this._headers, _label: this._label, _minWidth: this._minWidth, _pagination: this._pagination, _paginationPosition: this._paginationPosition, _selection: this._selection, _on: this._on }));
|
|
24242
24732
|
}
|
|
24243
24733
|
static get cmpMeta() { return {
|
|
24244
24734
|
"$flags$": 9,
|
|
@@ -24667,7 +25157,7 @@ class KolTableStateful {
|
|
|
24667
25157
|
horizontal: (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24668
25158
|
vertical: (_d = this.state._headers.vertical) === null || _d === void 0 ? void 0 : _d.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24669
25159
|
};
|
|
24670
|
-
return (hAsync(Host, { key: '
|
|
25160
|
+
return (hAsync(Host, { key: 'bdf890a8b0523d9fc59fbb3088ceaf65d4b2f561', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '3d08e2ff669bcccce000650155ad9436d11ae1a2', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
24671
25161
|
onSort: (_, payload) => {
|
|
24672
25162
|
this.handleSort(payload);
|
|
24673
25163
|
},
|
|
@@ -24730,7 +25220,7 @@ class KolTableStateless$1 {
|
|
|
24730
25220
|
this._selection = undefined;
|
|
24731
25221
|
}
|
|
24732
25222
|
render() {
|
|
24733
|
-
return (hAsync(Host, { key: '
|
|
25223
|
+
return (hAsync(Host, { key: 'c63276bd072d52154e5c8e55a114c5b4b2d3f86b', class: "kol-table-stateless" }, hAsync(KolTableStatelessWcTag, { key: '3a65f488e2b4d9820e12a31a2fd1e16e2f6e26f6', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection })));
|
|
24734
25224
|
}
|
|
24735
25225
|
static get style() { return {
|
|
24736
25226
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24933,28 +25423,28 @@ class KolTableStateless {
|
|
|
24933
25423
|
}
|
|
24934
25424
|
return max;
|
|
24935
25425
|
}
|
|
24936
|
-
|
|
24937
|
-
const
|
|
25426
|
+
getThePrimaryHeadersWithKeyOrRenderFunction(headers) {
|
|
25427
|
+
const primaryHeaders = [];
|
|
24938
25428
|
headers.forEach((cells) => {
|
|
24939
25429
|
cells.forEach((cell) => {
|
|
24940
|
-
if (typeof cell.key === 'string') {
|
|
24941
|
-
|
|
25430
|
+
if (typeof cell.key === 'string' || typeof cell.render === 'function') {
|
|
25431
|
+
primaryHeaders.push(cell);
|
|
24942
25432
|
}
|
|
24943
25433
|
});
|
|
24944
25434
|
});
|
|
24945
|
-
return
|
|
25435
|
+
return primaryHeaders;
|
|
24946
25436
|
}
|
|
24947
25437
|
getPrimaryHeaders(headers) {
|
|
24948
25438
|
var _a, _b;
|
|
24949
|
-
let
|
|
25439
|
+
let primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
24950
25440
|
this.horizontal = true;
|
|
24951
|
-
if (
|
|
24952
|
-
|
|
24953
|
-
if (
|
|
25441
|
+
if (primaryHeaders.length === 0) {
|
|
25442
|
+
primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
25443
|
+
if (primaryHeaders.length > 0) {
|
|
24954
25444
|
this.horizontal = false;
|
|
24955
25445
|
}
|
|
24956
25446
|
}
|
|
24957
|
-
return
|
|
25447
|
+
return primaryHeaders;
|
|
24958
25448
|
}
|
|
24959
25449
|
createDataField(data, headers, isFoot) {
|
|
24960
25450
|
var _a;
|
|
@@ -25003,18 +25493,18 @@ class KolTableStateless {
|
|
|
25003
25493
|
const row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];
|
|
25004
25494
|
if (typeof primaryHeader[j] === 'object' &&
|
|
25005
25495
|
primaryHeader[j] !== null &&
|
|
25006
|
-
typeof primaryHeader[j].key === 'string' &&
|
|
25007
25496
|
typeof row === 'object' &&
|
|
25008
|
-
row !== null
|
|
25497
|
+
row !== null &&
|
|
25498
|
+
(typeof primaryHeader[j].key === 'string' || typeof primaryHeader[j].render === 'function')) {
|
|
25009
25499
|
dataRow.push(Object.assign(Object.assign({}, primaryHeader[j]), { colSpan: undefined, data: row, label: row[primaryHeader[j].key], rowSpan: undefined }));
|
|
25010
25500
|
}
|
|
25011
25501
|
}
|
|
25012
25502
|
else {
|
|
25013
25503
|
if (typeof primaryHeader[i] === 'object' &&
|
|
25014
25504
|
primaryHeader[i] !== null &&
|
|
25015
|
-
typeof primaryHeader[i].key === 'string' &&
|
|
25016
25505
|
typeof data[j] === 'object' &&
|
|
25017
|
-
data[j] !== null
|
|
25506
|
+
data[j] !== null &&
|
|
25507
|
+
(typeof primaryHeader[i].key === 'string' || typeof primaryHeader[i].render === 'function')) {
|
|
25018
25508
|
dataRow.push(Object.assign(Object.assign({}, primaryHeader[i]), { colSpan: undefined, data: data[j], label: data[j][primaryHeader[i].key], rowSpan: undefined }));
|
|
25019
25509
|
}
|
|
25020
25510
|
}
|
|
@@ -25130,7 +25620,7 @@ class KolTableStateless {
|
|
|
25130
25620
|
Array.isArray(this.state._headerCells.horizontal) && (hAsync("td", { "aria-hidden": "true", colSpan: this.state._headerCells.vertical.length, rowSpan: this.state._headerCells.horizontal.length }))));
|
|
25131
25621
|
}
|
|
25132
25622
|
renderHeadingCell(cell, rowIndex, colIndex, isVertical) {
|
|
25133
|
-
let ariaSort =
|
|
25623
|
+
let ariaSort = 'none';
|
|
25134
25624
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
25135
25625
|
if (cell.sortDirection) {
|
|
25136
25626
|
switch (cell.sortDirection) {
|
|
@@ -25142,6 +25632,8 @@ class KolTableStateless {
|
|
|
25142
25632
|
sortButtonIcon = 'codicon codicon-chevron-down';
|
|
25143
25633
|
ariaSort = 'descending';
|
|
25144
25634
|
break;
|
|
25635
|
+
default:
|
|
25636
|
+
ariaSort = 'none';
|
|
25145
25637
|
}
|
|
25146
25638
|
}
|
|
25147
25639
|
const scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';
|
|
@@ -25179,9 +25671,9 @@ class KolTableStateless {
|
|
|
25179
25671
|
render() {
|
|
25180
25672
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
25181
25673
|
this.checkboxRefs = [];
|
|
25182
|
-
return (hAsync(Host, { key: '
|
|
25674
|
+
return (hAsync(Host, { key: '068ddbbaca91639a2370e2acaa01b0f823742861', class: "kol-table-stateless-wc" }, hAsync("div", { key: '7a84456ce3e37d5bea0ad34569c56979d74883f9', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '882e63a7cebc2c2a26688f934b44291b2966e1c0', style: {
|
|
25183
25675
|
minWidth: this.state._deprecatedMinWidth || this.state._minWidth,
|
|
25184
|
-
} }, hAsync("div", { key: '
|
|
25676
|
+
} }, hAsync("div", { key: '9227d8ec493d1b7239e3ab69ab0fd16aad7c03b7', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: '40d14efc932bc915a2d5e4bc2f6af9e89f6e45ad', id: "caption" }, this.state._label), Array.isArray(this.state._headerCells.horizontal) && (hAsync("thead", { key: 'dc926c6e1b7cdd58d41e1db1c46fb1356904d91d' }, [
|
|
25185
25677
|
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) &&
|
|
25186
25678
|
cols.map((cell, colIndex) => {
|
|
25187
25679
|
if (cell.asTd === true) {
|
|
@@ -25201,7 +25693,7 @@ class KolTableStateless {
|
|
|
25201
25693
|
}
|
|
25202
25694
|
})))),
|
|
25203
25695
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
25204
|
-
])), hAsync("tbody", { key: '
|
|
25696
|
+
])), hAsync("tbody", { key: '9d11add32fd084710d56c029262646a724e4bafe' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
25205
25697
|
}
|
|
25206
25698
|
get host() { return getElement(this); }
|
|
25207
25699
|
static get watchers() { return {
|
|
@@ -25439,11 +25931,11 @@ class KolTabs {
|
|
|
25439
25931
|
} }))));
|
|
25440
25932
|
}
|
|
25441
25933
|
render() {
|
|
25442
|
-
return (hAsync(Host, { key: '
|
|
25934
|
+
return (hAsync(Host, { key: '0742bb2f0a3ac2ccb77c42b5205311d68b55900d', class: "kol-tabs" }, hAsync("div", { key: '51fa48d177a1d5f460953d271eb446d65e7a32e7', ref: (el) => {
|
|
25443
25935
|
this.tabPanelsElement = el;
|
|
25444
25936
|
}, class: {
|
|
25445
25937
|
[`tabs-align-${this.state._align}`]: true,
|
|
25446
|
-
} }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
25938
|
+
} }, this.renderButtonGroup(), hAsync("div", { key: '01d820886238951d95a70969023c28f8888c76d1', class: "tabs-content", ref: this.catchTabPanelHost }))));
|
|
25447
25939
|
}
|
|
25448
25940
|
validateAlign(value) {
|
|
25449
25941
|
validateAlign(this, value);
|
|
@@ -25570,8 +26062,12 @@ class TextareaController extends InputIconController {
|
|
|
25570
26062
|
this.afterSyncCharCounter = () => {
|
|
25571
26063
|
if (typeof this.component._value === 'string' && this.component._value.length > 0) {
|
|
25572
26064
|
this.component.state._currentLength = this.component._value.length;
|
|
26065
|
+
this.component.state._currentLengthDebounced = this.component._value.length;
|
|
25573
26066
|
}
|
|
25574
26067
|
};
|
|
26068
|
+
this.updateCurrentLengthDebounced = debounce((length) => {
|
|
26069
|
+
setState(this.component, '_currentLengthDebounced', length);
|
|
26070
|
+
}, 500);
|
|
25575
26071
|
this.component = component;
|
|
25576
26072
|
}
|
|
25577
26073
|
validateHasCounter(value) {
|
|
@@ -25656,7 +26152,7 @@ class KolTextarea {
|
|
|
25656
26152
|
render() {
|
|
25657
26153
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25658
26154
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
25659
|
-
return (hAsync(Host, { key: '
|
|
26155
|
+
return (hAsync(Host, { key: 'ebb2f8a99cc6a61b6ae445c9b9f6dbfa5421d0b4', class: { 'kol-textarea': true, 'has-value': this.state._hasValue } }, hAsync(KolInputTag, { key: 'c16e2c38b2669a12dafb3fdff5a8397e65693c9e', class: { textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _currentLengthDebounced: this.state._currentLengthDebounced, _disabled: this.state._disabled, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _msg: this.state._msg, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '2f4aeb447eae55708e92814c83d6dc67b2904a1d', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey || this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "badge-text-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '0b81749ba92b653b2b64d27fda0eb88d89fdc06b', slot: "input" }, hAsync("textarea", Object.assign({ key: 'b7c374f2d8f8c0aae106324ff76a9aaf75b60162', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, maxlength: this.state._maxLength, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, rows: this.state._rows, placeholder: this.state._placeholder, spellcheck: this.state._spellCheck }, this.controller.onFacade, { onInput: this.onInput, onFocus: (event) => {
|
|
25660
26156
|
this.controller.onFacade.onFocus(event);
|
|
25661
26157
|
this.inputHasFocus = true;
|
|
25662
26158
|
}, onBlur: (event) => {
|
|
@@ -25674,6 +26170,7 @@ class KolTextarea {
|
|
|
25674
26170
|
this.onInput = (event) => {
|
|
25675
26171
|
if (this.textareaRef instanceof HTMLTextAreaElement) {
|
|
25676
26172
|
setState(this, '_currentLength', this.textareaRef.value.length);
|
|
26173
|
+
this.controller.updateCurrentLengthDebounced(this.textareaRef.value.length);
|
|
25677
26174
|
if (this.state._adjustHeight) {
|
|
25678
26175
|
this._rows = increaseTextareaHeight(this.textareaRef);
|
|
25679
26176
|
}
|
|
@@ -25711,6 +26208,7 @@ class KolTextarea {
|
|
|
25711
26208
|
this.state = {
|
|
25712
26209
|
_adjustHeight: false,
|
|
25713
26210
|
_currentLength: 0,
|
|
26211
|
+
_currentLengthDebounced: 0,
|
|
25714
26212
|
_hasValue: false,
|
|
25715
26213
|
_hideError: false,
|
|
25716
26214
|
_id: `id-${nonce()}`,
|
|
@@ -25947,7 +26445,9 @@ class KolToastContainer {
|
|
|
25947
26445
|
return localToastState;
|
|
25948
26446
|
}) });
|
|
25949
26447
|
setTimeout(() => {
|
|
26448
|
+
var _a, _b;
|
|
25950
26449
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((localToastState) => localToastState.id !== toastState.id) });
|
|
26450
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
25951
26451
|
}, TRANSITION_TIMEOUT);
|
|
25952
26452
|
}
|
|
25953
26453
|
async closeAll(immediate = false) {
|
|
@@ -25959,6 +26459,10 @@ class KolToastContainer {
|
|
|
25959
26459
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: toastsToClose.map((localToastState) => (Object.assign(Object.assign({}, localToastState), { status: 'removing' }))) });
|
|
25960
26460
|
setTimeout(() => {
|
|
25961
26461
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((toastState) => toastsToClose.every((toastToClose) => toastToClose.id !== toastState.id)) });
|
|
26462
|
+
toastsToClose.forEach((toastState) => {
|
|
26463
|
+
var _a, _b;
|
|
26464
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
26465
|
+
});
|
|
25962
26466
|
}, TRANSITION_TIMEOUT);
|
|
25963
26467
|
}
|
|
25964
26468
|
}
|
|
@@ -25969,7 +26473,7 @@ class KolToastContainer {
|
|
|
25969
26473
|
}
|
|
25970
26474
|
}
|
|
25971
26475
|
render() {
|
|
25972
|
-
return (hAsync(Host, { key: '
|
|
26476
|
+
return (hAsync(Host, { key: 'b2a11e7791b6695e94c87c5193619a783c2ca97a', class: "kol-toast-container" }, this.state._toastStates.length > 1 && (hAsync(KolButtonTag, { key: '4c544267d5e87ac933866a405c8e088a35a85749', _label: translate('kol-toast-close-all'), class: "close-all", _on: {
|
|
25973
26477
|
onClick: () => {
|
|
25974
26478
|
void this.closeAll();
|
|
25975
26479
|
},
|
|
@@ -26021,7 +26525,7 @@ class KolToolbar {
|
|
|
26021
26525
|
this._items = undefined;
|
|
26022
26526
|
}
|
|
26023
26527
|
render() {
|
|
26024
|
-
return (hAsync(Host, { key: '
|
|
26528
|
+
return (hAsync(Host, { key: '8bd34089dc8655de9101eae21466eb3969a8020d', class: "kol-toolbar" }, hAsync("div", { key: 'aaed4e6d8f8ea9fbb3dc1ef938345810910080c3', class: "toolbar", role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem))));
|
|
26025
26529
|
}
|
|
26026
26530
|
validateLabel(value) {
|
|
26027
26531
|
validateLabel(this, value);
|
|
@@ -26219,7 +26723,7 @@ class KolTooltipWc {
|
|
|
26219
26723
|
this.showOrHideTooltip();
|
|
26220
26724
|
}
|
|
26221
26725
|
render() {
|
|
26222
|
-
return (hAsync(Host, { key: '
|
|
26726
|
+
return (hAsync(Host, { key: 'd60367ed981845e374fee0c11b73fffca885b499', class: "kol-tooltip-wc" }, this.state._label !== '' && (hAsync("div", { key: '416722ecf35625dab57d1500afd6bc036a2d5f92', class: "tooltip-floating", ref: this.catchTooltipElement }, hAsync("div", { key: '44a31ec9dd9e2c1680714a8133a17932998a07ce', class: "tooltip-area tooltip-arrow", ref: this.catchArrowElement }), hAsync(KolSpanWcTag, { key: '3a6ca810afa481968ad59e912f2d7987d52df8f6', class: "tooltip-area tooltip-content", id: this.state._id, _badgeText: this._badgeText, _label: this.state._label })))));
|
|
26223
26727
|
}
|
|
26224
26728
|
validateBadgeText(value) {
|
|
26225
26729
|
validateBadgeText(this, value);
|
|
@@ -26297,7 +26801,7 @@ class KolTree {
|
|
|
26297
26801
|
this._label = undefined;
|
|
26298
26802
|
}
|
|
26299
26803
|
render() {
|
|
26300
|
-
return (hAsync(Host, { key: '
|
|
26804
|
+
return (hAsync(Host, { key: 'c4ed1423c782d5cb19c9a5165db2ba5ca71b1528', class: "kol-tree" }, hAsync(KolTreeWcTag, { key: 'd00b2ffc0c8757cb81b38c72164491603ec9d914', _label: this._label }, hAsync("slot", { key: '7a8fe91aacdeb5362126c23bdc5527c94aa5f4f8' }))));
|
|
26301
26805
|
}
|
|
26302
26806
|
static get style() { return {
|
|
26303
26807
|
default: KolTreeDefaultStyle0
|
|
@@ -26345,7 +26849,7 @@ class KolTreeItem {
|
|
|
26345
26849
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26346
26850
|
}
|
|
26347
26851
|
render() {
|
|
26348
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26852
|
+
return (hAsync(KolTreeItemWcTag, { key: 'ff893e8200b5a881347b2197ac5798264113c7b9', class: "kol-tree-item", _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '200a7bd7cd7b4f9dd141b7d455fe8154a3d89a05' })));
|
|
26349
26853
|
}
|
|
26350
26854
|
static get style() { return {
|
|
26351
26855
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26388,13 +26892,13 @@ class KolTreeItemWc {
|
|
|
26388
26892
|
}
|
|
26389
26893
|
render() {
|
|
26390
26894
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
26391
|
-
return (hAsync(Host, { key: '
|
|
26895
|
+
return (hAsync(Host, { key: '1843323af44293bc49f4b6d1817ec223a6aedd96', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-item-wc" }, hAsync("li", { key: '2cf5dc604a8055687d594ca692cdd99e3df28c57', class: "tree-item", style: {
|
|
26392
26896
|
'--level': `${this.level}`,
|
|
26393
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
26897
|
+
} }, hAsync(KolLinkWcTag, { key: '8406ef31760965e3aa784acfc814261ed09589ec', class: {
|
|
26394
26898
|
'tree-link': true,
|
|
26395
26899
|
'first-level': this.level === 0,
|
|
26396
26900
|
active: Boolean(_active),
|
|
26397
|
-
}, _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _hasChildren ? _open : undefined, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: '
|
|
26901
|
+
}, _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _hasChildren ? _open : undefined, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: '6489ca48987ea2aadacb8570168fe73295d1ed2c', class: "tree-link-inner", slot: "expert" }, _hasChildren ? (hAsync("span", { class: "toggle-button", onClick: (event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event)) }, hAsync(KolIconTag, { class: "toggle-button-icon", _icons: `codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`, _label: '' }))) : (hAsync("span", { class: "toggle-button-placeholder" })), hAsync("span", { key: '253fbef72524a838699df235cdefd6c693c25b73', class: "text" }, _label))), hAsync("ul", { key: 'fb1a01d5d77588761a8beaac5cd3c37a0cdc3c6f', hidden: !_hasChildren || !_open, role: "group", id: this.groupId }, hAsync("slot", { key: '324a7bc467cc87903185ca06e8b7984eb8c932d3' })))));
|
|
26398
26902
|
}
|
|
26399
26903
|
validateActive(value) {
|
|
26400
26904
|
validateActive(this, value || false);
|
|
@@ -26499,7 +27003,7 @@ class KolTreeWc {
|
|
|
26499
27003
|
validateLabel(this, value);
|
|
26500
27004
|
}
|
|
26501
27005
|
render() {
|
|
26502
|
-
return (hAsync(Host, { key: '
|
|
27006
|
+
return (hAsync(Host, { key: 'ead6fadb4d72531bc2e02f25a59944c186fb1b74', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-wc" }, hAsync("nav", { key: '902fc0e6cf604b4d26fba2009fe45ddebcd8f06b', class: "tree", "aria-label": this.state._label }, hAsync("ul", { key: 'f33fa82c53c0f3b0e165a70e00508c3267a83412', class: "treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: '8b1d7f476d18299b7ca8b3dfc671d496e52e25d1' })))));
|
|
26503
27007
|
}
|
|
26504
27008
|
static isTreeItem(element) {
|
|
26505
27009
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -26697,7 +27201,7 @@ class KolVersion {
|
|
|
26697
27201
|
};
|
|
26698
27202
|
}
|
|
26699
27203
|
render() {
|
|
26700
|
-
return (hAsync(Host, { key: '
|
|
27204
|
+
return (hAsync(Host, { key: 'd082e433c111125d91e503c35226f140b6025ffc', class: "kol-version" }, hAsync(KolBadgeTag, { key: '43d7c7f0c2ffdfcffbb22a3889c64ab2e44fcaf7', _color: "#bec5c9", _icons: {
|
|
26701
27205
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
26702
27206
|
}, _label: this.state._label })));
|
|
26703
27207
|
}
|