@public-ui/hydrate 2.1.3 → 2.1.4
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 +658 -295
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2745,7 +2745,7 @@ const featureHint = (msg, done = false, options) => {
|
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
2747
|
};
|
|
2748
|
-
devHint(`
|
|
2748
|
+
devHint(`We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!`);
|
|
2749
2749
|
const uiUxCache = new Set();
|
|
2750
2750
|
const uiUxHint = (msg, options) => {
|
|
2751
2751
|
if (uiUxCache.has(msg) === false || !!(options === null || options === void 0 ? void 0 : options.force)) {
|
|
@@ -2758,20 +2758,19 @@ const uiUxHint = (msg, options) => {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
const a11yHintDisabled = () => {
|
|
2761
|
-
a11yHint(`"Disabled"
|
|
2761
|
+
a11yHint(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`);
|
|
2762
2762
|
};
|
|
2763
2763
|
const a11yHintLabelingLandmarks = (value) => {
|
|
2764
2764
|
if (typeof value !== 'string' || value === '') {
|
|
2765
|
-
a11yHint(`
|
|
2765
|
+
a11yHint(`Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`);
|
|
2766
2766
|
}
|
|
2767
2767
|
};
|
|
2768
2768
|
const uiUxHintMillerscheZahl = (className, length = 8) => {
|
|
2769
2769
|
if (length > 7) {
|
|
2770
|
-
uiUxHint(`[${className}]
|
|
2770
|
+
uiUxHint(`[${className}] Within navigation structures, it is recommended to use no more than 7 menu items.
|
|
2771
2771
|
|
|
2772
|
-
|
|
2773
|
-
- https://
|
|
2774
|
-
- https://de.wikipedia.org/wiki/Millersche_Zahl`);
|
|
2772
|
+
Link:
|
|
2773
|
+
- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`);
|
|
2775
2774
|
}
|
|
2776
2775
|
};
|
|
2777
2776
|
|
|
@@ -3560,7 +3559,7 @@ const setState = (component, propName, value, hooks = {}) => {
|
|
|
3560
3559
|
patchState(component);
|
|
3561
3560
|
};
|
|
3562
3561
|
const logWarn = (component, propName, value, requiredGeneric) => {
|
|
3563
|
-
devHint(`[${component.constructor.name}]
|
|
3562
|
+
devHint(`[${component.constructor.name}] The property value: (${value}) for '${propName}' is not valid. Allowed values are: ${Array.from(requiredGeneric).join(', ')}`);
|
|
3564
3563
|
};
|
|
3565
3564
|
function watchValidator(component, propName, validationFunction, requiredGeneric, value, options = {}) {
|
|
3566
3565
|
if (validationFunction(value)) {
|
|
@@ -3608,14 +3607,14 @@ const watchJsonArrayString = (component, propName, itemValidation, value, arrayV
|
|
|
3608
3607
|
else {
|
|
3609
3608
|
objectObjectHandler(invalid, () => {
|
|
3610
3609
|
Log.debug(invalid);
|
|
3611
|
-
throw new Error(`↑
|
|
3610
|
+
throw new Error(`↑ The schema for the property (_options) is not valid. The value will not be changed.`);
|
|
3612
3611
|
});
|
|
3613
3612
|
}
|
|
3614
3613
|
}
|
|
3615
3614
|
else {
|
|
3616
3615
|
objectObjectHandler(value, () => {
|
|
3617
3616
|
Log.debug(value);
|
|
3618
|
-
throw new Error(`↑
|
|
3617
|
+
throw new Error(`↑ The schema for the property (_options) is not valid. The value will not be changed.`);
|
|
3619
3618
|
});
|
|
3620
3619
|
}
|
|
3621
3620
|
}
|
|
@@ -3660,7 +3659,7 @@ const stringifyJson = (value) => {
|
|
|
3660
3659
|
}
|
|
3661
3660
|
catch (error) {
|
|
3662
3661
|
Log.warn(['stringifyJson', value]);
|
|
3663
|
-
Log.error(`↑
|
|
3662
|
+
Log.error(`↑ The JSON could not be converted to a string. A stringifiable JSON is expected.`);
|
|
3664
3663
|
throw new Error();
|
|
3665
3664
|
}
|
|
3666
3665
|
};
|
|
@@ -3677,7 +3676,7 @@ const parseJson = (value) => {
|
|
|
3677
3676
|
}
|
|
3678
3677
|
catch (error) {
|
|
3679
3678
|
Log.warn(['parseJson', value]);
|
|
3680
|
-
Log.error(`↑
|
|
3679
|
+
Log.error(`↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).`);
|
|
3681
3680
|
}
|
|
3682
3681
|
}
|
|
3683
3682
|
}
|
|
@@ -3730,7 +3729,7 @@ const validateInputSelectOptions = (option) => {
|
|
|
3730
3729
|
option.disabled = option.disabled === true;
|
|
3731
3730
|
option.label = `${option.label}`.trim();
|
|
3732
3731
|
if (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {
|
|
3733
|
-
a11yHint(`
|
|
3732
|
+
a11yHint(`A differing Aria-Label (${option.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`);
|
|
3734
3733
|
}
|
|
3735
3734
|
if (Array.isArray(option.options)) {
|
|
3736
3735
|
return (option.options.find((item) => {
|
|
@@ -3823,6 +3822,12 @@ const validateAriaExpanded = (component, value) => {
|
|
|
3823
3822
|
watchBoolean(component, '_ariaExpanded', value);
|
|
3824
3823
|
};
|
|
3825
3824
|
|
|
3825
|
+
const validateAriaOwns = (component, value) => {
|
|
3826
|
+
watchString(component, '_ariaOwns', value, {
|
|
3827
|
+
defaultValue: undefined,
|
|
3828
|
+
});
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3826
3831
|
const validateAriaSelected = (component, value) => {
|
|
3827
3832
|
watchBoolean(component, '_ariaSelected', value);
|
|
3828
3833
|
};
|
|
@@ -4151,6 +4156,10 @@ const validateMax = (component, value, options) => {
|
|
|
4151
4156
|
watchNumber(component, '_max', value, options);
|
|
4152
4157
|
};
|
|
4153
4158
|
|
|
4159
|
+
const validateModal = (component, value) => {
|
|
4160
|
+
watchBoolean(component, '_modal', value);
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4154
4163
|
const validateMsg = (component, value) => {
|
|
4155
4164
|
watchValidator(component, `_msg`, (value) => typeof value === 'object', new Set(['Object']), value);
|
|
4156
4165
|
};
|
|
@@ -4354,11 +4363,13 @@ let KolSpanWcTag = 'kol-span-wc';
|
|
|
4354
4363
|
let KolTableStatefulTag = 'kol-table-stateful';
|
|
4355
4364
|
let KolTableStatelessWcTag = 'kol-table-stateless-wc';
|
|
4356
4365
|
let KolTooltipWcTag = 'kol-tooltip-wc';
|
|
4366
|
+
let KolTreeItemTag = 'kol-tree-item';
|
|
4357
4367
|
let KolTreeItemWcTag = 'kol-tree-item-wc';
|
|
4368
|
+
let KolTreeTag = 'kol-tree';
|
|
4358
4369
|
let KolTreeWcTag = 'kol-tree-wc';
|
|
4359
4370
|
|
|
4360
|
-
const defaultStyleCss$
|
|
4361
|
-
var KolAbbrDefaultStyle0 = defaultStyleCss$
|
|
4371
|
+
const defaultStyleCss$O = "@layer kol-global {\n .sc-kol-abbr-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-abbr-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-abbr-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-abbr-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .sc-kol-abbr-default-h > abbr {\n cursor: help;\n }\n}";
|
|
4372
|
+
var KolAbbrDefaultStyle0 = defaultStyleCss$O;
|
|
4362
4373
|
|
|
4363
4374
|
class KolAbbr {
|
|
4364
4375
|
constructor(hostRef) {
|
|
@@ -4416,8 +4427,8 @@ const watchHeadingLevel = (component, value) => {
|
|
|
4416
4427
|
});
|
|
4417
4428
|
};
|
|
4418
4429
|
|
|
4419
|
-
const defaultStyleCss$
|
|
4420
|
-
var KolAccordionDefaultStyle0 = defaultStyleCss$
|
|
4430
|
+
const defaultStyleCss$N = "@layer kol-global {\n .sc-kol-accordion-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-accordion-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-accordion-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-accordion-default-h {\n display: block;\n }\n}\n@layer kol-component {\n .sc-kol-accordion-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n \n .wrapper {\n display: grid;\n grid-template-rows: 0fr;\n overflow: hidden;\n transition: grid-template-rows 0.3s;\n }\n .accordion.open .wrapper {\n grid-template-rows: 1fr;\n }\n .animation-wrapper {\n min-height: 0;\n transition: visibility 0.3s;\n \n visibility: hidden;\n }\n .accordion.open .animation-wrapper {\n visibility: visible;\n }\n @media (prefers-reduced-motion) {\n .animation-wrapper,\n .wrapper {\n transition-duration: 0s;\n }\n }\n \n @media print {\n .accordion:not(.open) .animation-wrapper {\n display: none;\n }\n }\n \n .accordion .kol-heading-wc .kol-button-wc button .kol-span-wc {\n justify-items: start;\n }\n}";
|
|
4431
|
+
var KolAccordionDefaultStyle0 = defaultStyleCss$N;
|
|
4421
4432
|
|
|
4422
4433
|
featureHint(`[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.
|
|
4423
4434
|
|
|
@@ -4430,7 +4441,7 @@ class KolAccordion {
|
|
|
4430
4441
|
registerInstance(this, hostRef);
|
|
4431
4442
|
this.nonce = nonce();
|
|
4432
4443
|
this.catchRef = (ref) => {
|
|
4433
|
-
|
|
4444
|
+
this.buttonWcRef = ref;
|
|
4434
4445
|
};
|
|
4435
4446
|
this.onClick = (event) => {
|
|
4436
4447
|
this._open = !this._open;
|
|
@@ -4451,12 +4462,19 @@ class KolAccordion {
|
|
|
4451
4462
|
_level: 1,
|
|
4452
4463
|
};
|
|
4453
4464
|
}
|
|
4465
|
+
async focus() {
|
|
4466
|
+
await this.kolFocus();
|
|
4467
|
+
}
|
|
4468
|
+
async kolFocus() {
|
|
4469
|
+
var _a;
|
|
4470
|
+
await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
4471
|
+
}
|
|
4454
4472
|
render() {
|
|
4455
|
-
return (hAsync(Host, { key: '
|
|
4473
|
+
return (hAsync(Host, { key: 'b2662d09c5d6ee4ba7b8775fad1abedb51d55483', class: "kol-accordion" }, hAsync("div", { key: 'c41fb13d7a5b699031edebf8aa88fe2f3e022346', class: {
|
|
4456
4474
|
accordion: true,
|
|
4457
4475
|
disabled: this.state._disabled === true,
|
|
4458
4476
|
open: this.state._open === true,
|
|
4459
|
-
} }, hAsync(KolHeadingWcTag, { key: '
|
|
4477
|
+
} }, hAsync(KolHeadingWcTag, { key: '10d86a82b4bc84278174a822edc508dd7edc3158', _label: "", _level: this.state._level, class: "accordion-heading" }, hAsync(KolButtonWcTag, { key: '365d163277cbdddfe6e34203e31a3d0ae9a1f602', class: "accordion-button", ref: this.catchRef, slot: "expert", _ariaControls: this.nonce, _ariaExpanded: this.state._open, _disabled: this.state._disabled, _icons: this.state._open ? 'codicon codicon-remove' : 'codicon codicon-add', _label: this.state._label, _on: { onClick: this.onClick } })), hAsync("div", { key: '6fca8bd22147df2e556d9cfefb09bb60c705de9a', class: "wrapper" }, hAsync("div", { key: '8fa8ba68f8c2ea8911bdb7c040c4d8bd44469fbf', class: "animation-wrapper" }, hAsync("div", { key: 'dd61af68e1eaeece1f8b5595fae6b97418563cac', "aria-hidden": this.state._open === false ? 'true' : undefined, class: "content", id: this.nonce }, hAsync("slot", { key: '6249f6a0ccfd5ed101297d94a52a5311cc4385cf' })))))));
|
|
4460
4478
|
}
|
|
4461
4479
|
validateDisabled(value) {
|
|
4462
4480
|
validateDisabled(this, value);
|
|
@@ -4484,7 +4502,6 @@ class KolAccordion {
|
|
|
4484
4502
|
this.validateOn(this._on);
|
|
4485
4503
|
this.validateOpen(this._open);
|
|
4486
4504
|
}
|
|
4487
|
-
get host() { return getElement(this); }
|
|
4488
4505
|
static get watchers() { return {
|
|
4489
4506
|
"_disabled": ["validateDisabled"],
|
|
4490
4507
|
"_label": ["validateLabel"],
|
|
@@ -4504,7 +4521,9 @@ class KolAccordion {
|
|
|
4504
4521
|
"_level": [2],
|
|
4505
4522
|
"_on": [16],
|
|
4506
4523
|
"_open": [1540],
|
|
4507
|
-
"state": [32]
|
|
4524
|
+
"state": [32],
|
|
4525
|
+
"focus": [64],
|
|
4526
|
+
"kolFocus": [64]
|
|
4508
4527
|
},
|
|
4509
4528
|
"$listeners$": undefined,
|
|
4510
4529
|
"$lazyBundleId$": "-",
|
|
@@ -4512,8 +4531,8 @@ class KolAccordion {
|
|
|
4512
4531
|
}; }
|
|
4513
4532
|
}
|
|
4514
4533
|
|
|
4515
|
-
const defaultStyleCss$
|
|
4516
|
-
var KolAlertDefaultStyle0 = defaultStyleCss$
|
|
4534
|
+
const defaultStyleCss$M = "@layer kol-global {\n .sc-kol-alert-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-alert-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-alert-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-alert-default-h {\n display: block;\n }\n}\n@layer kol-component {\n .sc-kol-alert-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-alert-wc {\n display: grid;\n }\n .kol-alert-wc .heading {\n display: flex;\n place-items: center;\n }\n .kol-alert-wc .heading > div {\n flex-grow: 1;\n }\n .close {\n \n outline: transparent solid 1px;\n }\n}";
|
|
4535
|
+
var KolAlertDefaultStyle0 = defaultStyleCss$M;
|
|
4517
4536
|
|
|
4518
4537
|
class KolAlert {
|
|
4519
4538
|
constructor(hostRef) {
|
|
@@ -4850,8 +4869,8 @@ class KolAlertWc {
|
|
|
4850
4869
|
}; }
|
|
4851
4870
|
}
|
|
4852
4871
|
|
|
4853
|
-
const defaultStyleCss$
|
|
4854
|
-
var KolAvatarDefaultStyle0 = defaultStyleCss$
|
|
4872
|
+
const defaultStyleCss$L = "@layer kol-global {\n .sc-kol-avatar-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-avatar-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-avatar-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-avatar-default-h {\n display: block;\n }\n}\n@layer kol-component {\n .sc-kol-avatar-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .container {\n border-radius: 50%;\n overflow: hidden;\n \n outline: transparent solid 1px;\n \n width: 100px;\n height: 100px;\n }\n .image {\n width: 100%;\n height: 100%;\n }\n .initials {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n \n background: #d3d3d3;\n font-size: calc(32rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
4873
|
+
var KolAvatarDefaultStyle0 = defaultStyleCss$L;
|
|
4855
4874
|
|
|
4856
4875
|
class KolAvatar {
|
|
4857
4876
|
constructor(hostRef) {
|
|
@@ -4937,8 +4956,8 @@ class KolAvatarWc {
|
|
|
4937
4956
|
}; }
|
|
4938
4957
|
}
|
|
4939
4958
|
|
|
4940
|
-
const defaultStyleCss$
|
|
4941
|
-
var KolBadgeDefaultStyle0 = defaultStyleCss$
|
|
4959
|
+
const defaultStyleCss$K = "@layer kol-global {\n .sc-kol-badge-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-badge-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-badge-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n \n .sc-kol-badge-default-h > span {\n display: inline-flex;\n place-items: center;\n \n outline: transparent solid 1px;\n }\n .sc-kol-badge-default-h > span > .kol-button-wc button {\n color: inherit;\n }\n}";
|
|
4960
|
+
var KolBadgeDefaultStyle0 = defaultStyleCss$K;
|
|
4942
4961
|
|
|
4943
4962
|
featureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);
|
|
4944
4963
|
class KolBadge {
|
|
@@ -5038,8 +5057,8 @@ const watchNavLinks = (className, component, value) => {
|
|
|
5038
5057
|
uiUxHintMillerscheZahl(className, component.state._links.length);
|
|
5039
5058
|
};
|
|
5040
5059
|
|
|
5041
|
-
const defaultStyleCss$
|
|
5042
|
-
var KolBreadcrumbDefaultStyle0 = defaultStyleCss$
|
|
5060
|
+
const defaultStyleCss$J = "@layer kol-global {\n .sc-kol-breadcrumb-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-breadcrumb-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-breadcrumb-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-breadcrumb-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n li,\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n }\n .kol-icon::part(separator) {\n font-weight: 900;\n font-size: 0.7em;\n }\n .kol-icon::part(separator):before {\n content: \"\\f054\";\n font-family: \"Font Awesome 6 Free\";\n }\n}";
|
|
5061
|
+
var KolBreadcrumbDefaultStyle0 = defaultStyleCss$J;
|
|
5043
5062
|
|
|
5044
5063
|
class KolBreadcrumb {
|
|
5045
5064
|
constructor(hostRef) {
|
|
@@ -5099,14 +5118,14 @@ class KolBreadcrumb {
|
|
|
5099
5118
|
}; }
|
|
5100
5119
|
}
|
|
5101
5120
|
|
|
5102
|
-
const defaultStyleCss$
|
|
5103
|
-
var KolButtonDefaultStyle0 = defaultStyleCss$
|
|
5121
|
+
const defaultStyleCss$I = "@charset \"UTF-8\";\n\n@layer kol-global {\n .sc-kol-button-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-button-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-button-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-button-default-h {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n \n content: \"\";\n }\n \n :is(a, button) > .kol-span-wc {\n margin: auto;\n width: 100%;\n }\n}";
|
|
5122
|
+
var KolButtonDefaultStyle0 = defaultStyleCss$I;
|
|
5104
5123
|
|
|
5105
5124
|
class KolButton {
|
|
5106
5125
|
constructor(hostRef) {
|
|
5107
5126
|
registerInstance(this, hostRef);
|
|
5108
5127
|
this.catchRef = (ref) => {
|
|
5109
|
-
|
|
5128
|
+
this.buttonWcRef = ref;
|
|
5110
5129
|
};
|
|
5111
5130
|
this._accessKey = undefined;
|
|
5112
5131
|
this._ariaControls = undefined;
|
|
@@ -5131,14 +5150,20 @@ class KolButton {
|
|
|
5131
5150
|
async getValue() {
|
|
5132
5151
|
return this._value;
|
|
5133
5152
|
}
|
|
5153
|
+
async focus() {
|
|
5154
|
+
await this.kolFocus();
|
|
5155
|
+
}
|
|
5156
|
+
async kolFocus() {
|
|
5157
|
+
var _a;
|
|
5158
|
+
await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
5159
|
+
}
|
|
5134
5160
|
render() {
|
|
5135
|
-
return (hAsync(Host, { key: '
|
|
5161
|
+
return (hAsync(Host, { key: '313cc4012293660ff51ed3c3791403b946cea107', class: "kol-button" }, hAsync(KolButtonWcTag, { key: '119bee20af9e0a5b486f491d73678b5f66b7b7b3', ref: this.catchRef, class: {
|
|
5136
5162
|
button: true,
|
|
5137
5163
|
[this._variant]: this._variant !== 'custom',
|
|
5138
5164
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
5139
|
-
}, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _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: this._on, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: '
|
|
5165
|
+
}, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _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: this._on, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: 'e2ddd86fb86f7abb60f5501c593cd18eaf1f8177', name: "expert", slot: "expert" }))));
|
|
5140
5166
|
}
|
|
5141
|
-
get host() { return getElement(this); }
|
|
5142
5167
|
static get style() { return {
|
|
5143
5168
|
default: KolButtonDefaultStyle0
|
|
5144
5169
|
}; }
|
|
@@ -5165,7 +5190,9 @@ class KolButton {
|
|
|
5165
5190
|
"_type": [1],
|
|
5166
5191
|
"_value": [8],
|
|
5167
5192
|
"_variant": [1],
|
|
5168
|
-
"getValue": [64]
|
|
5193
|
+
"getValue": [64],
|
|
5194
|
+
"focus": [64],
|
|
5195
|
+
"kolFocus": [64]
|
|
5169
5196
|
},
|
|
5170
5197
|
"$listeners$": undefined,
|
|
5171
5198
|
"$lazyBundleId$": "-",
|
|
@@ -5173,8 +5200,8 @@ class KolButton {
|
|
|
5173
5200
|
}; }
|
|
5174
5201
|
}
|
|
5175
5202
|
|
|
5176
|
-
const defaultStyleCss$
|
|
5177
|
-
var KolButtonGroupDefaultStyle0 = defaultStyleCss$
|
|
5203
|
+
const defaultStyleCss$H = "@layer kol-global {\n .sc-kol-button-group-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-button-group-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-button-group-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-button-group-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .sc-kol-button-group-default-h > .kol-button-group-wc {\n display: flex;\n flex-wrap: wrap;\n }\n}";
|
|
5204
|
+
var KolButtonGroupDefaultStyle0 = defaultStyleCss$H;
|
|
5178
5205
|
|
|
5179
5206
|
class KolButtonGroup {
|
|
5180
5207
|
constructor(hostRef) {
|
|
@@ -5216,14 +5243,14 @@ class KolButtonGroupWc {
|
|
|
5216
5243
|
}; }
|
|
5217
5244
|
}
|
|
5218
5245
|
|
|
5219
|
-
const defaultStyleCss$
|
|
5220
|
-
var KolButtonLinkDefaultStyle0 = defaultStyleCss$
|
|
5246
|
+
const defaultStyleCss$G = "@layer kol-global {\n .sc-kol-button-link-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-button-link-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-button-link-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-button-link-default-h {\n display: inline-block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :is(a, button) {\n align-items: baseline;\n display: inline-flex;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n :is(a, button) .kol-span-wc .span-label {\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]) .kol-span-wc .span-label,\n button:is(:focus, :hover):not([disabled]) .kol-span-wc .span-label {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n left: -99999px;\n overflow: hidden;\n position: absolute;\n z-index: 9999999;\n line-height: 1em;\n }\n .skip:focus {\n background-color: #fff;\n left: unset;\n padding: 1em;\n position: unset;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n }\n}";
|
|
5247
|
+
var KolButtonLinkDefaultStyle0 = defaultStyleCss$G;
|
|
5221
5248
|
|
|
5222
5249
|
class KolButtonLink {
|
|
5223
5250
|
constructor(hostRef) {
|
|
5224
5251
|
registerInstance(this, hostRef);
|
|
5225
5252
|
this.catchRef = (ref) => {
|
|
5226
|
-
|
|
5253
|
+
this.buttonWcRef = ref;
|
|
5227
5254
|
};
|
|
5228
5255
|
this._accessKey = undefined;
|
|
5229
5256
|
this._ariaControls = undefined;
|
|
@@ -5246,10 +5273,16 @@ class KolButtonLink {
|
|
|
5246
5273
|
async getValue() {
|
|
5247
5274
|
return this._value;
|
|
5248
5275
|
}
|
|
5276
|
+
async focus() {
|
|
5277
|
+
await this.kolFocus();
|
|
5278
|
+
}
|
|
5279
|
+
async kolFocus() {
|
|
5280
|
+
var _a;
|
|
5281
|
+
await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
5282
|
+
}
|
|
5249
5283
|
render() {
|
|
5250
|
-
return (hAsync(Host, { key: '
|
|
5284
|
+
return (hAsync(Host, { key: '925b960759838064aebb5519d338b0833f4c9b24', class: "kol-button-link" }, hAsync(KolButtonWcTag, { key: '2eb980bbb032ad55772f90bdfba9f94d2f8d1b73', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _id: this._id, _label: this._label, _name: this._name, _on: this._on, _role: "link", _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { key: '52a25c7c8be71f8286313851b3ecdaa404814557', name: "expert", slot: "expert" }))));
|
|
5251
5285
|
}
|
|
5252
|
-
get host() { return getElement(this); }
|
|
5253
5286
|
static get style() { return {
|
|
5254
5287
|
default: KolButtonLinkDefaultStyle0
|
|
5255
5288
|
}; }
|
|
@@ -5274,7 +5307,9 @@ class KolButtonLink {
|
|
|
5274
5307
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
5275
5308
|
"_type": [1],
|
|
5276
5309
|
"_value": [8],
|
|
5277
|
-
"getValue": [64]
|
|
5310
|
+
"getValue": [64],
|
|
5311
|
+
"focus": [64],
|
|
5312
|
+
"kolFocus": [64]
|
|
5278
5313
|
},
|
|
5279
5314
|
"$listeners$": undefined,
|
|
5280
5315
|
"$lazyBundleId$": "-",
|
|
@@ -5379,6 +5414,7 @@ const propagateSubmitEventToForm = (options = {}) => {
|
|
|
5379
5414
|
};
|
|
5380
5415
|
|
|
5381
5416
|
const isAssociatedTagName = (name) => name === 'KOL-BUTTON' ||
|
|
5417
|
+
name === 'KOL-COMBOBOX' ||
|
|
5382
5418
|
name === 'KOL-INPUT-CHECKBOX' ||
|
|
5383
5419
|
name === 'KOL-INPUT-COLOR' ||
|
|
5384
5420
|
name === 'KOL-INPUT-DATE' ||
|
|
@@ -5529,7 +5565,7 @@ class AssociatedInputController {
|
|
|
5529
5565
|
},
|
|
5530
5566
|
});
|
|
5531
5567
|
if (typeof value === 'undefined') {
|
|
5532
|
-
devHint(`
|
|
5568
|
+
devHint(`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`);
|
|
5533
5569
|
}
|
|
5534
5570
|
}
|
|
5535
5571
|
validateSyncValueBySelector(value) {
|
|
@@ -5547,34 +5583,37 @@ class AssociatedInputController {
|
|
|
5547
5583
|
}
|
|
5548
5584
|
|
|
5549
5585
|
class KolButtonWc {
|
|
5586
|
+
async kolFocus() {
|
|
5587
|
+
var _a;
|
|
5588
|
+
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
5589
|
+
}
|
|
5550
5590
|
render() {
|
|
5551
5591
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
5552
|
-
return (hAsync(Host, { key: '
|
|
5592
|
+
return (hAsync(Host, { key: '72f9865e9a27e0f31ff94af66f69ab31adc22dd9', class: "kol-button-wc" }, hAsync("button", Object.assign({ key: '88b2d8ed077934acfb1707a7e0c71fc9af4789e1', ref: this.catchRef, accessKey: this.state._accessKey || undefined, "aria-controls": this.state._ariaControls, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: {
|
|
5553
5593
|
button: true,
|
|
5554
5594
|
disabled: this.state._disabled === true,
|
|
5555
5595
|
[this.state._variant]: this.state._variant !== 'custom',
|
|
5556
5596
|
[this.state._customClass]: this.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
5557
5597
|
'hide-label': this.state._hideLabel === true,
|
|
5558
|
-
}, disabled: this.state._disabled, id: this.state._id, name: this.state._name }, this.state._on, { onClick: this.onClick, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }), hAsync(KolSpanWcTag, { key: '
|
|
5598
|
+
}, disabled: this.state._disabled, id: this.state._id, name: this.state._name }, this.state._on, { onClick: this.onClick, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }), hAsync(KolSpanWcTag, { key: '425a6e12a5197db406790410cf382bdf6f3df274', class: "button-inner", _accessKey: this.state._accessKey, _icons: this.state._icons, _hideLabel: this.state._hideLabel, _label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: 'a70bb86e9824393e81aaddd59fa1fe6f0ef180e3', name: "expert", slot: "expert" }))), hAsync(KolTooltipWcTag, { key: '6f8bc766511dd57a8b9189b1b083e12f43262a32', "aria-hidden": "true", hidden: hasExpertSlot || !this.state._hideLabel, _accessKey: this._accessKey, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' })));
|
|
5559
5599
|
}
|
|
5560
5600
|
constructor(hostRef) {
|
|
5561
5601
|
registerInstance(this, hostRef);
|
|
5562
5602
|
this.catchRef = (ref) => {
|
|
5563
|
-
this.
|
|
5564
|
-
propagateFocus(this.host, this.ref);
|
|
5603
|
+
this.buttonRef = ref;
|
|
5565
5604
|
};
|
|
5566
5605
|
this.onClick = (event) => {
|
|
5567
5606
|
var _a, _b;
|
|
5568
5607
|
if (this.state._type === 'submit') {
|
|
5569
5608
|
propagateSubmitEventToForm({
|
|
5570
5609
|
form: this.host,
|
|
5571
|
-
ref: this.
|
|
5610
|
+
ref: this.buttonRef,
|
|
5572
5611
|
});
|
|
5573
5612
|
}
|
|
5574
5613
|
else if (this.state._type === 'reset') {
|
|
5575
5614
|
propagateResetEventToForm({
|
|
5576
5615
|
form: this.host,
|
|
5577
|
-
ref: this.
|
|
5616
|
+
ref: this.buttonRef,
|
|
5578
5617
|
});
|
|
5579
5618
|
}
|
|
5580
5619
|
else {
|
|
@@ -5582,7 +5621,7 @@ class KolButtonWc {
|
|
|
5582
5621
|
tryToDispatchKoliBriEvent('click', this.host, this.state._value);
|
|
5583
5622
|
this.controller.setFormAssociatedValue(this.state._value);
|
|
5584
5623
|
if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {
|
|
5585
|
-
setEventTarget(event, this.
|
|
5624
|
+
setEventTarget(event, this.buttonRef);
|
|
5586
5625
|
(_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onClick(event, this.state._value);
|
|
5587
5626
|
}
|
|
5588
5627
|
}
|
|
@@ -5741,7 +5780,8 @@ class KolButtonWc {
|
|
|
5741
5780
|
"_type": [1],
|
|
5742
5781
|
"_value": [8],
|
|
5743
5782
|
"_variant": [1],
|
|
5744
|
-
"state": [32]
|
|
5783
|
+
"state": [32],
|
|
5784
|
+
"kolFocus": [64]
|
|
5745
5785
|
},
|
|
5746
5786
|
"$listeners$": undefined,
|
|
5747
5787
|
"$lazyBundleId$": "-",
|
|
@@ -5749,8 +5789,8 @@ class KolButtonWc {
|
|
|
5749
5789
|
}; }
|
|
5750
5790
|
}
|
|
5751
5791
|
|
|
5752
|
-
const defaultStyleCss$
|
|
5753
|
-
var KolCardDefaultStyle0 = defaultStyleCss$
|
|
5792
|
+
const defaultStyleCss$F = "@layer kol-global {\n .sc-kol-card-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-card-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-card-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-card-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .sc-kol-card-default-h > div.card {\n height: 100%;\n position: relative;\n \n outline: transparent solid 1px;\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}";
|
|
5793
|
+
var KolCardDefaultStyle0 = defaultStyleCss$F;
|
|
5754
5794
|
|
|
5755
5795
|
class KolCard {
|
|
5756
5796
|
constructor(hostRef) {
|
|
@@ -5876,12 +5916,10 @@ class InputController extends ControlledInputController {
|
|
|
5876
5916
|
validateTooltipAlign(this.component, value);
|
|
5877
5917
|
}
|
|
5878
5918
|
validateError(value) {
|
|
5879
|
-
const message =
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
}
|
|
5884
|
-
: undefined;
|
|
5919
|
+
const message = {
|
|
5920
|
+
_description: value || '',
|
|
5921
|
+
_type: 'error',
|
|
5922
|
+
};
|
|
5885
5923
|
this.validateMsg(message);
|
|
5886
5924
|
}
|
|
5887
5925
|
validateHideError(value) {
|
|
@@ -5919,7 +5957,7 @@ class InputController extends ControlledInputController {
|
|
|
5919
5957
|
minLength: 1,
|
|
5920
5958
|
});
|
|
5921
5959
|
if (value === '' || typeof value === 'undefined') {
|
|
5922
|
-
devHint(`
|
|
5960
|
+
devHint(`A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.`);
|
|
5923
5961
|
}
|
|
5924
5962
|
}
|
|
5925
5963
|
validateLabel(value) {
|
|
@@ -6121,20 +6159,27 @@ const getRenderStates = (state) => {
|
|
|
6121
6159
|
return { hasError, hasHint, ariaDescribedBy };
|
|
6122
6160
|
};
|
|
6123
6161
|
|
|
6124
|
-
const defaultStyleCss$
|
|
6125
|
-
var KolComboboxDefaultStyle0 = defaultStyleCss$
|
|
6162
|
+
const defaultStyleCss$E = "@layer kol-global {\n .sc-kol-combobox-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-combobox-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-combobox-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .required label > span::after,\n .required legend > span::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .sc-kol-combobox-default-h {\n display: block;\n }\n}\n@layer kol-component {\n input,\n textarea {\n cursor: text;\n }\n input[type=checkbox],\n input[type=color],\n input[type=file],\n input[type=radio],\n input[type=range],\n label,\n option,\n select {\n cursor: pointer;\n }\n \n \n \n input[type=color],\n input[type=date],\n input[type=datetime-local],\n input[type=email],\n input[type=file],\n input[type=month],\n input[type=number],\n input[type=password],\n input[type=search],\n input[type=tel],\n input[type=text],\n input[type=time],\n input[type=url],\n input[type=week],\n select,\n select[multiple] option,\n textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n width: 100%;\n }\n \n input[type=file] {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n \n select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n}\n@layer kol-component {\n .kol-input {\n display: grid;\n }\n .kol-input .input-slot {\n flex-grow: 1;\n }\n input:not([type=checkbox], [type=radio]),\n select:not([multiple], [size]) {\n height: 2.75em;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n display: flex;\n align-items: center;\n }\n .input > .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input.required .input-tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .sc-kol-combobox-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .combobox {\n position: relative;\n }\n .combobox.disabled, .combobox.disabled * {\n cursor: not-allowed !important;\n }\n .combobox.disabled {\n opacity: 0.5;\n outline: none;\n }\n .combobox__group {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n }\n .combobox__input {\n flex-grow: 1;\n }\n .combobox__listbox {\n display: block;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 2;\n background-color: white;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
6163
|
+
var KolComboboxDefaultStyle0 = defaultStyleCss$E;
|
|
6126
6164
|
|
|
6127
6165
|
class KolCombobox {
|
|
6128
6166
|
async getValue() {
|
|
6129
|
-
return this._value;
|
|
6167
|
+
return this.state._value;
|
|
6130
6168
|
}
|
|
6131
|
-
selectOption(option) {
|
|
6169
|
+
selectOption(event, option) {
|
|
6170
|
+
var _a;
|
|
6171
|
+
this.controller.onFacade.onInput(event, true, option);
|
|
6172
|
+
this.controller.onFacade.onChange(event, option);
|
|
6173
|
+
this.controller.setFormAssociatedValue(option);
|
|
6132
6174
|
this.state._value = option;
|
|
6175
|
+
(_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6133
6176
|
}
|
|
6134
6177
|
onInput(event) {
|
|
6135
6178
|
const target = event.target;
|
|
6136
|
-
this._value = target.value;
|
|
6179
|
+
this.state._value = target.value;
|
|
6180
|
+
this.controller.onFacade.onInput(event);
|
|
6137
6181
|
this.setFilteredSuggestionsByQuery(target.value);
|
|
6182
|
+
this._focusedOptionIndex = -1;
|
|
6138
6183
|
}
|
|
6139
6184
|
handleKeyDownDropdown(event) {
|
|
6140
6185
|
if (event.key.length === 1 && /[a-z0-9]/i.test(event.key)) {
|
|
@@ -6164,14 +6209,13 @@ class KolCombobox {
|
|
|
6164
6209
|
if (newIndex < 0) {
|
|
6165
6210
|
newIndex = this._filteredSuggestions.length - 1;
|
|
6166
6211
|
}
|
|
6167
|
-
this.
|
|
6168
|
-
this.focusOption(this._focusedOptionIndex);
|
|
6212
|
+
this.focusOption(newIndex);
|
|
6169
6213
|
}
|
|
6170
6214
|
focusOption(index) {
|
|
6215
|
+
this._focusedOptionIndex = index;
|
|
6171
6216
|
if (this.refSuggestions) {
|
|
6172
6217
|
const optionElement = this.refSuggestions[index];
|
|
6173
6218
|
optionElement === null || optionElement === void 0 ? void 0 : optionElement.focus();
|
|
6174
|
-
this._value = optionElement.textContent || '';
|
|
6175
6219
|
}
|
|
6176
6220
|
}
|
|
6177
6221
|
focusSuggestionStartingWith(char) {
|
|
@@ -6180,33 +6224,41 @@ class KolCombobox {
|
|
|
6180
6224
|
this._filteredSuggestions.length > 0 &&
|
|
6181
6225
|
this._filteredSuggestions.findIndex((option) => option.toLowerCase().startsWith(charLowerCase));
|
|
6182
6226
|
if (typeof index === 'number') {
|
|
6183
|
-
this._focusedOptionIndex = index;
|
|
6184
6227
|
this.focusOption(index);
|
|
6185
6228
|
}
|
|
6186
6229
|
}
|
|
6187
6230
|
render() {
|
|
6188
6231
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
6189
6232
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
6190
|
-
return (hAsync(Host, { key: '
|
|
6233
|
+
return (hAsync(Host, { key: '3b6ed7846711e0f090b07b9c8d974c27e3015d6d', class: "kol-combobox" }, hAsync("div", { key: '6ded0f747452a8c066fee27194719456ab134fd6', class: `combobox ${this.state._disabled === true ? 'disabled' : ''} ` }, hAsync(KolInputWcTag, { key: 'cca6b8e1a21ac3192b42dad594b23268a79b51b7', _accessKey: this.state._accessKey, _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, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, role: `presentation` }, hAsync("span", { key: '5a58f8567fb84998545b011a2f9683705a26f946', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '6531318b53534dbc7914030aab7bea88cb604fae', slot: "input" }, hAsync("div", { key: '3107f4cf1267d5184f03a9e8c085c885d086c42e', class: "combobox__group" }, hAsync("input", Object.assign({ key: 'ebe2e9259edd9aa94e155c4e31e99163ac5f7b5d', ref: this.catchRef, class: "combobox__input", type: "text", role: "combobox", "aria-autocomplete": "both", "aria-expanded": this._isOpen ? 'true' : 'false', "aria-controls": "listbox", value: this.state._value, accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-labelledby": this.state._id, "aria-activedescendant": this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, name: this.state._name, required: this.state._required, spellcheck: "false" }, this.controller.onFacade, { onInput: this.onInput.bind(this), onClick: this.toggleListbox.bind(this), onChange: this.onChange.bind(this), placeholder: this.state._placeholder })), hAsync("span", { key: 'd5e96698996de3a055e52ca678264df8383eb46e', class: { combobox__icon: true } }, hAsync(KolIconTag, { key: 'a505c414eeb12d3cd90d8533231cd76c5006e142', _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown'), onClick: this.toggleListbox.bind(this) }))), this._isOpen && !(this.state._disabled === true) && (hAsync("ul", { key: '4ef259e659641ac8bd0d0ae93cd1b1e1743383aa', role: "listbox", "aria-label": "", class: { combobox__listbox: true }, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
6191
6234
|
this._filteredSuggestions.length > 0 &&
|
|
6192
6235
|
this._filteredSuggestions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
6193
6236
|
if (el)
|
|
6194
6237
|
this.refSuggestions[index] = el;
|
|
6195
|
-
}, "data-index": index, tabIndex: 0, role: "option", "aria-selected": this.state._value === option, onClick: () => {
|
|
6196
|
-
this.selectOption(option);
|
|
6238
|
+
}, "data-index": index, tabIndex: 0, role: "option", "aria-selected": this.state._value === option, onClick: (e) => {
|
|
6239
|
+
this.selectOption(e, option);
|
|
6197
6240
|
this.toggleListbox();
|
|
6241
|
+
}, onMouseOver: () => {
|
|
6242
|
+
this.focusOption(index);
|
|
6243
|
+
}, onFocus: () => {
|
|
6244
|
+
this.focusOption(index);
|
|
6198
6245
|
}, class: "combobox__item", onKeyDown: (e) => {
|
|
6199
6246
|
if (e.key === 'Enter' || e.key === 'NumpadEnter') {
|
|
6200
|
-
this.selectOption(option);
|
|
6247
|
+
this.selectOption(e, option);
|
|
6248
|
+
this.toggleListbox();
|
|
6201
6249
|
e.preventDefault();
|
|
6202
6250
|
}
|
|
6203
6251
|
} }, option))))))))));
|
|
6204
6252
|
}
|
|
6205
6253
|
handleKeyDown(event) {
|
|
6206
6254
|
const handleEvent = (isOpen, callback) => {
|
|
6255
|
+
var _a;
|
|
6207
6256
|
event.preventDefault();
|
|
6208
6257
|
if (isOpen !== undefined) {
|
|
6209
6258
|
this._isOpen = isOpen;
|
|
6259
|
+
if (!isOpen) {
|
|
6260
|
+
(_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6261
|
+
}
|
|
6210
6262
|
}
|
|
6211
6263
|
callback === null || callback === void 0 ? void 0 : callback();
|
|
6212
6264
|
};
|
|
@@ -6234,8 +6286,7 @@ class KolCombobox {
|
|
|
6234
6286
|
case 'Home': {
|
|
6235
6287
|
handleEvent(undefined, () => {
|
|
6236
6288
|
if (this._isOpen) {
|
|
6237
|
-
this.
|
|
6238
|
-
this.focusOption(this._focusedOptionIndex);
|
|
6289
|
+
this.focusOption(0);
|
|
6239
6290
|
}
|
|
6240
6291
|
});
|
|
6241
6292
|
break;
|
|
@@ -6243,18 +6294,17 @@ class KolCombobox {
|
|
|
6243
6294
|
case 'End': {
|
|
6244
6295
|
handleEvent(undefined, () => {
|
|
6245
6296
|
if (this._isOpen) {
|
|
6246
|
-
this.
|
|
6247
|
-
this.focusOption(this._focusedOptionIndex);
|
|
6297
|
+
this.focusOption(this._filteredSuggestions ? this._filteredSuggestions.length - 1 : 0);
|
|
6248
6298
|
}
|
|
6249
6299
|
});
|
|
6250
6300
|
break;
|
|
6251
6301
|
}
|
|
6252
6302
|
case 'PageUp': {
|
|
6253
|
-
handleEvent(undefined, () => this._isOpen && this.moveFocus(10));
|
|
6303
|
+
handleEvent(undefined, () => this._isOpen && this.moveFocus(-10));
|
|
6254
6304
|
break;
|
|
6255
6305
|
}
|
|
6256
6306
|
case 'PageDown': {
|
|
6257
|
-
handleEvent(undefined, () => this._isOpen && this.moveFocus(
|
|
6307
|
+
handleEvent(undefined, () => this._isOpen && this.moveFocus(10));
|
|
6258
6308
|
break;
|
|
6259
6309
|
}
|
|
6260
6310
|
}
|
|
@@ -6267,6 +6317,7 @@ class KolCombobox {
|
|
|
6267
6317
|
constructor(hostRef) {
|
|
6268
6318
|
registerInstance(this, hostRef);
|
|
6269
6319
|
this.refSuggestions = [];
|
|
6320
|
+
this._focusedOptionIndex = -1;
|
|
6270
6321
|
this.toggleListbox = () => {
|
|
6271
6322
|
if (this.state._disabled === true) {
|
|
6272
6323
|
this._isOpen = false;
|
|
@@ -6274,13 +6325,16 @@ class KolCombobox {
|
|
|
6274
6325
|
else {
|
|
6275
6326
|
this._isOpen = !this._isOpen;
|
|
6276
6327
|
if (this._isOpen && Array.isArray(this._filteredSuggestions) && this._filteredSuggestions.length > 0) {
|
|
6277
|
-
const selectedIndex = this._filteredSuggestions.findIndex((option) => option === this._value);
|
|
6328
|
+
const selectedIndex = this._filteredSuggestions.findIndex((option) => option === this.state._value);
|
|
6278
6329
|
this._focusedOptionIndex = selectedIndex >= 0 ? selectedIndex : 0;
|
|
6279
6330
|
this.focusOption(this._focusedOptionIndex);
|
|
6280
6331
|
}
|
|
6281
6332
|
}
|
|
6282
6333
|
};
|
|
6283
|
-
this.
|
|
6334
|
+
this.catchRef = (ref) => {
|
|
6335
|
+
this.ref = ref;
|
|
6336
|
+
propagateFocus(this.host, this.ref);
|
|
6337
|
+
};
|
|
6284
6338
|
this._isOpen = false;
|
|
6285
6339
|
this._filteredSuggestions = undefined;
|
|
6286
6340
|
this._accessKey = undefined;
|
|
@@ -6370,6 +6424,7 @@ class KolCombobox {
|
|
|
6370
6424
|
}
|
|
6371
6425
|
validateValue(value) {
|
|
6372
6426
|
this.controller.validateValue(value);
|
|
6427
|
+
this.controller.setFormAssociatedValue(value);
|
|
6373
6428
|
}
|
|
6374
6429
|
componentWillLoad() {
|
|
6375
6430
|
this.refSuggestions = [];
|
|
@@ -6385,7 +6440,7 @@ class KolCombobox {
|
|
|
6385
6440
|
stopPropagation(event);
|
|
6386
6441
|
tryToDispatchKoliBriEvent('change', this.host, this._value);
|
|
6387
6442
|
this.controller.setFormAssociatedValue(this._value);
|
|
6388
|
-
if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onChange) === 'function') {
|
|
6443
|
+
if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onChange) === 'function' && !this._isOpen) {
|
|
6389
6444
|
this.state._on.onChange(event, this._value);
|
|
6390
6445
|
}
|
|
6391
6446
|
}
|
|
@@ -6515,8 +6570,8 @@ class DetailsAnimationController {
|
|
|
6515
6570
|
}
|
|
6516
6571
|
}
|
|
6517
6572
|
|
|
6518
|
-
const defaultStyleCss$
|
|
6519
|
-
var KolDetailsDefaultStyle0 = defaultStyleCss$
|
|
6573
|
+
const defaultStyleCss$D = "@layer kol-global {\n .sc-kol-details-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-details-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-details-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-details-default-h {\n display: block;\n }\n}\n@layer kol-component {\n .sc-kol-details-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n details {\n display: grid;\n }\n details > summary {\n cursor: pointer;\n display: flex;\n place-items: center;\n }\n details > summary > span {\n border-bottom-color: grey;\n border-bottom-style: solid;\n }\n details > summary:focus > span,\n details > summary:hover > span,\n details[open] > summary > span {\n border-bottom-color: #000;\n }\n .content {\n overflow: hidden;\n }\n details > .kol-indented-text {\n margin: 0.25em 0 0 0.5em;\n }\n .icon.is-open::part(icon) {\n transform: rotate(90deg);\n }\n}";
|
|
6574
|
+
var KolDetailsDefaultStyle0 = defaultStyleCss$D;
|
|
6520
6575
|
|
|
6521
6576
|
class KolDetails {
|
|
6522
6577
|
constructor(hostRef) {
|
|
@@ -6526,7 +6581,6 @@ class KolDetails {
|
|
|
6526
6581
|
};
|
|
6527
6582
|
this.catchSummary = (ref) => {
|
|
6528
6583
|
this.summaryElement = ref;
|
|
6529
|
-
propagateFocus(this.host, this.summaryElement);
|
|
6530
6584
|
};
|
|
6531
6585
|
this.preventToggleIfDisabled = (event) => {
|
|
6532
6586
|
if (this.state._disabled === true) {
|
|
@@ -6556,11 +6610,18 @@ class KolDetails {
|
|
|
6556
6610
|
_on: {},
|
|
6557
6611
|
};
|
|
6558
6612
|
}
|
|
6613
|
+
async focus() {
|
|
6614
|
+
await this.kolFocus();
|
|
6615
|
+
}
|
|
6616
|
+
async kolFocus() {
|
|
6617
|
+
var _a;
|
|
6618
|
+
(_a = this.summaryElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6619
|
+
}
|
|
6559
6620
|
render() {
|
|
6560
|
-
return (hAsync(Host, { key: '
|
|
6621
|
+
return (hAsync(Host, { key: 'c81f22ea30774221c48f71dba31670c1a227ff05', class: "kol-details" }, hAsync("details", { key: '1f638cd9c47d989195b15708096a9c2652a3b97a', ref: this.catchDetails, class: {
|
|
6561
6622
|
disabled: this.state._disabled === true,
|
|
6562
6623
|
open: this.state._open === true,
|
|
6563
|
-
}, onToggle: this.handleToggle }, hAsync("summary", { key: '
|
|
6624
|
+
}, onToggle: this.handleToggle }, hAsync("summary", { key: 'b78004a89667175bf308f0a239780c15b39d313c', ref: this.catchSummary, "aria-disabled": this.state._disabled ? 'true' : undefined, onClick: this.preventToggleIfDisabled, onKeyPress: this.preventToggleIfDisabled, tabIndex: this.state._disabled ? -1 : undefined }, hAsync(KolIconTag, { key: '69310b844d6f1b5feba60fc77aec6b4b3ba3ed3f', _label: "", _icons: "codicon codicon-chevron-right", class: `icon ${this.state._open ? 'is-open' : ''}` }), hAsync("span", { key: 'b2cfadced810939b201c79a31051a854a276375a' }, this.state._label)), hAsync("div", { key: '3f237b2a06e1f72f11879d3d96c3557efb14810c', "aria-hidden": this.state._open === false ? 'true' : undefined, class: "content", ref: (element) => (this.contentElement = element) }, hAsync(KolIndentedTextTag, { key: '85386e4ed2bd9566df2c2cbea897fc67985b0d3f' }, hAsync("slot", { key: '06ae87dccb0fcc5833d28d56887a7f5eefb82211' }))))));
|
|
6564
6625
|
}
|
|
6565
6626
|
validateDisabled(value) {
|
|
6566
6627
|
validateDisabled(this, value);
|
|
@@ -6610,7 +6671,9 @@ class KolDetails {
|
|
|
6610
6671
|
"_label": [1],
|
|
6611
6672
|
"_on": [16],
|
|
6612
6673
|
"_open": [1540],
|
|
6613
|
-
"state": [32]
|
|
6674
|
+
"state": [32],
|
|
6675
|
+
"focus": [64],
|
|
6676
|
+
"kolFocus": [64]
|
|
6614
6677
|
},
|
|
6615
6678
|
"$listeners$": undefined,
|
|
6616
6679
|
"$lazyBundleId$": "-",
|
|
@@ -6618,6 +6681,138 @@ class KolDetails {
|
|
|
6618
6681
|
}; }
|
|
6619
6682
|
}
|
|
6620
6683
|
|
|
6684
|
+
const defaultStyleCss$C = "@layer kol-global {\n .sc-kol-drawer-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-drawer-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-drawer-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .drawer__dialog {\n padding: 0;\n border: none;\n }\n .drawer__wrapper {\n position: fixed;\n width: auto;\n overflow: auto;\n background: white;\n }\n .drawer__wrapper--left {\n top: 0;\n left: 0;\n height: 100vh;\n max-height: 100%;\n }\n .drawer__wrapper--right {\n top: 0;\n right: 0;\n height: 100vh;\n max-height: 100%;\n }\n .drawer__wrapper--top {\n left: 0;\n top: 0;\n width: 100vw;\n max-width: 100%;\n }\n .drawer__wrapper--bottom {\n left: 0;\n bottom: 0;\n width: 100vw;\n max-width: 100%;\n }\n .drawer__content {\n position: relative;\n padding: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
6685
|
+
var KolDrawerDefaultStyle0 = defaultStyleCss$C;
|
|
6686
|
+
|
|
6687
|
+
class KolDrawer {
|
|
6688
|
+
constructor(hostRef) {
|
|
6689
|
+
registerInstance(this, hostRef);
|
|
6690
|
+
this.getWrapperRef = (el) => (this.dialogWrapperElement = el);
|
|
6691
|
+
this.getRef = (el) => (this.dialogElement = el);
|
|
6692
|
+
this._open = undefined;
|
|
6693
|
+
this._align = undefined;
|
|
6694
|
+
this._label = undefined;
|
|
6695
|
+
this._modal = undefined;
|
|
6696
|
+
this._on = undefined;
|
|
6697
|
+
this.state = {
|
|
6698
|
+
_label: '',
|
|
6699
|
+
_open: false,
|
|
6700
|
+
_align: 'left',
|
|
6701
|
+
};
|
|
6702
|
+
}
|
|
6703
|
+
async open() {
|
|
6704
|
+
var _a, _b;
|
|
6705
|
+
this.state = Object.assign(Object.assign({}, this.state), { _open: true });
|
|
6706
|
+
if (this.state._modal) {
|
|
6707
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
6708
|
+
}
|
|
6709
|
+
else {
|
|
6710
|
+
(_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.show();
|
|
6711
|
+
}
|
|
6712
|
+
}
|
|
6713
|
+
async close() {
|
|
6714
|
+
this.state = Object.assign(Object.assign({}, this.state), { _open: false });
|
|
6715
|
+
const wrapper = this.dialogWrapperElement;
|
|
6716
|
+
if (!wrapper)
|
|
6717
|
+
return;
|
|
6718
|
+
const computedStyle = window.getComputedStyle(wrapper);
|
|
6719
|
+
if (computedStyle.animationName === 'none') {
|
|
6720
|
+
this.handleCloseDialog();
|
|
6721
|
+
}
|
|
6722
|
+
}
|
|
6723
|
+
renderDialogContent() {
|
|
6724
|
+
const align = this.state._align;
|
|
6725
|
+
return (hAsync("div", { ref: this.getWrapperRef, class: `drawer__wrapper drawer__wrapper--${align} ${this.state._open ? 'drawer__wrapper--open' : 'is-closing'}`, "aria-label": this.state._label }, hAsync("div", { class: "drawer__content" }, hAsync("slot", null))));
|
|
6726
|
+
}
|
|
6727
|
+
render() {
|
|
6728
|
+
const isModal = this.state._modal;
|
|
6729
|
+
return (hAsync(Host, { key: '002834bc0b77fb80001f8a7c5b565b9e45c8de03', class: `kol-drawer drawer ${isModal ? 'drawer--modal' : ''}`, ref: (el) => (this.hostElement = el) }, hAsync("dialog", { key: '5d27b28c355b4eb6ab1c3e3d21f4c3a6746a7fbf', class: "drawer__dialog", ref: this.getRef }, this.renderDialogContent())));
|
|
6730
|
+
}
|
|
6731
|
+
validateLabel(value) {
|
|
6732
|
+
validateLabel(this, value, {
|
|
6733
|
+
required: true,
|
|
6734
|
+
});
|
|
6735
|
+
}
|
|
6736
|
+
validateAlign(value) {
|
|
6737
|
+
validateAlign(this, value);
|
|
6738
|
+
}
|
|
6739
|
+
validateModal(value) {
|
|
6740
|
+
validateModal(this, value);
|
|
6741
|
+
}
|
|
6742
|
+
async validateOpen(value) {
|
|
6743
|
+
if (typeof value === 'boolean') {
|
|
6744
|
+
validateOpen(this, value);
|
|
6745
|
+
value ? await this.open() : await this.close();
|
|
6746
|
+
}
|
|
6747
|
+
}
|
|
6748
|
+
validateOn(value) {
|
|
6749
|
+
if (typeof value === 'object' && value !== null) {
|
|
6750
|
+
const callbacks = {};
|
|
6751
|
+
if (typeof value.onClose === 'function') {
|
|
6752
|
+
callbacks.onClose = value.onClose;
|
|
6753
|
+
}
|
|
6754
|
+
setState(this, '_on', callbacks);
|
|
6755
|
+
}
|
|
6756
|
+
}
|
|
6757
|
+
handleCloseDialog() {
|
|
6758
|
+
var _a, _b, _c;
|
|
6759
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
6760
|
+
(_c = (_b = this._on) === null || _b === void 0 ? void 0 : _b.onClose) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
6761
|
+
}
|
|
6762
|
+
handleClose() {
|
|
6763
|
+
}
|
|
6764
|
+
handleAnimationEnd(e) {
|
|
6765
|
+
const animationEvent = e;
|
|
6766
|
+
if (animationEvent.animationName.includes('slideOut')) {
|
|
6767
|
+
this.handleCloseDialog();
|
|
6768
|
+
}
|
|
6769
|
+
}
|
|
6770
|
+
componentDidLoad() {
|
|
6771
|
+
var _a, _b;
|
|
6772
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.addEventListener('animationend', this.handleAnimationEnd.bind(this));
|
|
6773
|
+
(_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.addEventListener('close', this.handleClose.bind(this));
|
|
6774
|
+
}
|
|
6775
|
+
disconnectedCallback() {
|
|
6776
|
+
var _a, _b;
|
|
6777
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('animationend', this.handleAnimationEnd.bind(this));
|
|
6778
|
+
(_b = this.dialogElement) === null || _b === void 0 ? void 0 : _b.removeEventListener('close', this.handleClose.bind(this));
|
|
6779
|
+
}
|
|
6780
|
+
async componentWillLoad() {
|
|
6781
|
+
this.validateLabel(this._label);
|
|
6782
|
+
await this.validateOpen(this._open);
|
|
6783
|
+
this.validateAlign(this._align);
|
|
6784
|
+
this.validateModal(this._modal);
|
|
6785
|
+
this.validateOn(this._on);
|
|
6786
|
+
}
|
|
6787
|
+
static get watchers() { return {
|
|
6788
|
+
"_label": ["validateLabel"],
|
|
6789
|
+
"_align": ["validateAlign"],
|
|
6790
|
+
"_modal": ["validateModal"],
|
|
6791
|
+
"_open": ["validateOpen"],
|
|
6792
|
+
"_on": ["validateOn"]
|
|
6793
|
+
}; }
|
|
6794
|
+
static get style() { return {
|
|
6795
|
+
default: KolDrawerDefaultStyle0
|
|
6796
|
+
}; }
|
|
6797
|
+
static get cmpMeta() { return {
|
|
6798
|
+
"$flags$": 41,
|
|
6799
|
+
"$tagName$": "kol-drawer",
|
|
6800
|
+
"$members$": {
|
|
6801
|
+
"_open": [4],
|
|
6802
|
+
"_align": [1],
|
|
6803
|
+
"_label": [1],
|
|
6804
|
+
"_modal": [4],
|
|
6805
|
+
"_on": [16],
|
|
6806
|
+
"state": [32],
|
|
6807
|
+
"open": [64],
|
|
6808
|
+
"close": [64]
|
|
6809
|
+
},
|
|
6810
|
+
"$listeners$": undefined,
|
|
6811
|
+
"$lazyBundleId$": "-",
|
|
6812
|
+
"$attrsToReflect$": []
|
|
6813
|
+
}; }
|
|
6814
|
+
}
|
|
6815
|
+
|
|
6621
6816
|
class KolForm {
|
|
6622
6817
|
constructor(hostRef) {
|
|
6623
6818
|
registerInstance(this, hostRef);
|
|
@@ -6655,10 +6850,10 @@ class KolForm {
|
|
|
6655
6850
|
this.state = {};
|
|
6656
6851
|
}
|
|
6657
6852
|
render() {
|
|
6658
|
-
return (hAsync(Host, { key: '
|
|
6853
|
+
return (hAsync(Host, { key: '005270f9d4c739b5f2b399546d91dc8559bb45db', class: "kol-form" }, this._errorList && this._errorList.length > 0 && (hAsync(KolAlertTag, { key: '7acdf57b3f0954ee26df575334f7521d1898a597', _type: "error" }, translate('kol-error-list-message'), hAsync("nav", { key: 'f16799bcbb7f60baec798674acb9f38c28424ce0', "aria-label": translate('kol-error-list') }, hAsync("ul", { key: '8c86a5fa750031073142d383d1806bcae7a9eec6' }, this._errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkTag, { _href: error.selector, _label: error.message, _on: { onClick: this.handleLinkClick }, ref: (el) => {
|
|
6659
6854
|
if (index === 0)
|
|
6660
6855
|
this.errorListElement = el;
|
|
6661
|
-
} })))))))), hAsync("form", { key: '
|
|
6856
|
+
} })))))))), hAsync("form", { key: 'a626ea1dc80b465abfc4153b4c2217a462e3faf0', method: "post", onSubmit: this.onSubmit, onReset: this.onReset, autoComplete: "off", noValidate: true }, this.state._requiredText === true ? (hAsync("p", null, hAsync(KolIndentedTextTag, null, translate('kol-form-description')))) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (hAsync("p", null, hAsync(KolIndentedTextTag, null, this.state._requiredText))) : null, hAsync("slot", { key: '05b129e368edc5151a8e3b19bc696b749be3db2a' }))));
|
|
6662
6857
|
}
|
|
6663
6858
|
async focusErrorList() {
|
|
6664
6859
|
setTimeout(() => {
|
|
@@ -6723,7 +6918,7 @@ class KolHeading {
|
|
|
6723
6918
|
this._variant = undefined;
|
|
6724
6919
|
}
|
|
6725
6920
|
render() {
|
|
6726
|
-
return (hAsync(KolHeadingWcTag, { key: '
|
|
6921
|
+
return (hAsync(KolHeadingWcTag, { key: '6ad0f63801b30d55ce6a1c5c5bafc2c9ec623752', _label: this._label, _level: this._level, _secondaryHeadline: this._secondaryHeadline, _variant: this._variant, class: "kol-heading" }, hAsync("slot", { key: '38aed341a23661c627cd84fa0f16f3d424541713', name: "expert", slot: "expert" })));
|
|
6727
6922
|
}
|
|
6728
6923
|
static get style() { return {
|
|
6729
6924
|
default: KolHeadingDefaultStyle0
|
|
@@ -6801,7 +6996,7 @@ class KolHeadingWc {
|
|
|
6801
6996
|
this.validateVariant(this._variant);
|
|
6802
6997
|
}
|
|
6803
6998
|
render() {
|
|
6804
|
-
return (hAsync(Host, { key: '
|
|
6999
|
+
return (hAsync(Host, { key: '16152887a63517d019bee1e1aa4669c32a581a37', 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), this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1))) : (this.renderHeadline(this.state._label, this.state._level))));
|
|
6805
7000
|
}
|
|
6806
7001
|
static get watchers() { return {
|
|
6807
7002
|
"_label": ["validateLabel"],
|
|
@@ -6840,7 +7035,7 @@ class KolIcon {
|
|
|
6840
7035
|
}
|
|
6841
7036
|
render() {
|
|
6842
7037
|
const ariaShow = this.state._label.length > 0;
|
|
6843
|
-
return (hAsync(Host, { key: '
|
|
7038
|
+
return (hAsync(Host, { key: '3083ab3b7dfac62823b415deed2a943624e3d3d7', exportparts: "icon", class: "kol-icon" }, hAsync("i", { key: '197b0e98fa4672a91bd6f7e8836c99b26c62eeaf', "aria-hidden": ariaShow ? undefined : 'true', "aria-label": ariaShow ? this.state._label : undefined, class: this.state._icons, part: "icon", role: "img" })));
|
|
6844
7039
|
}
|
|
6845
7040
|
validateIcons(value) {
|
|
6846
7041
|
watchString(this, '_icons', value, {
|
|
@@ -6921,7 +7116,7 @@ class KolImage {
|
|
|
6921
7116
|
this.validateSrcset(this._srcset);
|
|
6922
7117
|
}
|
|
6923
7118
|
render() {
|
|
6924
|
-
return (hAsync(Host, { key: '
|
|
7119
|
+
return (hAsync(Host, { key: 'eea8ad6a0b03687005b477fec030de58aa049891', class: "kol-image" }, hAsync("img", { key: 'd00475bd0c8df6a965ae402879910a430231b4a1', alt: this.state._alt, loading: this.state._loading, sizes: this.state._sizes, src: this.state._src, srcset: this.state._srcset })));
|
|
6925
7120
|
}
|
|
6926
7121
|
static get watchers() { return {
|
|
6927
7122
|
"_alt": ["validateAlt"],
|
|
@@ -6959,7 +7154,7 @@ class KolIndentedText {
|
|
|
6959
7154
|
this.state = {};
|
|
6960
7155
|
}
|
|
6961
7156
|
render() {
|
|
6962
|
-
return (hAsync(Host, { key: '
|
|
7157
|
+
return (hAsync(Host, { key: '674c96016710a7da20d2818387457838785b3356', class: "kol-indented-text-wc" }, hAsync("div", { key: 'b8f4bc81340ef597d42df3ab5e997a4eacb12267' }, hAsync("slot", { key: '29084aadeed639db76fed6a9a3bdf46facf5ef52' }))));
|
|
6963
7158
|
}
|
|
6964
7159
|
static get style() { return {
|
|
6965
7160
|
default: KolIndentedTextDefaultStyle0
|
|
@@ -7108,21 +7303,28 @@ class KolInputCheckbox {
|
|
|
7108
7303
|
async getValue() {
|
|
7109
7304
|
return this.getModelValue();
|
|
7110
7305
|
}
|
|
7306
|
+
async focus() {
|
|
7307
|
+
await this.kolFocus();
|
|
7308
|
+
}
|
|
7309
|
+
async kolFocus() {
|
|
7310
|
+
var _a;
|
|
7311
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7312
|
+
}
|
|
7111
7313
|
render() {
|
|
7112
7314
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
7113
7315
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
7114
|
-
return (hAsync(Host, { key: '
|
|
7316
|
+
return (hAsync(Host, { key: 'dc370837af55af47703a694a130c8741c33486cb', class: "kol-input-checkbox" }, hAsync(KolInputWcTag, { key: '3ca714b19dac1f42d3e64c8476b128b972cfdca1', class: {
|
|
7115
7317
|
checkbox: true,
|
|
7116
7318
|
[this.state._variant]: true,
|
|
7117
7319
|
'hide-label': !!this.state._hideLabel,
|
|
7118
7320
|
checked: this.state._checked,
|
|
7119
7321
|
indeterminate: this.state._indeterminate,
|
|
7120
|
-
}, "data-role": this.state._variant === 'button' ? 'button' : undefined, _accessKey: this.state._accessKey, _alert: this.state._alert, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: this.state._id, _label: this.state._label, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '
|
|
7322
|
+
}, "data-role": this.state._variant === 'button' ? 'button' : undefined, _accessKey: this.state._accessKey, _alert: this.state._alert, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _id: this.state._id, _label: this.state._label, _required: this.state._required, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '2bff685d8c0317cacc948f0c805fef10fb653636', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("label", { key: '635658a3307d58a6070e1111897b8f0b283edb89', slot: "input", class: "checkbox-container" }, hAsync(KolIconTag, { key: '860eaaaa13aadbb5611270163afebe8cbb2a6781', class: "icon", _icons: this.state._indeterminate ? this.state._icons.indeterminate : this.state._checked ? this.state._icons.checked : this.state._icons.unchecked, _label: "" }), hAsync("input", Object.assign({ key: 'a5490285924abde52bfb7270b05d0cff4e4cbcbd', class: `checkbox-input-element${this.state._variant === 'button' ? ' visually-hidden' : ''}`, 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, checked: this.state._checked, disabled: this.state._disabled, id: this.state._id, indeterminate: this.state._indeterminate, name: this.state._name, required: this.state._required, tabIndex: this.state._tabIndex, type: "checkbox" }, this.controller.onFacade, { onInput: this.onInput, onChange: this.onChange, onClick: undefined }))))));
|
|
7121
7323
|
}
|
|
7122
7324
|
constructor(hostRef) {
|
|
7123
7325
|
registerInstance(this, hostRef);
|
|
7124
7326
|
this.catchRef = (ref) => {
|
|
7125
|
-
|
|
7327
|
+
this.inputRef = ref;
|
|
7126
7328
|
};
|
|
7127
7329
|
this.onInput = (event) => {
|
|
7128
7330
|
var _a;
|
|
@@ -7303,7 +7505,9 @@ class KolInputCheckbox {
|
|
|
7303
7505
|
"_value": [8],
|
|
7304
7506
|
"_variant": [1],
|
|
7305
7507
|
"state": [32],
|
|
7306
|
-
"getValue": [64]
|
|
7508
|
+
"getValue": [64],
|
|
7509
|
+
"focus": [64],
|
|
7510
|
+
"kolFocus": [64]
|
|
7307
7511
|
},
|
|
7308
7512
|
"$listeners$": undefined,
|
|
7309
7513
|
"$lazyBundleId$": "-",
|
|
@@ -7340,22 +7544,28 @@ var KolInputColorDefaultStyle0 = defaultStyleCss$w;
|
|
|
7340
7544
|
class KolInputColor {
|
|
7341
7545
|
async getValue() {
|
|
7342
7546
|
var _a;
|
|
7343
|
-
return (_a = this.
|
|
7547
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
7548
|
+
}
|
|
7549
|
+
async focus() {
|
|
7550
|
+
await this.kolFocus();
|
|
7551
|
+
}
|
|
7552
|
+
async kolFocus() {
|
|
7553
|
+
var _a;
|
|
7554
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7344
7555
|
}
|
|
7345
7556
|
render() {
|
|
7346
7557
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
7347
7558
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
7348
7559
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
7349
|
-
return (hAsync(Host, { key: '
|
|
7560
|
+
return (hAsync(Host, { key: '0601ac4b0fdf10104660b9aa870d2d5a37eb4736', class: "kol-input-color" }, hAsync(KolInputWcTag, { key: 'd3978aa4d5259d0a038eb447125dcc0ed0ce36a6', class: {
|
|
7350
7561
|
color: true,
|
|
7351
7562
|
'hide-label': !!this.state._hideLabel,
|
|
7352
|
-
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _hideError: this.state._hideError, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.
|
|
7563
|
+
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _hideError: this.state._hideError, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _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: '3cbb005bec96cc06d5585f1003132876742cac8d', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '846984d2e32be62a683f385f9a1bece68c5433a9', slot: "input" }, hAsync("input", Object.assign({ key: 'd104710211564ef526169b0e8759f72fc7c3bec5', 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, name: this.state._name, slot: "input", spellcheck: "false", type: "color", value: this.state._value }, this.controller.onFacade))))));
|
|
7353
7564
|
}
|
|
7354
7565
|
constructor(hostRef) {
|
|
7355
7566
|
registerInstance(this, hostRef);
|
|
7356
7567
|
this.catchRef = (ref) => {
|
|
7357
|
-
this.
|
|
7358
|
-
propagateFocus(this.host, this.ref);
|
|
7568
|
+
this.inputRef = ref;
|
|
7359
7569
|
};
|
|
7360
7570
|
this._accessKey = undefined;
|
|
7361
7571
|
this._alert = true;
|
|
@@ -7504,7 +7714,9 @@ class KolInputColor {
|
|
|
7504
7714
|
"_touched": [1540],
|
|
7505
7715
|
"_value": [1],
|
|
7506
7716
|
"state": [32],
|
|
7507
|
-
"getValue": [64]
|
|
7717
|
+
"getValue": [64],
|
|
7718
|
+
"focus": [64],
|
|
7719
|
+
"kolFocus": [64]
|
|
7508
7720
|
},
|
|
7509
7721
|
"$listeners$": undefined,
|
|
7510
7722
|
"$lazyBundleId$": "-",
|
|
@@ -7652,28 +7864,34 @@ var KolInputDateDefaultStyle0 = defaultStyleCss$v;
|
|
|
7652
7864
|
class KolInputDate {
|
|
7653
7865
|
async getValue() {
|
|
7654
7866
|
var _a;
|
|
7655
|
-
return (_a = this.
|
|
7867
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
7868
|
+
}
|
|
7869
|
+
async focus() {
|
|
7870
|
+
await this.kolFocus();
|
|
7871
|
+
}
|
|
7872
|
+
async kolFocus() {
|
|
7873
|
+
var _a;
|
|
7874
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7656
7875
|
}
|
|
7657
7876
|
render() {
|
|
7658
7877
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
7659
7878
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
7660
7879
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
7661
|
-
return (hAsync(Host, { key: '
|
|
7880
|
+
return (hAsync(Host, { key: 'daab68fe9c408f419920ae17ceacbf4736e664f6', class: { 'kol-input-date': true, 'has-value': this.state._hasValue } }, hAsync(KolInputWcTag, { key: '91d0b22db597525310d4005382b6f38230dcf6cf', class: {
|
|
7662
7881
|
[this.state._type]: true,
|
|
7663
7882
|
'hide-label': !!this.state._hideLabel,
|
|
7664
|
-
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '
|
|
7883
|
+
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '20cd23c9007a82222dac1cb1bae9e145c296776a', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '13ac81690d7da38f475c2b168127787971753355', slot: "input" }, hAsync("input", Object.assign({ key: '8712bdce4139bb032ee75e199a1a27327602bd88', 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, max: this.state._max, min: this.state._min, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, step: this.state._step, spellcheck: "false", type: this.state._type, value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown }))))));
|
|
7665
7884
|
}
|
|
7666
7885
|
constructor(hostRef) {
|
|
7667
7886
|
registerInstance(this, hostRef);
|
|
7668
7887
|
this.catchRef = (ref) => {
|
|
7669
|
-
this.
|
|
7670
|
-
propagateFocus(this.host, this.ref);
|
|
7888
|
+
this.inputRef = ref;
|
|
7671
7889
|
};
|
|
7672
7890
|
this.onKeyDown = (event) => {
|
|
7673
7891
|
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
|
7674
7892
|
propagateSubmitEventToForm({
|
|
7675
7893
|
form: this.host,
|
|
7676
|
-
ref: this.
|
|
7894
|
+
ref: this.inputRef,
|
|
7677
7895
|
});
|
|
7678
7896
|
}
|
|
7679
7897
|
};
|
|
@@ -7795,8 +8013,8 @@ class KolInputDate {
|
|
|
7795
8013
|
deprecatedHint('Date type will be removed in v3. Use `Iso8601` instead.');
|
|
7796
8014
|
}
|
|
7797
8015
|
this.controller.validateValueEx(value, (v) => {
|
|
7798
|
-
if (v === '' && this.
|
|
7799
|
-
this.
|
|
8016
|
+
if (v === '' && this.inputRef) {
|
|
8017
|
+
this.inputRef.value = '';
|
|
7800
8018
|
}
|
|
7801
8019
|
});
|
|
7802
8020
|
}
|
|
@@ -7871,7 +8089,9 @@ class KolInputDate {
|
|
|
7871
8089
|
"_type": [1],
|
|
7872
8090
|
"_value": [1025],
|
|
7873
8091
|
"state": [32],
|
|
7874
|
-
"getValue": [64]
|
|
8092
|
+
"getValue": [64],
|
|
8093
|
+
"focus": [64],
|
|
8094
|
+
"kolFocus": [64]
|
|
7875
8095
|
},
|
|
7876
8096
|
"$listeners$": undefined,
|
|
7877
8097
|
"$lazyBundleId$": "-",
|
|
@@ -7985,28 +8205,34 @@ var KolInputEmailDefaultStyle0 = defaultStyleCss$u;
|
|
|
7985
8205
|
class KolInputEmail {
|
|
7986
8206
|
async getValue() {
|
|
7987
8207
|
var _a;
|
|
7988
|
-
return (_a = this.
|
|
8208
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
8209
|
+
}
|
|
8210
|
+
async focus() {
|
|
8211
|
+
await this.kolFocus();
|
|
8212
|
+
}
|
|
8213
|
+
async kolFocus() {
|
|
8214
|
+
var _a;
|
|
8215
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7989
8216
|
}
|
|
7990
8217
|
render() {
|
|
7991
8218
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
7992
8219
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
7993
8220
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
7994
|
-
return (hAsync(Host, { key: '
|
|
8221
|
+
return (hAsync(Host, { key: 'd4e3a5c2235fc4137588243b268c85bc5e7b51b2', class: {
|
|
7995
8222
|
'kol-input-email': true,
|
|
7996
8223
|
'has-value': this.state._hasValue,
|
|
7997
|
-
} }, hAsync(KolInputWcTag, { key: '
|
|
8224
|
+
} }, hAsync(KolInputWcTag, { key: '97c2a33930427a5327e952f2395e90f1baf6fee6', class: { email: true, 'hide-label': !!this.state._hideLabel }, _accessKey: this.state._accessKey, _alert: this.state._alert, _currentLength: this.state._currentLength, _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, _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: 'e9565f30fab66dcc9305563ad87d61cac7b7c4b8', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '05509dbf1c0714c37dbe290b7f6aefe220a145a4', slot: "input" }, hAsync("input", Object.assign({ key: 'f6b839c5eda669a550bb88869e102998633b2941', 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, spellcheck: "false", type: "email", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onInput: this.onInput }))))));
|
|
7998
8225
|
}
|
|
7999
8226
|
constructor(hostRef) {
|
|
8000
8227
|
registerInstance(this, hostRef);
|
|
8001
8228
|
this.catchRef = (ref) => {
|
|
8002
|
-
this.
|
|
8003
|
-
propagateFocus(this.host, this.ref);
|
|
8229
|
+
this.inputRef = ref;
|
|
8004
8230
|
};
|
|
8005
8231
|
this.onKeyDown = (event) => {
|
|
8006
8232
|
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
|
8007
8233
|
propagateSubmitEventToForm({
|
|
8008
8234
|
form: this.host,
|
|
8009
|
-
ref: this.
|
|
8235
|
+
ref: this.inputRef,
|
|
8010
8236
|
});
|
|
8011
8237
|
}
|
|
8012
8238
|
};
|
|
@@ -8207,7 +8433,9 @@ class KolInputEmail {
|
|
|
8207
8433
|
"_touched": [1540],
|
|
8208
8434
|
"_value": [1],
|
|
8209
8435
|
"state": [32],
|
|
8210
|
-
"getValue": [64]
|
|
8436
|
+
"getValue": [64],
|
|
8437
|
+
"focus": [64],
|
|
8438
|
+
"kolFocus": [64]
|
|
8211
8439
|
},
|
|
8212
8440
|
"$listeners$": undefined,
|
|
8213
8441
|
"$lazyBundleId$": "-",
|
|
@@ -8248,32 +8476,38 @@ var KolInputFileDefaultStyle0 = defaultStyleCss$t;
|
|
|
8248
8476
|
class KolInputFile {
|
|
8249
8477
|
async getValue() {
|
|
8250
8478
|
var _a;
|
|
8251
|
-
return (_a = this.
|
|
8479
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.files;
|
|
8480
|
+
}
|
|
8481
|
+
async focus() {
|
|
8482
|
+
await this.kolFocus();
|
|
8483
|
+
}
|
|
8484
|
+
async kolFocus() {
|
|
8485
|
+
var _a;
|
|
8486
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
8252
8487
|
}
|
|
8253
8488
|
render() {
|
|
8254
8489
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
8255
8490
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
8256
|
-
return (hAsync(Host, { key: '
|
|
8491
|
+
return (hAsync(Host, { key: 'fa0f78010ec1df49894b271222ba045b5c573a95', class: "kol-input-file" }, hAsync(KolInputWcTag, { key: '154a0ec4b9cf82ee08df555b1a7525a87ace464f', class: {
|
|
8257
8492
|
file: true,
|
|
8258
8493
|
'hide-label': !!this.state._hideLabel,
|
|
8259
|
-
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.
|
|
8494
|
+
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _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: '2b748c9df894b193366c2cea888103ef332d63ee', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '75d594fdcd6687fec4cbdaa0c73c47a22a8ed68c', slot: "input" }, hAsync("input", Object.assign({ key: '170d880e0d0647461c31853770fad9fa0b0931f0', ref: this.catchRef, title: "", accept: this.state._accept, 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, spellcheck: "false", type: "file", value: this.state._value }, this.controller.onFacade, { onChange: this.onChange, onInput: this.onInput }))))));
|
|
8260
8495
|
}
|
|
8261
8496
|
constructor(hostRef) {
|
|
8262
8497
|
registerInstance(this, hostRef);
|
|
8263
8498
|
this.catchRef = (ref) => {
|
|
8264
|
-
this.
|
|
8265
|
-
propagateFocus(this.host, this.ref);
|
|
8499
|
+
this.inputRef = ref;
|
|
8266
8500
|
};
|
|
8267
8501
|
this.onChange = (event) => {
|
|
8268
|
-
if (this.
|
|
8269
|
-
const value = this.
|
|
8502
|
+
if (this.inputRef instanceof HTMLInputElement && this.inputRef.type === 'file') {
|
|
8503
|
+
const value = this.inputRef.files;
|
|
8270
8504
|
this.controller.onFacade.onChange(event, value);
|
|
8271
8505
|
this.controller.setFormAssociatedValue(value);
|
|
8272
8506
|
}
|
|
8273
8507
|
};
|
|
8274
8508
|
this.onInput = (event) => {
|
|
8275
|
-
if (this.
|
|
8276
|
-
const value = this.
|
|
8509
|
+
if (this.inputRef instanceof HTMLInputElement && this.inputRef.type === 'file') {
|
|
8510
|
+
const value = this.inputRef.files;
|
|
8277
8511
|
this.controller.onFacade.onInput(event, false, value);
|
|
8278
8512
|
}
|
|
8279
8513
|
};
|
|
@@ -8428,7 +8662,9 @@ class KolInputFile {
|
|
|
8428
8662
|
"_touched": [1540],
|
|
8429
8663
|
"_value": [1],
|
|
8430
8664
|
"state": [32],
|
|
8431
|
-
"getValue": [64]
|
|
8665
|
+
"getValue": [64],
|
|
8666
|
+
"focus": [64],
|
|
8667
|
+
"kolFocus": [64]
|
|
8432
8668
|
},
|
|
8433
8669
|
"$listeners$": undefined,
|
|
8434
8670
|
"$lazyBundleId$": "-",
|
|
@@ -8524,31 +8760,37 @@ var KolInputNumberDefaultStyle0 = defaultStyleCss$s;
|
|
|
8524
8760
|
class KolInputNumber {
|
|
8525
8761
|
async getValue() {
|
|
8526
8762
|
var _a;
|
|
8527
|
-
return (_a = this.
|
|
8763
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
8764
|
+
}
|
|
8765
|
+
async focus() {
|
|
8766
|
+
await this.kolFocus();
|
|
8767
|
+
}
|
|
8768
|
+
async kolFocus() {
|
|
8769
|
+
var _a;
|
|
8770
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
8528
8771
|
}
|
|
8529
8772
|
render() {
|
|
8530
8773
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
8531
8774
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
8532
8775
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
8533
|
-
return (hAsync(Host, { key: '
|
|
8776
|
+
return (hAsync(Host, { key: '928e98acc94e293d83ccea1abd9ec50c5d4e9611', class: {
|
|
8534
8777
|
'kol-input-number': true,
|
|
8535
8778
|
'has-value': this.state._hasValue,
|
|
8536
|
-
} }, hAsync(KolInputWcTag, { key: '
|
|
8779
|
+
} }, hAsync(KolInputWcTag, { key: '94fbd2ee29c9f9f496e4a78f34f1579cae0a5e00', class: {
|
|
8537
8780
|
number: true,
|
|
8538
8781
|
'hide-label': !!this.state._hideLabel,
|
|
8539
|
-
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '
|
|
8782
|
+
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '3d47df9f65976fda204d73c224a1d1abe45f612f', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '7193bdb324f427916f147c3b53c911bd6e30d3c9', slot: "input" }, hAsync("input", Object.assign({ key: '698465728000a66f8baba7e9a9b59b2a04279e1e', 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, max: this.state._max, min: this.state._min, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, placeholder: this.state._placeholder, step: this.state._step, spellcheck: "false", type: "number", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown }))))));
|
|
8540
8783
|
}
|
|
8541
8784
|
constructor(hostRef) {
|
|
8542
8785
|
registerInstance(this, hostRef);
|
|
8543
8786
|
this.catchRef = (ref) => {
|
|
8544
|
-
this.
|
|
8545
|
-
propagateFocus(this.host, this.ref);
|
|
8787
|
+
this.inputRef = ref;
|
|
8546
8788
|
};
|
|
8547
8789
|
this.onKeyDown = (event) => {
|
|
8548
8790
|
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
|
8549
8791
|
propagateSubmitEventToForm({
|
|
8550
8792
|
form: this.host,
|
|
8551
|
-
ref: this.
|
|
8793
|
+
ref: this.inputRef,
|
|
8552
8794
|
});
|
|
8553
8795
|
}
|
|
8554
8796
|
};
|
|
@@ -8666,8 +8908,8 @@ class KolInputNumber {
|
|
|
8666
8908
|
}
|
|
8667
8909
|
validateValue(value) {
|
|
8668
8910
|
this.controller.validateValueEx(value, (v) => {
|
|
8669
|
-
if (v === '' && this.
|
|
8670
|
-
this.
|
|
8911
|
+
if (v === '' && this.inputRef) {
|
|
8912
|
+
this.inputRef.value = '';
|
|
8671
8913
|
}
|
|
8672
8914
|
});
|
|
8673
8915
|
}
|
|
@@ -8742,7 +8984,9 @@ class KolInputNumber {
|
|
|
8742
8984
|
"_touched": [1540],
|
|
8743
8985
|
"_value": [1032],
|
|
8744
8986
|
"state": [32],
|
|
8745
|
-
"getValue": [64]
|
|
8987
|
+
"getValue": [64],
|
|
8988
|
+
"focus": [64],
|
|
8989
|
+
"kolFocus": [64]
|
|
8746
8990
|
},
|
|
8747
8991
|
"$listeners$": undefined,
|
|
8748
8992
|
"$lazyBundleId$": "-",
|
|
@@ -8756,19 +9000,26 @@ var KolInputPasswordDefaultStyle0 = defaultStyleCss$r;
|
|
|
8756
9000
|
class KolInputPassword {
|
|
8757
9001
|
async getValue() {
|
|
8758
9002
|
var _a;
|
|
8759
|
-
return (_a = this.
|
|
9003
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
9004
|
+
}
|
|
9005
|
+
async focus() {
|
|
9006
|
+
await this.kolFocus();
|
|
9007
|
+
}
|
|
9008
|
+
async kolFocus() {
|
|
9009
|
+
var _a;
|
|
9010
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
8760
9011
|
}
|
|
8761
9012
|
render() {
|
|
8762
9013
|
var _a;
|
|
8763
9014
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
8764
9015
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
8765
|
-
return (hAsync(Host, { key: '
|
|
9016
|
+
return (hAsync(Host, { key: 'f42af042b4decf3ba72495b01c0bef56404bd190', class: {
|
|
8766
9017
|
'kol-input-password': true,
|
|
8767
9018
|
'has-value': this.state._hasValue,
|
|
8768
|
-
} }, hAsync(KolInputWcTag, { key: '
|
|
9019
|
+
} }, hAsync(KolInputWcTag, { key: '52b73e97081fdd53eb6ef29eba36a61c45f653b1', class: {
|
|
8769
9020
|
'hide-label': !!this.state._hideLabel,
|
|
8770
9021
|
password: true,
|
|
8771
|
-
}, _accessKey: this.state._accessKey, _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, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.
|
|
9022
|
+
}, _accessKey: this.state._accessKey, _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, _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: '5f403205a336bd8f3ae638a460c7009afacc1cd1', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '8d34cc0ff526d6bc9b64a46ddfb64a393699a13a', slot: "input" }, hAsync("input", Object.assign({ key: 'b515bcb0625bca3c960b94cb3d7f6e24a672028a', 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, spellcheck: "false", type: this._passwordVisible ? 'text' : 'password', value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onInput: this.onInput })), this._variant === 'visibility-toggle' && this.inputRef && ((_a = this.inputRef.value) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (hAsync(KolButtonWcTag, { class: "password-toggle-button", _label: this._passwordVisible ? translate('kol-hide-password') : translate('kol-show-password'), _variant: "ghost", _on: {
|
|
8772
9023
|
onClick: () => {
|
|
8773
9024
|
this._passwordVisible = !this._passwordVisible;
|
|
8774
9025
|
},
|
|
@@ -8777,14 +9028,13 @@ class KolInputPassword {
|
|
|
8777
9028
|
constructor(hostRef) {
|
|
8778
9029
|
registerInstance(this, hostRef);
|
|
8779
9030
|
this.catchRef = (ref) => {
|
|
8780
|
-
this.
|
|
8781
|
-
propagateFocus(this.host, this.ref);
|
|
9031
|
+
this.inputRef = ref;
|
|
8782
9032
|
};
|
|
8783
9033
|
this.onKeyDown = (event) => {
|
|
8784
9034
|
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
|
8785
9035
|
propagateSubmitEventToForm({
|
|
8786
9036
|
form: this.host,
|
|
8787
|
-
ref: this.
|
|
9037
|
+
ref: this.inputRef,
|
|
8788
9038
|
});
|
|
8789
9039
|
}
|
|
8790
9040
|
};
|
|
@@ -8840,7 +9090,7 @@ class KolInputPassword {
|
|
|
8840
9090
|
validateAutoComplete(value) {
|
|
8841
9091
|
this.controller.validateAutoComplete(value);
|
|
8842
9092
|
if (value === 'on') {
|
|
8843
|
-
devHint(`[KolInputPassword]
|
|
9093
|
+
devHint(`[KolInputPassword] The 'autocomplete' option should not be set to "on" for a password input field`);
|
|
8844
9094
|
}
|
|
8845
9095
|
}
|
|
8846
9096
|
validateDisabled(value) {
|
|
@@ -8984,7 +9234,9 @@ class KolInputPassword {
|
|
|
8984
9234
|
"_variant": [1],
|
|
8985
9235
|
"state": [32],
|
|
8986
9236
|
"_passwordVisible": [32],
|
|
8987
|
-
"getValue": [64]
|
|
9237
|
+
"getValue": [64],
|
|
9238
|
+
"focus": [64],
|
|
9239
|
+
"kolFocus": [64]
|
|
8988
9240
|
},
|
|
8989
9241
|
"$listeners$": undefined,
|
|
8990
9242
|
"$lazyBundleId$": "-",
|
|
@@ -9004,17 +9256,24 @@ class KolInputRadio {
|
|
|
9004
9256
|
async getValue() {
|
|
9005
9257
|
return this.currentValue;
|
|
9006
9258
|
}
|
|
9259
|
+
async focus() {
|
|
9260
|
+
await this.kolFocus();
|
|
9261
|
+
}
|
|
9262
|
+
async kolFocus() {
|
|
9263
|
+
var _a;
|
|
9264
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9265
|
+
}
|
|
9007
9266
|
render() {
|
|
9008
9267
|
const { ariaDescribedBy, hasError } = getRenderStates(this.state);
|
|
9009
9268
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9010
|
-
return (hAsync(Host, { key: '
|
|
9269
|
+
return (hAsync(Host, { key: '0f10e4e0a1357ba44f89dad147e2f208d2087207', class: "kol-input-radio" }, hAsync("fieldset", { key: '3a3d3a1e4b0074f90a9bbab43b1a647cf08c0ad1', class: {
|
|
9011
9270
|
fieldset: true,
|
|
9012
9271
|
disabled: this.state._disabled === true,
|
|
9013
9272
|
error: hasError === true,
|
|
9014
9273
|
required: this.state._required === true,
|
|
9015
9274
|
'hidden-error': this._hideError === true,
|
|
9016
9275
|
[this.state._orientation]: true,
|
|
9017
|
-
} }, hAsync("legend", { key: '
|
|
9276
|
+
} }, hAsync("legend", { key: '3832c99aa5f0ac8393a3f7f69cbcc6ce3a57f146', class: "block w-full mb-1 leading-normal" }, hAsync("span", { key: '417ad846060749b18ad3eb36a27f39437f457795' }, hAsync("span", { key: '9145ec26a65972f48f226f0fe50c99985517f6e7', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this._accessKey === 'string' ? (hAsync(InternalUnderlinedAccessKey, { accessKey: this._accessKey, label: this._label })) : (this._label)))), this.state._options.map((option, index) => {
|
|
9018
9277
|
const customId = `${this.state._id}-${index}`;
|
|
9019
9278
|
const slotName = `radio-${index}`;
|
|
9020
9279
|
const selected = this.state._value === option.value;
|
|
@@ -9027,13 +9286,12 @@ class KolInputRadio {
|
|
|
9027
9286
|
padding: this.state._hideLabel ? '0' : undefined,
|
|
9028
9287
|
visibility: this.state._hideLabel ? 'hidden' : undefined,
|
|
9029
9288
|
} }, hAsync("span", null, hAsync("span", { class: "radio-label-span-inner" }, option.label))))));
|
|
9030
|
-
}), hasError && hAsync(FormFieldMsg, { key: '
|
|
9289
|
+
}), hasError && hAsync(FormFieldMsg, { key: '4154a3766b3ae6ce7b8f94a8464745c4e3a23bb1', _alert: this.state._alert, _hideError: this.state._hideError, _msg: this.state._msg, _id: this.state._id }))));
|
|
9031
9290
|
}
|
|
9032
9291
|
constructor(hostRef) {
|
|
9033
9292
|
registerInstance(this, hostRef);
|
|
9034
9293
|
this.catchRef = (ref) => {
|
|
9035
|
-
this.
|
|
9036
|
-
propagateFocus(this.host, ref);
|
|
9294
|
+
this.inputRef = ref;
|
|
9037
9295
|
};
|
|
9038
9296
|
this.onInput = (event) => {
|
|
9039
9297
|
var _a;
|
|
@@ -9066,7 +9324,7 @@ class KolInputRadio {
|
|
|
9066
9324
|
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
|
9067
9325
|
propagateSubmitEventToForm({
|
|
9068
9326
|
form: this.host,
|
|
9069
|
-
ref: this.
|
|
9327
|
+
ref: this.inputRef,
|
|
9070
9328
|
});
|
|
9071
9329
|
}
|
|
9072
9330
|
};
|
|
@@ -9216,7 +9474,9 @@ class KolInputRadio {
|
|
|
9216
9474
|
"_touched": [1540],
|
|
9217
9475
|
"_value": [8],
|
|
9218
9476
|
"state": [32],
|
|
9219
|
-
"getValue": [64]
|
|
9477
|
+
"getValue": [64],
|
|
9478
|
+
"focus": [64],
|
|
9479
|
+
"kolFocus": [64]
|
|
9220
9480
|
},
|
|
9221
9481
|
"$listeners$": undefined,
|
|
9222
9482
|
"$lazyBundleId$": "-",
|
|
@@ -9263,6 +9523,13 @@ const defaultStyleCss$p = "@layer kol-global {\n .sc-kol-input-range-default-h
|
|
|
9263
9523
|
var KolInputRangeDefaultStyle0 = defaultStyleCss$p;
|
|
9264
9524
|
|
|
9265
9525
|
class KolInputRange {
|
|
9526
|
+
async focus() {
|
|
9527
|
+
await this.kolFocus();
|
|
9528
|
+
}
|
|
9529
|
+
async kolFocus() {
|
|
9530
|
+
var _a;
|
|
9531
|
+
(_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9532
|
+
}
|
|
9266
9533
|
getSanitizedFloatValue(value) {
|
|
9267
9534
|
const floatValue = parseFloat(value);
|
|
9268
9535
|
if (this.state._max && floatValue > this.state._max) {
|
|
@@ -9289,13 +9556,13 @@ class KolInputRange {
|
|
|
9289
9556
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
9290
9557
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
9291
9558
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9292
|
-
return (hAsync(Host, { key: '
|
|
9559
|
+
return (hAsync(Host, { key: '6a12597433b0c41b717aa0aaa81a9f5c57d92f2f', class: "kol-input-range" }, hAsync(KolInputWcTag, { key: '3e17d575888bc78e7c04fbecac6bfc8d2a5691fd', class: {
|
|
9293
9560
|
range: true,
|
|
9294
9561
|
'hide-label': !!this.state._hideLabel,
|
|
9295
|
-
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '
|
|
9562
|
+
}, _accessKey: this.state._accessKey, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '07466ef3c13f1f5dd56c5792df4abe9f000d07a2', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '08323eed3a26469f76f22bd20e71739b4e9739cc', slot: "input" }, hAsync("div", { key: 'a5cf4ac0102cefec7876027b2afa768d14818a5b', class: "inputs-wrapper", style: {
|
|
9296
9563
|
'--kolibri-input-range--input-number--width': `${this.state._max}`.length + 0.5 + 'em',
|
|
9297
|
-
} }, hAsync("input", Object.assign({ key: '
|
|
9298
|
-
hAsync("datalist", { key: '
|
|
9564
|
+
} }, hAsync("input", Object.assign({ key: 'e30999603fa946265dffdb06777557a6e6063322', ref: this.catchInputRangeRef, 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, "aria-hidden": "true", autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name ? `${this.state._name}-range` : undefined, spellcheck: "false", step: this.state._step, tabIndex: -1, type: "range", value: this.state._value }, this.controller.onFacade, { onChange: this.onChange })), hAsync("input", Object.assign({ key: '42a99192be12c94c6da5737c1e3485c4e95a8eef', ref: this.catchInputNumberRef, 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, max: this.state._max, min: this.state._min, name: this.state._name ? `${this.state._name}-number` : undefined, step: this.state._step, type: "number", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onChange: this.onChange }))), hasSuggestions && [
|
|
9565
|
+
hAsync("datalist", { key: '7f6ded306407b8584c13a02f35da1f2cb77f522f', id: `${this.state._id}-list` }, this.state._suggestions.map((option) => (hAsync("option", { value: option })))),
|
|
9299
9566
|
]))));
|
|
9300
9567
|
}
|
|
9301
9568
|
constructor(hostRef) {
|
|
@@ -9304,7 +9571,6 @@ class KolInputRange {
|
|
|
9304
9571
|
var _a;
|
|
9305
9572
|
if (element) {
|
|
9306
9573
|
this.refInputNumber = element;
|
|
9307
|
-
propagateFocus(this.host, element);
|
|
9308
9574
|
if (!this._value && ((_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.value)) {
|
|
9309
9575
|
this.validateValue(parseFloat(this.refInputNumber.value));
|
|
9310
9576
|
}
|
|
@@ -9491,6 +9757,8 @@ class KolInputRange {
|
|
|
9491
9757
|
"_touched": [1540],
|
|
9492
9758
|
"_value": [2],
|
|
9493
9759
|
"state": [32],
|
|
9760
|
+
"focus": [64],
|
|
9761
|
+
"kolFocus": [64],
|
|
9494
9762
|
"getValue": [64]
|
|
9495
9763
|
},
|
|
9496
9764
|
"$listeners$": undefined,
|
|
@@ -9505,30 +9773,36 @@ var KolInputTextDefaultStyle0 = defaultStyleCss$o;
|
|
|
9505
9773
|
class KolInputText {
|
|
9506
9774
|
async getValue() {
|
|
9507
9775
|
var _a;
|
|
9508
|
-
return (_a = this.
|
|
9776
|
+
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
9777
|
+
}
|
|
9778
|
+
async focus() {
|
|
9779
|
+
await this.kolFocus();
|
|
9780
|
+
}
|
|
9781
|
+
async kolFocus() {
|
|
9782
|
+
var _a;
|
|
9783
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9509
9784
|
}
|
|
9510
9785
|
render() {
|
|
9511
9786
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
9512
9787
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
9513
9788
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9514
|
-
return (hAsync(Host, { key: '
|
|
9789
|
+
return (hAsync(Host, { key: '1973f5a8a6d20c8b4c07de5fbdaf8f05fb8ddc95', class: {
|
|
9515
9790
|
'has-value': this.state._hasValue,
|
|
9516
9791
|
'kol-input-text': true,
|
|
9517
|
-
} }, hAsync(KolInputWcTag, { key: '
|
|
9792
|
+
} }, hAsync(KolInputWcTag, { key: '642a6e78297dce3f00041f8f95204f6348271ea1', class: {
|
|
9518
9793
|
[this.state._type]: true,
|
|
9519
9794
|
'hide-label': !!this.state._hideLabel,
|
|
9520
|
-
}, _accessKey: this.state._accessKey, _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, _smartButton: this.state._smartButton, _suggestions: this.state._suggestions, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.
|
|
9795
|
+
}, _accessKey: this.state._accessKey, _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, _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: 'ab9bcd054c175f7c220bb67a8e3a195135a9afd7', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'e7fdb05ff787d0df9d6224f041223ea8fc86d82c', slot: "input" }, hAsync("input", Object.assign({ key: 'ce9cc2b5b1fec48eb426fce9b599638c321d6ae4', 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: "false", type: this.state._type, value: this.state._value }, this.controller.onFacade, { onChange: this.onChange, onInput: this.onInput, onKeyDown: this.onKeyDown }))))));
|
|
9521
9796
|
}
|
|
9522
9797
|
constructor(hostRef) {
|
|
9523
9798
|
registerInstance(this, hostRef);
|
|
9524
9799
|
this.catchRef = (ref) => {
|
|
9525
|
-
this.
|
|
9526
|
-
propagateFocus(this.host, this.ref);
|
|
9800
|
+
this.inputRef = ref;
|
|
9527
9801
|
};
|
|
9528
9802
|
this.onChange = (event) => {
|
|
9529
9803
|
var _a, _b;
|
|
9530
|
-
if (this.oldValue !== ((_a = this.
|
|
9531
|
-
this.oldValue = (_b = this.
|
|
9804
|
+
if (this.oldValue !== ((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value)) {
|
|
9805
|
+
this.oldValue = (_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.value;
|
|
9532
9806
|
this.controller.onFacade.onChange(event);
|
|
9533
9807
|
}
|
|
9534
9808
|
};
|
|
@@ -9540,7 +9814,7 @@ class KolInputText {
|
|
|
9540
9814
|
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
|
9541
9815
|
propagateSubmitEventToForm({
|
|
9542
9816
|
form: this.host,
|
|
9543
|
-
ref: this.
|
|
9817
|
+
ref: this.inputRef,
|
|
9544
9818
|
});
|
|
9545
9819
|
}
|
|
9546
9820
|
};
|
|
@@ -9740,7 +10014,9 @@ class KolInputText {
|
|
|
9740
10014
|
"_type": [1],
|
|
9741
10015
|
"_value": [1025],
|
|
9742
10016
|
"state": [32],
|
|
9743
|
-
"getValue": [64]
|
|
10017
|
+
"getValue": [64],
|
|
10018
|
+
"focus": [64],
|
|
10019
|
+
"kolFocus": [64]
|
|
9744
10020
|
},
|
|
9745
10021
|
"$listeners$": undefined,
|
|
9746
10022
|
"$lazyBundleId$": "-",
|
|
@@ -9793,18 +10069,18 @@ class KolInputWc {
|
|
|
9793
10069
|
const hasExpertSlot = showExpertSlot(this._label);
|
|
9794
10070
|
const hasHint = typeof this._hint === 'string' && this._hint.length > 0;
|
|
9795
10071
|
const useTooltopInsteadOfLabel = !hasExpertSlot && this._hideLabel;
|
|
9796
|
-
return (hAsync(Host, { key: '
|
|
10072
|
+
return (hAsync(Host, { key: '8f4ba7be771e2794dba0bbea4c93de58237f2b02', class: clsx('kol-input', this.getModifierClassNameByMsgType(), {
|
|
9797
10073
|
disabled: this._disabled === true,
|
|
9798
10074
|
error: hasError === true,
|
|
9799
10075
|
'read-only': this._readOnly === true,
|
|
9800
10076
|
required: this._required === true,
|
|
9801
10077
|
touched: this._touched === true,
|
|
9802
10078
|
'hidden-error': this._hideError === true,
|
|
9803
|
-
}) }, hAsync("label", { key: '
|
|
10079
|
+
}) }, hAsync("label", { key: 'c4397e40e8d492187c1bae3bbe4be1b6449bc9d9', class: "input-label", id: !useTooltopInsteadOfLabel ? `${this._id}-label` : undefined, hidden: useTooltopInsteadOfLabel, htmlFor: this._id }, hAsync("span", { key: '543c3749b69fdde2ebc88ae7a342143f352b4e01', class: "input-label-span" }, hAsync("slot", { key: 'f1c24dabbbd1d75dbe37ee774b3ad52567bbefbf', name: "label" }))), hasHint && (hAsync("span", { key: 'adb87f975d975a866e22a55838eafb409f362729', class: "hint", id: `${this._id}-hint` }, this._hint)), hAsync("div", { key: '38f52cdf606c001800b0f93a9e48542b3c0d59e3', class: {
|
|
9804
10080
|
input: true,
|
|
9805
10081
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
9806
10082
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
9807
|
-
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '
|
|
10083
|
+
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '5af1b04137afa941269af05dd35a684c21384d46', _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: 'a32419d39395a44a61ee9abd6d3b3f785345c6ab', ref: this.catchInputSlot, id: this.slotName, class: "input-slot" }), typeof this._smartButton === 'object' && this._smartButton !== null && (hAsync(KolButtonWcTag, { key: 'f09aecd73a43a2452a83b31badc9a9d8a48e202a', _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: '49140be539ede37df384be1dce9f3db2d4f774d9', _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: '9192e8e543ade06f365baacc1c7e5012d48e6d94', "aria-hidden": "true", class: "input-tooltip", _accessKey: this._accessKey, _align: this._tooltipAlign, _id: this._hideLabel ? `${this._id}-label` : undefined, _label: this._label })), showFormFieldMsg && hAsync(FormFieldMsg, { key: 'cc846ab34c1aa368b16a135a40dd59ae03268a5d', _alert: this._alert, _hideError: this._hideError, _msg: this._msg, _id: this._id }), Array.isArray(this._suggestions) && this._suggestions.length > 0 && (hAsync("datalist", { key: '015c7ff9403fc46bcbd3056e6ec757af46044418', id: `${this._id}-list` }, this._suggestions.map((option) => (hAsync("option", { value: option }))))), this._hasCounter && (hAsync("span", { key: 'b558e392516d0ed5fbb41a327b467f9e330a4980', class: "counter", "aria-atomic": "true", "aria-live": "polite" }, this._currentLength, this._maxLength && (hAsync(Fragment, null, hAsync("span", { key: '9ea2c55e5a88a3ea87f295b76b88540fd004ebe0', "aria-label": translate('kol-of'), role: "img" }, "/"), this._maxLength)), ' ', hAsync("span", { key: '613f73ee31fb7fada22737c9a2172bb17d37264f' }, translate('kol-characters'))))));
|
|
9808
10084
|
}
|
|
9809
10085
|
getModifierClassNameByMsgType() {
|
|
9810
10086
|
var _a, _b;
|
|
@@ -9883,7 +10159,7 @@ class KolKolibri {
|
|
|
9883
10159
|
}
|
|
9884
10160
|
render() {
|
|
9885
10161
|
const fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;
|
|
9886
|
-
return (hAsync(Host, { key: '
|
|
10162
|
+
return (hAsync(Host, { key: '848156de9170117ffdedde1a12f72b2c24fb2a11', class: "kol-kolibri" }, hAsync("svg", { key: '7cde143186c9d70d2b62759e0b8682b66ca55338', 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: 'a544b4892fce5dae895546901452dad04acbc72a', d: "M353 322L213 304V434L353 322Z" }), hAsync("path", { key: '73ad3de5b24cf887e7b5791ba5d449eae04226e3', d: "M209 564V304L149 434L209 564Z" }), hAsync("path", { key: 'a0585763be4aff3f61ecc1d3534bddac28d976a4', d: "M357 316L417 250L361 210L275 244L357 316Z" }), hAsync("path", { key: '8138d7a57e0230ea9699e9f5d19fc54f8d095bf1', d: "M329 218L237 92L250 222L272 241L329 218Z" }), hAsync("path", { key: '3cc8481cf01928f0f39bcc45e6de53e90398ad40', d: "M353 318L35 36L213 300L353 318Z" }), hAsync("path", { key: 'c4a97edf0bf361a5bf34f6a468daf984eda0736e', d: "M391 286L565 272L421 252L391 286Z" }), this.state._labeled === true && (hAsync("text", { key: 'cdb74da516faf671d98402d5f83352c07086ae37', x: "250", y: "525", fill: fillColor }, "KoliBri")))));
|
|
9887
10163
|
}
|
|
9888
10164
|
validateColor(value) {
|
|
9889
10165
|
validateColor(this, value, {
|
|
@@ -9930,7 +10206,7 @@ class KolLink {
|
|
|
9930
10206
|
constructor(hostRef) {
|
|
9931
10207
|
registerInstance(this, hostRef);
|
|
9932
10208
|
this.catchRef = (ref) => {
|
|
9933
|
-
|
|
10209
|
+
this.linkWcRef = ref;
|
|
9934
10210
|
};
|
|
9935
10211
|
this._accessKey = undefined;
|
|
9936
10212
|
this._ariaCurrentValue = undefined;
|
|
@@ -9946,10 +10222,16 @@ class KolLink {
|
|
|
9946
10222
|
this._target = undefined;
|
|
9947
10223
|
this._tooltipAlign = 'right';
|
|
9948
10224
|
}
|
|
10225
|
+
async focus() {
|
|
10226
|
+
await this.kolFocus();
|
|
10227
|
+
}
|
|
10228
|
+
async kolFocus() {
|
|
10229
|
+
var _a;
|
|
10230
|
+
await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
10231
|
+
}
|
|
9949
10232
|
render() {
|
|
9950
|
-
return (hAsync(Host, { key: '
|
|
10233
|
+
return (hAsync(Host, { key: 'a690eef605f9fc1e4a3a5e99c4ba78cb20904223', class: "kol-link" }, hAsync(KolLinkWcTag, { key: 'b9d2706ce44ba0d3ac121e771496a0ad34979629', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _role: this._role, _tabIndex: this._tabIndex, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: '52b67bd3e03adb56e85ae0bd90bff99befaa16af', name: "expert", slot: "expert" }))));
|
|
9951
10234
|
}
|
|
9952
|
-
get host() { return getElement(this); }
|
|
9953
10235
|
static get style() { return {
|
|
9954
10236
|
default: KolLinkDefaultStyle0
|
|
9955
10237
|
}; }
|
|
@@ -9969,7 +10251,9 @@ class KolLink {
|
|
|
9969
10251
|
"_role": [1],
|
|
9970
10252
|
"_tabIndex": [2, "_tab-index"],
|
|
9971
10253
|
"_target": [1],
|
|
9972
|
-
"_tooltipAlign": [1, "_tooltip-align"]
|
|
10254
|
+
"_tooltipAlign": [1, "_tooltip-align"],
|
|
10255
|
+
"focus": [64],
|
|
10256
|
+
"kolFocus": [64]
|
|
9973
10257
|
},
|
|
9974
10258
|
"$listeners$": undefined,
|
|
9975
10259
|
"$lazyBundleId$": "-",
|
|
@@ -9984,7 +10268,7 @@ class KolLinkButton {
|
|
|
9984
10268
|
constructor(hostRef) {
|
|
9985
10269
|
registerInstance(this, hostRef);
|
|
9986
10270
|
this.catchRef = (ref) => {
|
|
9987
|
-
|
|
10271
|
+
this.linkWcRef = ref;
|
|
9988
10272
|
};
|
|
9989
10273
|
this._accessKey = undefined;
|
|
9990
10274
|
this._ariaCurrentValue = undefined;
|
|
@@ -10002,14 +10286,20 @@ class KolLinkButton {
|
|
|
10002
10286
|
this._tooltipAlign = 'right';
|
|
10003
10287
|
this._variant = 'normal';
|
|
10004
10288
|
}
|
|
10289
|
+
async focus() {
|
|
10290
|
+
await this.kolFocus();
|
|
10291
|
+
}
|
|
10292
|
+
async kolFocus() {
|
|
10293
|
+
var _a;
|
|
10294
|
+
await ((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
10295
|
+
}
|
|
10005
10296
|
render() {
|
|
10006
|
-
return (hAsync(Host, { key: '
|
|
10297
|
+
return (hAsync(Host, { key: 'e6ab08377be0ad810ea3d7c0f690231663aa790d', class: "kol-link-button" }, hAsync(KolLinkWcTag, { key: 'dd6e0237ef4fa62c42f8c4ce51efa5f3dbfcd49d', ref: this.catchRef, class: {
|
|
10007
10298
|
button: true,
|
|
10008
10299
|
[this._variant]: this._variant !== 'custom',
|
|
10009
10300
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
10010
|
-
}, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _role: "button", _tabIndex: this._tabIndex, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: '
|
|
10301
|
+
}, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _role: "button", _tabIndex: this._tabIndex, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: 'de5b3af7fb665c288e9cffa7da4f59dcd57e9093', name: "expert", slot: "expert" }))));
|
|
10011
10302
|
}
|
|
10012
|
-
get host() { return getElement(this); }
|
|
10013
10303
|
static get style() { return {
|
|
10014
10304
|
default: KolLinkButtonDefaultStyle0
|
|
10015
10305
|
}; }
|
|
@@ -10031,7 +10321,9 @@ class KolLinkButton {
|
|
|
10031
10321
|
"_tabIndex": [2, "_tab-index"],
|
|
10032
10322
|
"_target": [1],
|
|
10033
10323
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
10034
|
-
"_variant": [1]
|
|
10324
|
+
"_variant": [1],
|
|
10325
|
+
"focus": [64],
|
|
10326
|
+
"kolFocus": [64]
|
|
10035
10327
|
},
|
|
10036
10328
|
"$listeners$": undefined,
|
|
10037
10329
|
"$lazyBundleId$": "-",
|
|
@@ -10070,10 +10362,10 @@ class KolLinkGroup {
|
|
|
10070
10362
|
}
|
|
10071
10363
|
render() {
|
|
10072
10364
|
const ListTag = this.isUl ? 'ul' : 'ol';
|
|
10073
|
-
return (hAsync(Host, { key: '
|
|
10365
|
+
return (hAsync(Host, { key: 'e1358fcd3cf6415d8847992ee32d90bbcada6e35', class: "kol-link-group" }, hAsync(ListTag, { key: '5f7747dae40ab94612914e94a5aa126acb644f75', "aria-label": this.state._label, class: {
|
|
10074
10366
|
vertical: this.state._orientation === 'vertical',
|
|
10075
10367
|
horizontal: this.state._orientation === 'horizontal',
|
|
10076
|
-
} }, hAsync(ListItem, { key: '
|
|
10368
|
+
} }, hAsync(ListItem, { key: '9a5b36776720a38d0476f2f5fd34dd734e3aeab5', links: this.state._links, orientation: this.state._orientation, listStyleType: this.state._listStyleType }))));
|
|
10077
10369
|
}
|
|
10078
10370
|
validateLabel(value, _oldValue, initial = false) {
|
|
10079
10371
|
if (!initial && this.state._label) {
|
|
@@ -10162,8 +10454,7 @@ class KolLinkWc {
|
|
|
10162
10454
|
constructor(hostRef) {
|
|
10163
10455
|
registerInstance(this, hostRef);
|
|
10164
10456
|
this.catchRef = (ref) => {
|
|
10165
|
-
this.
|
|
10166
|
-
propagateFocus(this.host, this.ref);
|
|
10457
|
+
this.anchorRef = ref;
|
|
10167
10458
|
};
|
|
10168
10459
|
this.onClick = (event) => {
|
|
10169
10460
|
var _a, _b;
|
|
@@ -10173,7 +10464,7 @@ class KolLinkWc {
|
|
|
10173
10464
|
else if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {
|
|
10174
10465
|
event.preventDefault();
|
|
10175
10466
|
event.stopPropagation();
|
|
10176
|
-
setEventTarget(event, this.
|
|
10467
|
+
setEventTarget(event, this.anchorRef);
|
|
10177
10468
|
(_b = this.state._on) === null || _b === void 0 ? void 0 : _b.onClick(event, this.state._href);
|
|
10178
10469
|
}
|
|
10179
10470
|
};
|
|
@@ -10186,12 +10477,14 @@ class KolLinkWc {
|
|
|
10186
10477
|
download: typeof this.state._download === 'string' ? this.state._download : undefined,
|
|
10187
10478
|
};
|
|
10188
10479
|
if (this.state._hideLabel === true && !this.state._label) {
|
|
10189
|
-
devHint(`[KolLink]
|
|
10480
|
+
devHint(`[KolLink] An aria-label must be set when _hide-label is set.`);
|
|
10190
10481
|
}
|
|
10191
10482
|
return { isExternal, tagAttrs };
|
|
10192
10483
|
};
|
|
10193
10484
|
this._accessKey = undefined;
|
|
10194
10485
|
this._ariaCurrentValue = undefined;
|
|
10486
|
+
this._ariaExpanded = undefined;
|
|
10487
|
+
this._ariaOwns = undefined;
|
|
10195
10488
|
this._disabled = false;
|
|
10196
10489
|
this._download = undefined;
|
|
10197
10490
|
this._hideLabel = false;
|
|
@@ -10209,16 +10502,20 @@ class KolLinkWc {
|
|
|
10209
10502
|
_icons: {},
|
|
10210
10503
|
};
|
|
10211
10504
|
}
|
|
10505
|
+
async kolFocus() {
|
|
10506
|
+
var _a;
|
|
10507
|
+
(_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
10508
|
+
}
|
|
10212
10509
|
render() {
|
|
10213
10510
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
10214
10511
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
10215
|
-
return (hAsync(Host, { key: '
|
|
10512
|
+
return (hAsync(Host, { key: 'bceb6e1bb9b3314ea1ed597aa5254f5dff33f350', class: "kol-link-wc" }, hAsync("a", Object.assign({ key: '234f8304ea72e23c337c5f8049c71f6e3d1dd0e0', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-disabled": this.state._disabled ? 'true' : undefined, "aria-expanded": this.state._ariaExpanded ? 'true' : undefined, "aria-owns": this.state._ariaOwns, "aria-label": this.state._hideLabel && typeof this.state._label === 'string'
|
|
10216
10513
|
? `${this.state._label}${isExternal ? ` (${translate('kol-open-link-in-tab')})` : ''}`
|
|
10217
10514
|
: undefined, class: {
|
|
10218
10515
|
disabled: this.state._disabled === true,
|
|
10219
10516
|
'external-link': isExternal,
|
|
10220
10517
|
'hide-label': this.state._hideLabel === true,
|
|
10221
|
-
} }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanWcTag, { key: '
|
|
10518
|
+
} }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanWcTag, { key: '199d2afb7615f7654674ea33284de0e376da713c', _accessKey: this.state._accessKey, _icons: this.state._icons, _hideLabel: this.state._hideLabel, _label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { key: '341e514c5974572683e1c29852e33e686efc85e4', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: 'abf9e01ab96cc7b418430cbc39746659c50bf60f', 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: 'd9501a785b3f27bafd87e8b0dc622588fd17d251', "aria-hidden": "true", hidden: hasExpertSlot || !this.state._hideLabel, _accessKey: this.state._accessKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href })));
|
|
10222
10519
|
}
|
|
10223
10520
|
validateAccessKey(value) {
|
|
10224
10521
|
validateAccessKey(this, value);
|
|
@@ -10226,6 +10523,12 @@ class KolLinkWc {
|
|
|
10226
10523
|
validateAriaCurrentValue(value) {
|
|
10227
10524
|
validateAriaCurrentValue(this, value);
|
|
10228
10525
|
}
|
|
10526
|
+
validateAriaExpanded(value) {
|
|
10527
|
+
validateAriaExpanded(this, value);
|
|
10528
|
+
}
|
|
10529
|
+
validateAriaOwns(value) {
|
|
10530
|
+
validateAriaOwns(this, value);
|
|
10531
|
+
}
|
|
10229
10532
|
validateDisabled(value) {
|
|
10230
10533
|
validateDisabled(this, value);
|
|
10231
10534
|
}
|
|
@@ -10264,6 +10567,8 @@ class KolLinkWc {
|
|
|
10264
10567
|
componentWillLoad() {
|
|
10265
10568
|
this.validateAccessKey(this._accessKey);
|
|
10266
10569
|
this.validateAriaCurrentValue(this._ariaCurrentValue);
|
|
10570
|
+
this.validateAriaExpanded(this._ariaExpanded);
|
|
10571
|
+
this.validateAriaOwns(this._ariaOwns);
|
|
10267
10572
|
this.validateDisabled(this._disabled);
|
|
10268
10573
|
this.validateDownload(this._download);
|
|
10269
10574
|
this.validateHideLabel(this._hideLabel);
|
|
@@ -10284,10 +10589,11 @@ class KolLinkWc {
|
|
|
10284
10589
|
this.unsubscribeOnLocationChange();
|
|
10285
10590
|
}
|
|
10286
10591
|
}
|
|
10287
|
-
get host() { return getElement(this); }
|
|
10288
10592
|
static get watchers() { return {
|
|
10289
10593
|
"_accessKey": ["validateAccessKey"],
|
|
10290
10594
|
"_ariaCurrentValue": ["validateAriaCurrentValue"],
|
|
10595
|
+
"_ariaExpanded": ["validateAriaExpanded"],
|
|
10596
|
+
"_ariaOwns": ["validateAriaOwns"],
|
|
10291
10597
|
"_disabled": ["validateDisabled"],
|
|
10292
10598
|
"_download": ["validateDownload"],
|
|
10293
10599
|
"_hideLabel": ["validateHideLabel"],
|
|
@@ -10306,6 +10612,8 @@ class KolLinkWc {
|
|
|
10306
10612
|
"$members$": {
|
|
10307
10613
|
"_accessKey": [1, "_access-key"],
|
|
10308
10614
|
"_ariaCurrentValue": [1, "_aria-current-value"],
|
|
10615
|
+
"_ariaExpanded": [4, "_aria-expanded"],
|
|
10616
|
+
"_ariaOwns": [1, "_aria-owns"],
|
|
10309
10617
|
"_disabled": [4],
|
|
10310
10618
|
"_download": [1],
|
|
10311
10619
|
"_hideLabel": [4, "_hide-label"],
|
|
@@ -10317,7 +10625,8 @@ class KolLinkWc {
|
|
|
10317
10625
|
"_tabIndex": [2, "_tab-index"],
|
|
10318
10626
|
"_target": [1],
|
|
10319
10627
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
10320
|
-
"state": [32]
|
|
10628
|
+
"state": [32],
|
|
10629
|
+
"kolFocus": [64]
|
|
10321
10630
|
},
|
|
10322
10631
|
"$listeners$": undefined,
|
|
10323
10632
|
"$lazyBundleId$": "-",
|
|
@@ -10524,7 +10833,7 @@ class KolLogo {
|
|
|
10524
10833
|
setState(this, '_org', value);
|
|
10525
10834
|
}
|
|
10526
10835
|
else {
|
|
10527
|
-
devHint(`
|
|
10836
|
+
devHint(`The abbreviation (${value}) used is not defined!`);
|
|
10528
10837
|
}
|
|
10529
10838
|
}
|
|
10530
10839
|
componentWillLoad() {
|
|
@@ -10532,7 +10841,7 @@ class KolLogo {
|
|
|
10532
10841
|
}
|
|
10533
10842
|
render() {
|
|
10534
10843
|
var _a;
|
|
10535
|
-
return (hAsync(Host, { key: '
|
|
10844
|
+
return (hAsync(Host, { key: 'eb43c9514719417f729a1c73826c19a0a92e2c9f', class: "kol-logo" }, hAsync("svg", { key: '840038582973d0c4b49a8db280684e1946527afa', "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: 'cd8095e12985f67a4e7b267716898e6fff8add07', width: "100%", height: "100%", fill: "white" }), hAsync("svg", { key: '537fcddc64e406319c6af1703cde8f61dd49ba7e', x: "0", y: "4", height: "75" }, hAsync(Adler, { key: '8987c99b9a13c2a627b2442af58b39aad06c7842' })), hAsync("svg", { key: '9acb90fbb65c4c75d850e3fa91881c4481a3c8c7', x: "40.5", y: "3.5", height: "100" }, hAsync("rect", { key: 'b8a4e853d12cb71016b6b16138198a7a1f8035a4', width: "5", height: "30" }), hAsync("rect", { key: '7190ab2cb4c32823d1cd49335f51aa731b183250', y: "30", width: "5", height: "30", fill: "red" }), hAsync("rect", { key: '2b1d9740b8690c731b37be6407c314cd677d7d6e', y: "60", width: "5", height: "30", fill: "#fc0" })), hAsync("svg", { key: '9ce09f41d0797e663f18b49ff699ca645bb38693', x: "50", y: "0" }, hAsync("text", { key: '2a6146524db3b04d7f56efc6749a9b15c95e1418', x: "0", y: "-0.05em", "font-family": "BundesSans Web", 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) => {
|
|
10536
10845
|
return (hAsync("tspan", { x: "0", dy: "1.1em", key: `kol-logo-text-${index}` }, text));
|
|
10537
10846
|
}))) : (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."))))))));
|
|
10538
10847
|
}
|
|
@@ -10644,7 +10953,7 @@ class ModalService {
|
|
|
10644
10953
|
}
|
|
10645
10954
|
openModal(modalRef, activeElement) {
|
|
10646
10955
|
if (modalRef instanceof HTMLElement === false) {
|
|
10647
|
-
Log.warn(`[KolModalService]
|
|
10956
|
+
Log.warn(`[KolModalService] The DOM reference of the modal is not valid.`);
|
|
10648
10957
|
}
|
|
10649
10958
|
else {
|
|
10650
10959
|
this.modalStack.set(modalRef, {
|
|
@@ -10656,7 +10965,7 @@ class ModalService {
|
|
|
10656
10965
|
closeModal(modalRef) {
|
|
10657
10966
|
var _a;
|
|
10658
10967
|
if (modalRef instanceof HTMLElement === false) {
|
|
10659
|
-
Log.warn(`[KolModalService]
|
|
10968
|
+
Log.warn(`[KolModalService] The DOM reference of the modal is not valid.`);
|
|
10660
10969
|
}
|
|
10661
10970
|
else {
|
|
10662
10971
|
const activeElement = (_a = this.modalStack.get(modalRef)) === null || _a === void 0 ? void 0 : _a.activeElement;
|
|
@@ -10704,16 +11013,16 @@ class KolModal {
|
|
|
10704
11013
|
}
|
|
10705
11014
|
}
|
|
10706
11015
|
render() {
|
|
10707
|
-
return (hAsync(Host, { key: '
|
|
11016
|
+
return (hAsync(Host, { key: '8dcce275d7ded560756ed8fa4bef54ee4d3a20e2', class: "kol-modal", ref: (el) => {
|
|
10708
11017
|
this.hostElement = el;
|
|
10709
|
-
} }, this.state._activeElement && (hAsync("div", { key: '
|
|
11018
|
+
} }, this.state._activeElement && (hAsync("div", { key: '7706d586dcddf9cf5a23040d01aa318e8dd460ba', class: "overlay" }, hAsync("div", { key: '5d32e1415e11d4f598035f68a6353bf4516174df', class: "modal", style: {
|
|
10710
11019
|
width: this.state._width,
|
|
10711
11020
|
}, "aria-label": this.state._label, "aria-modal": "true", role: "dialog", onKeyDown: this.onKeyDown, ref: (el) => {
|
|
10712
11021
|
if (el) {
|
|
10713
11022
|
el.setAttribute('tabindex', '0');
|
|
10714
11023
|
setTimeout(() => el.focus(), 250);
|
|
10715
11024
|
}
|
|
10716
|
-
} }, hAsync("slot", { key: '
|
|
11025
|
+
} }, hAsync("slot", { key: 'cbd31db78f6c1070fad845022b3efd6f247ead54' }))))));
|
|
10717
11026
|
}
|
|
10718
11027
|
validateActiveElement(value) {
|
|
10719
11028
|
watchValidator(this, '_activeElement', (value) => typeof value === 'object' || value === null, new Set(['HTMLElement', 'null']), value, {
|
|
@@ -10888,11 +11197,11 @@ class KolNav {
|
|
|
10888
11197
|
const collapsible = this.state._collapsible === true;
|
|
10889
11198
|
const hideLabel = this.state._hideLabel === true;
|
|
10890
11199
|
const orientation = this.state._orientation;
|
|
10891
|
-
return (hAsync(Host, { key: '
|
|
11200
|
+
return (hAsync(Host, { key: 'ad305888a9a44b97ab2c5c17ecb746bedfc29ea0', class: "kol-nav" }, hAsync("div", { key: '347730ba86f73875ed8aec6de6c0d0e5bd98bd66', class: {
|
|
10892
11201
|
nav: true,
|
|
10893
11202
|
[orientation]: true,
|
|
10894
11203
|
'is-compact': this.state._hideLabel,
|
|
10895
|
-
} }, hAsync("nav", { key: '
|
|
11204
|
+
} }, hAsync("nav", { key: '9e80ad4e14e09fb5cd268802d06ae72d47cae9ad', "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { key: '9806875ae93b0320bbf82979c8ed4a5a0466f630', collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })), hasCompactButton && (hAsync("div", { key: '26e0048f9c260311519592828553e34fdb9b51fe', class: "compact" }, hAsync(KolButtonTag, { key: '23dee1535d08bede377ee8add4d5ea31e7d7e3b3', _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: {
|
|
10896
11205
|
onClick: () => {
|
|
10897
11206
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
10898
11207
|
},
|
|
@@ -10922,7 +11231,7 @@ class KolNav {
|
|
|
10922
11231
|
}
|
|
10923
11232
|
validateLinks(value) {
|
|
10924
11233
|
watchNavLinks('KolNav', this, value);
|
|
10925
|
-
devHint(`[KolNav]
|
|
11234
|
+
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
10926
11235
|
}
|
|
10927
11236
|
validateOrientation(value) {
|
|
10928
11237
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -11643,9 +11952,10 @@ async function detectOverflow(state, options) {
|
|
|
11643
11952
|
strategy
|
|
11644
11953
|
}));
|
|
11645
11954
|
const rect = elementContext === 'floating' ? {
|
|
11646
|
-
...rects.floating,
|
|
11647
11955
|
x,
|
|
11648
|
-
y
|
|
11956
|
+
y,
|
|
11957
|
+
width: rects.floating.width,
|
|
11958
|
+
height: rects.floating.height
|
|
11649
11959
|
} : rects.reference;
|
|
11650
11960
|
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
11651
11961
|
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
@@ -11895,10 +12205,12 @@ const flip$1 = function (options) {
|
|
|
11895
12205
|
return {};
|
|
11896
12206
|
}
|
|
11897
12207
|
const side = getSide(placement);
|
|
12208
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
11898
12209
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
11899
12210
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
11900
12211
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
11901
|
-
|
|
12212
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
12213
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
11902
12214
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
11903
12215
|
}
|
|
11904
12216
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
@@ -11944,8 +12256,17 @@ const flip$1 = function (options) {
|
|
|
11944
12256
|
switch (fallbackStrategy) {
|
|
11945
12257
|
case 'bestFit':
|
|
11946
12258
|
{
|
|
11947
|
-
var _overflowsData$
|
|
11948
|
-
const placement = (_overflowsData$
|
|
12259
|
+
var _overflowsData$filter2;
|
|
12260
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
12261
|
+
if (hasFallbackAxisSideDirection) {
|
|
12262
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
12263
|
+
return currentSideAxis === initialSideAxis ||
|
|
12264
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
12265
|
+
// reading directions favoring greater width.
|
|
12266
|
+
currentSideAxis === 'y';
|
|
12267
|
+
}
|
|
12268
|
+
return true;
|
|
12269
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
11949
12270
|
if (placement) {
|
|
11950
12271
|
resetPlacement = placement;
|
|
11951
12272
|
}
|
|
@@ -12185,6 +12506,8 @@ async function convertValueToCoords(state, options) {
|
|
|
12185
12506
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
12186
12507
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
12187
12508
|
const rawValue = evaluate(options, state);
|
|
12509
|
+
|
|
12510
|
+
// eslint-disable-next-line prefer-const
|
|
12188
12511
|
let {
|
|
12189
12512
|
mainAxis,
|
|
12190
12513
|
crossAxis,
|
|
@@ -12435,16 +12758,16 @@ const size = function (options) {
|
|
|
12435
12758
|
widthSide = side;
|
|
12436
12759
|
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
12437
12760
|
}
|
|
12438
|
-
const
|
|
12439
|
-
const
|
|
12761
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
12762
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
12763
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
12764
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
12440
12765
|
const noShift = !state.middlewareData.shift;
|
|
12441
12766
|
let availableHeight = overflowAvailableHeight;
|
|
12442
12767
|
let availableWidth = overflowAvailableWidth;
|
|
12443
12768
|
if (isYAxis) {
|
|
12444
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
12445
12769
|
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
12446
12770
|
} else {
|
|
12447
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
12448
12771
|
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
12449
12772
|
}
|
|
12450
12773
|
if (noShift && !alignment) {
|
|
@@ -12568,8 +12891,8 @@ function getNodeScroll(element) {
|
|
|
12568
12891
|
};
|
|
12569
12892
|
}
|
|
12570
12893
|
return {
|
|
12571
|
-
scrollLeft: element.
|
|
12572
|
-
scrollTop: element.
|
|
12894
|
+
scrollLeft: element.scrollX,
|
|
12895
|
+
scrollTop: element.scrollY
|
|
12573
12896
|
};
|
|
12574
12897
|
}
|
|
12575
12898
|
function getParentNode(node) {
|
|
@@ -13411,7 +13734,7 @@ class KolPopover {
|
|
|
13411
13734
|
});
|
|
13412
13735
|
}
|
|
13413
13736
|
render() {
|
|
13414
|
-
return (hAsync(Host, { key: '
|
|
13737
|
+
return (hAsync(Host, { key: 'dcd0715b7b5ecee1797490a75861bb3660964c20', ref: this.catchHostAndTriggerElement, class: "kol-popover-wc" }, hAsync("div", { key: 'e5808e300a3b8a0382209c2d1e08e9d8b5628c5a', class: { popover: true, show: this.state._visible }, ref: this.catchPopoverElement, hidden: !this.state._show }, hAsync("div", { key: '57c5027c81f48377698c2e83a0437f7096e3f2b2', class: `arrow ${this.state._align}`, ref: this.catchArrowElement }), hAsync("slot", { key: '4a353c9f9ff9dad823e92b583be96c6fe45b3eb6' }))));
|
|
13415
13738
|
}
|
|
13416
13739
|
validateAlign(value) {
|
|
13417
13740
|
validateAlign(this, value);
|
|
@@ -13487,7 +13810,7 @@ class KolProcess {
|
|
|
13487
13810
|
};
|
|
13488
13811
|
}
|
|
13489
13812
|
render() {
|
|
13490
|
-
return (hAsync(Host, { key: '
|
|
13813
|
+
return (hAsync(Host, { key: '17d27a543723ef58650e2a409b3c2933517cebee', class: "kol-progress" }, createProgressSVG(this.state), hAsync("progress", { key: 'cce18c631b55e1819f0ab6605e431c3b7f558a0c', "aria-busy": this.state._value < this.state._max ? 'true' : 'false', max: this.state._max, value: this.state._value }), hAsync("span", { key: '8a1f04ddde885c765637d56a18c5b631e1dd318b', "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, this.state._liveValue, " von ", this.state._max, " ", this.state._unit)));
|
|
13491
13814
|
}
|
|
13492
13815
|
validateLabel(value) {
|
|
13493
13816
|
validateLabel(this, value);
|
|
@@ -13596,9 +13919,9 @@ class KolQuote {
|
|
|
13596
13919
|
}
|
|
13597
13920
|
render() {
|
|
13598
13921
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
13599
|
-
return (hAsync(Host, { key: '
|
|
13922
|
+
return (hAsync(Host, { key: '9b9860e687b3cec1527f758dcd362f8687a66f44', class: "kol-quote" }, hAsync("figure", { key: '1f3197be1bcbc754cd1ad3eb96186f6c7fd495f3', class: {
|
|
13600
13923
|
[this.state._variant]: true,
|
|
13601
|
-
} }, 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: '
|
|
13924
|
+
} }, 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: '5274e285aa6e13b3888b95d901c396ad99b952d2' }, hAsync("cite", { key: '2be67c626d0f904b40da9005362dbad7a0058775' }, hAsync(KolLinkTag, { key: '60b247245e6f7ad8377dd6d106495eaf4157ca67', _href: this.state._href, _label: this.state._label, _target: "_blank" })))))));
|
|
13602
13925
|
}
|
|
13603
13926
|
static get watchers() { return {
|
|
13604
13927
|
"_label": ["validateLabel"],
|
|
@@ -13714,6 +14037,13 @@ class KolSelect {
|
|
|
13714
14037
|
async getValue() {
|
|
13715
14038
|
return this.state._value;
|
|
13716
14039
|
}
|
|
14040
|
+
async focus() {
|
|
14041
|
+
await this.kolFocus();
|
|
14042
|
+
}
|
|
14043
|
+
async kolFocus() {
|
|
14044
|
+
var _a;
|
|
14045
|
+
(_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14046
|
+
}
|
|
13717
14047
|
renderOptgroup(optgroup, preKey) {
|
|
13718
14048
|
var _a;
|
|
13719
14049
|
return (hAsync("optgroup", { disabled: optgroup.disabled, label: optgroup.label }, (_a = optgroup.options) === null || _a === void 0 ? void 0 : _a.map((option, index) => {
|
|
@@ -13729,16 +14059,16 @@ class KolSelect {
|
|
|
13729
14059
|
render() {
|
|
13730
14060
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
13731
14061
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
13732
|
-
return (hAsync(Host, { key: '
|
|
14062
|
+
return (hAsync(Host, { key: 'e0bca5648369f513a867c3b2020d03b688469075', class: { 'kol-select': true, 'has-value': this.state._hasValue } }, hAsync(KolInputWcTag, { key: 'da1083003cc59ed15a0bd0c0508037dacb1b335e', class: {
|
|
13733
14063
|
'hide-label': !!this.state._hideLabel,
|
|
13734
14064
|
select: true,
|
|
13735
|
-
}, _accessKey: this.state._accessKey, _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, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.
|
|
14065
|
+
}, _accessKey: this.state._accessKey, _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, _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: '6be051315c2f5bffb2ecad1746dec86614aeea62', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '8556b2827302863bc76190e40dc559b1adf5e940', slot: "input" }, hAsync("form", { key: '3d67a53db81bb5ecc74c65d50019470908ff4298', onSubmit: (event) => {
|
|
13736
14066
|
event.preventDefault();
|
|
13737
14067
|
propagateSubmitEventToForm({
|
|
13738
14068
|
form: this.host,
|
|
13739
|
-
ref: this.
|
|
14069
|
+
ref: this.selectRef,
|
|
13740
14070
|
});
|
|
13741
|
-
} }, hAsync("input", { key: '
|
|
14071
|
+
} }, hAsync("input", { key: '2f48e602ebcb11cb5dd33055d3c8f75d2894244b', type: "submit", hidden: true }), hAsync("select", Object.assign({ key: 'c68ab3da9afd5022a7f146655767f0141d591781', 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, spellcheck: "false" }, this.controller.onFacade, { onInput: this.onInput.bind(this), onChange: this.onChange.bind(this) }), this.state._options.map((option, index) => {
|
|
13742
14072
|
const key = `-${index}`;
|
|
13743
14073
|
if (Array.isArray(option.options)) {
|
|
13744
14074
|
return this.renderOptgroup(option, key);
|
|
@@ -13751,8 +14081,7 @@ class KolSelect {
|
|
|
13751
14081
|
constructor(hostRef) {
|
|
13752
14082
|
registerInstance(this, hostRef);
|
|
13753
14083
|
this.catchRef = (ref) => {
|
|
13754
|
-
this.
|
|
13755
|
-
propagateFocus(this.host, this.ref);
|
|
14084
|
+
this.selectRef = ref;
|
|
13756
14085
|
};
|
|
13757
14086
|
this._accessKey = undefined;
|
|
13758
14087
|
this._alert = true;
|
|
@@ -13859,7 +14188,7 @@ class KolSelect {
|
|
|
13859
14188
|
}
|
|
13860
14189
|
onInput(event) {
|
|
13861
14190
|
var _a, _b, _c;
|
|
13862
|
-
this._value = Array.from(((_a = this.
|
|
14191
|
+
this._value = Array.from(((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.options) || [])
|
|
13863
14192
|
.filter((option) => option.selected === true)
|
|
13864
14193
|
.map((option) => { var _a; return (_a = this.controller.getOptionByKey(option.value)) === null || _a === void 0 ? void 0 : _a.value; });
|
|
13865
14194
|
tryToDispatchKoliBriEvent('input', this.host, this._value);
|
|
@@ -13926,7 +14255,9 @@ class KolSelect {
|
|
|
13926
14255
|
"_touched": [1540],
|
|
13927
14256
|
"_value": [1025],
|
|
13928
14257
|
"state": [32],
|
|
13929
|
-
"getValue": [64]
|
|
14258
|
+
"getValue": [64],
|
|
14259
|
+
"focus": [64],
|
|
14260
|
+
"kolFocus": [64]
|
|
13930
14261
|
},
|
|
13931
14262
|
"$listeners$": undefined,
|
|
13932
14263
|
"$lazyBundleId$": "-",
|
|
@@ -13948,7 +14279,7 @@ class KolSkipNav {
|
|
|
13948
14279
|
};
|
|
13949
14280
|
}
|
|
13950
14281
|
render() {
|
|
13951
|
-
return (hAsync(Host, { key: '
|
|
14282
|
+
return (hAsync(Host, { key: '9eb245b91aa6124e6116c653b249536af5b5cde0', class: "kol-skip-nav" }, hAsync("nav", { key: '4ebc5267976efdc13374fe16475cd1faad237916', "aria-label": this.state._label }, hAsync("ul", { key: '6ba51aa3395bae954992a4ba71068136da3b3b82' }, this.state._links.map((link, index) => {
|
|
13952
14283
|
return (hAsync("li", { key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
13953
14284
|
})))));
|
|
13954
14285
|
}
|
|
@@ -14004,7 +14335,7 @@ class KolSpan {
|
|
|
14004
14335
|
this._label = undefined;
|
|
14005
14336
|
}
|
|
14006
14337
|
render() {
|
|
14007
|
-
return (hAsync(KolSpanWcTag, { key: '
|
|
14338
|
+
return (hAsync(KolSpanWcTag, { key: '8fb014c28ff509a829798007f239eff09badb7fa', _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label, _accessKey: this._accessKey, class: "kol-span" }, hAsync("slot", { key: '8ac9ed04dcf44846dbb8624687746c1ac34708a5', name: "expert", slot: "expert" })));
|
|
14008
14339
|
}
|
|
14009
14340
|
static get style() { return {
|
|
14010
14341
|
default: KolSpanDefaultStyle0
|
|
@@ -22368,10 +22699,10 @@ class KolSpanWc {
|
|
|
22368
22699
|
render() {
|
|
22369
22700
|
var _a, _b, _c, _d, _e;
|
|
22370
22701
|
const hideExpertSlot = !showExpertSlot(this.state._label);
|
|
22371
|
-
return (hAsync(Host, { key: '
|
|
22702
|
+
return (hAsync(Host, { key: '0a15150866920a51833e591397e7ff1624c89fc7', class: {
|
|
22372
22703
|
'kol-span-wc': true,
|
|
22373
22704
|
'hide-label': !!this.state._hideLabel,
|
|
22374
|
-
} }, this.state._icons.top && (hAsync(KolIconTag, { key: '
|
|
22705
|
+
} }, this.state._icons.top && (hAsync(KolIconTag, { key: 'a13817ec7df7d39bbe765123bd36bbb1f58aa237', 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: '6f86eba44456d1ab64d17a679c5c6e124dc1e66c' }, this.state._icons.left && (hAsync(KolIconTag, { key: 'd08648696cbde3838c671d1166bd216faf4a5bd4', 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._accessKey && this.state._label.length ? (hAsync(InternalUnderlinedAccessKey, { label: this.state._label, accessKey: this.state._accessKey })) : ((_c = this.state._label) !== null && _c !== void 0 ? _c : '')))) : (''), hAsync("span", { key: '9aa519bb4c73ac14bdcf3296374c838478f34f50', "aria-hidden": hideExpertSlot ? 'true' : undefined, class: "span-label", hidden: hideExpertSlot }, hAsync("slot", { key: 'b4c670498ef4074f0a04d45e4e384860144d6a37', name: "expert" })), this.state._accessKey && (hAsync("span", { key: '7a5fcc6fc5937789164c2382906232df5d788151', class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey)), this.state._icons.right && (hAsync(KolIconTag, { key: '786f8ddd5168addd92a9dd12ca85dc1925bb30ac', 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: '5897ff2924688326e318d2f3a910f4ee2f3a333a', 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 }))));
|
|
22375
22706
|
}
|
|
22376
22707
|
validateAccessKey(value) {
|
|
22377
22708
|
validateAccessKey(this, value);
|
|
@@ -22449,7 +22780,7 @@ class KolSpin {
|
|
|
22449
22780
|
};
|
|
22450
22781
|
}
|
|
22451
22782
|
render() {
|
|
22452
|
-
return (hAsync(Host, { key: '
|
|
22783
|
+
return (hAsync(Host, { key: '1341f6f7b72ff1c95f3a73f163364342172d5cad', class: "kol-spin" }, this.state._show ? (hAsync("span", { "aria-busy": "true", "aria-label": translate('kol-action-running'), "aria-live": "polite", class: {
|
|
22453
22784
|
spin: true,
|
|
22454
22785
|
[this.state._variant]: true,
|
|
22455
22786
|
}, role: "alert" }, renderSpin(this.state._variant))) : (this.showToggled && hAsync("span", { "aria-label": translate('kol-action-done'), "aria-busy": "false", "aria-live": "polite", role: "alert" }))));
|
|
@@ -22555,12 +22886,12 @@ class KolSplitButton {
|
|
|
22555
22886
|
}
|
|
22556
22887
|
render() {
|
|
22557
22888
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
22558
|
-
return (hAsync(Host, { key: '
|
|
22889
|
+
return (hAsync(Host, { key: 'a527306b3af651544bf317a61dee2398c1390034', class: "kol-split-button" }, hAsync(KolButtonWcTag, { key: '8b72ca7871e344472433e3e63cbcc3282ae653b7', class: {
|
|
22559
22890
|
'main-button': true,
|
|
22560
22891
|
button: true,
|
|
22561
22892
|
[this._variant]: this._variant !== 'custom',
|
|
22562
22893
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
22563
|
-
}, _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: '
|
|
22894
|
+
}, _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: '40a3ce6bc755a453d9823706b89bed3638aa7608', class: "horizontal-line" }), hAsync(KolButtonWcTag, { key: '4ad3cc5acdb289695cc73edc65b285aed4b7aa94', class: "secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler }), hAsync("div", { key: '056b57cd9712ef379f49c894f749c32d43404986', class: "popover", ref: this.catchDropdownElements }, hAsync("div", { key: '814797a3e331a3e0352da52e82dfa33b3f27eddf', class: "popover-content" }, hAsync("slot", { key: '3ba6188d4b04dac4703cbe3d486d487c983a3324' })))));
|
|
22564
22895
|
}
|
|
22565
22896
|
static get style() { return {
|
|
22566
22897
|
default: KolSplitButtonDefaultStyle0
|
|
@@ -22606,7 +22937,7 @@ class KolSymbol {
|
|
|
22606
22937
|
};
|
|
22607
22938
|
}
|
|
22608
22939
|
render() {
|
|
22609
|
-
return (hAsync(Host, { key: '
|
|
22940
|
+
return (hAsync(Host, { key: '5a17cb366a4268e6010c15c5a82f72a53313ecad', class: "kol-symbol" }, hAsync("span", { key: '00ac2ef03b17992d53ee2975ba2513b0e857fd1f', "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
22610
22941
|
}
|
|
22611
22942
|
validateLabel(value) {
|
|
22612
22943
|
validateLabel(this, value, {
|
|
@@ -22655,7 +22986,7 @@ class KolTable {
|
|
|
22655
22986
|
this._on = undefined;
|
|
22656
22987
|
}
|
|
22657
22988
|
render() {
|
|
22658
|
-
return (hAsync(KolTableStatefulTag, { key: '
|
|
22989
|
+
return (hAsync(KolTableStatefulTag, { key: 'c65b251dc7c47eda8c7fa491a83608370dd0da2a', _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 }));
|
|
22659
22990
|
}
|
|
22660
22991
|
static get cmpMeta() { return {
|
|
22661
22992
|
"$flags$": 9,
|
|
@@ -23048,7 +23379,7 @@ class KolTableStateful {
|
|
|
23048
23379
|
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) })))),
|
|
23049
23380
|
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) })))),
|
|
23050
23381
|
};
|
|
23051
|
-
return (hAsync(Host, { key: '
|
|
23382
|
+
return (hAsync(Host, { key: 'bdce96077b735bf0a23e6bd2de10e79a55e244c6', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '0306216fc6f81b985e95f4178213e1a11f23f9bc', _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
23052
23383
|
onSort: (_, payload) => {
|
|
23053
23384
|
this.handleSort(payload);
|
|
23054
23385
|
},
|
|
@@ -23111,7 +23442,7 @@ class KolTableStateless$1 {
|
|
|
23111
23442
|
this._selection = undefined;
|
|
23112
23443
|
}
|
|
23113
23444
|
render() {
|
|
23114
|
-
return (hAsync(Host, { key: '
|
|
23445
|
+
return (hAsync(Host, { key: 'd8c2f6eed229d8b9d475dfdb9678a3ed3055cecd', class: "kol-table-stateless" }, hAsync(KolTableStatelessWcTag, { key: 'f0b6f632885da05dd020af5318c287cacb117f3c', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection })));
|
|
23115
23446
|
}
|
|
23116
23447
|
static get style() { return {
|
|
23117
23448
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -23490,9 +23821,9 @@ class KolTableStateless {
|
|
|
23490
23821
|
}
|
|
23491
23822
|
render() {
|
|
23492
23823
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
23493
|
-
return (hAsync(Host, { key: '
|
|
23824
|
+
return (hAsync(Host, { key: '6ff227efb6562cc4802f7f3cdcc07da9b15f6144', class: "kol-table-stateless-wc" }, hAsync("div", { key: 'f85881b7a6221b40b72d938398111391b6d1a66e', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '855e72ca4c4770fda2cedd5c894ec81c9207405f', style: {
|
|
23494
23825
|
minWidth: this.state._minWidth,
|
|
23495
|
-
} }, hAsync("div", { key: '
|
|
23826
|
+
} }, hAsync("div", { key: 'a793e72c2157d6a857111b2fe96e0463d43e18ba', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: 'cb84389391bcaa93093d86d7b96e41265befad1c', id: "caption" }, this.state._label), Array.isArray(this.state._headerCells.horizontal) && (hAsync("thead", { key: '887ede1cde2c05062e7279143e75cf76c5e30f4a' }, this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && hAsync("td", { key: "thead-selection", class: "selection-header-cell" }), cols.map((cell, colIndex) => {
|
|
23496
23827
|
if (cell.asTd === true) {
|
|
23497
23828
|
return (hAsync("td", { key: `thead-${rowIndex}-${colIndex}-${cell.label}`, class: {
|
|
23498
23829
|
[cell.textAlign]: typeof cell.textAlign === 'string' && cell.textAlign.length > 0,
|
|
@@ -23508,7 +23839,7 @@ class KolTableStateless {
|
|
|
23508
23839
|
else {
|
|
23509
23840
|
return this.renderHeadingCell(cell, rowIndex, colIndex);
|
|
23510
23841
|
}
|
|
23511
|
-
})))))), hAsync("tbody", { key: '
|
|
23842
|
+
})))))), hAsync("tbody", { key: '87c7b41c699b02f2fe8802befd7f5d5013b2d4be' }, dataField.map(this.renderTableRow)), this.renderFoot()))));
|
|
23512
23843
|
}
|
|
23513
23844
|
get host() { return getElement(this); }
|
|
23514
23845
|
static get watchers() { return {
|
|
@@ -23628,7 +23959,7 @@ class KolTabs {
|
|
|
23628
23959
|
return this.selectNextNotDisabledTab(selected - 1, tabs, false, initialSelected || selected);
|
|
23629
23960
|
}
|
|
23630
23961
|
else {
|
|
23631
|
-
devHint(`[KolTabs]
|
|
23962
|
+
devHint(`[KolTabs] All tabs are disabled, and therefore no tab can be displayed.`);
|
|
23632
23963
|
}
|
|
23633
23964
|
}
|
|
23634
23965
|
}
|
|
@@ -23699,11 +24030,11 @@ class KolTabs {
|
|
|
23699
24030
|
} }))));
|
|
23700
24031
|
}
|
|
23701
24032
|
render() {
|
|
23702
|
-
return (hAsync(Host, { key: '
|
|
24033
|
+
return (hAsync(Host, { key: '1092ece9e1623621dcd253ff8d32eb1470471993', class: "kol-tabs" }, hAsync("div", { key: '42c75328542b14057998aaa615c692e15870e5ce', ref: (el) => {
|
|
23703
24034
|
this.tabPanelsElement = el;
|
|
23704
24035
|
}, class: {
|
|
23705
24036
|
[`tabs-align-${this.state._align}`]: true,
|
|
23706
|
-
} }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
24037
|
+
} }, this.renderButtonGroup(), hAsync("div", { key: '89eb64ffefa3234cb2ba93532a775cc2e1cf0968', class: "tabs-content", ref: this.catchTabPanelHost }))));
|
|
23707
24038
|
}
|
|
23708
24039
|
validateAlign(value) {
|
|
23709
24040
|
validateAlign(this, value);
|
|
@@ -23723,23 +24054,23 @@ class KolTabs {
|
|
|
23723
24054
|
this.onCreateLabel = value.onCreate.label;
|
|
23724
24055
|
}
|
|
23725
24056
|
else {
|
|
23726
|
-
Log.debug(`[KolTabs]
|
|
24057
|
+
Log.debug(`[KolTabs] The label text for New in {
|
|
23727
24058
|
onCreate: {
|
|
23728
24059
|
label: string (!),
|
|
23729
24060
|
callback: Function
|
|
23730
24061
|
}
|
|
23731
|
-
}
|
|
24062
|
+
} is not set correctly.`);
|
|
23732
24063
|
}
|
|
23733
24064
|
if (typeof value.onCreate.callback === 'function') {
|
|
23734
24065
|
callbacks.onCreate = value.onCreate.callback;
|
|
23735
24066
|
}
|
|
23736
24067
|
else {
|
|
23737
|
-
Log.debug(`[KolTabs]
|
|
24068
|
+
Log.debug(`[KolTabs] The onCreate callback function for New in {
|
|
23738
24069
|
onCreate: {
|
|
23739
24070
|
label: string,
|
|
23740
24071
|
callback: Function (!)
|
|
23741
24072
|
}
|
|
23742
|
-
}
|
|
24073
|
+
} is not set correctly.`);
|
|
23743
24074
|
}
|
|
23744
24075
|
}
|
|
23745
24076
|
else {
|
|
@@ -23903,26 +24234,32 @@ const increaseTextareaHeight = (el) => {
|
|
|
23903
24234
|
class KolTextarea {
|
|
23904
24235
|
async getValue() {
|
|
23905
24236
|
var _a;
|
|
23906
|
-
return (_a = this.
|
|
24237
|
+
return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
24238
|
+
}
|
|
24239
|
+
async focus() {
|
|
24240
|
+
await this.kolFocus();
|
|
24241
|
+
}
|
|
24242
|
+
async kolFocus() {
|
|
24243
|
+
var _a;
|
|
24244
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23907
24245
|
}
|
|
23908
24246
|
render() {
|
|
23909
24247
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
23910
24248
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
23911
|
-
return (hAsync(Host, { key: '
|
|
24249
|
+
return (hAsync(Host, { key: 'db199ad3fd9fae0a23f3de8b54b15a20c04a3c95', class: { 'kol-textarea': true, 'has-value': this.state._hasValue } }, hAsync(KolInputWcTag, { key: '2ef6815d8e956d0ff94b19e40bc754cb19223152', class: { textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }, _accessKey: this.state._accessKey, _alert: this.state._alert, _currentLength: this.state._currentLength, _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, _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: 'cdcb791763a07b2c04bd152cb02d0a3750a19420', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedAccessKey, { accessKey: this.state._accessKey, label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, this.state._accessKey))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '04e8f1b97df661b5fd0b7c20f48e1ae165995223', slot: "input" }, hAsync("textarea", Object.assign({ key: '0ad4e21fe58c68fb9a5007738ecc0f378cfbd08c', 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: "false" }, this.controller.onFacade, { onInput: this.onInput, style: {
|
|
23912
24250
|
resize: this.state._resize,
|
|
23913
24251
|
}, value: this.state._value }))))));
|
|
23914
24252
|
}
|
|
23915
24253
|
constructor(hostRef) {
|
|
23916
24254
|
registerInstance(this, hostRef);
|
|
23917
24255
|
this.catchRef = (ref) => {
|
|
23918
|
-
this.
|
|
23919
|
-
propagateFocus(this.host, this.ref);
|
|
24256
|
+
this.textareaRef = ref;
|
|
23920
24257
|
};
|
|
23921
24258
|
this.onInput = (event) => {
|
|
23922
|
-
if (this.
|
|
23923
|
-
setState(this, '_currentLength', this.
|
|
24259
|
+
if (this.textareaRef instanceof HTMLTextAreaElement) {
|
|
24260
|
+
setState(this, '_currentLength', this.textareaRef.value.length);
|
|
23924
24261
|
if (this.state._adjustHeight) {
|
|
23925
|
-
this._rows = increaseTextareaHeight(this.
|
|
24262
|
+
this._rows = increaseTextareaHeight(this.textareaRef);
|
|
23926
24263
|
}
|
|
23927
24264
|
this.controller.onFacade.onInput(event);
|
|
23928
24265
|
}
|
|
@@ -24045,8 +24382,9 @@ class KolTextarea {
|
|
|
24045
24382
|
componentDidLoad() {
|
|
24046
24383
|
setTimeout(() => {
|
|
24047
24384
|
var _a;
|
|
24048
|
-
if (this._adjustHeight === true && this.
|
|
24049
|
-
this._rows =
|
|
24385
|
+
if (this._adjustHeight === true && this.textareaRef) {
|
|
24386
|
+
this._rows =
|
|
24387
|
+
((_a = this.state) === null || _a === void 0 ? void 0 : _a._rows) && this.state._rows > increaseTextareaHeight(this.textareaRef) ? this.state._rows : increaseTextareaHeight(this.textareaRef);
|
|
24050
24388
|
}
|
|
24051
24389
|
else if (!this._rows) {
|
|
24052
24390
|
this._rows = 1;
|
|
@@ -24122,7 +24460,9 @@ class KolTextarea {
|
|
|
24122
24460
|
"_touched": [1540],
|
|
24123
24461
|
"_value": [1],
|
|
24124
24462
|
"state": [32],
|
|
24125
|
-
"getValue": [64]
|
|
24463
|
+
"getValue": [64],
|
|
24464
|
+
"focus": [64],
|
|
24465
|
+
"kolFocus": [64]
|
|
24126
24466
|
},
|
|
24127
24467
|
"$listeners$": undefined,
|
|
24128
24468
|
"$lazyBundleId$": "-",
|
|
@@ -24193,7 +24533,7 @@ class KolToastContainer {
|
|
|
24193
24533
|
}
|
|
24194
24534
|
}
|
|
24195
24535
|
render() {
|
|
24196
|
-
return (hAsync(Host, { key: '
|
|
24536
|
+
return (hAsync(Host, { key: '36c5561666fee5691aa7f732dcd90f5e4fe75457', class: "kol-toast-container" }, this.state._toastStates.length > 1 && (hAsync(KolButtonTag, { key: 'fe4187d5afff3547776ba89b695386bef8e05c93', _label: translate('kol-toast-close-all'), class: "close-all", _on: {
|
|
24197
24537
|
onClick: () => {
|
|
24198
24538
|
void this.closeAll();
|
|
24199
24539
|
},
|
|
@@ -24216,7 +24556,7 @@ class KolToastContainer {
|
|
|
24216
24556
|
}; }
|
|
24217
24557
|
}
|
|
24218
24558
|
|
|
24219
|
-
const defaultStyleCss$3 = "@layer kol-global {\n .sc-kol-toolbar-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-toolbar-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-toolbar-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-toolbar-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .toolbar {\n display: flex;\n align-items: center;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .toolbar:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}";
|
|
24559
|
+
const defaultStyleCss$3 = "@layer kol-global {\n .sc-kol-toolbar-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-toolbar-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-toolbar-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-toolbar-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .toolbar {\n display: flex;\n align-items: center;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n flex-wrap: wrap;\n }\n .toolbar:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}";
|
|
24220
24560
|
var KolToolbarDefaultStyle0 = defaultStyleCss$3;
|
|
24221
24561
|
|
|
24222
24562
|
const TOOLBAR_ITEM_TAG_NAME = 'kol-toolbar-item';
|
|
@@ -24245,7 +24585,7 @@ class KolToolbar {
|
|
|
24245
24585
|
this._items = undefined;
|
|
24246
24586
|
}
|
|
24247
24587
|
render() {
|
|
24248
|
-
return (hAsync(Host, { key: '
|
|
24588
|
+
return (hAsync(Host, { key: '9f6ed1dc6f76f186fb82cf82c06560692ff3e170', class: "kol-toolbar" }, hAsync("div", { key: '0a90aa25fa7522291ebc34adfdd21ac09152bea2', class: "toolbar", role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem))));
|
|
24249
24589
|
}
|
|
24250
24590
|
validateLabel(value) {
|
|
24251
24591
|
validateLabel(this, value);
|
|
@@ -24281,7 +24621,7 @@ class KolToolbar {
|
|
|
24281
24621
|
if (currentIndex === nextIndex)
|
|
24282
24622
|
return;
|
|
24283
24623
|
this.currentIndex = nextIndex;
|
|
24284
|
-
(_b = this.getCurrentToolbarItem(nextIndex)) === null || _b === void 0 ? void 0 : _b.
|
|
24624
|
+
void ((_b = this.getCurrentToolbarItem(nextIndex)) === null || _b === void 0 ? void 0 : _b.kolFocus());
|
|
24285
24625
|
}
|
|
24286
24626
|
handleBlur(event) {
|
|
24287
24627
|
if (event.target === this.host)
|
|
@@ -24446,7 +24786,7 @@ class KolTooltipWc {
|
|
|
24446
24786
|
this.showOrHideTooltip();
|
|
24447
24787
|
}
|
|
24448
24788
|
render() {
|
|
24449
|
-
return (hAsync(Host, { key: '
|
|
24789
|
+
return (hAsync(Host, { key: '1c7cc2feefe8a7c96cd7b018295299ecefcedbe4', class: "kol-tooltip-wc" }, this.state._label !== '' && (hAsync("div", { key: 'f6bb8c33a660b5748eb14dfa4a2398da38e9be39', class: "tooltip-floating", ref: this.catchTooltipElement }, hAsync("div", { key: '900eb0ed9b258c432dd0662dd4f93eb9f894df50', class: "tooltip-area tooltip-arrow", ref: this.catchArrowElement }), hAsync(KolSpanWcTag, { key: '60ccad7c22d86c8d168212223e59ba6790a546c0', class: "tooltip-area tooltip-content", id: this.state._id, _accessKey: this._accessKey, _label: this.state._label })))));
|
|
24450
24790
|
}
|
|
24451
24791
|
validateAccessKey(value) {
|
|
24452
24792
|
validateAccessKey(this, value);
|
|
@@ -24516,7 +24856,7 @@ class KolTooltipWc {
|
|
|
24516
24856
|
}; }
|
|
24517
24857
|
}
|
|
24518
24858
|
|
|
24519
|
-
const defaultStyleCss$2 = "@layer kol-global {\n .sc-kol-tree-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-tree-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-tree-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-tree-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .tree:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}";
|
|
24859
|
+
const defaultStyleCss$2 = "@layer kol-global {\n .sc-kol-tree-default-h {\n \n --a11y-min-size: 44px;\n \n background-color: white;\n color: black;\n \n font-family: Verdana;\n }\n * {\n \n hyphens: auto;\n \n letter-spacing: inherit;\n \n word-break: break-word;\n \n word-spacing: inherit;\n }\n \n \n \n \n \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 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 font-family: inherit;\n \n font-size: inherit;\n }\n}\n\n/*!@.visually-hidden*/.visually-hidden.sc-kol-tree-default {\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 :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; \n }\n \n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n .sc-kol-tree-default-h {\n \n max-width: 100%;\n }\n * {\n \n box-sizing: border-box;\n }\n \n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n \n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n \n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n \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}\n@layer kol-component {\n .sc-kol-tree-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .tree ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .tree:focus-within {\n outline: 1px solid;\n outline-offset: 2px;\n }\n}";
|
|
24520
24860
|
var KolTreeDefaultStyle0 = defaultStyleCss$2;
|
|
24521
24861
|
|
|
24522
24862
|
class KolTree {
|
|
@@ -24525,7 +24865,7 @@ class KolTree {
|
|
|
24525
24865
|
this._label = undefined;
|
|
24526
24866
|
}
|
|
24527
24867
|
render() {
|
|
24528
|
-
return (hAsync(Host, { key: '
|
|
24868
|
+
return (hAsync(Host, { key: 'dcecaa4251615a78aaa446af89fbdfdd81cc8029', class: "kol-tree" }, hAsync(KolTreeWcTag, { key: 'ccf2f97fab1be1ea608ac67ed358bc8211ed390f', _label: this._label }, hAsync("slot", { key: '891e12670a8bcacc1c219544bbf915705ae6f963' }))));
|
|
24529
24869
|
}
|
|
24530
24870
|
static get style() { return {
|
|
24531
24871
|
default: KolTreeDefaultStyle0
|
|
@@ -24542,7 +24882,7 @@ class KolTree {
|
|
|
24542
24882
|
}; }
|
|
24543
24883
|
}
|
|
24544
24884
|
|
|
24545
|
-
const defaultStyleCss$1 = "@layer kol-component {\n .sc-kol-tree-item-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
24885
|
+
const defaultStyleCss$1 = "@layer kol-component {\n .sc-kol-tree-item-default-h {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .tree-link.first-level > a {\n padding-left: calc(6rem / var(--kolibri-root-font-size, 16));\n }\n .tree-link > a {\n padding-right: calc(6rem / var(--kolibri-root-font-size, 16));\n padding-left: calc(1.4rem * var(--level));\n padding-top: calc(6.4rem / var(--kolibri-root-font-size, 16));\n padding-bottom: calc(6.4rem / var(--kolibri-root-font-size, 16));\n }\n a .kol-span-wc {\n display: block;\n }\n}";
|
|
24546
24886
|
var KolTreeItemDefaultStyle0 = defaultStyleCss$1;
|
|
24547
24887
|
|
|
24548
24888
|
class KolTreeItem {
|
|
@@ -24573,7 +24913,7 @@ class KolTreeItem {
|
|
|
24573
24913
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
24574
24914
|
}
|
|
24575
24915
|
render() {
|
|
24576
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
24916
|
+
return (hAsync(KolTreeItemWcTag, { key: 'ef6ed03ba5870a8becbb286898a5911b5525a21c', class: "kol-tree-item", _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: 'f51d43a0a36cfd224a53324068d5ed28e4d9d079' })));
|
|
24577
24917
|
}
|
|
24578
24918
|
static get style() { return {
|
|
24579
24919
|
default: KolTreeItemDefaultStyle0
|
|
@@ -24600,6 +24940,11 @@ class KolTreeItem {
|
|
|
24600
24940
|
class KolTreeItemWc {
|
|
24601
24941
|
constructor(hostRef) {
|
|
24602
24942
|
registerInstance(this, hostRef);
|
|
24943
|
+
this.groupId = `tree-group-${nonce()}`;
|
|
24944
|
+
this.renderIcon = (props) => {
|
|
24945
|
+
return hAsync(KolIconTag, { class: "toggle-button-icon", _label: props.label, _icons: props.icon });
|
|
24946
|
+
};
|
|
24947
|
+
this.level = undefined;
|
|
24603
24948
|
this.state = {
|
|
24604
24949
|
_active: false,
|
|
24605
24950
|
_hasChildren: false,
|
|
@@ -24613,11 +24958,17 @@ class KolTreeItemWc {
|
|
|
24613
24958
|
this._href = undefined;
|
|
24614
24959
|
}
|
|
24615
24960
|
render() {
|
|
24616
|
-
|
|
24961
|
+
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
24962
|
+
return (hAsync(Host, { key: 'a7478410c633314ba5b7a9e8588b5b9484efeb94', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-item-wc" }, hAsync("li", { key: '6c3ad7b0e013ec83d92f0d05a222d0696aa98729', class: "tree-item", style: {
|
|
24963
|
+
'--level': `${this.level}`,
|
|
24964
|
+
} }, hAsync(KolLinkWcTag, { key: 'fbd0b31027e032f6df61652df29a0b37ef67a104', class: {
|
|
24617
24965
|
'tree-link': true,
|
|
24618
|
-
|
|
24619
|
-
|
|
24620
|
-
|
|
24966
|
+
'first-level': this.level === 0,
|
|
24967
|
+
active: Boolean(_active),
|
|
24968
|
+
}, _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _open, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: '361d16b78885085be82c83e6fe4b8bd83e8274d7', slot: "expert" }, _hasChildren && (hAsync("span", { key: '3a742c6ea9fa940854cb21f1607ab0490c091558', class: "toggle-button", onClick: (event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event)) }, this.renderIcon({
|
|
24969
|
+
icon: `codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`,
|
|
24970
|
+
label: _open ? 'Vorschläge öffnen' : 'Vorschläge schließen',
|
|
24971
|
+
}))), ' ', _label)), hAsync("ul", { key: '087a87f28d8f06d72cee95f9ab553f7f79e16496', hidden: !_hasChildren || !_open, role: "group", id: this.groupId }, hAsync("slot", { key: '8e286b2265806859a9bd61809c6387331df607f3' })))));
|
|
24621
24972
|
}
|
|
24622
24973
|
validateActive(value) {
|
|
24623
24974
|
validateActive(this, value || false);
|
|
@@ -24637,20 +24988,30 @@ class KolTreeItemWc {
|
|
|
24637
24988
|
this.validateOpen(this._open);
|
|
24638
24989
|
this.validateHref(this._href);
|
|
24639
24990
|
this.checkForChildren();
|
|
24991
|
+
this.determineTreeItemDepth();
|
|
24992
|
+
}
|
|
24993
|
+
determineTreeItemDepth() {
|
|
24994
|
+
let level = 0;
|
|
24995
|
+
let traverseItem = this.host.parentNode.host.parentNode;
|
|
24996
|
+
while (traverseItem !== null && traverseItem.tagName.toLowerCase() !== KolTreeTag && traverseItem !== document.body) {
|
|
24997
|
+
traverseItem = traverseItem.parentElement;
|
|
24998
|
+
level += 1;
|
|
24999
|
+
}
|
|
25000
|
+
this.level = level;
|
|
24640
25001
|
}
|
|
24641
25002
|
handleSlotchange() {
|
|
24642
25003
|
this.checkForChildren();
|
|
24643
25004
|
}
|
|
24644
25005
|
checkForChildren() {
|
|
24645
|
-
var _a;
|
|
24646
|
-
this.state = Object.assign(Object.assign({}, this.state), { _hasChildren: Boolean((_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedElements().length) });
|
|
25006
|
+
var _a, _b;
|
|
25007
|
+
this.state = Object.assign(Object.assign({}, this.state), { _hasChildren: Boolean((_b = (_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedElements) === null || _b === void 0 ? void 0 : _b.call(_a).length) });
|
|
24647
25008
|
}
|
|
24648
25009
|
async focusLink() {
|
|
24649
|
-
this.linkElement.
|
|
25010
|
+
await this.linkElement.kolFocus();
|
|
24650
25011
|
}
|
|
24651
25012
|
async handleExpandClick(event) {
|
|
24652
25013
|
event.preventDefault();
|
|
24653
|
-
this.linkElement.
|
|
25014
|
+
await this.linkElement.kolFocus();
|
|
24654
25015
|
await this.expand();
|
|
24655
25016
|
}
|
|
24656
25017
|
async expand() {
|
|
@@ -24687,6 +25048,7 @@ class KolTreeItemWc {
|
|
|
24687
25048
|
"_label": [1],
|
|
24688
25049
|
"_open": [4],
|
|
24689
25050
|
"_href": [1],
|
|
25051
|
+
"level": [32],
|
|
24690
25052
|
"state": [32],
|
|
24691
25053
|
"focusLink": [64],
|
|
24692
25054
|
"expand": [64],
|
|
@@ -24699,8 +25061,6 @@ class KolTreeItemWc {
|
|
|
24699
25061
|
}; }
|
|
24700
25062
|
}
|
|
24701
25063
|
|
|
24702
|
-
const TREE_ITEM_TAG_NAME = 'kol-tree-item';
|
|
24703
|
-
|
|
24704
25064
|
class KolTreeWc {
|
|
24705
25065
|
constructor(hostRef) {
|
|
24706
25066
|
registerInstance(this, hostRef);
|
|
@@ -24713,10 +25073,10 @@ class KolTreeWc {
|
|
|
24713
25073
|
validateLabel(this, value);
|
|
24714
25074
|
}
|
|
24715
25075
|
render() {
|
|
24716
|
-
return (hAsync(Host, { key: '
|
|
25076
|
+
return (hAsync(Host, { key: 'd8edad29edf6c40702763ed84d2eff012c17c511', onSlotchange: this.handleSlotchange.bind(this), class: "kol-tree-wc" }, hAsync("nav", { key: 'f35ee92ece4bdb6375c016cbabba84d8cfa6be25', class: "tree", "aria-label": this.state._label }, hAsync("ul", { key: '0c2d424ec9f9dcb9d2a115f445cc2aff5dff5864', class: "treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: '5caf2660158c816c84caacc9301a8ce1b22910e3' })))));
|
|
24717
25077
|
}
|
|
24718
25078
|
static isTreeItem(element) {
|
|
24719
|
-
return (element === null || element === void 0 ? void 0 : element.tagName) ===
|
|
25079
|
+
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
24720
25080
|
}
|
|
24721
25081
|
componentWillLoad() {
|
|
24722
25082
|
this.validateLabel(this._label);
|
|
@@ -24736,22 +25096,24 @@ class KolTreeWc {
|
|
|
24736
25096
|
this.handleTreeChange();
|
|
24737
25097
|
}
|
|
24738
25098
|
observeTopLevelItems() {
|
|
24739
|
-
|
|
25099
|
+
var _a;
|
|
25100
|
+
(_a = this.getTopLevelTreeItems()) === null || _a === void 0 ? void 0 : _a.forEach((treeItem) => {
|
|
24740
25101
|
var _a;
|
|
24741
25102
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.observe(treeItem, { childList: true, subtree: true });
|
|
24742
25103
|
});
|
|
24743
25104
|
}
|
|
24744
25105
|
getTopLevelTreeItems() {
|
|
24745
|
-
var _a;
|
|
24746
|
-
return ((_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedNodes()).filter(KolTreeWc.isTreeItem);
|
|
25106
|
+
var _a, _b, _c;
|
|
25107
|
+
return (_c = (_b = (_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedNodes) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.filter(KolTreeWc.isTreeItem);
|
|
24747
25108
|
}
|
|
24748
25109
|
handleTreeChange() {
|
|
24749
25110
|
this.treeItemElements = this.getTreeItemElements();
|
|
24750
25111
|
void this.ensureActiveItemVisibility();
|
|
24751
25112
|
}
|
|
24752
25113
|
getTreeItemElements() {
|
|
24753
|
-
|
|
24754
|
-
|
|
25114
|
+
var _a;
|
|
25115
|
+
return (_a = this.getTopLevelTreeItems()) === null || _a === void 0 ? void 0 : _a.reduce((accumulator, currentValue) => {
|
|
25116
|
+
const children = currentValue.querySelectorAll(KolTreeItemTag);
|
|
24755
25117
|
return [...accumulator, currentValue, ...children];
|
|
24756
25118
|
}, []);
|
|
24757
25119
|
}
|
|
@@ -24776,7 +25138,7 @@ class KolTreeWc {
|
|
|
24776
25138
|
async handleKeyDown(event) {
|
|
24777
25139
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
24778
25140
|
const openItems = await this.getOpenTreeItemElements();
|
|
24779
|
-
const currentTreeItem = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(
|
|
25141
|
+
const currentTreeItem = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(KolTreeItemTag);
|
|
24780
25142
|
if (!openItems || !currentTreeItem) {
|
|
24781
25143
|
return;
|
|
24782
25144
|
}
|
|
@@ -24839,7 +25201,7 @@ class KolTreeWc {
|
|
|
24839
25201
|
break;
|
|
24840
25202
|
}
|
|
24841
25203
|
case '*': {
|
|
24842
|
-
const siblings = (_j = currentTreeItem.parentElement) === null || _j === void 0 ? void 0 : _j.querySelectorAll(
|
|
25204
|
+
const siblings = (_j = currentTreeItem.parentElement) === null || _j === void 0 ? void 0 : _j.querySelectorAll(KolTreeItemTag);
|
|
24843
25205
|
siblings === null || siblings === void 0 ? void 0 : siblings.forEach((element) => {
|
|
24844
25206
|
void element.expand();
|
|
24845
25207
|
});
|
|
@@ -24848,19 +25210,19 @@ class KolTreeWc {
|
|
|
24848
25210
|
}
|
|
24849
25211
|
}
|
|
24850
25212
|
async handleFocusOut(event) {
|
|
24851
|
-
if (event.relatedTarget && !event.relatedTarget.closest(
|
|
25213
|
+
if (event.relatedTarget && !event.relatedTarget.closest(KolTreeTag)) {
|
|
24852
25214
|
await this.ensureActiveItemVisibility();
|
|
24853
25215
|
}
|
|
24854
25216
|
}
|
|
24855
25217
|
async ensureActiveItemVisibility() {
|
|
24856
25218
|
const findActiveItem = () => {
|
|
24857
|
-
var _a;
|
|
24858
|
-
const rootNodes = ((_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedNodes()).filter(KolTreeWc.isTreeItem);
|
|
25219
|
+
var _a, _b, _c, _d;
|
|
25220
|
+
const rootNodes = (_d = (_c = (_b = (_a = this.host.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedNodes) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.filter(KolTreeWc.isTreeItem)) !== null && _d !== void 0 ? _d : [];
|
|
24859
25221
|
for (const rootNode of rootNodes) {
|
|
24860
25222
|
if (rootNode._active) {
|
|
24861
25223
|
return rootNode;
|
|
24862
25224
|
}
|
|
24863
|
-
const childMatch = rootNode.querySelector(
|
|
25225
|
+
const childMatch = rootNode.querySelector(`${KolTreeItemTag}[_active="true"]`);
|
|
24864
25226
|
if (childMatch && childMatch._active) {
|
|
24865
25227
|
return childMatch;
|
|
24866
25228
|
}
|
|
@@ -24906,7 +25268,7 @@ class KolVersion {
|
|
|
24906
25268
|
};
|
|
24907
25269
|
}
|
|
24908
25270
|
render() {
|
|
24909
|
-
return (hAsync(Host, { key: '
|
|
25271
|
+
return (hAsync(Host, { key: '51981d335a1e807d075a5547cb3f1e52b9ce80cc', class: "kol-version" }, hAsync(KolBadgeTag, { key: 'f2441045e818b8da85adad32303a1a9a289c26c3', _color: "#bec5c9", _icons: {
|
|
24910
25272
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
24911
25273
|
}, _label: this.state._label })));
|
|
24912
25274
|
}
|
|
@@ -24954,6 +25316,7 @@ registerComponents([
|
|
|
24954
25316
|
KolCard,
|
|
24955
25317
|
KolCombobox,
|
|
24956
25318
|
KolDetails,
|
|
25319
|
+
KolDrawer,
|
|
24957
25320
|
KolForm,
|
|
24958
25321
|
KolHeading,
|
|
24959
25322
|
KolHeadingWc,
|