@public-ui/hydrate 4.0.0-alpha.9 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +725 -578
- package/dist/index.mjs +725 -578
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -144,7 +144,7 @@ function _mergeNamespaces(n, m) {
|
|
|
144
144
|
|
|
145
145
|
const NAMESPACE = 'kolibri';
|
|
146
146
|
const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
147
|
-
const Env = /* kolibri */ {"kolibriVersion":"4.0.0-
|
|
147
|
+
const Env = /* kolibri */ {"kolibriVersion":"4.0.0-beta.1"};
|
|
148
148
|
|
|
149
149
|
function getDefaultExportFromCjs (x) {
|
|
150
150
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -574,47 +574,48 @@ var TagEnum;
|
|
|
574
574
|
TagEnum[TagEnum["card"] = 8] = "card";
|
|
575
575
|
TagEnum[TagEnum["combobox"] = 9] = "combobox";
|
|
576
576
|
TagEnum[TagEnum["details"] = 10] = "details";
|
|
577
|
-
TagEnum[TagEnum["
|
|
578
|
-
TagEnum[TagEnum["
|
|
579
|
-
TagEnum[TagEnum["
|
|
580
|
-
TagEnum[TagEnum["
|
|
581
|
-
TagEnum[TagEnum["
|
|
582
|
-
TagEnum[TagEnum["
|
|
583
|
-
TagEnum[TagEnum["input-
|
|
584
|
-
TagEnum[TagEnum["input-
|
|
585
|
-
TagEnum[TagEnum["input-
|
|
586
|
-
TagEnum[TagEnum["input-
|
|
587
|
-
TagEnum[TagEnum["input-
|
|
588
|
-
TagEnum[TagEnum["input-
|
|
589
|
-
TagEnum[TagEnum["input-
|
|
590
|
-
TagEnum[TagEnum["input-
|
|
591
|
-
TagEnum[TagEnum["input-
|
|
592
|
-
TagEnum[TagEnum["
|
|
593
|
-
TagEnum[TagEnum["
|
|
594
|
-
TagEnum[TagEnum["link
|
|
595
|
-
TagEnum[TagEnum["
|
|
596
|
-
TagEnum[TagEnum["
|
|
597
|
-
TagEnum[TagEnum["
|
|
598
|
-
TagEnum[TagEnum["
|
|
599
|
-
TagEnum[TagEnum["
|
|
600
|
-
TagEnum[TagEnum["
|
|
601
|
-
TagEnum[TagEnum["
|
|
602
|
-
TagEnum[TagEnum["
|
|
603
|
-
TagEnum[TagEnum["
|
|
604
|
-
TagEnum[TagEnum["
|
|
605
|
-
TagEnum[TagEnum["
|
|
606
|
-
TagEnum[TagEnum["
|
|
607
|
-
TagEnum[TagEnum["
|
|
608
|
-
TagEnum[TagEnum["
|
|
609
|
-
TagEnum[TagEnum["table
|
|
610
|
-
TagEnum[TagEnum["table-
|
|
611
|
-
TagEnum[TagEnum["
|
|
612
|
-
TagEnum[TagEnum["
|
|
613
|
-
TagEnum[TagEnum["
|
|
614
|
-
TagEnum[TagEnum["
|
|
615
|
-
TagEnum[TagEnum["
|
|
616
|
-
TagEnum[TagEnum["
|
|
617
|
-
TagEnum[TagEnum["tree
|
|
577
|
+
TagEnum[TagEnum["dialog"] = 11] = "dialog";
|
|
578
|
+
TagEnum[TagEnum["drawer"] = 12] = "drawer";
|
|
579
|
+
TagEnum[TagEnum["form"] = 13] = "form";
|
|
580
|
+
TagEnum[TagEnum["heading"] = 14] = "heading";
|
|
581
|
+
TagEnum[TagEnum["icon"] = 15] = "icon";
|
|
582
|
+
TagEnum[TagEnum["image"] = 16] = "image";
|
|
583
|
+
TagEnum[TagEnum["input-checkbox"] = 17] = "input-checkbox";
|
|
584
|
+
TagEnum[TagEnum["input-color"] = 18] = "input-color";
|
|
585
|
+
TagEnum[TagEnum["input-date"] = 19] = "input-date";
|
|
586
|
+
TagEnum[TagEnum["input-email"] = 20] = "input-email";
|
|
587
|
+
TagEnum[TagEnum["input-file"] = 21] = "input-file";
|
|
588
|
+
TagEnum[TagEnum["input-number"] = 22] = "input-number";
|
|
589
|
+
TagEnum[TagEnum["input-password"] = 23] = "input-password";
|
|
590
|
+
TagEnum[TagEnum["input-radio"] = 24] = "input-radio";
|
|
591
|
+
TagEnum[TagEnum["input-range"] = 25] = "input-range";
|
|
592
|
+
TagEnum[TagEnum["input-text"] = 26] = "input-text";
|
|
593
|
+
TagEnum[TagEnum["kolibri"] = 27] = "kolibri";
|
|
594
|
+
TagEnum[TagEnum["link"] = 28] = "link";
|
|
595
|
+
TagEnum[TagEnum["link-button"] = 29] = "link-button";
|
|
596
|
+
TagEnum[TagEnum["logo"] = 30] = "logo";
|
|
597
|
+
TagEnum[TagEnum["modal"] = 31] = "modal";
|
|
598
|
+
TagEnum[TagEnum["nav"] = 32] = "nav";
|
|
599
|
+
TagEnum[TagEnum["pagination"] = 33] = "pagination";
|
|
600
|
+
TagEnum[TagEnum["popover-button"] = 34] = "popover-button";
|
|
601
|
+
TagEnum[TagEnum["progress"] = 35] = "progress";
|
|
602
|
+
TagEnum[TagEnum["quote"] = 36] = "quote";
|
|
603
|
+
TagEnum[TagEnum["select"] = 37] = "select";
|
|
604
|
+
TagEnum[TagEnum["single-select"] = 38] = "single-select";
|
|
605
|
+
TagEnum[TagEnum["skip-nav"] = 39] = "skip-nav";
|
|
606
|
+
TagEnum[TagEnum["spin"] = 40] = "spin";
|
|
607
|
+
TagEnum[TagEnum["split-button"] = 41] = "split-button";
|
|
608
|
+
TagEnum[TagEnum["symbol"] = 42] = "symbol";
|
|
609
|
+
TagEnum[TagEnum["table"] = 43] = "table";
|
|
610
|
+
TagEnum[TagEnum["table-stateful"] = 44] = "table-stateful";
|
|
611
|
+
TagEnum[TagEnum["table-stateless"] = 45] = "table-stateless";
|
|
612
|
+
TagEnum[TagEnum["tabs"] = 46] = "tabs";
|
|
613
|
+
TagEnum[TagEnum["textarea"] = 47] = "textarea";
|
|
614
|
+
TagEnum[TagEnum["toast-container"] = 48] = "toast-container";
|
|
615
|
+
TagEnum[TagEnum["toolbar"] = 49] = "toolbar";
|
|
616
|
+
TagEnum[TagEnum["tooltip"] = 50] = "tooltip";
|
|
617
|
+
TagEnum[TagEnum["tree"] = 51] = "tree";
|
|
618
|
+
TagEnum[TagEnum["tree-item"] = 52] = "tree-item";
|
|
618
619
|
})(TagEnum || (TagEnum = {}));
|
|
619
620
|
|
|
620
621
|
const getWindow$1 = () => {
|
|
@@ -2338,13 +2339,13 @@ const validateIcons = (component, value, options = {}) => {
|
|
|
2338
2339
|
isString$2(value, 1) ||
|
|
2339
2340
|
(typeof value === 'object' &&
|
|
2340
2341
|
value !== null &&
|
|
2341
|
-
(isString$2(value.left,
|
|
2342
|
+
(isString$2(value.left, 0) ||
|
|
2342
2343
|
isIcon(value.left) ||
|
|
2343
|
-
isString$2(value.right,
|
|
2344
|
+
isString$2(value.right, 0) ||
|
|
2344
2345
|
isIcon(value.right) ||
|
|
2345
|
-
isString$2(value.top,
|
|
2346
|
+
isString$2(value.top, 0) ||
|
|
2346
2347
|
isIcon(value.top) ||
|
|
2347
|
-
isString$2(value.bottom,
|
|
2348
|
+
isString$2(value.bottom, 0) ||
|
|
2348
2349
|
isIcon(value.bottom))));
|
|
2349
2350
|
}, new Set(['KoliBriIcon']), value, Object.assign(Object.assign({}, options), { defaultValue: {}, hooks: {
|
|
2350
2351
|
afterPatch: (_a = options.hooks) === null || _a === void 0 ? void 0 : _a.afterPatch,
|
|
@@ -2482,14 +2483,8 @@ const validateMsg = (component, value) => {
|
|
|
2482
2483
|
}, new Set(['MsgPropType', 'string']), value);
|
|
2483
2484
|
});
|
|
2484
2485
|
};
|
|
2485
|
-
function
|
|
2486
|
-
|
|
2487
|
-
if (!msg) {
|
|
2488
|
-
return false;
|
|
2489
|
-
}
|
|
2490
|
-
const type = typeof msg === 'string' ? 'error' : ((_a = msg._type) !== null && _a !== void 0 ? _a : 'error');
|
|
2491
|
-
const showMsg = touched === true || type !== 'error';
|
|
2492
|
-
return showMsg;
|
|
2486
|
+
function isMsgDefinedAndInputTouched(msg, touched) {
|
|
2487
|
+
return Boolean(msg) && touched === true;
|
|
2493
2488
|
}
|
|
2494
2489
|
function normalizeMsg(msg) {
|
|
2495
2490
|
if (typeof msg === 'string') {
|
|
@@ -2505,6 +2500,13 @@ function normalizeMsg(msg) {
|
|
|
2505
2500
|
}
|
|
2506
2501
|
return msg;
|
|
2507
2502
|
}
|
|
2503
|
+
function getMsgType(msg) {
|
|
2504
|
+
var _a;
|
|
2505
|
+
if (typeof msg === 'string') {
|
|
2506
|
+
return 'error';
|
|
2507
|
+
}
|
|
2508
|
+
return (_a = msg === null || msg === void 0 ? void 0 : msg._type) !== null && _a !== void 0 ? _a : 'error';
|
|
2509
|
+
}
|
|
2508
2510
|
|
|
2509
2511
|
const validateMultiple = (component, value, options) => {
|
|
2510
2512
|
watchBoolean(component, '_multiple', value, options);
|
|
@@ -2621,7 +2623,7 @@ const validateTabIndex = (component, value) => {
|
|
|
2621
2623
|
};
|
|
2622
2624
|
|
|
2623
2625
|
const validateTableCallbacks = (component, value) => {
|
|
2624
|
-
watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange}']), value);
|
|
2626
|
+
watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange, Events.onChangeHeaderCells}']), value);
|
|
2625
2627
|
};
|
|
2626
2628
|
const validateTableStatefulCallbacks = (component, value) => {
|
|
2627
2629
|
watchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']), value);
|
|
@@ -6067,6 +6069,7 @@ let KolBadgeTag = 'kol-badge';
|
|
|
6067
6069
|
let KolButtonTag = 'kol-button';
|
|
6068
6070
|
let KolButtonWcTag = 'kol-button-wc';
|
|
6069
6071
|
let KolCardWcTag = 'kol-card-wc';
|
|
6072
|
+
let KolDialogWcTag = 'kol-dialog-wc';
|
|
6070
6073
|
let KolFormTag = 'kol-form';
|
|
6071
6074
|
let KolHeadingTag = 'kol-heading';
|
|
6072
6075
|
let KolIconTag = 'kol-icon';
|
|
@@ -6077,7 +6080,7 @@ let KolLinkWcTag = 'kol-link-wc';
|
|
|
6077
6080
|
let KolPaginationWcTag = 'kol-pagination-wc';
|
|
6078
6081
|
let KolPopoverWcTag = 'kol-popover-wc';
|
|
6079
6082
|
let KolPopoverButtonWcTag = 'kol-popover-button-wc';
|
|
6080
|
-
let
|
|
6083
|
+
let KolSelectWcTag = 'kol-select-wc';
|
|
6081
6084
|
let KolTableSettingsWcTag = 'kol-table-settings-wc';
|
|
6082
6085
|
let KolTableStatelessWcTag = 'kol-table-stateless-wc';
|
|
6083
6086
|
let KolTooltipWcTag = 'kol-tooltip-wc';
|
|
@@ -6086,7 +6089,7 @@ let KolTreeItemWcTag = 'kol-tree-item-wc';
|
|
|
6086
6089
|
let KolTreeTag = 'kol-tree';
|
|
6087
6090
|
let KolTreeWcTag = 'kol-tree-wc';
|
|
6088
6091
|
|
|
6089
|
-
const defaultStyleCss$
|
|
6092
|
+
const defaultStyleCss$N = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}";
|
|
6090
6093
|
|
|
6091
6094
|
class KolAbbr {
|
|
6092
6095
|
constructor(hostRef) {
|
|
@@ -6108,7 +6111,7 @@ class KolAbbr {
|
|
|
6108
6111
|
"_label": ["validateLabel"]
|
|
6109
6112
|
}; }
|
|
6110
6113
|
static get style() { return {
|
|
6111
|
-
default: defaultStyleCss$
|
|
6114
|
+
default: defaultStyleCss$N
|
|
6112
6115
|
}; }
|
|
6113
6116
|
static get cmpMeta() { return {
|
|
6114
6117
|
"$flags$": 297,
|
|
@@ -6189,11 +6192,11 @@ const KolHeadingFc = (_a, children) => {
|
|
|
6189
6192
|
|
|
6190
6193
|
const KolCollapsibleFc = (props, children) => {
|
|
6191
6194
|
const { id, class: classNames, label, level = 1, disabled, open, onClick, HeadingProps = {}, HeadingButtonProps = {}, ContentProps = {} } = props, other = __rest(props, ["id", "class", "label", "level", "disabled", "open", "onClick", "HeadingProps", "HeadingButtonProps", "ContentProps"]);
|
|
6192
|
-
const icon = open ? '
|
|
6195
|
+
const icon = open ? 'kolicon-chevron-down' : 'kolicon-chevron-right';
|
|
6193
6196
|
return (hAsync("div", Object.assign({ id: id, class: clsx('collapsible', {
|
|
6194
6197
|
'collapsible--disabled': disabled === true,
|
|
6195
6198
|
'collapsible--open': open === true,
|
|
6196
|
-
}, classNames) }, other), hAsync(KolHeadingFc, { ref: HeadingProps === null || HeadingProps === void 0 ? void 0 : HeadingProps.ref, level: level, class: clsx('collapsible__heading', HeadingProps === null || HeadingProps === void 0 ? void 0 : HeadingProps.class) }, hAsync(KolButtonWcTag, { class: clsx('collapsible__heading-button', HeadingButtonProps === null || HeadingButtonProps === void 0 ? void 0 : HeadingButtonProps.class), ref: HeadingButtonProps === null || HeadingButtonProps === void 0 ? void 0 : HeadingButtonProps.ref, slot: "expert", _ariaControls: `${id}-control`, _ariaExpanded: open, _disabled: disabled, _icons: (HeadingButtonProps === null || HeadingButtonProps === void 0 ? void 0 : HeadingButtonProps._icons) ||
|
|
6199
|
+
}, classNames) }, other), hAsync(KolHeadingFc, { ref: HeadingProps === null || HeadingProps === void 0 ? void 0 : HeadingProps.ref, level: level, class: clsx('collapsible__heading', HeadingProps === null || HeadingProps === void 0 ? void 0 : HeadingProps.class) }, hAsync(KolButtonWcTag, { class: clsx('collapsible__heading-button', HeadingButtonProps === null || HeadingButtonProps === void 0 ? void 0 : HeadingButtonProps.class), ref: HeadingButtonProps === null || HeadingButtonProps === void 0 ? void 0 : HeadingButtonProps.ref, slot: "expert", _ariaControls: `${id}-control`, _ariaExpanded: open, _disabled: disabled, _icons: (HeadingButtonProps === null || HeadingButtonProps === void 0 ? void 0 : HeadingButtonProps._icons) || `${icon}`, _label: label, _on: { onClick } })), hAsync("div", { class: clsx('collapsible__wrapper', ContentProps === null || ContentProps === void 0 ? void 0 : ContentProps.wrapperClass) }, hAsync("div", { class: clsx('collapsible__wrapper-animation', ContentProps === null || ContentProps === void 0 ? void 0 : ContentProps.animationClass) }, hAsync("div", { "aria-hidden": open === false ? 'true' : undefined, class: clsx('collapsible__content', ContentProps === null || ContentProps === void 0 ? void 0 : ContentProps.class), id: `${id}-control` }, children)))));
|
|
6197
6200
|
};
|
|
6198
6201
|
|
|
6199
6202
|
const initMeta = () => {
|
|
@@ -6262,6 +6265,7 @@ var KolEvent;
|
|
|
6262
6265
|
(function (KolEvent) {
|
|
6263
6266
|
KolEvent["blur"] = "kolBlur";
|
|
6264
6267
|
KolEvent["change"] = "kolChange";
|
|
6268
|
+
KolEvent["changeHeaderCells"] = "changeHeaderCells";
|
|
6265
6269
|
KolEvent["changePage"] = "kolChangePage";
|
|
6266
6270
|
KolEvent["changePageSize"] = "kolChangePageSize";
|
|
6267
6271
|
KolEvent["click"] = "kolClick";
|
|
@@ -6274,7 +6278,6 @@ var KolEvent;
|
|
|
6274
6278
|
KolEvent["reset"] = "kolReset";
|
|
6275
6279
|
KolEvent["select"] = "kolSelect";
|
|
6276
6280
|
KolEvent["selectionChange"] = "kolSelectionChange";
|
|
6277
|
-
KolEvent["settingsChange"] = "settingsChange";
|
|
6278
6281
|
KolEvent["sort"] = "kolSort";
|
|
6279
6282
|
KolEvent["submit"] = "kolSubmit";
|
|
6280
6283
|
KolEvent["toggle"] = "kolToggle";
|
|
@@ -6295,7 +6298,7 @@ const watchHeadingLevel = (component, value) => {
|
|
|
6295
6298
|
validateLevel(component, value);
|
|
6296
6299
|
};
|
|
6297
6300
|
|
|
6298
|
-
const defaultStyleCss$
|
|
6301
|
+
const defaultStyleCss$M = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\n@layer kol-component {\n @media (prefers-reduced-motion) {\n .collapsible__wrapper-animation, .collapsible__wrapper {\n transition-duration: 0s;\n }\n }\n .collapsible {\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\n }\n @media print {\n :not(.collapsible--open) .collapsible__wrapper-animation {\n display: none;\n }\n }\n .collapsible__wrapper {\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\n transform: translateZ(0);\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.3s;\n }\n .collapsible__wrapper-animation {\n opacity: 0;\n transform: scaleY(0);\n transform-origin: top;\n min-height: 0;\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\n visibility: hidden;\n transition: transform 0.3s, opacity 0.3s, visibility 0.3s;\n }\n .collapsible--open .collapsible__wrapper {\n grid-template-rows: 1fr;\n }\n .collapsible--open .collapsible__wrapper-animation {\n opacity: 1;\n transform: scaleY(1);\n visibility: visible;\n }\n .collapsible {\n /*\n * Inside a button, the caption text is always centered.\n * So we have to align the text to the left.\n */\n }\n .collapsible__heading-button button .kol-span {\n align-items: flex-start;\n }\n .collapsible--open:focus-within {\n position: relative;\n z-index: 100;\n }\n}";
|
|
6299
6302
|
|
|
6300
6303
|
featureHint(`[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.
|
|
6301
6304
|
|
|
@@ -6329,9 +6332,9 @@ class KolAccordion {
|
|
|
6329
6332
|
_on: {},
|
|
6330
6333
|
};
|
|
6331
6334
|
}
|
|
6332
|
-
async
|
|
6335
|
+
async focus() {
|
|
6333
6336
|
var _a;
|
|
6334
|
-
|
|
6337
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
6335
6338
|
}
|
|
6336
6339
|
render() {
|
|
6337
6340
|
const { _open, _label, _disabled, _level } = this.state;
|
|
@@ -6355,7 +6358,7 @@ class KolAccordion {
|
|
|
6355
6358
|
animationClass: `${rootClass}__wrapper-animation`,
|
|
6356
6359
|
},
|
|
6357
6360
|
};
|
|
6358
|
-
return (hAsync(KolCollapsibleFc, Object.assign({ key: '
|
|
6361
|
+
return (hAsync(KolCollapsibleFc, Object.assign({ key: '033717b5a67b6f63ebea447be031a9c234339e43' }, props), hAsync("slot", { key: '08b68dbec91743fdfabdee75a07a451713951dc6' })));
|
|
6359
6362
|
}
|
|
6360
6363
|
validateDisabled(value) {
|
|
6361
6364
|
validateDisabled(this, value);
|
|
@@ -6390,7 +6393,7 @@ class KolAccordion {
|
|
|
6390
6393
|
"_open": ["validateOpen"]
|
|
6391
6394
|
}; }
|
|
6392
6395
|
static get style() { return {
|
|
6393
|
-
default: defaultStyleCss$
|
|
6396
|
+
default: defaultStyleCss$M
|
|
6394
6397
|
}; }
|
|
6395
6398
|
static get cmpMeta() { return {
|
|
6396
6399
|
"$flags$": 297,
|
|
@@ -6402,7 +6405,7 @@ class KolAccordion {
|
|
|
6402
6405
|
"_on": [16],
|
|
6403
6406
|
"_open": [1540],
|
|
6404
6407
|
"state": [32],
|
|
6405
|
-
"
|
|
6408
|
+
"focus": [64]
|
|
6406
6409
|
},
|
|
6407
6410
|
"$listeners$": undefined,
|
|
6408
6411
|
"$lazyBundleId$": "-",
|
|
@@ -6410,7 +6413,7 @@ class KolAccordion {
|
|
|
6410
6413
|
}; }
|
|
6411
6414
|
}
|
|
6412
6415
|
|
|
6413
|
-
const defaultStyleCss$
|
|
6416
|
+
const defaultStyleCss$L = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
6414
6417
|
|
|
6415
6418
|
class KolAlert {
|
|
6416
6419
|
constructor(hostRef) {
|
|
@@ -6428,7 +6431,7 @@ class KolAlert {
|
|
|
6428
6431
|
return (hAsync(KolAlertWcTag, { key: 'bf51c76e2d6568eea0d1a0c3047da6987aa249d8', _alert: this._alert, _hasCloser: this._hasCloser, _label: this._label, _level: this._level, _on: this._on, _type: this._type, _variant: this._variant }, hAsync("slot", { key: 'b754666af76f0fcbb15ffeaa4d11b2f61d93abc4' })));
|
|
6429
6432
|
}
|
|
6430
6433
|
static get style() { return {
|
|
6431
|
-
default: defaultStyleCss$
|
|
6434
|
+
default: defaultStyleCss$L
|
|
6432
6435
|
}; }
|
|
6433
6436
|
static get cmpMeta() { return {
|
|
6434
6437
|
"$flags$": 297,
|
|
@@ -6471,7 +6474,7 @@ var locale_de = {
|
|
|
6471
6474
|
page: 'Seite',
|
|
6472
6475
|
'page-current': 'Seite {{page}}',
|
|
6473
6476
|
'page-selected': 'Seite {{page}} ist ausgewählt',
|
|
6474
|
-
'page-per-site': '
|
|
6477
|
+
'page-per-site': 'Einträge pro Seite',
|
|
6475
6478
|
'nav-maximize': 'Navigation maximieren',
|
|
6476
6479
|
'nav-minimize': 'Navigation minimieren',
|
|
6477
6480
|
'logo-description': 'Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}',
|
|
@@ -6543,7 +6546,7 @@ var locale_en = {
|
|
|
6543
6546
|
page: 'Page',
|
|
6544
6547
|
'page-current': 'Page {{page}}',
|
|
6545
6548
|
'page-selected': 'Page {{page}} is selected',
|
|
6546
|
-
'page-per-site': '
|
|
6549
|
+
'page-per-site': 'Entries per page',
|
|
6547
6550
|
'nav-maximize': 'Maximize navigation',
|
|
6548
6551
|
'nav-minimize': 'Minimize navigation',
|
|
6549
6552
|
'logo-description': 'Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}',
|
|
@@ -6751,15 +6754,15 @@ const Icon = ({ ariaLabel, icon }) => {
|
|
|
6751
6754
|
const AlertIcon = ({ type, label }) => {
|
|
6752
6755
|
switch (type) {
|
|
6753
6756
|
case 'error':
|
|
6754
|
-
return hAsync(Icon, { ariaLabel: translateError, icon: "
|
|
6757
|
+
return hAsync(Icon, { ariaLabel: translateError, icon: "kolicon-alert-error", label: label });
|
|
6755
6758
|
case 'info':
|
|
6756
|
-
return hAsync(Icon, { ariaLabel: translateInfo, icon: "
|
|
6759
|
+
return hAsync(Icon, { ariaLabel: translateInfo, icon: "kolicon-alert-info", label: label });
|
|
6757
6760
|
case 'warning':
|
|
6758
|
-
return hAsync(Icon, { ariaLabel: translateWarning, icon: "
|
|
6761
|
+
return hAsync(Icon, { ariaLabel: translateWarning, icon: "kolicon-alert-warning", label: label });
|
|
6759
6762
|
case 'success':
|
|
6760
|
-
return hAsync(Icon, { ariaLabel: translateSuccess, icon: "
|
|
6763
|
+
return hAsync(Icon, { ariaLabel: translateSuccess, icon: "kolicon-alert-success", label: label });
|
|
6761
6764
|
default:
|
|
6762
|
-
return hAsync(Icon, { ariaLabel: translateMessage, icon: "
|
|
6765
|
+
return hAsync(Icon, { ariaLabel: translateMessage, icon: "kolicon-alert-info", label: label });
|
|
6763
6766
|
}
|
|
6764
6767
|
};
|
|
6765
6768
|
|
|
@@ -6801,7 +6804,7 @@ const KolAlertFc = (props, children) => {
|
|
|
6801
6804
|
const rootProps = Object.assign({ class: clsx(classNames, BEM_CLASS_ROOT) }, other);
|
|
6802
6805
|
return (hAsync("div", Object.assign({ role: alert ? 'alert' : undefined }, rootProps, { "data-testid": "alert" }), hAsync("div", { class: "kol-alert__container" }, hAsync(AlertIcon, { label: label, type: type }), hAsync("div", { class: "kol-alert__container-content" }, label && (hAsync(KolHeadingFc, { class: BEM_CLASS__HEADING, level: level, id: "heading" }, label)), variant === 'msg' && (hAsync("span", { class: BEM_CLASS_ALERT__CONTENT, "aria-describedby": label ? 'heading' : undefined }, children))), hasCloser && (hAsync(KolButtonWcTag, { class: BEM_CLASS_ALERT__CLOSER, "data-testid": "alert-close-button", _ariaDescription: (label === null || label === void 0 ? void 0 : label.trim()) || '', _hideLabel: true, _icons: {
|
|
6803
6806
|
left: {
|
|
6804
|
-
icon: '
|
|
6807
|
+
icon: 'kolicon-cross',
|
|
6805
6808
|
},
|
|
6806
6809
|
}, _label: translateCloseAlert, _on: { onClick: onCloserClick }, _tooltipAlign: "left" }))), variant === 'card' && (hAsync("div", { class: BEM_CLASS_ALERT__CONTENT, "aria-describedby": label ? 'heading' : undefined }, children))));
|
|
6807
6810
|
};
|
|
@@ -6906,7 +6909,7 @@ class KolAlertWc {
|
|
|
6906
6909
|
}; }
|
|
6907
6910
|
}
|
|
6908
6911
|
|
|
6909
|
-
const defaultStyleCss$
|
|
6912
|
+
const defaultStyleCss$K = "/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-avatar,\n .kol-avatar__image,\n .kol-avatar__initials {\n border-radius: 50%;\n }\n .kol-avatar {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n width: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-avatar__image, .kol-avatar__initials {\n width: 100%;\n height: 100%;\n }\n .kol-avatar__initials {\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: calc(40 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
6910
6913
|
|
|
6911
6914
|
class KolAvatar {
|
|
6912
6915
|
constructor(hostRef) {
|
|
@@ -6917,7 +6920,7 @@ class KolAvatar {
|
|
|
6917
6920
|
return hAsync(KolAvatarWcTag, { key: 'b50d593f2fcc07fb3a1c8a92786df6ddcbc917cf', _color: this._color, _src: this._src, _label: this._label });
|
|
6918
6921
|
}
|
|
6919
6922
|
static get style() { return {
|
|
6920
|
-
default: defaultStyleCss$
|
|
6923
|
+
default: defaultStyleCss$K
|
|
6921
6924
|
}; }
|
|
6922
6925
|
static get cmpMeta() { return {
|
|
6923
6926
|
"$flags$": 297,
|
|
@@ -9490,16 +9493,14 @@ const InputContainer$1 = (_a, children) => {
|
|
|
9490
9493
|
return (hAsync("div", Object.assign({ class: clsx('kol-form-field__input', classNames) }, other), children));
|
|
9491
9494
|
};
|
|
9492
9495
|
const KolFormFieldFc = (props, children) => {
|
|
9493
|
-
var _a;
|
|
9494
9496
|
const { component: Component = 'div', renderNoLabel, renderNoTooltip, renderNoHint, anotherChildren, id, required, alert, disabled, class: classNames, msg, hideMsg, hideLabel, label, hint, accessKey, shortKey, tooltipAlign, counter, readOnly, touched, maxLength, ariaDescribedBy, formFieldLabelProps, formFieldHintProps, formFieldTooltipProps, formFieldMsgProps, formFieldInputProps } = props, other = __rest(props, ["component", "renderNoLabel", "renderNoTooltip", "renderNoHint", "anotherChildren", "id", "required", "alert", "disabled", "class", "msg", "hideMsg", "hideLabel", "label", "hint", "accessKey", "shortKey", "tooltipAlign", "counter", "readOnly", "touched", "maxLength", "ariaDescribedBy", "formFieldLabelProps", "formFieldHintProps", "formFieldTooltipProps", "formFieldMsgProps", "formFieldInputProps"]);
|
|
9495
9497
|
const showLabel = !renderNoLabel;
|
|
9496
9498
|
const showHint = !renderNoHint;
|
|
9497
9499
|
const showTooltip = !renderNoTooltip;
|
|
9498
9500
|
const hasExpertSlot = showExpertSlot(label);
|
|
9499
|
-
const showMsg =
|
|
9501
|
+
const showMsg = isMsgDefinedAndInputTouched(msg, touched);
|
|
9500
9502
|
const badgeText = buildBadgeTextString(accessKey, shortKey);
|
|
9501
9503
|
const useTooltipInsteadOfLabel = showTooltip && !hasExpertSlot && hideLabel;
|
|
9502
|
-
const msgType = typeof msg === 'string' ? 'error' : ((_a = msg === null || msg === void 0 ? void 0 : msg._type) !== null && _a !== void 0 ? _a : 'error');
|
|
9503
9504
|
let stateCssClasses = {
|
|
9504
9505
|
['kol-form-field--disabled']: Boolean(disabled),
|
|
9505
9506
|
['kol-form-field--required']: Boolean(required),
|
|
@@ -9509,7 +9510,8 @@ const KolFormFieldFc = (props, children) => {
|
|
|
9509
9510
|
['kol-form-field--hidden-msg']: Boolean(hideMsg),
|
|
9510
9511
|
};
|
|
9511
9512
|
if (showMsg) {
|
|
9512
|
-
|
|
9513
|
+
const msgType = getMsgType(msg);
|
|
9514
|
+
stateCssClasses = Object.assign(Object.assign({}, stateCssClasses), { [`kol-form-field--${msgType}`]: true, [`kol-form-field--${getModifierClassNameByMsgType({ type: msgType })}`]: true });
|
|
9513
9515
|
}
|
|
9514
9516
|
return (hAsync(Component, Object.assign({ class: clsx('kol-form-field', stateCssClasses, classNames), "aria-describedby": ariaDescribedBy }, other), showLabel && (hAsync(KolFormFieldLabelFc, Object.assign({}, (formFieldLabelProps || {}), { id: id, hasExpertSlot: hasExpertSlot, hideLabel: hideLabel, label: label, accessKey: accessKey, shortKey: shortKey, readOnly: readOnly }))), hAsync(InputContainer$1, Object.assign({}, formFieldInputProps), children, useTooltipInsteadOfLabel && hideLabel === true && (hAsync(FormFieldTooltipFc, Object.assign({}, (formFieldTooltipProps || {}), { id: id, label: label, align: tooltipAlign, badgeText: badgeText })))), counter ? hAsync(KolFormFieldCounterFc, Object.assign({ id: id }, counter)) : null, maxLength ? hAsync(KolFormFieldCharacterLimitHintFc, { id: id, maxLength: maxLength }) : null, showMsg && !hideMsg && hAsync(FormFieldMsgFc, Object.assign({}, (formFieldMsgProps || {}), { id: id, alert: alert, msg: msg })), showHint && hAsync(KolFormFieldHintFc, Object.assign({}, (formFieldHintProps || {}), { id: id, hint: hint })), anotherChildren));
|
|
9515
9517
|
};
|
|
@@ -9538,11 +9540,9 @@ const Container = (_a, children) => {
|
|
|
9538
9540
|
};
|
|
9539
9541
|
const KolInputContainerFc = (props, children) => {
|
|
9540
9542
|
const { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps } = props, other = __rest(props, ["class", "startAdornment", "endAdornment", "disabled", "msg", "touched", "containerProps", "startAdornmentProps", "endAdornmentProps"]);
|
|
9541
|
-
const showMsg = checkHasMsg(msg, touched);
|
|
9542
|
-
const msgType = typeof msg === 'string' ? 'error' : msg === null || msg === void 0 ? void 0 : msg._type;
|
|
9543
9543
|
const stateCssClasses = {
|
|
9544
9544
|
['kol-input-container--disabled']: disabled,
|
|
9545
|
-
[`kol-input-container--${
|
|
9545
|
+
[`kol-input-container--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),
|
|
9546
9546
|
};
|
|
9547
9547
|
const baseProps = Object.assign({ class: clsx('kol-input-container', stateCssClasses, classNames) }, other);
|
|
9548
9548
|
if (!hasItems(startAdornment) && !hasItems(endAdornment)) {
|
|
@@ -9563,14 +9563,12 @@ function getDefaultProps({ ariaDescribedBy, hideLabel, label }) {
|
|
|
9563
9563
|
|
|
9564
9564
|
const InputFc = (props) => {
|
|
9565
9565
|
const { class: classNames, msg, required, disabled, touched, readonly, ariaDescribedBy, hideLabel, label, suggestions, value } = props, other = __rest(props, ["class", "msg", "required", "disabled", "touched", "readonly", "ariaDescribedBy", "hideLabel", "label", "suggestions", "value"]);
|
|
9566
|
-
const showMsg = checkHasMsg(msg, touched);
|
|
9567
|
-
const msgType = typeof msg === 'string' ? 'error' : msg === null || msg === void 0 ? void 0 : msg._type;
|
|
9568
9566
|
const stateCssClasses = {
|
|
9569
9567
|
['kol-input--disabled']: Boolean(disabled),
|
|
9570
9568
|
['kol-input--required']: Boolean(required),
|
|
9571
9569
|
['kol-input--touched']: Boolean(touched),
|
|
9572
9570
|
['kol-input--readonly']: Boolean(readonly),
|
|
9573
|
-
[`kol-input--${
|
|
9571
|
+
[`kol-input--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),
|
|
9574
9572
|
};
|
|
9575
9573
|
const inputProps = Object.assign(Object.assign({ class: clsx('kol-input', stateCssClasses, classNames), required: required, disabled: disabled, readonly: readonly, type: 'text', list: suggestions ? `${other.id}-list` : undefined }, getDefaultProps({ ariaDescribedBy, hideLabel, label })), other);
|
|
9576
9574
|
return (hAsync(Fragment, null, hAsync("input", Object.assign({}, inputProps, { value: value })), suggestions));
|
|
@@ -9578,14 +9576,12 @@ const InputFc = (props) => {
|
|
|
9578
9576
|
|
|
9579
9577
|
const TextAreaFc = (props) => {
|
|
9580
9578
|
const { class: classNames, msg, touched, readonly, disabled, required, ariaDescribedBy, hideLabel, label } = props, other = __rest(props, ["class", "msg", "touched", "readonly", "disabled", "required", "ariaDescribedBy", "hideLabel", "label"]);
|
|
9581
|
-
const showMsg = checkHasMsg(msg, touched);
|
|
9582
|
-
const msgType = typeof msg === 'string' ? 'error' : msg === null || msg === void 0 ? void 0 : msg._type;
|
|
9583
9579
|
const stateCssClasses = {
|
|
9584
9580
|
['kol-textarea--disabled']: Boolean(disabled),
|
|
9585
9581
|
['kol-textarea--required']: Boolean(required),
|
|
9586
9582
|
['kol-textarea--touched']: Boolean(touched),
|
|
9587
9583
|
['kol-textarea--readonly']: Boolean(readonly),
|
|
9588
|
-
[`kol-textarea--${
|
|
9584
|
+
[`kol-textarea--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),
|
|
9589
9585
|
};
|
|
9590
9586
|
const inputProps = Object.assign(Object.assign({ class: clsx('kol-textarea', stateCssClasses, classNames), required: required, disabled: disabled, readonly: readonly }, getDefaultProps({ ariaDescribedBy, hideLabel, label })), other);
|
|
9591
9587
|
return hAsync("textarea", Object.assign({}, inputProps));
|
|
@@ -18565,7 +18561,7 @@ const ToastItemFc = (_a) => {
|
|
|
18565
18561
|
return (hAsync("div", { class: clsx('kol-toast-item', `kol-toast-item--${status}`) }, hAsync(KolAlertFc, { class: "kol-toast-item__alert", alert: true, label: label, level: 0, hasCloser: true, type: type, variant: variant || 'card', onCloserClick: onClose }, hAsync("div", Object.assign({}, other), description))));
|
|
18566
18562
|
};
|
|
18567
18563
|
|
|
18568
|
-
const defaultStyleCss$
|
|
18564
|
+
const defaultStyleCss$J = "/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-badge {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n }\n .kol-badge .kol-badge__smart-button .button {\n color: inherit;\n }\n}";
|
|
18569
18565
|
|
|
18570
18566
|
featureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);
|
|
18571
18567
|
class KolBadge {
|
|
@@ -18594,18 +18590,18 @@ class KolBadge {
|
|
|
18594
18590
|
renderSmartButton(props) {
|
|
18595
18591
|
return (hAsync(KolButtonWcTag, { ref: this.catchSmartButtonRef, class: "kol-badge__smart-button", _ariaControls: this.id, _ariaDescription: props._ariaDescription, _buttonVariant: props._variant, _customClass: props._customClass, _disabled: props._disabled, _hideLabel: true, _icons: props._icons, _id: props._id, _label: props._label, _on: props._on, _tooltipAlign: props._tooltipAlign }));
|
|
18596
18592
|
}
|
|
18597
|
-
async
|
|
18593
|
+
async focus() {
|
|
18598
18594
|
var _a;
|
|
18599
|
-
|
|
18595
|
+
return Promise.resolve((_a = this.smartButtonRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
18600
18596
|
}
|
|
18601
18597
|
render() {
|
|
18602
18598
|
const hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;
|
|
18603
|
-
return (hAsync("span", { key: '
|
|
18599
|
+
return (hAsync("span", { key: 'fe86a1a3e242f1ea2b439364882543151b319ea6', class: clsx('kol-badge', {
|
|
18604
18600
|
'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,
|
|
18605
18601
|
}), style: {
|
|
18606
18602
|
backgroundColor: this.bgColorStr,
|
|
18607
18603
|
color: this.colorStr,
|
|
18608
|
-
} }, hAsync(KolSpanFc, { key: '
|
|
18604
|
+
} }, hAsync(KolSpanFc, { key: '2880c59a62931e41d78381e5c5b1a81f3e27d256', class: "kol-badge__label", id: hasSmartButton ? this.id : undefined, allowMarkdown: true, icons: this.state._icons, label: this._label }), hasSmartButton && this.renderSmartButton(this.state._smartButton)));
|
|
18609
18605
|
}
|
|
18610
18606
|
validateIcons(value) {
|
|
18611
18607
|
validateIcons(this, value);
|
|
@@ -18639,7 +18635,7 @@ class KolBadge {
|
|
|
18639
18635
|
"_smartButton": ["validateSmartButton"]
|
|
18640
18636
|
}; }
|
|
18641
18637
|
static get style() { return {
|
|
18642
|
-
default: defaultStyleCss$
|
|
18638
|
+
default: defaultStyleCss$J
|
|
18643
18639
|
}; }
|
|
18644
18640
|
static get cmpMeta() { return {
|
|
18645
18641
|
"$flags$": 297,
|
|
@@ -18650,7 +18646,7 @@ class KolBadge {
|
|
|
18650
18646
|
"_label": [1],
|
|
18651
18647
|
"_smartButton": [1, "_smart-button"],
|
|
18652
18648
|
"state": [32],
|
|
18653
|
-
"
|
|
18649
|
+
"focus": [64]
|
|
18654
18650
|
},
|
|
18655
18651
|
"$listeners$": undefined,
|
|
18656
18652
|
"$lazyBundleId$": "-",
|
|
@@ -18676,14 +18672,14 @@ const watchNavLinks = (className, component, value) => {
|
|
|
18676
18672
|
uiUxHintMillerscheZahl(className, component.state._links.length);
|
|
18677
18673
|
};
|
|
18678
18674
|
|
|
18679
|
-
const defaultStyleCss$
|
|
18675
|
+
const defaultStyleCss$I = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n .kol-link:is(:focus, :hover):not([aria-disabled], [disabled]) .kol-link__text .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-link__text .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-link__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-breadcrumb__list, .kol-breadcrumb__list-element {\n display: flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n list-style: none;\n }\n .kol-breadcrumb__list-element:first-child:last-child {\n min-height: var(--a11y-min-size);\n }\n}";
|
|
18680
18676
|
|
|
18681
18677
|
class KolBreadcrumb {
|
|
18682
18678
|
constructor(hostRef) {
|
|
18683
18679
|
registerInstance(this, hostRef);
|
|
18684
18680
|
this.renderLink = (link, index) => {
|
|
18685
18681
|
const lastIndex = this.state._links.length - 1;
|
|
18686
|
-
return (hAsync("li", { class: "kol-breadcrumb__list-element", key: index }, index === lastIndex ? (hAsync("span", { class: "kol-breadcrumb__list-element-span", "aria-current": "page" }, link._hideLabel ? (hAsync(KolIconTag, { class: "kol-breadcrumb__icon", _label: link._label, _icons: typeof link._icons === 'string' ? link._icons : 'codicon codicon-symbol-event' })) : (hAsync(Fragment, null, link._label)))) : (hAsync(KolLinkWcTag, Object.assign({ class: "kol-breadcrumb__link", _inline: false }, link))), index !== lastIndex && hAsync(KolIconTag, { class: "kol-breadcrumb__separator", _label: "", _icons: "
|
|
18682
|
+
return (hAsync("li", { class: "kol-breadcrumb__list-element", key: index }, index === lastIndex ? (hAsync("span", { class: "kol-breadcrumb__list-element-span", "aria-current": "page" }, link._hideLabel ? (hAsync(KolIconTag, { class: "kol-breadcrumb__icon", _label: link._label, _icons: typeof link._icons === 'string' ? link._icons : 'codicon codicon-symbol-event' })) : (hAsync(Fragment, null, link._label)))) : (hAsync(KolLinkWcTag, Object.assign({ class: "kol-breadcrumb__link", _inline: false }, link))), index !== lastIndex && hAsync(KolIconTag, { class: "kol-breadcrumb__separator", _label: "", _icons: "kolicon-chevron-right" })));
|
|
18687
18683
|
};
|
|
18688
18684
|
this.state = {
|
|
18689
18685
|
_label: '',
|
|
@@ -18691,7 +18687,7 @@ class KolBreadcrumb {
|
|
|
18691
18687
|
};
|
|
18692
18688
|
}
|
|
18693
18689
|
render() {
|
|
18694
|
-
return (hAsync("nav", { key: '
|
|
18690
|
+
return (hAsync("nav", { key: '69dbd3034c3b7b19975d8dab92db45169ba1ffa8', class: "kol-breadcrumb", "aria-label": this.state._label }, hAsync("ul", { key: '0183c1b3850d530a0d0770a2f298f076e23296b7', class: "kol-breadcrumb__list" }, this.state._links.length === 0 && (hAsync("li", { key: 'aae370f7858a4e61f3b40dfd61ef3cb32a3024ee' }, hAsync(KolIconTag, { key: '94b7b59afaafa2878d30501e223ad7f9e43ea182', class: "kol-breadcrumb_icon", _label: "", _icons: "codicon codicon-home" }), "\u2026")), this.state._links.map(this.renderLink))));
|
|
18695
18691
|
}
|
|
18696
18692
|
validateLabel(value, _oldValue, initial = false) {
|
|
18697
18693
|
if (!initial) {
|
|
@@ -18718,7 +18714,7 @@ class KolBreadcrumb {
|
|
|
18718
18714
|
"_links": ["validateLinks"]
|
|
18719
18715
|
}; }
|
|
18720
18716
|
static get style() { return {
|
|
18721
|
-
default: defaultStyleCss$
|
|
18717
|
+
default: defaultStyleCss$I
|
|
18722
18718
|
}; }
|
|
18723
18719
|
static get cmpMeta() { return {
|
|
18724
18720
|
"$flags$": 297,
|
|
@@ -18734,7 +18730,7 @@ class KolBreadcrumb {
|
|
|
18734
18730
|
}; }
|
|
18735
18731
|
}
|
|
18736
18732
|
|
|
18737
|
-
const defaultStyleCss$
|
|
18733
|
+
const defaultStyleCss$H = "@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n}";
|
|
18738
18734
|
|
|
18739
18735
|
class KolButton {
|
|
18740
18736
|
constructor(hostRef) {
|
|
@@ -18752,15 +18748,15 @@ class KolButton {
|
|
|
18752
18748
|
async getValue() {
|
|
18753
18749
|
return this._value;
|
|
18754
18750
|
}
|
|
18755
|
-
async
|
|
18751
|
+
async focus() {
|
|
18756
18752
|
var _a;
|
|
18757
|
-
|
|
18753
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
18758
18754
|
}
|
|
18759
18755
|
render() {
|
|
18760
|
-
return (hAsync(KolButtonWcTag, { key: '
|
|
18756
|
+
return (hAsync(KolButtonWcTag, { key: 'f11e1608010be61b889bfa56beaaf4713bfd501d', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }, hAsync("slot", { key: 'f806eae7a76f2f04dc87d97054f332eb9f67da0b', name: "expert", slot: "expert" })));
|
|
18761
18757
|
}
|
|
18762
18758
|
static get style() { return {
|
|
18763
|
-
default: defaultStyleCss$
|
|
18759
|
+
default: defaultStyleCss$H
|
|
18764
18760
|
}; }
|
|
18765
18761
|
static get cmpMeta() { return {
|
|
18766
18762
|
"$flags$": 297,
|
|
@@ -18788,7 +18784,7 @@ class KolButton {
|
|
|
18788
18784
|
"_value": [8],
|
|
18789
18785
|
"_variant": [1],
|
|
18790
18786
|
"getValue": [64],
|
|
18791
|
-
"
|
|
18787
|
+
"focus": [64]
|
|
18792
18788
|
},
|
|
18793
18789
|
"$listeners$": undefined,
|
|
18794
18790
|
"$lazyBundleId$": "-",
|
|
@@ -18796,7 +18792,7 @@ class KolButton {
|
|
|
18796
18792
|
}; }
|
|
18797
18793
|
}
|
|
18798
18794
|
|
|
18799
|
-
const defaultStyleCss$
|
|
18795
|
+
const defaultStyleCss$G = "/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-button--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n .kol-button:is(:focus, :hover):not([aria-disabled], [disabled]) .kol-button__text .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-button__text .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-button__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-button--inline {\n min-width: unset;\n min-height: unset;\n }\n}";
|
|
18800
18796
|
|
|
18801
18797
|
class KolButtonLink {
|
|
18802
18798
|
constructor(hostRef) {
|
|
@@ -18813,15 +18809,15 @@ class KolButtonLink {
|
|
|
18813
18809
|
async getValue() {
|
|
18814
18810
|
return this._value;
|
|
18815
18811
|
}
|
|
18816
|
-
async
|
|
18812
|
+
async focus() {
|
|
18817
18813
|
var _a;
|
|
18818
|
-
|
|
18814
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
18819
18815
|
}
|
|
18820
18816
|
render() {
|
|
18821
|
-
return (hAsync(KolButtonWcTag, { key: '
|
|
18817
|
+
return (hAsync(KolButtonWcTag, { key: '4f24a85aab00b98b53b93aa18f9050cfd58d37c3', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { key: '4282c9c9226bc23d50f97a63477354872fa77f42', name: "expert", slot: "expert" })));
|
|
18822
18818
|
}
|
|
18823
18819
|
static get style() { return {
|
|
18824
|
-
default: defaultStyleCss$
|
|
18820
|
+
default: defaultStyleCss$G
|
|
18825
18821
|
}; }
|
|
18826
18822
|
static get cmpMeta() { return {
|
|
18827
18823
|
"$flags$": 297,
|
|
@@ -18847,7 +18843,7 @@ class KolButtonLink {
|
|
|
18847
18843
|
"_type": [1],
|
|
18848
18844
|
"_value": [8],
|
|
18849
18845
|
"getValue": [64],
|
|
18850
|
-
"
|
|
18846
|
+
"focus": [64]
|
|
18851
18847
|
},
|
|
18852
18848
|
"$listeners$": undefined,
|
|
18853
18849
|
"$lazyBundleId$": "-",
|
|
@@ -19120,9 +19116,9 @@ class AssociatedInputController {
|
|
|
19120
19116
|
}
|
|
19121
19117
|
|
|
19122
19118
|
class KolButtonWc {
|
|
19123
|
-
async
|
|
19119
|
+
async focus() {
|
|
19124
19120
|
var _a;
|
|
19125
|
-
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19121
|
+
return Promise.resolve((_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
19126
19122
|
}
|
|
19127
19123
|
render() {
|
|
19128
19124
|
var _a;
|
|
@@ -19131,14 +19127,14 @@ class KolButtonWc {
|
|
|
19131
19127
|
const badgeText = this.state._accessKey || this.state._shortKey;
|
|
19132
19128
|
const isDisabled = this.state._disabled === true;
|
|
19133
19129
|
const hideLabel = this.state._hideLabel === true;
|
|
19134
|
-
return (hAsync(Host, { key: '
|
|
19130
|
+
return (hAsync(Host, { key: '99416124052f5a18686e2ea0fc8db9e9f9066a01' }, hAsync("button", { key: '07fe0e9be0846dd5609e707000dc9b6e86bdb348', ref: (ref) => (this.buttonRef = ref), accessKey: this.state._accessKey, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-haspopup": this._ariaHasPopup, "aria-keyshortcuts": this.state._shortKey, "aria-label": hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: clsx('kol-button', {
|
|
19135
19131
|
'kol-button--disabled': isDisabled,
|
|
19136
19132
|
[`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
|
|
19137
19133
|
'kol-button--inline': this.state._inline === true,
|
|
19138
19134
|
'kol-button--standalone': this.state._inline === false,
|
|
19139
19135
|
'kol-button--hide-label': hideLabel,
|
|
19140
19136
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
19141
|
-
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: '
|
|
19137
|
+
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: 'a72dca8e86940ccc9f9525b9f726dee12f6884a3', class: "kol-button__text", badgeText: badgeText, icons: this.state._icons, hideLabel: hideLabel, label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: '2d4a2a369fc496087ce41b021e771e7e9c421adf', name: "expert", slot: "expert" }))), hideLabel && (hAsync(KolTooltipWcTag, { key: 'a6f0f7f8b41875c2a98f1125120e38c22afb8658', ref: (ref) => (this.tooltipRef = ref), "aria-hidden": "true", hidden: hasExpertSlot, class: "kol-button__tooltip", _badgeText: badgeText, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' }))));
|
|
19142
19138
|
}
|
|
19143
19139
|
constructor(hostRef) {
|
|
19144
19140
|
registerInstance(this, hostRef);
|
|
@@ -19343,7 +19339,7 @@ class KolButtonWc {
|
|
|
19343
19339
|
"_value": [8],
|
|
19344
19340
|
"_buttonVariant": [1, "_button-variant"],
|
|
19345
19341
|
"state": [32],
|
|
19346
|
-
"
|
|
19342
|
+
"focus": [64]
|
|
19347
19343
|
},
|
|
19348
19344
|
"$listeners$": undefined,
|
|
19349
19345
|
"$lazyBundleId$": "-",
|
|
@@ -19351,7 +19347,7 @@ class KolButtonWc {
|
|
|
19351
19347
|
}; }
|
|
19352
19348
|
}
|
|
19353
19349
|
|
|
19354
|
-
const defaultStyleCss$
|
|
19350
|
+
const defaultStyleCss$F = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: \"header close\" \"content content\";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n }\n .kol-card__header {\n align-self: start;\n grid-area: header;\n }\n .kol-card__content {\n align-self: stretch;\n grid-area: content;\n }\n .kol-card__close-button {\n grid-area: close;\n }\n}";
|
|
19355
19351
|
|
|
19356
19352
|
class KolCard {
|
|
19357
19353
|
constructor(hostRef) {
|
|
@@ -19363,7 +19359,7 @@ class KolCard {
|
|
|
19363
19359
|
return (hAsync(KolCardWcTag, { key: 'db950a543bc2f41a1e0786c9ac3d4cb0fce5cf97', _on: this._on, _hasCloser: this._hasCloser, _label: this._label, _level: this._level }, hAsync("slot", { key: 'f7ad1dd60427b5e2ae00f0e2260309a025d1ed44' })));
|
|
19364
19360
|
}
|
|
19365
19361
|
static get style() { return {
|
|
19366
|
-
default: defaultStyleCss$
|
|
19362
|
+
default: defaultStyleCss$F
|
|
19367
19363
|
}; }
|
|
19368
19364
|
static get cmpMeta() { return {
|
|
19369
19365
|
"$flags$": 297,
|
|
@@ -19405,9 +19401,9 @@ class KolCardWc {
|
|
|
19405
19401
|
this.validateOnValue = (value) => typeof value === 'object' && value !== null && typeof value.onClose === 'function';
|
|
19406
19402
|
}
|
|
19407
19403
|
render() {
|
|
19408
|
-
return (hAsync(Host, { key: '
|
|
19404
|
+
return (hAsync(Host, { key: 'de517413c990072e7e7faca2916c0c5243ad9495' }, hAsync("div", { key: '01f98d52d173677f5e314e2dce9425cc19cdaadc', "aria-labelledby": this.nonce, class: "kol-card", role: "group" }, hAsync(KolHeadingFc, { key: 'd2ce693140449135323ff1601af712982aae9325', class: "kol-card__header", id: this.nonce, level: this.state._level }, this.state._label), hAsync("div", { key: '155c2d42406dbb9ba02f6a29ec92f10d93b8c38d', class: "kol-card__content" }, hAsync("slot", { key: 'f3c23f1168273dbfbb515b1d83b7f087d9d019ca' })), this.state._hasCloser && (hAsync(KolButtonWcTag, { key: '7df6b94d298481022c30aae8712d8a8a9995b4e8', class: "kol-card__close-button", "data-testid": "card-close-button", _hideLabel: true, _icons: {
|
|
19409
19405
|
left: {
|
|
19410
|
-
icon: '
|
|
19406
|
+
icon: 'kolicon-cross',
|
|
19411
19407
|
},
|
|
19412
19408
|
}, _label: this.translateClose, _on: this.on, _tooltipAlign: "left" })))));
|
|
19413
19409
|
}
|
|
@@ -19459,10 +19455,9 @@ class KolCardWc {
|
|
|
19459
19455
|
}
|
|
19460
19456
|
|
|
19461
19457
|
const getRenderStates = (state) => {
|
|
19462
|
-
var _a;
|
|
19463
19458
|
const msg = state._msg;
|
|
19464
19459
|
const description = typeof msg === 'string' ? msg : msg === null || msg === void 0 ? void 0 : msg._description;
|
|
19465
|
-
const type =
|
|
19460
|
+
const type = getMsgType(msg);
|
|
19466
19461
|
const hasMessage = Boolean(description && description.length > 0);
|
|
19467
19462
|
const isMessageValidError = type === 'error' && hasMessage;
|
|
19468
19463
|
const hasError = isMessageValidError && state._touched === true;
|
|
@@ -19914,8 +19909,8 @@ class ComboboxController extends InputIconController {
|
|
|
19914
19909
|
super(component, name, host);
|
|
19915
19910
|
this.component = component;
|
|
19916
19911
|
}
|
|
19917
|
-
|
|
19918
|
-
watchBoolean(this.component, '
|
|
19912
|
+
validateHasClearButton(value) {
|
|
19913
|
+
watchBoolean(this.component, '_hasClearButton', value);
|
|
19919
19914
|
}
|
|
19920
19915
|
validatePlaceholder(value) {
|
|
19921
19916
|
validatePlaceholder(this.component, value);
|
|
@@ -19931,7 +19926,7 @@ class ComboboxController extends InputIconController {
|
|
|
19931
19926
|
}
|
|
19932
19927
|
componentWillLoad() {
|
|
19933
19928
|
super.componentWillLoad();
|
|
19934
|
-
this.
|
|
19929
|
+
this.validateHasClearButton(this.component._hasClearButton);
|
|
19935
19930
|
this.validatePlaceholder(this.component._placeholder);
|
|
19936
19931
|
this.validateRequired(this.component._required);
|
|
19937
19932
|
this.validateSuggestions(this.component._suggestions);
|
|
@@ -19939,15 +19934,15 @@ class ComboboxController extends InputIconController {
|
|
|
19939
19934
|
}
|
|
19940
19935
|
}
|
|
19941
19936
|
|
|
19942
|
-
const defaultStyleCss$D = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-custom-suggestions-option {\n line-height: 1.5;\n white-space: normal;\n cursor: pointer;\n overflow-wrap: break-word;\n }\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\n cursor: none !important;\n }\n .kol-custom-suggestions-option--disabled:focus, .kol-custom-suggestions-option--disabled:focus * {\n cursor: not-allowed;\n }\n .kol-custom-suggestions-options-group {\n background-color: white;\n display: block;\n position: absolute;\n z-index: 2;\n max-height: calc(250 * 1rem / var(--kolibri-root-font-size, 16));\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style-type: none;\n }\n .kol-custom-suggestions-toggle {\n display: flex;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: default;\n }\n .kol-custom-suggestions-toggle.kol-custom-suggestions-toggle--disabled {\n cursor: not-allowed;\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)):has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input {\n background-color: transparent;\n width: 100%;\n min-width: var(--a11y-min-size);\n }\n .kol-input:focus {\n outline: none;\n }\n .kol-combobox__delete .kol-button {\n cursor: pointer;\n }\n .kol-combobox__delete--disabled .kol-button {\n cursor: not-allowed;\n }\n .kol-custom-suggestions-toggle:not(.kol-custom-suggestions-toggle--disabled) {\n cursor: pointer;\n }\n .kol-custom-suggestions-toggle--disabled {\n opacity: 0.5;\n }\n}";
|
|
19937
|
+
const defaultStyleCss$E = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-custom-suggestions-option {\n line-height: 1.5;\n white-space: normal;\n cursor: pointer;\n overflow-wrap: break-word;\n }\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\n cursor: none !important;\n }\n .kol-custom-suggestions-option--disabled:focus, .kol-custom-suggestions-option--disabled:focus * {\n cursor: not-allowed;\n }\n .kol-custom-suggestions-options-group {\n background-color: white;\n display: block;\n position: absolute;\n z-index: 2;\n max-height: calc(250 * 1rem / var(--kolibri-root-font-size, 16));\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style-type: none;\n }\n .kol-custom-suggestions-toggle {\n display: flex;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: default;\n }\n .kol-custom-suggestions-toggle.kol-custom-suggestions-toggle--disabled {\n cursor: not-allowed;\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)):has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input {\n background-color: transparent;\n width: 100%;\n min-width: var(--a11y-min-size);\n }\n .kol-input:focus {\n outline: none;\n }\n .kol-combobox__delete .kol-button {\n cursor: pointer;\n }\n .kol-combobox__delete--disabled .kol-button {\n cursor: not-allowed;\n }\n .kol-custom-suggestions-toggle:not(.kol-custom-suggestions-toggle--disabled) {\n cursor: pointer;\n }\n .kol-custom-suggestions-toggle--disabled {\n opacity: 0.5;\n }\n}";
|
|
19943
19938
|
|
|
19944
19939
|
class KolCombobox {
|
|
19945
19940
|
async getValue() {
|
|
19946
19941
|
return this.state._value;
|
|
19947
19942
|
}
|
|
19948
|
-
async
|
|
19943
|
+
async focus() {
|
|
19949
19944
|
var _a;
|
|
19950
|
-
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19945
|
+
return Promise.resolve((_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus());
|
|
19951
19946
|
}
|
|
19952
19947
|
selectOption(option) {
|
|
19953
19948
|
var _a;
|
|
@@ -20054,15 +20049,15 @@ class KolCombobox {
|
|
|
20054
20049
|
}
|
|
20055
20050
|
render() {
|
|
20056
20051
|
const isDisabled = this.state._disabled === true;
|
|
20057
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
20052
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'cbd013af84eddc131e32b69743d50bebb89ab0c5' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '535b4a33165c1f440589cf302ed01f157a1be32a', state: this.state }, hAsync("div", { key: '792a4944ee12462a0f7eb851b1b17213d70353b7', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: 'f656e9e9387c40d54e0d68745e6394cab9a35d3a' }, this.getInputProps())), this.state._value && this.state._hasClearButton && (hAsync(KolButtonWcTag, { key: 'f41a15aac631825b41c0319db08a71e3aac19deb', _icons: "kolicon-cross", _label: this.translateDeleteSelection, _hideLabel: true, _disabled: isDisabled, "data-testid": "combobox-delete", class: clsx('kol-combobox__delete', {
|
|
20058
20053
|
'kol-combobox__delete--disabled': isDisabled,
|
|
20059
20054
|
}), _on: {
|
|
20060
20055
|
onClick: () => {
|
|
20061
20056
|
this.clearSelection();
|
|
20062
20057
|
},
|
|
20063
|
-
} })), hAsync(KolIconTag, { key: '
|
|
20058
|
+
} })), hAsync(KolIconTag, { key: 'e26e181a6c4f4a3fc1035823c88b35123447a10f', _icons: "kolicon-chevron-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
20064
20059
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
20065
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
20060
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'c7d248cdee473e36a53d275a1b02a29cdaa9d77a', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
20066
20061
|
this._filteredSuggestions.length > 0 &&
|
|
20067
20062
|
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { disabled: false, index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
20068
20063
|
if (el)
|
|
@@ -20204,13 +20199,13 @@ class KolCombobox {
|
|
|
20204
20199
|
this._hideMsg = false;
|
|
20205
20200
|
this._hideLabel = false;
|
|
20206
20201
|
this._hint = '';
|
|
20207
|
-
this.
|
|
20202
|
+
this._hasClearButton = true;
|
|
20208
20203
|
this._required = false;
|
|
20209
20204
|
this._tooltipAlign = 'top';
|
|
20210
20205
|
this._touched = false;
|
|
20211
20206
|
this.state = {
|
|
20212
20207
|
_hasValue: false,
|
|
20213
|
-
|
|
20208
|
+
_hasClearButton: true,
|
|
20214
20209
|
_hideMsg: false,
|
|
20215
20210
|
_id: `id-${nonce()}`,
|
|
20216
20211
|
_label: '',
|
|
@@ -20267,8 +20262,8 @@ class KolCombobox {
|
|
|
20267
20262
|
this.controller.validateSuggestions(value);
|
|
20268
20263
|
this._filteredSuggestions = value;
|
|
20269
20264
|
}
|
|
20270
|
-
|
|
20271
|
-
this.controller.
|
|
20265
|
+
validateHasClearButton(value) {
|
|
20266
|
+
this.controller.validateHasClearButton(value);
|
|
20272
20267
|
}
|
|
20273
20268
|
validateRequired(value) {
|
|
20274
20269
|
this.controller.validateRequired(value);
|
|
@@ -20332,14 +20327,14 @@ class KolCombobox {
|
|
|
20332
20327
|
"_on": ["validateOn"],
|
|
20333
20328
|
"_shortKey": ["validateShortKey"],
|
|
20334
20329
|
"_suggestions": ["validateSuggestions"],
|
|
20335
|
-
"
|
|
20330
|
+
"_hasClearButton": ["validateHasClearButton"],
|
|
20336
20331
|
"_required": ["validateRequired"],
|
|
20337
20332
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
20338
20333
|
"_touched": ["validateTouched"],
|
|
20339
20334
|
"_value": ["validateValue"]
|
|
20340
20335
|
}; }
|
|
20341
20336
|
static get style() { return {
|
|
20342
|
-
default: defaultStyleCss$
|
|
20337
|
+
default: defaultStyleCss$E
|
|
20343
20338
|
}; }
|
|
20344
20339
|
static get cmpMeta() { return {
|
|
20345
20340
|
"$flags$": 297,
|
|
@@ -20357,7 +20352,7 @@ class KolCombobox {
|
|
|
20357
20352
|
"_msg": [1],
|
|
20358
20353
|
"_name": [1],
|
|
20359
20354
|
"_on": [16],
|
|
20360
|
-
"
|
|
20355
|
+
"_hasClearButton": [4, "_has-clear-button"],
|
|
20361
20356
|
"_suggestions": [1],
|
|
20362
20357
|
"_required": [4],
|
|
20363
20358
|
"_shortKey": [1, "_short-key"],
|
|
@@ -20371,7 +20366,7 @@ class KolCombobox {
|
|
|
20371
20366
|
"state": [32],
|
|
20372
20367
|
"inputHasFocus": [32],
|
|
20373
20368
|
"getValue": [64],
|
|
20374
|
-
"
|
|
20369
|
+
"focus": [64]
|
|
20375
20370
|
},
|
|
20376
20371
|
"$listeners$": [[0, "keydown", "handleKeyDown"], [8, "click", "handleWindowClick"], [1, "mousemove", "handleMouseEvent"], [8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"]],
|
|
20377
20372
|
"$lazyBundleId$": "-",
|
|
@@ -20379,7 +20374,7 @@ class KolCombobox {
|
|
|
20379
20374
|
}; }
|
|
20380
20375
|
}
|
|
20381
20376
|
|
|
20382
|
-
const defaultStyleCss$
|
|
20377
|
+
const defaultStyleCss$D = "/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\n@layer kol-component {\n @media (prefers-reduced-motion) {\n .collapsible__wrapper-animation, .collapsible__wrapper {\n transition-duration: 0s;\n }\n }\n .collapsible {\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\n }\n @media print {\n :not(.collapsible--open) .collapsible__wrapper-animation {\n display: none;\n }\n }\n .collapsible__wrapper {\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\n transform: translateZ(0);\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.3s;\n }\n .collapsible__wrapper-animation {\n opacity: 0;\n transform: scaleY(0);\n transform-origin: top;\n min-height: 0;\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\n visibility: hidden;\n transition: transform 0.3s, opacity 0.3s, visibility 0.3s;\n }\n .collapsible--open .collapsible__wrapper {\n grid-template-rows: 1fr;\n }\n .collapsible--open .collapsible__wrapper-animation {\n opacity: 1;\n transform: scaleY(1);\n visibility: visible;\n }\n .collapsible {\n /*\n * Inside a button, the caption text is always centered.\n * So we have to align the text to the left.\n */\n }\n .collapsible__heading-button button .kol-span {\n align-items: flex-start;\n }\n .collapsible--open:focus-within {\n position: relative;\n z-index: 100;\n }\n}\n@layer kol-component {\n .kol-details__heading-button {\n display: flex;\n }\n .kol-details__heading-button .kol-button {\n min-height: auto;\n }\n .kol-details__heading-button .kol-button .kol-span__label {\n border-bottom-color: grey;\n border-bottom-style: solid;\n }\n .collapsible--open .kol-details__heading-button .kol-icon::part(icon) {\n transform: rotate(90deg);\n }\n}";
|
|
20383
20378
|
|
|
20384
20379
|
class KolDetails {
|
|
20385
20380
|
constructor(hostRef) {
|
|
@@ -20408,9 +20403,9 @@ class KolDetails {
|
|
|
20408
20403
|
_on: {},
|
|
20409
20404
|
};
|
|
20410
20405
|
}
|
|
20411
|
-
async
|
|
20406
|
+
async focus() {
|
|
20412
20407
|
var _a;
|
|
20413
|
-
|
|
20408
|
+
return Promise.resolve((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
20414
20409
|
}
|
|
20415
20410
|
render() {
|
|
20416
20411
|
const { _open, _label, _disabled, _level } = this.state;
|
|
@@ -20427,7 +20422,7 @@ class KolDetails {
|
|
|
20427
20422
|
HeadingButtonProps: {
|
|
20428
20423
|
ref: this.catchRef,
|
|
20429
20424
|
class: `${rootClass}__heading-button`,
|
|
20430
|
-
_icons: '
|
|
20425
|
+
_icons: 'kolicon-chevron-right',
|
|
20431
20426
|
},
|
|
20432
20427
|
ContentProps: {
|
|
20433
20428
|
class: `${rootClass}__content indented-text`,
|
|
@@ -20435,7 +20430,7 @@ class KolDetails {
|
|
|
20435
20430
|
animationClass: `${rootClass}__wrapper-animation`,
|
|
20436
20431
|
},
|
|
20437
20432
|
};
|
|
20438
|
-
return (hAsync(KolCollapsibleFc, Object.assign({ key: '
|
|
20433
|
+
return (hAsync(KolCollapsibleFc, Object.assign({ key: '07bc611d260c54c24d5d46161db69ad2d77a85d0' }, props), hAsync("slot", { key: '1a188f043828b0a2cfad16b4e034606961a8722e' })));
|
|
20439
20434
|
}
|
|
20440
20435
|
validateDisabled(value) {
|
|
20441
20436
|
validateDisabled(this, value);
|
|
@@ -20470,7 +20465,7 @@ class KolDetails {
|
|
|
20470
20465
|
"_open": ["validateOpen"]
|
|
20471
20466
|
}; }
|
|
20472
20467
|
static get style() { return {
|
|
20473
|
-
default: defaultStyleCss$
|
|
20468
|
+
default: defaultStyleCss$D
|
|
20474
20469
|
}; }
|
|
20475
20470
|
static get cmpMeta() { return {
|
|
20476
20471
|
"$flags$": 297,
|
|
@@ -20482,7 +20477,7 @@ class KolDetails {
|
|
|
20482
20477
|
"_on": [16],
|
|
20483
20478
|
"_open": [1540],
|
|
20484
20479
|
"state": [32],
|
|
20485
|
-
"
|
|
20480
|
+
"focus": [64]
|
|
20486
20481
|
},
|
|
20487
20482
|
"$listeners$": undefined,
|
|
20488
20483
|
"$lazyBundleId$": "-",
|
|
@@ -20490,6 +20485,53 @@ class KolDetails {
|
|
|
20490
20485
|
}; }
|
|
20491
20486
|
}
|
|
20492
20487
|
|
|
20488
|
+
const defaultStyleCss$C = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n.kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: \"header close\" \"content content\";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n}\n.kol-card__header {\n align-self: start;\n grid-area: header;\n}\n.kol-card__content {\n align-self: stretch;\n grid-area: content;\n}\n.kol-card__close-button {\n grid-area: close;\n}\n\n@layer kol-component {\n .kol-dialog,\n .kol-modal {\n min-height: var(--a11y-min-size);\n padding: 0;\n border: 0;\n }\n .kol-dialog::backdrop,\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .kol-dialog__close-button,\n .kol-modal__close-button {\n position: absolute;\n top: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n right: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}";
|
|
20489
|
+
|
|
20490
|
+
class KolDialog {
|
|
20491
|
+
constructor(hostRef) {
|
|
20492
|
+
registerInstance(this, hostRef);
|
|
20493
|
+
this.catchRef = (ref) => {
|
|
20494
|
+
this.dialogRef = ref;
|
|
20495
|
+
};
|
|
20496
|
+
this._width = '100%';
|
|
20497
|
+
this._variant = 'blank';
|
|
20498
|
+
}
|
|
20499
|
+
async openModal() {
|
|
20500
|
+
var _a;
|
|
20501
|
+
await ((_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.openModal());
|
|
20502
|
+
}
|
|
20503
|
+
async closeModal() {
|
|
20504
|
+
var _a;
|
|
20505
|
+
await ((_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.closeModal());
|
|
20506
|
+
}
|
|
20507
|
+
render() {
|
|
20508
|
+
return (hAsync(KolDialogWcTag, { key: '24744fff4cfebb9ef188926e5390064ce7ec6931', ref: this.catchRef, _label: this._label, _on: this._on, _variant: this._variant, _width: this._width }, hAsync("slot", { key: 'c8844dc7d6b9d16567ce400ae10f992018c6849d' })));
|
|
20509
|
+
}
|
|
20510
|
+
static get style() { return {
|
|
20511
|
+
default: defaultStyleCss$C
|
|
20512
|
+
}; }
|
|
20513
|
+
static get cmpMeta() { return {
|
|
20514
|
+
"$flags$": 297,
|
|
20515
|
+
"$tagName$": "kol-dialog",
|
|
20516
|
+
"$members$": {
|
|
20517
|
+
"_label": [1],
|
|
20518
|
+
"_on": [16],
|
|
20519
|
+
"_width": [1],
|
|
20520
|
+
"_variant": [1],
|
|
20521
|
+
"openModal": [64],
|
|
20522
|
+
"closeModal": [64]
|
|
20523
|
+
},
|
|
20524
|
+
"$listeners$": undefined,
|
|
20525
|
+
"$lazyBundleId$": "-",
|
|
20526
|
+
"$attrsToReflect$": []
|
|
20527
|
+
}; }
|
|
20528
|
+
}
|
|
20529
|
+
|
|
20530
|
+
const DialogVariantPropTypeOptions = ['blank', 'card'];
|
|
20531
|
+
const validateDialogVariant = (component, value) => {
|
|
20532
|
+
watchValidator(component, '_variant', (value) => typeof value === 'string' && DialogVariantPropTypeOptions.includes(value), new Set(DialogVariantPropTypeOptions), value);
|
|
20533
|
+
};
|
|
20534
|
+
|
|
20493
20535
|
let openTooltips = 0;
|
|
20494
20536
|
const tooltipOpened = () => {
|
|
20495
20537
|
openTooltips++;
|
|
@@ -20503,6 +20545,102 @@ const handleCancelOverlay = (event) => {
|
|
|
20503
20545
|
}
|
|
20504
20546
|
};
|
|
20505
20547
|
|
|
20548
|
+
class KolDialogWc {
|
|
20549
|
+
constructor(hostRef) {
|
|
20550
|
+
registerInstance(this, hostRef);
|
|
20551
|
+
this.on = {
|
|
20552
|
+
onClose: async () => {
|
|
20553
|
+
await this.closeModal();
|
|
20554
|
+
},
|
|
20555
|
+
};
|
|
20556
|
+
this._width = '100%';
|
|
20557
|
+
this._variant = 'blank';
|
|
20558
|
+
this.state = {
|
|
20559
|
+
_label: '',
|
|
20560
|
+
_width: '100%',
|
|
20561
|
+
};
|
|
20562
|
+
}
|
|
20563
|
+
disconnectedCallback() {
|
|
20564
|
+
void this.closeModal();
|
|
20565
|
+
}
|
|
20566
|
+
handleNativeCloseEvent() {
|
|
20567
|
+
var _a, _b;
|
|
20568
|
+
(_b = (_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
20569
|
+
if (this.host) {
|
|
20570
|
+
dispatchDomEvent(this.host, KolEvent.close);
|
|
20571
|
+
}
|
|
20572
|
+
}
|
|
20573
|
+
async openModal() {
|
|
20574
|
+
var _a;
|
|
20575
|
+
(_a = this.refDialog) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
20576
|
+
}
|
|
20577
|
+
async closeModal() {
|
|
20578
|
+
var _a, _b;
|
|
20579
|
+
(_b = (_a = this.refDialog) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
20580
|
+
}
|
|
20581
|
+
render() {
|
|
20582
|
+
return (hAsync("dialog", { key: '288b2934310b2d34013f55e0f4636263e2be22aa', "aria-label": this.state._label, class: clsx('kol-dialog', 'kol-modal', {
|
|
20583
|
+
'kol-dialog__blank': this.state._variant === 'blank',
|
|
20584
|
+
'kol-dialog__card': this.state._variant === 'card',
|
|
20585
|
+
'kol-modal__blank': this.state._variant === 'blank',
|
|
20586
|
+
'kol-modal__card': this.state._variant === 'card',
|
|
20587
|
+
}), onCancel: handleCancelOverlay, onClose: this.handleNativeCloseEvent.bind(this), ref: (el) => {
|
|
20588
|
+
this.refDialog = el;
|
|
20589
|
+
}, style: {
|
|
20590
|
+
width: this.state._width,
|
|
20591
|
+
} }, this.state._variant === 'blank' && hAsync("slot", { key: '08ea19cdd17c7dcd6fcdb58b1d083665268285a8' }), this.state._variant === 'card' && (hAsync(KolCardWcTag, { key: '2801d5a45ea0e99406b1710dbfa76c320970ed0d', _label: this.state._label, _hasCloser: true, _on: this.on }, hAsync("slot", { key: '447c1819769635b6b8c7891d252da2ac9b9ece36' })))));
|
|
20592
|
+
}
|
|
20593
|
+
validateLabel(value) {
|
|
20594
|
+
validateLabel(this, value, {
|
|
20595
|
+
required: true,
|
|
20596
|
+
});
|
|
20597
|
+
}
|
|
20598
|
+
validateOn(value) {
|
|
20599
|
+
if (typeof value === 'object' && value !== null) {
|
|
20600
|
+
const callbacks = {};
|
|
20601
|
+
if (typeof value.onClose === 'function' || value.onClose === true) {
|
|
20602
|
+
callbacks.onClose = value.onClose;
|
|
20603
|
+
}
|
|
20604
|
+
setState(this, '_on', callbacks);
|
|
20605
|
+
}
|
|
20606
|
+
}
|
|
20607
|
+
validateWidth(value) {
|
|
20608
|
+
validateWidth(this, value);
|
|
20609
|
+
}
|
|
20610
|
+
validateVariant(value) {
|
|
20611
|
+
validateDialogVariant(this, value);
|
|
20612
|
+
}
|
|
20613
|
+
componentWillLoad() {
|
|
20614
|
+
this.validateLabel(this._label);
|
|
20615
|
+
this.validateOn(this._on);
|
|
20616
|
+
this.validateWidth(this._width);
|
|
20617
|
+
this.validateVariant(this._variant);
|
|
20618
|
+
}
|
|
20619
|
+
get host() { return getElement(this); }
|
|
20620
|
+
static get watchers() { return {
|
|
20621
|
+
"_label": ["validateLabel"],
|
|
20622
|
+
"_on": ["validateOn"],
|
|
20623
|
+
"_width": ["validateWidth"],
|
|
20624
|
+
"_variant": ["validateVariant"]
|
|
20625
|
+
}; }
|
|
20626
|
+
static get cmpMeta() { return {
|
|
20627
|
+
"$flags$": 260,
|
|
20628
|
+
"$tagName$": "kol-dialog-wc",
|
|
20629
|
+
"$members$": {
|
|
20630
|
+
"_label": [1],
|
|
20631
|
+
"_on": [16],
|
|
20632
|
+
"_width": [1],
|
|
20633
|
+
"_variant": [1],
|
|
20634
|
+
"state": [32],
|
|
20635
|
+
"openModal": [64],
|
|
20636
|
+
"closeModal": [64]
|
|
20637
|
+
},
|
|
20638
|
+
"$listeners$": undefined,
|
|
20639
|
+
"$lazyBundleId$": "-",
|
|
20640
|
+
"$attrsToReflect$": []
|
|
20641
|
+
}; }
|
|
20642
|
+
}
|
|
20643
|
+
|
|
20506
20644
|
const defaultStyleCss$B = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: \"header close\" \"content content\";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n }\n .kol-card__header {\n align-self: start;\n grid-area: header;\n }\n .kol-card__content {\n align-self: stretch;\n grid-area: content;\n }\n .kol-card__close-button {\n grid-area: close;\n }\n .kol-drawer__dialog {\n padding: 0;\n border: none;\n }\n .kol-drawer__wrapper {\n position: fixed;\n overflow: auto;\n }\n .kol-drawer__wrapper--left, .kol-drawer__wrapper--right {\n top: 0;\n max-width: 100vw;\n height: 100vh;\n }\n .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--left {\n left: 0;\n }\n .kol-drawer__wrapper--right {\n right: 0;\n }\n .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top {\n left: 0;\n width: 100vw;\n max-height: 100vh;\n }\n .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__wrapper--bottom {\n bottom: 0;\n }\n .kol-drawer__wrapper--top {\n top: 0;\n }\n .kol-drawer__content {\n position: relative;\n }\n}";
|
|
20507
20645
|
|
|
20508
20646
|
class KolDrawer {
|
|
@@ -20549,7 +20687,7 @@ class KolDrawer {
|
|
|
20549
20687
|
} }, hAsync("div", { class: "kol-drawer__content" }, hAsync("slot", null))));
|
|
20550
20688
|
}
|
|
20551
20689
|
render() {
|
|
20552
|
-
return (hAsync(Host, { key: '
|
|
20690
|
+
return (hAsync(Host, { key: 'cfa97c9b25f63360c569b66dae0d10fe881e7964', class: "kol-drawer" }, hAsync("dialog", { key: 'a4baf31338ad1b3f95a51ab35ac260f23b0e891e', "aria-label": this.state._label, class: "kol-drawer__dialog", onCancel: handleCancelOverlay, ref: this.getRef }, this.renderDialogContent())));
|
|
20553
20691
|
}
|
|
20554
20692
|
validateLabel(value) {
|
|
20555
20693
|
validateLabel(this, value, {
|
|
@@ -20702,7 +20840,7 @@ class KolForm {
|
|
|
20702
20840
|
}
|
|
20703
20841
|
render() {
|
|
20704
20842
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
20705
|
-
return (hAsync(Host, { key: '
|
|
20843
|
+
return (hAsync(Host, { key: '24abdec4e796efe805b3e29fa9f2e4d0189e64d4' }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
20706
20844
|
}
|
|
20707
20845
|
scrollToErrorList() {
|
|
20708
20846
|
var _a;
|
|
@@ -20792,7 +20930,7 @@ class KolHeading {
|
|
|
20792
20930
|
}
|
|
20793
20931
|
render() {
|
|
20794
20932
|
const { _secondaryHeadline, _label, _level } = this.state;
|
|
20795
|
-
return (hAsync(KolHeadingFc, { key: '
|
|
20933
|
+
return (hAsync(KolHeadingFc, { key: 'e0215bf6a8c6689b9661f08a0216f36bf6d2f332', secondaryHeadline: _secondaryHeadline, level: _level }, _label, hAsync("slot", { key: '1cd10de7df8a97779b57dd91247f6d3505e10f61', name: "expert", slot: "expert" })));
|
|
20796
20934
|
}
|
|
20797
20935
|
static get watchers() { return {
|
|
20798
20936
|
"_label": ["validateLabel"],
|
|
@@ -20837,17 +20975,17 @@ const bem = c();
|
|
|
20837
20975
|
const BEM_CLASS_ICON = bem('kol-icon');
|
|
20838
20976
|
const BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');
|
|
20839
20977
|
|
|
20840
|
-
const defaultStyleCss$y = "/* forward the rem function */\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n@font-face {\n font-family: \"codicon\";\n font-display: block;\n src: url(\"./codicon.ttf?be64b7213e352cd7f91ef58198e71237\") format(\"truetype\");\n}\n.codicon[class*=codicon-] {\n font: normal normal normal 16px/1 codicon;\n display: inline-block;\n text-decoration: none;\n text-rendering: auto;\n text-align: center;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n}\n\n/*---------------------\n * Modifiers\n *-------------------*/\n@keyframes codicon-spin {\n 100% {\n transform: rotate(360deg);\n }\n}\n.codicon-sync.codicon-modifier-spin,\n.codicon-loading.codicon-modifier-spin,\n.codicon-gear.codicon-modifier-spin {\n /* Use steps to throttle FPS to reduce CPU usage */\n animation: codicon-spin 1.5s steps(30) infinite;\n}\n\n.codicon-modifier-disabled {\n opacity: 0.5;\n}\n\n.codicon-modifier-hidden {\n opacity: 0;\n}\n\n/* custom speed & easing for loading icon */\n.codicon-loading {\n animation-duration: 1s !important;\n animation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important;\n}\n\n/*---------------------\n * Icons\n *-------------------*/\n.codicon-add:before {\n content: \"\\ea60\";\n}\n\n.codicon-plus:before {\n content: \"\\ea60\";\n}\n\n.codicon-gist-new:before {\n content: \"\\ea60\";\n}\n\n.codicon-repo-create:before {\n content: \"\\ea60\";\n}\n\n.codicon-lightbulb:before {\n content: \"\\ea61\";\n}\n\n.codicon-light-bulb:before {\n content: \"\\ea61\";\n}\n\n.codicon-repo:before {\n content: \"\\ea62\";\n}\n\n.codicon-repo-delete:before {\n content: \"\\ea62\";\n}\n\n.codicon-gist-fork:before {\n content: \"\\ea63\";\n}\n\n.codicon-repo-forked:before {\n content: \"\\ea63\";\n}\n\n.codicon-git-pull-request:before {\n content: \"\\ea64\";\n}\n\n.codicon-git-pull-request-abandoned:before {\n content: \"\\ea64\";\n}\n\n.codicon-record-keys:before {\n content: \"\\ea65\";\n}\n\n.codicon-keyboard:before {\n content: \"\\ea65\";\n}\n\n.codicon-tag:before {\n content: \"\\ea66\";\n}\n\n.codicon-git-pull-request-label:before {\n content: \"\\ea66\";\n}\n\n.codicon-tag-add:before {\n content: \"\\ea66\";\n}\n\n.codicon-tag-remove:before {\n content: \"\\ea66\";\n}\n\n.codicon-person:before {\n content: \"\\ea67\";\n}\n\n.codicon-person-follow:before {\n content: \"\\ea67\";\n}\n\n.codicon-person-outline:before {\n content: \"\\ea67\";\n}\n\n.codicon-person-filled:before {\n content: \"\\ea67\";\n}\n\n.codicon-git-branch:before {\n content: \"\\ea68\";\n}\n\n.codicon-git-branch-create:before {\n content: \"\\ea68\";\n}\n\n.codicon-git-branch-delete:before {\n content: \"\\ea68\";\n}\n\n.codicon-source-control:before {\n content: \"\\ea68\";\n}\n\n.codicon-mirror:before {\n content: \"\\ea69\";\n}\n\n.codicon-mirror-public:before {\n content: \"\\ea69\";\n}\n\n.codicon-star:before {\n content: \"\\ea6a\";\n}\n\n.codicon-star-add:before {\n content: \"\\ea6a\";\n}\n\n.codicon-star-delete:before {\n content: \"\\ea6a\";\n}\n\n.codicon-star-empty:before {\n content: \"\\ea6a\";\n}\n\n.codicon-comment:before {\n content: \"\\ea6b\";\n}\n\n.codicon-comment-add:before {\n content: \"\\ea6b\";\n}\n\n.codicon-alert:before {\n content: \"\\ea6c\";\n}\n\n.codicon-warning:before {\n content: \"\\ea6c\";\n}\n\n.codicon-search:before {\n content: \"\\ea6d\";\n}\n\n.codicon-search-save:before {\n content: \"\\ea6d\";\n}\n\n.codicon-log-out:before {\n content: \"\\ea6e\";\n}\n\n.codicon-sign-out:before {\n content: \"\\ea6e\";\n}\n\n.codicon-log-in:before {\n content: \"\\ea6f\";\n}\n\n.codicon-sign-in:before {\n content: \"\\ea6f\";\n}\n\n.codicon-eye:before {\n content: \"\\ea70\";\n}\n\n.codicon-eye-unwatch:before {\n content: \"\\ea70\";\n}\n\n.codicon-eye-watch:before {\n content: \"\\ea70\";\n}\n\n.codicon-circle-filled:before {\n content: \"\\ea71\";\n}\n\n.codicon-primitive-dot:before {\n content: \"\\ea71\";\n}\n\n.codicon-close-dirty:before {\n content: \"\\ea71\";\n}\n\n.codicon-debug-breakpoint:before {\n content: \"\\ea71\";\n}\n\n.codicon-debug-breakpoint-disabled:before {\n content: \"\\ea71\";\n}\n\n.codicon-debug-hint:before {\n content: \"\\ea71\";\n}\n\n.codicon-terminal-decoration-success:before {\n content: \"\\ea71\";\n}\n\n.codicon-primitive-square:before {\n content: \"\\ea72\";\n}\n\n.codicon-edit:before {\n content: \"\\ea73\";\n}\n\n.codicon-pencil:before {\n content: \"\\ea73\";\n}\n\n.codicon-info:before {\n content: \"\\ea74\";\n}\n\n.codicon-issue-opened:before {\n content: \"\\ea74\";\n}\n\n.codicon-gist-private:before {\n content: \"\\ea75\";\n}\n\n.codicon-git-fork-private:before {\n content: \"\\ea75\";\n}\n\n.codicon-lock:before {\n content: \"\\ea75\";\n}\n\n.codicon-mirror-private:before {\n content: \"\\ea75\";\n}\n\n.codicon-close:before {\n content: \"\\ea76\";\n}\n\n.codicon-remove-close:before {\n content: \"\\ea76\";\n}\n\n.codicon-x:before {\n content: \"\\ea76\";\n}\n\n.codicon-repo-sync:before {\n content: \"\\ea77\";\n}\n\n.codicon-sync:before {\n content: \"\\ea77\";\n}\n\n.codicon-clone:before {\n content: \"\\ea78\";\n}\n\n.codicon-desktop-download:before {\n content: \"\\ea78\";\n}\n\n.codicon-beaker:before {\n content: \"\\ea79\";\n}\n\n.codicon-microscope:before {\n content: \"\\ea79\";\n}\n\n.codicon-vm:before {\n content: \"\\ea7a\";\n}\n\n.codicon-device-desktop:before {\n content: \"\\ea7a\";\n}\n\n.codicon-file:before {\n content: \"\\ea7b\";\n}\n\n.codicon-file-text:before {\n content: \"\\ea7b\";\n}\n\n.codicon-more:before {\n content: \"\\ea7c\";\n}\n\n.codicon-ellipsis:before {\n content: \"\\ea7c\";\n}\n\n.codicon-kebab-horizontal:before {\n content: \"\\ea7c\";\n}\n\n.codicon-mail-reply:before {\n content: \"\\ea7d\";\n}\n\n.codicon-reply:before {\n content: \"\\ea7d\";\n}\n\n.codicon-organization:before {\n content: \"\\ea7e\";\n}\n\n.codicon-organization-filled:before {\n content: \"\\ea7e\";\n}\n\n.codicon-organization-outline:before {\n content: \"\\ea7e\";\n}\n\n.codicon-new-file:before {\n content: \"\\ea7f\";\n}\n\n.codicon-file-add:before {\n content: \"\\ea7f\";\n}\n\n.codicon-new-folder:before {\n content: \"\\ea80\";\n}\n\n.codicon-file-directory-create:before {\n content: \"\\ea80\";\n}\n\n.codicon-trash:before {\n content: \"\\ea81\";\n}\n\n.codicon-trashcan:before {\n content: \"\\ea81\";\n}\n\n.codicon-history:before {\n content: \"\\ea82\";\n}\n\n.codicon-clock:before {\n content: \"\\ea82\";\n}\n\n.codicon-folder:before {\n content: \"\\ea83\";\n}\n\n.codicon-file-directory:before {\n content: \"\\ea83\";\n}\n\n.codicon-symbol-folder:before {\n content: \"\\ea83\";\n}\n\n.codicon-logo-github:before {\n content: \"\\ea84\";\n}\n\n.codicon-mark-github:before {\n content: \"\\ea84\";\n}\n\n.codicon-github:before {\n content: \"\\ea84\";\n}\n\n.codicon-terminal:before {\n content: \"\\ea85\";\n}\n\n.codicon-console:before {\n content: \"\\ea85\";\n}\n\n.codicon-repl:before {\n content: \"\\ea85\";\n}\n\n.codicon-zap:before {\n content: \"\\ea86\";\n}\n\n.codicon-symbol-event:before {\n content: \"\\ea86\";\n}\n\n.codicon-error:before {\n content: \"\\ea87\";\n}\n\n.codicon-stop:before {\n content: \"\\ea87\";\n}\n\n.codicon-variable:before {\n content: \"\\ea88\";\n}\n\n.codicon-symbol-variable:before {\n content: \"\\ea88\";\n}\n\n.codicon-array:before {\n content: \"\\ea8a\";\n}\n\n.codicon-symbol-array:before {\n content: \"\\ea8a\";\n}\n\n.codicon-symbol-module:before {\n content: \"\\ea8b\";\n}\n\n.codicon-symbol-package:before {\n content: \"\\ea8b\";\n}\n\n.codicon-symbol-namespace:before {\n content: \"\\ea8b\";\n}\n\n.codicon-symbol-object:before {\n content: \"\\ea8b\";\n}\n\n.codicon-symbol-method:before {\n content: \"\\ea8c\";\n}\n\n.codicon-symbol-function:before {\n content: \"\\ea8c\";\n}\n\n.codicon-symbol-constructor:before {\n content: \"\\ea8c\";\n}\n\n.codicon-symbol-boolean:before {\n content: \"\\ea8f\";\n}\n\n.codicon-symbol-null:before {\n content: \"\\ea8f\";\n}\n\n.codicon-symbol-numeric:before {\n content: \"\\ea90\";\n}\n\n.codicon-symbol-number:before {\n content: \"\\ea90\";\n}\n\n.codicon-symbol-structure:before {\n content: \"\\ea91\";\n}\n\n.codicon-symbol-struct:before {\n content: \"\\ea91\";\n}\n\n.codicon-symbol-parameter:before {\n content: \"\\ea92\";\n}\n\n.codicon-symbol-type-parameter:before {\n content: \"\\ea92\";\n}\n\n.codicon-symbol-key:before {\n content: \"\\ea93\";\n}\n\n.codicon-symbol-text:before {\n content: \"\\ea93\";\n}\n\n.codicon-symbol-reference:before {\n content: \"\\ea94\";\n}\n\n.codicon-go-to-file:before {\n content: \"\\ea94\";\n}\n\n.codicon-symbol-enum:before {\n content: \"\\ea95\";\n}\n\n.codicon-symbol-value:before {\n content: \"\\ea95\";\n}\n\n.codicon-symbol-ruler:before {\n content: \"\\ea96\";\n}\n\n.codicon-symbol-unit:before {\n content: \"\\ea96\";\n}\n\n.codicon-activate-breakpoints:before {\n content: \"\\ea97\";\n}\n\n.codicon-archive:before {\n content: \"\\ea98\";\n}\n\n.codicon-arrow-both:before {\n content: \"\\ea99\";\n}\n\n.codicon-arrow-down:before {\n content: \"\\ea9a\";\n}\n\n.codicon-arrow-left:before {\n content: \"\\ea9b\";\n}\n\n.codicon-arrow-right:before {\n content: \"\\ea9c\";\n}\n\n.codicon-arrow-small-down:before {\n content: \"\\ea9d\";\n}\n\n.codicon-arrow-small-left:before {\n content: \"\\ea9e\";\n}\n\n.codicon-arrow-small-right:before {\n content: \"\\ea9f\";\n}\n\n.codicon-arrow-small-up:before {\n content: \"\\eaa0\";\n}\n\n.codicon-arrow-up:before {\n content: \"\\eaa1\";\n}\n\n.codicon-bell:before {\n content: \"\\eaa2\";\n}\n\n.codicon-bold:before {\n content: \"\\eaa3\";\n}\n\n.codicon-book:before {\n content: \"\\eaa4\";\n}\n\n.codicon-bookmark:before {\n content: \"\\eaa5\";\n}\n\n.codicon-debug-breakpoint-conditional-unverified:before {\n content: \"\\eaa6\";\n}\n\n.codicon-debug-breakpoint-conditional:before {\n content: \"\\eaa7\";\n}\n\n.codicon-debug-breakpoint-conditional-disabled:before {\n content: \"\\eaa7\";\n}\n\n.codicon-debug-breakpoint-data-unverified:before {\n content: \"\\eaa8\";\n}\n\n.codicon-debug-breakpoint-data:before {\n content: \"\\eaa9\";\n}\n\n.codicon-debug-breakpoint-data-disabled:before {\n content: \"\\eaa9\";\n}\n\n.codicon-debug-breakpoint-log-unverified:before {\n content: \"\\eaaa\";\n}\n\n.codicon-debug-breakpoint-log:before {\n content: \"\\eaab\";\n}\n\n.codicon-debug-breakpoint-log-disabled:before {\n content: \"\\eaab\";\n}\n\n.codicon-briefcase:before {\n content: \"\\eaac\";\n}\n\n.codicon-broadcast:before {\n content: \"\\eaad\";\n}\n\n.codicon-browser:before {\n content: \"\\eaae\";\n}\n\n.codicon-bug:before {\n content: \"\\eaaf\";\n}\n\n.codicon-calendar:before {\n content: \"\\eab0\";\n}\n\n.codicon-case-sensitive:before {\n content: \"\\eab1\";\n}\n\n.codicon-check:before {\n content: \"\\eab2\";\n}\n\n.codicon-checklist:before {\n content: \"\\eab3\";\n}\n\n.codicon-chevron-down:before {\n content: \"\\eab4\";\n}\n\n.codicon-chevron-left:before {\n content: \"\\eab5\";\n}\n\n.codicon-chevron-right:before {\n content: \"\\eab6\";\n}\n\n.codicon-chevron-up:before {\n content: \"\\eab7\";\n}\n\n.codicon-chrome-close:before {\n content: \"\\eab8\";\n}\n\n.codicon-chrome-maximize:before {\n content: \"\\eab9\";\n}\n\n.codicon-chrome-minimize:before {\n content: \"\\eaba\";\n}\n\n.codicon-chrome-restore:before {\n content: \"\\eabb\";\n}\n\n.codicon-circle-outline:before {\n content: \"\\eabc\";\n}\n\n.codicon-circle:before {\n content: \"\\eabc\";\n}\n\n.codicon-debug-breakpoint-unverified:before {\n content: \"\\eabc\";\n}\n\n.codicon-terminal-decoration-incomplete:before {\n content: \"\\eabc\";\n}\n\n.codicon-circle-slash:before {\n content: \"\\eabd\";\n}\n\n.codicon-circuit-board:before {\n content: \"\\eabe\";\n}\n\n.codicon-clear-all:before {\n content: \"\\eabf\";\n}\n\n.codicon-clippy:before {\n content: \"\\eac0\";\n}\n\n.codicon-close-all:before {\n content: \"\\eac1\";\n}\n\n.codicon-cloud-download:before {\n content: \"\\eac2\";\n}\n\n.codicon-cloud-upload:before {\n content: \"\\eac3\";\n}\n\n.codicon-code:before {\n content: \"\\eac4\";\n}\n\n.codicon-collapse-all:before {\n content: \"\\eac5\";\n}\n\n.codicon-color-mode:before {\n content: \"\\eac6\";\n}\n\n.codicon-comment-discussion:before {\n content: \"\\eac7\";\n}\n\n.codicon-credit-card:before {\n content: \"\\eac9\";\n}\n\n.codicon-dash:before {\n content: \"\\eacc\";\n}\n\n.codicon-dashboard:before {\n content: \"\\eacd\";\n}\n\n.codicon-database:before {\n content: \"\\eace\";\n}\n\n.codicon-debug-continue:before {\n content: \"\\eacf\";\n}\n\n.codicon-debug-disconnect:before {\n content: \"\\ead0\";\n}\n\n.codicon-debug-pause:before {\n content: \"\\ead1\";\n}\n\n.codicon-debug-restart:before {\n content: \"\\ead2\";\n}\n\n.codicon-debug-start:before {\n content: \"\\ead3\";\n}\n\n.codicon-debug-step-into:before {\n content: \"\\ead4\";\n}\n\n.codicon-debug-step-out:before {\n content: \"\\ead5\";\n}\n\n.codicon-debug-step-over:before {\n content: \"\\ead6\";\n}\n\n.codicon-debug-stop:before {\n content: \"\\ead7\";\n}\n\n.codicon-debug:before {\n content: \"\\ead8\";\n}\n\n.codicon-device-camera-video:before {\n content: \"\\ead9\";\n}\n\n.codicon-device-camera:before {\n content: \"\\eada\";\n}\n\n.codicon-device-mobile:before {\n content: \"\\eadb\";\n}\n\n.codicon-diff-added:before {\n content: \"\\eadc\";\n}\n\n.codicon-diff-ignored:before {\n content: \"\\eadd\";\n}\n\n.codicon-diff-modified:before {\n content: \"\\eade\";\n}\n\n.codicon-diff-removed:before {\n content: \"\\eadf\";\n}\n\n.codicon-diff-renamed:before {\n content: \"\\eae0\";\n}\n\n.codicon-diff:before {\n content: \"\\eae1\";\n}\n\n.codicon-diff-sidebyside:before {\n content: \"\\eae1\";\n}\n\n.codicon-discard:before {\n content: \"\\eae2\";\n}\n\n.codicon-editor-layout:before {\n content: \"\\eae3\";\n}\n\n.codicon-empty-window:before {\n content: \"\\eae4\";\n}\n\n.codicon-exclude:before {\n content: \"\\eae5\";\n}\n\n.codicon-extensions:before {\n content: \"\\eae6\";\n}\n\n.codicon-eye-closed:before {\n content: \"\\eae7\";\n}\n\n.codicon-file-binary:before {\n content: \"\\eae8\";\n}\n\n.codicon-file-code:before {\n content: \"\\eae9\";\n}\n\n.codicon-file-media:before {\n content: \"\\eaea\";\n}\n\n.codicon-file-pdf:before {\n content: \"\\eaeb\";\n}\n\n.codicon-file-submodule:before {\n content: \"\\eaec\";\n}\n\n.codicon-file-symlink-directory:before {\n content: \"\\eaed\";\n}\n\n.codicon-file-symlink-file:before {\n content: \"\\eaee\";\n}\n\n.codicon-file-zip:before {\n content: \"\\eaef\";\n}\n\n.codicon-files:before {\n content: \"\\eaf0\";\n}\n\n.codicon-filter:before {\n content: \"\\eaf1\";\n}\n\n.codicon-flame:before {\n content: \"\\eaf2\";\n}\n\n.codicon-fold-down:before {\n content: \"\\eaf3\";\n}\n\n.codicon-fold-up:before {\n content: \"\\eaf4\";\n}\n\n.codicon-fold:before {\n content: \"\\eaf5\";\n}\n\n.codicon-folder-active:before {\n content: \"\\eaf6\";\n}\n\n.codicon-folder-opened:before {\n content: \"\\eaf7\";\n}\n\n.codicon-gear:before {\n content: \"\\eaf8\";\n}\n\n.codicon-gift:before {\n content: \"\\eaf9\";\n}\n\n.codicon-gist-secret:before {\n content: \"\\eafa\";\n}\n\n.codicon-gist:before {\n content: \"\\eafb\";\n}\n\n.codicon-git-commit:before {\n content: \"\\eafc\";\n}\n\n.codicon-git-compare:before {\n content: \"\\eafd\";\n}\n\n.codicon-compare-changes:before {\n content: \"\\eafd\";\n}\n\n.codicon-git-merge:before {\n content: \"\\eafe\";\n}\n\n.codicon-github-action:before {\n content: \"\\eaff\";\n}\n\n.codicon-github-alt:before {\n content: \"\\eb00\";\n}\n\n.codicon-globe:before {\n content: \"\\eb01\";\n}\n\n.codicon-grabber:before {\n content: \"\\eb02\";\n}\n\n.codicon-graph:before {\n content: \"\\eb03\";\n}\n\n.codicon-gripper:before {\n content: \"\\eb04\";\n}\n\n.codicon-heart:before {\n content: \"\\eb05\";\n}\n\n.codicon-home:before {\n content: \"\\eb06\";\n}\n\n.codicon-horizontal-rule:before {\n content: \"\\eb07\";\n}\n\n.codicon-hubot:before {\n content: \"\\eb08\";\n}\n\n.codicon-inbox:before {\n content: \"\\eb09\";\n}\n\n.codicon-issue-reopened:before {\n content: \"\\eb0b\";\n}\n\n.codicon-issues:before {\n content: \"\\eb0c\";\n}\n\n.codicon-italic:before {\n content: \"\\eb0d\";\n}\n\n.codicon-jersey:before {\n content: \"\\eb0e\";\n}\n\n.codicon-json:before {\n content: \"\\eb0f\";\n}\n\n.codicon-kebab-vertical:before {\n content: \"\\eb10\";\n}\n\n.codicon-key:before {\n content: \"\\eb11\";\n}\n\n.codicon-law:before {\n content: \"\\eb12\";\n}\n\n.codicon-lightbulb-autofix:before {\n content: \"\\eb13\";\n}\n\n.codicon-link-external:before {\n content: \"\\eb14\";\n}\n\n.codicon-link:before {\n content: \"\\eb15\";\n}\n\n.codicon-list-ordered:before {\n content: \"\\eb16\";\n}\n\n.codicon-list-unordered:before {\n content: \"\\eb17\";\n}\n\n.codicon-live-share:before {\n content: \"\\eb18\";\n}\n\n.codicon-loading:before {\n content: \"\\eb19\";\n}\n\n.codicon-location:before {\n content: \"\\eb1a\";\n}\n\n.codicon-mail-read:before {\n content: \"\\eb1b\";\n}\n\n.codicon-mail:before {\n content: \"\\eb1c\";\n}\n\n.codicon-markdown:before {\n content: \"\\eb1d\";\n}\n\n.codicon-megaphone:before {\n content: \"\\eb1e\";\n}\n\n.codicon-mention:before {\n content: \"\\eb1f\";\n}\n\n.codicon-milestone:before {\n content: \"\\eb20\";\n}\n\n.codicon-git-pull-request-milestone:before {\n content: \"\\eb20\";\n}\n\n.codicon-mortar-board:before {\n content: \"\\eb21\";\n}\n\n.codicon-move:before {\n content: \"\\eb22\";\n}\n\n.codicon-multiple-windows:before {\n content: \"\\eb23\";\n}\n\n.codicon-mute:before {\n content: \"\\eb24\";\n}\n\n.codicon-no-newline:before {\n content: \"\\eb25\";\n}\n\n.codicon-note:before {\n content: \"\\eb26\";\n}\n\n.codicon-octoface:before {\n content: \"\\eb27\";\n}\n\n.codicon-open-preview:before {\n content: \"\\eb28\";\n}\n\n.codicon-package:before {\n content: \"\\eb29\";\n}\n\n.codicon-paintcan:before {\n content: \"\\eb2a\";\n}\n\n.codicon-pin:before {\n content: \"\\eb2b\";\n}\n\n.codicon-play:before {\n content: \"\\eb2c\";\n}\n\n.codicon-run:before {\n content: \"\\eb2c\";\n}\n\n.codicon-plug:before {\n content: \"\\eb2d\";\n}\n\n.codicon-preserve-case:before {\n content: \"\\eb2e\";\n}\n\n.codicon-preview:before {\n content: \"\\eb2f\";\n}\n\n.codicon-project:before {\n content: \"\\eb30\";\n}\n\n.codicon-pulse:before {\n content: \"\\eb31\";\n}\n\n.codicon-question:before {\n content: \"\\eb32\";\n}\n\n.codicon-quote:before {\n content: \"\\eb33\";\n}\n\n.codicon-radio-tower:before {\n content: \"\\eb34\";\n}\n\n.codicon-reactions:before {\n content: \"\\eb35\";\n}\n\n.codicon-references:before {\n content: \"\\eb36\";\n}\n\n.codicon-refresh:before {\n content: \"\\eb37\";\n}\n\n.codicon-regex:before {\n content: \"\\eb38\";\n}\n\n.codicon-remote-explorer:before {\n content: \"\\eb39\";\n}\n\n.codicon-remote:before {\n content: \"\\eb3a\";\n}\n\n.codicon-remove:before {\n content: \"\\eb3b\";\n}\n\n.codicon-replace-all:before {\n content: \"\\eb3c\";\n}\n\n.codicon-replace:before {\n content: \"\\eb3d\";\n}\n\n.codicon-repo-clone:before {\n content: \"\\eb3e\";\n}\n\n.codicon-repo-force-push:before {\n content: \"\\eb3f\";\n}\n\n.codicon-repo-pull:before {\n content: \"\\eb40\";\n}\n\n.codicon-repo-push:before {\n content: \"\\eb41\";\n}\n\n.codicon-report:before {\n content: \"\\eb42\";\n}\n\n.codicon-request-changes:before {\n content: \"\\eb43\";\n}\n\n.codicon-rocket:before {\n content: \"\\eb44\";\n}\n\n.codicon-root-folder-opened:before {\n content: \"\\eb45\";\n}\n\n.codicon-root-folder:before {\n content: \"\\eb46\";\n}\n\n.codicon-rss:before {\n content: \"\\eb47\";\n}\n\n.codicon-ruby:before {\n content: \"\\eb48\";\n}\n\n.codicon-save-all:before {\n content: \"\\eb49\";\n}\n\n.codicon-save-as:before {\n content: \"\\eb4a\";\n}\n\n.codicon-save:before {\n content: \"\\eb4b\";\n}\n\n.codicon-screen-full:before {\n content: \"\\eb4c\";\n}\n\n.codicon-screen-normal:before {\n content: \"\\eb4d\";\n}\n\n.codicon-search-stop:before {\n content: \"\\eb4e\";\n}\n\n.codicon-server:before {\n content: \"\\eb50\";\n}\n\n.codicon-settings-gear:before {\n content: \"\\eb51\";\n}\n\n.codicon-settings:before {\n content: \"\\eb52\";\n}\n\n.codicon-shield:before {\n content: \"\\eb53\";\n}\n\n.codicon-smiley:before {\n content: \"\\eb54\";\n}\n\n.codicon-sort-precedence:before {\n content: \"\\eb55\";\n}\n\n.codicon-split-horizontal:before {\n content: \"\\eb56\";\n}\n\n.codicon-split-vertical:before {\n content: \"\\eb57\";\n}\n\n.codicon-squirrel:before {\n content: \"\\eb58\";\n}\n\n.codicon-star-full:before {\n content: \"\\eb59\";\n}\n\n.codicon-star-half:before {\n content: \"\\eb5a\";\n}\n\n.codicon-symbol-class:before {\n content: \"\\eb5b\";\n}\n\n.codicon-symbol-color:before {\n content: \"\\eb5c\";\n}\n\n.codicon-symbol-constant:before {\n content: \"\\eb5d\";\n}\n\n.codicon-symbol-enum-member:before {\n content: \"\\eb5e\";\n}\n\n.codicon-symbol-field:before {\n content: \"\\eb5f\";\n}\n\n.codicon-symbol-file:before {\n content: \"\\eb60\";\n}\n\n.codicon-symbol-interface:before {\n content: \"\\eb61\";\n}\n\n.codicon-symbol-keyword:before {\n content: \"\\eb62\";\n}\n\n.codicon-symbol-misc:before {\n content: \"\\eb63\";\n}\n\n.codicon-symbol-operator:before {\n content: \"\\eb64\";\n}\n\n.codicon-symbol-property:before {\n content: \"\\eb65\";\n}\n\n.codicon-wrench:before {\n content: \"\\eb65\";\n}\n\n.codicon-wrench-subaction:before {\n content: \"\\eb65\";\n}\n\n.codicon-symbol-snippet:before {\n content: \"\\eb66\";\n}\n\n.codicon-tasklist:before {\n content: \"\\eb67\";\n}\n\n.codicon-telescope:before {\n content: \"\\eb68\";\n}\n\n.codicon-text-size:before {\n content: \"\\eb69\";\n}\n\n.codicon-three-bars:before {\n content: \"\\eb6a\";\n}\n\n.codicon-thumbsdown:before {\n content: \"\\eb6b\";\n}\n\n.codicon-thumbsup:before {\n content: \"\\eb6c\";\n}\n\n.codicon-tools:before {\n content: \"\\eb6d\";\n}\n\n.codicon-triangle-down:before {\n content: \"\\eb6e\";\n}\n\n.codicon-triangle-left:before {\n content: \"\\eb6f\";\n}\n\n.codicon-triangle-right:before {\n content: \"\\eb70\";\n}\n\n.codicon-triangle-up:before {\n content: \"\\eb71\";\n}\n\n.codicon-twitter:before {\n content: \"\\eb72\";\n}\n\n.codicon-unfold:before {\n content: \"\\eb73\";\n}\n\n.codicon-unlock:before {\n content: \"\\eb74\";\n}\n\n.codicon-unmute:before {\n content: \"\\eb75\";\n}\n\n.codicon-unverified:before {\n content: \"\\eb76\";\n}\n\n.codicon-verified:before {\n content: \"\\eb77\";\n}\n\n.codicon-versions:before {\n content: \"\\eb78\";\n}\n\n.codicon-vm-active:before {\n content: \"\\eb79\";\n}\n\n.codicon-vm-outline:before {\n content: \"\\eb7a\";\n}\n\n.codicon-vm-running:before {\n content: \"\\eb7b\";\n}\n\n.codicon-watch:before {\n content: \"\\eb7c\";\n}\n\n.codicon-whitespace:before {\n content: \"\\eb7d\";\n}\n\n.codicon-whole-word:before {\n content: \"\\eb7e\";\n}\n\n.codicon-window:before {\n content: \"\\eb7f\";\n}\n\n.codicon-word-wrap:before {\n content: \"\\eb80\";\n}\n\n.codicon-zoom-in:before {\n content: \"\\eb81\";\n}\n\n.codicon-zoom-out:before {\n content: \"\\eb82\";\n}\n\n.codicon-list-filter:before {\n content: \"\\eb83\";\n}\n\n.codicon-list-flat:before {\n content: \"\\eb84\";\n}\n\n.codicon-list-selection:before {\n content: \"\\eb85\";\n}\n\n.codicon-selection:before {\n content: \"\\eb85\";\n}\n\n.codicon-list-tree:before {\n content: \"\\eb86\";\n}\n\n.codicon-debug-breakpoint-function-unverified:before {\n content: \"\\eb87\";\n}\n\n.codicon-debug-breakpoint-function:before {\n content: \"\\eb88\";\n}\n\n.codicon-debug-breakpoint-function-disabled:before {\n content: \"\\eb88\";\n}\n\n.codicon-debug-stackframe-active:before {\n content: \"\\eb89\";\n}\n\n.codicon-circle-small-filled:before {\n content: \"\\eb8a\";\n}\n\n.codicon-debug-stackframe-dot:before {\n content: \"\\eb8a\";\n}\n\n.codicon-terminal-decoration-mark:before {\n content: \"\\eb8a\";\n}\n\n.codicon-debug-stackframe:before {\n content: \"\\eb8b\";\n}\n\n.codicon-debug-stackframe-focused:before {\n content: \"\\eb8b\";\n}\n\n.codicon-debug-breakpoint-unsupported:before {\n content: \"\\eb8c\";\n}\n\n.codicon-symbol-string:before {\n content: \"\\eb8d\";\n}\n\n.codicon-debug-reverse-continue:before {\n content: \"\\eb8e\";\n}\n\n.codicon-debug-step-back:before {\n content: \"\\eb8f\";\n}\n\n.codicon-debug-restart-frame:before {\n content: \"\\eb90\";\n}\n\n.codicon-debug-alt:before {\n content: \"\\eb91\";\n}\n\n.codicon-call-incoming:before {\n content: \"\\eb92\";\n}\n\n.codicon-call-outgoing:before {\n content: \"\\eb93\";\n}\n\n.codicon-menu:before {\n content: \"\\eb94\";\n}\n\n.codicon-expand-all:before {\n content: \"\\eb95\";\n}\n\n.codicon-feedback:before {\n content: \"\\eb96\";\n}\n\n.codicon-git-pull-request-reviewer:before {\n content: \"\\eb96\";\n}\n\n.codicon-group-by-ref-type:before {\n content: \"\\eb97\";\n}\n\n.codicon-ungroup-by-ref-type:before {\n content: \"\\eb98\";\n}\n\n.codicon-account:before {\n content: \"\\eb99\";\n}\n\n.codicon-git-pull-request-assignee:before {\n content: \"\\eb99\";\n}\n\n.codicon-bell-dot:before {\n content: \"\\eb9a\";\n}\n\n.codicon-debug-console:before {\n content: \"\\eb9b\";\n}\n\n.codicon-library:before {\n content: \"\\eb9c\";\n}\n\n.codicon-output:before {\n content: \"\\eb9d\";\n}\n\n.codicon-run-all:before {\n content: \"\\eb9e\";\n}\n\n.codicon-sync-ignored:before {\n content: \"\\eb9f\";\n}\n\n.codicon-pinned:before {\n content: \"\\eba0\";\n}\n\n.codicon-github-inverted:before {\n content: \"\\eba1\";\n}\n\n.codicon-server-process:before {\n content: \"\\eba2\";\n}\n\n.codicon-server-environment:before {\n content: \"\\eba3\";\n}\n\n.codicon-pass:before {\n content: \"\\eba4\";\n}\n\n.codicon-issue-closed:before {\n content: \"\\eba4\";\n}\n\n.codicon-stop-circle:before {\n content: \"\\eba5\";\n}\n\n.codicon-play-circle:before {\n content: \"\\eba6\";\n}\n\n.codicon-record:before {\n content: \"\\eba7\";\n}\n\n.codicon-debug-alt-small:before {\n content: \"\\eba8\";\n}\n\n.codicon-vm-connect:before {\n content: \"\\eba9\";\n}\n\n.codicon-cloud:before {\n content: \"\\ebaa\";\n}\n\n.codicon-merge:before {\n content: \"\\ebab\";\n}\n\n.codicon-export:before {\n content: \"\\ebac\";\n}\n\n.codicon-graph-left:before {\n content: \"\\ebad\";\n}\n\n.codicon-magnet:before {\n content: \"\\ebae\";\n}\n\n.codicon-notebook:before {\n content: \"\\ebaf\";\n}\n\n.codicon-redo:before {\n content: \"\\ebb0\";\n}\n\n.codicon-check-all:before {\n content: \"\\ebb1\";\n}\n\n.codicon-pinned-dirty:before {\n content: \"\\ebb2\";\n}\n\n.codicon-pass-filled:before {\n content: \"\\ebb3\";\n}\n\n.codicon-circle-large-filled:before {\n content: \"\\ebb4\";\n}\n\n.codicon-circle-large:before {\n content: \"\\ebb5\";\n}\n\n.codicon-circle-large-outline:before {\n content: \"\\ebb5\";\n}\n\n.codicon-combine:before {\n content: \"\\ebb6\";\n}\n\n.codicon-gather:before {\n content: \"\\ebb6\";\n}\n\n.codicon-table:before {\n content: \"\\ebb7\";\n}\n\n.codicon-variable-group:before {\n content: \"\\ebb8\";\n}\n\n.codicon-type-hierarchy:before {\n content: \"\\ebb9\";\n}\n\n.codicon-type-hierarchy-sub:before {\n content: \"\\ebba\";\n}\n\n.codicon-type-hierarchy-super:before {\n content: \"\\ebbb\";\n}\n\n.codicon-git-pull-request-create:before {\n content: \"\\ebbc\";\n}\n\n.codicon-run-above:before {\n content: \"\\ebbd\";\n}\n\n.codicon-run-below:before {\n content: \"\\ebbe\";\n}\n\n.codicon-notebook-template:before {\n content: \"\\ebbf\";\n}\n\n.codicon-debug-rerun:before {\n content: \"\\ebc0\";\n}\n\n.codicon-workspace-trusted:before {\n content: \"\\ebc1\";\n}\n\n.codicon-workspace-untrusted:before {\n content: \"\\ebc2\";\n}\n\n.codicon-workspace-unknown:before {\n content: \"\\ebc3\";\n}\n\n.codicon-terminal-cmd:before {\n content: \"\\ebc4\";\n}\n\n.codicon-terminal-debian:before {\n content: \"\\ebc5\";\n}\n\n.codicon-terminal-linux:before {\n content: \"\\ebc6\";\n}\n\n.codicon-terminal-powershell:before {\n content: \"\\ebc7\";\n}\n\n.codicon-terminal-tmux:before {\n content: \"\\ebc8\";\n}\n\n.codicon-terminal-ubuntu:before {\n content: \"\\ebc9\";\n}\n\n.codicon-terminal-bash:before {\n content: \"\\ebca\";\n}\n\n.codicon-arrow-swap:before {\n content: \"\\ebcb\";\n}\n\n.codicon-copy:before {\n content: \"\\ebcc\";\n}\n\n.codicon-person-add:before {\n content: \"\\ebcd\";\n}\n\n.codicon-filter-filled:before {\n content: \"\\ebce\";\n}\n\n.codicon-wand:before {\n content: \"\\ebcf\";\n}\n\n.codicon-debug-line-by-line:before {\n content: \"\\ebd0\";\n}\n\n.codicon-inspect:before {\n content: \"\\ebd1\";\n}\n\n.codicon-layers:before {\n content: \"\\ebd2\";\n}\n\n.codicon-layers-dot:before {\n content: \"\\ebd3\";\n}\n\n.codicon-layers-active:before {\n content: \"\\ebd4\";\n}\n\n.codicon-compass:before {\n content: \"\\ebd5\";\n}\n\n.codicon-compass-dot:before {\n content: \"\\ebd6\";\n}\n\n.codicon-compass-active:before {\n content: \"\\ebd7\";\n}\n\n.codicon-azure:before {\n content: \"\\ebd8\";\n}\n\n.codicon-issue-draft:before {\n content: \"\\ebd9\";\n}\n\n.codicon-git-pull-request-closed:before {\n content: \"\\ebda\";\n}\n\n.codicon-git-pull-request-draft:before {\n content: \"\\ebdb\";\n}\n\n.codicon-debug-all:before {\n content: \"\\ebdc\";\n}\n\n.codicon-debug-coverage:before {\n content: \"\\ebdd\";\n}\n\n.codicon-run-errors:before {\n content: \"\\ebde\";\n}\n\n.codicon-folder-library:before {\n content: \"\\ebdf\";\n}\n\n.codicon-debug-continue-small:before {\n content: \"\\ebe0\";\n}\n\n.codicon-beaker-stop:before {\n content: \"\\ebe1\";\n}\n\n.codicon-graph-line:before {\n content: \"\\ebe2\";\n}\n\n.codicon-graph-scatter:before {\n content: \"\\ebe3\";\n}\n\n.codicon-pie-chart:before {\n content: \"\\ebe4\";\n}\n\n.codicon-bracket:before {\n content: \"\\eb0f\";\n}\n\n.codicon-bracket-dot:before {\n content: \"\\ebe5\";\n}\n\n.codicon-bracket-error:before {\n content: \"\\ebe6\";\n}\n\n.codicon-lock-small:before {\n content: \"\\ebe7\";\n}\n\n.codicon-azure-devops:before {\n content: \"\\ebe8\";\n}\n\n.codicon-verified-filled:before {\n content: \"\\ebe9\";\n}\n\n.codicon-newline:before {\n content: \"\\ebea\";\n}\n\n.codicon-layout:before {\n content: \"\\ebeb\";\n}\n\n.codicon-layout-activitybar-left:before {\n content: \"\\ebec\";\n}\n\n.codicon-layout-activitybar-right:before {\n content: \"\\ebed\";\n}\n\n.codicon-layout-panel-left:before {\n content: \"\\ebee\";\n}\n\n.codicon-layout-panel-center:before {\n content: \"\\ebef\";\n}\n\n.codicon-layout-panel-justify:before {\n content: \"\\ebf0\";\n}\n\n.codicon-layout-panel-right:before {\n content: \"\\ebf1\";\n}\n\n.codicon-layout-panel:before {\n content: \"\\ebf2\";\n}\n\n.codicon-layout-sidebar-left:before {\n content: \"\\ebf3\";\n}\n\n.codicon-layout-sidebar-right:before {\n content: \"\\ebf4\";\n}\n\n.codicon-layout-statusbar:before {\n content: \"\\ebf5\";\n}\n\n.codicon-layout-menubar:before {\n content: \"\\ebf6\";\n}\n\n.codicon-layout-centered:before {\n content: \"\\ebf7\";\n}\n\n.codicon-target:before {\n content: \"\\ebf8\";\n}\n\n.codicon-indent:before {\n content: \"\\ebf9\";\n}\n\n.codicon-record-small:before {\n content: \"\\ebfa\";\n}\n\n.codicon-error-small:before {\n content: \"\\ebfb\";\n}\n\n.codicon-terminal-decoration-error:before {\n content: \"\\ebfb\";\n}\n\n.codicon-arrow-circle-down:before {\n content: \"\\ebfc\";\n}\n\n.codicon-arrow-circle-left:before {\n content: \"\\ebfd\";\n}\n\n.codicon-arrow-circle-right:before {\n content: \"\\ebfe\";\n}\n\n.codicon-arrow-circle-up:before {\n content: \"\\ebff\";\n}\n\n.codicon-layout-sidebar-right-off:before {\n content: \"\\ec00\";\n}\n\n.codicon-layout-panel-off:before {\n content: \"\\ec01\";\n}\n\n.codicon-layout-sidebar-left-off:before {\n content: \"\\ec02\";\n}\n\n.codicon-blank:before {\n content: \"\\ec03\";\n}\n\n.codicon-heart-filled:before {\n content: \"\\ec04\";\n}\n\n.codicon-map:before {\n content: \"\\ec05\";\n}\n\n.codicon-map-horizontal:before {\n content: \"\\ec05\";\n}\n\n.codicon-fold-horizontal:before {\n content: \"\\ec05\";\n}\n\n.codicon-map-filled:before {\n content: \"\\ec06\";\n}\n\n.codicon-map-horizontal-filled:before {\n content: \"\\ec06\";\n}\n\n.codicon-fold-horizontal-filled:before {\n content: \"\\ec06\";\n}\n\n.codicon-circle-small:before {\n content: \"\\ec07\";\n}\n\n.codicon-bell-slash:before {\n content: \"\\ec08\";\n}\n\n.codicon-bell-slash-dot:before {\n content: \"\\ec09\";\n}\n\n.codicon-comment-unresolved:before {\n content: \"\\ec0a\";\n}\n\n.codicon-git-pull-request-go-to-changes:before {\n content: \"\\ec0b\";\n}\n\n.codicon-git-pull-request-new-changes:before {\n content: \"\\ec0c\";\n}\n\n.codicon-search-fuzzy:before {\n content: \"\\ec0d\";\n}\n\n.codicon-comment-draft:before {\n content: \"\\ec0e\";\n}\n\n.codicon-send:before {\n content: \"\\ec0f\";\n}\n\n.codicon-sparkle:before {\n content: \"\\ec10\";\n}\n\n.codicon-insert:before {\n content: \"\\ec11\";\n}\n\n.codicon-mic:before {\n content: \"\\ec12\";\n}\n\n.codicon-thumbsdown-filled:before {\n content: \"\\ec13\";\n}\n\n.codicon-thumbsup-filled:before {\n content: \"\\ec14\";\n}\n\n.codicon-coffee:before {\n content: \"\\ec15\";\n}\n\n.codicon-snake:before {\n content: \"\\ec16\";\n}\n\n.codicon-game:before {\n content: \"\\ec17\";\n}\n\n.codicon-vr:before {\n content: \"\\ec18\";\n}\n\n.codicon-chip:before {\n content: \"\\ec19\";\n}\n\n.codicon-piano:before {\n content: \"\\ec1a\";\n}\n\n.codicon-music:before {\n content: \"\\ec1b\";\n}\n\n.codicon-mic-filled:before {\n content: \"\\ec1c\";\n}\n\n.codicon-repo-fetch:before {\n content: \"\\ec1d\";\n}\n\n.codicon-copilot:before {\n content: \"\\ec1e\";\n}\n\n.codicon-lightbulb-sparkle:before {\n content: \"\\ec1f\";\n}\n\n.codicon-robot:before {\n content: \"\\ec20\";\n}\n\n.codicon-sparkle-filled:before {\n content: \"\\ec21\";\n}\n\n.codicon-diff-single:before {\n content: \"\\ec22\";\n}\n\n.codicon-diff-multiple:before {\n content: \"\\ec23\";\n}\n\n.codicon-surround-with:before {\n content: \"\\ec24\";\n}\n\n.codicon-share:before {\n content: \"\\ec25\";\n}\n\n.codicon-git-stash:before {\n content: \"\\ec26\";\n}\n\n.codicon-git-stash-apply:before {\n content: \"\\ec27\";\n}\n\n.codicon-git-stash-pop:before {\n content: \"\\ec28\";\n}\n\n.codicon-vscode:before {\n content: \"\\ec29\";\n}\n\n.codicon-vscode-insiders:before {\n content: \"\\ec2a\";\n}\n\n.codicon-code-oss:before {\n content: \"\\ec2b\";\n}\n\n.codicon-run-coverage:before {\n content: \"\\ec2c\";\n}\n\n.codicon-run-all-coverage:before {\n content: \"\\ec2d\";\n}\n\n.codicon-coverage:before {\n content: \"\\ec2e\";\n}\n\n.codicon-github-project:before {\n content: \"\\ec2f\";\n}\n\n.codicon-map-vertical:before {\n content: \"\\ec30\";\n}\n\n.codicon-fold-vertical:before {\n content: \"\\ec30\";\n}\n\n.codicon-map-vertical-filled:before {\n content: \"\\ec31\";\n}\n\n.codicon-fold-vertical-filled:before {\n content: \"\\ec31\";\n}\n\n.codicon-go-to-search:before {\n content: \"\\ec32\";\n}\n\n.codicon-percentage:before {\n content: \"\\ec33\";\n}\n\n.codicon-sort-percentage:before {\n content: \"\\ec33\";\n}\n\n.codicon-attach:before {\n content: \"\\ec34\";\n}\n\n.codicon-go-to-editing-session:before {\n content: \"\\ec35\";\n}\n\n.codicon-edit-session:before {\n content: \"\\ec36\";\n}\n\n.codicon-code-review:before {\n content: \"\\ec37\";\n}\n\n.codicon-copilot-warning:before {\n content: \"\\ec38\";\n}\n\n.codicon-python:before {\n content: \"\\ec39\";\n}\n\n.codicon-git-fetch:before {\n content: \"\\f101\";\n}\n\n@layer kol-component {\n /* :host implicitly inherits font-size, see below */\n :host {\n color: inherit;\n display: contents;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n /* this rules overwrites the fixed font size from codicon */\n :host > i,\n :host > i::before {\n font-size: inherit !important;\n }\n}";
|
|
20978
|
+
const defaultStyleCss$y = "/* forward the rem function */\n@font-face {\n font-family: \"kolicons\";\n src: url(\"kolicons.eot?t=1766411598417\"); /* IE9*/\n src: url(\"kolicons.eot?t=1766411598417#iefix\") format(\"embedded-opentype\"), url(\"kolicons.woff2?t=1766411598417\") format(\"woff2\"), url(\"kolicons.woff?t=1766411598417\") format(\"woff\"), url(\"kolicons.ttf?t=1766411598417\") format(\"truetype\"), url(\"kolicons.svg?t=1766411598417#kolicons\") format(\"svg\"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=\" kolicon-\"] {\n font-family: \"kolicons\" !important;\n font-size: 16px;\n font-style: normal;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: \"\\ea01\";\n}\n\n.kolicon-alert-info::before {\n content: \"\\ea02\";\n}\n\n.kolicon-alert-success::before {\n content: \"\\ea03\";\n}\n\n.kolicon-alert-warning::before {\n content: \"\\ea04\";\n}\n\n.kolicon-check::before {\n content: \"\\ea05\";\n}\n\n.kolicon-chevron-double-left::before {\n content: \"\\ea06\";\n}\n\n.kolicon-chevron-double-right::before {\n content: \"\\ea07\";\n}\n\n.kolicon-chevron-down::before {\n content: \"\\ea08\";\n}\n\n.kolicon-chevron-left::before {\n content: \"\\ea09\";\n}\n\n.kolicon-chevron-right::before {\n content: \"\\ea0a\";\n}\n\n.kolicon-chevron-up::before {\n content: \"\\ea0b\";\n}\n\n.kolicon-cogwheel::before {\n content: \"\\ea0c\";\n}\n\n.kolicon-cross::before {\n content: \"\\ea0d\";\n}\n\n.kolicon-eye-closed::before {\n content: \"\\ea0e\";\n}\n\n.kolicon-eye::before {\n content: \"\\ea0f\";\n}\n\n.kolicon-kolibri::before {\n content: \"\\ea10\";\n}\n\n.kolicon-link-external::before {\n content: \"\\ea11\";\n}\n\n.kolicon-link::before {\n content: \"\\ea12\";\n}\n\n.kolicon-minus::before {\n content: \"\\ea13\";\n}\n\n.kolicon-plus::before {\n content: \"\\ea14\";\n}\n\n.kolicon-settings::before {\n content: \"\\ea15\";\n}\n\n.kolicon-sort-asc::before {\n content: \"\\ea16\";\n}\n\n.kolicon-sort-desc::before {\n content: \"\\ea17\";\n}\n\n.kolicon-sort-neutral::before {\n content: \"\\ea18\";\n}\n\n.kolicon-version::before {\n content: \"\\ea19\";\n}\n\n@layer kol-component {\n /* :host implicitly inherits font-size, see below */\n :host {\n color: inherit;\n display: contents;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n}";
|
|
20841
20979
|
|
|
20842
20980
|
class KolIcon {
|
|
20843
20981
|
render() {
|
|
20844
20982
|
const hasAriaLabel = this.state._label.length > 0;
|
|
20845
|
-
return (hAsync(Host, { key: '
|
|
20983
|
+
return (hAsync(Host, { key: '0310e88acca66642d5a2f1b0783c4b51e7d57178', exportparts: "icon", class: BEM_CLASS_ICON }, hAsync("i", { key: 'defda52dda0896dfc3aa3271e34a679cad2d81de', "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? this.state._label : undefined, class: clsx(BEM_CLASS_ICON__ICON, this.state._icons), part: "icon", role: hasAriaLabel ? 'img' : 'presentation' })));
|
|
20846
20984
|
}
|
|
20847
20985
|
constructor(hostRef) {
|
|
20848
20986
|
registerInstance(this, hostRef);
|
|
20849
20987
|
this.state = {
|
|
20850
|
-
_icons: '
|
|
20988
|
+
_icons: 'kolicon-logo',
|
|
20851
20989
|
_label: '',
|
|
20852
20990
|
};
|
|
20853
20991
|
this.controller = new IconController(this);
|
|
@@ -20919,7 +21057,7 @@ class KolImage {
|
|
|
20919
21057
|
this.validateSrcset(this._srcset);
|
|
20920
21058
|
}
|
|
20921
21059
|
render() {
|
|
20922
|
-
return (hAsync("img", { key: '
|
|
21060
|
+
return (hAsync("img", { key: 'c17e012e1bef61d097f2b64d9b22714ef02a793e', class: "kol-image", alt: this.state._alt, loading: this.state._loading, sizes: this.state._sizes, src: this.state._src, srcset: this.state._srcset }));
|
|
20923
21061
|
}
|
|
20924
21062
|
static get watchers() { return {
|
|
20925
21063
|
"_alt": ["validateAlt"],
|
|
@@ -21095,10 +21233,7 @@ const InputWrapperFc$1 = (_a) => {
|
|
|
21095
21233
|
return hAsync(InputFc, Object.assign({ class: clsx('kol-checkbox__input', classNames) }, other, { type: "checkbox" }));
|
|
21096
21234
|
};
|
|
21097
21235
|
const CheckboxFc = (_a) => {
|
|
21098
|
-
var _b;
|
|
21099
21236
|
var { class: classNames, variant = 'default', icon, inputProps } = _a, other = __rest(_a, ["class", "variant", "icon", "inputProps"]);
|
|
21100
|
-
const showMsg = checkHasMsg(inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg, inputProps === null || inputProps === void 0 ? void 0 : inputProps.touched);
|
|
21101
|
-
const msgType = typeof (inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg) === 'string' ? 'error' : (_b = inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg) === null || _b === void 0 ? void 0 : _b._type;
|
|
21102
21237
|
const cssVariants = {
|
|
21103
21238
|
[`kol-checkbox--variant-${variant}`]: true,
|
|
21104
21239
|
[`kol-checkbox--checked`]: inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked,
|
|
@@ -21106,7 +21241,7 @@ const CheckboxFc = (_a) => {
|
|
|
21106
21241
|
['kol-checkbox--disabled']: Boolean(inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled),
|
|
21107
21242
|
['kol-checkbox--required']: Boolean(inputProps === null || inputProps === void 0 ? void 0 : inputProps.required),
|
|
21108
21243
|
['kol-checkbox--touched']: Boolean(inputProps === null || inputProps === void 0 ? void 0 : inputProps.touched),
|
|
21109
|
-
[`kol-checkbox--${
|
|
21244
|
+
[`kol-checkbox--${getMsgType(inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg)}`]: Boolean(isMsgDefinedAndInputTouched(inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg, inputProps === null || inputProps === void 0 ? void 0 : inputProps.touched)),
|
|
21110
21245
|
};
|
|
21111
21246
|
return (hAsync("label", Object.assign({ class: clsx('kol-checkbox', cssVariants, classNames) }, other), hAsync(IconWrapperFc, { label: "", icons: icon }), hAsync(InputWrapperFc$1, Object.assign({}, inputProps))));
|
|
21112
21247
|
};
|
|
@@ -21151,11 +21286,9 @@ const KolFieldControlFc = (props, children) => {
|
|
|
21151
21286
|
const { class: classNames, id, disabled, label, hideLabel, labelAlign, renderNoTooltip, hint, renderNoHint, tooltipAlign, accessKey, shortKey, msg, touched, required, readonly, fieldControlInputProps, fieldControlLabelProps, fieldControlTooltipProps, fieldControlHintProps } = props, other = __rest(props, ["class", "id", "disabled", "label", "hideLabel", "labelAlign", "renderNoTooltip", "hint", "renderNoHint", "tooltipAlign", "accessKey", "shortKey", "msg", "touched", "required", "readonly", "fieldControlInputProps", "fieldControlLabelProps", "fieldControlTooltipProps", "fieldControlHintProps"]);
|
|
21152
21287
|
const canShowHint = !renderNoHint;
|
|
21153
21288
|
const canShowTooltip = !renderNoTooltip;
|
|
21154
|
-
const showMsg = checkHasMsg(msg, touched);
|
|
21155
21289
|
const hasExpertSlot = showExpertSlot(label);
|
|
21156
21290
|
const useTooltipInsteadOfLabel = canShowTooltip && !hasExpertSlot && hideLabel;
|
|
21157
21291
|
const badgeText = buildBadgeTextString(accessKey, shortKey);
|
|
21158
|
-
const msgType = typeof msg === 'string' ? 'error' : msg === null || msg === void 0 ? void 0 : msg._type;
|
|
21159
21292
|
const components = [
|
|
21160
21293
|
hAsync(Fragment, null, hAsync(InputContainer, Object.assign({}, fieldControlInputProps), children), useTooltipInsteadOfLabel && (hAsync(FormFieldTooltipFc, Object.assign({}, (fieldControlTooltipProps || {}), { id: id, label: label, align: tooltipAlign, badgeText: badgeText })))),
|
|
21161
21294
|
hAsync(KolFormFieldLabelFc, Object.assign({}, (fieldControlLabelProps || {}), { id: id, baseClassName: "kol-field-control", class: clsx(fieldControlLabelProps === null || fieldControlLabelProps === void 0 ? void 0 : fieldControlLabelProps.class, {
|
|
@@ -21171,7 +21304,7 @@ const KolFieldControlFc = (props, children) => {
|
|
|
21171
21304
|
['kol-field-control--touched']: Boolean(touched),
|
|
21172
21305
|
['kol-field-control--hide-label']: Boolean(hideLabel),
|
|
21173
21306
|
['kol-field-control--read-only']: Boolean(readonly),
|
|
21174
|
-
[`kol-field-control--${
|
|
21307
|
+
[`kol-field-control--${getMsgType(msg)}`]: Boolean(isMsgDefinedAndInputTouched(msg, touched)),
|
|
21175
21308
|
[`kol-field-control--label-align-${labelAlign}`]: Boolean(labelAlign),
|
|
21176
21309
|
};
|
|
21177
21310
|
return (hAsync("div", Object.assign({ class: clsx('kol-field-control', stateCssClasses, classNames) }, other), components, canShowHint && hAsync(KolFormFieldHintFc, Object.assign({}, (fieldControlHintProps || {}), { baseClassName: "kol-field-control", id: id, hint: hint }))));
|
|
@@ -21218,9 +21351,9 @@ class KolInputCheckbox {
|
|
|
21218
21351
|
async getValue() {
|
|
21219
21352
|
return this.getModelValue();
|
|
21220
21353
|
}
|
|
21221
|
-
async
|
|
21354
|
+
async focus() {
|
|
21222
21355
|
var _a;
|
|
21223
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21356
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
21224
21357
|
}
|
|
21225
21358
|
getFormFieldProps() {
|
|
21226
21359
|
return {
|
|
@@ -21269,7 +21402,7 @@ class KolInputCheckbox {
|
|
|
21269
21402
|
return this.state._icons.unchecked;
|
|
21270
21403
|
}
|
|
21271
21404
|
render() {
|
|
21272
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21405
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'ec5131cbe333e9c70beb3093e6049cd2a7b29ee3' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: '9ca2d1404c837728bc0aa590ae41c9a4f2922286' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: 'f8611e8d234ba85cacf861bb4ef328bfdff24b3f' }, this.getInputProps())))));
|
|
21273
21406
|
}
|
|
21274
21407
|
constructor(hostRef) {
|
|
21275
21408
|
registerInstance(this, hostRef);
|
|
@@ -21291,9 +21424,9 @@ class KolInputCheckbox {
|
|
|
21291
21424
|
_checked: false,
|
|
21292
21425
|
_hideMsg: false,
|
|
21293
21426
|
_icons: {
|
|
21294
|
-
checked: '
|
|
21295
|
-
indeterminate: '
|
|
21296
|
-
unchecked: '
|
|
21427
|
+
checked: 'kolicon-check',
|
|
21428
|
+
indeterminate: 'kolicon-minus',
|
|
21429
|
+
unchecked: 'kolicon-cross',
|
|
21297
21430
|
},
|
|
21298
21431
|
_id: `id-${nonce()}`,
|
|
21299
21432
|
_indeterminate: false,
|
|
@@ -21443,7 +21576,7 @@ class KolInputCheckbox {
|
|
|
21443
21576
|
"state": [32],
|
|
21444
21577
|
"inputHasFocus": [32],
|
|
21445
21578
|
"getValue": [64],
|
|
21446
|
-
"
|
|
21579
|
+
"focus": [64]
|
|
21447
21580
|
},
|
|
21448
21581
|
"$listeners$": undefined,
|
|
21449
21582
|
"$lazyBundleId$": "-",
|
|
@@ -21481,9 +21614,9 @@ class KolInputColor {
|
|
|
21481
21614
|
var _a;
|
|
21482
21615
|
return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.value;
|
|
21483
21616
|
}
|
|
21484
|
-
async
|
|
21617
|
+
async focus() {
|
|
21485
21618
|
var _a;
|
|
21486
|
-
(_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21619
|
+
return Promise.resolve((_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus());
|
|
21487
21620
|
}
|
|
21488
21621
|
get hasSuggestions() {
|
|
21489
21622
|
return Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
@@ -21507,7 +21640,7 @@ class KolInputColor {
|
|
|
21507
21640
|
return Object.assign(Object.assign({ state: Object.assign(Object.assign({}, other), { _suggestions: [] }) }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus });
|
|
21508
21641
|
}
|
|
21509
21642
|
render() {
|
|
21510
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21643
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'd7f090923ef2b8df82a290ee833f2df41827e0a5' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'fb34b66b8a3e2b738126404f243f3e8d8f60518d', state: this.state, class: "kol-input-color__inputs-wrapper" }, hAsync("div", { key: '411e03c780c12cb63d2a8a845d98246dc6e1d988', class: "kol-input-color__inputs-wrapper" }, hAsync(InputStateWrapper, Object.assign({ key: '36e1c82a36db19f6c9d099bfa59c9a700bc9e52a', class: "kol-input-color__input kol-input-color__input--color" }, this.getInputColorProps())), hAsync(InputStateWrapper, Object.assign({ key: 'f78dc8e52058280fd86bc860ce5e5d6156fd2dc2', class: "kol-input-color__input kol-input-color__input--text" }, this.getInputTextProps()))))));
|
|
21511
21644
|
}
|
|
21512
21645
|
constructor(hostRef) {
|
|
21513
21646
|
registerInstance(this, hostRef);
|
|
@@ -21676,7 +21809,7 @@ class KolInputColor {
|
|
|
21676
21809
|
"state": [32],
|
|
21677
21810
|
"inputHasFocus": [32],
|
|
21678
21811
|
"getValue": [64],
|
|
21679
|
-
"
|
|
21812
|
+
"focus": [64]
|
|
21680
21813
|
},
|
|
21681
21814
|
"$listeners$": undefined,
|
|
21682
21815
|
"$lazyBundleId$": "-",
|
|
@@ -21840,9 +21973,9 @@ class KolInputDate {
|
|
|
21840
21973
|
var _a;
|
|
21841
21974
|
return this.inputRef && this.remapValue((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value);
|
|
21842
21975
|
}
|
|
21843
|
-
async
|
|
21976
|
+
async focus() {
|
|
21844
21977
|
var _a;
|
|
21845
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21978
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
21846
21979
|
}
|
|
21847
21980
|
async reset() {
|
|
21848
21981
|
this.state = Object.assign(Object.assign({}, this.state), { _value: null });
|
|
@@ -21882,7 +22015,7 @@ class KolInputDate {
|
|
|
21882
22015
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onChange: this.onChange, onInput: this.onInput });
|
|
21883
22016
|
}
|
|
21884
22017
|
render() {
|
|
21885
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22018
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '59e86a706c43960542852d52a626bef671dffa23' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'b54ca89fe36ea8ffd5bf34a8cffb4069cd2988e4', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'ac2aff3346ffe47c2737af4edba6a80d172135d5' }, this.getInputProps())))));
|
|
21886
22019
|
}
|
|
21887
22020
|
constructor(hostRef) {
|
|
21888
22021
|
registerInstance(this, hostRef);
|
|
@@ -22099,7 +22232,7 @@ class KolInputDate {
|
|
|
22099
22232
|
"state": [32],
|
|
22100
22233
|
"inputHasFocus": [32],
|
|
22101
22234
|
"getValue": [64],
|
|
22102
|
-
"
|
|
22235
|
+
"focus": [64],
|
|
22103
22236
|
"reset": [64]
|
|
22104
22237
|
},
|
|
22105
22238
|
"$listeners$": undefined,
|
|
@@ -22233,9 +22366,9 @@ class KolInputEmail {
|
|
|
22233
22366
|
var _a;
|
|
22234
22367
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
22235
22368
|
}
|
|
22236
|
-
async
|
|
22369
|
+
async focus() {
|
|
22237
22370
|
var _a;
|
|
22238
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22371
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
22239
22372
|
}
|
|
22240
22373
|
getFormFieldProps() {
|
|
22241
22374
|
return {
|
|
@@ -22259,7 +22392,7 @@ class KolInputEmail {
|
|
|
22259
22392
|
} });
|
|
22260
22393
|
}
|
|
22261
22394
|
render() {
|
|
22262
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22395
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'b928aefae94934a5228743ae822ae084a06020ae' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '1ac6b8e275457032564a4cbcd637832d1dbbd7d1', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '47435cb931d3da58fa1c84db183d04037c6fdb6b' }, this.getInputProps())))));
|
|
22263
22396
|
}
|
|
22264
22397
|
constructor(hostRef) {
|
|
22265
22398
|
registerInstance(this, hostRef);
|
|
@@ -22454,7 +22587,7 @@ class KolInputEmail {
|
|
|
22454
22587
|
"state": [32],
|
|
22455
22588
|
"inputHasFocus": [32],
|
|
22456
22589
|
"getValue": [64],
|
|
22457
|
-
"
|
|
22590
|
+
"focus": [64]
|
|
22458
22591
|
},
|
|
22459
22592
|
"$listeners$": undefined,
|
|
22460
22593
|
"$lazyBundleId$": "-",
|
|
@@ -22491,9 +22624,9 @@ class KolInputFile {
|
|
|
22491
22624
|
var _a;
|
|
22492
22625
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.files;
|
|
22493
22626
|
}
|
|
22494
|
-
async
|
|
22627
|
+
async focus() {
|
|
22495
22628
|
var _a;
|
|
22496
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22629
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
22497
22630
|
}
|
|
22498
22631
|
async reset() {
|
|
22499
22632
|
this.controller.setFormAssociatedValue('');
|
|
@@ -22521,7 +22654,7 @@ class KolInputFile {
|
|
|
22521
22654
|
} });
|
|
22522
22655
|
}
|
|
22523
22656
|
render() {
|
|
22524
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22657
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'a14988909e629c6489b2ce2f407dda7bae698bf3' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'ba6804552442038f26ce7d4addd67ef09a0b15fd', state: this.state }, hAsync("span", { key: 'bde71a76d0c08a6b4c6147f5668c0e2c15089081', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(InputStateWrapper, Object.assign({ key: '3abd09ca85cfdaee144eb7166eece0a71e8312d5' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: '7736d06eb59743e25bfad68b90cf8d7cf48b85db', class: "kol-input-container__button", _label: this.translateDataBrowseText, _buttonVariant: "primary", _disabled: this._disabled }))));
|
|
22525
22658
|
}
|
|
22526
22659
|
constructor(hostRef) {
|
|
22527
22660
|
registerInstance(this, hostRef);
|
|
@@ -22708,7 +22841,7 @@ class KolInputFile {
|
|
|
22708
22841
|
"state": [32],
|
|
22709
22842
|
"inputHasFocus": [32],
|
|
22710
22843
|
"getValue": [64],
|
|
22711
|
-
"
|
|
22844
|
+
"focus": [64],
|
|
22712
22845
|
"reset": [64]
|
|
22713
22846
|
},
|
|
22714
22847
|
"$listeners$": undefined,
|
|
@@ -22770,9 +22903,9 @@ class KolInputNumber {
|
|
|
22770
22903
|
async getValue() {
|
|
22771
22904
|
return this.remapValue(this.state._value);
|
|
22772
22905
|
}
|
|
22773
|
-
async
|
|
22906
|
+
async focus() {
|
|
22774
22907
|
var _a;
|
|
22775
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22908
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
22776
22909
|
}
|
|
22777
22910
|
setInitialValueType(value) {
|
|
22778
22911
|
if (this.controller.isNumberString(value)) {
|
|
@@ -22821,7 +22954,7 @@ class KolInputNumber {
|
|
|
22821
22954
|
var _a, _b;
|
|
22822
22955
|
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.stepUp();
|
|
22823
22956
|
(_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.focus();
|
|
22824
|
-
}, disabled: this._disabled || this._readOnly }, hAsync(KolIconFc, { icons: "
|
|
22957
|
+
}, disabled: this._disabled || this._readOnly }, hAsync(KolIconFc, { icons: "kolicon-plus", label: "" })));
|
|
22825
22958
|
}
|
|
22826
22959
|
getStepDownButton() {
|
|
22827
22960
|
if (this._disabled || this._readOnly) {
|
|
@@ -22831,10 +22964,10 @@ class KolInputNumber {
|
|
|
22831
22964
|
var _a, _b;
|
|
22832
22965
|
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.stepDown();
|
|
22833
22966
|
(_b = this.inputRef) === null || _b === void 0 ? void 0 : _b.focus();
|
|
22834
|
-
}, disabled: this._disabled || this._readOnly }, hAsync(KolIconFc, { icons: "
|
|
22967
|
+
}, disabled: this._disabled || this._readOnly }, hAsync(KolIconFc, { icons: "kolicon-minus", label: "" })));
|
|
22835
22968
|
}
|
|
22836
22969
|
render() {
|
|
22837
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22970
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '07aa7fdbf82349d7f5a44a5996520b1c24e49731' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '0fed1f5634f212f5909eb9296b180b7ed4ca5014', state: this.state, startAdornment: this.getStepDownButton(), endAdornment: this.getStepUpButton() }, hAsync(InputStateWrapper, Object.assign({ key: '829301460ae419b52ca49329154788966a09d49d' }, this.getInputProps())))));
|
|
22838
22971
|
}
|
|
22839
22972
|
constructor(hostRef) {
|
|
22840
22973
|
registerInstance(this, hostRef);
|
|
@@ -23030,7 +23163,7 @@ class KolInputNumber {
|
|
|
23030
23163
|
"_initialValueType": [32],
|
|
23031
23164
|
"inputHasFocus": [32],
|
|
23032
23165
|
"getValue": [64],
|
|
23033
|
-
"
|
|
23166
|
+
"focus": [64]
|
|
23034
23167
|
},
|
|
23035
23168
|
"$listeners$": undefined,
|
|
23036
23169
|
"$lazyBundleId$": "-",
|
|
@@ -23045,9 +23178,9 @@ class KolInputPassword {
|
|
|
23045
23178
|
var _a;
|
|
23046
23179
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23047
23180
|
}
|
|
23048
|
-
async
|
|
23181
|
+
async focus() {
|
|
23049
23182
|
var _a;
|
|
23050
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23183
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23051
23184
|
}
|
|
23052
23185
|
getFormFieldProps() {
|
|
23053
23186
|
return {
|
|
@@ -23078,10 +23211,10 @@ class KolInputPassword {
|
|
|
23078
23211
|
var _a;
|
|
23079
23212
|
this._passwordVisible = !this._passwordVisible;
|
|
23080
23213
|
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23081
|
-
}, icon:
|
|
23214
|
+
}, icon: `${this._passwordVisible ? 'kolicon-eye-closed' : 'kolicon-eye'}`, disabled: this._disabled }));
|
|
23082
23215
|
}
|
|
23083
23216
|
render() {
|
|
23084
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23217
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'd6361d33d0044122bb523d59e9f40ab85c189586' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'a814d107185bbd10e0c1a877efbeb0099479e532', state: this.state, endAdornment: this.getShowPasswordButton() }, hAsync(InputStateWrapper, Object.assign({ key: '446355c1043fd63b01502ec193a65c5087ccd061' }, this.getInputProps())))));
|
|
23085
23218
|
}
|
|
23086
23219
|
constructor(hostRef) {
|
|
23087
23220
|
registerInstance(this, hostRef);
|
|
@@ -23278,7 +23411,7 @@ class KolInputPassword {
|
|
|
23278
23411
|
"_passwordVisible": [32],
|
|
23279
23412
|
"inputHasFocus": [32],
|
|
23280
23413
|
"getValue": [64],
|
|
23281
|
-
"
|
|
23414
|
+
"focus": [64]
|
|
23282
23415
|
},
|
|
23283
23416
|
"$listeners$": undefined,
|
|
23284
23417
|
"$lazyBundleId$": "-",
|
|
@@ -23291,16 +23424,13 @@ const InputWrapperFc = (_a) => {
|
|
|
23291
23424
|
return hAsync(InputFc, Object.assign({ class: clsx('kol-input-radio__input', classNames) }, other, { type: "radio" }));
|
|
23292
23425
|
};
|
|
23293
23426
|
const RadioFc = (_a) => {
|
|
23294
|
-
var _b;
|
|
23295
23427
|
var { class: classNames, inputProps } = _a, other = __rest(_a, ["class", "inputProps"]);
|
|
23296
|
-
const showMsg = checkHasMsg(inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg, inputProps === null || inputProps === void 0 ? void 0 : inputProps.touched);
|
|
23297
|
-
const msgType = typeof (inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg) === 'string' ? 'error' : (_b = inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg) === null || _b === void 0 ? void 0 : _b._type;
|
|
23298
23428
|
const cssVariants = {
|
|
23299
23429
|
['kol-input-radio--checked']: inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked,
|
|
23300
23430
|
['kol-input-radio--disabled']: Boolean(inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled),
|
|
23301
23431
|
['kol-input-radio--required']: Boolean(inputProps === null || inputProps === void 0 ? void 0 : inputProps.required),
|
|
23302
23432
|
['kol-input-radio--touched']: Boolean(inputProps === null || inputProps === void 0 ? void 0 : inputProps.touched),
|
|
23303
|
-
[`kol-input-radio--${
|
|
23433
|
+
[`kol-input-radio--${getMsgType(inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg)}`]: Boolean(isMsgDefinedAndInputTouched(inputProps === null || inputProps === void 0 ? void 0 : inputProps.msg, inputProps === null || inputProps === void 0 ? void 0 : inputProps.touched)),
|
|
23304
23434
|
};
|
|
23305
23435
|
return (hAsync("label", Object.assign({ class: clsx('kol-input-radio', cssVariants, classNames) }, other), hAsync(InputWrapperFc, Object.assign({}, inputProps))));
|
|
23306
23436
|
};
|
|
@@ -23333,9 +23463,25 @@ class KolInputRadio {
|
|
|
23333
23463
|
async getValue() {
|
|
23334
23464
|
return this._value;
|
|
23335
23465
|
}
|
|
23336
|
-
async
|
|
23466
|
+
async focus() {
|
|
23337
23467
|
var _a;
|
|
23338
|
-
(_a = this.
|
|
23468
|
+
return Promise.resolve((_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23469
|
+
}
|
|
23470
|
+
getFocusableInput() {
|
|
23471
|
+
const options = this.state._options;
|
|
23472
|
+
const isComponentDisabled = Boolean(this.state._disabled);
|
|
23473
|
+
const selectedIndex = options.findIndex((option) => option.value === this.state._value && !isComponentDisabled && !option.disabled);
|
|
23474
|
+
if (selectedIndex !== -1) {
|
|
23475
|
+
const input = this.inputRefs.get(selectedIndex);
|
|
23476
|
+
if (input) {
|
|
23477
|
+
return input;
|
|
23478
|
+
}
|
|
23479
|
+
}
|
|
23480
|
+
const firstEnabledIndex = options.findIndex((option) => !isComponentDisabled && !option.disabled);
|
|
23481
|
+
if (firstEnabledIndex !== -1) {
|
|
23482
|
+
return this.inputRefs.get(firstEnabledIndex);
|
|
23483
|
+
}
|
|
23484
|
+
return undefined;
|
|
23339
23485
|
}
|
|
23340
23486
|
getFormFieldProps() {
|
|
23341
23487
|
return {
|
|
@@ -23356,7 +23502,7 @@ class KolInputRadio {
|
|
|
23356
23502
|
};
|
|
23357
23503
|
}
|
|
23358
23504
|
render() {
|
|
23359
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23505
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '92d8248e7753a62c69731e9df04859569cdced72' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
|
|
23360
23506
|
}
|
|
23361
23507
|
calculateDisabled(option) {
|
|
23362
23508
|
return Boolean(this.state._disabled) || Boolean(option.disabled);
|
|
@@ -23377,7 +23523,12 @@ class KolInputRadio {
|
|
|
23377
23523
|
getInputProps(option, id, index, selected) {
|
|
23378
23524
|
return {
|
|
23379
23525
|
state: this.state,
|
|
23380
|
-
inputProps: Object.assign(Object.assign({ id: id, ref:
|
|
23526
|
+
inputProps: Object.assign(Object.assign({ id: id, ref: (ref) => {
|
|
23527
|
+
this.catchInputRef(index)(ref);
|
|
23528
|
+
if (selected) {
|
|
23529
|
+
this.catchRef(ref);
|
|
23530
|
+
}
|
|
23531
|
+
}, 'aria-label': this.state._hideLabel && typeof option.label === 'string' ? option.label : undefined, type: 'radio', name: this.state._name || this.state._id, value: `-${index}`, checked: selected, disabled: this.calculateDisabled(option) }, this.controller.onFacade), { onChange: this.onChange, onClick: undefined, onInput: this.onInput, onKeyDown: this.onKeyDown.bind(this), onFocus: (event) => {
|
|
23381
23532
|
this.controller.onFacade.onFocus(event);
|
|
23382
23533
|
this.inputHasFocus = true;
|
|
23383
23534
|
}, onBlur: (event) => {
|
|
@@ -23393,9 +23544,18 @@ class KolInputRadio {
|
|
|
23393
23544
|
}
|
|
23394
23545
|
constructor(hostRef) {
|
|
23395
23546
|
registerInstance(this, hostRef);
|
|
23547
|
+
this.inputRefs = new Map();
|
|
23396
23548
|
this.catchRef = (ref) => {
|
|
23397
23549
|
this.inputRef = ref;
|
|
23398
23550
|
};
|
|
23551
|
+
this.catchInputRef = (index) => (ref) => {
|
|
23552
|
+
if (ref) {
|
|
23553
|
+
this.inputRefs.set(index, ref);
|
|
23554
|
+
}
|
|
23555
|
+
else {
|
|
23556
|
+
this.inputRefs.delete(index);
|
|
23557
|
+
}
|
|
23558
|
+
};
|
|
23399
23559
|
this._disabled = false;
|
|
23400
23560
|
this._hideMsg = false;
|
|
23401
23561
|
this._hideLabel = false;
|
|
@@ -23539,7 +23699,7 @@ class KolInputRadio {
|
|
|
23539
23699
|
"state": [32],
|
|
23540
23700
|
"inputHasFocus": [32],
|
|
23541
23701
|
"getValue": [64],
|
|
23542
|
-
"
|
|
23702
|
+
"focus": [64]
|
|
23543
23703
|
},
|
|
23544
23704
|
"$listeners$": undefined,
|
|
23545
23705
|
"$lazyBundleId$": "-",
|
|
@@ -23586,9 +23746,9 @@ class InputRangeController extends InputIconController {
|
|
|
23586
23746
|
const defaultStyleCss$o = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)):has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input {\n background-color: transparent;\n width: 100%;\n min-width: var(--a11y-min-size);\n }\n .kol-input:focus {\n outline: none;\n }\n .kol-input-range__inputs-wrapper {\n display: flex;\n flex-grow: 1;\n flex-direction: row;\n align-items: center;\n }\n .kol-input-range__input--number {\n width: var(--kolibri-input-range--input-number--width);\n }\n .kol-input-range__input--range {\n background-color: #d3d3d3;\n display: inline-block;\n /* Design-Hack - related with flex-grow */\n width: 0;\n height: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n margin: 0;\n padding: 0;\n flex-grow: 1;\n line-height: 1.5;\n appearance: none;\n border: 1px solid #000;\n }\n .kol-input-range__input:not(:disabled).kol-input-range__input--range::-webkit-slider-thumb {\n cursor: pointer;\n }\n .kol-input-range__input--range::-webkit-slider-thumb {\n background-color: #000;\n border-radius: 20px;\n width: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n -webkit-appearance: none;\n }\n @media (prefers-contrast: more) or (forced-colors: active) {\n .kol-input-range__input--range::-webkit-slider-thumb {\n outline: 1px solid currentColor;\n }\n }\n .kol-input-range__input:not(:disabled).kol-input-range__input--range::-moz-range-thumb {\n cursor: pointer;\n }\n .kol-input-range__input--range::-moz-range-thumb {\n background-color: #000;\n border-radius: 20px;\n width: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(20 * 1rem / var(--kolibri-root-font-size, 16));\n -moz-appearance: none;\n }\n}";
|
|
23587
23747
|
|
|
23588
23748
|
class KolInputRange {
|
|
23589
|
-
async
|
|
23749
|
+
async focus() {
|
|
23590
23750
|
var _a;
|
|
23591
|
-
(_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23751
|
+
return Promise.resolve((_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23592
23752
|
}
|
|
23593
23753
|
getSanitizedFloatValue(value) {
|
|
23594
23754
|
const floatValue = parseFloat(value);
|
|
@@ -23658,7 +23818,7 @@ class KolInputRange {
|
|
|
23658
23818
|
const inputsWrapperStyle = {
|
|
23659
23819
|
'--kolibri-input-range--input-number--width': `calc(${String(this.state._max).length}ch + 2em)`,
|
|
23660
23820
|
};
|
|
23661
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23821
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '128521202cad30daac6a5e334513aad511029f3b' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '98d1c89be7699bb28677a790637886806715d8e0', state: this.state }, hAsync("div", { key: '9627b928c7ee9e73ce5f480497ad17c7a033b62c', class: "kol-input-range__inputs-wrapper", style: inputsWrapperStyle }, hAsync(InputStateWrapper, Object.assign({ key: 'c36646209ed76278516782cb8ecd3548cb3c37e6', class: "kol-input-range__input kol-input-range__input--range" }, this.getInputRangeProps())), hAsync(InputStateWrapper, Object.assign({ key: 'ef934123d89354c534fca7af38ad10219cc82ef6', class: "kol-input-range__input kol-input-range__input--number" }, this.getInputNumberProps()))), this.hasSuggestions && hAsync(SuggestionsFc, { key: '3a2b0903e406bcc81271762351fc2464067fdc0a', id: this.state._id, suggestions: this.state._suggestions }))));
|
|
23662
23822
|
}
|
|
23663
23823
|
constructor(hostRef) {
|
|
23664
23824
|
registerInstance(this, hostRef);
|
|
@@ -23843,7 +24003,7 @@ class KolInputRange {
|
|
|
23843
24003
|
"state": [32],
|
|
23844
24004
|
"_initialValueType": [32],
|
|
23845
24005
|
"inputHasFocus": [32],
|
|
23846
|
-
"
|
|
24006
|
+
"focus": [64],
|
|
23847
24007
|
"getValue": [64]
|
|
23848
24008
|
},
|
|
23849
24009
|
"$listeners$": undefined,
|
|
@@ -23859,9 +24019,9 @@ class KolInputText {
|
|
|
23859
24019
|
var _a;
|
|
23860
24020
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23861
24021
|
}
|
|
23862
|
-
async
|
|
24022
|
+
async focus() {
|
|
23863
24023
|
var _a;
|
|
23864
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24024
|
+
return Promise.resolve((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
23865
24025
|
}
|
|
23866
24026
|
async selectionStart() {
|
|
23867
24027
|
var _a;
|
|
@@ -23904,7 +24064,7 @@ class KolInputText {
|
|
|
23904
24064
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, ariaDescribedBy }, this.controller.onFacade), { onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown });
|
|
23905
24065
|
}
|
|
23906
24066
|
render() {
|
|
23907
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
24067
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'ec2cfd8fbf4c25e0c67c2a40dac12689abf21ebc' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '4dbf08a6efd9e6aeba414911e28eb542f1a9f931', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'e72fa71c0713918915a4c99ff36624c413dc2709' }, this.getInputProps())))));
|
|
23908
24068
|
}
|
|
23909
24069
|
constructor(hostRef) {
|
|
23910
24070
|
registerInstance(this, hostRef);
|
|
@@ -24124,7 +24284,7 @@ class KolInputText {
|
|
|
24124
24284
|
"state": [32],
|
|
24125
24285
|
"inputHasFocus": [32],
|
|
24126
24286
|
"getValue": [64],
|
|
24127
|
-
"
|
|
24287
|
+
"focus": [64],
|
|
24128
24288
|
"selectionStart": [64],
|
|
24129
24289
|
"selectioconEnd": [64],
|
|
24130
24290
|
"setSelectionRange": [64],
|
|
@@ -24169,7 +24329,7 @@ class KolKolibri {
|
|
|
24169
24329
|
}
|
|
24170
24330
|
render() {
|
|
24171
24331
|
const fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;
|
|
24172
|
-
return (hAsync("svg", { key: '
|
|
24332
|
+
return (hAsync("svg", { key: '4c7a91b347f1030b6243bcd73fe80f18ea4870d9', class: "kol-kolibri", role: "img", "aria-label": this.translateKolibriLogo, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 600 600", fill: fillColor }, hAsync("path", { key: 'acfbbaa7bac5f630eabf483f3072c293d23ced9c', d: "M353 322L213 304V434L353 322Z" }), hAsync("path", { key: '950473ab86c2b6101bef184b6388a0c9a313fbb3', d: "M209 564V304L149 434L209 564Z" }), hAsync("path", { key: '113e568b1cbf311a9f1c656526d7712c6a0dc129', d: "M357 316L417 250L361 210L275 244L357 316Z" }), hAsync("path", { key: '23b033e7e9884099469fea1ca2fef1af56a2ea29', d: "M329 218L237 92L250 222L272 241L329 218Z" }), hAsync("path", { key: '61c8946c0a73d39039b3008f29a9f1750ed90af2', d: "M353 318L35 36L213 300L353 318Z" }), hAsync("path", { key: '8c76c669b7edbfdada18a00e82c8760c3eb55987', d: "M391 286L565 272L421 252L391 286Z" }), this.state._labeled === true && (hAsync("text", { key: '01f6d92e065a1b17072de2438671cdd208a416f2', class: "kol-kolibri__text", x: "250", y: "525", fill: fillColor }, "KoliBri"))));
|
|
24173
24333
|
}
|
|
24174
24334
|
validateColor(value) {
|
|
24175
24335
|
validateColor(this, value, {
|
|
@@ -24222,12 +24382,12 @@ class KolLink {
|
|
|
24222
24382
|
this._inline = true;
|
|
24223
24383
|
this._tooltipAlign = 'right';
|
|
24224
24384
|
}
|
|
24225
|
-
async
|
|
24385
|
+
async focus() {
|
|
24226
24386
|
var _a;
|
|
24227
|
-
|
|
24387
|
+
return Promise.resolve((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
24228
24388
|
}
|
|
24229
24389
|
render() {
|
|
24230
|
-
return (hAsync(KolLinkWcTag, { key: '
|
|
24390
|
+
return (hAsync(KolLinkWcTag, { key: '5e0f4af8177fdafc0ba16a394edc95f5d6893700', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _inline: this._inline, _label: this._label, _on: this._on, _shortKey: this._shortKey, _target: this._target, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { key: 'c8d72e1786756ae591534397e749430e1c45d875', name: "expert", slot: "expert" })));
|
|
24231
24391
|
}
|
|
24232
24392
|
static get style() { return {
|
|
24233
24393
|
default: defaultStyleCss$l
|
|
@@ -24253,7 +24413,7 @@ class KolLink {
|
|
|
24253
24413
|
"_shortKey": [1, "_short-key"],
|
|
24254
24414
|
"_target": [1],
|
|
24255
24415
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
24256
|
-
"
|
|
24416
|
+
"focus": [64]
|
|
24257
24417
|
},
|
|
24258
24418
|
"$listeners$": undefined,
|
|
24259
24419
|
"$lazyBundleId$": "-",
|
|
@@ -24274,12 +24434,12 @@ class KolLinkButton {
|
|
|
24274
24434
|
this._tooltipAlign = 'right';
|
|
24275
24435
|
this._variant = 'normal';
|
|
24276
24436
|
}
|
|
24277
|
-
async
|
|
24437
|
+
async focus() {
|
|
24278
24438
|
var _a;
|
|
24279
|
-
|
|
24439
|
+
return Promise.resolve((_a = this.linkWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
24280
24440
|
}
|
|
24281
24441
|
render() {
|
|
24282
|
-
return (hAsync(KolLinkWcTag, { key: '
|
|
24442
|
+
return (hAsync(KolLinkWcTag, { key: 'a9d694a90a5814edc15412794c3af252fdbc7665', ref: this.catchRef, _accessKey: this._accessKey, _ariaCurrentValue: this._ariaCurrentValue, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _customClass: this._customClass, _disabled: this._disabled, _download: this._download, _hideLabel: this._hideLabel, _href: this._href, _icons: this._icons, _label: this._label, _on: this._on, _shortKey: this._shortKey, _target: this._target, _tooltipAlign: this._tooltipAlign, _buttonVariant: this._variant }, hAsync("slot", { key: 'fbbcf6a131b99d68279875ee92e8f1a5273270c9', name: "expert", slot: "expert" })));
|
|
24283
24443
|
}
|
|
24284
24444
|
static get style() { return {
|
|
24285
24445
|
default: defaultStyleCss$k
|
|
@@ -24305,7 +24465,7 @@ class KolLinkButton {
|
|
|
24305
24465
|
"_target": [1],
|
|
24306
24466
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
24307
24467
|
"_variant": [1],
|
|
24308
|
-
"
|
|
24468
|
+
"focus": [64]
|
|
24309
24469
|
},
|
|
24310
24470
|
"$listeners$": undefined,
|
|
24311
24471
|
"$lazyBundleId$": "-",
|
|
@@ -24372,16 +24532,16 @@ class KolLinkWc {
|
|
|
24372
24532
|
_icons: {},
|
|
24373
24533
|
};
|
|
24374
24534
|
}
|
|
24375
|
-
async
|
|
24535
|
+
async focus() {
|
|
24376
24536
|
var _a;
|
|
24377
|
-
(_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24537
|
+
return Promise.resolve((_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
24378
24538
|
}
|
|
24379
24539
|
render() {
|
|
24380
24540
|
var _a;
|
|
24381
24541
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
24382
24542
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
24383
24543
|
const ariaDescription = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim();
|
|
24384
|
-
return (hAsync(Host, { key: '
|
|
24544
|
+
return (hAsync(Host, { key: '036d5449e5e5ba234434e744d8af66052329a192' }, hAsync("a", Object.assign({ key: 'b20d668b61b1f0c279f5cf37d434927c69478891', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-disabled": this.state._disabled ? 'true' : undefined, "aria-expanded": typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined, "aria-owns": this.state._ariaOwns, "aria-label": this.state._hideLabel && typeof this.state._label === 'string'
|
|
24385
24545
|
? `${this.state._label}${isExternal ? ` (${this.translateOpenLinkInTab})` : ''}`
|
|
24386
24546
|
: undefined, "aria-keyshortcuts": this.state._shortKey, class: clsx('kol-link', {
|
|
24387
24547
|
'kol-link--disabled': this.state._disabled === true,
|
|
@@ -24391,7 +24551,7 @@ class KolLinkWc {
|
|
|
24391
24551
|
'kol-link--inline': this.state._inline === true,
|
|
24392
24552
|
'kol-link--standalone': this.state._inline === false,
|
|
24393
24553
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
24394
|
-
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '
|
|
24554
|
+
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '90a4bc4ffd0a6b87c9097120d3539bc69bdda156', class: "kol-link__text", badgeText: this.state._accessKey || this.state._shortKey, icons: this.state._icons, hideLabel: this.state._hideLabel, label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { key: '1aca2a1ed6caf2a68f7f6260b328ec7b6c993794', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: 'c20d6e6b9e7d09c6ff48a059f9ec0388076c721e', class: "kol-link__icon", _label: this.state._hideLabel ? '' : this.translateOpenLinkInTab, _icons: 'kolicon-link-external', "aria-hidden": this.state._hideLabel }))), this.state._hideLabel === true && (hAsync(KolTooltipWcTag, { key: '5f5b325f8e61e71f666bf45e067b1a487a8e296e', "aria-hidden": "true", class: "kol-link__tooltip", ref: (ref) => (this.tooltipRef = ref), hidden: hasExpertSlot, _badgeText: this.state._accessKey || this.state._shortKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href }))));
|
|
24395
24555
|
}
|
|
24396
24556
|
validateAccessKey(value) {
|
|
24397
24557
|
validateAccessKey(this, value);
|
|
@@ -24542,7 +24702,7 @@ class KolLinkWc {
|
|
|
24542
24702
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
24543
24703
|
"_buttonVariant": [1, "_button-variant"],
|
|
24544
24704
|
"state": [32],
|
|
24545
|
-
"
|
|
24705
|
+
"focus": [64]
|
|
24546
24706
|
},
|
|
24547
24707
|
"$listeners$": undefined,
|
|
24548
24708
|
"$lazyBundleId$": "-",
|
|
@@ -24550,89 +24710,28 @@ class KolLinkWc {
|
|
|
24550
24710
|
}; }
|
|
24551
24711
|
}
|
|
24552
24712
|
|
|
24553
|
-
const
|
|
24554
|
-
const validateModalVariant = (component, value) => {
|
|
24555
|
-
watchValidator(component, '_variant', (value) => typeof value === 'string' && ModalVariantPropTypeOptions.includes(value), new Set(ModalVariantPropTypeOptions), value);
|
|
24556
|
-
};
|
|
24557
|
-
|
|
24558
|
-
const defaultStyleCss$j = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n.kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: \"header close\" \"content content\";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n}\n.kol-card__header {\n align-self: start;\n grid-area: header;\n}\n.kol-card__content {\n align-self: stretch;\n grid-area: content;\n}\n.kol-card__close-button {\n grid-area: close;\n}\n\n@layer kol-component {\n .kol-modal {\n min-height: var(--a11y-min-size);\n padding: 0;\n border: 0;\n }\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .kol-modal__close-button {\n position: absolute;\n top: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n right: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}";
|
|
24713
|
+
const defaultStyleCss$j = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n.kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: \"header close\" \"content content\";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n}\n.kol-card__header {\n align-self: start;\n grid-area: header;\n}\n.kol-card__content {\n align-self: stretch;\n grid-area: content;\n}\n.kol-card__close-button {\n grid-area: close;\n}\n\n@layer kol-component {\n .kol-dialog,\n .kol-modal {\n min-height: var(--a11y-min-size);\n padding: 0;\n border: 0;\n }\n .kol-dialog::backdrop,\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .kol-dialog__close-button,\n .kol-modal__close-button {\n position: absolute;\n top: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n right: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}";
|
|
24559
24714
|
|
|
24560
24715
|
class KolModal {
|
|
24561
24716
|
constructor(hostRef) {
|
|
24562
24717
|
registerInstance(this, hostRef);
|
|
24563
|
-
this.
|
|
24564
|
-
|
|
24565
|
-
await this.closeModal();
|
|
24566
|
-
},
|
|
24718
|
+
this.catchRef = (ref) => {
|
|
24719
|
+
this.dialogRef = ref;
|
|
24567
24720
|
};
|
|
24568
24721
|
this._width = '100%';
|
|
24569
24722
|
this._variant = 'blank';
|
|
24570
|
-
this.state = {
|
|
24571
|
-
_label: '',
|
|
24572
|
-
_width: '100%',
|
|
24573
|
-
};
|
|
24574
|
-
}
|
|
24575
|
-
disconnectedCallback() {
|
|
24576
|
-
void this.closeModal();
|
|
24577
|
-
}
|
|
24578
|
-
handleNativeCloseEvent() {
|
|
24579
|
-
var _a, _b;
|
|
24580
|
-
(_b = (_a = this.state._on) === null || _a === void 0 ? void 0 : _a.onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
24581
|
-
if (this.host) {
|
|
24582
|
-
dispatchDomEvent(this.host, KolEvent.close);
|
|
24583
|
-
}
|
|
24584
24723
|
}
|
|
24585
24724
|
async openModal() {
|
|
24586
24725
|
var _a;
|
|
24587
|
-
(_a = this.
|
|
24726
|
+
await ((_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.openModal());
|
|
24588
24727
|
}
|
|
24589
24728
|
async closeModal() {
|
|
24590
|
-
var _a
|
|
24591
|
-
|
|
24729
|
+
var _a;
|
|
24730
|
+
await ((_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.closeModal());
|
|
24592
24731
|
}
|
|
24593
24732
|
render() {
|
|
24594
|
-
return (hAsync(
|
|
24595
|
-
'kol-modal__blank': this.state._variant === 'blank',
|
|
24596
|
-
'kol-modal__card': this.state._variant === 'card',
|
|
24597
|
-
}), onCancel: handleCancelOverlay, onClose: this.handleNativeCloseEvent.bind(this), ref: (el) => {
|
|
24598
|
-
this.refDialog = el;
|
|
24599
|
-
}, style: {
|
|
24600
|
-
width: this.state._width,
|
|
24601
|
-
} }, this.state._variant === 'blank' && hAsync("slot", { key: 'ed6110b0ddd43e0d544c3420965e93253b4c37db' }), this.state._variant === 'card' && (hAsync(KolCardWcTag, { key: '8d041e7c444343a6d5fe9fe7dffc08837bfbefb6', _label: this.state._label, _hasCloser: true, _on: this.on }, hAsync("slot", { key: '804e674e6376a29f6c2e357a70a5603f3ce777c1' })))));
|
|
24602
|
-
}
|
|
24603
|
-
validateLabel(value) {
|
|
24604
|
-
validateLabel(this, value, {
|
|
24605
|
-
required: true,
|
|
24606
|
-
});
|
|
24607
|
-
}
|
|
24608
|
-
validateOn(value) {
|
|
24609
|
-
if (typeof value === 'object' && value !== null) {
|
|
24610
|
-
const callbacks = {};
|
|
24611
|
-
if (typeof value.onClose === 'function' || value.onClose === true) {
|
|
24612
|
-
callbacks.onClose = value.onClose;
|
|
24613
|
-
}
|
|
24614
|
-
setState(this, '_on', callbacks);
|
|
24615
|
-
}
|
|
24733
|
+
return (hAsync(KolDialogWcTag, { key: '127b4504fccd6dd10ac9fc7fa198102f2e774ed5', ref: this.catchRef, _label: this._label, _on: this._on, _variant: this._variant, _width: this._width }, hAsync("slot", { key: '663f015f3f2f5b067539d9f7789289ca55e79225' })));
|
|
24616
24734
|
}
|
|
24617
|
-
validateWidth(value) {
|
|
24618
|
-
validateWidth(this, value);
|
|
24619
|
-
}
|
|
24620
|
-
validateVariant(value) {
|
|
24621
|
-
validateModalVariant(this, value);
|
|
24622
|
-
}
|
|
24623
|
-
componentWillLoad() {
|
|
24624
|
-
this.validateLabel(this._label);
|
|
24625
|
-
this.validateOn(this._on);
|
|
24626
|
-
this.validateWidth(this._width);
|
|
24627
|
-
this.validateVariant(this._variant);
|
|
24628
|
-
}
|
|
24629
|
-
get host() { return getElement(this); }
|
|
24630
|
-
static get watchers() { return {
|
|
24631
|
-
"_label": ["validateLabel"],
|
|
24632
|
-
"_on": ["validateOn"],
|
|
24633
|
-
"_width": ["validateWidth"],
|
|
24634
|
-
"_variant": ["validateVariant"]
|
|
24635
|
-
}; }
|
|
24636
24735
|
static get style() { return {
|
|
24637
24736
|
default: defaultStyleCss$j
|
|
24638
24737
|
}; }
|
|
@@ -24644,7 +24743,6 @@ class KolModal {
|
|
|
24644
24743
|
"_on": [16],
|
|
24645
24744
|
"_width": [1],
|
|
24646
24745
|
"_variant": [1],
|
|
24647
|
-
"state": [32],
|
|
24648
24746
|
"openModal": [64],
|
|
24649
24747
|
"closeModal": [64]
|
|
24650
24748
|
},
|
|
@@ -24683,7 +24781,7 @@ class KolNav {
|
|
|
24683
24781
|
'kol-nav__list--nested': props.deep > 0,
|
|
24684
24782
|
'kol-nav__list--vertical': props.deep !== 0,
|
|
24685
24783
|
}), id: props.deep > 0 ? props.id : undefined }, props.links.map((link, index) => {
|
|
24686
|
-
return this.li(props.collapsible, props.
|
|
24784
|
+
return this.li(props.collapsible, props.deep, index, link, props.id);
|
|
24687
24785
|
})));
|
|
24688
24786
|
};
|
|
24689
24787
|
this._collapsible = true;
|
|
@@ -24706,19 +24804,40 @@ class KolNav {
|
|
|
24706
24804
|
collapseChildren(children) {
|
|
24707
24805
|
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: this.state._expandedChildren.filter((searchChildren) => searchChildren !== children) });
|
|
24708
24806
|
}
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24712
|
-
|
|
24713
|
-
? ((_a = entry._icons) === null || _a === void 0 ? void 0 : _a.toString()) || (this.state._hideLabel ? 'codicon codicon-symbol-method' : undefined)
|
|
24714
|
-
: undefined,
|
|
24715
|
-
right: collapsible && hasChildren ? 'codicon codicon-' + (expanded ? 'remove' : 'add') : undefined,
|
|
24807
|
+
buildIconObject(collapsible, expanded, leftIcon) {
|
|
24808
|
+
const icon = {
|
|
24809
|
+
left: '',
|
|
24810
|
+
right: '',
|
|
24716
24811
|
};
|
|
24812
|
+
if (this.state._hasIconsWhenExpanded && leftIcon) {
|
|
24813
|
+
icon.left = leftIcon;
|
|
24814
|
+
}
|
|
24815
|
+
if (this.state._hideLabel) {
|
|
24816
|
+
if (leftIcon) {
|
|
24817
|
+
icon.left = leftIcon;
|
|
24818
|
+
}
|
|
24819
|
+
else {
|
|
24820
|
+
icon.left = 'kolicon-link';
|
|
24821
|
+
}
|
|
24822
|
+
}
|
|
24823
|
+
if (collapsible) {
|
|
24824
|
+
if (expanded) {
|
|
24825
|
+
icon.right = 'kolicon-minus';
|
|
24826
|
+
}
|
|
24827
|
+
else {
|
|
24828
|
+
icon.right = 'kolicon-plus';
|
|
24829
|
+
}
|
|
24830
|
+
}
|
|
24831
|
+
return icon;
|
|
24832
|
+
}
|
|
24833
|
+
entry(collapsible, hasChildren, entry, expanded, ariaID) {
|
|
24834
|
+
var _a;
|
|
24835
|
+
const icons = this.buildIconObject(collapsible && hasChildren, expanded, (_a = entry._icons) === null || _a === void 0 ? void 0 : _a.toString());
|
|
24717
24836
|
return (hAsync("div", { class: "kol-nav__entry-wrapper" }, entryIsLink(entry) ? (hAsync(KolLinkWcTag, Object.assign({ class: clsx('kol-nav__entry kol-nav__entry--link', {
|
|
24718
24837
|
'kol-nav__entry--collapsible': collapsible,
|
|
24719
|
-
}) }, entry, { _hideLabel:
|
|
24838
|
+
}) }, entry, { _hideLabel: this.state._hideLabel, _icons: icons, _ariaControls: collapsible && hasChildren && expanded ? ariaID : undefined, _ariaExpanded: collapsible && hasChildren ? expanded : undefined }))) : (hAsync(KolButtonWcTag, { class: clsx('kol-nav__entry kol-nav__entry--button', {
|
|
24720
24839
|
'kol-nav__entry--collapsible': collapsible,
|
|
24721
|
-
}), _label: entry._label, _hideLabel:
|
|
24840
|
+
}), _label: entry._label, _hideLabel: this.state._hideLabel, _icons: icons, _ariaControls: collapsible && hasChildren && expanded ? ariaID : undefined, _ariaExpanded: collapsible && hasChildren ? expanded : undefined, _on: {
|
|
24722
24841
|
onClick: (event, value) => {
|
|
24723
24842
|
if (entryIsButton(entry) && typeof entry._on.onClick === 'function') {
|
|
24724
24843
|
entry._on.onClick(event, value);
|
|
@@ -24727,7 +24846,7 @@ class KolNav {
|
|
|
24727
24846
|
},
|
|
24728
24847
|
} }))));
|
|
24729
24848
|
}
|
|
24730
|
-
li(collapsible,
|
|
24849
|
+
li(collapsible, deep, index, link, ariaIDparent) {
|
|
24731
24850
|
const active = !!link._active;
|
|
24732
24851
|
const hasChildren = Array.isArray(link._children) && link._children.length > 0;
|
|
24733
24852
|
const expanded = Boolean(link._children && this.state._expandedChildren.includes(link._children));
|
|
@@ -24736,7 +24855,7 @@ class KolNav {
|
|
|
24736
24855
|
'kol-nav__list-item--active': active,
|
|
24737
24856
|
'kol-nav__list-item--expanded': expanded,
|
|
24738
24857
|
'kol-nav__list-item--has-children': hasChildren,
|
|
24739
|
-
}), key: index }, this.entry(collapsible,
|
|
24858
|
+
}), key: index }, this.entry(collapsible, hasChildren, link, expanded, ariaID), expanded && hAsync(this.linkList, { collapsible: collapsible, deep: deep + 1, links: link._children || [], id: ariaID })));
|
|
24740
24859
|
}
|
|
24741
24860
|
initializeExpandedChildren() {
|
|
24742
24861
|
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
@@ -24761,12 +24880,11 @@ class KolNav {
|
|
|
24761
24880
|
}
|
|
24762
24881
|
render() {
|
|
24763
24882
|
const collapsible = this.state._collapsible === true;
|
|
24764
|
-
|
|
24765
|
-
return (hAsync("div", { key: '39f07d530b46e738987032cebed99c3c90039376', class: clsx('kol-nav', `kol-nav--vertical`, {
|
|
24883
|
+
return (hAsync("div", { key: 'c5d68a1e9267bf338e45d238b9f7661e44a2e378', class: clsx('kol-nav', {
|
|
24766
24884
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
24767
|
-
}) }, hAsync("nav", { key: '
|
|
24885
|
+
}) }, hAsync("nav", { key: '17473413770976a81f562e3bd9f17ae11b654b2b', "aria-label": this.state._label, class: "kol-nav__navigation", id: this.navId }, hAsync(this.linkList, { key: '0623790874a038d9df84ffb301efea8559ee0a4c', collapsible: collapsible, deep: 0, links: this.state._links, id: this.listId })), this.state._hasCompactButton && (hAsync("div", { key: '6d54e0a8ac6af286ecc70abc98f076f481bab771', class: "kol-nav__compact" }, hAsync(KolButtonWcTag, { key: '6a37dc386c94294196ce9543a132c6d63406d7dd', class: "kol-nav__toggle-button", _ariaControls: this.navId, _ariaExpanded: !this.state._hideLabel, _icons: this.state._hideLabel ? 'kolicon-chevron-right' : 'kolicon-chevron-left', _hideLabel: true, _label: translate(this.state._hideLabel ? 'kol-nav-maximize' : 'kol-nav-minimize'), _on: {
|
|
24768
24886
|
onClick: () => {
|
|
24769
|
-
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel
|
|
24887
|
+
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: !this.state._hideLabel });
|
|
24770
24888
|
},
|
|
24771
24889
|
}, _tooltipAlign: "right" })))));
|
|
24772
24890
|
}
|
|
@@ -24838,7 +24956,7 @@ class KolNav {
|
|
|
24838
24956
|
}; }
|
|
24839
24957
|
}
|
|
24840
24958
|
|
|
24841
|
-
const defaultStyleCss$h = "@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-pagination {\n display: grid;\n gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n}";
|
|
24959
|
+
const defaultStyleCss$h = "@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)):has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-select {\n background-color: transparent;\n width: 100%;\n }\n .kol-select:not(:disabled) {\n cursor: pointer;\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: \"✓ \";\n }\n .kol-select {\n /* needed hack for vertical alignment */\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em;\n }\n .kol-pagination {\n display: flex;\n gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n .kol-pagination__page-size-select .kol-form-field-select {\n align-items: center;\n grid-template-columns: 1fr max-content;\n }\n}";
|
|
24842
24960
|
|
|
24843
24961
|
class KolPagination {
|
|
24844
24962
|
constructor(hostRef) {
|
|
@@ -24851,7 +24969,7 @@ class KolPagination {
|
|
|
24851
24969
|
this._tooltipAlign = 'top';
|
|
24852
24970
|
}
|
|
24853
24971
|
render() {
|
|
24854
|
-
return (hAsync(KolPaginationWcTag, { key: '
|
|
24972
|
+
return (hAsync(KolPaginationWcTag, { key: '1676901a636d4529bff96b9b85e49977f93beaad', _boundaryCount: this._boundaryCount, _label: this._label, _customClass: this._customClass, _on: this._on, _hasButtons: this._hasButtons, _page: this._page, _pageSize: this._pageSize, _pageSizeOptions: this._pageSizeOptions, _siblingCount: this._siblingCount, _tooltipAlign: this._tooltipAlign, _max: this._max }));
|
|
24855
24973
|
}
|
|
24856
24974
|
static get style() { return {
|
|
24857
24975
|
default: defaultStyleCss$h
|
|
@@ -24879,16 +24997,16 @@ class KolPagination {
|
|
|
24879
24997
|
}
|
|
24880
24998
|
|
|
24881
24999
|
const leftDoubleArrowIcon = {
|
|
24882
|
-
left: '
|
|
25000
|
+
left: 'kolicon-chevron-left',
|
|
24883
25001
|
};
|
|
24884
25002
|
const leftSingleArrow = {
|
|
24885
|
-
left: '
|
|
25003
|
+
left: 'kolicon-chevron-double-left',
|
|
24886
25004
|
};
|
|
24887
25005
|
const rightSingleArrowIcon = {
|
|
24888
|
-
right: '
|
|
25006
|
+
right: 'kolicon-chevron-right',
|
|
24889
25007
|
};
|
|
24890
25008
|
const rightDoubleArrowIcon = {
|
|
24891
|
-
right: '
|
|
25009
|
+
right: 'kolicon-chevron-double-right',
|
|
24892
25010
|
};
|
|
24893
25011
|
function getUserLanguage() {
|
|
24894
25012
|
const userLanguage = navigator.language || 'de-DE';
|
|
@@ -25031,7 +25149,7 @@ class KolPaginationWc {
|
|
|
25031
25149
|
for (const value of nextValue) {
|
|
25032
25150
|
if (typeof value === 'number') {
|
|
25033
25151
|
options.push({
|
|
25034
|
-
label:
|
|
25152
|
+
label: `${value}`,
|
|
25035
25153
|
value: value,
|
|
25036
25154
|
});
|
|
25037
25155
|
}
|
|
@@ -25041,6 +25159,12 @@ class KolPaginationWc {
|
|
|
25041
25159
|
this.beforePageSize(options, nextState);
|
|
25042
25160
|
};
|
|
25043
25161
|
}
|
|
25162
|
+
getPageStart() {
|
|
25163
|
+
return (this.state._page - 1) * this.state._pageSize + 1 + '';
|
|
25164
|
+
}
|
|
25165
|
+
getPageEnd() {
|
|
25166
|
+
return this.state._page * this.state._pageSize + '';
|
|
25167
|
+
}
|
|
25044
25168
|
render() {
|
|
25045
25169
|
var _a;
|
|
25046
25170
|
let ellipsis = false;
|
|
@@ -25067,9 +25191,15 @@ class KolPaginationWc {
|
|
|
25067
25191
|
return null;
|
|
25068
25192
|
}
|
|
25069
25193
|
});
|
|
25070
|
-
return (hAsync(Host, { class: "kol-pagination" }, hAsync("
|
|
25194
|
+
return (hAsync(Host, { class: "kol-pagination" }, hAsync("span", { role: "status", "aria-live": "polite" }, translate('kol-table-visible-range', {
|
|
25195
|
+
placeholders: {
|
|
25196
|
+
start: this.getPageStart(),
|
|
25197
|
+
end: this.getPageEnd(),
|
|
25198
|
+
total: this.state._max.toString(),
|
|
25199
|
+
},
|
|
25200
|
+
})), hAsync("nav", { class: "kol-pagination__navigation", "aria-label": this.state._label }, hAsync("ul", { class: "kol-pagination__navigation-list" }, this.state._hasButtons.first && (hAsync("li", null, hAsync(KolButtonWcTag, { class: "kol-pagination__button kol-pagination__button--first", exportparts: "icon", _customClass: this.state._customClass, _disabled: this.state._page <= 1, _icons: leftDoubleArrowIcon, _hideLabel: true, _label: this.translatePageFirst, _on: this.onGoToFirst, _tooltipAlign: this.state._tooltipAlign }))), this.state._hasButtons.previous && (hAsync("li", null, hAsync(KolButtonWcTag, { class: "kol-pagination__button kol-pagination__button--previous", exportparts: "icon", _customClass: this.state._customClass, _disabled: this.state._page <= 1, _icons: leftSingleArrow, _hideLabel: true, _label: this.translatePageBack, _on: this.onGoBackward, _tooltipAlign: this.state._tooltipAlign }))), pageButtons, this.state._hasButtons.next && (hAsync("li", null, hAsync(KolButtonWcTag, { class: "kol-pagination__button kol-pagination__button--next", exportparts: "icon", _customClass: this.state._customClass, _disabled: count <= this.state._page, _icons: rightSingleArrowIcon, _hideLabel: true, _label: this.translatePageNext, _on: this.onGoForward, _tooltipAlign: this.state._tooltipAlign }))), this.state._hasButtons.last && (hAsync("li", null, hAsync(KolButtonWcTag, { class: "kol-pagination__button kol-pagination__button--last", exportparts: "icon", _customClass: this.state._customClass, _disabled: count <= this.state._page, _icons: rightDoubleArrowIcon, _hideLabel: true, _label: this.translatePageLast, _on: this.onGoToEnd, _tooltipAlign: this.state._tooltipAlign }))))), ((_a = this.state._pageSizeOptions) === null || _a === void 0 ? void 0 : _a.length) > 0 && (hAsync("div", { class: "page-size" }, hAsync(KolSelectWcTag, { class: "kol-pagination__page-size-select", _id: `pagination-size-${this.nonce}`, _label: this.translateEntriesPerSite, _options: this.state._pageSizeOptions, _on: {
|
|
25071
25201
|
onChange: this.onChangePageSize,
|
|
25072
|
-
}, _value: this.state._pageSize }))));
|
|
25202
|
+
}, _value: this.state._pageSize })))));
|
|
25073
25203
|
}
|
|
25074
25204
|
getUnselectedPageButton(page) {
|
|
25075
25205
|
const pageText = NUMBER_FORMATTER.format(page);
|
|
@@ -27030,7 +27160,7 @@ class KolPopover {
|
|
|
27030
27160
|
}
|
|
27031
27161
|
}
|
|
27032
27162
|
render() {
|
|
27033
|
-
return (hAsync(Host, { key: '
|
|
27163
|
+
return (hAsync(Host, { key: '2f8909c00120d1d00d56f0a891bf137e968b482f', ref: this.catchHostAndTriggerElement, class: "kol-popover" }, hAsync("div", { key: 'd04819e7919b23042debe87158f189889c95e9ca', class: clsx('kol-popover__content', { 'kol-popover__content--visible': this.state._visible }), ref: this.catchPopoverElement, popover: "auto" }, hAsync("div", { key: 'e5a08ef22c2ee7c3dc8f1ca25a9b34a14f6076b9', class: clsx('kol-popover__arrow', `kol-popover__arrow--${this.state._align}`), ref: this.catchArrowElement }), hAsync("slot", { key: 'e7d525b678723312037a84233c3d810663c8d4cd' }))));
|
|
27034
27164
|
}
|
|
27035
27165
|
validateAlign(value) {
|
|
27036
27166
|
validateAlign(this, value);
|
|
@@ -27119,12 +27249,12 @@ let KolPopoverButton$1 = class KolPopoverButton {
|
|
|
27119
27249
|
var _a;
|
|
27120
27250
|
void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.showPopover());
|
|
27121
27251
|
}
|
|
27122
|
-
async
|
|
27252
|
+
async focus() {
|
|
27123
27253
|
var _a;
|
|
27124
|
-
|
|
27254
|
+
return Promise.resolve((_a = this.ref) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27125
27255
|
}
|
|
27126
27256
|
render() {
|
|
27127
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
27257
|
+
return (hAsync(KolPopoverButtonWcTag, { key: '9021df3c6719174c99226ce648d03150abba6392', ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _popoverAlign: this._popoverAlign, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: 'fb61e468b6d69c8fd589c8defaa4a12bee3a3431', name: "expert", slot: "expert" }), hAsync("slot", { key: '3813536fa6533a919593c665473a9bc4d878fea4' })));
|
|
27128
27258
|
}
|
|
27129
27259
|
static get style() { return {
|
|
27130
27260
|
default: defaultStyleCss$g
|
|
@@ -27157,7 +27287,7 @@ let KolPopoverButton$1 = class KolPopoverButton {
|
|
|
27157
27287
|
"_variant": [1],
|
|
27158
27288
|
"hidePopover": [64],
|
|
27159
27289
|
"showPopover": [64],
|
|
27160
|
-
"
|
|
27290
|
+
"focus": [64]
|
|
27161
27291
|
},
|
|
27162
27292
|
"$listeners$": undefined,
|
|
27163
27293
|
"$lazyBundleId$": "-",
|
|
@@ -27190,9 +27320,9 @@ class KolPopoverButton {
|
|
|
27190
27320
|
var _a;
|
|
27191
27321
|
void ((_a = this.refPopover) === null || _a === void 0 ? void 0 : _a.showPopover());
|
|
27192
27322
|
}
|
|
27193
|
-
async
|
|
27323
|
+
async focus() {
|
|
27194
27324
|
var _a;
|
|
27195
|
-
|
|
27325
|
+
return Promise.resolve((_a = this.refButton) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27196
27326
|
}
|
|
27197
27327
|
handleBeforeToggle(event) {
|
|
27198
27328
|
if (event.newState === 'closed') {
|
|
@@ -27248,11 +27378,11 @@ class KolPopoverButton {
|
|
|
27248
27378
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
27249
27379
|
}
|
|
27250
27380
|
render() {
|
|
27251
|
-
return (hAsync("div", { key: '
|
|
27381
|
+
return (hAsync("div", { key: '07f745de533bf0d6c5a96cdf3abd801e50205d68', class: clsx('kol-popover-button', {
|
|
27252
27382
|
'kol-popover-button--open': this.popoverOpen,
|
|
27253
27383
|
'kol-popover-button--inline': this.state._inline === true,
|
|
27254
27384
|
'kol-popover-button--standalone': this.state._inline === false,
|
|
27255
|
-
}) }, hAsync(KolButtonWcTag, { key: '
|
|
27385
|
+
}) }, hAsync(KolButtonWcTag, { key: 'c51a2bf3c0cc3bdaefc9b2e5b4855b55b00c37d4', _accessKey: this._accessKey, "_aria-controls": "popover", _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this.popoverOpen, _ariaHasPopup: 'dialog', _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _inline: this._inline, _label: this._label, _name: this._name, _on: this._on, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant, "data-testid": "popover-button", class: "kol-popover-button__button", ref: (element) => (this.refButton = element), onClick: this.handleButtonClick.bind(this) }, hAsync("slot", { key: 'ce1dfd34a4d1c3d5af7e9c367ec58548c7201c84', name: "expert", slot: "expert" })), hAsync("div", { key: 'bd308bd33d872274e2dd7b55be4a46a6d966b246', ref: (element) => (this.refPopover = element), "data-testid": "popover-content", popover: "auto", id: "popover", class: "kol-popover-button__popover" }, hAsync("slot", { key: 'b030faf5058674e990bb6e6fb109ea9aeb23e413' }))));
|
|
27256
27386
|
}
|
|
27257
27387
|
validateInline(value) {
|
|
27258
27388
|
validateInline(this, value, {
|
|
@@ -27301,7 +27431,7 @@ class KolPopoverButton {
|
|
|
27301
27431
|
"popoverOpen": [32],
|
|
27302
27432
|
"hidePopover": [64],
|
|
27303
27433
|
"showPopover": [64],
|
|
27304
|
-
"
|
|
27434
|
+
"focus": [64]
|
|
27305
27435
|
},
|
|
27306
27436
|
"$listeners$": undefined,
|
|
27307
27437
|
"$lazyBundleId$": "-",
|
|
@@ -27345,10 +27475,10 @@ class KolProgress {
|
|
|
27345
27475
|
const isPercentage = this.state._unit === '%';
|
|
27346
27476
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}` : this.state._liveValue;
|
|
27347
27477
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
27348
|
-
return (hAsync("div", { key: '
|
|
27478
|
+
return (hAsync("div", { key: 'fc7f5cdf4798854b0b41945c69f7feb3af75d50c', class: "kol-progress" }, hAsync("div", { key: '5ab61be685c82aceb117af33b6ad578dc12a3775', "aria-hidden": "true", class: {
|
|
27349
27479
|
'kol-progress__cycle': this.state._variant === 'cycle',
|
|
27350
27480
|
'kol-progress__bar': this.state._variant === 'bar',
|
|
27351
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
27481
|
+
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: 'f9917e700dc7d6c3b78f705b600b499529bbb2b7', class: "kol-progress__bar-label" }, this.state._label), createProgressSVG(this.state), this.state._variant === 'cycle' && (hAsync("div", { key: 'bb719478ebe2e5226e538bc8d07207d5c6cbc1c1', class: "kol-progress__cycle-text" }, this.state._label && hAsync("div", { key: '777582abb2582950a50e77e1d477dfe52a2abbec', class: "kol-progress__cycle-label" }, this.state._label), hAsync("div", { key: 'a5a04f2c22a3536ea8e95bc5d858f9b1ddb3b462', class: "kol-progress__cycle-value" }, `${displayValue} ${this.state._unit}`))), this.state._variant === 'bar' && (hAsync("div", { key: 'b89f4d178376b85b78f085e56aacc80df07f44b1', class: "kol-progress__bar-value", style: { width: `${`${(isPercentage ? 100 : this.state._max) + 1}`.length}ch` } }, displayValue)), this.state._variant === 'bar' && hAsync("div", { key: 'd35b3c9d91c8a78a994da485d80e8faf29cb23b5', class: "kol-progress__bar-unit" }, this.state._unit)), hAsync("progress", { key: 'b4d92e59e667619e4c6aadd8cbf0ae20f1d325ea', class: "visually-hidden", "aria-busy": this.state._value < this.state._max ? 'true' : 'false', max: this.state._max, value: this.state._value }), hAsync("span", { key: '73d21662ce19a724bede515ff55ec4f62bcd6fa0', "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, isPercentage ? `${liveProgressValue} %` : `${liveProgressValue} von ${this.state._max} ${this.state._unit}`)));
|
|
27352
27482
|
}
|
|
27353
27483
|
validateLabel(value) {
|
|
27354
27484
|
validateLabel(this, value);
|
|
@@ -27452,7 +27582,7 @@ class KolQuote {
|
|
|
27452
27582
|
}
|
|
27453
27583
|
render() {
|
|
27454
27584
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
27455
|
-
return (hAsync("figure", { key: '
|
|
27585
|
+
return (hAsync("figure", { key: '5a572554f7b6414184f1fc8d65d7ac53b75cc4d9', class: clsx('kol-quote', `kol-quote--${this.state._variant}`) }, this.state._variant === 'block' ? (hAsync("blockquote", { class: "kol-quote__blockquote", cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))) : (hAsync("q", { class: "kol-quote__quote", 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: '788f491a43a848e2c36902775577f562618fd3a9', class: "kol-quote__figcaption" }, hAsync("cite", { key: '2929cd673b3d0f545214c6a64f91d850fe54d896', class: "kol-quote__cite" }, hAsync(KolLinkTag, { key: '905b4a78d4d9d3cba9c85072edd8b1af148c2470', _href: this.state._href, _label: this.state._label, _target: "_blank" }))))));
|
|
27456
27586
|
}
|
|
27457
27587
|
static get watchers() { return {
|
|
27458
27588
|
"_label": ["validateLabel"],
|
|
@@ -27479,6 +27609,71 @@ class KolQuote {
|
|
|
27479
27609
|
}; }
|
|
27480
27610
|
}
|
|
27481
27611
|
|
|
27612
|
+
const defaultStyleCss$d = "@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)):has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-select {\n background-color: transparent;\n width: 100%;\n }\n .kol-select:not(:disabled) {\n cursor: pointer;\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: \"✓ \";\n }\n .kol-select {\n /* needed hack for vertical alignment */\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em;\n }\n}";
|
|
27613
|
+
|
|
27614
|
+
class KolSelect {
|
|
27615
|
+
constructor(hostRef) {
|
|
27616
|
+
registerInstance(this, hostRef);
|
|
27617
|
+
this.catchRef = (ref) => {
|
|
27618
|
+
this.selectWcRef = ref;
|
|
27619
|
+
};
|
|
27620
|
+
this._disabled = false;
|
|
27621
|
+
this._hideMsg = false;
|
|
27622
|
+
this._hideLabel = false;
|
|
27623
|
+
this._hint = '';
|
|
27624
|
+
this._multiple = false;
|
|
27625
|
+
this._required = false;
|
|
27626
|
+
this._tooltipAlign = 'top';
|
|
27627
|
+
this._touched = false;
|
|
27628
|
+
}
|
|
27629
|
+
async getValue() {
|
|
27630
|
+
var _a;
|
|
27631
|
+
return (_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.getValue();
|
|
27632
|
+
}
|
|
27633
|
+
async focus() {
|
|
27634
|
+
var _a;
|
|
27635
|
+
return Promise.resolve((_a = this.selectWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27636
|
+
}
|
|
27637
|
+
render() {
|
|
27638
|
+
return (hAsync(Host, { key: 'a926c7058a8e4d63d2eac02fa4cfb0cc72613117', class: "kol-select" }, hAsync(KolSelectWcTag, { key: 'ecd27ebee8519a944361c7a0184f413f99d3c3ad', ref: this.catchRef, _accessKey: this._accessKey, _disabled: this._disabled, _hideLabel: this._hideLabel, _hint: this._hint, _icons: this._icons, _id: this._id, _label: this._label, _msg: this._msg, _multiple: this._multiple, _name: this._name, _on: this._on, _options: this._options, _required: this._required, _rows: this._rows, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _touched: this._touched, _value: this._value }, hAsync("slot", { key: 'eb93d88c9ed9dc97d1d14caac719a4760d7a6571', name: "expert", slot: "expert" }))));
|
|
27639
|
+
}
|
|
27640
|
+
static get style() { return {
|
|
27641
|
+
default: defaultStyleCss$d
|
|
27642
|
+
}; }
|
|
27643
|
+
static get cmpMeta() { return {
|
|
27644
|
+
"$flags$": 297,
|
|
27645
|
+
"$tagName$": "kol-select",
|
|
27646
|
+
"$members$": {
|
|
27647
|
+
"_accessKey": [1, "_access-key"],
|
|
27648
|
+
"_disabled": [4],
|
|
27649
|
+
"_hideMsg": [4, "_hide-msg"],
|
|
27650
|
+
"_hideLabel": [4, "_hide-label"],
|
|
27651
|
+
"_hint": [1],
|
|
27652
|
+
"_icons": [1],
|
|
27653
|
+
"_id": [1],
|
|
27654
|
+
"_label": [1],
|
|
27655
|
+
"_msg": [1],
|
|
27656
|
+
"_multiple": [4],
|
|
27657
|
+
"_name": [1],
|
|
27658
|
+
"_on": [16],
|
|
27659
|
+
"_options": [1],
|
|
27660
|
+
"_required": [4],
|
|
27661
|
+
"_shortKey": [1, "_short-key"],
|
|
27662
|
+
"_rows": [2],
|
|
27663
|
+
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
27664
|
+
"_tabIndex": [2, "_tab-index"],
|
|
27665
|
+
"_tooltipAlign": [1, "_tooltip-align"],
|
|
27666
|
+
"_touched": [1540],
|
|
27667
|
+
"_value": [1544],
|
|
27668
|
+
"getValue": [64],
|
|
27669
|
+
"focus": [64]
|
|
27670
|
+
},
|
|
27671
|
+
"$listeners$": undefined,
|
|
27672
|
+
"$lazyBundleId$": "-",
|
|
27673
|
+
"$attrsToReflect$": [["_touched", "_touched"], ["_value", "_value"]]
|
|
27674
|
+
}; }
|
|
27675
|
+
}
|
|
27676
|
+
|
|
27482
27677
|
const NativeOptionFc = (_a) => {
|
|
27483
27678
|
var { baseClassName = 'kol-select', class: classNames, index, selectedValue, selected, value, label, disabled } = _a, other = __rest(_a, ["baseClassName", "class", "index", "selectedValue", "selected", "value", "label", "disabled"]);
|
|
27484
27679
|
if (selectedValue === undefined) {
|
|
@@ -27516,13 +27711,11 @@ const NativeOptionListFc = ({ baseClassName, preKey, options, disabled, value: s
|
|
|
27516
27711
|
|
|
27517
27712
|
const NativeSelectFc = (props) => {
|
|
27518
27713
|
const { class: classNames, msg, touched, disabled, required, options, value, OptionProps, OptionGroupProps, ariaDescribedBy, hideLabel, label } = props, other = __rest(props, ["class", "msg", "touched", "disabled", "required", "options", "value", "OptionProps", "OptionGroupProps", "ariaDescribedBy", "hideLabel", "label"]);
|
|
27519
|
-
const showMsg = checkHasMsg(msg, touched);
|
|
27520
|
-
const msgType = typeof msg === 'string' ? 'error' : msg === null || msg === void 0 ? void 0 : msg._type;
|
|
27521
27714
|
const stateCssClasses = {
|
|
27522
27715
|
['kol-select--disabled']: Boolean(disabled),
|
|
27523
27716
|
['kol-select--required']: Boolean(required),
|
|
27524
27717
|
['kol-select--touched']: Boolean(touched),
|
|
27525
|
-
[`kol-select--${
|
|
27718
|
+
[`kol-select--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),
|
|
27526
27719
|
};
|
|
27527
27720
|
const inputProps = Object.assign(Object.assign({ class: clsx('kol-select', stateCssClasses, classNames), required: required, disabled: disabled }, getDefaultProps({ ariaDescribedBy, hideLabel, label })), other);
|
|
27528
27721
|
return (hAsync("select", Object.assign({}, inputProps), hAsync(NativeOptionListFc, { baseClassName: "kol-select", options: options, value: value, OptionGroupProps: OptionGroupProps, OptionProps: OptionProps })));
|
|
@@ -27667,9 +27860,7 @@ class SelectController extends InputIconController {
|
|
|
27667
27860
|
}
|
|
27668
27861
|
}
|
|
27669
27862
|
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
class KolSelect {
|
|
27863
|
+
class KolSelectWc {
|
|
27673
27864
|
async getValue() {
|
|
27674
27865
|
if (this._multiple) {
|
|
27675
27866
|
return this.state._value;
|
|
@@ -27678,9 +27869,9 @@ class KolSelect {
|
|
|
27678
27869
|
return Array.isArray(this.state._value) && this.state._value.length > 0 ? this.state._value[0] : this.state._value;
|
|
27679
27870
|
}
|
|
27680
27871
|
}
|
|
27681
|
-
async
|
|
27872
|
+
async focus() {
|
|
27682
27873
|
var _a;
|
|
27683
|
-
(_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
27874
|
+
return Promise.resolve((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27684
27875
|
}
|
|
27685
27876
|
getFormFieldProps() {
|
|
27686
27877
|
return {
|
|
@@ -27703,11 +27894,11 @@ class KolSelect {
|
|
|
27703
27894
|
} });
|
|
27704
27895
|
}
|
|
27705
27896
|
render() {
|
|
27706
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
27897
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '0dae16977914072f768715d0724d104681423011' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'f861a46e09370d1d9b0988583f21f3e7cb0ac95c', state: this.state }, hAsync("form", { key: '4018d6786323c59fc03a1e1808f2c294f538fd03', onSubmit: (event) => {
|
|
27707
27898
|
event.preventDefault();
|
|
27708
27899
|
propagateSubmitEventToForm({
|
|
27709
27900
|
form: this.host});
|
|
27710
|
-
} }, hAsync("input", { key: '
|
|
27901
|
+
} }, hAsync("input", { key: '4cf5976ab6f9e5936df90835f38d90075b47e0c6', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: '8f9f45475b6ea1c0c1e852896c4bc025bc0e5a4e' }, this.getSelectProps()))))));
|
|
27711
27902
|
}
|
|
27712
27903
|
constructor(hostRef) {
|
|
27713
27904
|
registerInstance(this, hostRef);
|
|
@@ -27849,12 +28040,9 @@ class KolSelect {
|
|
|
27849
28040
|
"_touched": ["validateTouched"],
|
|
27850
28041
|
"_value": ["validateValue"]
|
|
27851
28042
|
}; }
|
|
27852
|
-
static get style() { return {
|
|
27853
|
-
default: defaultStyleCss$d
|
|
27854
|
-
}; }
|
|
27855
28043
|
static get cmpMeta() { return {
|
|
27856
|
-
"$flags$":
|
|
27857
|
-
"$tagName$": "kol-select",
|
|
28044
|
+
"$flags$": 256,
|
|
28045
|
+
"$tagName$": "kol-select-wc",
|
|
27858
28046
|
"$members$": {
|
|
27859
28047
|
"_accessKey": [1, "_access-key"],
|
|
27860
28048
|
"_disabled": [4],
|
|
@@ -27880,7 +28068,7 @@ class KolSelect {
|
|
|
27880
28068
|
"state": [32],
|
|
27881
28069
|
"inputHasFocus": [32],
|
|
27882
28070
|
"getValue": [64],
|
|
27883
|
-
"
|
|
28071
|
+
"focus": [64]
|
|
27884
28072
|
},
|
|
27885
28073
|
"$listeners$": undefined,
|
|
27886
28074
|
"$lazyBundleId$": "-",
|
|
@@ -27923,8 +28111,8 @@ class SingleSelectController extends InputIconController {
|
|
|
27923
28111
|
validatePlaceholder(value) {
|
|
27924
28112
|
validatePlaceholder(this.component, value);
|
|
27925
28113
|
}
|
|
27926
|
-
|
|
27927
|
-
watchBoolean(this.component, '
|
|
28114
|
+
validateHasClearButton(value) {
|
|
28115
|
+
watchBoolean(this.component, '_hasClearButton', value);
|
|
27928
28116
|
}
|
|
27929
28117
|
validateRows(value) {
|
|
27930
28118
|
watchNumber(this.component, '_rows', value);
|
|
@@ -27935,7 +28123,7 @@ class SingleSelectController extends InputIconController {
|
|
|
27935
28123
|
this.validateRequired(this.component._required);
|
|
27936
28124
|
this.validateValue(this.component._value);
|
|
27937
28125
|
this.validatePlaceholder(this.component._placeholder);
|
|
27938
|
-
this.
|
|
28126
|
+
this.validateHasClearButton(this.component._hasClearButton);
|
|
27939
28127
|
this.validateRows(this.component._rows);
|
|
27940
28128
|
}
|
|
27941
28129
|
}
|
|
@@ -27946,9 +28134,9 @@ class KolSingleSelect {
|
|
|
27946
28134
|
async getValue() {
|
|
27947
28135
|
return this._value;
|
|
27948
28136
|
}
|
|
27949
|
-
async
|
|
28137
|
+
async focus() {
|
|
27950
28138
|
var _a;
|
|
27951
|
-
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28139
|
+
return Promise.resolve((_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus());
|
|
27952
28140
|
}
|
|
27953
28141
|
onBlur() {
|
|
27954
28142
|
var _a, _b, _c;
|
|
@@ -28112,7 +28300,7 @@ class KolSingleSelect {
|
|
|
28112
28300
|
render() {
|
|
28113
28301
|
var _a;
|
|
28114
28302
|
const isDisabled = this.state._disabled === true;
|
|
28115
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28303
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'fd6f0b024c6d2aa2bb52404755e4e98fef6e7429' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2a71f9bcb6c8c3de383b7947e649378df94a15b0', state: this.state }, hAsync("div", { key: '25b32813dc15b1ee675a1001dbae7d3f41620760', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '57673d1d3251175abdd6da427aff126e7fa83c5d' }, this.getInputProps())), this._inputValue && this.state._hasClearButton && (hAsync(KolButtonWcTag, { key: 'fca25f7b8f21d5e3e607582aa150e8d48ee4610e', _icons: "kolicon-cross", _label: this.translateDeleteSelection, _hideLabel: true, _buttonVariant: "ghost", _disabled: isDisabled, "data-testid": "single-select-delete", class: clsx('kol-single-select__delete', {
|
|
28116
28304
|
'kol-single-select__delete--disabled': isDisabled,
|
|
28117
28305
|
}), _on: {
|
|
28118
28306
|
onClick: () => {
|
|
@@ -28120,9 +28308,9 @@ class KolSingleSelect {
|
|
|
28120
28308
|
this.clearSelection();
|
|
28121
28309
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28122
28310
|
},
|
|
28123
|
-
} })), hAsync(KolIconTag, { key: '
|
|
28311
|
+
} })), hAsync(KolIconTag, { key: 'b2fdbd0166bc7b254f97cc1d7e3c171f3fde8034', _icons: "kolicon-chevron-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
28124
28312
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
28125
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
28313
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'f1f1bcb471120991ee2b200459d081b41809d48c', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this), style: { '--visible-options': `${(_a = this._rows) !== null && _a !== void 0 ? _a : 5}` } }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option.label, searchTerm: this._inputValue, ref: (el) => {
|
|
28126
28314
|
if (el)
|
|
28127
28315
|
this.refOptions[index] = el;
|
|
28128
28316
|
}, selected: this._value === option.value, disabled: option.disabled ? true : false, onClick: (event) => {
|
|
@@ -28298,13 +28486,13 @@ class KolSingleSelect {
|
|
|
28298
28486
|
this._tooltipAlign = 'top';
|
|
28299
28487
|
this._touched = false;
|
|
28300
28488
|
this._value = null;
|
|
28301
|
-
this.
|
|
28489
|
+
this._hasClearButton = true;
|
|
28302
28490
|
this.state = {
|
|
28303
28491
|
_hideMsg: false,
|
|
28304
28492
|
_id: `id-${nonce()}`,
|
|
28305
28493
|
_label: '',
|
|
28306
28494
|
_options: [],
|
|
28307
|
-
|
|
28495
|
+
_hasClearButton: true,
|
|
28308
28496
|
};
|
|
28309
28497
|
this.inputHasFocus = false;
|
|
28310
28498
|
this.controller = new SingleSelectController(this, 'single-select', this.host);
|
|
@@ -28370,8 +28558,8 @@ class KolSingleSelect {
|
|
|
28370
28558
|
this.oldValue = value;
|
|
28371
28559
|
this.updateInputValue(value);
|
|
28372
28560
|
}
|
|
28373
|
-
|
|
28374
|
-
this.controller.
|
|
28561
|
+
validateHasClearButton(value) {
|
|
28562
|
+
this.controller.validateHasClearButton(value);
|
|
28375
28563
|
}
|
|
28376
28564
|
validateRows(value) {
|
|
28377
28565
|
this.controller.validateRows(value);
|
|
@@ -28428,7 +28616,7 @@ class KolSingleSelect {
|
|
|
28428
28616
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
28429
28617
|
"_touched": ["validateTouched"],
|
|
28430
28618
|
"_value": ["validateValue"],
|
|
28431
|
-
"
|
|
28619
|
+
"_hasClearButton": ["validateHasClearButton"],
|
|
28432
28620
|
"_rows": ["validateRows"]
|
|
28433
28621
|
}; }
|
|
28434
28622
|
static get style() { return {
|
|
@@ -28457,7 +28645,7 @@ class KolSingleSelect {
|
|
|
28457
28645
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
28458
28646
|
"_touched": [1540],
|
|
28459
28647
|
"_value": [1544],
|
|
28460
|
-
"
|
|
28648
|
+
"_hasClearButton": [4, "_has-clear-button"],
|
|
28461
28649
|
"_rows": [2],
|
|
28462
28650
|
"_isOpen": [32],
|
|
28463
28651
|
"_filteredOptions": [32],
|
|
@@ -28466,7 +28654,7 @@ class KolSingleSelect {
|
|
|
28466
28654
|
"state": [32],
|
|
28467
28655
|
"inputHasFocus": [32],
|
|
28468
28656
|
"getValue": [64],
|
|
28469
|
-
"
|
|
28657
|
+
"focus": [64]
|
|
28470
28658
|
},
|
|
28471
28659
|
"$listeners$": [[8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"], [0, "keydown", "handleKeyDown"], [1, "mousemove", "handleMouseEvent"]],
|
|
28472
28660
|
"$lazyBundleId$": "-",
|
|
@@ -28485,10 +28673,14 @@ class KolSkipNav {
|
|
|
28485
28673
|
};
|
|
28486
28674
|
}
|
|
28487
28675
|
render() {
|
|
28488
|
-
return (hAsync("nav", { key: '
|
|
28676
|
+
return (hAsync("nav", { key: '637034fc1c6fda05c7bcec9c78005208e9dcfb13', class: "kol-skip-nav", "aria-label": this.state._label }, hAsync("ul", { key: '3b28c0e6ecad1b303773f2e18ad4fec27fe1d75f', class: "kol-skip-nav__list" }, this.state._links.map((link, index) => {
|
|
28489
28677
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link, { ref: index === 0 ? (el) => (this.firstLinkRef = el) : undefined }))));
|
|
28490
28678
|
}))));
|
|
28491
28679
|
}
|
|
28680
|
+
async focus() {
|
|
28681
|
+
var _a;
|
|
28682
|
+
return Promise.resolve((_a = this.firstLinkRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
28683
|
+
}
|
|
28492
28684
|
validateLabel(value, _oldValue, initial = false) {
|
|
28493
28685
|
if (!initial) {
|
|
28494
28686
|
removeNavLabel(this.state._label);
|
|
@@ -28508,10 +28700,6 @@ class KolSkipNav {
|
|
|
28508
28700
|
disconnectedCallback() {
|
|
28509
28701
|
removeNavLabel(this.state._label);
|
|
28510
28702
|
}
|
|
28511
|
-
async kolFocus() {
|
|
28512
|
-
var _a;
|
|
28513
|
-
await ((_a = this.firstLinkRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
28514
|
-
}
|
|
28515
28703
|
static get watchers() { return {
|
|
28516
28704
|
"_label": ["validateLabel"],
|
|
28517
28705
|
"_links": ["validateLinks"]
|
|
@@ -28526,7 +28714,7 @@ class KolSkipNav {
|
|
|
28526
28714
|
"_label": [1],
|
|
28527
28715
|
"_links": [1],
|
|
28528
28716
|
"state": [32],
|
|
28529
|
-
"
|
|
28717
|
+
"focus": [64]
|
|
28530
28718
|
},
|
|
28531
28719
|
"$listeners$": undefined,
|
|
28532
28720
|
"$lazyBundleId$": "-",
|
|
@@ -28561,7 +28749,7 @@ class KolSpin {
|
|
|
28561
28749
|
}
|
|
28562
28750
|
render() {
|
|
28563
28751
|
var _a, _b;
|
|
28564
|
-
return (hAsync(Host, { key: '
|
|
28752
|
+
return (hAsync(Host, { key: '99834f746128bfbbb7ded21f1a866f06560ab218', class: "kol-spin" }, this.state._show ? (hAsync(Fragment, null, hAsync("span", { class: clsx('kol-spin__spinner', `kol-spin__spinner--${this.state._variant}`) }, renderSpin(this.state._variant)), hAsync("span", { "aria-busy": "true", class: "visually-hidden", role: "alert" }, (_a = this.state._label) !== null && _a !== void 0 ? _a : this.translateActionRunning))) : (this.showToggled && (hAsync("span", { "aria-busy": "false", class: "visually-hidden", role: "alert" }, (_b = this.state._label) !== null && _b !== void 0 ? _b : this.translateActionDone)))));
|
|
28565
28753
|
}
|
|
28566
28754
|
validateShow(value) {
|
|
28567
28755
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -28642,16 +28830,16 @@ class KolSplitButton {
|
|
|
28642
28830
|
async getValue() {
|
|
28643
28831
|
return this._value;
|
|
28644
28832
|
}
|
|
28645
|
-
async
|
|
28833
|
+
async focus() {
|
|
28646
28834
|
var _a;
|
|
28647
|
-
|
|
28835
|
+
return Promise.resolve((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
28648
28836
|
}
|
|
28649
28837
|
render() {
|
|
28650
28838
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
28651
|
-
return (hAsync("div", { key: '
|
|
28839
|
+
return (hAsync("div", { key: '04257bc7bd39a7eeef11eecc283bffd36e087eab', class: "kol-split-button" }, hAsync("div", { key: '3e501cb61b88142df1a21fc642f9a6948787c325', class: "kol-split-button__root" }, hAsync(KolButtonWcTag, { key: '0afa33e93f49d8f8b051a39af8effe4910e1e194', class: clsx('kol-split-button__button', {
|
|
28652
28840
|
[this._variant]: this._variant !== 'custom',
|
|
28653
28841
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
28654
|
-
}), ref: this.catchPrimaryRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _id: this._id, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: '
|
|
28842
|
+
}), ref: this.catchPrimaryRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _id: this._id, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: '26320736e5ec8d7e679636f282846ae536e13e24', class: "kol-split-button__horizontal-line" }), hAsync(KolButtonWcTag, { key: '286b1351dfb4d41e3ee9d000a1204fa82414e626', class: "kol-split-button__secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "kolicon-chevron-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler })), hAsync(KolPopoverWcTag, { key: 'c79ed674b02e40ede6a1d5b24f5660f35a5f90df', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: 'a986253f3b75a21f217daf926895d87da9912f07' }))));
|
|
28655
28843
|
}
|
|
28656
28844
|
async closePopup() {
|
|
28657
28845
|
this.handleOnClose();
|
|
@@ -28686,7 +28874,7 @@ class KolSplitButton {
|
|
|
28686
28874
|
"_variant": [1],
|
|
28687
28875
|
"state": [32],
|
|
28688
28876
|
"getValue": [64],
|
|
28689
|
-
"
|
|
28877
|
+
"focus": [64],
|
|
28690
28878
|
"closePopup": [64]
|
|
28691
28879
|
},
|
|
28692
28880
|
"$listeners$": undefined,
|
|
@@ -28695,84 +28883,123 @@ class KolSplitButton {
|
|
|
28695
28883
|
}; }
|
|
28696
28884
|
}
|
|
28697
28885
|
|
|
28886
|
+
const parseColumnWidth = (width, defaultWidth = 100) => {
|
|
28887
|
+
const parsed = Number.parseFloat(width !== null && width !== void 0 ? width : '');
|
|
28888
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : defaultWidth;
|
|
28889
|
+
};
|
|
28890
|
+
|
|
28698
28891
|
class KolTableSettings {
|
|
28699
28892
|
constructor(hostRef) {
|
|
28700
28893
|
registerInstance(this, hostRef);
|
|
28701
|
-
this.
|
|
28894
|
+
this.headerCells = [];
|
|
28895
|
+
this.editingHeaderCells = [];
|
|
28702
28896
|
this.errorMessage = null;
|
|
28703
28897
|
this.translateTableSettings = translate('kol-table-settings');
|
|
28704
28898
|
this.translateTableSettingsCancel = translate('kol-table-settings-cancel');
|
|
28705
28899
|
this.translateTableSettingsApply = translate('kol-table-settings-apply');
|
|
28706
28900
|
this.translateErrorAllInvisible = translate('kol-table-settings-error-all-invisible');
|
|
28707
28901
|
this.translateColumnNotHidable = translate('kol-table-settings-column-not-hidable');
|
|
28708
|
-
this.
|
|
28902
|
+
this._horizontalHeaderCells = [];
|
|
28709
28903
|
}
|
|
28710
|
-
|
|
28711
|
-
this.
|
|
28904
|
+
handleHeaderCellsChange(newValue) {
|
|
28905
|
+
this.headerCells = newValue.map((row) => [...row]);
|
|
28906
|
+
this.editingHeaderCells = newValue.map((row) => row.map((cell) => (Object.assign({}, cell))));
|
|
28712
28907
|
}
|
|
28713
28908
|
componentWillLoad() {
|
|
28714
|
-
this.
|
|
28909
|
+
this.handleHeaderCellsChange(this._horizontalHeaderCells);
|
|
28715
28910
|
}
|
|
28716
|
-
|
|
28717
|
-
|
|
28718
|
-
|
|
28719
|
-
|
|
28720
|
-
|
|
28911
|
+
getPrimaryRow() {
|
|
28912
|
+
var _a;
|
|
28913
|
+
return (_a = this.editingHeaderCells[this.editingHeaderCells.length - 1]) !== null && _a !== void 0 ? _a : [];
|
|
28914
|
+
}
|
|
28915
|
+
updatePrimaryRow(newRow) {
|
|
28916
|
+
this.editingHeaderCells = this.editingHeaderCells.map((row, index, arr) => (index === arr.length - 1 ? newRow : row));
|
|
28721
28917
|
}
|
|
28722
28918
|
moveColumn(columnId, direction) {
|
|
28723
|
-
const
|
|
28724
|
-
const sourceIndex =
|
|
28725
|
-
|
|
28726
|
-
const targetIndex = direction === 'up' ? sourceIndex - 1 : sourceIndex + 1;
|
|
28727
|
-
const targetColumn = columns[targetIndex];
|
|
28728
|
-
if (sourceIndex < 0 || targetIndex < 0 || targetIndex >= columns.length || (sourceColumn === null || sourceColumn === void 0 ? void 0 : sourceColumn.sortable) === false || (targetColumn === null || targetColumn === void 0 ? void 0 : targetColumn.sortable) === false) {
|
|
28919
|
+
const row = [...this.getPrimaryRow()];
|
|
28920
|
+
const sourceIndex = row.findIndex((col) => col.key === columnId);
|
|
28921
|
+
if (sourceIndex === -1)
|
|
28729
28922
|
return;
|
|
28923
|
+
let targetIndex;
|
|
28924
|
+
if (direction === 'up') {
|
|
28925
|
+
if (sourceIndex === 0)
|
|
28926
|
+
return;
|
|
28927
|
+
targetIndex = sourceIndex - 1;
|
|
28928
|
+
}
|
|
28929
|
+
else {
|
|
28930
|
+
if (sourceIndex === row.length - 1)
|
|
28931
|
+
return;
|
|
28932
|
+
targetIndex = sourceIndex + 1;
|
|
28730
28933
|
}
|
|
28731
|
-
const [
|
|
28732
|
-
|
|
28733
|
-
this.
|
|
28934
|
+
const [source] = row.splice(sourceIndex, 1);
|
|
28935
|
+
row.splice(targetIndex, 0, source);
|
|
28936
|
+
this.updatePrimaryRow(row);
|
|
28734
28937
|
}
|
|
28735
28938
|
handleVisibilityChange(key, visible) {
|
|
28736
|
-
|
|
28939
|
+
const row = this.getPrimaryRow().map((col) => (col.key === key && col.hidable !== false ? Object.assign(Object.assign({}, col), { visible: Boolean(visible) }) : col));
|
|
28940
|
+
this.updatePrimaryRow(row);
|
|
28737
28941
|
}
|
|
28738
28942
|
handleWidthChange(key, width) {
|
|
28739
|
-
|
|
28943
|
+
const row = this.getPrimaryRow().map((col) => (col.key === key && col.resizable !== false ? Object.assign(Object.assign({}, col), { width: `${Number(width)}ch` }) : col));
|
|
28944
|
+
this.updatePrimaryRow(row);
|
|
28740
28945
|
}
|
|
28741
28946
|
handleCancel() {
|
|
28742
28947
|
var _a;
|
|
28948
|
+
this.editingHeaderCells = this.headerCells.map((row) => [...row]);
|
|
28949
|
+
this.errorMessage = null;
|
|
28743
28950
|
void ((_a = this.popoverRef) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
28744
28951
|
}
|
|
28745
28952
|
handleSubmit(event) {
|
|
28746
28953
|
var _a;
|
|
28747
28954
|
event.preventDefault();
|
|
28748
|
-
const
|
|
28955
|
+
const primaryRow = this.getPrimaryRow();
|
|
28956
|
+
const hasVisibleColumn = primaryRow.some((column) => column.visible !== false);
|
|
28749
28957
|
if (!hasVisibleColumn) {
|
|
28750
28958
|
this.errorMessage = this.translateErrorAllInvisible;
|
|
28751
28959
|
return;
|
|
28752
28960
|
}
|
|
28753
28961
|
else if (this.host) {
|
|
28754
28962
|
this.errorMessage = null;
|
|
28755
|
-
|
|
28963
|
+
this.headerCells = this.editingHeaderCells.map((row) => row.map((cell) => (Object.assign({}, cell))));
|
|
28964
|
+
const sanitizedHeaderCells = this.editingHeaderCells.map((row) => row.map((column) => {
|
|
28965
|
+
const cell = Object.assign({}, column);
|
|
28966
|
+
delete cell.position;
|
|
28967
|
+
if (cell.visible === undefined) {
|
|
28968
|
+
delete cell.visible;
|
|
28969
|
+
}
|
|
28970
|
+
if (cell.hidable === undefined) {
|
|
28971
|
+
delete cell.hidable;
|
|
28972
|
+
}
|
|
28973
|
+
if (cell.sortable === undefined) {
|
|
28974
|
+
delete cell.sortable;
|
|
28975
|
+
}
|
|
28976
|
+
if (cell.resizable === undefined) {
|
|
28977
|
+
delete cell.resizable;
|
|
28978
|
+
}
|
|
28979
|
+
if (cell.width === undefined || cell.width === null || cell.width === '') {
|
|
28980
|
+
delete cell.width;
|
|
28981
|
+
}
|
|
28982
|
+
return cell;
|
|
28983
|
+
}));
|
|
28984
|
+
dispatchDomEvent(this.host, KolEvent.changeHeaderCells, sanitizedHeaderCells);
|
|
28756
28985
|
void ((_a = this.popoverRef) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
28757
28986
|
}
|
|
28758
28987
|
}
|
|
28759
28988
|
render() {
|
|
28760
|
-
const
|
|
28761
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
28762
|
-
var _a, _b;
|
|
28763
|
-
return (hAsync("div", { key: column.key, class: "kol-table-settings__column" }, hAsync(KolInputCheckboxTag, { _checked: column.visible, _label: `${column.label}${column.hidable === false ? ` (${this.translateColumnNotHidable})` : ''}`, _value: true, _hideLabel: true, _disabled: column.hidable === false, _on: { onInput: (_, value) => this.handleVisibilityChange(column.key, value) }, "data-testid": `table-settings-visible-${column.key}` }), hAsync("span", { class: "kol-table-settings__column-label" }, column.label), hAsync(KolInputNumberTag, { _hideLabel: true, _value: column.width, _label: translate('kol-table-settings-column-width', { placeholders: { column: column.label } }), _min: 1, _disabled: column.resizable === false, _on: { onInput: (_, value) => this.handleWidthChange(column.key, value) } }), hAsync(KolButtonWcTag, { _icons: "codicon codicon-arrow-up", _label: translate('kol-table-settings-move-up', { placeholders: { column: column.label } }), _hideLabel: true, _buttonVariant: "ghost", _on: { onClick: () => this.moveColumn(column.key, 'up') }, _disabled: index === 0 || column.sortable === false || ((_a = sortedColumns[index - 1]) === null || _a === void 0 ? void 0 : _a.sortable) === false, "data-testid": "table-settings-move-up" }), hAsync(KolButtonWcTag, { _icons: "codicon codicon-arrow-down", _label: translate('kol-table-settings-move-down', { placeholders: { column: column.label } }), _hideLabel: true, _buttonVariant: "ghost", _on: { onClick: () => this.moveColumn(column.key, 'down') }, _disabled: index === sortedColumns.length - 1 || column.sortable === false || ((_b = sortedColumns[index + 1]) === null || _b === void 0 ? void 0 : _b.sortable) === false, "data-testid": "table-settings-move-down" })));
|
|
28764
|
-
}))), hAsync("div", { key: 'ae98c13ffb786564a765d02150e241b624c923c6', class: "kol-table-settings__actions" }, hAsync(KolButtonWcTag, { key: '3a8127b09eb76a55e0beffd508c1dd7e446fdaca', _label: this.translateTableSettingsCancel, _buttonVariant: "secondary", _on: { onClick: () => this.handleCancel() }, "data-testid": "table-settings-cancel" }), hAsync(KolButtonWcTag, { key: '19a5e91145eec6caa0460eaea7df20a1275b3962', _label: this.translateTableSettingsApply, _buttonVariant: "primary", _type: "submit", "data-testid": "table-settings-apply" }))))));
|
|
28989
|
+
const columns = this.getPrimaryRow();
|
|
28990
|
+
return (hAsync(KolPopoverButtonWcTag, { key: 'b9f7fa675371c9042e66da153ea646b941fc4448', ref: (el) => (this.popoverRef = el), class: "kol-table-settings", _icons: "kolicon-settings", _label: this.translateTableSettings, _popoverAlign: "top", _hideLabel: true }, hAsync("div", { key: '96c3923ce5d67533880afd470574c1af59cbfbf8', class: "kol-table-settings__content" }, hAsync(KolHeadingTag, { key: 'fb5adec2ea8e71ab9a4ab6b93da9011d27e7fe9e', _label: this.translateTableSettings, _level: 0 }), this.errorMessage && hAsync(KolAlertWcTag, { key: '54ef90681a3a473a2b66a3beeda77b324d041511', _type: "error", _label: this.errorMessage, _variant: "msg", class: "kol-table-settings__error-message" }), hAsync("form", { key: '13bf29a5c1400c5e1808f3e7400d74d8bad6bd27', onSubmit: this.handleSubmit.bind(this) }, hAsync("div", { key: '249b4f195ddf1250d2ff72303cad98eb61f6ea44', class: "kol-table-settings__columns-container" }, hAsync("div", { key: 'bf273c67a3722948134948e755fa577af2cb15a1', class: "kol-table-settings__columns" }, columns.map((column, index) => (hAsync("div", { key: column.key, class: "kol-table-settings__column" }, hAsync(KolInputCheckboxTag, { _checked: column.visible !== false, _label: `${column.label}${column.hidable === false ? ` (${this.translateColumnNotHidable})` : ''}`, _value: true, _hideLabel: true, _disabled: column.hidable === false, _on: { onInput: (_, value) => { var _a; return this.handleVisibilityChange((_a = column.key) !== null && _a !== void 0 ? _a : '', value); } } }), hAsync("span", { class: "kol-table-settings__column-label" }, column.label), hAsync(KolInputNumberTag, { _hideLabel: true, _value: parseColumnWidth(column.width), _label: translate('kol-table-settings-column-width', { placeholders: { column: column.label } }), _min: 1, _disabled: column.resizable === false, _on: { onInput: (_, value) => { var _a; return this.handleWidthChange((_a = column.key) !== null && _a !== void 0 ? _a : '', value); } } }), hAsync(KolButtonWcTag, { _icons: "codicon codicon-arrow-up", _label: translate('kol-table-settings-move-up', { placeholders: { column: column.label } }), _hideLabel: true, _buttonVariant: "ghost", _on: { onClick: () => { var _a; return this.moveColumn((_a = column.key) !== null && _a !== void 0 ? _a : '', 'up'); } }, _disabled: column.sortable === false || index === 0, "data-testid": "table-settings-move-up" }), hAsync(KolButtonWcTag, { _icons: "codicon codicon-arrow-down", _label: translate('kol-table-settings-move-down', { placeholders: { column: column.label } }), _hideLabel: true, _buttonVariant: "ghost", _on: { onClick: () => { var _a; return this.moveColumn((_a = column.key) !== null && _a !== void 0 ? _a : '', 'down'); } }, _disabled: column.sortable === false || index === columns.length - 1, "data-testid": "table-settings-move-down" })))))), hAsync("div", { key: 'f1881eaf8342c2dca7eef52375dab228789cea10', class: "kol-table-settings__actions" }, hAsync(KolButtonWcTag, { key: 'bee2d9f94c46600fade1a5e4a9accd4d65613f20', _label: this.translateTableSettingsCancel, _buttonVariant: "secondary", _on: { onClick: () => this.handleCancel() }, "data-testid": "table-settings-cancel" }), hAsync(KolButtonWcTag, { key: '0f882fb01330b5a1c367fb2e8278da2fc90503f6', _label: this.translateTableSettingsApply, _buttonVariant: "primary", _type: "submit", "data-testid": "table-settings-apply" }))))));
|
|
28765
28991
|
}
|
|
28766
28992
|
get host() { return getElement(this); }
|
|
28767
28993
|
static get watchers() { return {
|
|
28768
|
-
"
|
|
28994
|
+
"_horizontalHeaderCells": ["handleHeaderCellsChange"]
|
|
28769
28995
|
}; }
|
|
28770
28996
|
static get cmpMeta() { return {
|
|
28771
28997
|
"$flags$": 256,
|
|
28772
28998
|
"$tagName$": "kol-table-settings-wc",
|
|
28773
28999
|
"$members$": {
|
|
28774
|
-
"
|
|
28775
|
-
"
|
|
29000
|
+
"_horizontalHeaderCells": [16],
|
|
29001
|
+
"headerCells": [32],
|
|
29002
|
+
"editingHeaderCells": [32],
|
|
28776
29003
|
"errorMessage": [32]
|
|
28777
29004
|
},
|
|
28778
29005
|
"$listeners$": undefined,
|
|
@@ -28785,6 +29012,7 @@ var Callback;
|
|
|
28785
29012
|
(function (Callback) {
|
|
28786
29013
|
Callback["onBlur"] = "onBlur";
|
|
28787
29014
|
Callback["onChange"] = "onChange";
|
|
29015
|
+
Callback["onChangeHeaderCells"] = "onChangeHeaderCells";
|
|
28788
29016
|
Callback["onChangePage"] = "onChangePage";
|
|
28789
29017
|
Callback["onClick"] = "onClick";
|
|
28790
29018
|
Callback["onClose"] = "onClose";
|
|
@@ -28818,11 +29046,7 @@ var KeyboardKey;
|
|
|
28818
29046
|
KeyboardKey["Space"] = " ";
|
|
28819
29047
|
})(KeyboardKey || (KeyboardKey = {}));
|
|
28820
29048
|
|
|
28821
|
-
const validateTableSettings = (component, value) => {
|
|
28822
|
-
watchValidator(component, `_tableSettings`, (value) => typeof value === 'object' && value !== null, new Set(['TableSettings']), value);
|
|
28823
|
-
};
|
|
28824
|
-
|
|
28825
|
-
const defaultStyleCss$8 = "@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-table {\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n gap: 0.25rem;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n width: calc(var(--a11y-min-size) / 2);\n height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-pagination {\n display: grid;\n gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n @media (min-width: 1024px) {\n .kol-pagination {\n display: flex;\n }\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n}";
|
|
29049
|
+
const defaultStyleCss$8 = "@charset \"UTF-8\";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: inline-block;\n }\n .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-table-settings {\n background: #fff;\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n }\n .kol-table-settings .kol-popover-button__popover {\n background: #fff;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n border: 1px solid #d1d5db;\n }\n .kol-table-settings__columns-container {\n max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16));\n margin-top: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n display: grid;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n align-items: center;\n grid-auto-rows: min-content;\n grid-template-columns: min-content minmax(max-content, 1fr) calc(100 * 1rem / var(--kolibri-root-font-size, 16)) auto auto;\n }\n .kol-table-settings__column {\n display: contents;\n }\n .kol-table {\n display: block;\n position: relative;\n max-width: 100%;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n text-align: start;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__sort {\n display: inline-flex;\n gap: 0.25rem;\n align-items: center;\n }\n .kol-table__sort-order {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n align-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n align-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n align-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n display: flex;\n position: relative;\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n cursor: pointer;\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n position: absolute;\n inset: auto;\n z-index: 1;\n }\n .kol-table__selection-input {\n border-style: solid;\n margin: 0;\n appearance: none;\n cursor: pointer;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n background-color: rgb(255, 255, 255);\n display: flex;\n position: relative;\n width: calc(var(--a11y-min-size) / 2);\n height: calc(var(--a11y-min-size) / 2);\n border-width: 2px;\n align-items: center;\n justify-content: center;\n line-height: 1.5;\n }\n .kol-table__selection-input--radio {\n border-radius: 100%;\n display: flex;\n width: 1.5em;\n min-width: 1.5em;\n height: 1.5em;\n min-height: 1.5em;\n padding: 0;\n border-width: 2px;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n width: 0.75em;\n height: 0.75em;\n margin: auto;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\"/\"\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\"/\"\";\n }\n .kol-input-container {\n background-color: transparent;\n display: grid;\n width: 100%;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-template-columns: 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start:not(:empty)):has(> .kol-input-container__adornment--end:not(:empty)) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-select {\n background-color: transparent;\n width: 100%;\n }\n .kol-select:not(:disabled) {\n cursor: pointer;\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: \"✓ \";\n }\n .kol-select {\n /* needed hack for vertical alignment */\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - 16 * 1rem / var(--kolibri-root-font-size, 16)) / 2) 0.5em;\n }\n .kol-pagination {\n display: flex;\n gap: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n .kol-pagination__navigation-list {\n display: inline-flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n align-items: center;\n list-style: none;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n .kol-pagination__page-size-select .kol-form-field-select {\n align-items: center;\n grid-template-columns: 1fr max-content;\n }\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n}";
|
|
28826
29050
|
|
|
28827
29051
|
const PAGINATION_OPTIONS = [10, 20, 50, 100];
|
|
28828
29052
|
const paginationValidator = (value) => value === true || value === '' || (typeof value === 'object' && value !== null);
|
|
@@ -29027,9 +29251,6 @@ class KolTableStateful {
|
|
|
29027
29251
|
validateOn(value) {
|
|
29028
29252
|
validateTableStatefulCallbacks(this, value);
|
|
29029
29253
|
}
|
|
29030
|
-
validateTableSettings(value) {
|
|
29031
|
-
validateTableSettings(this, value);
|
|
29032
|
-
}
|
|
29033
29254
|
validatePagination(value) {
|
|
29034
29255
|
try {
|
|
29035
29256
|
value = parseJson(value);
|
|
@@ -29064,7 +29285,6 @@ class KolTableStateful {
|
|
|
29064
29285
|
this.validatePagination(this._pagination);
|
|
29065
29286
|
this.validatePaginationPosition(this._paginationPosition);
|
|
29066
29287
|
this.validateSelection(this._selection);
|
|
29067
|
-
this.validateTableSettings(this._tableSettings);
|
|
29068
29288
|
this.validateHasSettingsMenu(this._hasSettingsMenu);
|
|
29069
29289
|
}
|
|
29070
29290
|
selectDisplayedData(data, pageSize, page) {
|
|
@@ -29085,17 +29305,7 @@ class KolTableStateful {
|
|
|
29085
29305
|
label: `${this.state._label} (${translate(`kol-pagination-position-${position}`)})`,
|
|
29086
29306
|
},
|
|
29087
29307
|
});
|
|
29088
|
-
return (hAsync("div", { class: `kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}` }, hAsync("
|
|
29089
|
-
placeholders: {
|
|
29090
|
-
start: this.pageEndSlice > 0 ? (this.pageStartSlice + 1).toString() : '0',
|
|
29091
|
-
end: this.pageEndSlice.toString(),
|
|
29092
|
-
total: this.state._pagination && this.state._pagination._max > 0
|
|
29093
|
-
? this.state._pagination._max.toString()
|
|
29094
|
-
: Array.isArray(this.state._data)
|
|
29095
|
-
? this.state._data.length.toString()
|
|
29096
|
-
: '0',
|
|
29097
|
-
},
|
|
29098
|
-
})), hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(KolPaginationWcTag, { class: "test", _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination._max || this.state._data.length, _label: label }))));
|
|
29308
|
+
return (hAsync("div", { class: `kol-table-stateful__pagination kol-table-stateful__pagination--${this.state._paginationPosition}` }, hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(KolPaginationWcTag, { class: "test", _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination._max || this.state._data.length, _label: label }))));
|
|
29099
29309
|
}
|
|
29100
29310
|
getHeaderCellSortState(headerCell) {
|
|
29101
29311
|
if (!this.disableSort && typeof headerCell.compareFn === 'function') {
|
|
@@ -29161,14 +29371,14 @@ class KolTableStateful {
|
|
|
29161
29371
|
horizontal: (_d = (_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), sortOrder: this.getHeaderCellSortOrder(cell) }))))) !== null && _d !== void 0 ? _d : [],
|
|
29162
29372
|
vertical: (_f = (_e = this.state._headers.vertical) === null || _e === void 0 ? void 0 : _e.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell), sortOrder: this.getHeaderCellSortOrder(cell) }))))) !== null && _f !== void 0 ? _f : [],
|
|
29163
29373
|
};
|
|
29164
|
-
return (hAsync(Host, { key: '
|
|
29374
|
+
return (hAsync(Host, { key: 'dc74281384656aebe2d8241ab5bbbc51a38831b0', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '32435816a2a41743771744fc00d51d59a1ebb56f', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
29165
29375
|
onSort: (_, payload) => {
|
|
29166
29376
|
this.handleSort(payload);
|
|
29167
29377
|
},
|
|
29168
29378
|
onSelectionChange: (event, value) => {
|
|
29169
29379
|
this.handleSelectionChange(event, value);
|
|
29170
29380
|
},
|
|
29171
|
-
}, _selection: this.state._selection,
|
|
29381
|
+
}, _selection: this.state._selection, _hasSettingsMenu: this.state._hasSettingsMenu }), this.pageEndSlice > 0 && this.showPagination && paginationBottom));
|
|
29172
29382
|
}
|
|
29173
29383
|
get host() { return getElement(this); }
|
|
29174
29384
|
static get watchers() { return {
|
|
@@ -29182,7 +29392,6 @@ class KolTableStateful {
|
|
|
29182
29392
|
"_minWidth": ["validateMinWidth"],
|
|
29183
29393
|
"_selection": ["validateSelection"],
|
|
29184
29394
|
"_on": ["validateOn"],
|
|
29185
|
-
"_tableSettings": ["validateTableSettings"],
|
|
29186
29395
|
"_pagination": ["validatePagination"]
|
|
29187
29396
|
}; }
|
|
29188
29397
|
static get style() { return {
|
|
@@ -29202,7 +29411,6 @@ class KolTableStateful {
|
|
|
29202
29411
|
"_paginationPosition": [1, "_pagination-position"],
|
|
29203
29412
|
"_selection": [1],
|
|
29204
29413
|
"_on": [16],
|
|
29205
|
-
"_tableSettings": [16],
|
|
29206
29414
|
"_hasSettingsMenu": [4, "_has-settings-menu"],
|
|
29207
29415
|
"state": [32],
|
|
29208
29416
|
"getSelection": [64]
|
|
@@ -29220,7 +29428,7 @@ let KolTableStateless$1 = class KolTableStateless {
|
|
|
29220
29428
|
registerInstance(this, hostRef);
|
|
29221
29429
|
}
|
|
29222
29430
|
render() {
|
|
29223
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
29431
|
+
return (hAsync(KolTableStatelessWcTag, { key: '4c5c1b12708ab46c691730bf842bfb62661a9234', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection, _hasSettingsMenu: this._hasSettingsMenu }));
|
|
29224
29432
|
}
|
|
29225
29433
|
static get style() { return {
|
|
29226
29434
|
default: defaultStyleCss$7
|
|
@@ -29236,7 +29444,6 @@ let KolTableStateless$1 = class KolTableStateless {
|
|
|
29236
29444
|
"_minWidth": [1, "_min-width"],
|
|
29237
29445
|
"_on": [16],
|
|
29238
29446
|
"_selection": [1],
|
|
29239
|
-
"_tableSettings": [16],
|
|
29240
29447
|
"_hasSettingsMenu": [4, "_has-settings-menu"]
|
|
29241
29448
|
},
|
|
29242
29449
|
"$listeners$": undefined,
|
|
@@ -29283,8 +29490,7 @@ class KolTableStateless {
|
|
|
29283
29490
|
}), key: `row-${key}` }, this.renderSelectionCell(row, rowIndex), row.map((cell, colIndex) => this.renderTableCell(cell, rowIndex, colIndex, isVertical))));
|
|
29284
29491
|
};
|
|
29285
29492
|
this.renderTableCell = (cell, rowIndex, colIndex, isVertical) => {
|
|
29286
|
-
|
|
29287
|
-
if (columnSetting && !columnSetting.visible) {
|
|
29493
|
+
if (cell.visible === false) {
|
|
29288
29494
|
return '';
|
|
29289
29495
|
}
|
|
29290
29496
|
let key = `${rowIndex}-${colIndex}-${cell.label}`;
|
|
@@ -29301,7 +29507,7 @@ class KolTableStateless {
|
|
|
29301
29507
|
[`kol-table__cell--align-${cell.textAlign}`]: cell.textAlign,
|
|
29302
29508
|
}), "aria-atomic": isNoEntriesHintCell ? 'false' : undefined, "aria-live": isNoEntriesHintCell ? 'polite' : undefined, "aria-relevant": isNoEntriesHintCell ? 'text' : undefined, colSpan: cell.colSpan, rowSpan: cell.rowSpan, style: {
|
|
29303
29509
|
textAlign: cell.textAlign,
|
|
29304
|
-
width:
|
|
29510
|
+
width: cell.width,
|
|
29305
29511
|
}, ref: typeof cell.render === 'function'
|
|
29306
29512
|
? (el) => {
|
|
29307
29513
|
this.cellRender(cell, el);
|
|
@@ -29326,7 +29532,7 @@ class KolTableStateless {
|
|
|
29326
29532
|
validateHeaderCells(value) {
|
|
29327
29533
|
validateTableHeaderCells(this, value);
|
|
29328
29534
|
if (!isEqual(this.previousHeaderCells, this.state._headerCells)) {
|
|
29329
|
-
this.
|
|
29535
|
+
this.initializeHeaderCellSettings();
|
|
29330
29536
|
}
|
|
29331
29537
|
this.previousHeaderCells = this.state._headerCells;
|
|
29332
29538
|
}
|
|
@@ -29344,24 +29550,6 @@ class KolTableStateless {
|
|
|
29344
29550
|
validateSelection(value) {
|
|
29345
29551
|
validateTableSelection(this, value);
|
|
29346
29552
|
}
|
|
29347
|
-
validateTableSettings(value) {
|
|
29348
|
-
validateTableSettings(this, this.normalizeTableSettings(value));
|
|
29349
|
-
}
|
|
29350
|
-
normalizeTableSettings(value) {
|
|
29351
|
-
if (!value || typeof value !== 'object') {
|
|
29352
|
-
return value;
|
|
29353
|
-
}
|
|
29354
|
-
const columns = Array.isArray(value.columns) ? value.columns : [];
|
|
29355
|
-
return Object.assign(Object.assign({}, value), { columns: columns.map(({ hidable, key, label, resizable, sortable, visible, width }) => ({
|
|
29356
|
-
hidable: hidable !== false,
|
|
29357
|
-
key: key !== null && key !== void 0 ? key : nonce(),
|
|
29358
|
-
label,
|
|
29359
|
-
resizable: resizable !== false,
|
|
29360
|
-
sortable: sortable !== false,
|
|
29361
|
-
visible: visible !== false,
|
|
29362
|
-
width,
|
|
29363
|
-
})) });
|
|
29364
|
-
}
|
|
29365
29553
|
handleKeyDown(event) {
|
|
29366
29554
|
var _a;
|
|
29367
29555
|
if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
|
|
@@ -29391,7 +29579,12 @@ class KolTableStateless {
|
|
|
29391
29579
|
}
|
|
29392
29580
|
}
|
|
29393
29581
|
handleSettingsChange(event) {
|
|
29394
|
-
|
|
29582
|
+
var _a;
|
|
29583
|
+
const updatedHeaderCells = Object.assign(Object.assign({}, this.state._headerCells), { horizontal: event.detail });
|
|
29584
|
+
setState(this, '_headerCells', updatedHeaderCells);
|
|
29585
|
+
if (typeof ((_a = this.state._on) === null || _a === void 0 ? void 0 : _a[Callback.onChangeHeaderCells]) === 'function') {
|
|
29586
|
+
this.state._on[Callback.onChangeHeaderCells](event, updatedHeaderCells);
|
|
29587
|
+
}
|
|
29395
29588
|
}
|
|
29396
29589
|
disconnectedCallback() {
|
|
29397
29590
|
var _a;
|
|
@@ -29485,29 +29678,6 @@ class KolTableStateless {
|
|
|
29485
29678
|
}
|
|
29486
29679
|
return primaryHeaders;
|
|
29487
29680
|
}
|
|
29488
|
-
getColumnPositionMap() {
|
|
29489
|
-
var _a;
|
|
29490
|
-
const keyToPosition = new Map();
|
|
29491
|
-
(_a = this.state._tableSettings) === null || _a === void 0 ? void 0 : _a.columns.forEach((setting, index) => {
|
|
29492
|
-
keyToPosition.set(setting.key, index);
|
|
29493
|
-
});
|
|
29494
|
-
return keyToPosition;
|
|
29495
|
-
}
|
|
29496
|
-
sortByColumnPosition(columns) {
|
|
29497
|
-
const keyToPosition = this.getColumnPositionMap();
|
|
29498
|
-
return columns
|
|
29499
|
-
.map((column, index) => ({ column, index }))
|
|
29500
|
-
.sort((a, b) => {
|
|
29501
|
-
var _a, _b, _c, _d;
|
|
29502
|
-
const posA = (_b = keyToPosition.get((_a = a.column.key) !== null && _a !== void 0 ? _a : '')) !== null && _b !== void 0 ? _b : Number.MAX_SAFE_INTEGER;
|
|
29503
|
-
const posB = (_d = keyToPosition.get((_c = b.column.key) !== null && _c !== void 0 ? _c : '')) !== null && _d !== void 0 ? _d : Number.MAX_SAFE_INTEGER;
|
|
29504
|
-
if (posA !== posB) {
|
|
29505
|
-
return posA - posB;
|
|
29506
|
-
}
|
|
29507
|
-
return a.index - b.index;
|
|
29508
|
-
})
|
|
29509
|
-
.map(({ column }) => column);
|
|
29510
|
-
}
|
|
29511
29681
|
createDataField(data, headers, isFoot) {
|
|
29512
29682
|
var _a;
|
|
29513
29683
|
headers.horizontal = Array.isArray(headers === null || headers === void 0 ? void 0 : headers.horizontal) ? headers.horizontal : [];
|
|
@@ -29527,7 +29697,7 @@ class KolTableStateless {
|
|
|
29527
29697
|
rowCount[index] = 0;
|
|
29528
29698
|
rowSpans[index] = [];
|
|
29529
29699
|
});
|
|
29530
|
-
const sortedPrimaryHeader =
|
|
29700
|
+
const sortedPrimaryHeader = primaryHeader;
|
|
29531
29701
|
for (let i = startRow; i < maxRows; i++) {
|
|
29532
29702
|
const dataRow = [];
|
|
29533
29703
|
headers.vertical.forEach((headerCells, index) => {
|
|
@@ -29559,7 +29729,7 @@ class KolTableStateless {
|
|
|
29559
29729
|
typeof row === 'object' &&
|
|
29560
29730
|
row !== null &&
|
|
29561
29731
|
(typeof sortedPrimaryHeader[j].key === 'string' || typeof sortedPrimaryHeader[j].render === 'function')) {
|
|
29562
|
-
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[j]), { colSpan: undefined, data: row, label: row[sortedPrimaryHeader[j].key]
|
|
29732
|
+
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[j]), { colSpan: undefined, rowSpan: undefined, data: row, label: row[sortedPrimaryHeader[j].key] }));
|
|
29563
29733
|
}
|
|
29564
29734
|
}
|
|
29565
29735
|
else {
|
|
@@ -29568,7 +29738,7 @@ class KolTableStateless {
|
|
|
29568
29738
|
typeof data[j] === 'object' &&
|
|
29569
29739
|
data[j] !== null &&
|
|
29570
29740
|
(typeof sortedPrimaryHeader[i].key === 'string' || typeof sortedPrimaryHeader[i].render === 'function')) {
|
|
29571
|
-
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[i]), { colSpan: undefined, data: data[j], label: data[j][sortedPrimaryHeader[i].key]
|
|
29741
|
+
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[i]), { colSpan: undefined, rowSpan: undefined, data: data[j], label: data[j][sortedPrimaryHeader[i].key] }));
|
|
29572
29742
|
}
|
|
29573
29743
|
}
|
|
29574
29744
|
}
|
|
@@ -29612,27 +29782,11 @@ class KolTableStateless {
|
|
|
29612
29782
|
dispatchDomEvent(this.host, KolEvent.selectionChange, payload);
|
|
29613
29783
|
}
|
|
29614
29784
|
}
|
|
29615
|
-
|
|
29616
|
-
if (this.
|
|
29617
|
-
|
|
29618
|
-
|
|
29619
|
-
const primaryHeaders = this.getPrimaryHeaders(this.state._headerCells);
|
|
29620
|
-
if (!this.state._tableSettings) {
|
|
29621
|
-
this.state._tableSettings = { columns: [] };
|
|
29785
|
+
initializeHeaderCellSettings() {
|
|
29786
|
+
if (this.state._headerCells && this.state._headerCells.horizontal && this.state._headerCells.horizontal.length > 0) {
|
|
29787
|
+
const updatedHeaderCells = Object.assign(Object.assign({}, this.state._headerCells), { horizontal: this.state._headerCells.horizontal.map((row) => row.map((header) => (Object.assign(Object.assign({}, header), { visible: typeof header.visible === 'boolean' ? header.visible : true, hidable: typeof header.hidable === 'boolean' ? header.hidable : true })))) });
|
|
29788
|
+
setState(this, '_headerCells', updatedHeaderCells);
|
|
29622
29789
|
}
|
|
29623
|
-
this.state._tableSettings.columns = primaryHeaders
|
|
29624
|
-
.filter((header) => header.key)
|
|
29625
|
-
.map((header) => {
|
|
29626
|
-
var _a;
|
|
29627
|
-
return ({
|
|
29628
|
-
hidable: header.hidable !== false,
|
|
29629
|
-
sortable: header.sortable !== false,
|
|
29630
|
-
resizable: header.resizable !== false,
|
|
29631
|
-
key: (_a = header.key) !== null && _a !== void 0 ? _a : nonce(),
|
|
29632
|
-
label: header.label,
|
|
29633
|
-
visible: true,
|
|
29634
|
-
});
|
|
29635
|
-
});
|
|
29636
29790
|
}
|
|
29637
29791
|
componentWillLoad() {
|
|
29638
29792
|
this.validateData(this._data);
|
|
@@ -29642,7 +29796,6 @@ class KolTableStateless {
|
|
|
29642
29796
|
this.validateMinWidth(this._minWidth);
|
|
29643
29797
|
this.validateOn(this._on);
|
|
29644
29798
|
this.validateSelection(this._selection);
|
|
29645
|
-
this.validateTableSettings(this._tableSettings);
|
|
29646
29799
|
this.validateHasSettingsMenu(this._hasSettingsMenu);
|
|
29647
29800
|
}
|
|
29648
29801
|
renderSelectionCell(row, rowIndex) {
|
|
@@ -29676,7 +29829,7 @@ class KolTableStateless {
|
|
|
29676
29829
|
};
|
|
29677
29830
|
return (hAsync("td", { key: `tbody-${rowIndex}-selection`, class: "kol-table__cell kol-table__cell--selection" }, hAsync("div", { class: clsx('kol-table__selection', { 'kol-table__selection--checked': selected }) }, isMultiple ? (hAsync("label", { class: clsx('kol-table__selection-label', {
|
|
29678
29831
|
'kol-table__selection-label--disabled': disabled,
|
|
29679
|
-
}) }, hAsync(KolIconTag, { class: "kol-table__selection-icon", _icons: `
|
|
29832
|
+
}) }, hAsync(KolIconTag, { class: "kol-table__selection-icon", _icons: `kolicon ${selected ? 'kolicon-check' : ''}`, _label: "" }), hAsync("input", Object.assign({ class: clsx('kol-table__selection-input kol-table__selection-input--checkbox'), ref: (el) => el && this.checkboxRefs.push(el) }, props, { type: "checkbox", onInput: (event) => {
|
|
29680
29833
|
const current = (() => {
|
|
29681
29834
|
const v = selection === null || selection === void 0 ? void 0 : selection.selectedKeys;
|
|
29682
29835
|
return v === undefined ? [] : Array.isArray(v) ? v : [v];
|
|
@@ -29687,10 +29840,6 @@ class KolTableStateless {
|
|
|
29687
29840
|
this.handleSelectionChangeCallbackAndEvent(event, [keyProperty]);
|
|
29688
29841
|
} })))), hAsync(KolTooltipWcTag, { "aria-hidden": "true", class: "kol-table__selection-input-tooltip", _align: "right", _id: `${keyProperty}-label`, _label: label }))));
|
|
29689
29842
|
}
|
|
29690
|
-
getColumnSettings(cell) {
|
|
29691
|
-
var _a;
|
|
29692
|
-
return (_a = this.state._tableSettings) === null || _a === void 0 ? void 0 : _a.columns.find((setting) => setting.key === cell.key);
|
|
29693
|
-
}
|
|
29694
29843
|
getSelectionKeyPropertyName() {
|
|
29695
29844
|
var _a, _b;
|
|
29696
29845
|
return (_b = (_a = this.state._selection) === null || _a === void 0 ? void 0 : _a.keyPropertyName) !== null && _b !== void 0 ? _b : 'id';
|
|
@@ -29740,9 +29889,8 @@ class KolTableStateless {
|
|
|
29740
29889
|
return selection;
|
|
29741
29890
|
}
|
|
29742
29891
|
getTableMinWidth() {
|
|
29743
|
-
var _a
|
|
29744
|
-
|
|
29745
|
-
return this.state._minWidth === 'auto' ? `${totalColumnWidth}ch` : `max(${this.state._minWidth}, ${totalColumnWidth}ch)`;
|
|
29892
|
+
var _a;
|
|
29893
|
+
return (_a = this.state._minWidth) !== null && _a !== void 0 ? _a : 'auto';
|
|
29746
29894
|
}
|
|
29747
29895
|
renderHeadingSelectionCell() {
|
|
29748
29896
|
var _a, _b;
|
|
@@ -29768,7 +29916,7 @@ class KolTableStateless {
|
|
|
29768
29916
|
return (hAsync("th", { key: `thead-0-selection`, class: "kol-table__cell kol-table__cell--header kol-table__cell--selection" }, hAsync("div", { class: clsx('kol-table__selection', {
|
|
29769
29917
|
'kol-table__selection--indeterminate': indeterminate,
|
|
29770
29918
|
'kol-table__selection--checked': isChecked,
|
|
29771
|
-
}) }, hAsync("label", { class: "kol-table__selection-label" }, hAsync(KolIconTag, { class: "kol-table__selection-icon", _icons: `
|
|
29919
|
+
}) }, hAsync("label", { class: "kol-table__selection-label" }, hAsync(KolIconTag, { class: "kol-table__selection-icon", _icons: `kolicon ${indeterminate ? 'kolicon-minus' : isChecked ? 'kolicon-check' : ''}`, _label: "" }), hAsync("input", { class: clsx('kol-table__selection-input kol-table__selection-input--checkbox'), "data-testid": "selection-checkbox-all", ref: (el) => el && this.checkboxRefs.push(el), name: "selection", checked: isChecked && !indeterminate, indeterminate: indeterminate, "aria-label": label, type: "checkbox", onInput: (event) => {
|
|
29772
29920
|
this.handleSelectionChangeCallbackAndEvent(event, this.getRevertedSelection(!isChecked));
|
|
29773
29921
|
} })), hAsync(KolTooltipWcTag, { "aria-hidden": "true", class: "kol-table__selection-input-tooltip", _align: "right", _id: `${translationKey}-label`, _label: label }))));
|
|
29774
29922
|
}
|
|
@@ -29789,23 +29937,22 @@ class KolTableStateless {
|
|
|
29789
29937
|
return this.translateSort;
|
|
29790
29938
|
}
|
|
29791
29939
|
renderHeadingCell(cell, rowIndex, colIndex, isVertical) {
|
|
29792
|
-
|
|
29793
|
-
if (columnSettings && !columnSettings.visible) {
|
|
29940
|
+
if (cell.visible === false) {
|
|
29794
29941
|
return '';
|
|
29795
29942
|
}
|
|
29796
|
-
const sortableSetting = (
|
|
29943
|
+
const sortableSetting = (cell === null || cell === void 0 ? void 0 : cell.sortable) !== false;
|
|
29797
29944
|
const hasSortDirection = typeof cell.sortDirection === 'string';
|
|
29798
29945
|
const canSort = sortableSetting && hasSortDirection;
|
|
29799
29946
|
let ariaSort = 'none';
|
|
29800
|
-
let sortButtonIcon = '
|
|
29947
|
+
let sortButtonIcon = 'kolicon-sort-neutral';
|
|
29801
29948
|
if (canSort && cell.sortDirection) {
|
|
29802
29949
|
switch (cell.sortDirection) {
|
|
29803
29950
|
case 'ASC':
|
|
29804
|
-
sortButtonIcon = '
|
|
29951
|
+
sortButtonIcon = 'kolicon-sort-asc';
|
|
29805
29952
|
ariaSort = 'ascending';
|
|
29806
29953
|
break;
|
|
29807
29954
|
case 'DESC':
|
|
29808
|
-
sortButtonIcon = '
|
|
29955
|
+
sortButtonIcon = 'kolicon-sort-desc';
|
|
29809
29956
|
ariaSort = 'descending';
|
|
29810
29957
|
break;
|
|
29811
29958
|
default:
|
|
@@ -29819,7 +29966,7 @@ class KolTableStateless {
|
|
|
29819
29966
|
[`kol-table__cell--align-${cell.textAlign}`]: cell.textAlign,
|
|
29820
29967
|
[`kol-table__cell--${ariaSort}`]: ariaSort,
|
|
29821
29968
|
}), scope: scope, colSpan: cell.colSpan, rowSpan: cell.rowSpan, style: {
|
|
29822
|
-
width:
|
|
29969
|
+
width: cell.width,
|
|
29823
29970
|
}, "aria-sort": ariaSort, "data-sort": canSort && cell.sortDirection ? `sort-${cell.sortDirection}` : undefined }, canSort && cell.sortDirection ? (hAsync("span", { class: "kol-table__sort" }, hAsync(KolButtonWcTag, { class: "kol-table__sort-button", exportparts: "icon", _icons: { right: sortButtonIcon }, _label: cell.label, _ariaDescription: sortDescription, _on: {
|
|
29824
29971
|
onClick: (event) => {
|
|
29825
29972
|
var _a;
|
|
@@ -29856,16 +30003,15 @@ class KolTableStateless {
|
|
|
29856
30003
|
]));
|
|
29857
30004
|
}
|
|
29858
30005
|
render() {
|
|
29859
|
-
var _a;
|
|
29860
30006
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
29861
30007
|
this.checkboxRefs = [];
|
|
29862
|
-
const
|
|
29863
|
-
return (hAsync("div", { key: '
|
|
30008
|
+
const horizontalHeaders = this.state._headerCells.horizontal;
|
|
30009
|
+
return (hAsync("div", { key: '6990e9985ff47becaa51738e9639fba36554da52', class: "kol-table" }, this.state._hasSettingsMenu && hAsync(KolTableSettingsWcTag, { key: '98351e79e149ccce5461fb6571ce6b816dd9c816', _horizontalHeaderCells: horizontalHeaders !== null && horizontalHeaders !== void 0 ? horizontalHeaders : [] }), hAsync("div", { key: '559c67276958b7794a11c0870c6dfcb317238247', ref: (element) => (this.tableDivElement = element), class: "kol-table__scroll-container", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '701b3765f2a5556bfea3b2bcd75d0ae54dd2b846', class: "kol-table__table", style: {
|
|
29864
30010
|
minWidth: this.getTableMinWidth(),
|
|
29865
|
-
} }, hAsync("caption", { key: '
|
|
29866
|
-
|
|
29867
|
-
this.renderSpacer('head',
|
|
29868
|
-
])), hAsync("tbody", { key: '
|
|
30011
|
+
} }, hAsync("caption", { key: 'aa732ab98e7a0a51bb5ec4bb070d88c39a63794c', class: "kol-table__focus-element kol-table__caption", id: "caption", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined }, this.state._label), Array.isArray(horizontalHeaders) && (hAsync("thead", { key: '080ad661adbad52d23c0dad31c39b266dc97b160', class: "kol-table__head" }, [
|
|
30012
|
+
horizontalHeaders.map((cols, rowIndex) => (hAsync("tr", { class: "kol-table__head-row", key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) && cols.map((cell, colIndex) => this.renderHeadingCell(cell, rowIndex, colIndex, false))))),
|
|
30013
|
+
this.renderSpacer('head', horizontalHeaders),
|
|
30014
|
+
])), hAsync("tbody", { key: '0bed96fe3264fc18528265ec9f717a293c5caef6', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
29869
30015
|
}
|
|
29870
30016
|
get host() { return getElement(this); }
|
|
29871
30017
|
static get watchers() { return {
|
|
@@ -29876,8 +30022,7 @@ class KolTableStateless {
|
|
|
29876
30022
|
"_label": ["validateLabel"],
|
|
29877
30023
|
"_minWidth": ["validateMinWidth"],
|
|
29878
30024
|
"_on": ["validateOn"],
|
|
29879
|
-
"_selection": ["validateSelection"]
|
|
29880
|
-
"_tableSettings": ["validateTableSettings"]
|
|
30025
|
+
"_selection": ["validateSelection"]
|
|
29881
30026
|
}; }
|
|
29882
30027
|
static get cmpMeta() { return {
|
|
29883
30028
|
"$flags$": 256,
|
|
@@ -29890,13 +30035,12 @@ class KolTableStateless {
|
|
|
29890
30035
|
"_minWidth": [1, "_min-width"],
|
|
29891
30036
|
"_on": [16],
|
|
29892
30037
|
"_selection": [1],
|
|
29893
|
-
"_tableSettings": [16],
|
|
29894
30038
|
"_hasSettingsMenu": [4, "_has-settings-menu"],
|
|
29895
30039
|
"state": [32],
|
|
29896
30040
|
"tableDivElementHasScrollbar": [32],
|
|
29897
30041
|
"previousHeaderCells": [32]
|
|
29898
30042
|
},
|
|
29899
|
-
"$listeners$": [[0, "keydown", "handleKeyDown"], [0, "
|
|
30043
|
+
"$listeners$": [[0, "keydown", "handleKeyDown"], [0, "changeHeaderCells", "handleSettingsChange"]],
|
|
29900
30044
|
"$lazyBundleId$": "-",
|
|
29901
30045
|
"$attrsToReflect$": []
|
|
29902
30046
|
}; }
|
|
@@ -30103,12 +30247,12 @@ class KolTabs {
|
|
|
30103
30247
|
renderButtonGroup() {
|
|
30104
30248
|
return (hAsync("div", { "aria-label": this.state._label, class: "kol-tabs__button-group", role: "tablist", onKeyDown: this.onKeyDown, onBlur: this.onBlur }, this.state._tabs.map((button, index) => (hAsync(KolButtonWcTag, { _disabled: button._disabled, _icons: button._icons, _hideLabel: button._hideLabel, _label: button._label, _on: this.callbacks, _tabIndex: this.state._selected === index ? 0 : -1, _tooltipAlign: button._tooltipAlign, _buttonVariant: this.state._selected === index ? 'custom' : undefined, _customClass: this.state._selected === index ? 'selected' : undefined, _ariaControls: `tabpanel-${index}`, _ariaSelected: this.state._selected === index, _id: `${this.state._label.replace(/\s/g, '-')}-tab-${index}`, _role: "tab", _value: index }))), this.state._hasCreateButton && (hAsync(KolButtonWcTag, { class: "kol-tabs__button-create", _label: this.onCreateLabel, _on: {
|
|
30105
30249
|
onClick: this.onCreate,
|
|
30106
|
-
}, _icons: "
|
|
30250
|
+
}, _icons: "kolicon-plus", "data-testid": "tabs-create-button" }))));
|
|
30107
30251
|
}
|
|
30108
30252
|
render() {
|
|
30109
|
-
return (hAsync("div", { key: '
|
|
30253
|
+
return (hAsync("div", { key: 'd2ead3f3fa8c12ae4e4d658ced80bd9915e358ca', ref: (el) => {
|
|
30110
30254
|
this.tabPanelsElement = el;
|
|
30111
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
30255
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: 'a0e9d89632c7dd6af0c0d9ed9f53e6a4d9829fe5', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
30112
30256
|
}
|
|
30113
30257
|
validateAlign(value) {
|
|
30114
30258
|
validateAlign(this, value);
|
|
@@ -30306,9 +30450,9 @@ class KolTextarea {
|
|
|
30306
30450
|
var _a;
|
|
30307
30451
|
return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
30308
30452
|
}
|
|
30309
|
-
async
|
|
30453
|
+
async focus() {
|
|
30310
30454
|
var _a;
|
|
30311
|
-
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30455
|
+
return Promise.resolve((_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus());
|
|
30312
30456
|
}
|
|
30313
30457
|
getFormFieldProps() {
|
|
30314
30458
|
return {
|
|
@@ -30334,7 +30478,7 @@ class KolTextarea {
|
|
|
30334
30478
|
} });
|
|
30335
30479
|
}
|
|
30336
30480
|
render() {
|
|
30337
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
30481
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '55fb2285f0d4035a7468359c26d7eae0333ebe2d' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2db1a595b9eef777a40f716b8596a03e03144aa7', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: '14d56cb30389a03cbb82ca2b76ee96eb60488e9e' }, this.getTextAreaProps())))));
|
|
30338
30482
|
}
|
|
30339
30483
|
constructor(hostRef) {
|
|
30340
30484
|
registerInstance(this, hostRef);
|
|
@@ -30535,7 +30679,7 @@ class KolTextarea {
|
|
|
30535
30679
|
"state": [32],
|
|
30536
30680
|
"inputHasFocus": [32],
|
|
30537
30681
|
"getValue": [64],
|
|
30538
|
-
"
|
|
30682
|
+
"focus": [64]
|
|
30539
30683
|
},
|
|
30540
30684
|
"$listeners$": undefined,
|
|
30541
30685
|
"$lazyBundleId$": "-",
|
|
@@ -30543,7 +30687,7 @@ class KolTextarea {
|
|
|
30543
30687
|
}; }
|
|
30544
30688
|
}
|
|
30545
30689
|
|
|
30546
|
-
const defaultStyleCss$4 = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: flex;\n position: fixed;\n z-index: 200;\n flex-direction: column;\n }\n .kol-toast-container__close-all {\n align-self: flex-end;\n }\n}";
|
|
30690
|
+
const defaultStyleCss$4 = "/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n :host {\n display: flex;\n position: fixed;\n z-index: 200;\n max-width: 90vw;\n flex-direction: column;\n }\n .kol-toast-container__close-all {\n align-self: flex-end;\n }\n}";
|
|
30547
30691
|
|
|
30548
30692
|
const TRANSITION_TIMEOUT = 300;
|
|
30549
30693
|
class KolToastContainer {
|
|
@@ -30606,7 +30750,7 @@ class KolToastContainer {
|
|
|
30606
30750
|
}
|
|
30607
30751
|
}
|
|
30608
30752
|
render() {
|
|
30609
|
-
return (hAsync(Host, { key: '
|
|
30753
|
+
return (hAsync(Host, { key: '40e9e249cceebf6d433444192d5199a2d7864f34', class: "kol-toast-container" }, this.state._toastStates.length > 1 && (hAsync(KolButtonTag, { key: '68a998df0fe18affd0db5e06fdfb92c9aee4abd8', _label: this.translateToastCloseAll, class: "kol-toast-container__button-close-all", _on: {
|
|
30610
30754
|
onClick: () => {
|
|
30611
30755
|
void this.closeAll();
|
|
30612
30756
|
},
|
|
@@ -30660,7 +30804,7 @@ class KolToolbar {
|
|
|
30660
30804
|
return Object.assign(Object.assign({}, rest), { _icons, _disabled });
|
|
30661
30805
|
}
|
|
30662
30806
|
render() {
|
|
30663
|
-
return (hAsync("div", { key: '
|
|
30807
|
+
return (hAsync("div", { key: 'b8bf5d060d2390c8c4bbf3345d731074ff297541', class: `kol-toolbar kol-toolbar--orientation-${this.state._orientation}`, role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem)));
|
|
30664
30808
|
}
|
|
30665
30809
|
validateLabel(value) {
|
|
30666
30810
|
validateLabel(this, value);
|
|
@@ -30707,7 +30851,7 @@ class KolToolbar {
|
|
|
30707
30851
|
if ((_d = (_c = this.state._items) === null || _c === void 0 ? void 0 : _c[nextIndex]) === null || _d === void 0 ? void 0 : _d._disabled)
|
|
30708
30852
|
return;
|
|
30709
30853
|
this.currentIndex = nextIndex;
|
|
30710
|
-
void ((_e = this.getCurrentToolbarItem(nextIndex)) === null || _e === void 0 ? void 0 : _e.
|
|
30854
|
+
void ((_e = this.getCurrentToolbarItem(nextIndex)) === null || _e === void 0 ? void 0 : _e.focus());
|
|
30711
30855
|
}
|
|
30712
30856
|
handleBlur(event) {
|
|
30713
30857
|
if (event.target === this.host)
|
|
@@ -30899,7 +31043,7 @@ class KolTooltipWc {
|
|
|
30899
31043
|
getDocument().removeEventListener('keyup', this.hideTooltipByEscape);
|
|
30900
31044
|
}
|
|
30901
31045
|
render() {
|
|
30902
|
-
return (hAsync(Host, { key: '
|
|
31046
|
+
return (hAsync(Host, { key: 'efee2bbf85c5acdd5a489a249bd7bcf7b2cd3dc2', class: "kol-tooltip" }, this.state._label !== '' && (hAsync("div", { key: '99955951f3dd9d2c04e330be7f783ff9ebb7250f', class: "kol-tooltip__floating", ref: this.catchTooltipElement }, hAsync("div", { key: 'b023b51d943b2ffe5cb0773edb26a3c94e60829f', class: "kol-tooltip__arrow", ref: this.catchArrowElement }), hAsync(KolSpanFc, { key: 'ca17df24e680c94f6c1859104937c390f401e81c', class: "kol-tooltip__content", id: this.state._id, badgeText: this._badgeText, label: this.state._label })))));
|
|
30903
31047
|
}
|
|
30904
31048
|
validateBadgeText(value) {
|
|
30905
31049
|
validateBadgeText(this, value);
|
|
@@ -30977,7 +31121,7 @@ class KolTree {
|
|
|
30977
31121
|
registerInstance(this, hostRef);
|
|
30978
31122
|
}
|
|
30979
31123
|
render() {
|
|
30980
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
31124
|
+
return (hAsync(KolTreeWcTag, { key: '0a42e480a9fe270180fa75f07b87bfb00a634ac9', _label: this._label }, hAsync("slot", { key: '19c9f71d5a62202b0022adff62b36a277797dd0c' })));
|
|
30981
31125
|
}
|
|
30982
31126
|
static get style() { return {
|
|
30983
31127
|
default: defaultStyleCss$2
|
|
@@ -31000,27 +31144,24 @@ class KolTreeItem {
|
|
|
31000
31144
|
constructor(hostRef) {
|
|
31001
31145
|
registerInstance(this, hostRef);
|
|
31002
31146
|
}
|
|
31003
|
-
async
|
|
31004
|
-
|
|
31005
|
-
|
|
31006
|
-
}
|
|
31147
|
+
async focus() {
|
|
31148
|
+
var _a;
|
|
31149
|
+
return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31007
31150
|
}
|
|
31008
31151
|
async expand() {
|
|
31009
|
-
|
|
31010
|
-
|
|
31011
|
-
}
|
|
31152
|
+
var _a;
|
|
31153
|
+
return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.expand());
|
|
31012
31154
|
}
|
|
31013
31155
|
async collapse() {
|
|
31014
|
-
|
|
31015
|
-
|
|
31016
|
-
}
|
|
31156
|
+
var _a;
|
|
31157
|
+
return Promise.resolve((_a = this.element) === null || _a === void 0 ? void 0 : _a.collapse());
|
|
31017
31158
|
}
|
|
31018
31159
|
async isOpen() {
|
|
31019
31160
|
var _a, _b;
|
|
31020
31161
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
31021
31162
|
}
|
|
31022
31163
|
render() {
|
|
31023
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
31164
|
+
return (hAsync(KolTreeItemWcTag, { key: '92fa2ccaf67dfa24531f8fca4c802c2bbfc03916', _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '164f21da0af88f1021068e5e310d1487707f7059' })));
|
|
31024
31165
|
}
|
|
31025
31166
|
static get style() { return {
|
|
31026
31167
|
default: defaultStyleCss$1
|
|
@@ -31033,7 +31174,7 @@ class KolTreeItem {
|
|
|
31033
31174
|
"_label": [1],
|
|
31034
31175
|
"_open": [4],
|
|
31035
31176
|
"_href": [1],
|
|
31036
|
-
"
|
|
31177
|
+
"focus": [64],
|
|
31037
31178
|
"expand": [64],
|
|
31038
31179
|
"collapse": [64],
|
|
31039
31180
|
"isOpen": [64]
|
|
@@ -31058,12 +31199,12 @@ class KolTreeItemWc {
|
|
|
31058
31199
|
}
|
|
31059
31200
|
render() {
|
|
31060
31201
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
31061
|
-
return (hAsync(Host, { key: '
|
|
31202
|
+
return (hAsync(Host, { key: 'e99bc051fe9fe90cd4a5aaf861d61d0d512c808a', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: 'e0ae86b656eab778f80852a40dd84cda832695a9', class: "kol-tree-item", style: {
|
|
31062
31203
|
'--level': `${this.level}`,
|
|
31063
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
31204
|
+
} }, hAsync(KolLinkWcTag, { key: '3ffea17f30ab8e461e936d691d7fd4389f04bf2c', class: clsx('kol-tree-item__link', {
|
|
31064
31205
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
31065
31206
|
'kol-tree-item__link--active': _active,
|
|
31066
|
-
}), _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _hasChildren ? _open : undefined, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: '
|
|
31207
|
+
}), _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _hasChildren ? _open : undefined, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: 'dfd6fa644efe7efe4700ec74a5f1c50e82262494', class: "kol-tree-item__link-inner", slot: "expert" }, _hasChildren ? (hAsync("span", { class: "kol-tree-item__toggle-button", onClick: (event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event)) }, hAsync(KolIconTag, { class: "kol-tree-item__toggle-button-icon", _icons: `kolicon kolicon-${_open ? 'chevron-down' : 'chevron-right'}`, _label: '' }))) : (hAsync("span", { class: "kol-tree-item__toggle-button-placeholder" })), hAsync("span", { key: 'ef4714af7a6a63c447b3df2647dc605d5c9693b9', class: "kol-tree-item__text" }, _label))), hAsync("ul", { key: '34f5c43c0d6b3ecc0d78d6eb2101aa451e5d1cb2', class: "kol-tree-item__children", hidden: !_hasChildren || !_open, role: "group", id: this.groupId }, hAsync("slot", { key: '1ef6c1855acdebee823d68f7d0849fcd79d5d558' })))));
|
|
31067
31208
|
}
|
|
31068
31209
|
validateActive(value) {
|
|
31069
31210
|
validateActive(this, value || false);
|
|
@@ -31101,12 +31242,14 @@ class KolTreeItemWc {
|
|
|
31101
31242
|
var _a, _b;
|
|
31102
31243
|
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) });
|
|
31103
31244
|
}
|
|
31104
|
-
async
|
|
31105
|
-
|
|
31245
|
+
async focus() {
|
|
31246
|
+
var _a;
|
|
31247
|
+
return Promise.resolve((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31106
31248
|
}
|
|
31107
31249
|
async handleExpandClick(event) {
|
|
31250
|
+
var _a;
|
|
31108
31251
|
event.preventDefault();
|
|
31109
|
-
await this.linkElement.
|
|
31252
|
+
await ((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31110
31253
|
await this.expand();
|
|
31111
31254
|
}
|
|
31112
31255
|
async expand() {
|
|
@@ -31115,8 +31258,9 @@ class KolTreeItemWc {
|
|
|
31115
31258
|
}
|
|
31116
31259
|
}
|
|
31117
31260
|
async handleCollapseClick(event) {
|
|
31261
|
+
var _a;
|
|
31118
31262
|
event.preventDefault();
|
|
31119
|
-
this.linkElement.focus();
|
|
31263
|
+
await ((_a = this.linkElement) === null || _a === void 0 ? void 0 : _a.focus());
|
|
31120
31264
|
await this.collapse();
|
|
31121
31265
|
}
|
|
31122
31266
|
async collapse() {
|
|
@@ -31145,7 +31289,7 @@ class KolTreeItemWc {
|
|
|
31145
31289
|
"_href": [1],
|
|
31146
31290
|
"level": [32],
|
|
31147
31291
|
"state": [32],
|
|
31148
|
-
"
|
|
31292
|
+
"focus": [64],
|
|
31149
31293
|
"expand": [64],
|
|
31150
31294
|
"collapse": [64],
|
|
31151
31295
|
"isOpen": [64]
|
|
@@ -31167,7 +31311,7 @@ class KolTreeWc {
|
|
|
31167
31311
|
validateLabel(this, value);
|
|
31168
31312
|
}
|
|
31169
31313
|
render() {
|
|
31170
|
-
return (hAsync(Host, { key: '
|
|
31314
|
+
return (hAsync(Host, { key: '6e1fc1f0d6757fec0658d28ff54fe73a58b60fa9', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("nav", { key: 'dfc733503c12e36fc8e6fc958273555f4e698237', class: "kol-tree", "aria-label": this.state._label }, hAsync("ul", { key: '9c68ce61a9bfbe5ade976515eaa43e2d9fbf380d', class: "kol-tree__treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: 'db660a5bc5cb5544f2c35e9e14f2a61d6e06ac69' })))));
|
|
31171
31315
|
}
|
|
31172
31316
|
static isTreeItem(element) {
|
|
31173
31317
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -31230,7 +31374,7 @@ class KolTreeWc {
|
|
|
31230
31374
|
return elementsWithInclude.filter((element) => element.include).map((element) => element.value);
|
|
31231
31375
|
}
|
|
31232
31376
|
async handleKeyDown(event) {
|
|
31233
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
31377
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
31234
31378
|
const openItems = await this.getOpenTreeItemElements();
|
|
31235
31379
|
const currentTreeItem = (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(KolTreeItemTag);
|
|
31236
31380
|
const hasModifierKeyPressed = event.metaKey || event.altKey || event.ctrlKey || event.shiftKey;
|
|
@@ -31240,12 +31384,12 @@ class KolTreeWc {
|
|
|
31240
31384
|
const currentIndex = openItems === null || openItems === void 0 ? void 0 : openItems.findIndex((elem) => elem === currentTreeItem);
|
|
31241
31385
|
switch (event.key) {
|
|
31242
31386
|
case 'ArrowDown': {
|
|
31243
|
-
await ((_b = openItems[currentIndex + 1]) === null || _b === void 0 ? void 0 : _b.
|
|
31387
|
+
await ((_b = openItems[currentIndex + 1]) === null || _b === void 0 ? void 0 : _b.focus());
|
|
31244
31388
|
event.preventDefault();
|
|
31245
31389
|
break;
|
|
31246
31390
|
}
|
|
31247
31391
|
case 'ArrowUp': {
|
|
31248
|
-
await ((_c = openItems[currentIndex - 1]) === null || _c === void 0 ? void 0 : _c.
|
|
31392
|
+
await ((_c = openItems[currentIndex - 1]) === null || _c === void 0 ? void 0 : _c.focus());
|
|
31249
31393
|
event.preventDefault();
|
|
31250
31394
|
break;
|
|
31251
31395
|
}
|
|
@@ -31253,7 +31397,7 @@ class KolTreeWc {
|
|
|
31253
31397
|
case 'ArrowRight': {
|
|
31254
31398
|
event.preventDefault();
|
|
31255
31399
|
if (await currentTreeItem.isOpen()) {
|
|
31256
|
-
await ((_d = openItems[currentIndex + 1]) === null || _d === void 0 ? void 0 : _d.
|
|
31400
|
+
await ((_d = openItems[currentIndex + 1]) === null || _d === void 0 ? void 0 : _d.focus());
|
|
31257
31401
|
}
|
|
31258
31402
|
else {
|
|
31259
31403
|
await currentTreeItem.expand();
|
|
@@ -31268,17 +31412,17 @@ class KolTreeWc {
|
|
|
31268
31412
|
}
|
|
31269
31413
|
else {
|
|
31270
31414
|
const parentIndex = openItems.findIndex((item) => item === currentTreeItem.parentElement);
|
|
31271
|
-
parentIndex !== -1 && (await ((_e = openItems[parentIndex]) === null || _e === void 0 ? void 0 : _e.
|
|
31415
|
+
parentIndex !== -1 && (await ((_e = openItems[parentIndex]) === null || _e === void 0 ? void 0 : _e.focus()));
|
|
31272
31416
|
}
|
|
31273
31417
|
break;
|
|
31274
31418
|
}
|
|
31275
31419
|
case 'Home': {
|
|
31276
|
-
await ((_f = openItems[0]) === null || _f === void 0 ? void 0 : _f.
|
|
31420
|
+
await ((_f = openItems[0]) === null || _f === void 0 ? void 0 : _f.focus());
|
|
31277
31421
|
event.preventDefault();
|
|
31278
31422
|
break;
|
|
31279
31423
|
}
|
|
31280
31424
|
case 'End': {
|
|
31281
|
-
await ((_g = openItems[openItems.length - 1]) === null || _g === void 0 ? void 0 : _g.
|
|
31425
|
+
await ((_g = openItems[openItems.length - 1]) === null || _g === void 0 ? void 0 : _g.focus());
|
|
31282
31426
|
event.preventDefault();
|
|
31283
31427
|
break;
|
|
31284
31428
|
}
|
|
@@ -31291,14 +31435,14 @@ class KolTreeWc {
|
|
|
31291
31435
|
.slice(startIndex, startIndex + openItems.length)
|
|
31292
31436
|
.findIndex((item) => { var _a; return (_a = item.getAttribute('_label')) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase().startsWith(char); });
|
|
31293
31437
|
if (matchIndex !== -1) {
|
|
31294
|
-
await wrapAroundItems[startIndex + matchIndex].
|
|
31438
|
+
await ((_j = wrapAroundItems[startIndex + matchIndex]) === null || _j === void 0 ? void 0 : _j.focus());
|
|
31295
31439
|
event.preventDefault();
|
|
31296
31440
|
}
|
|
31297
31441
|
}
|
|
31298
31442
|
break;
|
|
31299
31443
|
}
|
|
31300
31444
|
case '*': {
|
|
31301
|
-
const siblings = (
|
|
31445
|
+
const siblings = (_k = currentTreeItem.parentElement) === null || _k === void 0 ? void 0 : _k.querySelectorAll(KolTreeItemTag);
|
|
31302
31446
|
siblings === null || siblings === void 0 ? void 0 : siblings.forEach((element) => {
|
|
31303
31447
|
void element.expand();
|
|
31304
31448
|
});
|
|
@@ -31364,8 +31508,8 @@ class KolVersion {
|
|
|
31364
31508
|
};
|
|
31365
31509
|
}
|
|
31366
31510
|
render() {
|
|
31367
|
-
return (hAsync(Host, { key: '
|
|
31368
|
-
left: { icon: '
|
|
31511
|
+
return (hAsync(Host, { key: 'c2c4090511476f2b782e5ec11eeefb14e84aeef8', class: "kol-version" }, hAsync(KolBadgeTag, { key: '8cca6fc737968718a4ade9c153711209b562c9bf', _color: "#bec5c9", _icons: {
|
|
31512
|
+
left: { icon: 'kolicon-version', label: this.translateVersion },
|
|
31369
31513
|
}, _label: this.state._label })));
|
|
31370
31514
|
}
|
|
31371
31515
|
validateLabel(value) {
|
|
@@ -31425,6 +31569,8 @@ registerComponents([
|
|
|
31425
31569
|
KolCardWc,
|
|
31426
31570
|
KolCombobox,
|
|
31427
31571
|
KolDetails,
|
|
31572
|
+
KolDialog,
|
|
31573
|
+
KolDialogWc,
|
|
31428
31574
|
KolDrawer,
|
|
31429
31575
|
KolForm,
|
|
31430
31576
|
KolHeading,
|
|
@@ -31454,6 +31600,7 @@ registerComponents([
|
|
|
31454
31600
|
KolProgress,
|
|
31455
31601
|
KolQuote,
|
|
31456
31602
|
KolSelect,
|
|
31603
|
+
KolSelectWc,
|
|
31457
31604
|
KolSingleSelect,
|
|
31458
31605
|
KolSkipNav,
|
|
31459
31606
|
KolSpin,
|