@public-ui/hydrate 3.0.2-f97556ada8a20e9abe2dbb519562bad234f7191b.0 → 3.0.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/index.js +299 -178
- package/dist/index.mjs +299 -178
- 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
|
};
|
|
@@ -4282,13 +4294,31 @@ const validateMsg = (component, value) => {
|
|
|
4282
4294
|
}
|
|
4283
4295
|
catch (e) {
|
|
4284
4296
|
}
|
|
4285
|
-
watchValidator(component, `_msg`, (value) =>
|
|
4297
|
+
watchValidator(component, `_msg`, (value) => {
|
|
4298
|
+
if (value === undefined) {
|
|
4299
|
+
return true;
|
|
4300
|
+
}
|
|
4301
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
4302
|
+
return true;
|
|
4303
|
+
}
|
|
4304
|
+
if (isObject$2(value) && value !== null) {
|
|
4305
|
+
const objValue = value;
|
|
4306
|
+
return isString$3(objValue._description, 1);
|
|
4307
|
+
}
|
|
4308
|
+
return false;
|
|
4309
|
+
}, new Set(['MsgPropType', 'string']), value);
|
|
4286
4310
|
});
|
|
4287
4311
|
};
|
|
4288
4312
|
function convertMsgToInternMsg(msg) {
|
|
4289
4313
|
if (!msg) {
|
|
4290
4314
|
return undefined;
|
|
4291
4315
|
}
|
|
4316
|
+
if (typeof msg === 'string') {
|
|
4317
|
+
return {
|
|
4318
|
+
description: msg,
|
|
4319
|
+
type: 'error',
|
|
4320
|
+
};
|
|
4321
|
+
}
|
|
4292
4322
|
return transformObjectProperties(msg);
|
|
4293
4323
|
}
|
|
4294
4324
|
function checkHasMsg(msg, touched) {
|
|
@@ -4510,7 +4540,7 @@ let KolInputCheckboxTag = 'kol-input-checkbox';
|
|
|
4510
4540
|
let KolInputNumberTag = 'kol-input-number';
|
|
4511
4541
|
let KolLinkTag = 'kol-link';
|
|
4512
4542
|
let KolLinkWcTag = 'kol-link-wc';
|
|
4513
|
-
let
|
|
4543
|
+
let KolPaginationWcTag = 'kol-pagination-wc';
|
|
4514
4544
|
let KolPopoverWcTag = 'kol-popover-wc';
|
|
4515
4545
|
let KolPopoverButtonWcTag = 'kol-popover-button-wc';
|
|
4516
4546
|
let KolSelectTag = 'kol-select';
|
|
@@ -4617,18 +4647,14 @@ function isValidHeadingLevel(level) {
|
|
|
4617
4647
|
function getHeadlineTag(level) {
|
|
4618
4648
|
return isValidHeadingLevel(level) ? `h${level}` : 'strong';
|
|
4619
4649
|
}
|
|
4620
|
-
function getSubHeadlineTag(level) {
|
|
4621
|
-
return level === 1 ? 'span' : getHeadlineTag(level);
|
|
4622
|
-
}
|
|
4623
4650
|
const KolHeadlineFc = (_a, children) => {
|
|
4624
4651
|
var { class: classNames, level = MIN_HEADING_LEVEL } = _a, other = __rest(_a, ["class", "level"]);
|
|
4625
4652
|
const HeadlineTag = getHeadlineTag(level);
|
|
4626
4653
|
return (hAsync(HeadlineTag, Object.assign({ class: clsx('kol-headline', `kol-headline--${HeadlineTag}`, classNames) }, other), children));
|
|
4627
4654
|
};
|
|
4628
4655
|
const KolSecondaryHeadlineFc = (_a, children) => {
|
|
4629
|
-
var { class: classNames
|
|
4630
|
-
|
|
4631
|
-
return (hAsync(HeadlineTag, Object.assign({ class: clsx('kol-headline kol-headline--group kol-headline--secondary', classNames) }, other), children));
|
|
4656
|
+
var { class: classNames } = _a, other = __rest(_a, ["class"]);
|
|
4657
|
+
return (hAsync("p", Object.assign({ class: clsx('kol-headline kol-headline--group kol-headline--secondary', classNames) }, other), children));
|
|
4632
4658
|
};
|
|
4633
4659
|
const KolHeadingFc = (_a, children) => {
|
|
4634
4660
|
var { secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {} } = _a, other = __rest(_a, ["secondaryHeadline", "level", "class", "HeadingGroupProps", "SecondaryHeadlineProps"]);
|
|
@@ -4640,7 +4666,7 @@ const KolHeadingFc = (_a, children) => {
|
|
|
4640
4666
|
const headlineGroupProps = Object.assign({ class: clsx('kol-heading-group', groupClassNames) }, groupOthers);
|
|
4641
4667
|
return (hAsync("hgroup", Object.assign({}, headlineGroupProps),
|
|
4642
4668
|
hAsync(KolHeadlineFc, Object.assign({ class: clsx(classNames, 'kol-headline--group', 'kol-headline--primary') }, headlineProps), children),
|
|
4643
|
-
hAsync(KolSecondaryHeadlineFc, Object.assign({
|
|
4669
|
+
hAsync(KolSecondaryHeadlineFc, Object.assign({}, SecondaryHeadlineProps), secondaryHeadline)));
|
|
4644
4670
|
};
|
|
4645
4671
|
|
|
4646
4672
|
const KolCollapsibleFc = (props, children) => {
|
|
@@ -5134,13 +5160,28 @@ const AlertIcon = ({ type, label }) => {
|
|
|
5134
5160
|
}
|
|
5135
5161
|
};
|
|
5136
5162
|
|
|
5163
|
+
const vibrateOnError = () => {
|
|
5164
|
+
if (typeof navigator === 'undefined' || typeof navigator.vibrate !== 'function') {
|
|
5165
|
+
return;
|
|
5166
|
+
}
|
|
5167
|
+
const ua = navigator.userActivation;
|
|
5168
|
+
const hasGesture = (ua === null || ua === void 0 ? void 0 : ua.isActive) || (ua === null || ua === void 0 ? void 0 : ua.hasBeenActive);
|
|
5169
|
+
if (!hasGesture) {
|
|
5170
|
+
return;
|
|
5171
|
+
}
|
|
5172
|
+
if (!matchMedia('(any-pointer: coarse)').matches) {
|
|
5173
|
+
return;
|
|
5174
|
+
}
|
|
5175
|
+
try {
|
|
5176
|
+
navigator.vibrate([100, 75, 100, 75, 100]);
|
|
5177
|
+
}
|
|
5178
|
+
catch (_a) {
|
|
5179
|
+
}
|
|
5180
|
+
};
|
|
5137
5181
|
const KolAlertFc = (props, children) => {
|
|
5138
|
-
var _a, _b;
|
|
5139
5182
|
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
5183
|
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
|
-
}
|
|
5184
|
+
vibrateOnError();
|
|
5144
5185
|
setTimeout(() => {
|
|
5145
5186
|
onAlertTimeout === null || onAlertTimeout === void 0 ? void 0 : onAlertTimeout();
|
|
5146
5187
|
}, 10000);
|
|
@@ -5154,7 +5195,7 @@ const KolAlertFc = (props, children) => {
|
|
|
5154
5195
|
[`h${level}`]: true,
|
|
5155
5196
|
});
|
|
5156
5197
|
const rootProps = Object.assign({ class: clsx(classNames, BEM_CLASS_ROOT), role: alert ? (type === 'error' ? 'alert' : 'status') : undefined }, other);
|
|
5157
|
-
return (hAsync("div", Object.assign({}, rootProps),
|
|
5198
|
+
return (hAsync("div", Object.assign({}, rootProps, { "data-testid": "alert" }),
|
|
5158
5199
|
hAsync("div", { class: "kol-alert__container" },
|
|
5159
5200
|
hAsync(AlertIcon, { label: label, type: type }),
|
|
5160
5201
|
hAsync("div", { class: "kol-alert__container-content" },
|
|
@@ -5205,7 +5246,7 @@ class KolAlertWc {
|
|
|
5205
5246
|
onCloserClick: this.close,
|
|
5206
5247
|
onAlertTimeout: this.handleAlertTimeout,
|
|
5207
5248
|
};
|
|
5208
|
-
return (hAsync(KolAlertFc, Object.assign({ key: '
|
|
5249
|
+
return (hAsync(KolAlertFc, Object.assign({ key: '2b0d74465270eef8d8d6f3da8c04377f862e8630' }, props), hAsync("slot", { key: '55e8ad62be763c26af16813e5ebfac2ce1f63b54' })));
|
|
5209
5250
|
}
|
|
5210
5251
|
validateAlert(value) {
|
|
5211
5252
|
watchBoolean(this, '_alert', value);
|
|
@@ -16605,25 +16646,28 @@ class KolButtonWc {
|
|
|
16605
16646
|
var _a;
|
|
16606
16647
|
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16607
16648
|
}
|
|
16649
|
+
async hideTooltip() {
|
|
16650
|
+
var _a;
|
|
16651
|
+
void ((_a = this.tooltipRef) === null || _a === void 0 ? void 0 : _a.hideTooltip());
|
|
16652
|
+
}
|
|
16608
16653
|
render() {
|
|
16609
16654
|
var _a, _b;
|
|
16610
16655
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
16611
16656
|
const hasAriaDescription = Boolean((_b = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim()) === null || _b === void 0 ? void 0 : _b.length);
|
|
16612
16657
|
const badgeText = this.state._accessKey || this.state._shortKey;
|
|
16613
|
-
|
|
16614
|
-
|
|
16658
|
+
const isDisabled = this.state._disabled === true;
|
|
16659
|
+
const hideLabel = this.state._hideLabel === true;
|
|
16660
|
+
return (hAsync(Host, { key: '6a9f8d7a855452a4b414648a221df6cf5dcfa749' }, hAsync("button", { key: '3f09ae09eb8c046026337886dafbc625b76e8394', ref: (ref) => (this.buttonRef = ref), accessKey: this.state._accessKey || undefined, "aria-controls": this.state._ariaControls, "aria-describedby": hasAriaDescription ? this.internalDescriptionById : undefined, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-haspopup": this._ariaHasPopup, "aria-label": hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: clsx('kol-button', {
|
|
16661
|
+
'kol-button--disabled': isDisabled,
|
|
16615
16662
|
[`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
|
|
16616
16663
|
[`kol-button--${this.state._linkVariant}`]: this.state._linkVariant,
|
|
16617
|
-
'kol-button--hide-label':
|
|
16664
|
+
'kol-button--hide-label': hideLabel,
|
|
16618
16665
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
16619
|
-
}), disabled:
|
|
16666
|
+
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: 'a1a9eb0f603577289872b455d2b829dc16059a5d', class: "kol-button__text", badgeText: badgeText, icons: this.state._icons, hideLabel: hideLabel, label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: '3736fd6e4afbcd32e5df4305bbac7cc50e42804b', name: "expert", slot: "expert" }))), hAsync(KolTooltipWcTag, { key: 'f44c22709f4a8eb6946c036abd05edd6158cbcb0', ref: (ref) => (this.tooltipRef = ref), "aria-hidden": "true", hidden: hasExpertSlot || !hideLabel, class: "kol-button__tooltip", _badgeText: badgeText, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' }), hasAriaDescription && (hAsync("span", { key: 'babe6def97a72c16f9a21d595d02cd74f4450d68', class: "visually-hidden", id: this.internalDescriptionById }, this.state._ariaDescription))));
|
|
16620
16667
|
}
|
|
16621
16668
|
constructor(hostRef) {
|
|
16622
16669
|
registerInstance(this, hostRef);
|
|
16623
16670
|
this.internalDescriptionById = nonce();
|
|
16624
|
-
this.catchRef = (ref) => {
|
|
16625
|
-
this.buttonRef = ref;
|
|
16626
|
-
};
|
|
16627
16671
|
this.onClick = (event) => {
|
|
16628
16672
|
var _a, _b;
|
|
16629
16673
|
if (this.state._type === 'submit') {
|
|
@@ -16837,7 +16881,8 @@ class KolButtonWc {
|
|
|
16837
16881
|
"_value": [8],
|
|
16838
16882
|
"_buttonVariant": [1, "_button-variant"],
|
|
16839
16883
|
"state": [32],
|
|
16840
|
-
"kolFocus": [64]
|
|
16884
|
+
"kolFocus": [64],
|
|
16885
|
+
"hideTooltip": [64]
|
|
16841
16886
|
},
|
|
16842
16887
|
"$listeners$": undefined,
|
|
16843
16888
|
"$lazyBundleId$": "-",
|
|
@@ -16902,7 +16947,7 @@ class KolCard {
|
|
|
16902
16947
|
};
|
|
16903
16948
|
}
|
|
16904
16949
|
render() {
|
|
16905
|
-
return (hAsync("div", { key: '
|
|
16950
|
+
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
16951
|
left: {
|
|
16907
16952
|
icon: 'codicon codicon-close',
|
|
16908
16953
|
},
|
|
@@ -17232,25 +17277,10 @@ class ComboboxController extends InputIconController {
|
|
|
17232
17277
|
}
|
|
17233
17278
|
}
|
|
17234
17279
|
|
|
17235
|
-
const getRenderStates$1 = (state) => {
|
|
17236
|
-
var _a;
|
|
17237
|
-
const isMessageValid = ((_a = state._msg) === null || _a === void 0 ? void 0 : _a._type) === 'error';
|
|
17238
|
-
const hasMsg = isMessageValid && state._touched === true;
|
|
17239
|
-
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
17240
|
-
const ariaDescribedBy = [];
|
|
17241
|
-
if (hasMsg === true) {
|
|
17242
|
-
ariaDescribedBy.push(`${state._id}-error`);
|
|
17243
|
-
}
|
|
17244
|
-
if (hasHint === true) {
|
|
17245
|
-
ariaDescribedBy.push(`${state._id}-hint`);
|
|
17246
|
-
}
|
|
17247
|
-
return { hasMsg, hasHint, ariaDescribedBy };
|
|
17248
|
-
};
|
|
17249
|
-
|
|
17250
17280
|
const getRenderStates = (state) => {
|
|
17251
|
-
|
|
17252
|
-
const hasMessage = Boolean((
|
|
17253
|
-
const isMessageValidError = (
|
|
17281
|
+
const internMsg = convertMsgToInternMsg(state._msg);
|
|
17282
|
+
const hasMessage = Boolean((internMsg === null || internMsg === void 0 ? void 0 : internMsg.description) && internMsg.description.length > 0);
|
|
17283
|
+
const isMessageValidError = (internMsg === null || internMsg === void 0 ? void 0 : internMsg.type) === 'error' && hasMessage;
|
|
17254
17284
|
const hasError = isMessageValidError && state._touched === true;
|
|
17255
17285
|
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
17256
17286
|
const ariaDescribedBy = [];
|
|
@@ -17387,8 +17417,15 @@ const CustomSuggestionsToggleFc = ({ onClick, disabled }) => {
|
|
|
17387
17417
|
hAsync(KolIconTag, { _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') })));
|
|
17388
17418
|
};
|
|
17389
17419
|
|
|
17390
|
-
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {
|
|
17391
|
-
|
|
17420
|
+
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option, searchTerm }) => {
|
|
17421
|
+
const highlightSearchTerm = (text, searchTerm) => {
|
|
17422
|
+
if (!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()))
|
|
17423
|
+
return text;
|
|
17424
|
+
const regex = new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
|
|
17425
|
+
const parts = text.split(regex);
|
|
17426
|
+
return parts.map((part, partIndex) => (regex.test(part) ? hAsync("mark", { key: partIndex }, part) : part));
|
|
17427
|
+
};
|
|
17428
|
+
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
17429
|
};
|
|
17393
17430
|
|
|
17394
17431
|
const CustomSuggestionsOptionsGroupFc = ({ blockSuggestionMouseOver, onKeyDown, style }, children) => {
|
|
@@ -17484,8 +17521,9 @@ class KolCombobox {
|
|
|
17484
17521
|
};
|
|
17485
17522
|
}
|
|
17486
17523
|
getInputProps() {
|
|
17487
|
-
const { ariaDescribedBy } = getRenderStates
|
|
17488
|
-
|
|
17524
|
+
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
17525
|
+
const isDisabled = this.state._disabled === true;
|
|
17526
|
+
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, class: 'kol-combobox__input', type: 'text', role: 'combobox', 'aria-autocomplete': 'both', 'aria-expanded': this._isOpen ? 'true' : 'false', 'aria-controls': 'listbox', 'aria-describedby': ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, 'aria-label': this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, 'aria-labelledby': this.state._id, 'aria-activedescendant': this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, value: this.state._value, accessKey: this.state._accessKey, autocapitalize: 'off', autocorrect: 'off', disabled: isDisabled, customSuggestions: true, id: this.state._id, name: this.state._name, required: this.state._required }, this.controller.onFacade), { onFocus: (event) => {
|
|
17489
17527
|
this.controller.onFacade.onFocus(event);
|
|
17490
17528
|
this.inputHasFocus = true;
|
|
17491
17529
|
}, onBlur: (event) => {
|
|
@@ -17494,9 +17532,10 @@ class KolCombobox {
|
|
|
17494
17532
|
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder });
|
|
17495
17533
|
}
|
|
17496
17534
|
render() {
|
|
17497
|
-
|
|
17535
|
+
const isDisabled = this.state._disabled === true;
|
|
17536
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '9f89099d13288a5cd29d465997f981af87f3ea78' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'a1a36eba79cd2806183335a2508b6cb7b0ba30d9', state: this.state }, hAsync("div", { key: 'e6728f39b4110f36660a5a4ff03675633182f6cd', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: '2862ab237a6f51285017f1600fec89b42c6af92e' }, this.getInputProps())), hAsync(CustomSuggestionsToggleFc, { key: '143ca365fb53ba8c696571009e752115a25e6c44', onClick: this.toggleListbox.bind(this), disabled: isDisabled })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'c72050779519042f4e1749e63af8637b46ba98be', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
17498
17537
|
this._filteredSuggestions.length > 0 &&
|
|
17499
|
-
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, ref: (el) => {
|
|
17538
|
+
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
17500
17539
|
if (el)
|
|
17501
17540
|
this.refSuggestions[index] = el;
|
|
17502
17541
|
}, selected: this.state._value === option, onClick: () => {
|
|
@@ -17612,7 +17651,8 @@ class KolCombobox {
|
|
|
17612
17651
|
this._focusedOptionIndex = -1;
|
|
17613
17652
|
this.toggleListbox = () => {
|
|
17614
17653
|
var _a;
|
|
17615
|
-
|
|
17654
|
+
const isDisabled = this.state._disabled === true;
|
|
17655
|
+
if (isDisabled) {
|
|
17616
17656
|
this._isOpen = false;
|
|
17617
17657
|
}
|
|
17618
17658
|
else {
|
|
@@ -18201,7 +18241,7 @@ class KolForm {
|
|
|
18201
18241
|
}; }
|
|
18202
18242
|
}
|
|
18203
18243
|
|
|
18204
|
-
const defaultStyleCss$z = "/*\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}";
|
|
18244
|
+
const defaultStyleCss$z = "/*\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.kol-headline--secondary {\n margin: 0;\n}";
|
|
18205
18245
|
var KolHeadingDefaultStyle0 = defaultStyleCss$z;
|
|
18206
18246
|
|
|
18207
18247
|
class KolHeading {
|
|
@@ -18330,15 +18370,13 @@ class KolImage {
|
|
|
18330
18370
|
};
|
|
18331
18371
|
}
|
|
18332
18372
|
validateAlt(value) {
|
|
18333
|
-
|
|
18334
|
-
required: true,
|
|
18335
|
-
});
|
|
18373
|
+
validateAlt(this, value, { required: true });
|
|
18336
18374
|
}
|
|
18337
18375
|
validateLoading(value) {
|
|
18338
18376
|
validateLoading(this, value);
|
|
18339
18377
|
}
|
|
18340
18378
|
validateSizes(value) {
|
|
18341
|
-
|
|
18379
|
+
validateImageSizes(this, value);
|
|
18342
18380
|
}
|
|
18343
18381
|
validateSrc(value) {
|
|
18344
18382
|
validateImageSource(this, value, {
|
|
@@ -18346,7 +18384,7 @@ class KolImage {
|
|
|
18346
18384
|
});
|
|
18347
18385
|
}
|
|
18348
18386
|
validateSrcset(value) {
|
|
18349
|
-
|
|
18387
|
+
validateImageSrcset(this, value);
|
|
18350
18388
|
}
|
|
18351
18389
|
componentWillLoad() {
|
|
18352
18390
|
this.validateAlt(this._alt);
|
|
@@ -18356,7 +18394,7 @@ class KolImage {
|
|
|
18356
18394
|
this.validateSrcset(this._srcset);
|
|
18357
18395
|
}
|
|
18358
18396
|
render() {
|
|
18359
|
-
return (hAsync("img", { key: '
|
|
18397
|
+
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
18398
|
}
|
|
18361
18399
|
static get watchers() { return {
|
|
18362
18400
|
"_alt": ["validateAlt"],
|
|
@@ -22275,6 +22313,7 @@ class KolNav {
|
|
|
22275
22313
|
}), 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
22314
|
}
|
|
22277
22315
|
initializeExpandedChildren() {
|
|
22316
|
+
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
22278
22317
|
const handleBranch = (branch) => {
|
|
22279
22318
|
if (branch._active) {
|
|
22280
22319
|
if (branch._children) {
|
|
@@ -22303,9 +22342,9 @@ class KolNav {
|
|
|
22303
22342
|
const collapsible = this.state._collapsible === true;
|
|
22304
22343
|
const hideLabel = this.state._hideLabel === true;
|
|
22305
22344
|
const orientation = this.state._orientation;
|
|
22306
|
-
return (hAsync("div", { key: '
|
|
22345
|
+
return (hAsync("div", { key: '1768f2d1d6794f07607ad8a9f3953a4f17d3cd06', class: clsx('kol-nav', `kol-nav--${orientation}`, {
|
|
22307
22346
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
22308
|
-
}) }, hAsync("nav", { key: '
|
|
22347
|
+
}) }, 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
22348
|
onClick: () => {
|
|
22310
22349
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
22311
22350
|
},
|
|
@@ -22336,6 +22375,7 @@ class KolNav {
|
|
|
22336
22375
|
validateLinks(value) {
|
|
22337
22376
|
watchNavLinks('KolNav', this, value);
|
|
22338
22377
|
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
22378
|
+
this.initializeExpandedChildren();
|
|
22339
22379
|
}
|
|
22340
22380
|
validateOrientation(value) {
|
|
22341
22381
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -22386,9 +22426,52 @@ class KolNav {
|
|
|
22386
22426
|
}; }
|
|
22387
22427
|
}
|
|
22388
22428
|
|
|
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
|
|
22429
|
+
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
22430
|
var KolPaginationDefaultStyle0 = defaultStyleCss$h;
|
|
22391
22431
|
|
|
22432
|
+
class KolPagination {
|
|
22433
|
+
constructor(hostRef) {
|
|
22434
|
+
registerInstance(this, hostRef);
|
|
22435
|
+
this._boundaryCount = 1;
|
|
22436
|
+
this._customClass = undefined;
|
|
22437
|
+
this._label = undefined;
|
|
22438
|
+
this._hasButtons = true;
|
|
22439
|
+
this._page = undefined;
|
|
22440
|
+
this._pageSize = 1;
|
|
22441
|
+
this._pageSizeOptions = [];
|
|
22442
|
+
this._on = undefined;
|
|
22443
|
+
this._siblingCount = 1;
|
|
22444
|
+
this._tooltipAlign = 'top';
|
|
22445
|
+
this._max = undefined;
|
|
22446
|
+
}
|
|
22447
|
+
render() {
|
|
22448
|
+
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 }));
|
|
22449
|
+
}
|
|
22450
|
+
static get style() { return {
|
|
22451
|
+
default: KolPaginationDefaultStyle0
|
|
22452
|
+
}; }
|
|
22453
|
+
static get cmpMeta() { return {
|
|
22454
|
+
"$flags$": 41,
|
|
22455
|
+
"$tagName$": "kol-pagination",
|
|
22456
|
+
"$members$": {
|
|
22457
|
+
"_boundaryCount": [2, "_boundary-count"],
|
|
22458
|
+
"_customClass": [1, "_custom-class"],
|
|
22459
|
+
"_label": [1],
|
|
22460
|
+
"_hasButtons": [8, "_has-buttons"],
|
|
22461
|
+
"_page": [2],
|
|
22462
|
+
"_pageSize": [1026, "_page-size"],
|
|
22463
|
+
"_pageSizeOptions": [1, "_page-size-options"],
|
|
22464
|
+
"_on": [16],
|
|
22465
|
+
"_siblingCount": [2, "_sibling-count"],
|
|
22466
|
+
"_tooltipAlign": [1, "_tooltip-align"],
|
|
22467
|
+
"_max": [2]
|
|
22468
|
+
},
|
|
22469
|
+
"$listeners$": undefined,
|
|
22470
|
+
"$lazyBundleId$": "-",
|
|
22471
|
+
"$attrsToReflect$": []
|
|
22472
|
+
}; }
|
|
22473
|
+
}
|
|
22474
|
+
|
|
22392
22475
|
const leftDoubleArrowIcon = {
|
|
22393
22476
|
left: 'codicon codicon-debug-reverse-continue',
|
|
22394
22477
|
};
|
|
@@ -22412,7 +22495,7 @@ const NUMBER_FORMATTER = new Intl.NumberFormat(userLanguage, {
|
|
|
22412
22495
|
minimumFractionDigits: 0,
|
|
22413
22496
|
maximumFractionDigits: 0,
|
|
22414
22497
|
});
|
|
22415
|
-
class
|
|
22498
|
+
class KolPaginationWc {
|
|
22416
22499
|
constructor(hostRef) {
|
|
22417
22500
|
registerInstance(this, hostRef);
|
|
22418
22501
|
this.nonce = nonce();
|
|
@@ -22718,12 +22801,9 @@ class KolPagination {
|
|
|
22718
22801
|
"_max": ["validateMax"],
|
|
22719
22802
|
"_tooltipAlign": ["validateTooltipAlign"]
|
|
22720
22803
|
}; }
|
|
22721
|
-
static get style() { return {
|
|
22722
|
-
default: KolPaginationDefaultStyle0
|
|
22723
|
-
}; }
|
|
22724
22804
|
static get cmpMeta() { return {
|
|
22725
|
-
"$flags$":
|
|
22726
|
-
"$tagName$": "kol-pagination",
|
|
22805
|
+
"$flags$": 0,
|
|
22806
|
+
"$tagName$": "kol-pagination-wc",
|
|
22727
22807
|
"$members$": {
|
|
22728
22808
|
"_boundaryCount": [2, "_boundary-count"],
|
|
22729
22809
|
"_customClass": [1, "_custom-class"],
|
|
@@ -22788,8 +22868,9 @@ function getOppositeAxis(axis) {
|
|
|
22788
22868
|
function getAxisLength(axis) {
|
|
22789
22869
|
return axis === 'y' ? 'height' : 'width';
|
|
22790
22870
|
}
|
|
22871
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
22791
22872
|
function getSideAxis(placement) {
|
|
22792
|
-
return
|
|
22873
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
22793
22874
|
}
|
|
22794
22875
|
function getAlignmentAxis(placement) {
|
|
22795
22876
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -22814,19 +22895,19 @@ function getExpandedPlacements(placement) {
|
|
|
22814
22895
|
function getOppositeAlignmentPlacement(placement) {
|
|
22815
22896
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
22816
22897
|
}
|
|
22898
|
+
const lrPlacement = ['left', 'right'];
|
|
22899
|
+
const rlPlacement = ['right', 'left'];
|
|
22900
|
+
const tbPlacement = ['top', 'bottom'];
|
|
22901
|
+
const btPlacement = ['bottom', 'top'];
|
|
22817
22902
|
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
22903
|
switch (side) {
|
|
22823
22904
|
case 'top':
|
|
22824
22905
|
case 'bottom':
|
|
22825
|
-
if (rtl) return isStart ?
|
|
22826
|
-
return isStart ?
|
|
22906
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
22907
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
22827
22908
|
case 'left':
|
|
22828
22909
|
case 'right':
|
|
22829
|
-
return isStart ?
|
|
22910
|
+
return isStart ? tbPlacement : btPlacement;
|
|
22830
22911
|
default:
|
|
22831
22912
|
return [];
|
|
22832
22913
|
}
|
|
@@ -23610,6 +23691,8 @@ const inline = function (options) {
|
|
|
23610
23691
|
};
|
|
23611
23692
|
};
|
|
23612
23693
|
|
|
23694
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
23695
|
+
|
|
23613
23696
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
23614
23697
|
// Derivable.
|
|
23615
23698
|
|
|
@@ -23623,7 +23706,7 @@ async function convertValueToCoords(state, options) {
|
|
|
23623
23706
|
const side = getSide(placement);
|
|
23624
23707
|
const alignment = getAlignment(placement);
|
|
23625
23708
|
const isVertical = getSideAxis(placement) === 'y';
|
|
23626
|
-
const mainAxisMulti =
|
|
23709
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
23627
23710
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
23628
23711
|
const rawValue = evaluate(options, state);
|
|
23629
23712
|
|
|
@@ -23823,7 +23906,7 @@ const limitShift = function (options) {
|
|
|
23823
23906
|
if (checkCrossAxis) {
|
|
23824
23907
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
23825
23908
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
23826
|
-
const isOriginSide =
|
|
23909
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
23827
23910
|
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
23911
|
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
23912
|
if (crossAxisCoord < limitMin) {
|
|
@@ -23968,6 +24051,7 @@ function isShadowRoot(value) {
|
|
|
23968
24051
|
}
|
|
23969
24052
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
23970
24053
|
}
|
|
24054
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
23971
24055
|
function isOverflowElement(element) {
|
|
23972
24056
|
const {
|
|
23973
24057
|
overflow,
|
|
@@ -23975,27 +24059,32 @@ function isOverflowElement(element) {
|
|
|
23975
24059
|
overflowY,
|
|
23976
24060
|
display
|
|
23977
24061
|
} = getComputedStyle(element);
|
|
23978
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
24062
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
23979
24063
|
}
|
|
24064
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
23980
24065
|
function isTableElement(element) {
|
|
23981
|
-
return
|
|
24066
|
+
return tableElements.has(getNodeName(element));
|
|
23982
24067
|
}
|
|
24068
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
23983
24069
|
function isTopLayer(element) {
|
|
23984
|
-
return
|
|
24070
|
+
return topLayerSelectors.some(selector => {
|
|
23985
24071
|
try {
|
|
23986
24072
|
return element.matches(selector);
|
|
23987
|
-
} catch (
|
|
24073
|
+
} catch (_e) {
|
|
23988
24074
|
return false;
|
|
23989
24075
|
}
|
|
23990
24076
|
});
|
|
23991
24077
|
}
|
|
24078
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
24079
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
24080
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
23992
24081
|
function isContainingBlock(elementOrCss) {
|
|
23993
24082
|
const webkit = isWebKit();
|
|
23994
24083
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
23995
24084
|
|
|
23996
24085
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
23997
24086
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
23998
|
-
return
|
|
24087
|
+
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
24088
|
}
|
|
24000
24089
|
function getContainingBlock(element) {
|
|
24001
24090
|
let currentNode = getParentNode(element);
|
|
@@ -24013,8 +24102,9 @@ function isWebKit() {
|
|
|
24013
24102
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
24014
24103
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
24015
24104
|
}
|
|
24105
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
24016
24106
|
function isLastTraversableNode(node) {
|
|
24017
|
-
return
|
|
24107
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
24018
24108
|
}
|
|
24019
24109
|
function getComputedStyle(element) {
|
|
24020
24110
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -24932,7 +25022,7 @@ class KolPopover {
|
|
|
24932
25022
|
});
|
|
24933
25023
|
}
|
|
24934
25024
|
render() {
|
|
24935
|
-
return (hAsync(Host, { key: '
|
|
25025
|
+
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
25026
|
}
|
|
24937
25027
|
validateAlign(value) {
|
|
24938
25028
|
validateAlign(this, value);
|
|
@@ -24969,7 +25059,7 @@ class KolPopover {
|
|
|
24969
25059
|
}; }
|
|
24970
25060
|
}
|
|
24971
25061
|
|
|
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:
|
|
25062
|
+
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
25063
|
var KolPopoverButtonDefaultStyle0 = defaultStyleCss$g;
|
|
24974
25064
|
|
|
24975
25065
|
class KolPopoverButton$1 {
|
|
@@ -25002,7 +25092,7 @@ class KolPopoverButton$1 {
|
|
|
25002
25092
|
void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
25003
25093
|
}
|
|
25004
25094
|
render() {
|
|
25005
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
25095
|
+
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
25096
|
}
|
|
25007
25097
|
static get style() { return {
|
|
25008
25098
|
default: KolPopoverButtonDefaultStyle0
|
|
@@ -25076,14 +25166,18 @@ class KolPopoverButton {
|
|
|
25076
25166
|
void ((_a = this.refPopover) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
25077
25167
|
}
|
|
25078
25168
|
handleBeforeToggle(event) {
|
|
25169
|
+
var _a;
|
|
25079
25170
|
if (event.newState === 'closed') {
|
|
25080
25171
|
this.justClosed = true;
|
|
25081
25172
|
setTimeout(() => {
|
|
25082
25173
|
this.justClosed = false;
|
|
25083
25174
|
}, 10);
|
|
25084
25175
|
}
|
|
25085
|
-
else
|
|
25086
|
-
this.refPopover
|
|
25176
|
+
else {
|
|
25177
|
+
if (this.refPopover) {
|
|
25178
|
+
this.refPopover.style.visibility = 'hidden';
|
|
25179
|
+
}
|
|
25180
|
+
void ((_a = this.refButton) === null || _a === void 0 ? void 0 : _a.hideTooltip());
|
|
25087
25181
|
}
|
|
25088
25182
|
}
|
|
25089
25183
|
alignPopover() {
|
|
@@ -25127,7 +25221,7 @@ class KolPopoverButton {
|
|
|
25127
25221
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
25128
25222
|
}
|
|
25129
25223
|
render() {
|
|
25130
|
-
return (hAsync("div", { key: '
|
|
25224
|
+
return (hAsync("div", { key: 'ce2a09abe5795087e57d9b31917aace9f3588787', class: "kol-popover-button" }, hAsync(KolButtonWcTag, { key: '78ff052dd94da52e982894dd12e18e3cbbecf8e9', _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: '4f23e6cbf0560b8c009e735dd595fc938639446b', name: "expert", slot: "expert" })), hAsync("div", { key: '393e9b2cfa9e258db6a502d375d1d87283ddf090', ref: (element) => (this.refPopover = element), "data-testid": "popover-content", popover: "auto", id: "popover", class: "kol-popover-button__popover" }, hAsync("slot", { key: 'cf20c5da537291c96882eeb5720527704ca421c8' }))));
|
|
25131
25225
|
}
|
|
25132
25226
|
validatePopoverAlign(value) {
|
|
25133
25227
|
validatePopoverAlign(this, value);
|
|
@@ -25184,7 +25278,7 @@ const CycleSvg = ({ state }) => {
|
|
|
25184
25278
|
};
|
|
25185
25279
|
const BarSvg = ({ state }) => {
|
|
25186
25280
|
const percentage = 100 * (state._value / state._max);
|
|
25187
|
-
return (hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "12", overflow: "visible" }, hAsync("rect", { class: "kol-progress__bar-background", x: "1", y: "1", height: "11", rx: "5", fill: "currentColor", stroke: "currentColor", "stroke-width": "3",
|
|
25281
|
+
return (hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "12", overflow: "visible" }, hAsync("rect", { class: "kol-progress__bar-background", x: "1", y: "1", height: "11", rx: "5", fill: "currentColor", stroke: "currentColor", "stroke-width": "3", width: "100%" }), hAsync("rect", { class: "kol-progress__bar-border", x: "1", y: "1", height: "11", rx: "5", fill: "currentColor", stroke: "currentColor", "stroke-width": "1", width: "100%" }), hAsync("rect", { class: "kol-progress__bar-progress", x: "3", y: "3", height: "7", rx: "3.5", fill: "currentColor", stroke: "currentColor", "stroke-width": "3", style: { width: `calc(${percentage}% - 4px)` } })));
|
|
25188
25282
|
};
|
|
25189
25283
|
const createProgressSVG = (state) => {
|
|
25190
25284
|
switch (state._variant) {
|
|
@@ -25216,10 +25310,10 @@ class KolProgress {
|
|
|
25216
25310
|
const isPercentage = this.state._unit === '%';
|
|
25217
25311
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}` : this.state._liveValue;
|
|
25218
25312
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
25219
|
-
return (hAsync("div", { key: '
|
|
25313
|
+
return (hAsync("div", { key: '821bf1d4fece816591e8b567cf2026b44eb4b278', class: "kol-progress" }, hAsync("div", { key: '59bcae97c107e7b369ceb28a96b70215cfff498b', "aria-hidden": "true", class: {
|
|
25220
25314
|
'kol-progress__cycle': this.state._variant === 'cycle',
|
|
25221
25315
|
'kol-progress__bar': this.state._variant === 'bar',
|
|
25222
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
25316
|
+
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '72598c6fb849503f400b75fdb3789673c580886e', class: "kol-progress__bar-label" }, this.state._label), createProgressSVG(this.state), this.state._variant === 'cycle' && (hAsync("div", { key: '18c2541fe253d1c823734d845122827e2953a04e', class: "kol-progress__cycle-text" }, this.state._label && hAsync("div", { key: '74c81b2090e32b4d9eaa16636cb9c5c5114c46ad', class: "kol-progress__cycle-label" }, this.state._label), hAsync("div", { key: '3a32c98fca4adc2658c36ec72249f297dc1175c3', class: "kol-progress__cycle-value" }, `${displayValue} ${this.state._unit}`))), this.state._variant === 'bar' && (hAsync("div", { key: '4fc52d6d486fc97becfb8d1a45a1ba98975abafd', class: "kol-progress__bar-value", style: { width: `${`${(isPercentage ? 100 : this.state._max) + 1}`.length}ch` } }, displayValue)), this.state._variant === 'bar' && hAsync("div", { key: 'a21584bb20a71bc0931a08e7d98ed358748c4685', class: "kol-progress__bar-unit" }, this.state._unit)), hAsync("progress", { key: 'de96c7da155a8b40d393601abfd8854c4b195a68', class: "visually-hidden", "aria-busy": this.state._value < this.state._max ? 'true' : 'false', max: this.state._max, value: this.state._value }), hAsync("span", { key: '85870eee4599c14b3124f211539fecbdfa605dab', "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, isPercentage ? `${liveProgressValue} %` : `${liveProgressValue} von ${this.state._max} ${this.state._unit}`)));
|
|
25223
25317
|
}
|
|
25224
25318
|
validateLabel(value) {
|
|
25225
25319
|
validateLabel(this, value);
|
|
@@ -25329,7 +25423,7 @@ class KolQuote {
|
|
|
25329
25423
|
}
|
|
25330
25424
|
render() {
|
|
25331
25425
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
25332
|
-
return (hAsync("figure", { key: '
|
|
25426
|
+
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
25427
|
}
|
|
25334
25428
|
static get watchers() { return {
|
|
25335
25429
|
"_label": ["validateLabel"],
|
|
@@ -25542,13 +25636,13 @@ class KolSelect {
|
|
|
25542
25636
|
} });
|
|
25543
25637
|
}
|
|
25544
25638
|
render() {
|
|
25545
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
25639
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'bc7ee077bca2efc065987ce71be494bc78712b0a' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2bde683bfdf19e78a6aa6d980925aa6d6b06ce20', state: this.state }, hAsync("form", { key: '582987d654fa36f36a292d2cde2ca57190fc20bd', onSubmit: (event) => {
|
|
25546
25640
|
event.preventDefault();
|
|
25547
25641
|
propagateSubmitEventToForm({
|
|
25548
25642
|
form: this.host,
|
|
25549
25643
|
ref: this.selectRef,
|
|
25550
25644
|
});
|
|
25551
|
-
} }, hAsync("input", { key: '
|
|
25645
|
+
} }, hAsync("input", { key: '0de3d2fffb493d7f5e71f0442578236b54a37ba2', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'eff29e3d817ccfee364b7452c46a38e5162bd905' }, this.getSelectProps()))))));
|
|
25552
25646
|
}
|
|
25553
25647
|
constructor(hostRef) {
|
|
25554
25648
|
registerInstance(this, hostRef);
|
|
@@ -25802,7 +25896,8 @@ class KolSingleSelect {
|
|
|
25802
25896
|
this._hasOpened = false;
|
|
25803
25897
|
}
|
|
25804
25898
|
clearSelection() {
|
|
25805
|
-
|
|
25899
|
+
const isDisabled = this.state._disabled === true;
|
|
25900
|
+
if (isDisabled) {
|
|
25806
25901
|
return;
|
|
25807
25902
|
}
|
|
25808
25903
|
else {
|
|
@@ -25886,8 +25981,9 @@ class KolSingleSelect {
|
|
|
25886
25981
|
};
|
|
25887
25982
|
}
|
|
25888
25983
|
getInputProps() {
|
|
25889
|
-
const { ariaDescribedBy } = getRenderStates
|
|
25890
|
-
|
|
25984
|
+
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25985
|
+
const isDisabled = this.state._disabled === true;
|
|
25986
|
+
return Object.assign(Object.assign({ 'aria-activedescendant': this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, 'aria-autocomplete': 'both', 'aria-controls': 'listbox', 'aria-describedby': ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, 'aria-label': this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, accessKey: this.state._accessKey, autocapitalize: 'off', autocorrect: 'off', class: 'kol-single-select__input', disabled: isDisabled, name: this.state._name, placeholder: this.state._placeholder, ref: this.catchRef, required: this.state._required, state: this.state, type: 'text', value: this._inputValue }, this.controller.onFacade), { onChange: this.onChange.bind(this), onClick: this.onClick.bind(this), onInput: this.onInput.bind(this), onFocus: (event) => {
|
|
25891
25987
|
this.controller.onFacade.onFocus(event);
|
|
25892
25988
|
this.inputHasFocus = true;
|
|
25893
25989
|
}, onBlur: (event) => {
|
|
@@ -25897,13 +25993,14 @@ class KolSingleSelect {
|
|
|
25897
25993
|
}
|
|
25898
25994
|
render() {
|
|
25899
25995
|
var _a;
|
|
25900
|
-
|
|
25996
|
+
const isDisabled = this.state._disabled === true;
|
|
25997
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'ceaeacb828d3cebdf8c3880984721d8691cea048' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '0a48c6e146fe3a6a2ce61d389fc0ae485996fd62', state: this.state }, hAsync("div", { key: '5ea20ec73b0ffc8b476b54ed8f642ccc13b4a711', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '4db6df712158695ceaffd2e7942d0eda1bad39b0' }, this.getInputProps())), this._inputValue && !this.state._hideClearButton && (hAsync(KolIconTag, { key: 'cb014f93d9e3d91ffac5d25f9c002c97a1b27c05', _icons: "codicon codicon-close", "data-testid": "single-select-delete", _label: translate('kol-delete-selection'), onClick: () => {
|
|
25901
25998
|
var _a;
|
|
25902
25999
|
this.clearSelection();
|
|
25903
26000
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
25904
26001
|
}, class: clsx('kol-single-select__delete', {
|
|
25905
|
-
'kol-single-select__delete--disabled':
|
|
25906
|
-
}) })), hAsync(CustomSuggestionsToggleFc, { key: '
|
|
26002
|
+
'kol-single-select__delete--disabled': isDisabled,
|
|
26003
|
+
}) })), hAsync(CustomSuggestionsToggleFc, { key: '5a8fbc7279a6f575e8b3730c61e7081827382c8a', onClick: this.toggleListbox.bind(this), disabled: isDisabled })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '5dbc77eee3ca936ff5610d24529a90b7d8ca1540', 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
26004
|
if (el)
|
|
25908
26005
|
this.refOptions[index] = el;
|
|
25909
26006
|
}, selected: this._value === option.value, onClick: (event) => {
|
|
@@ -26042,7 +26139,8 @@ class KolSingleSelect {
|
|
|
26042
26139
|
this.toggleListbox = (event) => {
|
|
26043
26140
|
var _a;
|
|
26044
26141
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
26045
|
-
|
|
26142
|
+
const isDisabled = this.state._disabled === true;
|
|
26143
|
+
if (isDisabled) {
|
|
26046
26144
|
return;
|
|
26047
26145
|
}
|
|
26048
26146
|
else {
|
|
@@ -26272,7 +26370,7 @@ class KolSkipNav {
|
|
|
26272
26370
|
};
|
|
26273
26371
|
}
|
|
26274
26372
|
render() {
|
|
26275
|
-
return (hAsync("nav", { key: '
|
|
26373
|
+
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
26374
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
26277
26375
|
}))));
|
|
26278
26376
|
}
|
|
@@ -26340,7 +26438,7 @@ class KolSpin {
|
|
|
26340
26438
|
};
|
|
26341
26439
|
}
|
|
26342
26440
|
render() {
|
|
26343
|
-
return (hAsync(Host, { key: '
|
|
26441
|
+
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
26442
|
}
|
|
26345
26443
|
validateShow(value) {
|
|
26346
26444
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -26380,6 +26478,9 @@ var KolSplitButtonDefaultStyle0 = defaultStyleCss$9;
|
|
|
26380
26478
|
class KolSplitButton {
|
|
26381
26479
|
constructor(hostRef) {
|
|
26382
26480
|
registerInstance(this, hostRef);
|
|
26481
|
+
this.catchPrimaryRef = (ref) => {
|
|
26482
|
+
this.primaryButtonWcRef = ref;
|
|
26483
|
+
};
|
|
26383
26484
|
this.clickButtonHandler = {
|
|
26384
26485
|
onClick: (event) => {
|
|
26385
26486
|
var _a, _b;
|
|
@@ -26387,9 +26488,6 @@ class KolSplitButton {
|
|
|
26387
26488
|
if (typeof ((_a = this._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {
|
|
26388
26489
|
(_b = this._on) === null || _b === void 0 ? void 0 : _b.onClick(event, this._value);
|
|
26389
26490
|
}
|
|
26390
|
-
else {
|
|
26391
|
-
this.toggleDropdown();
|
|
26392
|
-
}
|
|
26393
26491
|
},
|
|
26394
26492
|
};
|
|
26395
26493
|
this.clickToggleHandler = {
|
|
@@ -26404,7 +26502,9 @@ class KolSplitButton {
|
|
|
26404
26502
|
this.handleOnClose = () => {
|
|
26405
26503
|
this.state = Object.assign(Object.assign({}, this.state), { _show: false });
|
|
26406
26504
|
};
|
|
26505
|
+
this._accessKey = undefined;
|
|
26407
26506
|
this._ariaControls = undefined;
|
|
26507
|
+
this._ariaDescription = undefined;
|
|
26408
26508
|
this._ariaExpanded = undefined;
|
|
26409
26509
|
this._ariaSelected = undefined;
|
|
26410
26510
|
this._customClass = undefined;
|
|
@@ -26416,6 +26516,7 @@ class KolSplitButton {
|
|
|
26416
26516
|
this._name = undefined;
|
|
26417
26517
|
this._on = undefined;
|
|
26418
26518
|
this._role = undefined;
|
|
26519
|
+
this._shortKey = undefined;
|
|
26419
26520
|
this._syncValueBySelector = undefined;
|
|
26420
26521
|
this._tooltipAlign = 'top';
|
|
26421
26522
|
this._type = 'button';
|
|
@@ -26425,12 +26526,19 @@ class KolSplitButton {
|
|
|
26425
26526
|
_show: false,
|
|
26426
26527
|
};
|
|
26427
26528
|
}
|
|
26529
|
+
async getValue() {
|
|
26530
|
+
return this._value;
|
|
26531
|
+
}
|
|
26532
|
+
async kolFocus() {
|
|
26533
|
+
var _a;
|
|
26534
|
+
await ((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
26535
|
+
}
|
|
26428
26536
|
render() {
|
|
26429
26537
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
26430
|
-
return (hAsync("div", { key: '
|
|
26538
|
+
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
26539
|
[this._variant]: this._variant !== 'custom',
|
|
26432
26540
|
[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: '
|
|
26541
|
+
}), 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
26542
|
}
|
|
26435
26543
|
async closePopup() {
|
|
26436
26544
|
this.handleOnClose();
|
|
@@ -26444,7 +26552,9 @@ class KolSplitButton {
|
|
|
26444
26552
|
"$flags$": 57,
|
|
26445
26553
|
"$tagName$": "kol-split-button",
|
|
26446
26554
|
"$members$": {
|
|
26555
|
+
"_accessKey": [1, "_access-key"],
|
|
26447
26556
|
"_ariaControls": [1, "_aria-controls"],
|
|
26557
|
+
"_ariaDescription": [1, "_aria-description"],
|
|
26448
26558
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
26449
26559
|
"_ariaSelected": [4, "_aria-selected"],
|
|
26450
26560
|
"_customClass": [1, "_custom-class"],
|
|
@@ -26456,12 +26566,15 @@ class KolSplitButton {
|
|
|
26456
26566
|
"_name": [1],
|
|
26457
26567
|
"_on": [16],
|
|
26458
26568
|
"_role": [1],
|
|
26569
|
+
"_shortKey": [1, "_short-key"],
|
|
26459
26570
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
26460
26571
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
26461
26572
|
"_type": [1],
|
|
26462
26573
|
"_value": [8],
|
|
26463
26574
|
"_variant": [1],
|
|
26464
26575
|
"state": [32],
|
|
26576
|
+
"getValue": [64],
|
|
26577
|
+
"kolFocus": [64],
|
|
26465
26578
|
"closePopup": [64]
|
|
26466
26579
|
},
|
|
26467
26580
|
"$listeners$": undefined,
|
|
@@ -26527,7 +26640,7 @@ class KolTableSettings {
|
|
|
26527
26640
|
}
|
|
26528
26641
|
render() {
|
|
26529
26642
|
const sortedColumns = [...this.tableSettings.columns].sort((a, b) => a.position - b.position);
|
|
26530
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
26643
|
+
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
26644
|
}
|
|
26532
26645
|
get host() { return getElement(this); }
|
|
26533
26646
|
static get watchers() { return {
|
|
@@ -26588,7 +26701,7 @@ const validateTableSettings = (component, value) => {
|
|
|
26588
26701
|
watchValidator(component, `_tableSettings`, (value) => typeof value === 'object' && value !== null, new Set(['TableSettings']), value);
|
|
26589
26702
|
};
|
|
26590
26703
|
|
|
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}";
|
|
26704
|
+
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
26705
|
var KolTableStatefulDefaultStyle0 = defaultStyleCss$8;
|
|
26593
26706
|
|
|
26594
26707
|
const PAGINATION_OPTIONS = [10, 20, 50, 100];
|
|
@@ -26864,7 +26977,7 @@ class KolTableStateful {
|
|
|
26864
26977
|
? this.state._data.length.toString()
|
|
26865
26978
|
: '0',
|
|
26866
26979
|
},
|
|
26867
|
-
})), hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(
|
|
26980
|
+
})), 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
26981
|
}
|
|
26869
26982
|
getHeaderCellSortState(headerCell) {
|
|
26870
26983
|
if (!this.disableSort && typeof headerCell.compareFn === 'function') {
|
|
@@ -26924,7 +27037,7 @@ class KolTableStateful {
|
|
|
26924
27037
|
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
27038
|
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
27039
|
};
|
|
26927
|
-
return (hAsync(Host, { key: '
|
|
27040
|
+
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
27041
|
onSort: (_, payload) => {
|
|
26929
27042
|
this.handleSort(payload);
|
|
26930
27043
|
},
|
|
@@ -26974,7 +27087,7 @@ class KolTableStateful {
|
|
|
26974
27087
|
}; }
|
|
26975
27088
|
}
|
|
26976
27089
|
|
|
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}";
|
|
27090
|
+
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
27091
|
var KolTableStatelessDefaultStyle0 = defaultStyleCss$7;
|
|
26979
27092
|
|
|
26980
27093
|
class KolTableStateless$1 {
|
|
@@ -26990,7 +27103,7 @@ class KolTableStateless$1 {
|
|
|
26990
27103
|
this._tableSettings = undefined;
|
|
26991
27104
|
}
|
|
26992
27105
|
render() {
|
|
26993
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
27106
|
+
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
27107
|
}
|
|
26995
27108
|
static get style() { return {
|
|
26996
27109
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -27217,28 +27330,28 @@ class KolTableStateless {
|
|
|
27217
27330
|
}
|
|
27218
27331
|
return max;
|
|
27219
27332
|
}
|
|
27220
|
-
|
|
27221
|
-
const
|
|
27333
|
+
getThePrimaryHeadersWithKeyOrRenderFunction(headers) {
|
|
27334
|
+
const primaryHeaders = [];
|
|
27222
27335
|
headers.forEach((cells) => {
|
|
27223
27336
|
cells.forEach((cell) => {
|
|
27224
|
-
if (typeof cell.key === 'string') {
|
|
27225
|
-
|
|
27337
|
+
if (typeof cell.key === 'string' || typeof cell.render === 'function') {
|
|
27338
|
+
primaryHeaders.push(cell);
|
|
27226
27339
|
}
|
|
27227
27340
|
});
|
|
27228
27341
|
});
|
|
27229
|
-
return
|
|
27342
|
+
return primaryHeaders;
|
|
27230
27343
|
}
|
|
27231
27344
|
getPrimaryHeaders(headers) {
|
|
27232
27345
|
var _a, _b;
|
|
27233
|
-
let
|
|
27346
|
+
let primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
27234
27347
|
this.horizontal = true;
|
|
27235
|
-
if (
|
|
27236
|
-
|
|
27237
|
-
if (
|
|
27348
|
+
if (primaryHeaders.length === 0) {
|
|
27349
|
+
primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
27350
|
+
if (primaryHeaders.length > 0) {
|
|
27238
27351
|
this.horizontal = false;
|
|
27239
27352
|
}
|
|
27240
27353
|
}
|
|
27241
|
-
return
|
|
27354
|
+
return primaryHeaders;
|
|
27242
27355
|
}
|
|
27243
27356
|
getColumnPositionMap() {
|
|
27244
27357
|
var _a;
|
|
@@ -27305,18 +27418,18 @@ class KolTableStateless {
|
|
|
27305
27418
|
const row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];
|
|
27306
27419
|
if (typeof sortedPrimaryHeader[j] === 'object' &&
|
|
27307
27420
|
sortedPrimaryHeader[j] !== null &&
|
|
27308
|
-
typeof sortedPrimaryHeader[j].key === 'string' &&
|
|
27309
27421
|
typeof row === 'object' &&
|
|
27310
|
-
row !== null
|
|
27422
|
+
row !== null &&
|
|
27423
|
+
(typeof sortedPrimaryHeader[j].key === 'string' || typeof sortedPrimaryHeader[j].render === 'function')) {
|
|
27311
27424
|
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[j]), { colSpan: undefined, data: row, label: row[sortedPrimaryHeader[j].key], rowSpan: undefined }));
|
|
27312
27425
|
}
|
|
27313
27426
|
}
|
|
27314
27427
|
else {
|
|
27315
27428
|
if (typeof sortedPrimaryHeader[i] === 'object' &&
|
|
27316
27429
|
sortedPrimaryHeader[i] !== null &&
|
|
27317
|
-
typeof sortedPrimaryHeader[i].key === 'string' &&
|
|
27318
27430
|
typeof data[j] === 'object' &&
|
|
27319
|
-
data[j] !== null
|
|
27431
|
+
data[j] !== null &&
|
|
27432
|
+
(typeof sortedPrimaryHeader[i].key === 'string' || typeof sortedPrimaryHeader[i].render === 'function')) {
|
|
27320
27433
|
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[i]), { colSpan: undefined, data: data[j], label: data[j][sortedPrimaryHeader[i].key], rowSpan: undefined }));
|
|
27321
27434
|
}
|
|
27322
27435
|
}
|
|
@@ -27494,7 +27607,7 @@ class KolTableStateless {
|
|
|
27494
27607
|
if (columnSettings && !columnSettings.visible) {
|
|
27495
27608
|
return '';
|
|
27496
27609
|
}
|
|
27497
|
-
let ariaSort =
|
|
27610
|
+
let ariaSort = 'none';
|
|
27498
27611
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
27499
27612
|
if (cell.sortDirection) {
|
|
27500
27613
|
switch (cell.sortDirection) {
|
|
@@ -27506,6 +27619,8 @@ class KolTableStateless {
|
|
|
27506
27619
|
sortButtonIcon = 'codicon codicon-chevron-down';
|
|
27507
27620
|
ariaSort = 'descending';
|
|
27508
27621
|
break;
|
|
27622
|
+
default:
|
|
27623
|
+
ariaSort = 'none';
|
|
27509
27624
|
}
|
|
27510
27625
|
}
|
|
27511
27626
|
const scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';
|
|
@@ -27554,12 +27669,12 @@ class KolTableStateless {
|
|
|
27554
27669
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
27555
27670
|
this.checkboxRefs = [];
|
|
27556
27671
|
const sortedHorizontalHeaders = (_a = this.state._headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.map((row) => this.sortByColumnPosition(row));
|
|
27557
|
-
return (hAsync("div", { key: '
|
|
27672
|
+
return (hAsync("div", { key: 'fd7be9447c69e4bdd00bcf0c94851322509f18c7', class: "kol-table" }, hAsync(KolTableSettingsWcTag, { key: 'c8656b639f87a64af11c638db500722075661a2b', _tableSettings: this.state._tableSettings }), hAsync("div", { key: 'ff3e59f751c29e2400baa9bd47252f523fcf6ba2', ref: (element) => (this.tableDivElement = element), class: "kol-table__scroll-container", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: '74dfeefe3d2d48859d2250f10fdfd01e4de76fd1', class: "kol-table__table", style: {
|
|
27558
27673
|
minWidth: this.getTableMinWidth(),
|
|
27559
|
-
} }, hAsync("div", { key: '
|
|
27674
|
+
} }, hAsync("div", { key: '0c3115cb69fc3f344a7eba055dfb449ee39b981c', class: "kol-table__focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: '3abc734e88279686f4ba57c58e2e28df598bd067', class: "kol-table__caption", id: "caption" }, this.state._label), Array.isArray(sortedHorizontalHeaders) && (hAsync("thead", { key: '444aede6748667c15131ca400b792834bb6d585e', class: "kol-table__head" }, [
|
|
27560
27675
|
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
27676
|
this.renderSpacer('head', sortedHorizontalHeaders),
|
|
27562
|
-
])), hAsync("tbody", { key: '
|
|
27677
|
+
])), hAsync("tbody", { key: 'f87e907d033d601fb065bf8d1d0892016ed1d368', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
27563
27678
|
}
|
|
27564
27679
|
get host() { return getElement(this); }
|
|
27565
27680
|
static get watchers() { return {
|
|
@@ -27803,9 +27918,9 @@ class KolTabs {
|
|
|
27803
27918
|
}, _icons: "codicon codicon-plus", "data-testid": "tabs-create-button" }))));
|
|
27804
27919
|
}
|
|
27805
27920
|
render() {
|
|
27806
|
-
return (hAsync("div", { key: '
|
|
27921
|
+
return (hAsync("div", { key: '8c3212b2e1bd09292d666d163c88ad94ef2f59bb', ref: (el) => {
|
|
27807
27922
|
this.tabPanelsElement = el;
|
|
27808
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
27923
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: 'ebbb16b66d9b77f98fe9d2384f83489530cd3e6d', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
27809
27924
|
}
|
|
27810
27925
|
validateAlign(value) {
|
|
27811
27926
|
validateAlign(this, value);
|
|
@@ -28045,7 +28160,7 @@ class KolTextarea {
|
|
|
28045
28160
|
} });
|
|
28046
28161
|
}
|
|
28047
28162
|
render() {
|
|
28048
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28163
|
+
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
28164
|
}
|
|
28050
28165
|
constructor(hostRef) {
|
|
28051
28166
|
registerInstance(this, hostRef);
|
|
@@ -28299,7 +28414,9 @@ class KolToastContainer {
|
|
|
28299
28414
|
return localToastState;
|
|
28300
28415
|
}) });
|
|
28301
28416
|
setTimeout(() => {
|
|
28417
|
+
var _a, _b;
|
|
28302
28418
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((localToastState) => localToastState.id !== toastState.id) });
|
|
28419
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
28303
28420
|
}, TRANSITION_TIMEOUT);
|
|
28304
28421
|
}
|
|
28305
28422
|
async closeAll(immediate = false) {
|
|
@@ -28311,6 +28428,10 @@ class KolToastContainer {
|
|
|
28311
28428
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: toastsToClose.map((localToastState) => (Object.assign(Object.assign({}, localToastState), { status: 'removing' }))) });
|
|
28312
28429
|
setTimeout(() => {
|
|
28313
28430
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((toastState) => toastsToClose.every((toastToClose) => toastToClose.id !== toastState.id)) });
|
|
28431
|
+
toastsToClose.forEach((toastState) => {
|
|
28432
|
+
var _a, _b;
|
|
28433
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
28434
|
+
});
|
|
28314
28435
|
}, TRANSITION_TIMEOUT);
|
|
28315
28436
|
}
|
|
28316
28437
|
}
|
|
@@ -28321,7 +28442,7 @@ class KolToastContainer {
|
|
|
28321
28442
|
}
|
|
28322
28443
|
}
|
|
28323
28444
|
render() {
|
|
28324
|
-
return (hAsync(Host, { key: '
|
|
28445
|
+
return (hAsync(Host, { key: '9cd066a5431870964c5ebcf63f3e6cfc485999fa', class: "kol-toast-container" }, this.state._toastStates.length > 1 && (hAsync(KolButtonTag, { key: '5f7311b53ebf68798955e351c9a634190cc0242d', _label: translate('kol-toast-close-all'), class: "kol-toast-container__button-close-all", _on: {
|
|
28325
28446
|
onClick: () => {
|
|
28326
28447
|
void this.closeAll();
|
|
28327
28448
|
},
|
|
@@ -28373,7 +28494,7 @@ class KolToolbar {
|
|
|
28373
28494
|
this._orientation = undefined;
|
|
28374
28495
|
}
|
|
28375
28496
|
render() {
|
|
28376
|
-
return (hAsync("div", { key: '
|
|
28497
|
+
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
28498
|
}
|
|
28378
28499
|
validateLabel(value) {
|
|
28379
28500
|
validateLabel(this, value);
|
|
@@ -28470,11 +28591,10 @@ function hideOverlay(overlay) {
|
|
|
28470
28591
|
}
|
|
28471
28592
|
}
|
|
28472
28593
|
|
|
28594
|
+
const TOOLTIP_DELAY = 300;
|
|
28473
28595
|
class KolTooltipWc {
|
|
28474
28596
|
constructor(hostRef) {
|
|
28475
28597
|
registerInstance(this, hostRef);
|
|
28476
|
-
this.hasFocusIn = false;
|
|
28477
|
-
this.hasMouseIn = false;
|
|
28478
28598
|
this.showTooltip = () => {
|
|
28479
28599
|
if (this.previousSibling && this.tooltipElement) {
|
|
28480
28600
|
showOverlay(this.tooltipElement);
|
|
@@ -28487,21 +28607,22 @@ class KolTooltipWc {
|
|
|
28487
28607
|
});
|
|
28488
28608
|
}
|
|
28489
28609
|
};
|
|
28490
|
-
this.
|
|
28491
|
-
|
|
28492
|
-
|
|
28493
|
-
|
|
28494
|
-
this.
|
|
28495
|
-
|
|
28496
|
-
|
|
28497
|
-
|
|
28498
|
-
|
|
28499
|
-
|
|
28500
|
-
|
|
28610
|
+
this.showTooltipWithDelay = () => {
|
|
28611
|
+
clearTimeout(this.hideTooltipTimeout);
|
|
28612
|
+
clearTimeout(this.showTooltipTimeout);
|
|
28613
|
+
this.showTooltipTimeout = setTimeout(() => {
|
|
28614
|
+
this.showTooltip();
|
|
28615
|
+
}, TOOLTIP_DELAY);
|
|
28616
|
+
};
|
|
28617
|
+
this.hideTooltipWithDelay = () => {
|
|
28618
|
+
clearTimeout(this.hideTooltipTimeout);
|
|
28619
|
+
this.hideTooltipTimeout = setTimeout(() => {
|
|
28620
|
+
void this.hideTooltip();
|
|
28621
|
+
}, TOOLTIP_DELAY);
|
|
28501
28622
|
};
|
|
28502
28623
|
this.hideTooltipByEscape = (event) => {
|
|
28503
28624
|
if (event.key === 'Escape') {
|
|
28504
|
-
this.hideTooltip();
|
|
28625
|
+
void this.hideTooltip();
|
|
28505
28626
|
}
|
|
28506
28627
|
};
|
|
28507
28628
|
this.addListeners = (el) => {
|
|
@@ -28533,17 +28654,6 @@ class KolTooltipWc {
|
|
|
28533
28654
|
this.catchArrowElement = (element) => {
|
|
28534
28655
|
this.arrowElement = element;
|
|
28535
28656
|
};
|
|
28536
|
-
this.showOrHideTooltip = () => {
|
|
28537
|
-
clearTimeout(this.overFocusTimeout);
|
|
28538
|
-
this.overFocusTimeout = setTimeout(() => {
|
|
28539
|
-
if (this.hasMouseIn || this.hasFocusIn) {
|
|
28540
|
-
this.showTooltip();
|
|
28541
|
-
}
|
|
28542
|
-
else {
|
|
28543
|
-
this.hideTooltip();
|
|
28544
|
-
}
|
|
28545
|
-
}, 300);
|
|
28546
|
-
};
|
|
28547
28657
|
this._badgeText = undefined;
|
|
28548
28658
|
this._align = 'top';
|
|
28549
28659
|
this._id = undefined;
|
|
@@ -28563,24 +28673,33 @@ class KolTooltipWc {
|
|
|
28563
28673
|
});
|
|
28564
28674
|
}
|
|
28565
28675
|
}
|
|
28676
|
+
async hideTooltip() {
|
|
28677
|
+
clearTimeout(this.showTooltipTimeout);
|
|
28678
|
+
if (this.tooltipElement) {
|
|
28679
|
+
hideOverlay(this.tooltipElement);
|
|
28680
|
+
this.tooltipElement.style.setProperty('display', 'none');
|
|
28681
|
+
this.tooltipElement.style.setProperty('visibility', 'hidden');
|
|
28682
|
+
if (this.cleanupAutoPositioning) {
|
|
28683
|
+
this.cleanupAutoPositioning();
|
|
28684
|
+
this.cleanupAutoPositioning = undefined;
|
|
28685
|
+
}
|
|
28686
|
+
}
|
|
28687
|
+
getDocument().removeEventListener('keyup', this.hideTooltipByEscape);
|
|
28688
|
+
}
|
|
28566
28689
|
handleMouseEnter() {
|
|
28567
|
-
this.
|
|
28568
|
-
this.showOrHideTooltip();
|
|
28690
|
+
this.showTooltipWithDelay();
|
|
28569
28691
|
}
|
|
28570
28692
|
handleMouseleave() {
|
|
28571
|
-
this.
|
|
28572
|
-
this.showOrHideTooltip();
|
|
28693
|
+
this.hideTooltipWithDelay();
|
|
28573
28694
|
}
|
|
28574
28695
|
handleFocusIn() {
|
|
28575
|
-
this.
|
|
28576
|
-
this.showOrHideTooltip();
|
|
28696
|
+
this.showTooltipWithDelay();
|
|
28577
28697
|
}
|
|
28578
28698
|
handleFocusout() {
|
|
28579
|
-
this.
|
|
28580
|
-
this.showOrHideTooltip();
|
|
28699
|
+
this.hideTooltipWithDelay();
|
|
28581
28700
|
}
|
|
28582
28701
|
render() {
|
|
28583
|
-
return (hAsync(Host, { key: '
|
|
28702
|
+
return (hAsync(Host, { key: 'a0b8abd0d04248fd423143784ea3446ce74d5455', class: "kol-tooltip" }, this.state._label !== '' && (hAsync("div", { key: 'e3f3912c333b523115ab170a7034d095ff66eea8', class: "kol-tooltip__floating", ref: this.catchTooltipElement }, hAsync("div", { key: 'de357980b3f8b686ec462194563cba1b8cc22d09', class: "kol-tooltip__arrow", ref: this.catchArrowElement }), hAsync(KolSpanFc, { key: '102ee0ea200adef3dbee5c134c11af045102e131', class: "kol-tooltip__content", id: this.state._id, badgeText: this._badgeText, label: this.state._label })))));
|
|
28584
28703
|
}
|
|
28585
28704
|
validateBadgeText(value) {
|
|
28586
28705
|
validateBadgeText(this, value);
|
|
@@ -28641,7 +28760,8 @@ class KolTooltipWc {
|
|
|
28641
28760
|
"_align": [1],
|
|
28642
28761
|
"_id": [1],
|
|
28643
28762
|
"_label": [1],
|
|
28644
|
-
"state": [32]
|
|
28763
|
+
"state": [32],
|
|
28764
|
+
"hideTooltip": [64]
|
|
28645
28765
|
},
|
|
28646
28766
|
"$listeners$": undefined,
|
|
28647
28767
|
"$lazyBundleId$": "-",
|
|
@@ -28658,7 +28778,7 @@ class KolTree {
|
|
|
28658
28778
|
this._label = undefined;
|
|
28659
28779
|
}
|
|
28660
28780
|
render() {
|
|
28661
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
28781
|
+
return (hAsync(KolTreeWcTag, { key: '13d3e695605cbf910749ac998731d7d6310b3ed8', _label: this._label }, hAsync("slot", { key: 'b4702460fa7ca8fe8e259cb7b782a8971735a9ef' })));
|
|
28662
28782
|
}
|
|
28663
28783
|
static get style() { return {
|
|
28664
28784
|
default: KolTreeDefaultStyle0
|
|
@@ -28706,7 +28826,7 @@ class KolTreeItem {
|
|
|
28706
28826
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
28707
28827
|
}
|
|
28708
28828
|
render() {
|
|
28709
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
28829
|
+
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
28830
|
}
|
|
28711
28831
|
static get style() { return {
|
|
28712
28832
|
default: KolTreeItemDefaultStyle0
|
|
@@ -28749,12 +28869,12 @@ class KolTreeItemWc {
|
|
|
28749
28869
|
}
|
|
28750
28870
|
render() {
|
|
28751
28871
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
28752
|
-
return (hAsync(Host, { key: '
|
|
28872
|
+
return (hAsync(Host, { key: 'e0d63b982e56ef662c1420fc9ade69068b8a81ff', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: '7c2d91957ad2e92256d5bc8bcbfa003d830a3645', class: "kol-tree-item", style: {
|
|
28753
28873
|
'--level': `${this.level}`,
|
|
28754
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
28874
|
+
} }, hAsync(KolLinkWcTag, { key: '7207fe34d30d14349d397fbd75ff2f0d16aa7086', class: clsx('kol-tree-item__link', {
|
|
28755
28875
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
28756
28876
|
'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: '
|
|
28877
|
+
}), _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
28878
|
}
|
|
28759
28879
|
validateActive(value) {
|
|
28760
28880
|
validateActive(this, value || false);
|
|
@@ -28859,7 +28979,7 @@ class KolTreeWc {
|
|
|
28859
28979
|
validateLabel(this, value);
|
|
28860
28980
|
}
|
|
28861
28981
|
render() {
|
|
28862
|
-
return (hAsync(Host, { key: '
|
|
28982
|
+
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
28983
|
}
|
|
28864
28984
|
static isTreeItem(element) {
|
|
28865
28985
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -29057,7 +29177,7 @@ class KolVersion {
|
|
|
29057
29177
|
};
|
|
29058
29178
|
}
|
|
29059
29179
|
render() {
|
|
29060
|
-
return (hAsync(Host, { key: '
|
|
29180
|
+
return (hAsync(Host, { key: '3304cd937945785a92d3cf9a25cd70065f2ac5dd', class: "kol-version" }, hAsync(KolBadgeTag, { key: '155a2fbdb3ce12a1800b62745a2f9683585c9794', _color: "#bec5c9", _icons: {
|
|
29061
29181
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
29062
29182
|
}, _label: this.state._label })));
|
|
29063
29183
|
}
|
|
@@ -29140,6 +29260,7 @@ registerComponents([
|
|
|
29140
29260
|
KolModal,
|
|
29141
29261
|
KolNav,
|
|
29142
29262
|
KolPagination,
|
|
29263
|
+
KolPaginationWc,
|
|
29143
29264
|
KolPopover,
|
|
29144
29265
|
KolPopoverButton$1,
|
|
29145
29266
|
KolPopoverButton,
|