@public-ui/hydrate 3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0 → 3.0.2-ec3e6ae7179dfaa0a4a69b756cd5422dd81d0065.0
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/README.md +5 -3
- package/dist/index.js +181 -81
- package/dist/index.mjs +181 -81
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3828,6 +3828,10 @@ const validateAdjustHeight = (component, value) => {
|
|
|
3828
3828
|
watchBoolean(component, '_adjustHeight', value);
|
|
3829
3829
|
};
|
|
3830
3830
|
|
|
3831
|
+
const validateAlt = (component, value, options = {}) => {
|
|
3832
|
+
watchString(component, '_alt', value, options);
|
|
3833
|
+
};
|
|
3834
|
+
|
|
3831
3835
|
const validateAlignment = (component, propName, value) => {
|
|
3832
3836
|
watchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {
|
|
3833
3837
|
defaultValue: 'top',
|
|
@@ -4194,6 +4198,14 @@ const validateImageSource = (component, value, options) => {
|
|
|
4194
4198
|
watchString(component, '_src', value, options);
|
|
4195
4199
|
};
|
|
4196
4200
|
|
|
4201
|
+
const validateImageSizes = (component, value, options = {}) => {
|
|
4202
|
+
watchString(component, '_sizes', value, options);
|
|
4203
|
+
};
|
|
4204
|
+
|
|
4205
|
+
const validateImageSrcset = (component, value, options = {}) => {
|
|
4206
|
+
watchString(component, '_srcset', value, options);
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4197
4209
|
const validateIndeterminate = (component, value) => {
|
|
4198
4210
|
watchBoolean(component, '_indeterminate', value);
|
|
4199
4211
|
};
|
|
@@ -4506,7 +4518,7 @@ let KolInputCheckboxTag = 'kol-input-checkbox';
|
|
|
4506
4518
|
let KolInputNumberTag = 'kol-input-number';
|
|
4507
4519
|
let KolLinkTag = 'kol-link';
|
|
4508
4520
|
let KolLinkWcTag = 'kol-link-wc';
|
|
4509
|
-
let
|
|
4521
|
+
let KolPaginationWcTag = 'kol-pagination-wc';
|
|
4510
4522
|
let KolPopoverWcTag = 'kol-popover-wc';
|
|
4511
4523
|
let KolPopoverButtonWcTag = 'kol-popover-button-wc';
|
|
4512
4524
|
let KolSelectTag = 'kol-select';
|
|
@@ -5130,13 +5142,28 @@ const AlertIcon = ({ type, label }) => {
|
|
|
5130
5142
|
}
|
|
5131
5143
|
};
|
|
5132
5144
|
|
|
5145
|
+
const vibrateOnError = () => {
|
|
5146
|
+
if (typeof navigator === 'undefined' || typeof navigator.vibrate !== 'function') {
|
|
5147
|
+
return;
|
|
5148
|
+
}
|
|
5149
|
+
const ua = navigator.userActivation;
|
|
5150
|
+
const hasGesture = (ua === null || ua === void 0 ? void 0 : ua.isActive) || (ua === null || ua === void 0 ? void 0 : ua.hasBeenActive);
|
|
5151
|
+
if (!hasGesture) {
|
|
5152
|
+
return;
|
|
5153
|
+
}
|
|
5154
|
+
if (!matchMedia('(any-pointer: coarse)').matches) {
|
|
5155
|
+
return;
|
|
5156
|
+
}
|
|
5157
|
+
try {
|
|
5158
|
+
navigator.vibrate([100, 75, 100, 75, 100]);
|
|
5159
|
+
}
|
|
5160
|
+
catch (_a) {
|
|
5161
|
+
}
|
|
5162
|
+
};
|
|
5133
5163
|
const KolAlertFc = (props, children) => {
|
|
5134
|
-
var _a, _b;
|
|
5135
5164
|
const { class: classNames = {}, alert = false, hasCloser = false, label, level = 0, type = 'default', variant = 'msg', onAlertTimeout, onCloserClick } = props, other = __rest(props, ["class", "alert", "hasCloser", "label", "level", "type", "variant", "onAlertTimeout", "onCloserClick"]);
|
|
5136
5165
|
if (alert) {
|
|
5137
|
-
|
|
5138
|
-
(_b = navigator === null || navigator === void 0 ? void 0 : navigator.vibrate) === null || _b === void 0 ? void 0 : _b.call(navigator, [100, 75, 100, 75, 100]);
|
|
5139
|
-
}
|
|
5166
|
+
vibrateOnError();
|
|
5140
5167
|
setTimeout(() => {
|
|
5141
5168
|
onAlertTimeout === null || onAlertTimeout === void 0 ? void 0 : onAlertTimeout();
|
|
5142
5169
|
}, 10000);
|
|
@@ -5201,7 +5228,7 @@ class KolAlertWc {
|
|
|
5201
5228
|
onCloserClick: this.close,
|
|
5202
5229
|
onAlertTimeout: this.handleAlertTimeout,
|
|
5203
5230
|
};
|
|
5204
|
-
return (hAsync(KolAlertFc, Object.assign({ key: '
|
|
5231
|
+
return (hAsync(KolAlertFc, Object.assign({ key: '2b0d74465270eef8d8d6f3da8c04377f862e8630' }, props), hAsync("slot", { key: '55e8ad62be763c26af16813e5ebfac2ce1f63b54' })));
|
|
5205
5232
|
}
|
|
5206
5233
|
validateAlert(value) {
|
|
5207
5234
|
watchBoolean(this, '_alert', value);
|
|
@@ -16898,7 +16925,7 @@ class KolCard {
|
|
|
16898
16925
|
};
|
|
16899
16926
|
}
|
|
16900
16927
|
render() {
|
|
16901
|
-
return (hAsync("div", { key: '
|
|
16928
|
+
return (hAsync("div", { key: '2c4c6ed4ad7ae1a4d94a2bce4b8112074407d3a4', class: "kol-card" }, hAsync("div", { key: '8d67307ad2d604f8385cf8324d4d2ca2ea8f3f59', class: "kol-card__header" }, hAsync(KolHeadingFc, { key: '0882673acb41e456947baba8f6ecd214c9ec14f6', class: "kol-card__headline", level: this.state._level }, this.state._label)), hAsync("div", { key: '707ac4c953039736573ed871b166938134e3e5db', class: "kol-card__content" }, hAsync("slot", { key: '6d3a0811b939a80ffb0665c113127a729b2c7a5c' })), this.state._hasCloser && (hAsync(KolButtonWcTag, { key: 'bb9c98cc3934e0f2d1507afbd6d1fd6368e3f3c8', class: "kol-card__close-button", "data-testid": "card-close-button", _hideLabel: true, _icons: {
|
|
16902
16929
|
left: {
|
|
16903
16930
|
icon: 'codicon codicon-close',
|
|
16904
16931
|
},
|
|
@@ -17383,8 +17410,15 @@ const CustomSuggestionsToggleFc = ({ onClick, disabled }) => {
|
|
|
17383
17410
|
hAsync(KolIconTag, { _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') })));
|
|
17384
17411
|
};
|
|
17385
17412
|
|
|
17386
|
-
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {
|
|
17387
|
-
|
|
17413
|
+
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option, searchTerm }) => {
|
|
17414
|
+
const highlightSearchTerm = (text, searchTerm) => {
|
|
17415
|
+
if (!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()))
|
|
17416
|
+
return text;
|
|
17417
|
+
const regex = new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
|
|
17418
|
+
const parts = text.split(regex);
|
|
17419
|
+
return parts.map((part, partIndex) => (regex.test(part) ? hAsync("mark", { key: partIndex }, part) : part));
|
|
17420
|
+
};
|
|
17421
|
+
return (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: ref, "data-index": index, tabIndex: -1, role: "option", "aria-selected": selected ? 'true' : undefined, onClick: onClick, onMouseOver: onMouseOver, onFocus: onFocus, class: "kol-custom-suggestions-option", onKeyDown: onKeyDown }, highlightSearchTerm(String(option), searchTerm || '')));
|
|
17388
17422
|
};
|
|
17389
17423
|
|
|
17390
17424
|
const CustomSuggestionsOptionsGroupFc = ({ blockSuggestionMouseOver, onKeyDown, style }, children) => {
|
|
@@ -17492,7 +17526,7 @@ class KolCombobox {
|
|
|
17492
17526
|
render() {
|
|
17493
17527
|
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '44bc85c62caa382896b635dbc743f16d24863644' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'fd4b270034c88219b2f7f7eae2591334906ece02', state: this.state }, hAsync("div", { key: 'd4510edc466749cef9b6291afd9c282c77b88f8f', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: 'ddc7d75b247724e081da3b8360238e271110cdca' }, this.getInputProps())), hAsync(CustomSuggestionsToggleFc, { key: '4531ca610c2f04d45072823222cac12c49c3ab74', onClick: this.toggleListbox.bind(this), disabled: this.state._disabled })), this._isOpen && !(this.state._disabled === true) && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'd995a87095216c4f1cf32b8e6c789dffffcf2572', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
17494
17528
|
this._filteredSuggestions.length > 0 &&
|
|
17495
|
-
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, ref: (el) => {
|
|
17529
|
+
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
17496
17530
|
if (el)
|
|
17497
17531
|
this.refSuggestions[index] = el;
|
|
17498
17532
|
}, selected: this.state._value === option, onClick: () => {
|
|
@@ -18326,15 +18360,13 @@ class KolImage {
|
|
|
18326
18360
|
};
|
|
18327
18361
|
}
|
|
18328
18362
|
validateAlt(value) {
|
|
18329
|
-
|
|
18330
|
-
required: true,
|
|
18331
|
-
});
|
|
18363
|
+
validateAlt(this, value, { required: true });
|
|
18332
18364
|
}
|
|
18333
18365
|
validateLoading(value) {
|
|
18334
18366
|
validateLoading(this, value);
|
|
18335
18367
|
}
|
|
18336
18368
|
validateSizes(value) {
|
|
18337
|
-
|
|
18369
|
+
validateImageSizes(this, value);
|
|
18338
18370
|
}
|
|
18339
18371
|
validateSrc(value) {
|
|
18340
18372
|
validateImageSource(this, value, {
|
|
@@ -18342,7 +18374,7 @@ class KolImage {
|
|
|
18342
18374
|
});
|
|
18343
18375
|
}
|
|
18344
18376
|
validateSrcset(value) {
|
|
18345
|
-
|
|
18377
|
+
validateImageSrcset(this, value);
|
|
18346
18378
|
}
|
|
18347
18379
|
componentWillLoad() {
|
|
18348
18380
|
this.validateAlt(this._alt);
|
|
@@ -18352,7 +18384,7 @@ class KolImage {
|
|
|
18352
18384
|
this.validateSrcset(this._srcset);
|
|
18353
18385
|
}
|
|
18354
18386
|
render() {
|
|
18355
|
-
return (hAsync("img", { key: '
|
|
18387
|
+
return (hAsync("img", { key: 'cca1e1b65e9aab11b4c15bea394d6c54ead1a123', class: "kol-image", alt: this.state._alt, loading: this.state._loading, sizes: this.state._sizes, src: this.state._src, srcset: this.state._srcset }));
|
|
18356
18388
|
}
|
|
18357
18389
|
static get watchers() { return {
|
|
18358
18390
|
"_alt": ["validateAlt"],
|
|
@@ -22271,6 +22303,7 @@ class KolNav {
|
|
|
22271
22303
|
}), key: index }, this.entry(collapsible, hideLabel, hasChildren, link, expanded), expanded && hAsync(this.linkList, { collapsible: collapsible, hideLabel: hideLabel, deep: deep + 1, links: link._children || [], orientation: orientation })));
|
|
22272
22304
|
}
|
|
22273
22305
|
initializeExpandedChildren() {
|
|
22306
|
+
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
22274
22307
|
const handleBranch = (branch) => {
|
|
22275
22308
|
if (branch._active) {
|
|
22276
22309
|
if (branch._children) {
|
|
@@ -22299,9 +22332,9 @@ class KolNav {
|
|
|
22299
22332
|
const collapsible = this.state._collapsible === true;
|
|
22300
22333
|
const hideLabel = this.state._hideLabel === true;
|
|
22301
22334
|
const orientation = this.state._orientation;
|
|
22302
|
-
return (hAsync("div", { key: '
|
|
22335
|
+
return (hAsync("div", { key: '1768f2d1d6794f07607ad8a9f3953a4f17d3cd06', class: clsx('kol-nav', `kol-nav--${orientation}`, {
|
|
22303
22336
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
22304
|
-
}) }, hAsync("nav", { key: '
|
|
22337
|
+
}) }, hAsync("nav", { key: '6fceaf6abe991a38a3c4bb98741c9e1c5ad2f11a', class: "kol-nav__navigation", "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { key: '5ee2d35517877fad58f3c37446a88a4753a80bf5', collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })), hasCompactButton && (hAsync("div", { key: 'd8b7bcb8d56bad5fadc02fc6362d84c597c5f0c8', class: "kol-nav__compact" }, hAsync(KolButtonWcTag, { key: 'a6e055cb523095f7dfeed9edc1fd4a847973cc55', class: "kol-nav__toggle-button", _ariaControls: "nav", _ariaExpanded: !hideLabel, _icons: hideLabel ? 'codicon codicon-chevron-right' : 'codicon codicon-chevron-left', _hideLabel: true, _label: translate(hideLabel ? 'kol-nav-maximize' : 'kol-nav-minimize'), _on: {
|
|
22305
22338
|
onClick: () => {
|
|
22306
22339
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
22307
22340
|
},
|
|
@@ -22332,6 +22365,7 @@ class KolNav {
|
|
|
22332
22365
|
validateLinks(value) {
|
|
22333
22366
|
watchNavLinks('KolNav', this, value);
|
|
22334
22367
|
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
22368
|
+
this.initializeExpandedChildren();
|
|
22335
22369
|
}
|
|
22336
22370
|
validateOrientation(value) {
|
|
22337
22371
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -22382,9 +22416,52 @@ class KolNav {
|
|
|
22382
22416
|
}; }
|
|
22383
22417
|
}
|
|
22384
22418
|
|
|
22385
|
-
const defaultStyleCss$h = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n
|
|
22419
|
+
const defaultStyleCss$h = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-pagination {\n align-items: center;\n display: grid;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n align-items: center;\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5em;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n}";
|
|
22386
22420
|
var KolPaginationDefaultStyle0 = defaultStyleCss$h;
|
|
22387
22421
|
|
|
22422
|
+
class KolPagination {
|
|
22423
|
+
constructor(hostRef) {
|
|
22424
|
+
registerInstance(this, hostRef);
|
|
22425
|
+
this._boundaryCount = 1;
|
|
22426
|
+
this._customClass = undefined;
|
|
22427
|
+
this._label = undefined;
|
|
22428
|
+
this._hasButtons = true;
|
|
22429
|
+
this._page = undefined;
|
|
22430
|
+
this._pageSize = 1;
|
|
22431
|
+
this._pageSizeOptions = [];
|
|
22432
|
+
this._on = undefined;
|
|
22433
|
+
this._siblingCount = 1;
|
|
22434
|
+
this._tooltipAlign = 'top';
|
|
22435
|
+
this._max = undefined;
|
|
22436
|
+
}
|
|
22437
|
+
render() {
|
|
22438
|
+
return (hAsync(KolPaginationWcTag, { key: '14b17e953d67caaa9892271b9c19d40044558418', _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 }));
|
|
22439
|
+
}
|
|
22440
|
+
static get style() { return {
|
|
22441
|
+
default: KolPaginationDefaultStyle0
|
|
22442
|
+
}; }
|
|
22443
|
+
static get cmpMeta() { return {
|
|
22444
|
+
"$flags$": 41,
|
|
22445
|
+
"$tagName$": "kol-pagination",
|
|
22446
|
+
"$members$": {
|
|
22447
|
+
"_boundaryCount": [2, "_boundary-count"],
|
|
22448
|
+
"_customClass": [1, "_custom-class"],
|
|
22449
|
+
"_label": [1],
|
|
22450
|
+
"_hasButtons": [8, "_has-buttons"],
|
|
22451
|
+
"_page": [2],
|
|
22452
|
+
"_pageSize": [1026, "_page-size"],
|
|
22453
|
+
"_pageSizeOptions": [1, "_page-size-options"],
|
|
22454
|
+
"_on": [16],
|
|
22455
|
+
"_siblingCount": [2, "_sibling-count"],
|
|
22456
|
+
"_tooltipAlign": [1, "_tooltip-align"],
|
|
22457
|
+
"_max": [2]
|
|
22458
|
+
},
|
|
22459
|
+
"$listeners$": undefined,
|
|
22460
|
+
"$lazyBundleId$": "-",
|
|
22461
|
+
"$attrsToReflect$": []
|
|
22462
|
+
}; }
|
|
22463
|
+
}
|
|
22464
|
+
|
|
22388
22465
|
const leftDoubleArrowIcon = {
|
|
22389
22466
|
left: 'codicon codicon-debug-reverse-continue',
|
|
22390
22467
|
};
|
|
@@ -22408,7 +22485,7 @@ const NUMBER_FORMATTER = new Intl.NumberFormat(userLanguage, {
|
|
|
22408
22485
|
minimumFractionDigits: 0,
|
|
22409
22486
|
maximumFractionDigits: 0,
|
|
22410
22487
|
});
|
|
22411
|
-
class
|
|
22488
|
+
class KolPaginationWc {
|
|
22412
22489
|
constructor(hostRef) {
|
|
22413
22490
|
registerInstance(this, hostRef);
|
|
22414
22491
|
this.nonce = nonce();
|
|
@@ -22714,12 +22791,9 @@ class KolPagination {
|
|
|
22714
22791
|
"_max": ["validateMax"],
|
|
22715
22792
|
"_tooltipAlign": ["validateTooltipAlign"]
|
|
22716
22793
|
}; }
|
|
22717
|
-
static get style() { return {
|
|
22718
|
-
default: KolPaginationDefaultStyle0
|
|
22719
|
-
}; }
|
|
22720
22794
|
static get cmpMeta() { return {
|
|
22721
|
-
"$flags$":
|
|
22722
|
-
"$tagName$": "kol-pagination",
|
|
22795
|
+
"$flags$": 0,
|
|
22796
|
+
"$tagName$": "kol-pagination-wc",
|
|
22723
22797
|
"$members$": {
|
|
22724
22798
|
"_boundaryCount": [2, "_boundary-count"],
|
|
22725
22799
|
"_customClass": [1, "_custom-class"],
|
|
@@ -22784,8 +22858,9 @@ function getOppositeAxis(axis) {
|
|
|
22784
22858
|
function getAxisLength(axis) {
|
|
22785
22859
|
return axis === 'y' ? 'height' : 'width';
|
|
22786
22860
|
}
|
|
22861
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
22787
22862
|
function getSideAxis(placement) {
|
|
22788
|
-
return
|
|
22863
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
22789
22864
|
}
|
|
22790
22865
|
function getAlignmentAxis(placement) {
|
|
22791
22866
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -22810,19 +22885,19 @@ function getExpandedPlacements(placement) {
|
|
|
22810
22885
|
function getOppositeAlignmentPlacement(placement) {
|
|
22811
22886
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
22812
22887
|
}
|
|
22888
|
+
const lrPlacement = ['left', 'right'];
|
|
22889
|
+
const rlPlacement = ['right', 'left'];
|
|
22890
|
+
const tbPlacement = ['top', 'bottom'];
|
|
22891
|
+
const btPlacement = ['bottom', 'top'];
|
|
22813
22892
|
function getSideList(side, isStart, rtl) {
|
|
22814
|
-
const lr = ['left', 'right'];
|
|
22815
|
-
const rl = ['right', 'left'];
|
|
22816
|
-
const tb = ['top', 'bottom'];
|
|
22817
|
-
const bt = ['bottom', 'top'];
|
|
22818
22893
|
switch (side) {
|
|
22819
22894
|
case 'top':
|
|
22820
22895
|
case 'bottom':
|
|
22821
|
-
if (rtl) return isStart ?
|
|
22822
|
-
return isStart ?
|
|
22896
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
22897
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
22823
22898
|
case 'left':
|
|
22824
22899
|
case 'right':
|
|
22825
|
-
return isStart ?
|
|
22900
|
+
return isStart ? tbPlacement : btPlacement;
|
|
22826
22901
|
default:
|
|
22827
22902
|
return [];
|
|
22828
22903
|
}
|
|
@@ -23606,6 +23681,8 @@ const inline = function (options) {
|
|
|
23606
23681
|
};
|
|
23607
23682
|
};
|
|
23608
23683
|
|
|
23684
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
23685
|
+
|
|
23609
23686
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
23610
23687
|
// Derivable.
|
|
23611
23688
|
|
|
@@ -23619,7 +23696,7 @@ async function convertValueToCoords(state, options) {
|
|
|
23619
23696
|
const side = getSide(placement);
|
|
23620
23697
|
const alignment = getAlignment(placement);
|
|
23621
23698
|
const isVertical = getSideAxis(placement) === 'y';
|
|
23622
|
-
const mainAxisMulti =
|
|
23699
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
23623
23700
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
23624
23701
|
const rawValue = evaluate(options, state);
|
|
23625
23702
|
|
|
@@ -23819,7 +23896,7 @@ const limitShift = function (options) {
|
|
|
23819
23896
|
if (checkCrossAxis) {
|
|
23820
23897
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
23821
23898
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
23822
|
-
const isOriginSide =
|
|
23899
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
23823
23900
|
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
23824
23901
|
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
23825
23902
|
if (crossAxisCoord < limitMin) {
|
|
@@ -23964,6 +24041,7 @@ function isShadowRoot(value) {
|
|
|
23964
24041
|
}
|
|
23965
24042
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
23966
24043
|
}
|
|
24044
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
23967
24045
|
function isOverflowElement(element) {
|
|
23968
24046
|
const {
|
|
23969
24047
|
overflow,
|
|
@@ -23971,27 +24049,32 @@ function isOverflowElement(element) {
|
|
|
23971
24049
|
overflowY,
|
|
23972
24050
|
display
|
|
23973
24051
|
} = getComputedStyle(element);
|
|
23974
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
24052
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
23975
24053
|
}
|
|
24054
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
23976
24055
|
function isTableElement(element) {
|
|
23977
|
-
return
|
|
24056
|
+
return tableElements.has(getNodeName(element));
|
|
23978
24057
|
}
|
|
24058
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
23979
24059
|
function isTopLayer(element) {
|
|
23980
|
-
return
|
|
24060
|
+
return topLayerSelectors.some(selector => {
|
|
23981
24061
|
try {
|
|
23982
24062
|
return element.matches(selector);
|
|
23983
|
-
} catch (
|
|
24063
|
+
} catch (_e) {
|
|
23984
24064
|
return false;
|
|
23985
24065
|
}
|
|
23986
24066
|
});
|
|
23987
24067
|
}
|
|
24068
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
24069
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
24070
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
23988
24071
|
function isContainingBlock(elementOrCss) {
|
|
23989
24072
|
const webkit = isWebKit();
|
|
23990
24073
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
23991
24074
|
|
|
23992
24075
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
23993
24076
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
23994
|
-
return
|
|
24077
|
+
return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
|
|
23995
24078
|
}
|
|
23996
24079
|
function getContainingBlock(element) {
|
|
23997
24080
|
let currentNode = getParentNode(element);
|
|
@@ -24009,8 +24092,9 @@ function isWebKit() {
|
|
|
24009
24092
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
24010
24093
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
24011
24094
|
}
|
|
24095
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
24012
24096
|
function isLastTraversableNode(node) {
|
|
24013
|
-
return
|
|
24097
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
24014
24098
|
}
|
|
24015
24099
|
function getComputedStyle(element) {
|
|
24016
24100
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -24928,7 +25012,7 @@ class KolPopover {
|
|
|
24928
25012
|
});
|
|
24929
25013
|
}
|
|
24930
25014
|
render() {
|
|
24931
|
-
return (hAsync(Host, { key: '
|
|
25015
|
+
return (hAsync(Host, { key: '53179ace5c0dfabbe1dd00ba8ddfe453ef55ccd5', ref: this.catchHostAndTriggerElement, class: "kol-popover" }, hAsync("div", { key: 'f42aafe81aaa0a09526b4e9923a96133ee81c5d2', class: clsx('kol-popover__content', { 'kol-popover__content--visible': this.state._visible }), ref: this.catchPopoverElement, hidden: !this.state._show }, hAsync("div", { key: '25719436c820c214a2e3c0fac47449f842c4f68c', class: clsx('kol-popover__arrow', `kol-popover__arrow--${this.state._align}`), ref: this.catchArrowElement }), hAsync("slot", { key: 'fff04758761fb36389c6698b17730b604981ca66' }))));
|
|
24932
25016
|
}
|
|
24933
25017
|
validateAlign(value) {
|
|
24934
25018
|
validateAlign(this, value);
|
|
@@ -24965,7 +25049,7 @@ class KolPopover {
|
|
|
24965
25049
|
}; }
|
|
24966
25050
|
}
|
|
24967
25051
|
|
|
24968
|
-
const defaultStyleCss$g = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\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 margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border:
|
|
25052
|
+
const defaultStyleCss$g = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\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 margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}";
|
|
24969
25053
|
var KolPopoverButtonDefaultStyle0 = defaultStyleCss$g;
|
|
24970
25054
|
|
|
24971
25055
|
class KolPopoverButton$1 {
|
|
@@ -24998,7 +25082,7 @@ class KolPopoverButton$1 {
|
|
|
24998
25082
|
void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
24999
25083
|
}
|
|
25000
25084
|
render() {
|
|
25001
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
25085
|
+
return (hAsync(KolPopoverButtonWcTag, { key: '0a44e73709e339e865b30179bf6fb9ae3c43450e', ref: (element) => (this.ref = element), _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, _label: this._label, _name: this._name, _on: this._on, _popoverAlign: this._popoverAlign, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: 'd23b56ded35b20e1449d1cff05b6ad8bafb02a0b', name: "expert", slot: "expert" }), hAsync("slot", { key: '70ec7287f91d0333c2849a3a2deb259d13a19d09' })));
|
|
25002
25086
|
}
|
|
25003
25087
|
static get style() { return {
|
|
25004
25088
|
default: KolPopoverButtonDefaultStyle0
|
|
@@ -25123,7 +25207,7 @@ class KolPopoverButton {
|
|
|
25123
25207
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
25124
25208
|
}
|
|
25125
25209
|
render() {
|
|
25126
|
-
return (hAsync("div", { key: '
|
|
25210
|
+
return (hAsync("div", { key: '22908778de17925c600b5df7a1065b47c5ec296c', class: "kol-popover-button" }, hAsync(KolButtonWcTag, { key: '108e39b7b06a6e59406f672bc483eff9d5e2a7d7', _accessKey: this._accessKey, "_aria-controls": "popover", _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this.popoverOpen, _ariaHasPopup: 'dialog', _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _label: this._label, _name: this._name, _on: 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: '64744240cc3c9edc7b9ec746e4634e32dd752798', name: "expert", slot: "expert" })), hAsync("div", { key: '2fe83c00ba6d7f8f1c91466558273370c15c4dc2', ref: (element) => (this.refPopover = element), "data-testid": "popover-content", popover: "auto", id: "popover", class: "kol-popover-button__popover" }, hAsync("slot", { key: '841f6f4d69155a6fd27934409b1acf4f97c03de9' }))));
|
|
25127
25211
|
}
|
|
25128
25212
|
validatePopoverAlign(value) {
|
|
25129
25213
|
validatePopoverAlign(this, value);
|
|
@@ -25212,10 +25296,10 @@ class KolProgress {
|
|
|
25212
25296
|
const isPercentage = this.state._unit === '%';
|
|
25213
25297
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}` : this.state._liveValue;
|
|
25214
25298
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
25215
|
-
return (hAsync("div", { key: '
|
|
25299
|
+
return (hAsync("div", { key: 'a35e0a18d0d9d0ddfcb60c7070b8817b15dc6b02', class: "kol-progress" }, hAsync("div", { key: 'b7d93e63b0b24b4c90270cf2146383d5d53da12e', "aria-hidden": "true", class: {
|
|
25216
25300
|
'kol-progress__cycle': this.state._variant === 'cycle',
|
|
25217
25301
|
'kol-progress__bar': this.state._variant === 'bar',
|
|
25218
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
25302
|
+
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: 'd65cb999768ed9fe454c11fd33d0db66a703e36b', class: "kol-progress__bar-label" }, this.state._label), createProgressSVG(this.state), this.state._variant === 'cycle' && (hAsync("div", { key: 'd139c7865e25d12ba07196c7e1390c96f17a66e4', class: "kol-progress__cycle-text" }, this.state._label && hAsync("div", { key: 'c237b28a0bf6deb6c9bb2015736e96cfc5473970', class: "kol-progress__cycle-label" }, this.state._label), hAsync("div", { key: '3dc597353662501ef7020ba624501cb456b2b143', class: "kol-progress__cycle-value" }, `${displayValue} ${this.state._unit}`))), this.state._variant === 'bar' && (hAsync("div", { key: '37969ac3628bb005ebb1c3fec527f45455c54618', class: "kol-progress__bar-value", style: { width: `${`${(isPercentage ? 100 : this.state._max) + 1}`.length}ch` } }, displayValue)), this.state._variant === 'bar' && hAsync("div", { key: 'bbc423be302c352f409b979411d5dfe0e1282bd0', class: "kol-progress__bar-unit" }, this.state._unit)), hAsync("progress", { key: 'e5f65b8ec5590ac3a94ae601133bb1f16006292d', class: "visually-hidden", "aria-busy": this.state._value < this.state._max ? 'true' : 'false', max: this.state._max, value: this.state._value }), hAsync("span", { key: '7644977090f8e7f8ff747769590f1081753f7ef1', "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, isPercentage ? `${liveProgressValue} %` : `${liveProgressValue} von ${this.state._max} ${this.state._unit}`)));
|
|
25219
25303
|
}
|
|
25220
25304
|
validateLabel(value) {
|
|
25221
25305
|
validateLabel(this, value);
|
|
@@ -25325,7 +25409,7 @@ class KolQuote {
|
|
|
25325
25409
|
}
|
|
25326
25410
|
render() {
|
|
25327
25411
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
25328
|
-
return (hAsync("figure", { key: '
|
|
25412
|
+
return (hAsync("figure", { key: 'e68968696617503220e774f6b0a11c6c7f256582', 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: '918f5c9884c03b3275473276624f4585490a2069', class: "kol-quote__figcaption" }, hAsync("cite", { key: '609c527c94b38135a0fb2af474f39b61ce69bc74', class: "kol-quote__cite" }, hAsync(KolLinkTag, { key: 'ade63d54115b41bfaa130c054023b0004e49dda5', _href: this.state._href, _label: this.state._label, _target: "_blank" }))))));
|
|
25329
25413
|
}
|
|
25330
25414
|
static get watchers() { return {
|
|
25331
25415
|
"_label": ["validateLabel"],
|
|
@@ -25538,13 +25622,13 @@ class KolSelect {
|
|
|
25538
25622
|
} });
|
|
25539
25623
|
}
|
|
25540
25624
|
render() {
|
|
25541
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
25625
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'bc7ee077bca2efc065987ce71be494bc78712b0a' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2bde683bfdf19e78a6aa6d980925aa6d6b06ce20', state: this.state }, hAsync("form", { key: '582987d654fa36f36a292d2cde2ca57190fc20bd', onSubmit: (event) => {
|
|
25542
25626
|
event.preventDefault();
|
|
25543
25627
|
propagateSubmitEventToForm({
|
|
25544
25628
|
form: this.host,
|
|
25545
25629
|
ref: this.selectRef,
|
|
25546
25630
|
});
|
|
25547
|
-
} }, hAsync("input", { key: '
|
|
25631
|
+
} }, hAsync("input", { key: '0de3d2fffb493d7f5e71f0442578236b54a37ba2', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'eff29e3d817ccfee364b7452c46a38e5162bd905' }, this.getSelectProps()))))));
|
|
25548
25632
|
}
|
|
25549
25633
|
constructor(hostRef) {
|
|
25550
25634
|
registerInstance(this, hostRef);
|
|
@@ -25893,13 +25977,13 @@ class KolSingleSelect {
|
|
|
25893
25977
|
}
|
|
25894
25978
|
render() {
|
|
25895
25979
|
var _a;
|
|
25896
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
25980
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '8fe1e0ddbc6f0e5cca5bf40d7561d6ffbaa9d86a' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '5ddad77ea681aa06e508a083a3ef8ecc546d9d2f', state: this.state }, hAsync("div", { key: '3d8be2eb2a7edea1210bcebf8da7f9ce98979ae5', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '3fd99d2c4903aa8e60ec5b154681b4364c4c2327' }, this.getInputProps())), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: 'bcf7c708fd90ec9ec5acbd830c868a9325a1ab22', _icons: "codicon codicon-close", "data-testid": "single-select-delete", _label: translate('kol-delete-selection'), onClick: () => {
|
|
25897
25981
|
var _a;
|
|
25898
25982
|
this.clearSelection();
|
|
25899
25983
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
25900
25984
|
}, class: clsx('kol-single-select__delete', {
|
|
25901
25985
|
'kol-single-select__delete--disabled': this.state._disabled,
|
|
25902
|
-
}) })), hAsync(CustomSuggestionsToggleFc, { key: '
|
|
25986
|
+
}) })), hAsync(CustomSuggestionsToggleFc, { key: '5cea8492ff96ca7922169ddc1d1638c18520e858', onClick: this.toggleListbox.bind(this), disabled: this.state._disabled })), this._isOpen && !(this.state._disabled === true) && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '4dbd45fc3dbcff650c1775b93f60d0e692f87c3f', 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) => {
|
|
25903
25987
|
if (el)
|
|
25904
25988
|
this.refOptions[index] = el;
|
|
25905
25989
|
}, selected: this._value === option.value, onClick: (event) => {
|
|
@@ -26268,7 +26352,7 @@ class KolSkipNav {
|
|
|
26268
26352
|
};
|
|
26269
26353
|
}
|
|
26270
26354
|
render() {
|
|
26271
|
-
return (hAsync("nav", { key: '
|
|
26355
|
+
return (hAsync("nav", { key: '912f8ac6ce63cddd0fa738db9ef6ff987b2a2db9', class: "kol-skip-nav", "aria-label": this.state._label }, hAsync("ul", { key: '79991f7d918e9bbf6891d479804f2520356f2a41', class: "kol-skip-nav__list" }, this.state._links.map((link, index) => {
|
|
26272
26356
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
26273
26357
|
}))));
|
|
26274
26358
|
}
|
|
@@ -26336,7 +26420,7 @@ class KolSpin {
|
|
|
26336
26420
|
};
|
|
26337
26421
|
}
|
|
26338
26422
|
render() {
|
|
26339
|
-
return (hAsync(Host, { key: '
|
|
26423
|
+
return (hAsync(Host, { key: 'e1cc9c4961a7a43913cf6386c2c6ce4414afe256', class: "kol-spin" }, this.state._show ? (hAsync("span", { "aria-busy": "true", "aria-label": translate('kol-action-running'), "aria-live": "polite", class: clsx('kol-spin__spinner', `kol-spin__spinner--${this.state._variant}`), role: "alert" }, renderSpin(this.state._variant))) : (this.showToggled && hAsync("span", { "aria-label": translate('kol-action-done'), "aria-busy": "false", "aria-live": "polite", role: "alert" }))));
|
|
26340
26424
|
}
|
|
26341
26425
|
validateShow(value) {
|
|
26342
26426
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -26376,6 +26460,9 @@ var KolSplitButtonDefaultStyle0 = defaultStyleCss$9;
|
|
|
26376
26460
|
class KolSplitButton {
|
|
26377
26461
|
constructor(hostRef) {
|
|
26378
26462
|
registerInstance(this, hostRef);
|
|
26463
|
+
this.catchPrimaryRef = (ref) => {
|
|
26464
|
+
this.primaryButtonWcRef = ref;
|
|
26465
|
+
};
|
|
26379
26466
|
this.clickButtonHandler = {
|
|
26380
26467
|
onClick: (event) => {
|
|
26381
26468
|
var _a, _b;
|
|
@@ -26383,9 +26470,6 @@ class KolSplitButton {
|
|
|
26383
26470
|
if (typeof ((_a = this._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {
|
|
26384
26471
|
(_b = this._on) === null || _b === void 0 ? void 0 : _b.onClick(event, this._value);
|
|
26385
26472
|
}
|
|
26386
|
-
else {
|
|
26387
|
-
this.toggleDropdown();
|
|
26388
|
-
}
|
|
26389
26473
|
},
|
|
26390
26474
|
};
|
|
26391
26475
|
this.clickToggleHandler = {
|
|
@@ -26400,7 +26484,9 @@ class KolSplitButton {
|
|
|
26400
26484
|
this.handleOnClose = () => {
|
|
26401
26485
|
this.state = Object.assign(Object.assign({}, this.state), { _show: false });
|
|
26402
26486
|
};
|
|
26487
|
+
this._accessKey = undefined;
|
|
26403
26488
|
this._ariaControls = undefined;
|
|
26489
|
+
this._ariaDescription = undefined;
|
|
26404
26490
|
this._ariaExpanded = undefined;
|
|
26405
26491
|
this._ariaSelected = undefined;
|
|
26406
26492
|
this._customClass = undefined;
|
|
@@ -26412,6 +26498,7 @@ class KolSplitButton {
|
|
|
26412
26498
|
this._name = undefined;
|
|
26413
26499
|
this._on = undefined;
|
|
26414
26500
|
this._role = undefined;
|
|
26501
|
+
this._shortKey = undefined;
|
|
26415
26502
|
this._syncValueBySelector = undefined;
|
|
26416
26503
|
this._tooltipAlign = 'top';
|
|
26417
26504
|
this._type = 'button';
|
|
@@ -26421,12 +26508,19 @@ class KolSplitButton {
|
|
|
26421
26508
|
_show: false,
|
|
26422
26509
|
};
|
|
26423
26510
|
}
|
|
26511
|
+
async getValue() {
|
|
26512
|
+
return this._value;
|
|
26513
|
+
}
|
|
26514
|
+
async kolFocus() {
|
|
26515
|
+
var _a;
|
|
26516
|
+
await ((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
26517
|
+
}
|
|
26424
26518
|
render() {
|
|
26425
26519
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
26426
|
-
return (hAsync("div", { key: '
|
|
26520
|
+
return (hAsync("div", { key: '66a929dff8d069efce9546856d5d4c86e49320a5', class: "kol-split-button" }, hAsync("div", { key: '85505f259071971082af5d60bc838e541663c3da', class: "kol-split-button__root" }, hAsync(KolButtonWcTag, { key: 'c4a089a9afce71f21a96b236f2a8c91662ad78f0', class: clsx('kol-split-button__button', {
|
|
26427
26521
|
[this._variant]: this._variant !== 'custom',
|
|
26428
26522
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
26429
|
-
}), _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: '
|
|
26523
|
+
}), 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, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: 'e8612f334a399f23bbc9e3a257bd5e56dc26ca71', class: "kol-split-button__horizontal-line" }), hAsync(KolButtonWcTag, { key: '168c422e85261c679a7563b267cdbf25555b1385', class: "kol-split-button__secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler })), hAsync(KolPopoverWcTag, { key: '34083ba6afef3fc9e04397800552a5e9755d3f00', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: '659cd50ab13bfdb752d0d2930e7b53737a499e40' }))));
|
|
26430
26524
|
}
|
|
26431
26525
|
async closePopup() {
|
|
26432
26526
|
this.handleOnClose();
|
|
@@ -26440,7 +26534,9 @@ class KolSplitButton {
|
|
|
26440
26534
|
"$flags$": 57,
|
|
26441
26535
|
"$tagName$": "kol-split-button",
|
|
26442
26536
|
"$members$": {
|
|
26537
|
+
"_accessKey": [1, "_access-key"],
|
|
26443
26538
|
"_ariaControls": [1, "_aria-controls"],
|
|
26539
|
+
"_ariaDescription": [1, "_aria-description"],
|
|
26444
26540
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
26445
26541
|
"_ariaSelected": [4, "_aria-selected"],
|
|
26446
26542
|
"_customClass": [1, "_custom-class"],
|
|
@@ -26452,12 +26548,15 @@ class KolSplitButton {
|
|
|
26452
26548
|
"_name": [1],
|
|
26453
26549
|
"_on": [16],
|
|
26454
26550
|
"_role": [1],
|
|
26551
|
+
"_shortKey": [1, "_short-key"],
|
|
26455
26552
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
26456
26553
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
26457
26554
|
"_type": [1],
|
|
26458
26555
|
"_value": [8],
|
|
26459
26556
|
"_variant": [1],
|
|
26460
26557
|
"state": [32],
|
|
26558
|
+
"getValue": [64],
|
|
26559
|
+
"kolFocus": [64],
|
|
26461
26560
|
"closePopup": [64]
|
|
26462
26561
|
},
|
|
26463
26562
|
"$listeners$": undefined,
|
|
@@ -26523,7 +26622,7 @@ class KolTableSettings {
|
|
|
26523
26622
|
}
|
|
26524
26623
|
render() {
|
|
26525
26624
|
const sortedColumns = [...this.tableSettings.columns].sort((a, b) => a.position - b.position);
|
|
26526
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
26625
|
+
return (hAsync(KolPopoverButtonWcTag, { key: '0ca51ae3cc20e2c0a3e8af8d287ec0a0414139bc', ref: (el) => (this.popoverRef = el), class: "kol-table-settings", _icons: "codicon codicon-settings-gear", _label: translate('kol-table-settings'), _popoverAlign: "top", _hideLabel: true }, hAsync("div", { key: 'e5fbc57fd59529262b64192a8013d84be69f0f9b', class: "kol-table-settings__content" }, hAsync(KolHeadingTag, { key: 'f15bdeface7b959ddd25ed3fe76d5ad262954091', _label: translate('kol-table-settings'), _level: 0 }), this.errorMessage && hAsync(KolAlertWcTag, { key: '286889a668bc874f1688b06ad145c71bdc5cde6b', _type: "error", _label: this.errorMessage, _variant: "msg", class: "kol-table-settings__error-message" }), hAsync("form", { key: 'de4d015a4bf8123a0f61cb94a6d546b7fc2a947c', onSubmit: this.handleSubmit.bind(this) }, hAsync("div", { key: '5f59e3f62159570ce663ee4946c45305064c47f0', class: "kol-table-settings__columns-container" }, hAsync("div", { key: '316fc127e3d68faa71e57c055cabfa6635ce7732', class: "kol-table-settings__columns" }, sortedColumns.map((column, index) => (hAsync("div", { key: column.key, class: "kol-table-settings__column" }, hAsync(KolInputCheckboxTag, { _checked: column.visible, _label: translate('kol-table-settings-show-column', { placeholders: { column: column.label } }), _value: true, _hideLabel: true, _on: { onInput: (_, value) => this.handleVisibilityChange(column.key, value) } }), hAsync("span", null, column.label), hAsync(KolInputNumberTag, { _hideLabel: true, _value: column.width, _label: translate('kol-table-settings-column-width', { placeholders: { column: column.label } }), _min: 1, _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, "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, "data-testid": "table-settings-move-down" })))))), hAsync("div", { key: '4e7a2481531e1cf0c387df5476efd5b9044f27d5', class: "kol-table-settings__actions" }, hAsync(KolButtonWcTag, { key: 'b4ad0c611d272a9e4f29d93ebcf018febb16cf83', _label: translate('kol-table-settings-cancel'), _buttonVariant: "secondary", _on: { onClick: () => this.handleCancel() }, "data-testid": "table-settings-cancel" }), hAsync(KolButtonWcTag, { key: 'b46efad370ce482f80e181acab237ce0a8433711', _label: translate('kol-table-settings-apply'), _buttonVariant: "primary", _type: "submit", "data-testid": "table-settings-apply" }))))));
|
|
26527
26626
|
}
|
|
26528
26627
|
get host() { return getElement(this); }
|
|
26529
26628
|
static get watchers() { return {
|
|
@@ -26584,7 +26683,7 @@ const validateTableSettings = (component, value) => {
|
|
|
26584
26683
|
watchValidator(component, `_tableSettings`, (value) => typeof value === 'object' && value !== null, new Set(['TableSettings']), value);
|
|
26585
26684
|
};
|
|
26586
26685
|
|
|
26587
|
-
const defaultStyleCss$8 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 place-items: center;\n display: flex;\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(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\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 margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 1px solid #000;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\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__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\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 justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-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 align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\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 position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\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}\n@layer kol-component {\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}";
|
|
26686
|
+
const defaultStyleCss$8 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 place-items: center;\n display: flex;\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(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\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 margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\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__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\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 justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-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 align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\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 position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\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}\n@layer kol-component {\n .kol-pagination {\n align-items: center;\n display: grid;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n align-items: center;\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5em;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n}\n@layer kol-component {\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}";
|
|
26588
26687
|
var KolTableStatefulDefaultStyle0 = defaultStyleCss$8;
|
|
26589
26688
|
|
|
26590
26689
|
const PAGINATION_OPTIONS = [10, 20, 50, 100];
|
|
@@ -26860,7 +26959,7 @@ class KolTableStateful {
|
|
|
26860
26959
|
? this.state._data.length.toString()
|
|
26861
26960
|
: '0',
|
|
26862
26961
|
},
|
|
26863
|
-
})), hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(
|
|
26962
|
+
})), 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 }))));
|
|
26864
26963
|
}
|
|
26865
26964
|
getHeaderCellSortState(headerCell) {
|
|
26866
26965
|
if (!this.disableSort && typeof headerCell.compareFn === 'function') {
|
|
@@ -26920,7 +27019,7 @@ class KolTableStateful {
|
|
|
26920
27019
|
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) }))))) !== null && _d !== void 0 ? _d : [],
|
|
26921
27020
|
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) }))))) !== null && _f !== void 0 ? _f : [],
|
|
26922
27021
|
};
|
|
26923
|
-
return (hAsync(Host, { key: '
|
|
27022
|
+
return (hAsync(Host, { key: 'ae9fe552c93f1ef8273be72a54865e524abc550d', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '4409842d643b60aa5a19e31394e7ec40823d10e8', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
26924
27023
|
onSort: (_, payload) => {
|
|
26925
27024
|
this.handleSort(payload);
|
|
26926
27025
|
},
|
|
@@ -26970,7 +27069,7 @@ class KolTableStateful {
|
|
|
26970
27069
|
}; }
|
|
26971
27070
|
}
|
|
26972
27071
|
|
|
26973
|
-
const defaultStyleCss$7 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 place-items: center;\n display: flex;\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(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\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 margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 1px solid #000;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\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__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\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 justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-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 align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\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 position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\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}";
|
|
27072
|
+
const defaultStyleCss$7 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\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 background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: 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 place-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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\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 animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 place-items: center;\n display: flex;\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(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\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 margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\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__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\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 justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-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 align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\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 position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\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}";
|
|
26974
27073
|
var KolTableStatelessDefaultStyle0 = defaultStyleCss$7;
|
|
26975
27074
|
|
|
26976
27075
|
class KolTableStateless$1 {
|
|
@@ -26986,7 +27085,7 @@ class KolTableStateless$1 {
|
|
|
26986
27085
|
this._tableSettings = undefined;
|
|
26987
27086
|
}
|
|
26988
27087
|
render() {
|
|
26989
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
27088
|
+
return (hAsync(KolTableStatelessWcTag, { key: '8c15043ee319bd85b3aeb21cfc3760d6ae8ca434', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection, _tableSettings: this._tableSettings }));
|
|
26990
27089
|
}
|
|
26991
27090
|
static get style() { return {
|
|
26992
27091
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -27550,12 +27649,12 @@ class KolTableStateless {
|
|
|
27550
27649
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
27551
27650
|
this.checkboxRefs = [];
|
|
27552
27651
|
const sortedHorizontalHeaders = (_a = this.state._headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.map((row) => this.sortByColumnPosition(row));
|
|
27553
|
-
return (hAsync("div", { key: '
|
|
27652
|
+
return (hAsync("div", { key: 'f92f7edfb1a80b38b7476b865a88ec00ccf148a4', class: "kol-table" }, hAsync(KolTableSettingsWcTag, { key: '72a74645988055bcf63ea1bc3a4c17fd7d96d84c', _tableSettings: this.state._tableSettings }), hAsync("div", { key: 'a07c76c567176466725723967c7114184fa3a943', ref: (element) => (this.tableDivElement = element), class: "kol-table__scroll-container", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: 'fe59d86376e811e243a0b139f8d03457ecbf7a68', class: "kol-table__table", style: {
|
|
27554
27653
|
minWidth: this.getTableMinWidth(),
|
|
27555
|
-
} }, hAsync("div", { key: '
|
|
27654
|
+
} }, hAsync("div", { key: '4d2a65e294d3441fcad1787e98892af10a138240', class: "kol-table__focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: 'f2047a7ab866facad40b2af173df7cda8ac4e34c', class: "kol-table__caption", id: "caption" }, this.state._label), Array.isArray(sortedHorizontalHeaders) && (hAsync("thead", { key: '83fa6857e64afe3ad8cb85c72f75aae5ce0d691b', class: "kol-table__head" }, [
|
|
27556
27655
|
sortedHorizontalHeaders.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))))),
|
|
27557
27656
|
this.renderSpacer('head', sortedHorizontalHeaders),
|
|
27558
|
-
])), hAsync("tbody", { key: '
|
|
27657
|
+
])), hAsync("tbody", { key: '46a6ee2c0bfdad97fc95741ef1022fe04fb7115c', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
27559
27658
|
}
|
|
27560
27659
|
get host() { return getElement(this); }
|
|
27561
27660
|
static get watchers() { return {
|
|
@@ -27799,9 +27898,9 @@ class KolTabs {
|
|
|
27799
27898
|
}, _icons: "codicon codicon-plus", "data-testid": "tabs-create-button" }))));
|
|
27800
27899
|
}
|
|
27801
27900
|
render() {
|
|
27802
|
-
return (hAsync("div", { key: '
|
|
27901
|
+
return (hAsync("div", { key: '8c3212b2e1bd09292d666d163c88ad94ef2f59bb', ref: (el) => {
|
|
27803
27902
|
this.tabPanelsElement = el;
|
|
27804
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
27903
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: 'ebbb16b66d9b77f98fe9d2384f83489530cd3e6d', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
27805
27904
|
}
|
|
27806
27905
|
validateAlign(value) {
|
|
27807
27906
|
validateAlign(this, value);
|
|
@@ -28041,7 +28140,7 @@ class KolTextarea {
|
|
|
28041
28140
|
} });
|
|
28042
28141
|
}
|
|
28043
28142
|
render() {
|
|
28044
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28143
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '92d2decb15fa4fa25f86387d6f911e5988f17c12' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '6bfa13c2aae8fa96002903b7c4064bff6868984c', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: '40aa057c2a81472a4db3ac2a5ab69392afce5037' }, this.getTextAreaProps())))));
|
|
28045
28144
|
}
|
|
28046
28145
|
constructor(hostRef) {
|
|
28047
28146
|
registerInstance(this, hostRef);
|
|
@@ -28317,7 +28416,7 @@ class KolToastContainer {
|
|
|
28317
28416
|
}
|
|
28318
28417
|
}
|
|
28319
28418
|
render() {
|
|
28320
|
-
return (hAsync(Host, { key: '
|
|
28419
|
+
return (hAsync(Host, { key: '4286f2f18e5333c7238c10d5fa73167650b067a4', class: "kol-toast-container" }, this.state._toastStates.length > 1 && (hAsync(KolButtonTag, { key: 'd00f8dde0a2cc279b13cadd17fcad3e585bb0164', _label: translate('kol-toast-close-all'), class: "kol-toast-container__button-close-all", _on: {
|
|
28321
28420
|
onClick: () => {
|
|
28322
28421
|
void this.closeAll();
|
|
28323
28422
|
},
|
|
@@ -28369,7 +28468,7 @@ class KolToolbar {
|
|
|
28369
28468
|
this._orientation = undefined;
|
|
28370
28469
|
}
|
|
28371
28470
|
render() {
|
|
28372
|
-
return (hAsync("div", { key: '
|
|
28471
|
+
return (hAsync("div", { key: '820d0df7f0df9ab8a3e8de78b0d3fead62abfff8', class: `kol-toolbar kol-toolbar--orientation-${this.state._orientation}`, role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem)));
|
|
28373
28472
|
}
|
|
28374
28473
|
validateLabel(value) {
|
|
28375
28474
|
validateLabel(this, value);
|
|
@@ -28576,7 +28675,7 @@ class KolTooltipWc {
|
|
|
28576
28675
|
this.showOrHideTooltip();
|
|
28577
28676
|
}
|
|
28578
28677
|
render() {
|
|
28579
|
-
return (hAsync(Host, { key: '
|
|
28678
|
+
return (hAsync(Host, { key: 'de08062e83c35022db6132bfb4726e1cb7244dcc', class: "kol-tooltip" }, this.state._label !== '' && (hAsync("div", { key: '2ebc4f82d4fade592b5e8703b0cf4c0041a9ddb6', class: "kol-tooltip__floating", ref: this.catchTooltipElement }, hAsync("div", { key: '861cdf3e0914c808e09056e8964d619fb0ecf6fd', class: "kol-tooltip__arrow", ref: this.catchArrowElement }), hAsync(KolSpanFc, { key: 'a92d13e134f6a905a052c61c51961be851e406c1', class: "kol-tooltip__content", id: this.state._id, badgeText: this._badgeText, label: this.state._label })))));
|
|
28580
28679
|
}
|
|
28581
28680
|
validateBadgeText(value) {
|
|
28582
28681
|
validateBadgeText(this, value);
|
|
@@ -28654,7 +28753,7 @@ class KolTree {
|
|
|
28654
28753
|
this._label = undefined;
|
|
28655
28754
|
}
|
|
28656
28755
|
render() {
|
|
28657
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
28756
|
+
return (hAsync(KolTreeWcTag, { key: '13d3e695605cbf910749ac998731d7d6310b3ed8', _label: this._label }, hAsync("slot", { key: 'b4702460fa7ca8fe8e259cb7b782a8971735a9ef' })));
|
|
28658
28757
|
}
|
|
28659
28758
|
static get style() { return {
|
|
28660
28759
|
default: KolTreeDefaultStyle0
|
|
@@ -28702,7 +28801,7 @@ class KolTreeItem {
|
|
|
28702
28801
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
28703
28802
|
}
|
|
28704
28803
|
render() {
|
|
28705
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
28804
|
+
return (hAsync(KolTreeItemWcTag, { key: '6e77abb1a162108a6f06ac8bf9024b408a9bf990', _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '752481a98faee9bad7d5661bb01bc868198e544e' })));
|
|
28706
28805
|
}
|
|
28707
28806
|
static get style() { return {
|
|
28708
28807
|
default: KolTreeItemDefaultStyle0
|
|
@@ -28745,12 +28844,12 @@ class KolTreeItemWc {
|
|
|
28745
28844
|
}
|
|
28746
28845
|
render() {
|
|
28747
28846
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
28748
|
-
return (hAsync(Host, { key: '
|
|
28847
|
+
return (hAsync(Host, { key: 'e0d63b982e56ef662c1420fc9ade69068b8a81ff', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: '7c2d91957ad2e92256d5bc8bcbfa003d830a3645', class: "kol-tree-item", style: {
|
|
28749
28848
|
'--level': `${this.level}`,
|
|
28750
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
28849
|
+
} }, hAsync(KolLinkWcTag, { key: '7207fe34d30d14349d397fbd75ff2f0d16aa7086', class: clsx('kol-tree-item__link', {
|
|
28751
28850
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
28752
28851
|
'kol-tree-item__link--active': _active,
|
|
28753
|
-
}), _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: '
|
|
28852
|
+
}), _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: 'd959cfb814982fcbb72f89a7fea3e2b6031e7ab4', 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: `codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`, _label: '' }))) : (hAsync("span", { class: "kol-tree-item__toggle-button-placeholder" })), hAsync("span", { key: '2249d95f2466360ef113bb8f271d91d5b7ed88e4', class: "kol-tree-item__text" }, _label))), hAsync("ul", { key: '1648a8aebf70ae58ad6068bf5192078de6d05cfd', class: "kol-tree-item__children", hidden: !_hasChildren || !_open, role: "group", id: this.groupId }, hAsync("slot", { key: '07aceb35f569834db39a1d9cfb18f80a5a9753e4' })))));
|
|
28754
28853
|
}
|
|
28755
28854
|
validateActive(value) {
|
|
28756
28855
|
validateActive(this, value || false);
|
|
@@ -28855,7 +28954,7 @@ class KolTreeWc {
|
|
|
28855
28954
|
validateLabel(this, value);
|
|
28856
28955
|
}
|
|
28857
28956
|
render() {
|
|
28858
|
-
return (hAsync(Host, { key: '
|
|
28957
|
+
return (hAsync(Host, { key: '0018aab7e413a716e2662cfd597d2ffdb063ffea', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("nav", { key: '383abb8a0f89e041b9d84fc7e872e1d4a4638948', class: "kol-tree", "aria-label": this.state._label }, hAsync("ul", { key: 'f35923f336b1c615940c32e40735fc5f74cade61', class: "kol-tree__treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: '21d555457a7a9cdab0f798c30230cde851b4038c' })))));
|
|
28859
28958
|
}
|
|
28860
28959
|
static isTreeItem(element) {
|
|
28861
28960
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -29053,7 +29152,7 @@ class KolVersion {
|
|
|
29053
29152
|
};
|
|
29054
29153
|
}
|
|
29055
29154
|
render() {
|
|
29056
|
-
return (hAsync(Host, { key: '
|
|
29155
|
+
return (hAsync(Host, { key: '3304cd937945785a92d3cf9a25cd70065f2ac5dd', class: "kol-version" }, hAsync(KolBadgeTag, { key: '155a2fbdb3ce12a1800b62745a2f9683585c9794', _color: "#bec5c9", _icons: {
|
|
29057
29156
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
29058
29157
|
}, _label: this.state._label })));
|
|
29059
29158
|
}
|
|
@@ -29136,6 +29235,7 @@ registerComponents([
|
|
|
29136
29235
|
KolModal,
|
|
29137
29236
|
KolNav,
|
|
29138
29237
|
KolPagination,
|
|
29238
|
+
KolPaginationWc,
|
|
29139
29239
|
KolPopover,
|
|
29140
29240
|
KolPopoverButton$1,
|
|
29141
29241
|
KolPopoverButton,
|