@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.mjs
CHANGED
|
@@ -3830,29 +3830,13 @@ const validateAccessKey = (component, value) => {
|
|
|
3830
3830
|
watchString(component, '_accessKey', value);
|
|
3831
3831
|
};
|
|
3832
3832
|
|
|
3833
|
-
const validateAccordionCallbacks = (component, value) => {
|
|
3834
|
-
watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['AccordionCallbacksPropType {Events.onClick}']), value);
|
|
3835
|
-
};
|
|
3836
|
-
|
|
3837
|
-
const validateActive = (component, value, options) => {
|
|
3838
|
-
watchBoolean(component, '_active', value, options);
|
|
3839
|
-
};
|
|
3840
|
-
|
|
3841
|
-
const validateAdjustHeight = (component, value) => {
|
|
3842
|
-
watchBoolean(component, '_adjustHeight', value);
|
|
3843
|
-
};
|
|
3844
|
-
|
|
3845
|
-
const validateAlert = (component, value) => {
|
|
3846
|
-
watchBoolean(component, '_alert', value);
|
|
3847
|
-
};
|
|
3848
|
-
|
|
3849
3833
|
const validateAlignment = (component, propName, value) => {
|
|
3850
3834
|
watchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {
|
|
3851
3835
|
defaultValue: 'top',
|
|
3852
3836
|
});
|
|
3853
3837
|
};
|
|
3854
3838
|
|
|
3855
|
-
const isObject$
|
|
3839
|
+
const isObject$2 = (value) => typeof value === 'object' && value !== null;
|
|
3856
3840
|
const isString$2 = (value, minLength = 0) => typeof value === 'string' && value.length >= minLength;
|
|
3857
3841
|
const isStyle = (style) => {
|
|
3858
3842
|
if (typeof style === 'object' && style !== null) {
|
|
@@ -3904,6 +3888,22 @@ const validateTabIndex = (component, value) => {
|
|
|
3904
3888
|
watchNumber(component, '_tabIndex', value, options);
|
|
3905
3889
|
};
|
|
3906
3890
|
|
|
3891
|
+
const validateAccordionCallbacks = (component, value) => {
|
|
3892
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['AccordionCallbacksPropType {Events.onClick}']), value);
|
|
3893
|
+
};
|
|
3894
|
+
|
|
3895
|
+
const validateActive = (component, value, options) => {
|
|
3896
|
+
watchBoolean(component, '_active', value, options);
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
const validateAdjustHeight = (component, value) => {
|
|
3900
|
+
watchBoolean(component, '_adjustHeight', value);
|
|
3901
|
+
};
|
|
3902
|
+
|
|
3903
|
+
const validateAlert = (component, value) => {
|
|
3904
|
+
watchBoolean(component, '_alert', value);
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3907
3907
|
const horizontalAlignOptions = ['left', 'right'];
|
|
3908
3908
|
const verticalAlignOptions = ['top', 'bottom'];
|
|
3909
3909
|
const alignPropTypeOptions = [...horizontalAlignOptions, ...verticalAlignOptions];
|
|
@@ -3950,7 +3950,7 @@ const validateBadgeText = (component, value) => {
|
|
|
3950
3950
|
};
|
|
3951
3951
|
|
|
3952
3952
|
const validateButtonCallbacks = (component, value) => {
|
|
3953
|
-
watchValidator(component, `_on`, (value) =>
|
|
3953
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}']), value);
|
|
3954
3954
|
};
|
|
3955
3955
|
|
|
3956
3956
|
const buttonTypePropTypeOptions = ['button', 'reset', 'submit'];
|
|
@@ -4078,7 +4078,7 @@ const validateCustomClass = (component, value) => {
|
|
|
4078
4078
|
};
|
|
4079
4079
|
|
|
4080
4080
|
const validateDetailsCallbacks = (component, value) => {
|
|
4081
|
-
watchValidator(component, `_on`, (value) =>
|
|
4081
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['DetailsCallbacksPropType {Events.onToggle}']), value);
|
|
4082
4082
|
};
|
|
4083
4083
|
|
|
4084
4084
|
const validateDisabled = (component, value) => {
|
|
@@ -4135,7 +4135,7 @@ const validateHref = (component, value, options = {}) => {
|
|
|
4135
4135
|
};
|
|
4136
4136
|
|
|
4137
4137
|
const mapCustomIcon = (state, alignment, icon) => {
|
|
4138
|
-
if (isObject$
|
|
4138
|
+
if (isObject$2(icon)) {
|
|
4139
4139
|
state[alignment] = icon;
|
|
4140
4140
|
}
|
|
4141
4141
|
else if (isString$2(icon, 1)) {
|
|
@@ -4153,11 +4153,12 @@ const mapIconProp2State = (icon) => {
|
|
|
4153
4153
|
},
|
|
4154
4154
|
};
|
|
4155
4155
|
}
|
|
4156
|
-
else if (
|
|
4157
|
-
|
|
4158
|
-
mapCustomIcon(state, '
|
|
4159
|
-
mapCustomIcon(state, '
|
|
4160
|
-
mapCustomIcon(state, '
|
|
4156
|
+
else if (isObject$2(icon)) {
|
|
4157
|
+
const icons = icon;
|
|
4158
|
+
mapCustomIcon(state, 'top', icons.top);
|
|
4159
|
+
mapCustomIcon(state, 'right', icons.right);
|
|
4160
|
+
mapCustomIcon(state, 'bottom', icons.bottom);
|
|
4161
|
+
mapCustomIcon(state, 'left', icons.left);
|
|
4161
4162
|
}
|
|
4162
4163
|
return state;
|
|
4163
4164
|
};
|
|
@@ -4168,8 +4169,7 @@ const beforePatchIcon = (component) => {
|
|
|
4168
4169
|
(_c = component.nextState) === null || _c === void 0 ? void 0 : _c.set('_icons', mapIconProp2State(icons));
|
|
4169
4170
|
}
|
|
4170
4171
|
};
|
|
4171
|
-
const isIcon = (value) =>
|
|
4172
|
-
value !== null &&
|
|
4172
|
+
const isIcon = (value) => isObject$2(value) &&
|
|
4173
4173
|
(typeof value.style === 'undefined' || isStyle(value.style)) &&
|
|
4174
4174
|
(typeof value.label === 'undefined' || isString$2(value.label)) &&
|
|
4175
4175
|
isString$2(value.icon, 1);
|
|
@@ -4182,12 +4182,11 @@ const validateIcons = (component, value, options = {}) => {
|
|
|
4182
4182
|
catch (e) {
|
|
4183
4183
|
}
|
|
4184
4184
|
watchValidator(component, '_icons', (value) => {
|
|
4185
|
-
const valueIsEmptyObject =
|
|
4185
|
+
const valueIsEmptyObject = isObject$2(value) && Object.keys(value).length === 0;
|
|
4186
4186
|
return (value === null ||
|
|
4187
4187
|
valueIsEmptyObject ||
|
|
4188
4188
|
isString$2(value, 1) ||
|
|
4189
|
-
(
|
|
4190
|
-
value !== null &&
|
|
4189
|
+
(isObject$2(value) &&
|
|
4191
4190
|
(isString$2(value.left, 1) ||
|
|
4192
4191
|
isIcon(value.left) ||
|
|
4193
4192
|
isString$2(value.right, 1) ||
|
|
@@ -4289,7 +4288,7 @@ const validateMsg = (component, value) => {
|
|
|
4289
4288
|
}
|
|
4290
4289
|
catch (e) {
|
|
4291
4290
|
}
|
|
4292
|
-
watchValidator(component, `_msg`, (value) => isObject$
|
|
4291
|
+
watchValidator(component, `_msg`, (value) => isObject$2(value) && typeof (value === null || value === void 0 ? void 0 : value._description) === 'string', new Set(['MsgPropType']), value, {
|
|
4293
4292
|
defaultValue: {
|
|
4294
4293
|
_description: '',
|
|
4295
4294
|
_type: 'error',
|
|
@@ -4311,7 +4310,7 @@ const validateOpen = (component, value, options) => {
|
|
|
4311
4310
|
};
|
|
4312
4311
|
|
|
4313
4312
|
const validateOptions = (component, value, options = {}) => {
|
|
4314
|
-
watchJsonArrayString(component, '_options', (item) =>
|
|
4313
|
+
watchJsonArrayString(component, '_options', (item) => isObject$2(item) && typeof item.label === 'string' && item.label.length > 0, value, undefined, options);
|
|
4315
4314
|
};
|
|
4316
4315
|
const validateOptionsWithOptgroup = (component, value, options = {}) => {
|
|
4317
4316
|
watchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);
|
|
@@ -4329,7 +4328,7 @@ const validatePopoverAlign = (component, value) => {
|
|
|
4329
4328
|
};
|
|
4330
4329
|
|
|
4331
4330
|
const validatePopoverCallbacks = (component, value) => {
|
|
4332
|
-
watchValidator(component, `_on`, (value) =>
|
|
4331
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['PopoverCallbacksPropType {Events.onClose}']), value);
|
|
4333
4332
|
};
|
|
4334
4333
|
|
|
4335
4334
|
const validateReadOnly = (component, value) => {
|
|
@@ -4376,10 +4375,10 @@ const validateTabBehavior = (component, value) => {
|
|
|
4376
4375
|
};
|
|
4377
4376
|
|
|
4378
4377
|
const validateTableCallbacks = (component, value) => {
|
|
4379
|
-
watchValidator(component, `_on`, (value) =>
|
|
4378
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange}']), value);
|
|
4380
4379
|
};
|
|
4381
4380
|
const validateTableStatefulCallbacks = (component, value) => {
|
|
4382
|
-
watchValidator(component, `_on`, (value) =>
|
|
4381
|
+
watchValidator(component, `_on`, (value) => isObject$2(value), new Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']), value);
|
|
4383
4382
|
};
|
|
4384
4383
|
|
|
4385
4384
|
const validateTableData = (component, value, setStateHooks) => {
|
|
@@ -4393,7 +4392,7 @@ const validateTableData = (component, value, setStateHooks) => {
|
|
|
4393
4392
|
}
|
|
4394
4393
|
catch (e) {
|
|
4395
4394
|
}
|
|
4396
|
-
if (Array.isArray(value) && value.every((data) =>
|
|
4395
|
+
if (Array.isArray(value) && value.every((data) => isObject$2(data))) {
|
|
4397
4396
|
setState(component, '_data', value, setStateHooks);
|
|
4398
4397
|
}
|
|
4399
4398
|
});
|
|
@@ -4411,7 +4410,7 @@ const validateTableDataFoot = (component, value, setStateHooks) => {
|
|
|
4411
4410
|
}
|
|
4412
4411
|
catch (e) {
|
|
4413
4412
|
}
|
|
4414
|
-
if (Array.isArray(value) && value.every((data) =>
|
|
4413
|
+
if (Array.isArray(value) && value.every((data) => isObject$2(data))) {
|
|
4415
4414
|
setState(component, '_dataFoot', value, setStateHooks);
|
|
4416
4415
|
}
|
|
4417
4416
|
});
|
|
@@ -4446,7 +4445,7 @@ const validateTableSelection = (component, value) => {
|
|
|
4446
4445
|
}
|
|
4447
4446
|
};
|
|
4448
4447
|
const validateObject = (value) => {
|
|
4449
|
-
return value && isObject$
|
|
4448
|
+
return value && isObject$2(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));
|
|
4450
4449
|
};
|
|
4451
4450
|
const objectValue = typeof value === 'string' ? parseSerializedValue() : value;
|
|
4452
4451
|
if (validateObject(objectValue)) {
|
|
@@ -4465,7 +4464,7 @@ const validateToolbarItems = (component, value) => {
|
|
|
4465
4464
|
}
|
|
4466
4465
|
catch (e) {
|
|
4467
4466
|
}
|
|
4468
|
-
if (Array.isArray(value) && value.every((items) =>
|
|
4467
|
+
if (Array.isArray(value) && value.every((items) => isObject$2(items))) {
|
|
4469
4468
|
setState(component, '_items', value);
|
|
4470
4469
|
}
|
|
4471
4470
|
});
|
|
@@ -6506,13 +6505,13 @@ class KolCombobox {
|
|
|
6506
6505
|
render() {
|
|
6507
6506
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
6508
6507
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
6509
|
-
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: '
|
|
6508
|
+
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) => {
|
|
6510
6509
|
this.controller.onFacade.onFocus(event);
|
|
6511
6510
|
this.inputHasFocus = true;
|
|
6512
6511
|
}, onBlur: (event) => {
|
|
6513
6512
|
this.controller.onFacade.onBlur(event);
|
|
6514
6513
|
this.inputHasFocus = false;
|
|
6515
|
-
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })), hAsync("button", { key: '
|
|
6514
|
+
}, 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) &&
|
|
6516
6515
|
this._filteredSuggestions.length > 0 &&
|
|
6517
6516
|
this._filteredSuggestions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
6518
6517
|
if (el)
|
|
@@ -7134,11 +7133,11 @@ class KolForm {
|
|
|
7134
7133
|
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 }))))))));
|
|
7135
7134
|
}
|
|
7136
7135
|
renderFormElement() {
|
|
7137
|
-
return (hAsync("form", { method: "post", onSubmit: this.onSubmit, onReset: this.onReset,
|
|
7136
|
+
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)));
|
|
7138
7137
|
}
|
|
7139
7138
|
render() {
|
|
7140
7139
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
7141
|
-
return (hAsync(Host, { key: '
|
|
7140
|
+
return (hAsync(Host, { key: 'f8faff3a737be164f14bc26a0efbf081399c73f0', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
7142
7141
|
}
|
|
7143
7142
|
scrollToErrorList() {
|
|
7144
7143
|
var _a;
|
|
@@ -7200,7 +7199,7 @@ class KolForm {
|
|
|
7200
7199
|
}; }
|
|
7201
7200
|
}
|
|
7202
7201
|
|
|
7203
|
-
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}";
|
|
7202
|
+
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}";
|
|
7204
7203
|
var KolHeadingDefaultStyle0 = defaultStyleCss$C;
|
|
7205
7204
|
|
|
7206
7205
|
class KolHeading {
|
|
@@ -7244,24 +7243,6 @@ class KolHeadingWc {
|
|
|
7244
7243
|
[`headline-${variant}`]: true,
|
|
7245
7244
|
} }, headline, hAsync("slot", { name: "expert" })));
|
|
7246
7245
|
};
|
|
7247
|
-
this.renderSecondaryHeadline = (headline, level) => {
|
|
7248
|
-
switch (level) {
|
|
7249
|
-
case 1:
|
|
7250
|
-
return hAsync("span", { class: "secondary-headline" }, headline);
|
|
7251
|
-
case 2:
|
|
7252
|
-
return hAsync("h2", { class: "secondary-headline" }, headline);
|
|
7253
|
-
case 3:
|
|
7254
|
-
return hAsync("h3", { class: "secondary-headline" }, headline);
|
|
7255
|
-
case 4:
|
|
7256
|
-
return hAsync("h4", { class: "secondary-headline" }, headline);
|
|
7257
|
-
case 5:
|
|
7258
|
-
return hAsync("h5", { class: "secondary-headline" }, headline);
|
|
7259
|
-
case 6:
|
|
7260
|
-
return hAsync("h6", { class: "secondary-headline" }, headline);
|
|
7261
|
-
default:
|
|
7262
|
-
return hAsync("strong", { class: "secondary-headline" }, headline);
|
|
7263
|
-
}
|
|
7264
|
-
};
|
|
7265
7246
|
this._label = undefined;
|
|
7266
7247
|
this._level = 1;
|
|
7267
7248
|
this._secondaryHeadline = undefined;
|
|
@@ -7290,7 +7271,7 @@ class KolHeadingWc {
|
|
|
7290
7271
|
this.validateVariant(this._variant);
|
|
7291
7272
|
}
|
|
7292
7273
|
render() {
|
|
7293
|
-
return (hAsync(Host, { key: '
|
|
7274
|
+
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))));
|
|
7294
7275
|
}
|
|
7295
7276
|
static get watchers() { return {
|
|
7296
7277
|
"_label": ["validateLabel"],
|
|
@@ -7468,7 +7449,7 @@ class KolIndentedTextWc {
|
|
|
7468
7449
|
this.state = {};
|
|
7469
7450
|
}
|
|
7470
7451
|
render() {
|
|
7471
|
-
return (hAsync(Host, { key: '
|
|
7452
|
+
return (hAsync(Host, { key: '9d055cf1199950842de282faaccd67e05d2495ba', class: "kol-indented-text-wc" }, hAsync("div", { key: '4409c9619ccf102b58f796aa41e9f533813cd69b' }, hAsync("slot", { key: '691be16bd16b4a88c02f978905c5a35a2c2154c9' }))));
|
|
7472
7453
|
}
|
|
7473
7454
|
static get cmpMeta() { return {
|
|
7474
7455
|
"$flags$": 4,
|
|
@@ -8534,14 +8515,507 @@ const validatePasswordVariant = (component, value) => {
|
|
|
8534
8515
|
watchValidator(component, '_variant', (value) => typeof value === 'string' && PasswordVariantPropTypeOptions.includes(value), new Set(PasswordVariantPropTypeOptions), value);
|
|
8535
8516
|
};
|
|
8536
8517
|
|
|
8518
|
+
/** Detect free variable `global` from Node.js. */
|
|
8519
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
8520
|
+
|
|
8521
|
+
var freeGlobal$1 = freeGlobal;
|
|
8522
|
+
|
|
8523
|
+
/** Detect free variable `self`. */
|
|
8524
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
8525
|
+
|
|
8526
|
+
/** Used as a reference to the global object. */
|
|
8527
|
+
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
8528
|
+
|
|
8529
|
+
var root$1 = root;
|
|
8530
|
+
|
|
8531
|
+
/** Built-in value references. */
|
|
8532
|
+
var Symbol = root$1.Symbol;
|
|
8533
|
+
|
|
8534
|
+
var Symbol$1 = Symbol;
|
|
8535
|
+
|
|
8536
|
+
/** Used for built-in method references. */
|
|
8537
|
+
var objectProto$1 = Object.prototype;
|
|
8538
|
+
|
|
8539
|
+
/** Used to check objects for own properties. */
|
|
8540
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
8541
|
+
|
|
8542
|
+
/**
|
|
8543
|
+
* Used to resolve the
|
|
8544
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
8545
|
+
* of values.
|
|
8546
|
+
*/
|
|
8547
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
8548
|
+
|
|
8549
|
+
/** Built-in value references. */
|
|
8550
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
8551
|
+
|
|
8552
|
+
/**
|
|
8553
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
8554
|
+
*
|
|
8555
|
+
* @private
|
|
8556
|
+
* @param {*} value The value to query.
|
|
8557
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
8558
|
+
*/
|
|
8559
|
+
function getRawTag(value) {
|
|
8560
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
8561
|
+
tag = value[symToStringTag$1];
|
|
8562
|
+
|
|
8563
|
+
try {
|
|
8564
|
+
value[symToStringTag$1] = undefined;
|
|
8565
|
+
var unmasked = true;
|
|
8566
|
+
} catch (e) {}
|
|
8567
|
+
|
|
8568
|
+
var result = nativeObjectToString$1.call(value);
|
|
8569
|
+
if (unmasked) {
|
|
8570
|
+
if (isOwn) {
|
|
8571
|
+
value[symToStringTag$1] = tag;
|
|
8572
|
+
} else {
|
|
8573
|
+
delete value[symToStringTag$1];
|
|
8574
|
+
}
|
|
8575
|
+
}
|
|
8576
|
+
return result;
|
|
8577
|
+
}
|
|
8578
|
+
|
|
8579
|
+
/** Used for built-in method references. */
|
|
8580
|
+
var objectProto = Object.prototype;
|
|
8581
|
+
|
|
8582
|
+
/**
|
|
8583
|
+
* Used to resolve the
|
|
8584
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
8585
|
+
* of values.
|
|
8586
|
+
*/
|
|
8587
|
+
var nativeObjectToString = objectProto.toString;
|
|
8588
|
+
|
|
8589
|
+
/**
|
|
8590
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
8591
|
+
*
|
|
8592
|
+
* @private
|
|
8593
|
+
* @param {*} value The value to convert.
|
|
8594
|
+
* @returns {string} Returns the converted string.
|
|
8595
|
+
*/
|
|
8596
|
+
function objectToString(value) {
|
|
8597
|
+
return nativeObjectToString.call(value);
|
|
8598
|
+
}
|
|
8599
|
+
|
|
8600
|
+
/** `Object#toString` result references. */
|
|
8601
|
+
var nullTag = '[object Null]',
|
|
8602
|
+
undefinedTag = '[object Undefined]';
|
|
8603
|
+
|
|
8604
|
+
/** Built-in value references. */
|
|
8605
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
8606
|
+
|
|
8607
|
+
/**
|
|
8608
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
8609
|
+
*
|
|
8610
|
+
* @private
|
|
8611
|
+
* @param {*} value The value to query.
|
|
8612
|
+
* @returns {string} Returns the `toStringTag`.
|
|
8613
|
+
*/
|
|
8614
|
+
function baseGetTag(value) {
|
|
8615
|
+
if (value == null) {
|
|
8616
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
8617
|
+
}
|
|
8618
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
8619
|
+
? getRawTag(value)
|
|
8620
|
+
: objectToString(value);
|
|
8621
|
+
}
|
|
8622
|
+
|
|
8623
|
+
/**
|
|
8624
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
8625
|
+
* and has a `typeof` result of "object".
|
|
8626
|
+
*
|
|
8627
|
+
* @static
|
|
8628
|
+
* @memberOf _
|
|
8629
|
+
* @since 4.0.0
|
|
8630
|
+
* @category Lang
|
|
8631
|
+
* @param {*} value The value to check.
|
|
8632
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
8633
|
+
* @example
|
|
8634
|
+
*
|
|
8635
|
+
* _.isObjectLike({});
|
|
8636
|
+
* // => true
|
|
8637
|
+
*
|
|
8638
|
+
* _.isObjectLike([1, 2, 3]);
|
|
8639
|
+
* // => true
|
|
8640
|
+
*
|
|
8641
|
+
* _.isObjectLike(_.noop);
|
|
8642
|
+
* // => false
|
|
8643
|
+
*
|
|
8644
|
+
* _.isObjectLike(null);
|
|
8645
|
+
* // => false
|
|
8646
|
+
*/
|
|
8647
|
+
function isObjectLike(value) {
|
|
8648
|
+
return value != null && typeof value == 'object';
|
|
8649
|
+
}
|
|
8650
|
+
|
|
8651
|
+
/** `Object#toString` result references. */
|
|
8652
|
+
var symbolTag = '[object Symbol]';
|
|
8653
|
+
|
|
8654
|
+
/**
|
|
8655
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
8656
|
+
*
|
|
8657
|
+
* @static
|
|
8658
|
+
* @memberOf _
|
|
8659
|
+
* @since 4.0.0
|
|
8660
|
+
* @category Lang
|
|
8661
|
+
* @param {*} value The value to check.
|
|
8662
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
8663
|
+
* @example
|
|
8664
|
+
*
|
|
8665
|
+
* _.isSymbol(Symbol.iterator);
|
|
8666
|
+
* // => true
|
|
8667
|
+
*
|
|
8668
|
+
* _.isSymbol('abc');
|
|
8669
|
+
* // => false
|
|
8670
|
+
*/
|
|
8671
|
+
function isSymbol(value) {
|
|
8672
|
+
return typeof value == 'symbol' ||
|
|
8673
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
8674
|
+
}
|
|
8675
|
+
|
|
8676
|
+
/** Used to match a single whitespace character. */
|
|
8677
|
+
var reWhitespace = /\s/;
|
|
8678
|
+
|
|
8679
|
+
/**
|
|
8680
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
8681
|
+
* character of `string`.
|
|
8682
|
+
*
|
|
8683
|
+
* @private
|
|
8684
|
+
* @param {string} string The string to inspect.
|
|
8685
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
8686
|
+
*/
|
|
8687
|
+
function trimmedEndIndex(string) {
|
|
8688
|
+
var index = string.length;
|
|
8689
|
+
|
|
8690
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
8691
|
+
return index;
|
|
8692
|
+
}
|
|
8693
|
+
|
|
8694
|
+
/** Used to match leading whitespace. */
|
|
8695
|
+
var reTrimStart = /^\s+/;
|
|
8696
|
+
|
|
8697
|
+
/**
|
|
8698
|
+
* The base implementation of `_.trim`.
|
|
8699
|
+
*
|
|
8700
|
+
* @private
|
|
8701
|
+
* @param {string} string The string to trim.
|
|
8702
|
+
* @returns {string} Returns the trimmed string.
|
|
8703
|
+
*/
|
|
8704
|
+
function baseTrim(string) {
|
|
8705
|
+
return string
|
|
8706
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
8707
|
+
: string;
|
|
8708
|
+
}
|
|
8709
|
+
|
|
8710
|
+
/**
|
|
8711
|
+
* Checks if `value` is the
|
|
8712
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
8713
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
8714
|
+
*
|
|
8715
|
+
* @static
|
|
8716
|
+
* @memberOf _
|
|
8717
|
+
* @since 0.1.0
|
|
8718
|
+
* @category Lang
|
|
8719
|
+
* @param {*} value The value to check.
|
|
8720
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
8721
|
+
* @example
|
|
8722
|
+
*
|
|
8723
|
+
* _.isObject({});
|
|
8724
|
+
* // => true
|
|
8725
|
+
*
|
|
8726
|
+
* _.isObject([1, 2, 3]);
|
|
8727
|
+
* // => true
|
|
8728
|
+
*
|
|
8729
|
+
* _.isObject(_.noop);
|
|
8730
|
+
* // => true
|
|
8731
|
+
*
|
|
8732
|
+
* _.isObject(null);
|
|
8733
|
+
* // => false
|
|
8734
|
+
*/
|
|
8735
|
+
function isObject$1(value) {
|
|
8736
|
+
var type = typeof value;
|
|
8737
|
+
return value != null && (type == 'object' || type == 'function');
|
|
8738
|
+
}
|
|
8739
|
+
|
|
8740
|
+
/** Used as references for various `Number` constants. */
|
|
8741
|
+
var NAN = 0 / 0;
|
|
8742
|
+
|
|
8743
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
8744
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
8745
|
+
|
|
8746
|
+
/** Used to detect binary string values. */
|
|
8747
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
8748
|
+
|
|
8749
|
+
/** Used to detect octal string values. */
|
|
8750
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
8751
|
+
|
|
8752
|
+
/** Built-in method references without a dependency on `root`. */
|
|
8753
|
+
var freeParseInt = parseInt;
|
|
8754
|
+
|
|
8755
|
+
/**
|
|
8756
|
+
* Converts `value` to a number.
|
|
8757
|
+
*
|
|
8758
|
+
* @static
|
|
8759
|
+
* @memberOf _
|
|
8760
|
+
* @since 4.0.0
|
|
8761
|
+
* @category Lang
|
|
8762
|
+
* @param {*} value The value to process.
|
|
8763
|
+
* @returns {number} Returns the number.
|
|
8764
|
+
* @example
|
|
8765
|
+
*
|
|
8766
|
+
* _.toNumber(3.2);
|
|
8767
|
+
* // => 3.2
|
|
8768
|
+
*
|
|
8769
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
8770
|
+
* // => 5e-324
|
|
8771
|
+
*
|
|
8772
|
+
* _.toNumber(Infinity);
|
|
8773
|
+
* // => Infinity
|
|
8774
|
+
*
|
|
8775
|
+
* _.toNumber('3.2');
|
|
8776
|
+
* // => 3.2
|
|
8777
|
+
*/
|
|
8778
|
+
function toNumber(value) {
|
|
8779
|
+
if (typeof value == 'number') {
|
|
8780
|
+
return value;
|
|
8781
|
+
}
|
|
8782
|
+
if (isSymbol(value)) {
|
|
8783
|
+
return NAN;
|
|
8784
|
+
}
|
|
8785
|
+
if (isObject$1(value)) {
|
|
8786
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
8787
|
+
value = isObject$1(other) ? (other + '') : other;
|
|
8788
|
+
}
|
|
8789
|
+
if (typeof value != 'string') {
|
|
8790
|
+
return value === 0 ? value : +value;
|
|
8791
|
+
}
|
|
8792
|
+
value = baseTrim(value);
|
|
8793
|
+
var isBinary = reIsBinary.test(value);
|
|
8794
|
+
return (isBinary || reIsOctal.test(value))
|
|
8795
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
8796
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
8797
|
+
}
|
|
8798
|
+
|
|
8799
|
+
/**
|
|
8800
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
8801
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
8802
|
+
*
|
|
8803
|
+
* @static
|
|
8804
|
+
* @memberOf _
|
|
8805
|
+
* @since 2.4.0
|
|
8806
|
+
* @category Date
|
|
8807
|
+
* @returns {number} Returns the timestamp.
|
|
8808
|
+
* @example
|
|
8809
|
+
*
|
|
8810
|
+
* _.defer(function(stamp) {
|
|
8811
|
+
* console.log(_.now() - stamp);
|
|
8812
|
+
* }, _.now());
|
|
8813
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
8814
|
+
*/
|
|
8815
|
+
var now = function() {
|
|
8816
|
+
return root$1.Date.now();
|
|
8817
|
+
};
|
|
8818
|
+
|
|
8819
|
+
var now$1 = now;
|
|
8820
|
+
|
|
8821
|
+
/** Error message constants. */
|
|
8822
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
8823
|
+
|
|
8824
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
8825
|
+
var nativeMax = Math.max,
|
|
8826
|
+
nativeMin = Math.min;
|
|
8827
|
+
|
|
8828
|
+
/**
|
|
8829
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
8830
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
8831
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
8832
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
8833
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
8834
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
8835
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
8836
|
+
* calls to the debounced function return the result of the last `func`
|
|
8837
|
+
* invocation.
|
|
8838
|
+
*
|
|
8839
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
8840
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
8841
|
+
* is invoked more than once during the `wait` timeout.
|
|
8842
|
+
*
|
|
8843
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
8844
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
8845
|
+
*
|
|
8846
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
8847
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
8848
|
+
*
|
|
8849
|
+
* @static
|
|
8850
|
+
* @memberOf _
|
|
8851
|
+
* @since 0.1.0
|
|
8852
|
+
* @category Function
|
|
8853
|
+
* @param {Function} func The function to debounce.
|
|
8854
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
8855
|
+
* @param {Object} [options={}] The options object.
|
|
8856
|
+
* @param {boolean} [options.leading=false]
|
|
8857
|
+
* Specify invoking on the leading edge of the timeout.
|
|
8858
|
+
* @param {number} [options.maxWait]
|
|
8859
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
8860
|
+
* @param {boolean} [options.trailing=true]
|
|
8861
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
8862
|
+
* @returns {Function} Returns the new debounced function.
|
|
8863
|
+
* @example
|
|
8864
|
+
*
|
|
8865
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
8866
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
8867
|
+
*
|
|
8868
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
8869
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
8870
|
+
* 'leading': true,
|
|
8871
|
+
* 'trailing': false
|
|
8872
|
+
* }));
|
|
8873
|
+
*
|
|
8874
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
8875
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
8876
|
+
* var source = new EventSource('/stream');
|
|
8877
|
+
* jQuery(source).on('message', debounced);
|
|
8878
|
+
*
|
|
8879
|
+
* // Cancel the trailing debounced invocation.
|
|
8880
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
8881
|
+
*/
|
|
8882
|
+
function debounce(func, wait, options) {
|
|
8883
|
+
var lastArgs,
|
|
8884
|
+
lastThis,
|
|
8885
|
+
maxWait,
|
|
8886
|
+
result,
|
|
8887
|
+
timerId,
|
|
8888
|
+
lastCallTime,
|
|
8889
|
+
lastInvokeTime = 0,
|
|
8890
|
+
leading = false,
|
|
8891
|
+
maxing = false,
|
|
8892
|
+
trailing = true;
|
|
8893
|
+
|
|
8894
|
+
if (typeof func != 'function') {
|
|
8895
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
8896
|
+
}
|
|
8897
|
+
wait = toNumber(wait) || 0;
|
|
8898
|
+
if (isObject$1(options)) {
|
|
8899
|
+
leading = !!options.leading;
|
|
8900
|
+
maxing = 'maxWait' in options;
|
|
8901
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
8902
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
8903
|
+
}
|
|
8904
|
+
|
|
8905
|
+
function invokeFunc(time) {
|
|
8906
|
+
var args = lastArgs,
|
|
8907
|
+
thisArg = lastThis;
|
|
8908
|
+
|
|
8909
|
+
lastArgs = lastThis = undefined;
|
|
8910
|
+
lastInvokeTime = time;
|
|
8911
|
+
result = func.apply(thisArg, args);
|
|
8912
|
+
return result;
|
|
8913
|
+
}
|
|
8914
|
+
|
|
8915
|
+
function leadingEdge(time) {
|
|
8916
|
+
// Reset any `maxWait` timer.
|
|
8917
|
+
lastInvokeTime = time;
|
|
8918
|
+
// Start the timer for the trailing edge.
|
|
8919
|
+
timerId = setTimeout(timerExpired, wait);
|
|
8920
|
+
// Invoke the leading edge.
|
|
8921
|
+
return leading ? invokeFunc(time) : result;
|
|
8922
|
+
}
|
|
8923
|
+
|
|
8924
|
+
function remainingWait(time) {
|
|
8925
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
8926
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
8927
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
8928
|
+
|
|
8929
|
+
return maxing
|
|
8930
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
8931
|
+
: timeWaiting;
|
|
8932
|
+
}
|
|
8933
|
+
|
|
8934
|
+
function shouldInvoke(time) {
|
|
8935
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
8936
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
8937
|
+
|
|
8938
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
8939
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
8940
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
8941
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
8942
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
8943
|
+
}
|
|
8944
|
+
|
|
8945
|
+
function timerExpired() {
|
|
8946
|
+
var time = now$1();
|
|
8947
|
+
if (shouldInvoke(time)) {
|
|
8948
|
+
return trailingEdge(time);
|
|
8949
|
+
}
|
|
8950
|
+
// Restart the timer.
|
|
8951
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
8952
|
+
}
|
|
8953
|
+
|
|
8954
|
+
function trailingEdge(time) {
|
|
8955
|
+
timerId = undefined;
|
|
8956
|
+
|
|
8957
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
8958
|
+
// debounced at least once.
|
|
8959
|
+
if (trailing && lastArgs) {
|
|
8960
|
+
return invokeFunc(time);
|
|
8961
|
+
}
|
|
8962
|
+
lastArgs = lastThis = undefined;
|
|
8963
|
+
return result;
|
|
8964
|
+
}
|
|
8965
|
+
|
|
8966
|
+
function cancel() {
|
|
8967
|
+
if (timerId !== undefined) {
|
|
8968
|
+
clearTimeout(timerId);
|
|
8969
|
+
}
|
|
8970
|
+
lastInvokeTime = 0;
|
|
8971
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
8972
|
+
}
|
|
8973
|
+
|
|
8974
|
+
function flush() {
|
|
8975
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
8976
|
+
}
|
|
8977
|
+
|
|
8978
|
+
function debounced() {
|
|
8979
|
+
var time = now$1(),
|
|
8980
|
+
isInvoking = shouldInvoke(time);
|
|
8981
|
+
|
|
8982
|
+
lastArgs = arguments;
|
|
8983
|
+
lastThis = this;
|
|
8984
|
+
lastCallTime = time;
|
|
8985
|
+
|
|
8986
|
+
if (isInvoking) {
|
|
8987
|
+
if (timerId === undefined) {
|
|
8988
|
+
return leadingEdge(lastCallTime);
|
|
8989
|
+
}
|
|
8990
|
+
if (maxing) {
|
|
8991
|
+
// Handle invocations in a tight loop.
|
|
8992
|
+
clearTimeout(timerId);
|
|
8993
|
+
timerId = setTimeout(timerExpired, wait);
|
|
8994
|
+
return invokeFunc(lastCallTime);
|
|
8995
|
+
}
|
|
8996
|
+
}
|
|
8997
|
+
if (timerId === undefined) {
|
|
8998
|
+
timerId = setTimeout(timerExpired, wait);
|
|
8999
|
+
}
|
|
9000
|
+
return result;
|
|
9001
|
+
}
|
|
9002
|
+
debounced.cancel = cancel;
|
|
9003
|
+
debounced.flush = flush;
|
|
9004
|
+
return debounced;
|
|
9005
|
+
}
|
|
9006
|
+
|
|
8537
9007
|
class InputPasswordController extends InputIconController {
|
|
8538
9008
|
constructor(component, name, host) {
|
|
8539
9009
|
super(component, name, host);
|
|
8540
9010
|
this.afterSyncCharCounter = () => {
|
|
8541
9011
|
if (typeof this.component._value === 'string' && this.component._value.length > 0) {
|
|
8542
9012
|
this.component.state._currentLength = this.component._value.length;
|
|
9013
|
+
this.component.state._currentLengthDebounced = this.component._value.length;
|
|
8543
9014
|
}
|
|
8544
9015
|
};
|
|
9016
|
+
this.updateCurrentLengthDebounced = debounce((length) => {
|
|
9017
|
+
setState(this.component, '_currentLengthDebounced', length);
|
|
9018
|
+
}, 500);
|
|
8545
9019
|
this.component = component;
|
|
8546
9020
|
}
|
|
8547
9021
|
validateAutoComplete(value) {
|
|
@@ -8664,10 +9138,10 @@ class KolInputEmail {
|
|
|
8664
9138
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
8665
9139
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
8666
9140
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
8667
|
-
return (hAsync(Host, { key: '
|
|
9141
|
+
return (hAsync(Host, { key: '6c57a606b7ba37bb861b6fae65b328859d1a968b', class: {
|
|
8668
9142
|
'kol-input-email': true,
|
|
8669
9143
|
'has-value': this.state._hasValue,
|
|
8670
|
-
} }, hAsync(KolInputTag, { key: '
|
|
9144
|
+
} }, 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) => {
|
|
8671
9145
|
this.controller.onFacade.onFocus(event);
|
|
8672
9146
|
this.inputHasFocus = true;
|
|
8673
9147
|
}, onBlur: (event) => {
|
|
@@ -8690,6 +9164,7 @@ class KolInputEmail {
|
|
|
8690
9164
|
};
|
|
8691
9165
|
this.onInput = (event) => {
|
|
8692
9166
|
setState(this, '_currentLength', event.target.value.length);
|
|
9167
|
+
this.controller.updateCurrentLengthDebounced(event.target.value.length);
|
|
8693
9168
|
this.controller.onFacade.onInput(event);
|
|
8694
9169
|
};
|
|
8695
9170
|
this._accessKey = undefined;
|
|
@@ -8724,6 +9199,7 @@ class KolInputEmail {
|
|
|
8724
9199
|
this.state = {
|
|
8725
9200
|
_autoComplete: 'off',
|
|
8726
9201
|
_currentLength: 0,
|
|
9202
|
+
_currentLengthDebounced: 0,
|
|
8727
9203
|
_hasValue: false,
|
|
8728
9204
|
_hideError: false,
|
|
8729
9205
|
_id: `id-${nonce()}`,
|
|
@@ -9514,13 +9990,13 @@ class KolInputPassword {
|
|
|
9514
9990
|
render() {
|
|
9515
9991
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
9516
9992
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9517
|
-
return (hAsync(Host, { key: '
|
|
9993
|
+
return (hAsync(Host, { key: 'd53cee1707ec75ae565309eab98ce749fc94f95d', class: {
|
|
9518
9994
|
'kol-input-password': true,
|
|
9519
9995
|
'has-value': this.state._hasValue,
|
|
9520
|
-
} }, hAsync(KolInputTag, { key: '
|
|
9996
|
+
} }, hAsync(KolInputTag, { key: '7b5d974cdc73afe036cbe424c27a866e07ce1400', class: {
|
|
9521
9997
|
'hide-label': !!this.state._hideLabel,
|
|
9522
9998
|
password: true,
|
|
9523
|
-
}, _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: '
|
|
9999
|
+
}, _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) => {
|
|
9524
10000
|
this.controller.onFacade.onFocus(event);
|
|
9525
10001
|
this.inputHasFocus = true;
|
|
9526
10002
|
}, onBlur: (event) => {
|
|
@@ -9547,6 +10023,7 @@ class KolInputPassword {
|
|
|
9547
10023
|
};
|
|
9548
10024
|
this.onInput = (event) => {
|
|
9549
10025
|
setState(this, '_currentLength', event.target.value.length);
|
|
10026
|
+
this.controller.updateCurrentLengthDebounced(event.target.value.length);
|
|
9550
10027
|
this.controller.onFacade.onInput(event);
|
|
9551
10028
|
};
|
|
9552
10029
|
this._accessKey = undefined;
|
|
@@ -9580,6 +10057,7 @@ class KolInputPassword {
|
|
|
9580
10057
|
this.state = {
|
|
9581
10058
|
_autoComplete: 'off',
|
|
9582
10059
|
_currentLength: 0,
|
|
10060
|
+
_currentLengthDebounced: 0,
|
|
9583
10061
|
_hasValue: false,
|
|
9584
10062
|
_hideError: false,
|
|
9585
10063
|
_id: `id-${nonce()}`,
|
|
@@ -10352,13 +10830,13 @@ class KolInputText {
|
|
|
10352
10830
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
10353
10831
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
10354
10832
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
10355
|
-
return (hAsync(Host, { key: '
|
|
10833
|
+
return (hAsync(Host, { key: 'b17b30056c0636149b29724ac95b958684f9637e', class: {
|
|
10356
10834
|
'has-value': this.state._hasValue,
|
|
10357
10835
|
'kol-input-text': true,
|
|
10358
|
-
} }, hAsync(KolInputTag, { key: '
|
|
10836
|
+
} }, hAsync(KolInputTag, { key: '0440727702a29ba67e89d426e6401d2c6836d706', class: {
|
|
10359
10837
|
[this.state._type]: true,
|
|
10360
10838
|
'hide-label': !!this.state._hideLabel,
|
|
10361
|
-
}, _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: '
|
|
10839
|
+
}, _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) => {
|
|
10362
10840
|
this.controller.onFacade.onFocus(event);
|
|
10363
10841
|
this.inputHasFocus = true;
|
|
10364
10842
|
}, onBlur: (event) => {
|
|
@@ -10380,6 +10858,7 @@ class KolInputText {
|
|
|
10380
10858
|
};
|
|
10381
10859
|
this.onInput = (event) => {
|
|
10382
10860
|
setState(this, '_currentLength', event.target.value.length);
|
|
10861
|
+
this.controller.updateCurrentLengthDebounced(event.target.value.length);
|
|
10383
10862
|
this.controller.onFacade.onInput(event);
|
|
10384
10863
|
};
|
|
10385
10864
|
this.onKeyDown = (event) => {
|
|
@@ -10423,6 +10902,7 @@ class KolInputText {
|
|
|
10423
10902
|
this.state = {
|
|
10424
10903
|
_autoComplete: 'off',
|
|
10425
10904
|
_currentLength: 0,
|
|
10905
|
+
_currentLengthDebounced: 0,
|
|
10426
10906
|
_hasValue: false,
|
|
10427
10907
|
_hideError: false,
|
|
10428
10908
|
_id: `id-${nonce()}`,
|
|
@@ -10626,6 +11106,7 @@ class KolInputWc {
|
|
|
10626
11106
|
this._accessKey = undefined;
|
|
10627
11107
|
this._alert = true;
|
|
10628
11108
|
this._currentLength = undefined;
|
|
11109
|
+
this._currentLengthDebounced = undefined;
|
|
10629
11110
|
this._disabled = false;
|
|
10630
11111
|
this._hasCounter = false;
|
|
10631
11112
|
this._hideError = false;
|
|
@@ -10670,7 +11151,7 @@ class KolInputWc {
|
|
|
10670
11151
|
input: true,
|
|
10671
11152
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
10672
11153
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
10673
|
-
} }, ((_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: '
|
|
11154
|
+
} }, ((_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'))))));
|
|
10674
11155
|
}
|
|
10675
11156
|
getModifierClassNameByMsgType(showMsg) {
|
|
10676
11157
|
var _a, _b;
|
|
@@ -10692,6 +11173,7 @@ class KolInputWc {
|
|
|
10692
11173
|
"_accessKey": [1, "_access-key"],
|
|
10693
11174
|
"_alert": [4],
|
|
10694
11175
|
"_currentLength": [2, "_current-length"],
|
|
11176
|
+
"_currentLengthDebounced": [2, "_current-length-debounced"],
|
|
10695
11177
|
"_disabled": [4],
|
|
10696
11178
|
"_hasCounter": [4, "_has-counter"],
|
|
10697
11179
|
"_hideError": [4, "_hide-error"],
|
|
@@ -10750,7 +11232,7 @@ class KolKolibri {
|
|
|
10750
11232
|
}
|
|
10751
11233
|
render() {
|
|
10752
11234
|
const fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;
|
|
10753
|
-
return (hAsync(Host, { key: '
|
|
11235
|
+
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")))));
|
|
10754
11236
|
}
|
|
10755
11237
|
validateColor(value) {
|
|
10756
11238
|
validateColor(this, value, {
|
|
@@ -10823,7 +11305,7 @@ class KolLink {
|
|
|
10823
11305
|
await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
10824
11306
|
}
|
|
10825
11307
|
render() {
|
|
10826
|
-
return (hAsync(Host, { key: '
|
|
11308
|
+
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" }))));
|
|
10827
11309
|
}
|
|
10828
11310
|
static get delegatesFocus() { return true; }
|
|
10829
11311
|
static get style() { return {
|
|
@@ -10892,9 +11374,9 @@ class KolLinkButton {
|
|
|
10892
11374
|
await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
10893
11375
|
}
|
|
10894
11376
|
render() {
|
|
10895
|
-
return (hAsync(Host, { key: '
|
|
11377
|
+
return (hAsync(Host, { key: '2060e9972d3e35203f8f2a64db28edfd5934886f', class: "kol-link-button" }, hAsync(KolLinkWcTag, { key: 'c773d23014fcd4f364e419f24f06e307d25324d4', ref: this.catchRef, class: {
|
|
10896
11378
|
button: true,
|
|
10897
|
-
}, _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: '
|
|
11379
|
+
}, _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" }))));
|
|
10898
11380
|
}
|
|
10899
11381
|
static get delegatesFocus() { return true; }
|
|
10900
11382
|
static get style() { return {
|
|
@@ -10961,10 +11443,10 @@ class KolLinkGroup {
|
|
|
10961
11443
|
}
|
|
10962
11444
|
render() {
|
|
10963
11445
|
const ListTag = this.isUl ? 'ul' : 'ol';
|
|
10964
|
-
return (hAsync(Host, { key: '
|
|
11446
|
+
return (hAsync(Host, { key: 'f022377c671dd28a32301b5b70a6f99e5e695a95', class: "kol-link-group" }, hAsync(ListTag, { key: 'daee992a78bd6bf425c211fdde871de3a487f994', "aria-label": this.state._label, class: {
|
|
10965
11447
|
vertical: this.state._orientation === 'vertical',
|
|
10966
11448
|
horizontal: this.state._orientation === 'horizontal',
|
|
10967
|
-
} }, hAsync(ListItem, { key: '
|
|
11449
|
+
} }, hAsync(ListItem, { key: 'd1b2ef6b3af0b8d7c96f006cf0020ba82b97ae37', links: this.state._links, orientation: this.state._orientation, listStyleType: this.state._listStyleType }))));
|
|
10968
11450
|
}
|
|
10969
11451
|
validateLabel(value, _oldValue, initial = false) {
|
|
10970
11452
|
if (!initial && this.state._label) {
|
|
@@ -11115,7 +11597,7 @@ class KolLinkWc {
|
|
|
11115
11597
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
11116
11598
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
11117
11599
|
const hasAriaDescription = Boolean((_b = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim()) === null || _b === void 0 ? void 0 : _b.length);
|
|
11118
|
-
return (hAsync(Host, { key: '
|
|
11600
|
+
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'
|
|
11119
11601
|
? `${this.state._label}${isExternal ? ` (${translate('kol-open-link-in-tab')})` : ''}`
|
|
11120
11602
|
: undefined, class: {
|
|
11121
11603
|
disabled: this.state._disabled === true,
|
|
@@ -11123,7 +11605,7 @@ class KolLinkWc {
|
|
|
11123
11605
|
'hide-label': this.state._hideLabel === true,
|
|
11124
11606
|
[this.state._variant]: this.state._variant !== 'custom',
|
|
11125
11607
|
[this.state._customClass]: this.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
11126
|
-
} }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanWcTag, { key: '
|
|
11608
|
+
} }, 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))));
|
|
11127
11609
|
}
|
|
11128
11610
|
validateAccessKey(value) {
|
|
11129
11611
|
validateAccessKey(this, value);
|
|
@@ -11476,7 +11958,7 @@ class KolLogo {
|
|
|
11476
11958
|
}
|
|
11477
11959
|
render() {
|
|
11478
11960
|
var _a;
|
|
11479
|
-
return (hAsync(Host, { key: '
|
|
11961
|
+
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) => {
|
|
11480
11962
|
return (hAsync("tspan", { x: "0", dy: "1.1em", key: `kol-logo-text-${index}` }, text));
|
|
11481
11963
|
}))) : (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."))))))));
|
|
11482
11964
|
}
|
|
@@ -11538,11 +12020,11 @@ class KolModal {
|
|
|
11538
12020
|
(_b = (_a = this.refDialog) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
11539
12021
|
}
|
|
11540
12022
|
render() {
|
|
11541
|
-
return (hAsync("dialog", { key: '
|
|
12023
|
+
return (hAsync("dialog", { key: '894ddd0ad3ca225cc54cbbe10bc4c70b1170aaac', class: "kol-modal", ref: (el) => {
|
|
11542
12024
|
this.refDialog = el;
|
|
11543
12025
|
}, style: {
|
|
11544
12026
|
width: this.state._width,
|
|
11545
|
-
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: '
|
|
12027
|
+
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: 'bd71fa9c01bd98b6fc0ab783554d50e3f5d5d05b' }, hAsync("slot", { key: 'aa88fbc590eb357d4d760741515fefe01aa656b6' }))));
|
|
11546
12028
|
}
|
|
11547
12029
|
validateActiveElement(value) {
|
|
11548
12030
|
watchValidator(this, '_activeElement', (value) => typeof value === 'object' || value === null, new Set(['HTMLElement', 'null']), value, {
|
|
@@ -11692,6 +12174,7 @@ class KolNav {
|
|
|
11692
12174
|
}, 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 })));
|
|
11693
12175
|
}
|
|
11694
12176
|
initializeExpandedChildren() {
|
|
12177
|
+
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
11695
12178
|
const handleBranch = (branch) => {
|
|
11696
12179
|
if (branch._active) {
|
|
11697
12180
|
if (branch._children) {
|
|
@@ -11720,11 +12203,11 @@ class KolNav {
|
|
|
11720
12203
|
const collapsible = this.state._collapsible === true;
|
|
11721
12204
|
const hideLabel = this.state._hideLabel === true;
|
|
11722
12205
|
const orientation = this.state._orientation;
|
|
11723
|
-
return (hAsync(Host, { key: '
|
|
12206
|
+
return (hAsync(Host, { key: 'bcd3d3425423a241def22c80072236a0ca1af502', class: "kol-nav" }, hAsync("div", { key: '4847c97f6b9d13332a0e3823a4c2e65ee92b2f67', class: {
|
|
11724
12207
|
nav: true,
|
|
11725
12208
|
[orientation]: true,
|
|
11726
12209
|
'is-compact': this.state._hideLabel,
|
|
11727
|
-
} }, hAsync("nav", { key: '
|
|
12210
|
+
} }, 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: {
|
|
11728
12211
|
onClick: () => {
|
|
11729
12212
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
11730
12213
|
},
|
|
@@ -11755,6 +12238,7 @@ class KolNav {
|
|
|
11755
12238
|
validateLinks(value) {
|
|
11756
12239
|
watchNavLinks('KolNav', this, value);
|
|
11757
12240
|
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
12241
|
+
this.initializeExpandedChildren();
|
|
11758
12242
|
}
|
|
11759
12243
|
validateOrientation(value) {
|
|
11760
12244
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -11991,14 +12475,16 @@ class KolPagination {
|
|
|
11991
12475
|
}, _value: [this.state._pageSize] }))));
|
|
11992
12476
|
}
|
|
11993
12477
|
getUnselectedPageButton(page) {
|
|
11994
|
-
|
|
12478
|
+
const pageText = NUMBER_FORMATTER.format(page);
|
|
12479
|
+
return (hAsync("li", { key: nonce() }, hAsync(KolButtonWcTag, { _ariaDescription: `${translate('kol-page')} ${pageText}`, _customClass: this.state._customClass, _label: pageText, _on: {
|
|
11995
12480
|
onClick: (event) => {
|
|
11996
12481
|
this.onClick(event, page);
|
|
11997
12482
|
},
|
|
11998
|
-
} }
|
|
12483
|
+
} })));
|
|
11999
12484
|
}
|
|
12000
12485
|
getSelectedPageButton(page) {
|
|
12001
|
-
|
|
12486
|
+
const pageText = NUMBER_FORMATTER.format(page);
|
|
12487
|
+
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 })));
|
|
12002
12488
|
}
|
|
12003
12489
|
validateBoundaryCount(value) {
|
|
12004
12490
|
watchNumber(this, '_boundaryCount', Math.max(0, value !== null && value !== void 0 ? value : 1));
|
|
@@ -14338,7 +14824,7 @@ class KolPopover {
|
|
|
14338
14824
|
});
|
|
14339
14825
|
}
|
|
14340
14826
|
render() {
|
|
14341
|
-
return (hAsync(Host, { key: '
|
|
14827
|
+
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' }))));
|
|
14342
14828
|
}
|
|
14343
14829
|
validateAlign(value) {
|
|
14344
14830
|
validateAlign(this, value);
|
|
@@ -14461,11 +14947,11 @@ class KolPopoverButton {
|
|
|
14461
14947
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
14462
14948
|
}
|
|
14463
14949
|
render() {
|
|
14464
|
-
return (hAsync("div", { key: '
|
|
14950
|
+
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) => {
|
|
14465
14951
|
var _a, _b;
|
|
14466
14952
|
this.handleButtonClick();
|
|
14467
14953
|
(_b = (_a = this._on) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event, value);
|
|
14468
|
-
} }), _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: '
|
|
14954
|
+
} }), _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' }))));
|
|
14469
14955
|
}
|
|
14470
14956
|
validatePopoverAlign(value) {
|
|
14471
14957
|
validatePopoverAlign(this, value);
|
|
@@ -14556,10 +15042,10 @@ class KolProgress {
|
|
|
14556
15042
|
const isPercentage = this.state._unit === '%';
|
|
14557
15043
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}%` : this.state._liveValue;
|
|
14558
15044
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
14559
|
-
return (hAsync(Host, { key: '
|
|
15045
|
+
return (hAsync(Host, { key: 'acccccbfd2ceb0afc154e059df308e31b4ed506e', class: "kol-progress" }, hAsync("div", { key: 'df5526c148f6da0bab6a6f9b4b5b70eeabdb821e', "aria-hidden": "true", class: {
|
|
14560
15046
|
cycle: this.state._variant === 'cycle',
|
|
14561
15047
|
bar: this.state._variant === 'bar',
|
|
14562
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
15048
|
+
} }, 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}`)));
|
|
14563
15049
|
}
|
|
14564
15050
|
validateLabel(value) {
|
|
14565
15051
|
validateLabel(this, value);
|
|
@@ -14668,9 +15154,9 @@ class KolQuote {
|
|
|
14668
15154
|
}
|
|
14669
15155
|
render() {
|
|
14670
15156
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
14671
|
-
return (hAsync(Host, { key: '
|
|
15157
|
+
return (hAsync(Host, { key: '8f2cbdcdf70ca047200e7db9534c84e127c39a93', class: "kol-quote" }, hAsync("figure", { key: '7e1caffee8775084765a592ac547ab3efd7d04fe', class: {
|
|
14672
15158
|
[this.state._variant]: true,
|
|
14673
|
-
} }, 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: '
|
|
15159
|
+
} }, 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" })))))));
|
|
14674
15160
|
}
|
|
14675
15161
|
static get watchers() { return {
|
|
14676
15162
|
"_label": ["validateLabel"],
|
|
@@ -14808,16 +15294,16 @@ class KolSelect {
|
|
|
14808
15294
|
render() {
|
|
14809
15295
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
14810
15296
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
14811
|
-
return (hAsync(Host, { key: '
|
|
15297
|
+
return (hAsync(Host, { key: '138f37117db51c51d5ce73df3bf2274357f67238', class: { 'kol-select': true, 'has-value': this.state._hasValue } }, hAsync(KolInputTag, { key: 'efe6a56a163014598d4d9239bf4e9b7747fd0601', class: {
|
|
14812
15298
|
'hide-label': !!this.state._hideLabel,
|
|
14813
15299
|
select: true,
|
|
14814
|
-
}, _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: '
|
|
15300
|
+
}, _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) => {
|
|
14815
15301
|
event.preventDefault();
|
|
14816
15302
|
propagateSubmitEventToForm({
|
|
14817
15303
|
form: this.host,
|
|
14818
15304
|
ref: this.selectRef,
|
|
14819
15305
|
});
|
|
14820
|
-
} }, hAsync("input", { key: '
|
|
15306
|
+
} }, 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) => {
|
|
14821
15307
|
this.controller.onFacade.onFocus(event);
|
|
14822
15308
|
this.inputHasFocus = true;
|
|
14823
15309
|
}, onBlur: (event) => {
|
|
@@ -15097,9 +15583,13 @@ class KolSingleSelect {
|
|
|
15097
15583
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15098
15584
|
}
|
|
15099
15585
|
onBlur() {
|
|
15100
|
-
var _a;
|
|
15101
|
-
|
|
15102
|
-
|
|
15586
|
+
var _a, _b, _c;
|
|
15587
|
+
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()); });
|
|
15588
|
+
if (matchingOption) {
|
|
15589
|
+
this.selectOption(matchingOption);
|
|
15590
|
+
}
|
|
15591
|
+
else {
|
|
15592
|
+
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;
|
|
15103
15593
|
this._filteredOptions = [...this.state._options];
|
|
15104
15594
|
}
|
|
15105
15595
|
this._isOpen = false;
|
|
@@ -15110,13 +15600,13 @@ class KolSingleSelect {
|
|
|
15110
15600
|
return;
|
|
15111
15601
|
}
|
|
15112
15602
|
else {
|
|
15113
|
-
const emptyValue =
|
|
15603
|
+
const emptyValue = null;
|
|
15114
15604
|
this._focusedOptionIndex = -1;
|
|
15115
15605
|
this._value = emptyValue;
|
|
15116
|
-
this._inputValue =
|
|
15606
|
+
this._inputValue = '';
|
|
15117
15607
|
this._filteredOptions = [...this.state._options];
|
|
15118
|
-
this.controller.onFacade.onInput(new CustomEvent('input', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), true, emptyValue);
|
|
15119
|
-
this.controller.onFacade.onChange(new CustomEvent('change', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), emptyValue);
|
|
15608
|
+
this.controller.onFacade.onInput(new CustomEvent('input', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), true, { value: emptyValue });
|
|
15609
|
+
this.controller.onFacade.onChange(new CustomEvent('change', { bubbles: true, detail: { name: this.state._name, value: emptyValue } }), { value: emptyValue });
|
|
15120
15610
|
}
|
|
15121
15611
|
}
|
|
15122
15612
|
selectOption(option) {
|
|
@@ -15184,17 +15674,17 @@ class KolSingleSelect {
|
|
|
15184
15674
|
var _a;
|
|
15185
15675
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
15186
15676
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
15187
|
-
return (hAsync(Host, { key: '
|
|
15677
|
+
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) => {
|
|
15188
15678
|
this.controller.onFacade.onFocus(event);
|
|
15189
15679
|
this.inputHasFocus = true;
|
|
15190
15680
|
}, onBlur: (event) => {
|
|
15191
15681
|
this.controller.onFacade.onBlur(event);
|
|
15192
15682
|
this.inputHasFocus = false;
|
|
15193
|
-
}, placeholder: this.state._placeholder })), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: '
|
|
15683
|
+
}, placeholder: this.state._placeholder })), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: 'bb693e6367410321d3039f1e51bd6e330906e713', _icons: "codicon codicon-close", _label: translate('kol-delete-selection'), onClick: () => {
|
|
15194
15684
|
var _a;
|
|
15195
15685
|
this.clearSelection();
|
|
15196
15686
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15197
|
-
}, class: "single-select__delete" })), hAsync("button", { key: '
|
|
15687
|
+
}, 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) => {
|
|
15198
15688
|
if (el)
|
|
15199
15689
|
this.refOptions[index] = el;
|
|
15200
15690
|
}, tabIndex: -1, role: "option", "aria-selected": this._value === option.value ? 'true' : undefined, onClick: (event) => {
|
|
@@ -15576,7 +16066,7 @@ class KolSkipNav {
|
|
|
15576
16066
|
};
|
|
15577
16067
|
}
|
|
15578
16068
|
render() {
|
|
15579
|
-
return (hAsync(Host, { key: '
|
|
16069
|
+
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) => {
|
|
15580
16070
|
return (hAsync("li", { key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
15581
16071
|
})))));
|
|
15582
16072
|
}
|
|
@@ -23964,10 +24454,10 @@ class KolSpanWc {
|
|
|
23964
24454
|
render() {
|
|
23965
24455
|
var _a, _b, _c, _d, _e;
|
|
23966
24456
|
const hideExpertSlot = !showExpertSlot(this.state._label);
|
|
23967
|
-
return (hAsync(Host, { key: '
|
|
24457
|
+
return (hAsync(Host, { key: '61c2a5584c2099d943d708443fbc4b6d5dd287f2', class: {
|
|
23968
24458
|
'kol-span-wc': true,
|
|
23969
24459
|
'hide-label': !!this.state._hideLabel,
|
|
23970
|
-
} }, this.state._icons.top && (hAsync(KolIconTag, { key: '
|
|
24460
|
+
} }, 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 }))));
|
|
23971
24461
|
}
|
|
23972
24462
|
validateBadgeText(value) {
|
|
23973
24463
|
validateBadgeText(this, value);
|
|
@@ -24045,7 +24535,7 @@ class KolSpin {
|
|
|
24045
24535
|
};
|
|
24046
24536
|
}
|
|
24047
24537
|
render() {
|
|
24048
|
-
return (hAsync(Host, { key: '
|
|
24538
|
+
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: {
|
|
24049
24539
|
spin: true,
|
|
24050
24540
|
[this.state._variant]: true,
|
|
24051
24541
|
}, role: "alert" }, renderSpin(this.state._variant))) : (this.showToggled && hAsync("span", { "aria-label": translate('kol-action-done'), "aria-busy": "false", "aria-live": "polite", role: "alert" }))));
|
|
@@ -24130,10 +24620,10 @@ class KolSplitButton {
|
|
|
24130
24620
|
}
|
|
24131
24621
|
render() {
|
|
24132
24622
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
24133
|
-
return (hAsync(Host, { key: '
|
|
24623
|
+
return (hAsync(Host, { key: 'cf6ac525bf85bfb0fe16d7275808b1c2466be185', class: "kol-split-button" }, hAsync("div", { key: 'e508675a55f10001239c47362c569e7ce3991dd5', class: "split-button-root" }, hAsync(KolButtonWcTag, { key: '59b44b060c2e949191e3da275e11b1e67c34159a', class: {
|
|
24134
24624
|
'main-button': true,
|
|
24135
24625
|
button: true,
|
|
24136
|
-
}, _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: '
|
|
24626
|
+
}, _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' }))));
|
|
24137
24627
|
}
|
|
24138
24628
|
async closePopup() {
|
|
24139
24629
|
this.handleOnClose();
|
|
@@ -24185,7 +24675,7 @@ class KolSymbol {
|
|
|
24185
24675
|
};
|
|
24186
24676
|
}
|
|
24187
24677
|
render() {
|
|
24188
|
-
return (hAsync(Host, { key: '
|
|
24678
|
+
return (hAsync(Host, { key: '09195f2f3abd530937a2f1fb5a879f0cb38d7657', class: "kol-symbol" }, hAsync("span", { key: '597e49d33699b0f4ea2918e685bdd3f6e2ca5dab', "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
24189
24679
|
}
|
|
24190
24680
|
validateLabel(value) {
|
|
24191
24681
|
validateLabel(this, value, {
|
|
@@ -24234,7 +24724,7 @@ class KolTable {
|
|
|
24234
24724
|
this._on = undefined;
|
|
24235
24725
|
}
|
|
24236
24726
|
render() {
|
|
24237
|
-
return (hAsync(KolTableStatefulTag, { key: '
|
|
24727
|
+
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 }));
|
|
24238
24728
|
}
|
|
24239
24729
|
static get cmpMeta() { return {
|
|
24240
24730
|
"$flags$": 9,
|
|
@@ -24663,7 +25153,7 @@ class KolTableStateful {
|
|
|
24663
25153
|
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) })))),
|
|
24664
25154
|
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) })))),
|
|
24665
25155
|
};
|
|
24666
|
-
return (hAsync(Host, { key: '
|
|
25156
|
+
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: {
|
|
24667
25157
|
onSort: (_, payload) => {
|
|
24668
25158
|
this.handleSort(payload);
|
|
24669
25159
|
},
|
|
@@ -24726,7 +25216,7 @@ class KolTableStateless$1 {
|
|
|
24726
25216
|
this._selection = undefined;
|
|
24727
25217
|
}
|
|
24728
25218
|
render() {
|
|
24729
|
-
return (hAsync(Host, { key: '
|
|
25219
|
+
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 })));
|
|
24730
25220
|
}
|
|
24731
25221
|
static get style() { return {
|
|
24732
25222
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24929,28 +25419,28 @@ class KolTableStateless {
|
|
|
24929
25419
|
}
|
|
24930
25420
|
return max;
|
|
24931
25421
|
}
|
|
24932
|
-
|
|
24933
|
-
const
|
|
25422
|
+
getThePrimaryHeadersWithKeyOrRenderFunction(headers) {
|
|
25423
|
+
const primaryHeaders = [];
|
|
24934
25424
|
headers.forEach((cells) => {
|
|
24935
25425
|
cells.forEach((cell) => {
|
|
24936
|
-
if (typeof cell.key === 'string') {
|
|
24937
|
-
|
|
25426
|
+
if (typeof cell.key === 'string' || typeof cell.render === 'function') {
|
|
25427
|
+
primaryHeaders.push(cell);
|
|
24938
25428
|
}
|
|
24939
25429
|
});
|
|
24940
25430
|
});
|
|
24941
|
-
return
|
|
25431
|
+
return primaryHeaders;
|
|
24942
25432
|
}
|
|
24943
25433
|
getPrimaryHeaders(headers) {
|
|
24944
25434
|
var _a, _b;
|
|
24945
|
-
let
|
|
25435
|
+
let primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
24946
25436
|
this.horizontal = true;
|
|
24947
|
-
if (
|
|
24948
|
-
|
|
24949
|
-
if (
|
|
25437
|
+
if (primaryHeaders.length === 0) {
|
|
25438
|
+
primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
25439
|
+
if (primaryHeaders.length > 0) {
|
|
24950
25440
|
this.horizontal = false;
|
|
24951
25441
|
}
|
|
24952
25442
|
}
|
|
24953
|
-
return
|
|
25443
|
+
return primaryHeaders;
|
|
24954
25444
|
}
|
|
24955
25445
|
createDataField(data, headers, isFoot) {
|
|
24956
25446
|
var _a;
|
|
@@ -24999,18 +25489,18 @@ class KolTableStateless {
|
|
|
24999
25489
|
const row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];
|
|
25000
25490
|
if (typeof primaryHeader[j] === 'object' &&
|
|
25001
25491
|
primaryHeader[j] !== null &&
|
|
25002
|
-
typeof primaryHeader[j].key === 'string' &&
|
|
25003
25492
|
typeof row === 'object' &&
|
|
25004
|
-
row !== null
|
|
25493
|
+
row !== null &&
|
|
25494
|
+
(typeof primaryHeader[j].key === 'string' || typeof primaryHeader[j].render === 'function')) {
|
|
25005
25495
|
dataRow.push(Object.assign(Object.assign({}, primaryHeader[j]), { colSpan: undefined, data: row, label: row[primaryHeader[j].key], rowSpan: undefined }));
|
|
25006
25496
|
}
|
|
25007
25497
|
}
|
|
25008
25498
|
else {
|
|
25009
25499
|
if (typeof primaryHeader[i] === 'object' &&
|
|
25010
25500
|
primaryHeader[i] !== null &&
|
|
25011
|
-
typeof primaryHeader[i].key === 'string' &&
|
|
25012
25501
|
typeof data[j] === 'object' &&
|
|
25013
|
-
data[j] !== null
|
|
25502
|
+
data[j] !== null &&
|
|
25503
|
+
(typeof primaryHeader[i].key === 'string' || typeof primaryHeader[i].render === 'function')) {
|
|
25014
25504
|
dataRow.push(Object.assign(Object.assign({}, primaryHeader[i]), { colSpan: undefined, data: data[j], label: data[j][primaryHeader[i].key], rowSpan: undefined }));
|
|
25015
25505
|
}
|
|
25016
25506
|
}
|
|
@@ -25126,7 +25616,7 @@ class KolTableStateless {
|
|
|
25126
25616
|
Array.isArray(this.state._headerCells.horizontal) && (hAsync("td", { "aria-hidden": "true", colSpan: this.state._headerCells.vertical.length, rowSpan: this.state._headerCells.horizontal.length }))));
|
|
25127
25617
|
}
|
|
25128
25618
|
renderHeadingCell(cell, rowIndex, colIndex, isVertical) {
|
|
25129
|
-
let ariaSort =
|
|
25619
|
+
let ariaSort = 'none';
|
|
25130
25620
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
25131
25621
|
if (cell.sortDirection) {
|
|
25132
25622
|
switch (cell.sortDirection) {
|
|
@@ -25138,6 +25628,8 @@ class KolTableStateless {
|
|
|
25138
25628
|
sortButtonIcon = 'codicon codicon-chevron-down';
|
|
25139
25629
|
ariaSort = 'descending';
|
|
25140
25630
|
break;
|
|
25631
|
+
default:
|
|
25632
|
+
ariaSort = 'none';
|
|
25141
25633
|
}
|
|
25142
25634
|
}
|
|
25143
25635
|
const scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';
|
|
@@ -25175,9 +25667,9 @@ class KolTableStateless {
|
|
|
25175
25667
|
render() {
|
|
25176
25668
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
25177
25669
|
this.checkboxRefs = [];
|
|
25178
|
-
return (hAsync(Host, { key: '
|
|
25670
|
+
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: {
|
|
25179
25671
|
minWidth: this.state._deprecatedMinWidth || this.state._minWidth,
|
|
25180
|
-
} }, hAsync("div", { key: '
|
|
25672
|
+
} }, 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' }, [
|
|
25181
25673
|
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) &&
|
|
25182
25674
|
cols.map((cell, colIndex) => {
|
|
25183
25675
|
if (cell.asTd === true) {
|
|
@@ -25197,7 +25689,7 @@ class KolTableStateless {
|
|
|
25197
25689
|
}
|
|
25198
25690
|
})))),
|
|
25199
25691
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
25200
|
-
])), hAsync("tbody", { key: '
|
|
25692
|
+
])), hAsync("tbody", { key: '9d11add32fd084710d56c029262646a724e4bafe' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
25201
25693
|
}
|
|
25202
25694
|
get host() { return getElement(this); }
|
|
25203
25695
|
static get watchers() { return {
|
|
@@ -25435,11 +25927,11 @@ class KolTabs {
|
|
|
25435
25927
|
} }))));
|
|
25436
25928
|
}
|
|
25437
25929
|
render() {
|
|
25438
|
-
return (hAsync(Host, { key: '
|
|
25930
|
+
return (hAsync(Host, { key: '0742bb2f0a3ac2ccb77c42b5205311d68b55900d', class: "kol-tabs" }, hAsync("div", { key: '51fa48d177a1d5f460953d271eb446d65e7a32e7', ref: (el) => {
|
|
25439
25931
|
this.tabPanelsElement = el;
|
|
25440
25932
|
}, class: {
|
|
25441
25933
|
[`tabs-align-${this.state._align}`]: true,
|
|
25442
|
-
} }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
25934
|
+
} }, this.renderButtonGroup(), hAsync("div", { key: '01d820886238951d95a70969023c28f8888c76d1', class: "tabs-content", ref: this.catchTabPanelHost }))));
|
|
25443
25935
|
}
|
|
25444
25936
|
validateAlign(value) {
|
|
25445
25937
|
validateAlign(this, value);
|
|
@@ -25566,8 +26058,12 @@ class TextareaController extends InputIconController {
|
|
|
25566
26058
|
this.afterSyncCharCounter = () => {
|
|
25567
26059
|
if (typeof this.component._value === 'string' && this.component._value.length > 0) {
|
|
25568
26060
|
this.component.state._currentLength = this.component._value.length;
|
|
26061
|
+
this.component.state._currentLengthDebounced = this.component._value.length;
|
|
25569
26062
|
}
|
|
25570
26063
|
};
|
|
26064
|
+
this.updateCurrentLengthDebounced = debounce((length) => {
|
|
26065
|
+
setState(this.component, '_currentLengthDebounced', length);
|
|
26066
|
+
}, 500);
|
|
25571
26067
|
this.component = component;
|
|
25572
26068
|
}
|
|
25573
26069
|
validateHasCounter(value) {
|
|
@@ -25652,7 +26148,7 @@ class KolTextarea {
|
|
|
25652
26148
|
render() {
|
|
25653
26149
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25654
26150
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
25655
|
-
return (hAsync(Host, { key: '
|
|
26151
|
+
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) => {
|
|
25656
26152
|
this.controller.onFacade.onFocus(event);
|
|
25657
26153
|
this.inputHasFocus = true;
|
|
25658
26154
|
}, onBlur: (event) => {
|
|
@@ -25670,6 +26166,7 @@ class KolTextarea {
|
|
|
25670
26166
|
this.onInput = (event) => {
|
|
25671
26167
|
if (this.textareaRef instanceof HTMLTextAreaElement) {
|
|
25672
26168
|
setState(this, '_currentLength', this.textareaRef.value.length);
|
|
26169
|
+
this.controller.updateCurrentLengthDebounced(this.textareaRef.value.length);
|
|
25673
26170
|
if (this.state._adjustHeight) {
|
|
25674
26171
|
this._rows = increaseTextareaHeight(this.textareaRef);
|
|
25675
26172
|
}
|
|
@@ -25707,6 +26204,7 @@ class KolTextarea {
|
|
|
25707
26204
|
this.state = {
|
|
25708
26205
|
_adjustHeight: false,
|
|
25709
26206
|
_currentLength: 0,
|
|
26207
|
+
_currentLengthDebounced: 0,
|
|
25710
26208
|
_hasValue: false,
|
|
25711
26209
|
_hideError: false,
|
|
25712
26210
|
_id: `id-${nonce()}`,
|
|
@@ -25943,7 +26441,9 @@ class KolToastContainer {
|
|
|
25943
26441
|
return localToastState;
|
|
25944
26442
|
}) });
|
|
25945
26443
|
setTimeout(() => {
|
|
26444
|
+
var _a, _b;
|
|
25946
26445
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((localToastState) => localToastState.id !== toastState.id) });
|
|
26446
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
25947
26447
|
}, TRANSITION_TIMEOUT);
|
|
25948
26448
|
}
|
|
25949
26449
|
async closeAll(immediate = false) {
|
|
@@ -25955,6 +26455,10 @@ class KolToastContainer {
|
|
|
25955
26455
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: toastsToClose.map((localToastState) => (Object.assign(Object.assign({}, localToastState), { status: 'removing' }))) });
|
|
25956
26456
|
setTimeout(() => {
|
|
25957
26457
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((toastState) => toastsToClose.every((toastToClose) => toastToClose.id !== toastState.id)) });
|
|
26458
|
+
toastsToClose.forEach((toastState) => {
|
|
26459
|
+
var _a, _b;
|
|
26460
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
26461
|
+
});
|
|
25958
26462
|
}, TRANSITION_TIMEOUT);
|
|
25959
26463
|
}
|
|
25960
26464
|
}
|
|
@@ -25965,7 +26469,7 @@ class KolToastContainer {
|
|
|
25965
26469
|
}
|
|
25966
26470
|
}
|
|
25967
26471
|
render() {
|
|
25968
|
-
return (hAsync(Host, { key: '
|
|
26472
|
+
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: {
|
|
25969
26473
|
onClick: () => {
|
|
25970
26474
|
void this.closeAll();
|
|
25971
26475
|
},
|
|
@@ -26017,7 +26521,7 @@ class KolToolbar {
|
|
|
26017
26521
|
this._items = undefined;
|
|
26018
26522
|
}
|
|
26019
26523
|
render() {
|
|
26020
|
-
return (hAsync(Host, { key: '
|
|
26524
|
+
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))));
|
|
26021
26525
|
}
|
|
26022
26526
|
validateLabel(value) {
|
|
26023
26527
|
validateLabel(this, value);
|
|
@@ -26215,7 +26719,7 @@ class KolTooltipWc {
|
|
|
26215
26719
|
this.showOrHideTooltip();
|
|
26216
26720
|
}
|
|
26217
26721
|
render() {
|
|
26218
|
-
return (hAsync(Host, { key: '
|
|
26722
|
+
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 })))));
|
|
26219
26723
|
}
|
|
26220
26724
|
validateBadgeText(value) {
|
|
26221
26725
|
validateBadgeText(this, value);
|
|
@@ -26293,7 +26797,7 @@ class KolTree {
|
|
|
26293
26797
|
this._label = undefined;
|
|
26294
26798
|
}
|
|
26295
26799
|
render() {
|
|
26296
|
-
return (hAsync(Host, { key: '
|
|
26800
|
+
return (hAsync(Host, { key: 'c4ed1423c782d5cb19c9a5165db2ba5ca71b1528', class: "kol-tree" }, hAsync(KolTreeWcTag, { key: 'd00b2ffc0c8757cb81b38c72164491603ec9d914', _label: this._label }, hAsync("slot", { key: '7a8fe91aacdeb5362126c23bdc5527c94aa5f4f8' }))));
|
|
26297
26801
|
}
|
|
26298
26802
|
static get style() { return {
|
|
26299
26803
|
default: KolTreeDefaultStyle0
|
|
@@ -26341,7 +26845,7 @@ class KolTreeItem {
|
|
|
26341
26845
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26342
26846
|
}
|
|
26343
26847
|
render() {
|
|
26344
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26848
|
+
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' })));
|
|
26345
26849
|
}
|
|
26346
26850
|
static get style() { return {
|
|
26347
26851
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26384,13 +26888,13 @@ class KolTreeItemWc {
|
|
|
26384
26888
|
}
|
|
26385
26889
|
render() {
|
|
26386
26890
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
26387
|
-
return (hAsync(Host, { key: '
|
|
26891
|
+
return (hAsync(Host, { key: '1843323af44293bc49f4b6d1817ec223a6aedd96', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-item-wc" }, hAsync("li", { key: '2cf5dc604a8055687d594ca692cdd99e3df28c57', class: "tree-item", style: {
|
|
26388
26892
|
'--level': `${this.level}`,
|
|
26389
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
26893
|
+
} }, hAsync(KolLinkWcTag, { key: '8406ef31760965e3aa784acfc814261ed09589ec', class: {
|
|
26390
26894
|
'tree-link': true,
|
|
26391
26895
|
'first-level': this.level === 0,
|
|
26392
26896
|
active: Boolean(_active),
|
|
26393
|
-
}, _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: '
|
|
26897
|
+
}, _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' })))));
|
|
26394
26898
|
}
|
|
26395
26899
|
validateActive(value) {
|
|
26396
26900
|
validateActive(this, value || false);
|
|
@@ -26495,7 +26999,7 @@ class KolTreeWc {
|
|
|
26495
26999
|
validateLabel(this, value);
|
|
26496
27000
|
}
|
|
26497
27001
|
render() {
|
|
26498
|
-
return (hAsync(Host, { key: '
|
|
27002
|
+
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' })))));
|
|
26499
27003
|
}
|
|
26500
27004
|
static isTreeItem(element) {
|
|
26501
27005
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -26693,7 +27197,7 @@ class KolVersion {
|
|
|
26693
27197
|
};
|
|
26694
27198
|
}
|
|
26695
27199
|
render() {
|
|
26696
|
-
return (hAsync(Host, { key: '
|
|
27200
|
+
return (hAsync(Host, { key: 'd082e433c111125d91e503c35226f140b6025ffc', class: "kol-version" }, hAsync(KolBadgeTag, { key: '43d7c7f0c2ffdfcffbb22a3889c64ab2e44fcaf7', _color: "#bec5c9", _icons: {
|
|
26697
27201
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
26698
27202
|
}, _label: this.state._label })));
|
|
26699
27203
|
}
|