@public-ui/hydrate 2.2.13-rc.0 → 2.2.13-rc.1
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 +639 -139
- package/dist/index.mjs +639 -139
- 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
|
});
|
|
@@ -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) => {
|
|
@@ -15184,17 +15670,17 @@ class KolSingleSelect {
|
|
|
15184
15670
|
var _a;
|
|
15185
15671
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
15186
15672
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
15187
|
-
return (hAsync(Host, { key: '
|
|
15673
|
+
return (hAsync(Host, { key: '89b60987e75766d050cadae69db62384200e976c', class: "kol-single-select" }, hAsync("div", { key: '019a896dff1d3974827cdc68488b8729162405f3', class: `single-select ${this.state._disabled === true ? 'disabled' : ''} ` }, hAsync(KolInputTag, { key: '9d7f5580714ec3daa6ec038a81c1f264cdaa9daa', _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: 'c25d1c8d47051ad97fc1fcba6fe1be0b1a858eaf', 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: 'd7360a7d6401a623f787a8fd7da29542dd7bc974', slot: "input" }, hAsync("div", { key: 'd65d3f78b8a81efc686f64aeb1fdb5af06597776', class: "single-select__group" }, hAsync("input", Object.assign({ key: '35b5fad63c352c5af867f5369cb876a9774ee48a', 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", 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
15674
|
this.controller.onFacade.onFocus(event);
|
|
15189
15675
|
this.inputHasFocus = true;
|
|
15190
15676
|
}, onBlur: (event) => {
|
|
15191
15677
|
this.controller.onFacade.onBlur(event);
|
|
15192
15678
|
this.inputHasFocus = false;
|
|
15193
|
-
}, placeholder: this.state._placeholder })), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: '
|
|
15679
|
+
}, placeholder: this.state._placeholder })), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: 'bff0ee8b13e797a11c694651428df7163087d297', _icons: "codicon codicon-close", _label: translate('kol-delete-selection'), onClick: () => {
|
|
15194
15680
|
var _a;
|
|
15195
15681
|
this.clearSelection();
|
|
15196
15682
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
15197
|
-
}, class: "single-select__delete" })), hAsync("button", { key: '
|
|
15683
|
+
}, class: "single-select__delete" })), hAsync("button", { key: '8359e48dcc62868f045e7fea5a30cc95dc570f30', tabindex: "-1", class: "single-select__button", onClick: this.toggleListbox.bind(this), disabled: this.state._disabled }, hAsync(KolIconTag, { key: 'c286fcf4cd452b5832273cc5b52f3a7079584bce', _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') }))), this._isOpen && !(this.state._disabled === true) && (hAsync("ul", { key: '344824429252862cc791ec4c475bbe7ee43652fd', 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
15684
|
if (el)
|
|
15199
15685
|
this.refOptions[index] = el;
|
|
15200
15686
|
}, tabIndex: -1, role: "option", "aria-selected": this._value === option.value ? 'true' : undefined, onClick: (event) => {
|
|
@@ -15576,7 +16062,7 @@ class KolSkipNav {
|
|
|
15576
16062
|
};
|
|
15577
16063
|
}
|
|
15578
16064
|
render() {
|
|
15579
|
-
return (hAsync(Host, { key: '
|
|
16065
|
+
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
16066
|
return (hAsync("li", { key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
15581
16067
|
})))));
|
|
15582
16068
|
}
|
|
@@ -23964,10 +24450,10 @@ class KolSpanWc {
|
|
|
23964
24450
|
render() {
|
|
23965
24451
|
var _a, _b, _c, _d, _e;
|
|
23966
24452
|
const hideExpertSlot = !showExpertSlot(this.state._label);
|
|
23967
|
-
return (hAsync(Host, { key: '
|
|
24453
|
+
return (hAsync(Host, { key: '61c2a5584c2099d943d708443fbc4b6d5dd287f2', class: {
|
|
23968
24454
|
'kol-span-wc': true,
|
|
23969
24455
|
'hide-label': !!this.state._hideLabel,
|
|
23970
|
-
} }, this.state._icons.top && (hAsync(KolIconTag, { key: '
|
|
24456
|
+
} }, 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
24457
|
}
|
|
23972
24458
|
validateBadgeText(value) {
|
|
23973
24459
|
validateBadgeText(this, value);
|
|
@@ -24045,7 +24531,7 @@ class KolSpin {
|
|
|
24045
24531
|
};
|
|
24046
24532
|
}
|
|
24047
24533
|
render() {
|
|
24048
|
-
return (hAsync(Host, { key: '
|
|
24534
|
+
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
24535
|
spin: true,
|
|
24050
24536
|
[this.state._variant]: true,
|
|
24051
24537
|
}, 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 +24616,10 @@ class KolSplitButton {
|
|
|
24130
24616
|
}
|
|
24131
24617
|
render() {
|
|
24132
24618
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
24133
|
-
return (hAsync(Host, { key: '
|
|
24619
|
+
return (hAsync(Host, { key: 'cf6ac525bf85bfb0fe16d7275808b1c2466be185', class: "kol-split-button" }, hAsync("div", { key: 'e508675a55f10001239c47362c569e7ce3991dd5', class: "split-button-root" }, hAsync(KolButtonWcTag, { key: '59b44b060c2e949191e3da275e11b1e67c34159a', class: {
|
|
24134
24620
|
'main-button': true,
|
|
24135
24621
|
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: '
|
|
24622
|
+
}, _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
24623
|
}
|
|
24138
24624
|
async closePopup() {
|
|
24139
24625
|
this.handleOnClose();
|
|
@@ -24185,7 +24671,7 @@ class KolSymbol {
|
|
|
24185
24671
|
};
|
|
24186
24672
|
}
|
|
24187
24673
|
render() {
|
|
24188
|
-
return (hAsync(Host, { key: '
|
|
24674
|
+
return (hAsync(Host, { key: '09195f2f3abd530937a2f1fb5a879f0cb38d7657', class: "kol-symbol" }, hAsync("span", { key: '597e49d33699b0f4ea2918e685bdd3f6e2ca5dab', "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
24189
24675
|
}
|
|
24190
24676
|
validateLabel(value) {
|
|
24191
24677
|
validateLabel(this, value, {
|
|
@@ -24234,7 +24720,7 @@ class KolTable {
|
|
|
24234
24720
|
this._on = undefined;
|
|
24235
24721
|
}
|
|
24236
24722
|
render() {
|
|
24237
|
-
return (hAsync(KolTableStatefulTag, { key: '
|
|
24723
|
+
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
24724
|
}
|
|
24239
24725
|
static get cmpMeta() { return {
|
|
24240
24726
|
"$flags$": 9,
|
|
@@ -24663,7 +25149,7 @@ class KolTableStateful {
|
|
|
24663
25149
|
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
25150
|
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
25151
|
};
|
|
24666
|
-
return (hAsync(Host, { key: '
|
|
25152
|
+
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
25153
|
onSort: (_, payload) => {
|
|
24668
25154
|
this.handleSort(payload);
|
|
24669
25155
|
},
|
|
@@ -24726,7 +25212,7 @@ class KolTableStateless$1 {
|
|
|
24726
25212
|
this._selection = undefined;
|
|
24727
25213
|
}
|
|
24728
25214
|
render() {
|
|
24729
|
-
return (hAsync(Host, { key: '
|
|
25215
|
+
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
25216
|
}
|
|
24731
25217
|
static get style() { return {
|
|
24732
25218
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24929,28 +25415,28 @@ class KolTableStateless {
|
|
|
24929
25415
|
}
|
|
24930
25416
|
return max;
|
|
24931
25417
|
}
|
|
24932
|
-
|
|
24933
|
-
const
|
|
25418
|
+
getThePrimaryHeadersWithKeyOrRenderFunction(headers) {
|
|
25419
|
+
const primaryHeaders = [];
|
|
24934
25420
|
headers.forEach((cells) => {
|
|
24935
25421
|
cells.forEach((cell) => {
|
|
24936
|
-
if (typeof cell.key === 'string') {
|
|
24937
|
-
|
|
25422
|
+
if (typeof cell.key === 'string' || typeof cell.render === 'function') {
|
|
25423
|
+
primaryHeaders.push(cell);
|
|
24938
25424
|
}
|
|
24939
25425
|
});
|
|
24940
25426
|
});
|
|
24941
|
-
return
|
|
25427
|
+
return primaryHeaders;
|
|
24942
25428
|
}
|
|
24943
25429
|
getPrimaryHeaders(headers) {
|
|
24944
25430
|
var _a, _b;
|
|
24945
|
-
let
|
|
25431
|
+
let primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
24946
25432
|
this.horizontal = true;
|
|
24947
|
-
if (
|
|
24948
|
-
|
|
24949
|
-
if (
|
|
25433
|
+
if (primaryHeaders.length === 0) {
|
|
25434
|
+
primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
25435
|
+
if (primaryHeaders.length > 0) {
|
|
24950
25436
|
this.horizontal = false;
|
|
24951
25437
|
}
|
|
24952
25438
|
}
|
|
24953
|
-
return
|
|
25439
|
+
return primaryHeaders;
|
|
24954
25440
|
}
|
|
24955
25441
|
createDataField(data, headers, isFoot) {
|
|
24956
25442
|
var _a;
|
|
@@ -24999,18 +25485,18 @@ class KolTableStateless {
|
|
|
24999
25485
|
const row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];
|
|
25000
25486
|
if (typeof primaryHeader[j] === 'object' &&
|
|
25001
25487
|
primaryHeader[j] !== null &&
|
|
25002
|
-
typeof primaryHeader[j].key === 'string' &&
|
|
25003
25488
|
typeof row === 'object' &&
|
|
25004
|
-
row !== null
|
|
25489
|
+
row !== null &&
|
|
25490
|
+
(typeof primaryHeader[j].key === 'string' || typeof primaryHeader[j].render === 'function')) {
|
|
25005
25491
|
dataRow.push(Object.assign(Object.assign({}, primaryHeader[j]), { colSpan: undefined, data: row, label: row[primaryHeader[j].key], rowSpan: undefined }));
|
|
25006
25492
|
}
|
|
25007
25493
|
}
|
|
25008
25494
|
else {
|
|
25009
25495
|
if (typeof primaryHeader[i] === 'object' &&
|
|
25010
25496
|
primaryHeader[i] !== null &&
|
|
25011
|
-
typeof primaryHeader[i].key === 'string' &&
|
|
25012
25497
|
typeof data[j] === 'object' &&
|
|
25013
|
-
data[j] !== null
|
|
25498
|
+
data[j] !== null &&
|
|
25499
|
+
(typeof primaryHeader[i].key === 'string' || typeof primaryHeader[i].render === 'function')) {
|
|
25014
25500
|
dataRow.push(Object.assign(Object.assign({}, primaryHeader[i]), { colSpan: undefined, data: data[j], label: data[j][primaryHeader[i].key], rowSpan: undefined }));
|
|
25015
25501
|
}
|
|
25016
25502
|
}
|
|
@@ -25126,7 +25612,7 @@ class KolTableStateless {
|
|
|
25126
25612
|
Array.isArray(this.state._headerCells.horizontal) && (hAsync("td", { "aria-hidden": "true", colSpan: this.state._headerCells.vertical.length, rowSpan: this.state._headerCells.horizontal.length }))));
|
|
25127
25613
|
}
|
|
25128
25614
|
renderHeadingCell(cell, rowIndex, colIndex, isVertical) {
|
|
25129
|
-
let ariaSort =
|
|
25615
|
+
let ariaSort = 'none';
|
|
25130
25616
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
25131
25617
|
if (cell.sortDirection) {
|
|
25132
25618
|
switch (cell.sortDirection) {
|
|
@@ -25138,6 +25624,8 @@ class KolTableStateless {
|
|
|
25138
25624
|
sortButtonIcon = 'codicon codicon-chevron-down';
|
|
25139
25625
|
ariaSort = 'descending';
|
|
25140
25626
|
break;
|
|
25627
|
+
default:
|
|
25628
|
+
ariaSort = 'none';
|
|
25141
25629
|
}
|
|
25142
25630
|
}
|
|
25143
25631
|
const scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';
|
|
@@ -25175,9 +25663,9 @@ class KolTableStateless {
|
|
|
25175
25663
|
render() {
|
|
25176
25664
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
25177
25665
|
this.checkboxRefs = [];
|
|
25178
|
-
return (hAsync(Host, { key: '
|
|
25666
|
+
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
25667
|
minWidth: this.state._deprecatedMinWidth || this.state._minWidth,
|
|
25180
|
-
} }, hAsync("div", { key: '
|
|
25668
|
+
} }, 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
25669
|
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
25670
|
cols.map((cell, colIndex) => {
|
|
25183
25671
|
if (cell.asTd === true) {
|
|
@@ -25197,7 +25685,7 @@ class KolTableStateless {
|
|
|
25197
25685
|
}
|
|
25198
25686
|
})))),
|
|
25199
25687
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
25200
|
-
])), hAsync("tbody", { key: '
|
|
25688
|
+
])), hAsync("tbody", { key: '9d11add32fd084710d56c029262646a724e4bafe' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
25201
25689
|
}
|
|
25202
25690
|
get host() { return getElement(this); }
|
|
25203
25691
|
static get watchers() { return {
|
|
@@ -25435,11 +25923,11 @@ class KolTabs {
|
|
|
25435
25923
|
} }))));
|
|
25436
25924
|
}
|
|
25437
25925
|
render() {
|
|
25438
|
-
return (hAsync(Host, { key: '
|
|
25926
|
+
return (hAsync(Host, { key: '0742bb2f0a3ac2ccb77c42b5205311d68b55900d', class: "kol-tabs" }, hAsync("div", { key: '51fa48d177a1d5f460953d271eb446d65e7a32e7', ref: (el) => {
|
|
25439
25927
|
this.tabPanelsElement = el;
|
|
25440
25928
|
}, class: {
|
|
25441
25929
|
[`tabs-align-${this.state._align}`]: true,
|
|
25442
|
-
} }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
25930
|
+
} }, this.renderButtonGroup(), hAsync("div", { key: '01d820886238951d95a70969023c28f8888c76d1', class: "tabs-content", ref: this.catchTabPanelHost }))));
|
|
25443
25931
|
}
|
|
25444
25932
|
validateAlign(value) {
|
|
25445
25933
|
validateAlign(this, value);
|
|
@@ -25566,8 +26054,12 @@ class TextareaController extends InputIconController {
|
|
|
25566
26054
|
this.afterSyncCharCounter = () => {
|
|
25567
26055
|
if (typeof this.component._value === 'string' && this.component._value.length > 0) {
|
|
25568
26056
|
this.component.state._currentLength = this.component._value.length;
|
|
26057
|
+
this.component.state._currentLengthDebounced = this.component._value.length;
|
|
25569
26058
|
}
|
|
25570
26059
|
};
|
|
26060
|
+
this.updateCurrentLengthDebounced = debounce((length) => {
|
|
26061
|
+
setState(this.component, '_currentLengthDebounced', length);
|
|
26062
|
+
}, 500);
|
|
25571
26063
|
this.component = component;
|
|
25572
26064
|
}
|
|
25573
26065
|
validateHasCounter(value) {
|
|
@@ -25652,7 +26144,7 @@ class KolTextarea {
|
|
|
25652
26144
|
render() {
|
|
25653
26145
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25654
26146
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
25655
|
-
return (hAsync(Host, { key: '
|
|
26147
|
+
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
26148
|
this.controller.onFacade.onFocus(event);
|
|
25657
26149
|
this.inputHasFocus = true;
|
|
25658
26150
|
}, onBlur: (event) => {
|
|
@@ -25670,6 +26162,7 @@ class KolTextarea {
|
|
|
25670
26162
|
this.onInput = (event) => {
|
|
25671
26163
|
if (this.textareaRef instanceof HTMLTextAreaElement) {
|
|
25672
26164
|
setState(this, '_currentLength', this.textareaRef.value.length);
|
|
26165
|
+
this.controller.updateCurrentLengthDebounced(this.textareaRef.value.length);
|
|
25673
26166
|
if (this.state._adjustHeight) {
|
|
25674
26167
|
this._rows = increaseTextareaHeight(this.textareaRef);
|
|
25675
26168
|
}
|
|
@@ -25707,6 +26200,7 @@ class KolTextarea {
|
|
|
25707
26200
|
this.state = {
|
|
25708
26201
|
_adjustHeight: false,
|
|
25709
26202
|
_currentLength: 0,
|
|
26203
|
+
_currentLengthDebounced: 0,
|
|
25710
26204
|
_hasValue: false,
|
|
25711
26205
|
_hideError: false,
|
|
25712
26206
|
_id: `id-${nonce()}`,
|
|
@@ -25943,7 +26437,9 @@ class KolToastContainer {
|
|
|
25943
26437
|
return localToastState;
|
|
25944
26438
|
}) });
|
|
25945
26439
|
setTimeout(() => {
|
|
26440
|
+
var _a, _b;
|
|
25946
26441
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((localToastState) => localToastState.id !== toastState.id) });
|
|
26442
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
25947
26443
|
}, TRANSITION_TIMEOUT);
|
|
25948
26444
|
}
|
|
25949
26445
|
async closeAll(immediate = false) {
|
|
@@ -25955,6 +26451,10 @@ class KolToastContainer {
|
|
|
25955
26451
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: toastsToClose.map((localToastState) => (Object.assign(Object.assign({}, localToastState), { status: 'removing' }))) });
|
|
25956
26452
|
setTimeout(() => {
|
|
25957
26453
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((toastState) => toastsToClose.every((toastToClose) => toastToClose.id !== toastState.id)) });
|
|
26454
|
+
toastsToClose.forEach((toastState) => {
|
|
26455
|
+
var _a, _b;
|
|
26456
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
26457
|
+
});
|
|
25958
26458
|
}, TRANSITION_TIMEOUT);
|
|
25959
26459
|
}
|
|
25960
26460
|
}
|
|
@@ -25965,7 +26465,7 @@ class KolToastContainer {
|
|
|
25965
26465
|
}
|
|
25966
26466
|
}
|
|
25967
26467
|
render() {
|
|
25968
|
-
return (hAsync(Host, { key: '
|
|
26468
|
+
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
26469
|
onClick: () => {
|
|
25970
26470
|
void this.closeAll();
|
|
25971
26471
|
},
|
|
@@ -26017,7 +26517,7 @@ class KolToolbar {
|
|
|
26017
26517
|
this._items = undefined;
|
|
26018
26518
|
}
|
|
26019
26519
|
render() {
|
|
26020
|
-
return (hAsync(Host, { key: '
|
|
26520
|
+
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
26521
|
}
|
|
26022
26522
|
validateLabel(value) {
|
|
26023
26523
|
validateLabel(this, value);
|
|
@@ -26215,7 +26715,7 @@ class KolTooltipWc {
|
|
|
26215
26715
|
this.showOrHideTooltip();
|
|
26216
26716
|
}
|
|
26217
26717
|
render() {
|
|
26218
|
-
return (hAsync(Host, { key: '
|
|
26718
|
+
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
26719
|
}
|
|
26220
26720
|
validateBadgeText(value) {
|
|
26221
26721
|
validateBadgeText(this, value);
|
|
@@ -26293,7 +26793,7 @@ class KolTree {
|
|
|
26293
26793
|
this._label = undefined;
|
|
26294
26794
|
}
|
|
26295
26795
|
render() {
|
|
26296
|
-
return (hAsync(Host, { key: '
|
|
26796
|
+
return (hAsync(Host, { key: 'c4ed1423c782d5cb19c9a5165db2ba5ca71b1528', class: "kol-tree" }, hAsync(KolTreeWcTag, { key: 'd00b2ffc0c8757cb81b38c72164491603ec9d914', _label: this._label }, hAsync("slot", { key: '7a8fe91aacdeb5362126c23bdc5527c94aa5f4f8' }))));
|
|
26297
26797
|
}
|
|
26298
26798
|
static get style() { return {
|
|
26299
26799
|
default: KolTreeDefaultStyle0
|
|
@@ -26341,7 +26841,7 @@ class KolTreeItem {
|
|
|
26341
26841
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26342
26842
|
}
|
|
26343
26843
|
render() {
|
|
26344
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26844
|
+
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
26845
|
}
|
|
26346
26846
|
static get style() { return {
|
|
26347
26847
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26384,13 +26884,13 @@ class KolTreeItemWc {
|
|
|
26384
26884
|
}
|
|
26385
26885
|
render() {
|
|
26386
26886
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
26387
|
-
return (hAsync(Host, { key: '
|
|
26887
|
+
return (hAsync(Host, { key: '1843323af44293bc49f4b6d1817ec223a6aedd96', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-item-wc" }, hAsync("li", { key: '2cf5dc604a8055687d594ca692cdd99e3df28c57', class: "tree-item", style: {
|
|
26388
26888
|
'--level': `${this.level}`,
|
|
26389
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
26889
|
+
} }, hAsync(KolLinkWcTag, { key: '8406ef31760965e3aa784acfc814261ed09589ec', class: {
|
|
26390
26890
|
'tree-link': true,
|
|
26391
26891
|
'first-level': this.level === 0,
|
|
26392
26892
|
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: '
|
|
26893
|
+
}, _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
26894
|
}
|
|
26395
26895
|
validateActive(value) {
|
|
26396
26896
|
validateActive(this, value || false);
|
|
@@ -26495,7 +26995,7 @@ class KolTreeWc {
|
|
|
26495
26995
|
validateLabel(this, value);
|
|
26496
26996
|
}
|
|
26497
26997
|
render() {
|
|
26498
|
-
return (hAsync(Host, { key: '
|
|
26998
|
+
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
26999
|
}
|
|
26500
27000
|
static isTreeItem(element) {
|
|
26501
27001
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -26693,7 +27193,7 @@ class KolVersion {
|
|
|
26693
27193
|
};
|
|
26694
27194
|
}
|
|
26695
27195
|
render() {
|
|
26696
|
-
return (hAsync(Host, { key: '
|
|
27196
|
+
return (hAsync(Host, { key: 'd082e433c111125d91e503c35226f140b6025ffc', class: "kol-version" }, hAsync(KolBadgeTag, { key: '43d7c7f0c2ffdfcffbb22a3889c64ab2e44fcaf7', _color: "#bec5c9", _icons: {
|
|
26697
27197
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
26698
27198
|
}, _label: this.state._label })));
|
|
26699
27199
|
}
|