@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.js
CHANGED
|
@@ -3832,6 +3832,10 @@ const validateAdjustHeight = (component, value) => {
|
|
|
3832
3832
|
watchBoolean(component, '_adjustHeight', value);
|
|
3833
3833
|
};
|
|
3834
3834
|
|
|
3835
|
+
const validateAlt = (component, value, options = {}) => {
|
|
3836
|
+
watchString(component, '_alt', value, options);
|
|
3837
|
+
};
|
|
3838
|
+
|
|
3835
3839
|
const validateAlignment = (component, propName, value) => {
|
|
3836
3840
|
watchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {
|
|
3837
3841
|
defaultValue: 'top',
|
|
@@ -4198,6 +4202,14 @@ const validateImageSource = (component, value, options) => {
|
|
|
4198
4202
|
watchString(component, '_src', value, options);
|
|
4199
4203
|
};
|
|
4200
4204
|
|
|
4205
|
+
const validateImageSizes = (component, value, options = {}) => {
|
|
4206
|
+
watchString(component, '_sizes', value, options);
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
const validateImageSrcset = (component, value, options = {}) => {
|
|
4210
|
+
watchString(component, '_srcset', value, options);
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4201
4213
|
const validateIndeterminate = (component, value) => {
|
|
4202
4214
|
watchBoolean(component, '_indeterminate', value);
|
|
4203
4215
|
};
|
|
@@ -4510,7 +4522,7 @@ let KolInputCheckboxTag = 'kol-input-checkbox';
|
|
|
4510
4522
|
let KolInputNumberTag = 'kol-input-number';
|
|
4511
4523
|
let KolLinkTag = 'kol-link';
|
|
4512
4524
|
let KolLinkWcTag = 'kol-link-wc';
|
|
4513
|
-
let
|
|
4525
|
+
let KolPaginationWcTag = 'kol-pagination-wc';
|
|
4514
4526
|
let KolPopoverWcTag = 'kol-popover-wc';
|
|
4515
4527
|
let KolPopoverButtonWcTag = 'kol-popover-button-wc';
|
|
4516
4528
|
let KolSelectTag = 'kol-select';
|
|
@@ -5134,13 +5146,28 @@ const AlertIcon = ({ type, label }) => {
|
|
|
5134
5146
|
}
|
|
5135
5147
|
};
|
|
5136
5148
|
|
|
5149
|
+
const vibrateOnError = () => {
|
|
5150
|
+
if (typeof navigator === 'undefined' || typeof navigator.vibrate !== 'function') {
|
|
5151
|
+
return;
|
|
5152
|
+
}
|
|
5153
|
+
const ua = navigator.userActivation;
|
|
5154
|
+
const hasGesture = (ua === null || ua === void 0 ? void 0 : ua.isActive) || (ua === null || ua === void 0 ? void 0 : ua.hasBeenActive);
|
|
5155
|
+
if (!hasGesture) {
|
|
5156
|
+
return;
|
|
5157
|
+
}
|
|
5158
|
+
if (!matchMedia('(any-pointer: coarse)').matches) {
|
|
5159
|
+
return;
|
|
5160
|
+
}
|
|
5161
|
+
try {
|
|
5162
|
+
navigator.vibrate([100, 75, 100, 75, 100]);
|
|
5163
|
+
}
|
|
5164
|
+
catch (_a) {
|
|
5165
|
+
}
|
|
5166
|
+
};
|
|
5137
5167
|
const KolAlertFc = (props, children) => {
|
|
5138
|
-
var _a, _b;
|
|
5139
5168
|
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"]);
|
|
5140
5169
|
if (alert) {
|
|
5141
|
-
|
|
5142
|
-
(_b = navigator === null || navigator === void 0 ? void 0 : navigator.vibrate) === null || _b === void 0 ? void 0 : _b.call(navigator, [100, 75, 100, 75, 100]);
|
|
5143
|
-
}
|
|
5170
|
+
vibrateOnError();
|
|
5144
5171
|
setTimeout(() => {
|
|
5145
5172
|
onAlertTimeout === null || onAlertTimeout === void 0 ? void 0 : onAlertTimeout();
|
|
5146
5173
|
}, 10000);
|
|
@@ -5205,7 +5232,7 @@ class KolAlertWc {
|
|
|
5205
5232
|
onCloserClick: this.close,
|
|
5206
5233
|
onAlertTimeout: this.handleAlertTimeout,
|
|
5207
5234
|
};
|
|
5208
|
-
return (hAsync(KolAlertFc, Object.assign({ key: '
|
|
5235
|
+
return (hAsync(KolAlertFc, Object.assign({ key: '2b0d74465270eef8d8d6f3da8c04377f862e8630' }, props), hAsync("slot", { key: '55e8ad62be763c26af16813e5ebfac2ce1f63b54' })));
|
|
5209
5236
|
}
|
|
5210
5237
|
validateAlert(value) {
|
|
5211
5238
|
watchBoolean(this, '_alert', value);
|
|
@@ -16902,7 +16929,7 @@ class KolCard {
|
|
|
16902
16929
|
};
|
|
16903
16930
|
}
|
|
16904
16931
|
render() {
|
|
16905
|
-
return (hAsync("div", { key: '
|
|
16932
|
+
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: {
|
|
16906
16933
|
left: {
|
|
16907
16934
|
icon: 'codicon codicon-close',
|
|
16908
16935
|
},
|
|
@@ -17387,8 +17414,15 @@ const CustomSuggestionsToggleFc = ({ onClick, disabled }) => {
|
|
|
17387
17414
|
hAsync(KolIconTag, { _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') })));
|
|
17388
17415
|
};
|
|
17389
17416
|
|
|
17390
|
-
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {
|
|
17391
|
-
|
|
17417
|
+
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option, searchTerm }) => {
|
|
17418
|
+
const highlightSearchTerm = (text, searchTerm) => {
|
|
17419
|
+
if (!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()))
|
|
17420
|
+
return text;
|
|
17421
|
+
const regex = new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
|
|
17422
|
+
const parts = text.split(regex);
|
|
17423
|
+
return parts.map((part, partIndex) => (regex.test(part) ? hAsync("mark", { key: partIndex }, part) : part));
|
|
17424
|
+
};
|
|
17425
|
+
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 || '')));
|
|
17392
17426
|
};
|
|
17393
17427
|
|
|
17394
17428
|
const CustomSuggestionsOptionsGroupFc = ({ blockSuggestionMouseOver, onKeyDown, style }, children) => {
|
|
@@ -17496,7 +17530,7 @@ class KolCombobox {
|
|
|
17496
17530
|
render() {
|
|
17497
17531
|
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) &&
|
|
17498
17532
|
this._filteredSuggestions.length > 0 &&
|
|
17499
|
-
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, ref: (el) => {
|
|
17533
|
+
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
17500
17534
|
if (el)
|
|
17501
17535
|
this.refSuggestions[index] = el;
|
|
17502
17536
|
}, selected: this.state._value === option, onClick: () => {
|
|
@@ -18330,15 +18364,13 @@ class KolImage {
|
|
|
18330
18364
|
};
|
|
18331
18365
|
}
|
|
18332
18366
|
validateAlt(value) {
|
|
18333
|
-
|
|
18334
|
-
required: true,
|
|
18335
|
-
});
|
|
18367
|
+
validateAlt(this, value, { required: true });
|
|
18336
18368
|
}
|
|
18337
18369
|
validateLoading(value) {
|
|
18338
18370
|
validateLoading(this, value);
|
|
18339
18371
|
}
|
|
18340
18372
|
validateSizes(value) {
|
|
18341
|
-
|
|
18373
|
+
validateImageSizes(this, value);
|
|
18342
18374
|
}
|
|
18343
18375
|
validateSrc(value) {
|
|
18344
18376
|
validateImageSource(this, value, {
|
|
@@ -18346,7 +18378,7 @@ class KolImage {
|
|
|
18346
18378
|
});
|
|
18347
18379
|
}
|
|
18348
18380
|
validateSrcset(value) {
|
|
18349
|
-
|
|
18381
|
+
validateImageSrcset(this, value);
|
|
18350
18382
|
}
|
|
18351
18383
|
componentWillLoad() {
|
|
18352
18384
|
this.validateAlt(this._alt);
|
|
@@ -18356,7 +18388,7 @@ class KolImage {
|
|
|
18356
18388
|
this.validateSrcset(this._srcset);
|
|
18357
18389
|
}
|
|
18358
18390
|
render() {
|
|
18359
|
-
return (hAsync("img", { key: '
|
|
18391
|
+
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 }));
|
|
18360
18392
|
}
|
|
18361
18393
|
static get watchers() { return {
|
|
18362
18394
|
"_alt": ["validateAlt"],
|
|
@@ -22275,6 +22307,7 @@ class KolNav {
|
|
|
22275
22307
|
}), 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 })));
|
|
22276
22308
|
}
|
|
22277
22309
|
initializeExpandedChildren() {
|
|
22310
|
+
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
22278
22311
|
const handleBranch = (branch) => {
|
|
22279
22312
|
if (branch._active) {
|
|
22280
22313
|
if (branch._children) {
|
|
@@ -22303,9 +22336,9 @@ class KolNav {
|
|
|
22303
22336
|
const collapsible = this.state._collapsible === true;
|
|
22304
22337
|
const hideLabel = this.state._hideLabel === true;
|
|
22305
22338
|
const orientation = this.state._orientation;
|
|
22306
|
-
return (hAsync("div", { key: '
|
|
22339
|
+
return (hAsync("div", { key: '1768f2d1d6794f07607ad8a9f3953a4f17d3cd06', class: clsx('kol-nav', `kol-nav--${orientation}`, {
|
|
22307
22340
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
22308
|
-
}) }, hAsync("nav", { key: '
|
|
22341
|
+
}) }, 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: {
|
|
22309
22342
|
onClick: () => {
|
|
22310
22343
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
22311
22344
|
},
|
|
@@ -22336,6 +22369,7 @@ class KolNav {
|
|
|
22336
22369
|
validateLinks(value) {
|
|
22337
22370
|
watchNavLinks('KolNav', this, value);
|
|
22338
22371
|
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
22372
|
+
this.initializeExpandedChildren();
|
|
22339
22373
|
}
|
|
22340
22374
|
validateOrientation(value) {
|
|
22341
22375
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -22386,9 +22420,52 @@ class KolNav {
|
|
|
22386
22420
|
}; }
|
|
22387
22421
|
}
|
|
22388
22422
|
|
|
22389
|
-
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
|
|
22423
|
+
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}";
|
|
22390
22424
|
var KolPaginationDefaultStyle0 = defaultStyleCss$h;
|
|
22391
22425
|
|
|
22426
|
+
class KolPagination {
|
|
22427
|
+
constructor(hostRef) {
|
|
22428
|
+
registerInstance(this, hostRef);
|
|
22429
|
+
this._boundaryCount = 1;
|
|
22430
|
+
this._customClass = undefined;
|
|
22431
|
+
this._label = undefined;
|
|
22432
|
+
this._hasButtons = true;
|
|
22433
|
+
this._page = undefined;
|
|
22434
|
+
this._pageSize = 1;
|
|
22435
|
+
this._pageSizeOptions = [];
|
|
22436
|
+
this._on = undefined;
|
|
22437
|
+
this._siblingCount = 1;
|
|
22438
|
+
this._tooltipAlign = 'top';
|
|
22439
|
+
this._max = undefined;
|
|
22440
|
+
}
|
|
22441
|
+
render() {
|
|
22442
|
+
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 }));
|
|
22443
|
+
}
|
|
22444
|
+
static get style() { return {
|
|
22445
|
+
default: KolPaginationDefaultStyle0
|
|
22446
|
+
}; }
|
|
22447
|
+
static get cmpMeta() { return {
|
|
22448
|
+
"$flags$": 41,
|
|
22449
|
+
"$tagName$": "kol-pagination",
|
|
22450
|
+
"$members$": {
|
|
22451
|
+
"_boundaryCount": [2, "_boundary-count"],
|
|
22452
|
+
"_customClass": [1, "_custom-class"],
|
|
22453
|
+
"_label": [1],
|
|
22454
|
+
"_hasButtons": [8, "_has-buttons"],
|
|
22455
|
+
"_page": [2],
|
|
22456
|
+
"_pageSize": [1026, "_page-size"],
|
|
22457
|
+
"_pageSizeOptions": [1, "_page-size-options"],
|
|
22458
|
+
"_on": [16],
|
|
22459
|
+
"_siblingCount": [2, "_sibling-count"],
|
|
22460
|
+
"_tooltipAlign": [1, "_tooltip-align"],
|
|
22461
|
+
"_max": [2]
|
|
22462
|
+
},
|
|
22463
|
+
"$listeners$": undefined,
|
|
22464
|
+
"$lazyBundleId$": "-",
|
|
22465
|
+
"$attrsToReflect$": []
|
|
22466
|
+
}; }
|
|
22467
|
+
}
|
|
22468
|
+
|
|
22392
22469
|
const leftDoubleArrowIcon = {
|
|
22393
22470
|
left: 'codicon codicon-debug-reverse-continue',
|
|
22394
22471
|
};
|
|
@@ -22412,7 +22489,7 @@ const NUMBER_FORMATTER = new Intl.NumberFormat(userLanguage, {
|
|
|
22412
22489
|
minimumFractionDigits: 0,
|
|
22413
22490
|
maximumFractionDigits: 0,
|
|
22414
22491
|
});
|
|
22415
|
-
class
|
|
22492
|
+
class KolPaginationWc {
|
|
22416
22493
|
constructor(hostRef) {
|
|
22417
22494
|
registerInstance(this, hostRef);
|
|
22418
22495
|
this.nonce = nonce();
|
|
@@ -22718,12 +22795,9 @@ class KolPagination {
|
|
|
22718
22795
|
"_max": ["validateMax"],
|
|
22719
22796
|
"_tooltipAlign": ["validateTooltipAlign"]
|
|
22720
22797
|
}; }
|
|
22721
|
-
static get style() { return {
|
|
22722
|
-
default: KolPaginationDefaultStyle0
|
|
22723
|
-
}; }
|
|
22724
22798
|
static get cmpMeta() { return {
|
|
22725
|
-
"$flags$":
|
|
22726
|
-
"$tagName$": "kol-pagination",
|
|
22799
|
+
"$flags$": 0,
|
|
22800
|
+
"$tagName$": "kol-pagination-wc",
|
|
22727
22801
|
"$members$": {
|
|
22728
22802
|
"_boundaryCount": [2, "_boundary-count"],
|
|
22729
22803
|
"_customClass": [1, "_custom-class"],
|
|
@@ -22788,8 +22862,9 @@ function getOppositeAxis(axis) {
|
|
|
22788
22862
|
function getAxisLength(axis) {
|
|
22789
22863
|
return axis === 'y' ? 'height' : 'width';
|
|
22790
22864
|
}
|
|
22865
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
22791
22866
|
function getSideAxis(placement) {
|
|
22792
|
-
return
|
|
22867
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
22793
22868
|
}
|
|
22794
22869
|
function getAlignmentAxis(placement) {
|
|
22795
22870
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -22814,19 +22889,19 @@ function getExpandedPlacements(placement) {
|
|
|
22814
22889
|
function getOppositeAlignmentPlacement(placement) {
|
|
22815
22890
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
22816
22891
|
}
|
|
22892
|
+
const lrPlacement = ['left', 'right'];
|
|
22893
|
+
const rlPlacement = ['right', 'left'];
|
|
22894
|
+
const tbPlacement = ['top', 'bottom'];
|
|
22895
|
+
const btPlacement = ['bottom', 'top'];
|
|
22817
22896
|
function getSideList(side, isStart, rtl) {
|
|
22818
|
-
const lr = ['left', 'right'];
|
|
22819
|
-
const rl = ['right', 'left'];
|
|
22820
|
-
const tb = ['top', 'bottom'];
|
|
22821
|
-
const bt = ['bottom', 'top'];
|
|
22822
22897
|
switch (side) {
|
|
22823
22898
|
case 'top':
|
|
22824
22899
|
case 'bottom':
|
|
22825
|
-
if (rtl) return isStart ?
|
|
22826
|
-
return isStart ?
|
|
22900
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
22901
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
22827
22902
|
case 'left':
|
|
22828
22903
|
case 'right':
|
|
22829
|
-
return isStart ?
|
|
22904
|
+
return isStart ? tbPlacement : btPlacement;
|
|
22830
22905
|
default:
|
|
22831
22906
|
return [];
|
|
22832
22907
|
}
|
|
@@ -23610,6 +23685,8 @@ const inline = function (options) {
|
|
|
23610
23685
|
};
|
|
23611
23686
|
};
|
|
23612
23687
|
|
|
23688
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
23689
|
+
|
|
23613
23690
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
23614
23691
|
// Derivable.
|
|
23615
23692
|
|
|
@@ -23623,7 +23700,7 @@ async function convertValueToCoords(state, options) {
|
|
|
23623
23700
|
const side = getSide(placement);
|
|
23624
23701
|
const alignment = getAlignment(placement);
|
|
23625
23702
|
const isVertical = getSideAxis(placement) === 'y';
|
|
23626
|
-
const mainAxisMulti =
|
|
23703
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
23627
23704
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
23628
23705
|
const rawValue = evaluate(options, state);
|
|
23629
23706
|
|
|
@@ -23823,7 +23900,7 @@ const limitShift = function (options) {
|
|
|
23823
23900
|
if (checkCrossAxis) {
|
|
23824
23901
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
23825
23902
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
23826
|
-
const isOriginSide =
|
|
23903
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
23827
23904
|
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);
|
|
23828
23905
|
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);
|
|
23829
23906
|
if (crossAxisCoord < limitMin) {
|
|
@@ -23968,6 +24045,7 @@ function isShadowRoot(value) {
|
|
|
23968
24045
|
}
|
|
23969
24046
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
23970
24047
|
}
|
|
24048
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
23971
24049
|
function isOverflowElement(element) {
|
|
23972
24050
|
const {
|
|
23973
24051
|
overflow,
|
|
@@ -23975,27 +24053,32 @@ function isOverflowElement(element) {
|
|
|
23975
24053
|
overflowY,
|
|
23976
24054
|
display
|
|
23977
24055
|
} = getComputedStyle(element);
|
|
23978
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
24056
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
23979
24057
|
}
|
|
24058
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
23980
24059
|
function isTableElement(element) {
|
|
23981
|
-
return
|
|
24060
|
+
return tableElements.has(getNodeName(element));
|
|
23982
24061
|
}
|
|
24062
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
23983
24063
|
function isTopLayer(element) {
|
|
23984
|
-
return
|
|
24064
|
+
return topLayerSelectors.some(selector => {
|
|
23985
24065
|
try {
|
|
23986
24066
|
return element.matches(selector);
|
|
23987
|
-
} catch (
|
|
24067
|
+
} catch (_e) {
|
|
23988
24068
|
return false;
|
|
23989
24069
|
}
|
|
23990
24070
|
});
|
|
23991
24071
|
}
|
|
24072
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
24073
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
24074
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
23992
24075
|
function isContainingBlock(elementOrCss) {
|
|
23993
24076
|
const webkit = isWebKit();
|
|
23994
24077
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
23995
24078
|
|
|
23996
24079
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
23997
24080
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
23998
|
-
return
|
|
24081
|
+
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));
|
|
23999
24082
|
}
|
|
24000
24083
|
function getContainingBlock(element) {
|
|
24001
24084
|
let currentNode = getParentNode(element);
|
|
@@ -24013,8 +24096,9 @@ function isWebKit() {
|
|
|
24013
24096
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
24014
24097
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
24015
24098
|
}
|
|
24099
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
24016
24100
|
function isLastTraversableNode(node) {
|
|
24017
|
-
return
|
|
24101
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
24018
24102
|
}
|
|
24019
24103
|
function getComputedStyle(element) {
|
|
24020
24104
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -24932,7 +25016,7 @@ class KolPopover {
|
|
|
24932
25016
|
});
|
|
24933
25017
|
}
|
|
24934
25018
|
render() {
|
|
24935
|
-
return (hAsync(Host, { key: '
|
|
25019
|
+
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' }))));
|
|
24936
25020
|
}
|
|
24937
25021
|
validateAlign(value) {
|
|
24938
25022
|
validateAlign(this, value);
|
|
@@ -24969,7 +25053,7 @@ class KolPopover {
|
|
|
24969
25053
|
}; }
|
|
24970
25054
|
}
|
|
24971
25055
|
|
|
24972
|
-
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:
|
|
25056
|
+
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}";
|
|
24973
25057
|
var KolPopoverButtonDefaultStyle0 = defaultStyleCss$g;
|
|
24974
25058
|
|
|
24975
25059
|
class KolPopoverButton$1 {
|
|
@@ -25002,7 +25086,7 @@ class KolPopoverButton$1 {
|
|
|
25002
25086
|
void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
25003
25087
|
}
|
|
25004
25088
|
render() {
|
|
25005
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
25089
|
+
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' })));
|
|
25006
25090
|
}
|
|
25007
25091
|
static get style() { return {
|
|
25008
25092
|
default: KolPopoverButtonDefaultStyle0
|
|
@@ -25127,7 +25211,7 @@ class KolPopoverButton {
|
|
|
25127
25211
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
25128
25212
|
}
|
|
25129
25213
|
render() {
|
|
25130
|
-
return (hAsync("div", { key: '
|
|
25214
|
+
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' }))));
|
|
25131
25215
|
}
|
|
25132
25216
|
validatePopoverAlign(value) {
|
|
25133
25217
|
validatePopoverAlign(this, value);
|
|
@@ -25216,10 +25300,10 @@ class KolProgress {
|
|
|
25216
25300
|
const isPercentage = this.state._unit === '%';
|
|
25217
25301
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}` : this.state._liveValue;
|
|
25218
25302
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
25219
|
-
return (hAsync("div", { key: '
|
|
25303
|
+
return (hAsync("div", { key: 'a35e0a18d0d9d0ddfcb60c7070b8817b15dc6b02', class: "kol-progress" }, hAsync("div", { key: 'b7d93e63b0b24b4c90270cf2146383d5d53da12e', "aria-hidden": "true", class: {
|
|
25220
25304
|
'kol-progress__cycle': this.state._variant === 'cycle',
|
|
25221
25305
|
'kol-progress__bar': this.state._variant === 'bar',
|
|
25222
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
25306
|
+
} }, 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}`)));
|
|
25223
25307
|
}
|
|
25224
25308
|
validateLabel(value) {
|
|
25225
25309
|
validateLabel(this, value);
|
|
@@ -25329,7 +25413,7 @@ class KolQuote {
|
|
|
25329
25413
|
}
|
|
25330
25414
|
render() {
|
|
25331
25415
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
25332
|
-
return (hAsync("figure", { key: '
|
|
25416
|
+
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" }))))));
|
|
25333
25417
|
}
|
|
25334
25418
|
static get watchers() { return {
|
|
25335
25419
|
"_label": ["validateLabel"],
|
|
@@ -25542,13 +25626,13 @@ class KolSelect {
|
|
|
25542
25626
|
} });
|
|
25543
25627
|
}
|
|
25544
25628
|
render() {
|
|
25545
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
25629
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'bc7ee077bca2efc065987ce71be494bc78712b0a' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2bde683bfdf19e78a6aa6d980925aa6d6b06ce20', state: this.state }, hAsync("form", { key: '582987d654fa36f36a292d2cde2ca57190fc20bd', onSubmit: (event) => {
|
|
25546
25630
|
event.preventDefault();
|
|
25547
25631
|
propagateSubmitEventToForm({
|
|
25548
25632
|
form: this.host,
|
|
25549
25633
|
ref: this.selectRef,
|
|
25550
25634
|
});
|
|
25551
|
-
} }, hAsync("input", { key: '
|
|
25635
|
+
} }, hAsync("input", { key: '0de3d2fffb493d7f5e71f0442578236b54a37ba2', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'eff29e3d817ccfee364b7452c46a38e5162bd905' }, this.getSelectProps()))))));
|
|
25552
25636
|
}
|
|
25553
25637
|
constructor(hostRef) {
|
|
25554
25638
|
registerInstance(this, hostRef);
|
|
@@ -25897,13 +25981,13 @@ class KolSingleSelect {
|
|
|
25897
25981
|
}
|
|
25898
25982
|
render() {
|
|
25899
25983
|
var _a;
|
|
25900
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
25984
|
+
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: () => {
|
|
25901
25985
|
var _a;
|
|
25902
25986
|
this.clearSelection();
|
|
25903
25987
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
25904
25988
|
}, class: clsx('kol-single-select__delete', {
|
|
25905
25989
|
'kol-single-select__delete--disabled': this.state._disabled,
|
|
25906
|
-
}) })), hAsync(CustomSuggestionsToggleFc, { key: '
|
|
25990
|
+
}) })), 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) => {
|
|
25907
25991
|
if (el)
|
|
25908
25992
|
this.refOptions[index] = el;
|
|
25909
25993
|
}, selected: this._value === option.value, onClick: (event) => {
|
|
@@ -26272,7 +26356,7 @@ class KolSkipNav {
|
|
|
26272
26356
|
};
|
|
26273
26357
|
}
|
|
26274
26358
|
render() {
|
|
26275
|
-
return (hAsync("nav", { key: '
|
|
26359
|
+
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) => {
|
|
26276
26360
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
26277
26361
|
}))));
|
|
26278
26362
|
}
|
|
@@ -26340,7 +26424,7 @@ class KolSpin {
|
|
|
26340
26424
|
};
|
|
26341
26425
|
}
|
|
26342
26426
|
render() {
|
|
26343
|
-
return (hAsync(Host, { key: '
|
|
26427
|
+
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" }))));
|
|
26344
26428
|
}
|
|
26345
26429
|
validateShow(value) {
|
|
26346
26430
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -26380,6 +26464,9 @@ var KolSplitButtonDefaultStyle0 = defaultStyleCss$9;
|
|
|
26380
26464
|
class KolSplitButton {
|
|
26381
26465
|
constructor(hostRef) {
|
|
26382
26466
|
registerInstance(this, hostRef);
|
|
26467
|
+
this.catchPrimaryRef = (ref) => {
|
|
26468
|
+
this.primaryButtonWcRef = ref;
|
|
26469
|
+
};
|
|
26383
26470
|
this.clickButtonHandler = {
|
|
26384
26471
|
onClick: (event) => {
|
|
26385
26472
|
var _a, _b;
|
|
@@ -26387,9 +26474,6 @@ class KolSplitButton {
|
|
|
26387
26474
|
if (typeof ((_a = this._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {
|
|
26388
26475
|
(_b = this._on) === null || _b === void 0 ? void 0 : _b.onClick(event, this._value);
|
|
26389
26476
|
}
|
|
26390
|
-
else {
|
|
26391
|
-
this.toggleDropdown();
|
|
26392
|
-
}
|
|
26393
26477
|
},
|
|
26394
26478
|
};
|
|
26395
26479
|
this.clickToggleHandler = {
|
|
@@ -26404,7 +26488,9 @@ class KolSplitButton {
|
|
|
26404
26488
|
this.handleOnClose = () => {
|
|
26405
26489
|
this.state = Object.assign(Object.assign({}, this.state), { _show: false });
|
|
26406
26490
|
};
|
|
26491
|
+
this._accessKey = undefined;
|
|
26407
26492
|
this._ariaControls = undefined;
|
|
26493
|
+
this._ariaDescription = undefined;
|
|
26408
26494
|
this._ariaExpanded = undefined;
|
|
26409
26495
|
this._ariaSelected = undefined;
|
|
26410
26496
|
this._customClass = undefined;
|
|
@@ -26416,6 +26502,7 @@ class KolSplitButton {
|
|
|
26416
26502
|
this._name = undefined;
|
|
26417
26503
|
this._on = undefined;
|
|
26418
26504
|
this._role = undefined;
|
|
26505
|
+
this._shortKey = undefined;
|
|
26419
26506
|
this._syncValueBySelector = undefined;
|
|
26420
26507
|
this._tooltipAlign = 'top';
|
|
26421
26508
|
this._type = 'button';
|
|
@@ -26425,12 +26512,19 @@ class KolSplitButton {
|
|
|
26425
26512
|
_show: false,
|
|
26426
26513
|
};
|
|
26427
26514
|
}
|
|
26515
|
+
async getValue() {
|
|
26516
|
+
return this._value;
|
|
26517
|
+
}
|
|
26518
|
+
async kolFocus() {
|
|
26519
|
+
var _a;
|
|
26520
|
+
await ((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
26521
|
+
}
|
|
26428
26522
|
render() {
|
|
26429
26523
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
26430
|
-
return (hAsync("div", { key: '
|
|
26524
|
+
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', {
|
|
26431
26525
|
[this._variant]: this._variant !== 'custom',
|
|
26432
26526
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
26433
|
-
}), _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: '
|
|
26527
|
+
}), 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' }))));
|
|
26434
26528
|
}
|
|
26435
26529
|
async closePopup() {
|
|
26436
26530
|
this.handleOnClose();
|
|
@@ -26444,7 +26538,9 @@ class KolSplitButton {
|
|
|
26444
26538
|
"$flags$": 57,
|
|
26445
26539
|
"$tagName$": "kol-split-button",
|
|
26446
26540
|
"$members$": {
|
|
26541
|
+
"_accessKey": [1, "_access-key"],
|
|
26447
26542
|
"_ariaControls": [1, "_aria-controls"],
|
|
26543
|
+
"_ariaDescription": [1, "_aria-description"],
|
|
26448
26544
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
26449
26545
|
"_ariaSelected": [4, "_aria-selected"],
|
|
26450
26546
|
"_customClass": [1, "_custom-class"],
|
|
@@ -26456,12 +26552,15 @@ class KolSplitButton {
|
|
|
26456
26552
|
"_name": [1],
|
|
26457
26553
|
"_on": [16],
|
|
26458
26554
|
"_role": [1],
|
|
26555
|
+
"_shortKey": [1, "_short-key"],
|
|
26459
26556
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
26460
26557
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
26461
26558
|
"_type": [1],
|
|
26462
26559
|
"_value": [8],
|
|
26463
26560
|
"_variant": [1],
|
|
26464
26561
|
"state": [32],
|
|
26562
|
+
"getValue": [64],
|
|
26563
|
+
"kolFocus": [64],
|
|
26465
26564
|
"closePopup": [64]
|
|
26466
26565
|
},
|
|
26467
26566
|
"$listeners$": undefined,
|
|
@@ -26527,7 +26626,7 @@ class KolTableSettings {
|
|
|
26527
26626
|
}
|
|
26528
26627
|
render() {
|
|
26529
26628
|
const sortedColumns = [...this.tableSettings.columns].sort((a, b) => a.position - b.position);
|
|
26530
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
26629
|
+
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" }))))));
|
|
26531
26630
|
}
|
|
26532
26631
|
get host() { return getElement(this); }
|
|
26533
26632
|
static get watchers() { return {
|
|
@@ -26588,7 +26687,7 @@ const validateTableSettings = (component, value) => {
|
|
|
26588
26687
|
watchValidator(component, `_tableSettings`, (value) => typeof value === 'object' && value !== null, new Set(['TableSettings']), value);
|
|
26589
26688
|
};
|
|
26590
26689
|
|
|
26591
|
-
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}";
|
|
26690
|
+
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}";
|
|
26592
26691
|
var KolTableStatefulDefaultStyle0 = defaultStyleCss$8;
|
|
26593
26692
|
|
|
26594
26693
|
const PAGINATION_OPTIONS = [10, 20, 50, 100];
|
|
@@ -26864,7 +26963,7 @@ class KolTableStateful {
|
|
|
26864
26963
|
? this.state._data.length.toString()
|
|
26865
26964
|
: '0',
|
|
26866
26965
|
},
|
|
26867
|
-
})), hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(
|
|
26966
|
+
})), 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 }))));
|
|
26868
26967
|
}
|
|
26869
26968
|
getHeaderCellSortState(headerCell) {
|
|
26870
26969
|
if (!this.disableSort && typeof headerCell.compareFn === 'function') {
|
|
@@ -26924,7 +27023,7 @@ class KolTableStateful {
|
|
|
26924
27023
|
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 : [],
|
|
26925
27024
|
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 : [],
|
|
26926
27025
|
};
|
|
26927
|
-
return (hAsync(Host, { key: '
|
|
27026
|
+
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: {
|
|
26928
27027
|
onSort: (_, payload) => {
|
|
26929
27028
|
this.handleSort(payload);
|
|
26930
27029
|
},
|
|
@@ -26974,7 +27073,7 @@ class KolTableStateful {
|
|
|
26974
27073
|
}; }
|
|
26975
27074
|
}
|
|
26976
27075
|
|
|
26977
|
-
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}";
|
|
27076
|
+
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}";
|
|
26978
27077
|
var KolTableStatelessDefaultStyle0 = defaultStyleCss$7;
|
|
26979
27078
|
|
|
26980
27079
|
class KolTableStateless$1 {
|
|
@@ -26990,7 +27089,7 @@ class KolTableStateless$1 {
|
|
|
26990
27089
|
this._tableSettings = undefined;
|
|
26991
27090
|
}
|
|
26992
27091
|
render() {
|
|
26993
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
27092
|
+
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 }));
|
|
26994
27093
|
}
|
|
26995
27094
|
static get style() { return {
|
|
26996
27095
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -27554,12 +27653,12 @@ class KolTableStateless {
|
|
|
27554
27653
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
27555
27654
|
this.checkboxRefs = [];
|
|
27556
27655
|
const sortedHorizontalHeaders = (_a = this.state._headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.map((row) => this.sortByColumnPosition(row));
|
|
27557
|
-
return (hAsync("div", { key: '
|
|
27656
|
+
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: {
|
|
27558
27657
|
minWidth: this.getTableMinWidth(),
|
|
27559
|
-
} }, hAsync("div", { key: '
|
|
27658
|
+
} }, 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" }, [
|
|
27560
27659
|
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))))),
|
|
27561
27660
|
this.renderSpacer('head', sortedHorizontalHeaders),
|
|
27562
|
-
])), hAsync("tbody", { key: '
|
|
27661
|
+
])), hAsync("tbody", { key: '46a6ee2c0bfdad97fc95741ef1022fe04fb7115c', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
27563
27662
|
}
|
|
27564
27663
|
get host() { return getElement(this); }
|
|
27565
27664
|
static get watchers() { return {
|
|
@@ -27803,9 +27902,9 @@ class KolTabs {
|
|
|
27803
27902
|
}, _icons: "codicon codicon-plus", "data-testid": "tabs-create-button" }))));
|
|
27804
27903
|
}
|
|
27805
27904
|
render() {
|
|
27806
|
-
return (hAsync("div", { key: '
|
|
27905
|
+
return (hAsync("div", { key: '8c3212b2e1bd09292d666d163c88ad94ef2f59bb', ref: (el) => {
|
|
27807
27906
|
this.tabPanelsElement = el;
|
|
27808
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
27907
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: 'ebbb16b66d9b77f98fe9d2384f83489530cd3e6d', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
27809
27908
|
}
|
|
27810
27909
|
validateAlign(value) {
|
|
27811
27910
|
validateAlign(this, value);
|
|
@@ -28045,7 +28144,7 @@ class KolTextarea {
|
|
|
28045
28144
|
} });
|
|
28046
28145
|
}
|
|
28047
28146
|
render() {
|
|
28048
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28147
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '92d2decb15fa4fa25f86387d6f911e5988f17c12' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '6bfa13c2aae8fa96002903b7c4064bff6868984c', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: '40aa057c2a81472a4db3ac2a5ab69392afce5037' }, this.getTextAreaProps())))));
|
|
28049
28148
|
}
|
|
28050
28149
|
constructor(hostRef) {
|
|
28051
28150
|
registerInstance(this, hostRef);
|
|
@@ -28321,7 +28420,7 @@ class KolToastContainer {
|
|
|
28321
28420
|
}
|
|
28322
28421
|
}
|
|
28323
28422
|
render() {
|
|
28324
|
-
return (hAsync(Host, { key: '
|
|
28423
|
+
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: {
|
|
28325
28424
|
onClick: () => {
|
|
28326
28425
|
void this.closeAll();
|
|
28327
28426
|
},
|
|
@@ -28373,7 +28472,7 @@ class KolToolbar {
|
|
|
28373
28472
|
this._orientation = undefined;
|
|
28374
28473
|
}
|
|
28375
28474
|
render() {
|
|
28376
|
-
return (hAsync("div", { key: '
|
|
28475
|
+
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)));
|
|
28377
28476
|
}
|
|
28378
28477
|
validateLabel(value) {
|
|
28379
28478
|
validateLabel(this, value);
|
|
@@ -28580,7 +28679,7 @@ class KolTooltipWc {
|
|
|
28580
28679
|
this.showOrHideTooltip();
|
|
28581
28680
|
}
|
|
28582
28681
|
render() {
|
|
28583
|
-
return (hAsync(Host, { key: '
|
|
28682
|
+
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 })))));
|
|
28584
28683
|
}
|
|
28585
28684
|
validateBadgeText(value) {
|
|
28586
28685
|
validateBadgeText(this, value);
|
|
@@ -28658,7 +28757,7 @@ class KolTree {
|
|
|
28658
28757
|
this._label = undefined;
|
|
28659
28758
|
}
|
|
28660
28759
|
render() {
|
|
28661
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
28760
|
+
return (hAsync(KolTreeWcTag, { key: '13d3e695605cbf910749ac998731d7d6310b3ed8', _label: this._label }, hAsync("slot", { key: 'b4702460fa7ca8fe8e259cb7b782a8971735a9ef' })));
|
|
28662
28761
|
}
|
|
28663
28762
|
static get style() { return {
|
|
28664
28763
|
default: KolTreeDefaultStyle0
|
|
@@ -28706,7 +28805,7 @@ class KolTreeItem {
|
|
|
28706
28805
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
28707
28806
|
}
|
|
28708
28807
|
render() {
|
|
28709
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
28808
|
+
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' })));
|
|
28710
28809
|
}
|
|
28711
28810
|
static get style() { return {
|
|
28712
28811
|
default: KolTreeItemDefaultStyle0
|
|
@@ -28749,12 +28848,12 @@ class KolTreeItemWc {
|
|
|
28749
28848
|
}
|
|
28750
28849
|
render() {
|
|
28751
28850
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
28752
|
-
return (hAsync(Host, { key: '
|
|
28851
|
+
return (hAsync(Host, { key: 'e0d63b982e56ef662c1420fc9ade69068b8a81ff', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: '7c2d91957ad2e92256d5bc8bcbfa003d830a3645', class: "kol-tree-item", style: {
|
|
28753
28852
|
'--level': `${this.level}`,
|
|
28754
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
28853
|
+
} }, hAsync(KolLinkWcTag, { key: '7207fe34d30d14349d397fbd75ff2f0d16aa7086', class: clsx('kol-tree-item__link', {
|
|
28755
28854
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
28756
28855
|
'kol-tree-item__link--active': _active,
|
|
28757
|
-
}), _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: '
|
|
28856
|
+
}), _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' })))));
|
|
28758
28857
|
}
|
|
28759
28858
|
validateActive(value) {
|
|
28760
28859
|
validateActive(this, value || false);
|
|
@@ -28859,7 +28958,7 @@ class KolTreeWc {
|
|
|
28859
28958
|
validateLabel(this, value);
|
|
28860
28959
|
}
|
|
28861
28960
|
render() {
|
|
28862
|
-
return (hAsync(Host, { key: '
|
|
28961
|
+
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' })))));
|
|
28863
28962
|
}
|
|
28864
28963
|
static isTreeItem(element) {
|
|
28865
28964
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -29057,7 +29156,7 @@ class KolVersion {
|
|
|
29057
29156
|
};
|
|
29058
29157
|
}
|
|
29059
29158
|
render() {
|
|
29060
|
-
return (hAsync(Host, { key: '
|
|
29159
|
+
return (hAsync(Host, { key: '3304cd937945785a92d3cf9a25cd70065f2ac5dd', class: "kol-version" }, hAsync(KolBadgeTag, { key: '155a2fbdb3ce12a1800b62745a2f9683585c9794', _color: "#bec5c9", _icons: {
|
|
29061
29160
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
29062
29161
|
}, _label: this.state._label })));
|
|
29063
29162
|
}
|
|
@@ -29140,6 +29239,7 @@ registerComponents([
|
|
|
29140
29239
|
KolModal,
|
|
29141
29240
|
KolNav,
|
|
29142
29241
|
KolPagination,
|
|
29242
|
+
KolPaginationWc,
|
|
29143
29243
|
KolPopover,
|
|
29144
29244
|
KolPopoverButton$1,
|
|
29145
29245
|
KolPopoverButton,
|