@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.mjs
CHANGED
|
@@ -3828,6 +3828,10 @@ const validateAdjustHeight = (component, value) => {
|
|
|
3828
3828
|
watchBoolean(component, '_adjustHeight', value);
|
|
3829
3829
|
};
|
|
3830
3830
|
|
|
3831
|
+
const validateAlt = (component, value, options = {}) => {
|
|
3832
|
+
watchString(component, '_alt', value, options);
|
|
3833
|
+
};
|
|
3834
|
+
|
|
3831
3835
|
const validateAlignment = (component, propName, value) => {
|
|
3832
3836
|
watchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {
|
|
3833
3837
|
defaultValue: 'top',
|
|
@@ -4194,6 +4198,14 @@ const validateImageSource = (component, value, options) => {
|
|
|
4194
4198
|
watchString(component, '_src', value, options);
|
|
4195
4199
|
};
|
|
4196
4200
|
|
|
4201
|
+
const validateImageSizes = (component, value, options = {}) => {
|
|
4202
|
+
watchString(component, '_sizes', value, options);
|
|
4203
|
+
};
|
|
4204
|
+
|
|
4205
|
+
const validateImageSrcset = (component, value, options = {}) => {
|
|
4206
|
+
watchString(component, '_srcset', value, options);
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4197
4209
|
const validateIndeterminate = (component, value) => {
|
|
4198
4210
|
watchBoolean(component, '_indeterminate', value);
|
|
4199
4211
|
};
|
|
@@ -4278,13 +4290,31 @@ const validateMsg = (component, value) => {
|
|
|
4278
4290
|
}
|
|
4279
4291
|
catch (e) {
|
|
4280
4292
|
}
|
|
4281
|
-
watchValidator(component, `_msg`, (value) =>
|
|
4293
|
+
watchValidator(component, `_msg`, (value) => {
|
|
4294
|
+
if (value === undefined) {
|
|
4295
|
+
return true;
|
|
4296
|
+
}
|
|
4297
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
4298
|
+
return true;
|
|
4299
|
+
}
|
|
4300
|
+
if (isObject$2(value) && value !== null) {
|
|
4301
|
+
const objValue = value;
|
|
4302
|
+
return isString$3(objValue._description, 1);
|
|
4303
|
+
}
|
|
4304
|
+
return false;
|
|
4305
|
+
}, new Set(['MsgPropType', 'string']), value);
|
|
4282
4306
|
});
|
|
4283
4307
|
};
|
|
4284
4308
|
function convertMsgToInternMsg(msg) {
|
|
4285
4309
|
if (!msg) {
|
|
4286
4310
|
return undefined;
|
|
4287
4311
|
}
|
|
4312
|
+
if (typeof msg === 'string') {
|
|
4313
|
+
return {
|
|
4314
|
+
description: msg,
|
|
4315
|
+
type: 'error',
|
|
4316
|
+
};
|
|
4317
|
+
}
|
|
4288
4318
|
return transformObjectProperties(msg);
|
|
4289
4319
|
}
|
|
4290
4320
|
function checkHasMsg(msg, touched) {
|
|
@@ -4506,7 +4536,7 @@ let KolInputCheckboxTag = 'kol-input-checkbox';
|
|
|
4506
4536
|
let KolInputNumberTag = 'kol-input-number';
|
|
4507
4537
|
let KolLinkTag = 'kol-link';
|
|
4508
4538
|
let KolLinkWcTag = 'kol-link-wc';
|
|
4509
|
-
let
|
|
4539
|
+
let KolPaginationWcTag = 'kol-pagination-wc';
|
|
4510
4540
|
let KolPopoverWcTag = 'kol-popover-wc';
|
|
4511
4541
|
let KolPopoverButtonWcTag = 'kol-popover-button-wc';
|
|
4512
4542
|
let KolSelectTag = 'kol-select';
|
|
@@ -4613,18 +4643,14 @@ function isValidHeadingLevel(level) {
|
|
|
4613
4643
|
function getHeadlineTag(level) {
|
|
4614
4644
|
return isValidHeadingLevel(level) ? `h${level}` : 'strong';
|
|
4615
4645
|
}
|
|
4616
|
-
function getSubHeadlineTag(level) {
|
|
4617
|
-
return level === 1 ? 'span' : getHeadlineTag(level);
|
|
4618
|
-
}
|
|
4619
4646
|
const KolHeadlineFc = (_a, children) => {
|
|
4620
4647
|
var { class: classNames, level = MIN_HEADING_LEVEL } = _a, other = __rest(_a, ["class", "level"]);
|
|
4621
4648
|
const HeadlineTag = getHeadlineTag(level);
|
|
4622
4649
|
return (hAsync(HeadlineTag, Object.assign({ class: clsx('kol-headline', `kol-headline--${HeadlineTag}`, classNames) }, other), children));
|
|
4623
4650
|
};
|
|
4624
4651
|
const KolSecondaryHeadlineFc = (_a, children) => {
|
|
4625
|
-
var { class: classNames
|
|
4626
|
-
|
|
4627
|
-
return (hAsync(HeadlineTag, Object.assign({ class: clsx('kol-headline kol-headline--group kol-headline--secondary', classNames) }, other), children));
|
|
4652
|
+
var { class: classNames } = _a, other = __rest(_a, ["class"]);
|
|
4653
|
+
return (hAsync("p", Object.assign({ class: clsx('kol-headline kol-headline--group kol-headline--secondary', classNames) }, other), children));
|
|
4628
4654
|
};
|
|
4629
4655
|
const KolHeadingFc = (_a, children) => {
|
|
4630
4656
|
var { secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {} } = _a, other = __rest(_a, ["secondaryHeadline", "level", "class", "HeadingGroupProps", "SecondaryHeadlineProps"]);
|
|
@@ -4636,7 +4662,7 @@ const KolHeadingFc = (_a, children) => {
|
|
|
4636
4662
|
const headlineGroupProps = Object.assign({ class: clsx('kol-heading-group', groupClassNames) }, groupOthers);
|
|
4637
4663
|
return (hAsync("hgroup", Object.assign({}, headlineGroupProps),
|
|
4638
4664
|
hAsync(KolHeadlineFc, Object.assign({ class: clsx(classNames, 'kol-headline--group', 'kol-headline--primary') }, headlineProps), children),
|
|
4639
|
-
hAsync(KolSecondaryHeadlineFc, Object.assign({
|
|
4665
|
+
hAsync(KolSecondaryHeadlineFc, Object.assign({}, SecondaryHeadlineProps), secondaryHeadline)));
|
|
4640
4666
|
};
|
|
4641
4667
|
|
|
4642
4668
|
const KolCollapsibleFc = (props, children) => {
|
|
@@ -5130,13 +5156,28 @@ const AlertIcon = ({ type, label }) => {
|
|
|
5130
5156
|
}
|
|
5131
5157
|
};
|
|
5132
5158
|
|
|
5159
|
+
const vibrateOnError = () => {
|
|
5160
|
+
if (typeof navigator === 'undefined' || typeof navigator.vibrate !== 'function') {
|
|
5161
|
+
return;
|
|
5162
|
+
}
|
|
5163
|
+
const ua = navigator.userActivation;
|
|
5164
|
+
const hasGesture = (ua === null || ua === void 0 ? void 0 : ua.isActive) || (ua === null || ua === void 0 ? void 0 : ua.hasBeenActive);
|
|
5165
|
+
if (!hasGesture) {
|
|
5166
|
+
return;
|
|
5167
|
+
}
|
|
5168
|
+
if (!matchMedia('(any-pointer: coarse)').matches) {
|
|
5169
|
+
return;
|
|
5170
|
+
}
|
|
5171
|
+
try {
|
|
5172
|
+
navigator.vibrate([100, 75, 100, 75, 100]);
|
|
5173
|
+
}
|
|
5174
|
+
catch (_a) {
|
|
5175
|
+
}
|
|
5176
|
+
};
|
|
5133
5177
|
const KolAlertFc = (props, children) => {
|
|
5134
|
-
var _a, _b;
|
|
5135
5178
|
const { class: classNames = {}, alert = false, hasCloser = false, label, level = 0, type = 'default', variant = 'msg', onAlertTimeout, onCloserClick } = props, other = __rest(props, ["class", "alert", "hasCloser", "label", "level", "type", "variant", "onAlertTimeout", "onCloserClick"]);
|
|
5136
5179
|
if (alert) {
|
|
5137
|
-
|
|
5138
|
-
(_b = navigator === null || navigator === void 0 ? void 0 : navigator.vibrate) === null || _b === void 0 ? void 0 : _b.call(navigator, [100, 75, 100, 75, 100]);
|
|
5139
|
-
}
|
|
5180
|
+
vibrateOnError();
|
|
5140
5181
|
setTimeout(() => {
|
|
5141
5182
|
onAlertTimeout === null || onAlertTimeout === void 0 ? void 0 : onAlertTimeout();
|
|
5142
5183
|
}, 10000);
|
|
@@ -5150,7 +5191,7 @@ const KolAlertFc = (props, children) => {
|
|
|
5150
5191
|
[`h${level}`]: true,
|
|
5151
5192
|
});
|
|
5152
5193
|
const rootProps = Object.assign({ class: clsx(classNames, BEM_CLASS_ROOT), role: alert ? (type === 'error' ? 'alert' : 'status') : undefined }, other);
|
|
5153
|
-
return (hAsync("div", Object.assign({}, rootProps),
|
|
5194
|
+
return (hAsync("div", Object.assign({}, rootProps, { "data-testid": "alert" }),
|
|
5154
5195
|
hAsync("div", { class: "kol-alert__container" },
|
|
5155
5196
|
hAsync(AlertIcon, { label: label, type: type }),
|
|
5156
5197
|
hAsync("div", { class: "kol-alert__container-content" },
|
|
@@ -5201,7 +5242,7 @@ class KolAlertWc {
|
|
|
5201
5242
|
onCloserClick: this.close,
|
|
5202
5243
|
onAlertTimeout: this.handleAlertTimeout,
|
|
5203
5244
|
};
|
|
5204
|
-
return (hAsync(KolAlertFc, Object.assign({ key: '
|
|
5245
|
+
return (hAsync(KolAlertFc, Object.assign({ key: '2b0d74465270eef8d8d6f3da8c04377f862e8630' }, props), hAsync("slot", { key: '55e8ad62be763c26af16813e5ebfac2ce1f63b54' })));
|
|
5205
5246
|
}
|
|
5206
5247
|
validateAlert(value) {
|
|
5207
5248
|
watchBoolean(this, '_alert', value);
|
|
@@ -16601,25 +16642,28 @@ class KolButtonWc {
|
|
|
16601
16642
|
var _a;
|
|
16602
16643
|
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16603
16644
|
}
|
|
16645
|
+
async hideTooltip() {
|
|
16646
|
+
var _a;
|
|
16647
|
+
void ((_a = this.tooltipRef) === null || _a === void 0 ? void 0 : _a.hideTooltip());
|
|
16648
|
+
}
|
|
16604
16649
|
render() {
|
|
16605
16650
|
var _a, _b;
|
|
16606
16651
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
16607
16652
|
const hasAriaDescription = Boolean((_b = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim()) === null || _b === void 0 ? void 0 : _b.length);
|
|
16608
16653
|
const badgeText = this.state._accessKey || this.state._shortKey;
|
|
16609
|
-
|
|
16610
|
-
|
|
16654
|
+
const isDisabled = this.state._disabled === true;
|
|
16655
|
+
const hideLabel = this.state._hideLabel === true;
|
|
16656
|
+
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', {
|
|
16657
|
+
'kol-button--disabled': isDisabled,
|
|
16611
16658
|
[`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
|
|
16612
16659
|
[`kol-button--${this.state._linkVariant}`]: this.state._linkVariant,
|
|
16613
|
-
'kol-button--hide-label':
|
|
16660
|
+
'kol-button--hide-label': hideLabel,
|
|
16614
16661
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
16615
|
-
}), disabled:
|
|
16662
|
+
}), 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))));
|
|
16616
16663
|
}
|
|
16617
16664
|
constructor(hostRef) {
|
|
16618
16665
|
registerInstance(this, hostRef);
|
|
16619
16666
|
this.internalDescriptionById = nonce();
|
|
16620
|
-
this.catchRef = (ref) => {
|
|
16621
|
-
this.buttonRef = ref;
|
|
16622
|
-
};
|
|
16623
16667
|
this.onClick = (event) => {
|
|
16624
16668
|
var _a, _b;
|
|
16625
16669
|
if (this.state._type === 'submit') {
|
|
@@ -16833,7 +16877,8 @@ class KolButtonWc {
|
|
|
16833
16877
|
"_value": [8],
|
|
16834
16878
|
"_buttonVariant": [1, "_button-variant"],
|
|
16835
16879
|
"state": [32],
|
|
16836
|
-
"kolFocus": [64]
|
|
16880
|
+
"kolFocus": [64],
|
|
16881
|
+
"hideTooltip": [64]
|
|
16837
16882
|
},
|
|
16838
16883
|
"$listeners$": undefined,
|
|
16839
16884
|
"$lazyBundleId$": "-",
|
|
@@ -16898,7 +16943,7 @@ class KolCard {
|
|
|
16898
16943
|
};
|
|
16899
16944
|
}
|
|
16900
16945
|
render() {
|
|
16901
|
-
return (hAsync("div", { key: '
|
|
16946
|
+
return (hAsync("div", { key: '2c4c6ed4ad7ae1a4d94a2bce4b8112074407d3a4', class: "kol-card" }, hAsync("div", { key: '8d67307ad2d604f8385cf8324d4d2ca2ea8f3f59', class: "kol-card__header" }, hAsync(KolHeadingFc, { key: '0882673acb41e456947baba8f6ecd214c9ec14f6', class: "kol-card__headline", level: this.state._level }, this.state._label)), hAsync("div", { key: '707ac4c953039736573ed871b166938134e3e5db', class: "kol-card__content" }, hAsync("slot", { key: '6d3a0811b939a80ffb0665c113127a729b2c7a5c' })), this.state._hasCloser && (hAsync(KolButtonWcTag, { key: 'bb9c98cc3934e0f2d1507afbd6d1fd6368e3f3c8', class: "kol-card__close-button", "data-testid": "card-close-button", _hideLabel: true, _icons: {
|
|
16902
16947
|
left: {
|
|
16903
16948
|
icon: 'codicon codicon-close',
|
|
16904
16949
|
},
|
|
@@ -17228,25 +17273,10 @@ class ComboboxController extends InputIconController {
|
|
|
17228
17273
|
}
|
|
17229
17274
|
}
|
|
17230
17275
|
|
|
17231
|
-
const getRenderStates$1 = (state) => {
|
|
17232
|
-
var _a;
|
|
17233
|
-
const isMessageValid = ((_a = state._msg) === null || _a === void 0 ? void 0 : _a._type) === 'error';
|
|
17234
|
-
const hasMsg = isMessageValid && state._touched === true;
|
|
17235
|
-
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
17236
|
-
const ariaDescribedBy = [];
|
|
17237
|
-
if (hasMsg === true) {
|
|
17238
|
-
ariaDescribedBy.push(`${state._id}-error`);
|
|
17239
|
-
}
|
|
17240
|
-
if (hasHint === true) {
|
|
17241
|
-
ariaDescribedBy.push(`${state._id}-hint`);
|
|
17242
|
-
}
|
|
17243
|
-
return { hasMsg, hasHint, ariaDescribedBy };
|
|
17244
|
-
};
|
|
17245
|
-
|
|
17246
17276
|
const getRenderStates = (state) => {
|
|
17247
|
-
|
|
17248
|
-
const hasMessage = Boolean((
|
|
17249
|
-
const isMessageValidError = (
|
|
17277
|
+
const internMsg = convertMsgToInternMsg(state._msg);
|
|
17278
|
+
const hasMessage = Boolean((internMsg === null || internMsg === void 0 ? void 0 : internMsg.description) && internMsg.description.length > 0);
|
|
17279
|
+
const isMessageValidError = (internMsg === null || internMsg === void 0 ? void 0 : internMsg.type) === 'error' && hasMessage;
|
|
17250
17280
|
const hasError = isMessageValidError && state._touched === true;
|
|
17251
17281
|
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
17252
17282
|
const ariaDescribedBy = [];
|
|
@@ -17383,8 +17413,15 @@ const CustomSuggestionsToggleFc = ({ onClick, disabled }) => {
|
|
|
17383
17413
|
hAsync(KolIconTag, { _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') })));
|
|
17384
17414
|
};
|
|
17385
17415
|
|
|
17386
|
-
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {
|
|
17387
|
-
|
|
17416
|
+
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option, searchTerm }) => {
|
|
17417
|
+
const highlightSearchTerm = (text, searchTerm) => {
|
|
17418
|
+
if (!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()))
|
|
17419
|
+
return text;
|
|
17420
|
+
const regex = new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
|
|
17421
|
+
const parts = text.split(regex);
|
|
17422
|
+
return parts.map((part, partIndex) => (regex.test(part) ? hAsync("mark", { key: partIndex }, part) : part));
|
|
17423
|
+
};
|
|
17424
|
+
return (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: ref, "data-index": index, tabIndex: -1, role: "option", "aria-selected": selected ? 'true' : undefined, onClick: onClick, onMouseOver: onMouseOver, onFocus: onFocus, class: "kol-custom-suggestions-option", onKeyDown: onKeyDown }, highlightSearchTerm(String(option), searchTerm || '')));
|
|
17388
17425
|
};
|
|
17389
17426
|
|
|
17390
17427
|
const CustomSuggestionsOptionsGroupFc = ({ blockSuggestionMouseOver, onKeyDown, style }, children) => {
|
|
@@ -17480,8 +17517,9 @@ class KolCombobox {
|
|
|
17480
17517
|
};
|
|
17481
17518
|
}
|
|
17482
17519
|
getInputProps() {
|
|
17483
|
-
const { ariaDescribedBy } = getRenderStates
|
|
17484
|
-
|
|
17520
|
+
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
17521
|
+
const isDisabled = this.state._disabled === true;
|
|
17522
|
+
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) => {
|
|
17485
17523
|
this.controller.onFacade.onFocus(event);
|
|
17486
17524
|
this.inputHasFocus = true;
|
|
17487
17525
|
}, onBlur: (event) => {
|
|
@@ -17490,9 +17528,10 @@ class KolCombobox {
|
|
|
17490
17528
|
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder });
|
|
17491
17529
|
}
|
|
17492
17530
|
render() {
|
|
17493
|
-
|
|
17531
|
+
const isDisabled = this.state._disabled === true;
|
|
17532
|
+
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) &&
|
|
17494
17533
|
this._filteredSuggestions.length > 0 &&
|
|
17495
|
-
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, ref: (el) => {
|
|
17534
|
+
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
17496
17535
|
if (el)
|
|
17497
17536
|
this.refSuggestions[index] = el;
|
|
17498
17537
|
}, selected: this.state._value === option, onClick: () => {
|
|
@@ -17608,7 +17647,8 @@ class KolCombobox {
|
|
|
17608
17647
|
this._focusedOptionIndex = -1;
|
|
17609
17648
|
this.toggleListbox = () => {
|
|
17610
17649
|
var _a;
|
|
17611
|
-
|
|
17650
|
+
const isDisabled = this.state._disabled === true;
|
|
17651
|
+
if (isDisabled) {
|
|
17612
17652
|
this._isOpen = false;
|
|
17613
17653
|
}
|
|
17614
17654
|
else {
|
|
@@ -18197,7 +18237,7 @@ class KolForm {
|
|
|
18197
18237
|
}; }
|
|
18198
18238
|
}
|
|
18199
18239
|
|
|
18200
|
-
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}";
|
|
18240
|
+
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}";
|
|
18201
18241
|
var KolHeadingDefaultStyle0 = defaultStyleCss$z;
|
|
18202
18242
|
|
|
18203
18243
|
class KolHeading {
|
|
@@ -18326,15 +18366,13 @@ class KolImage {
|
|
|
18326
18366
|
};
|
|
18327
18367
|
}
|
|
18328
18368
|
validateAlt(value) {
|
|
18329
|
-
|
|
18330
|
-
required: true,
|
|
18331
|
-
});
|
|
18369
|
+
validateAlt(this, value, { required: true });
|
|
18332
18370
|
}
|
|
18333
18371
|
validateLoading(value) {
|
|
18334
18372
|
validateLoading(this, value);
|
|
18335
18373
|
}
|
|
18336
18374
|
validateSizes(value) {
|
|
18337
|
-
|
|
18375
|
+
validateImageSizes(this, value);
|
|
18338
18376
|
}
|
|
18339
18377
|
validateSrc(value) {
|
|
18340
18378
|
validateImageSource(this, value, {
|
|
@@ -18342,7 +18380,7 @@ class KolImage {
|
|
|
18342
18380
|
});
|
|
18343
18381
|
}
|
|
18344
18382
|
validateSrcset(value) {
|
|
18345
|
-
|
|
18383
|
+
validateImageSrcset(this, value);
|
|
18346
18384
|
}
|
|
18347
18385
|
componentWillLoad() {
|
|
18348
18386
|
this.validateAlt(this._alt);
|
|
@@ -18352,7 +18390,7 @@ class KolImage {
|
|
|
18352
18390
|
this.validateSrcset(this._srcset);
|
|
18353
18391
|
}
|
|
18354
18392
|
render() {
|
|
18355
|
-
return (hAsync("img", { key: '
|
|
18393
|
+
return (hAsync("img", { key: 'cca1e1b65e9aab11b4c15bea394d6c54ead1a123', class: "kol-image", alt: this.state._alt, loading: this.state._loading, sizes: this.state._sizes, src: this.state._src, srcset: this.state._srcset }));
|
|
18356
18394
|
}
|
|
18357
18395
|
static get watchers() { return {
|
|
18358
18396
|
"_alt": ["validateAlt"],
|
|
@@ -22271,6 +22309,7 @@ class KolNav {
|
|
|
22271
22309
|
}), key: index }, this.entry(collapsible, hideLabel, hasChildren, link, expanded), expanded && hAsync(this.linkList, { collapsible: collapsible, hideLabel: hideLabel, deep: deep + 1, links: link._children || [], orientation: orientation })));
|
|
22272
22310
|
}
|
|
22273
22311
|
initializeExpandedChildren() {
|
|
22312
|
+
this.state = Object.assign(Object.assign({}, this.state), { _expandedChildren: [] });
|
|
22274
22313
|
const handleBranch = (branch) => {
|
|
22275
22314
|
if (branch._active) {
|
|
22276
22315
|
if (branch._children) {
|
|
@@ -22299,9 +22338,9 @@ class KolNav {
|
|
|
22299
22338
|
const collapsible = this.state._collapsible === true;
|
|
22300
22339
|
const hideLabel = this.state._hideLabel === true;
|
|
22301
22340
|
const orientation = this.state._orientation;
|
|
22302
|
-
return (hAsync("div", { key: '
|
|
22341
|
+
return (hAsync("div", { key: '1768f2d1d6794f07607ad8a9f3953a4f17d3cd06', class: clsx('kol-nav', `kol-nav--${orientation}`, {
|
|
22303
22342
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
22304
|
-
}) }, hAsync("nav", { key: '
|
|
22343
|
+
}) }, hAsync("nav", { key: '6fceaf6abe991a38a3c4bb98741c9e1c5ad2f11a', class: "kol-nav__navigation", "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { key: '5ee2d35517877fad58f3c37446a88a4753a80bf5', collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })), hasCompactButton && (hAsync("div", { key: 'd8b7bcb8d56bad5fadc02fc6362d84c597c5f0c8', class: "kol-nav__compact" }, hAsync(KolButtonWcTag, { key: 'a6e055cb523095f7dfeed9edc1fd4a847973cc55', class: "kol-nav__toggle-button", _ariaControls: "nav", _ariaExpanded: !hideLabel, _icons: hideLabel ? 'codicon codicon-chevron-right' : 'codicon codicon-chevron-left', _hideLabel: true, _label: translate(hideLabel ? 'kol-nav-maximize' : 'kol-nav-minimize'), _on: {
|
|
22305
22344
|
onClick: () => {
|
|
22306
22345
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
22307
22346
|
},
|
|
@@ -22332,6 +22371,7 @@ class KolNav {
|
|
|
22332
22371
|
validateLinks(value) {
|
|
22333
22372
|
watchNavLinks('KolNav', this, value);
|
|
22334
22373
|
devHint(`[KolNav] The navigation structure is not yet validated recursively.`);
|
|
22374
|
+
this.initializeExpandedChildren();
|
|
22335
22375
|
}
|
|
22336
22376
|
validateOrientation(value) {
|
|
22337
22377
|
watchValidator(this, '_orientation', (value) => value === 'horizontal' || value === 'vertical', new Set(['Orientation {horizontal, vertical}']), value, {
|
|
@@ -22382,9 +22422,52 @@ class KolNav {
|
|
|
22382
22422
|
}; }
|
|
22383
22423
|
}
|
|
22384
22424
|
|
|
22385
|
-
const defaultStyleCss$h = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n
|
|
22425
|
+
const defaultStyleCss$h = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-pagination {\n align-items: center;\n display: grid;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n align-items: center;\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5em;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n}";
|
|
22386
22426
|
var KolPaginationDefaultStyle0 = defaultStyleCss$h;
|
|
22387
22427
|
|
|
22428
|
+
class KolPagination {
|
|
22429
|
+
constructor(hostRef) {
|
|
22430
|
+
registerInstance(this, hostRef);
|
|
22431
|
+
this._boundaryCount = 1;
|
|
22432
|
+
this._customClass = undefined;
|
|
22433
|
+
this._label = undefined;
|
|
22434
|
+
this._hasButtons = true;
|
|
22435
|
+
this._page = undefined;
|
|
22436
|
+
this._pageSize = 1;
|
|
22437
|
+
this._pageSizeOptions = [];
|
|
22438
|
+
this._on = undefined;
|
|
22439
|
+
this._siblingCount = 1;
|
|
22440
|
+
this._tooltipAlign = 'top';
|
|
22441
|
+
this._max = undefined;
|
|
22442
|
+
}
|
|
22443
|
+
render() {
|
|
22444
|
+
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 }));
|
|
22445
|
+
}
|
|
22446
|
+
static get style() { return {
|
|
22447
|
+
default: KolPaginationDefaultStyle0
|
|
22448
|
+
}; }
|
|
22449
|
+
static get cmpMeta() { return {
|
|
22450
|
+
"$flags$": 41,
|
|
22451
|
+
"$tagName$": "kol-pagination",
|
|
22452
|
+
"$members$": {
|
|
22453
|
+
"_boundaryCount": [2, "_boundary-count"],
|
|
22454
|
+
"_customClass": [1, "_custom-class"],
|
|
22455
|
+
"_label": [1],
|
|
22456
|
+
"_hasButtons": [8, "_has-buttons"],
|
|
22457
|
+
"_page": [2],
|
|
22458
|
+
"_pageSize": [1026, "_page-size"],
|
|
22459
|
+
"_pageSizeOptions": [1, "_page-size-options"],
|
|
22460
|
+
"_on": [16],
|
|
22461
|
+
"_siblingCount": [2, "_sibling-count"],
|
|
22462
|
+
"_tooltipAlign": [1, "_tooltip-align"],
|
|
22463
|
+
"_max": [2]
|
|
22464
|
+
},
|
|
22465
|
+
"$listeners$": undefined,
|
|
22466
|
+
"$lazyBundleId$": "-",
|
|
22467
|
+
"$attrsToReflect$": []
|
|
22468
|
+
}; }
|
|
22469
|
+
}
|
|
22470
|
+
|
|
22388
22471
|
const leftDoubleArrowIcon = {
|
|
22389
22472
|
left: 'codicon codicon-debug-reverse-continue',
|
|
22390
22473
|
};
|
|
@@ -22408,7 +22491,7 @@ const NUMBER_FORMATTER = new Intl.NumberFormat(userLanguage, {
|
|
|
22408
22491
|
minimumFractionDigits: 0,
|
|
22409
22492
|
maximumFractionDigits: 0,
|
|
22410
22493
|
});
|
|
22411
|
-
class
|
|
22494
|
+
class KolPaginationWc {
|
|
22412
22495
|
constructor(hostRef) {
|
|
22413
22496
|
registerInstance(this, hostRef);
|
|
22414
22497
|
this.nonce = nonce();
|
|
@@ -22714,12 +22797,9 @@ class KolPagination {
|
|
|
22714
22797
|
"_max": ["validateMax"],
|
|
22715
22798
|
"_tooltipAlign": ["validateTooltipAlign"]
|
|
22716
22799
|
}; }
|
|
22717
|
-
static get style() { return {
|
|
22718
|
-
default: KolPaginationDefaultStyle0
|
|
22719
|
-
}; }
|
|
22720
22800
|
static get cmpMeta() { return {
|
|
22721
|
-
"$flags$":
|
|
22722
|
-
"$tagName$": "kol-pagination",
|
|
22801
|
+
"$flags$": 0,
|
|
22802
|
+
"$tagName$": "kol-pagination-wc",
|
|
22723
22803
|
"$members$": {
|
|
22724
22804
|
"_boundaryCount": [2, "_boundary-count"],
|
|
22725
22805
|
"_customClass": [1, "_custom-class"],
|
|
@@ -22784,8 +22864,9 @@ function getOppositeAxis(axis) {
|
|
|
22784
22864
|
function getAxisLength(axis) {
|
|
22785
22865
|
return axis === 'y' ? 'height' : 'width';
|
|
22786
22866
|
}
|
|
22867
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
22787
22868
|
function getSideAxis(placement) {
|
|
22788
|
-
return
|
|
22869
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
22789
22870
|
}
|
|
22790
22871
|
function getAlignmentAxis(placement) {
|
|
22791
22872
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -22810,19 +22891,19 @@ function getExpandedPlacements(placement) {
|
|
|
22810
22891
|
function getOppositeAlignmentPlacement(placement) {
|
|
22811
22892
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
22812
22893
|
}
|
|
22894
|
+
const lrPlacement = ['left', 'right'];
|
|
22895
|
+
const rlPlacement = ['right', 'left'];
|
|
22896
|
+
const tbPlacement = ['top', 'bottom'];
|
|
22897
|
+
const btPlacement = ['bottom', 'top'];
|
|
22813
22898
|
function getSideList(side, isStart, rtl) {
|
|
22814
|
-
const lr = ['left', 'right'];
|
|
22815
|
-
const rl = ['right', 'left'];
|
|
22816
|
-
const tb = ['top', 'bottom'];
|
|
22817
|
-
const bt = ['bottom', 'top'];
|
|
22818
22899
|
switch (side) {
|
|
22819
22900
|
case 'top':
|
|
22820
22901
|
case 'bottom':
|
|
22821
|
-
if (rtl) return isStart ?
|
|
22822
|
-
return isStart ?
|
|
22902
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
22903
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
22823
22904
|
case 'left':
|
|
22824
22905
|
case 'right':
|
|
22825
|
-
return isStart ?
|
|
22906
|
+
return isStart ? tbPlacement : btPlacement;
|
|
22826
22907
|
default:
|
|
22827
22908
|
return [];
|
|
22828
22909
|
}
|
|
@@ -23606,6 +23687,8 @@ const inline = function (options) {
|
|
|
23606
23687
|
};
|
|
23607
23688
|
};
|
|
23608
23689
|
|
|
23690
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
23691
|
+
|
|
23609
23692
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
23610
23693
|
// Derivable.
|
|
23611
23694
|
|
|
@@ -23619,7 +23702,7 @@ async function convertValueToCoords(state, options) {
|
|
|
23619
23702
|
const side = getSide(placement);
|
|
23620
23703
|
const alignment = getAlignment(placement);
|
|
23621
23704
|
const isVertical = getSideAxis(placement) === 'y';
|
|
23622
|
-
const mainAxisMulti =
|
|
23705
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
23623
23706
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
23624
23707
|
const rawValue = evaluate(options, state);
|
|
23625
23708
|
|
|
@@ -23819,7 +23902,7 @@ const limitShift = function (options) {
|
|
|
23819
23902
|
if (checkCrossAxis) {
|
|
23820
23903
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
23821
23904
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
23822
|
-
const isOriginSide =
|
|
23905
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
23823
23906
|
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
23824
23907
|
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
23825
23908
|
if (crossAxisCoord < limitMin) {
|
|
@@ -23964,6 +24047,7 @@ function isShadowRoot(value) {
|
|
|
23964
24047
|
}
|
|
23965
24048
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
23966
24049
|
}
|
|
24050
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
23967
24051
|
function isOverflowElement(element) {
|
|
23968
24052
|
const {
|
|
23969
24053
|
overflow,
|
|
@@ -23971,27 +24055,32 @@ function isOverflowElement(element) {
|
|
|
23971
24055
|
overflowY,
|
|
23972
24056
|
display
|
|
23973
24057
|
} = getComputedStyle(element);
|
|
23974
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
24058
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
23975
24059
|
}
|
|
24060
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
23976
24061
|
function isTableElement(element) {
|
|
23977
|
-
return
|
|
24062
|
+
return tableElements.has(getNodeName(element));
|
|
23978
24063
|
}
|
|
24064
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
23979
24065
|
function isTopLayer(element) {
|
|
23980
|
-
return
|
|
24066
|
+
return topLayerSelectors.some(selector => {
|
|
23981
24067
|
try {
|
|
23982
24068
|
return element.matches(selector);
|
|
23983
|
-
} catch (
|
|
24069
|
+
} catch (_e) {
|
|
23984
24070
|
return false;
|
|
23985
24071
|
}
|
|
23986
24072
|
});
|
|
23987
24073
|
}
|
|
24074
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
24075
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
24076
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
23988
24077
|
function isContainingBlock(elementOrCss) {
|
|
23989
24078
|
const webkit = isWebKit();
|
|
23990
24079
|
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
23991
24080
|
|
|
23992
24081
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
23993
24082
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
23994
|
-
return
|
|
24083
|
+
return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
|
|
23995
24084
|
}
|
|
23996
24085
|
function getContainingBlock(element) {
|
|
23997
24086
|
let currentNode = getParentNode(element);
|
|
@@ -24009,8 +24098,9 @@ function isWebKit() {
|
|
|
24009
24098
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
24010
24099
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
24011
24100
|
}
|
|
24101
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
24012
24102
|
function isLastTraversableNode(node) {
|
|
24013
|
-
return
|
|
24103
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
24014
24104
|
}
|
|
24015
24105
|
function getComputedStyle(element) {
|
|
24016
24106
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -24928,7 +25018,7 @@ class KolPopover {
|
|
|
24928
25018
|
});
|
|
24929
25019
|
}
|
|
24930
25020
|
render() {
|
|
24931
|
-
return (hAsync(Host, { key: '
|
|
25021
|
+
return (hAsync(Host, { key: '53179ace5c0dfabbe1dd00ba8ddfe453ef55ccd5', ref: this.catchHostAndTriggerElement, class: "kol-popover" }, hAsync("div", { key: 'f42aafe81aaa0a09526b4e9923a96133ee81c5d2', class: clsx('kol-popover__content', { 'kol-popover__content--visible': this.state._visible }), ref: this.catchPopoverElement, hidden: !this.state._show }, hAsync("div", { key: '25719436c820c214a2e3c0fac47449f842c4f68c', class: clsx('kol-popover__arrow', `kol-popover__arrow--${this.state._align}`), ref: this.catchArrowElement }), hAsync("slot", { key: 'fff04758761fb36389c6698b17730b604981ca66' }))));
|
|
24932
25022
|
}
|
|
24933
25023
|
validateAlign(value) {
|
|
24934
25024
|
validateAlign(this, value);
|
|
@@ -24965,7 +25055,7 @@ class KolPopover {
|
|
|
24965
25055
|
}; }
|
|
24966
25056
|
}
|
|
24967
25057
|
|
|
24968
|
-
const defaultStyleCss$g = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border:
|
|
25058
|
+
const defaultStyleCss$g = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}";
|
|
24969
25059
|
var KolPopoverButtonDefaultStyle0 = defaultStyleCss$g;
|
|
24970
25060
|
|
|
24971
25061
|
class KolPopoverButton$1 {
|
|
@@ -24998,7 +25088,7 @@ class KolPopoverButton$1 {
|
|
|
24998
25088
|
void ((_a = this.ref) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
24999
25089
|
}
|
|
25000
25090
|
render() {
|
|
25001
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
25091
|
+
return (hAsync(KolPopoverButtonWcTag, { key: '0a44e73709e339e865b30179bf6fb9ae3c43450e', ref: (element) => (this.ref = element), _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _hideLabel: this._hideLabel, _icons: this._icons, _id: this._id, _label: this._label, _name: this._name, _on: this._on, _popoverAlign: this._popoverAlign, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }, hAsync("slot", { key: 'd23b56ded35b20e1449d1cff05b6ad8bafb02a0b', name: "expert", slot: "expert" }), hAsync("slot", { key: '70ec7287f91d0333c2849a3a2deb259d13a19d09' })));
|
|
25002
25092
|
}
|
|
25003
25093
|
static get style() { return {
|
|
25004
25094
|
default: KolPopoverButtonDefaultStyle0
|
|
@@ -25072,14 +25162,18 @@ class KolPopoverButton {
|
|
|
25072
25162
|
void ((_a = this.refPopover) === null || _a === void 0 ? void 0 : _a.hidePopover());
|
|
25073
25163
|
}
|
|
25074
25164
|
handleBeforeToggle(event) {
|
|
25165
|
+
var _a;
|
|
25075
25166
|
if (event.newState === 'closed') {
|
|
25076
25167
|
this.justClosed = true;
|
|
25077
25168
|
setTimeout(() => {
|
|
25078
25169
|
this.justClosed = false;
|
|
25079
25170
|
}, 10);
|
|
25080
25171
|
}
|
|
25081
|
-
else
|
|
25082
|
-
this.refPopover
|
|
25172
|
+
else {
|
|
25173
|
+
if (this.refPopover) {
|
|
25174
|
+
this.refPopover.style.visibility = 'hidden';
|
|
25175
|
+
}
|
|
25176
|
+
void ((_a = this.refButton) === null || _a === void 0 ? void 0 : _a.hideTooltip());
|
|
25083
25177
|
}
|
|
25084
25178
|
}
|
|
25085
25179
|
alignPopover() {
|
|
@@ -25123,7 +25217,7 @@ class KolPopoverButton {
|
|
|
25123
25217
|
(_c = this.cleanupAutoPositioning) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
25124
25218
|
}
|
|
25125
25219
|
render() {
|
|
25126
|
-
return (hAsync("div", { key: '
|
|
25220
|
+
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' }))));
|
|
25127
25221
|
}
|
|
25128
25222
|
validatePopoverAlign(value) {
|
|
25129
25223
|
validatePopoverAlign(this, value);
|
|
@@ -25180,7 +25274,7 @@ const CycleSvg = ({ state }) => {
|
|
|
25180
25274
|
};
|
|
25181
25275
|
const BarSvg = ({ state }) => {
|
|
25182
25276
|
const percentage = 100 * (state._value / state._max);
|
|
25183
|
-
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",
|
|
25277
|
+
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)` } })));
|
|
25184
25278
|
};
|
|
25185
25279
|
const createProgressSVG = (state) => {
|
|
25186
25280
|
switch (state._variant) {
|
|
@@ -25212,10 +25306,10 @@ class KolProgress {
|
|
|
25212
25306
|
const isPercentage = this.state._unit === '%';
|
|
25213
25307
|
const liveProgressValue = isPercentage ? `${Math.round((this.state._liveValue / this.state._max) * 100)}` : this.state._liveValue;
|
|
25214
25308
|
const displayValue = isPercentage ? Math.round((this.state._value / this.state._max) * 100) : this.state._value;
|
|
25215
|
-
return (hAsync("div", { key: '
|
|
25309
|
+
return (hAsync("div", { key: '821bf1d4fece816591e8b567cf2026b44eb4b278', class: "kol-progress" }, hAsync("div", { key: '59bcae97c107e7b369ceb28a96b70215cfff498b', "aria-hidden": "true", class: {
|
|
25216
25310
|
'kol-progress__cycle': this.state._variant === 'cycle',
|
|
25217
25311
|
'kol-progress__bar': this.state._variant === 'bar',
|
|
25218
|
-
} }, this.state._variant === 'bar' && this.state._label && hAsync("div", { key: '
|
|
25312
|
+
} }, 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}`)));
|
|
25219
25313
|
}
|
|
25220
25314
|
validateLabel(value) {
|
|
25221
25315
|
validateLabel(this, value);
|
|
@@ -25325,7 +25419,7 @@ class KolQuote {
|
|
|
25325
25419
|
}
|
|
25326
25420
|
render() {
|
|
25327
25421
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
25328
|
-
return (hAsync("figure", { key: '
|
|
25422
|
+
return (hAsync("figure", { key: 'e68968696617503220e774f6b0a11c6c7f256582', class: clsx('kol-quote', `kol-quote--${this.state._variant}`) }, this.state._variant === 'block' ? (hAsync("blockquote", { class: "kol-quote__blockquote", cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))) : (hAsync("q", { class: "kol-quote__quote", cite: this.state._href }, this.state._quote, hAsync("span", { "aria-hidden": !hasExpertSlot ? 'true' : undefined, hidden: !hasExpertSlot }, hAsync("slot", { name: "expert" })))), typeof this.state._label === 'string' && this.state._label.length > 0 && (hAsync("figcaption", { key: '918f5c9884c03b3275473276624f4585490a2069', class: "kol-quote__figcaption" }, hAsync("cite", { key: '609c527c94b38135a0fb2af474f39b61ce69bc74', class: "kol-quote__cite" }, hAsync(KolLinkTag, { key: 'ade63d54115b41bfaa130c054023b0004e49dda5', _href: this.state._href, _label: this.state._label, _target: "_blank" }))))));
|
|
25329
25423
|
}
|
|
25330
25424
|
static get watchers() { return {
|
|
25331
25425
|
"_label": ["validateLabel"],
|
|
@@ -25538,13 +25632,13 @@ class KolSelect {
|
|
|
25538
25632
|
} });
|
|
25539
25633
|
}
|
|
25540
25634
|
render() {
|
|
25541
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
25635
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'bc7ee077bca2efc065987ce71be494bc78712b0a' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2bde683bfdf19e78a6aa6d980925aa6d6b06ce20', state: this.state }, hAsync("form", { key: '582987d654fa36f36a292d2cde2ca57190fc20bd', onSubmit: (event) => {
|
|
25542
25636
|
event.preventDefault();
|
|
25543
25637
|
propagateSubmitEventToForm({
|
|
25544
25638
|
form: this.host,
|
|
25545
25639
|
ref: this.selectRef,
|
|
25546
25640
|
});
|
|
25547
|
-
} }, hAsync("input", { key: '
|
|
25641
|
+
} }, hAsync("input", { key: '0de3d2fffb493d7f5e71f0442578236b54a37ba2', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: 'eff29e3d817ccfee364b7452c46a38e5162bd905' }, this.getSelectProps()))))));
|
|
25548
25642
|
}
|
|
25549
25643
|
constructor(hostRef) {
|
|
25550
25644
|
registerInstance(this, hostRef);
|
|
@@ -25798,7 +25892,8 @@ class KolSingleSelect {
|
|
|
25798
25892
|
this._hasOpened = false;
|
|
25799
25893
|
}
|
|
25800
25894
|
clearSelection() {
|
|
25801
|
-
|
|
25895
|
+
const isDisabled = this.state._disabled === true;
|
|
25896
|
+
if (isDisabled) {
|
|
25802
25897
|
return;
|
|
25803
25898
|
}
|
|
25804
25899
|
else {
|
|
@@ -25882,8 +25977,9 @@ class KolSingleSelect {
|
|
|
25882
25977
|
};
|
|
25883
25978
|
}
|
|
25884
25979
|
getInputProps() {
|
|
25885
|
-
const { ariaDescribedBy } = getRenderStates
|
|
25886
|
-
|
|
25980
|
+
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25981
|
+
const isDisabled = this.state._disabled === true;
|
|
25982
|
+
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) => {
|
|
25887
25983
|
this.controller.onFacade.onFocus(event);
|
|
25888
25984
|
this.inputHasFocus = true;
|
|
25889
25985
|
}, onBlur: (event) => {
|
|
@@ -25893,13 +25989,14 @@ class KolSingleSelect {
|
|
|
25893
25989
|
}
|
|
25894
25990
|
render() {
|
|
25895
25991
|
var _a;
|
|
25896
|
-
|
|
25992
|
+
const isDisabled = this.state._disabled === true;
|
|
25993
|
+
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: () => {
|
|
25897
25994
|
var _a;
|
|
25898
25995
|
this.clearSelection();
|
|
25899
25996
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
25900
25997
|
}, class: clsx('kol-single-select__delete', {
|
|
25901
|
-
'kol-single-select__delete--disabled':
|
|
25902
|
-
}) })), hAsync(CustomSuggestionsToggleFc, { key: '
|
|
25998
|
+
'kol-single-select__delete--disabled': isDisabled,
|
|
25999
|
+
}) })), 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) => {
|
|
25903
26000
|
if (el)
|
|
25904
26001
|
this.refOptions[index] = el;
|
|
25905
26002
|
}, selected: this._value === option.value, onClick: (event) => {
|
|
@@ -26038,7 +26135,8 @@ class KolSingleSelect {
|
|
|
26038
26135
|
this.toggleListbox = (event) => {
|
|
26039
26136
|
var _a;
|
|
26040
26137
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
26041
|
-
|
|
26138
|
+
const isDisabled = this.state._disabled === true;
|
|
26139
|
+
if (isDisabled) {
|
|
26042
26140
|
return;
|
|
26043
26141
|
}
|
|
26044
26142
|
else {
|
|
@@ -26268,7 +26366,7 @@ class KolSkipNav {
|
|
|
26268
26366
|
};
|
|
26269
26367
|
}
|
|
26270
26368
|
render() {
|
|
26271
|
-
return (hAsync("nav", { key: '
|
|
26369
|
+
return (hAsync("nav", { key: '912f8ac6ce63cddd0fa738db9ef6ff987b2a2db9', class: "kol-skip-nav", "aria-label": this.state._label }, hAsync("ul", { key: '79991f7d918e9bbf6891d479804f2520356f2a41', class: "kol-skip-nav__list" }, this.state._links.map((link, index) => {
|
|
26272
26370
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
26273
26371
|
}))));
|
|
26274
26372
|
}
|
|
@@ -26336,7 +26434,7 @@ class KolSpin {
|
|
|
26336
26434
|
};
|
|
26337
26435
|
}
|
|
26338
26436
|
render() {
|
|
26339
|
-
return (hAsync(Host, { key: '
|
|
26437
|
+
return (hAsync(Host, { key: 'e1cc9c4961a7a43913cf6386c2c6ce4414afe256', class: "kol-spin" }, this.state._show ? (hAsync("span", { "aria-busy": "true", "aria-label": translate('kol-action-running'), "aria-live": "polite", class: clsx('kol-spin__spinner', `kol-spin__spinner--${this.state._variant}`), role: "alert" }, renderSpin(this.state._variant))) : (this.showToggled && hAsync("span", { "aria-label": translate('kol-action-done'), "aria-busy": "false", "aria-live": "polite", role: "alert" }))));
|
|
26340
26438
|
}
|
|
26341
26439
|
validateShow(value) {
|
|
26342
26440
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -26376,6 +26474,9 @@ var KolSplitButtonDefaultStyle0 = defaultStyleCss$9;
|
|
|
26376
26474
|
class KolSplitButton {
|
|
26377
26475
|
constructor(hostRef) {
|
|
26378
26476
|
registerInstance(this, hostRef);
|
|
26477
|
+
this.catchPrimaryRef = (ref) => {
|
|
26478
|
+
this.primaryButtonWcRef = ref;
|
|
26479
|
+
};
|
|
26379
26480
|
this.clickButtonHandler = {
|
|
26380
26481
|
onClick: (event) => {
|
|
26381
26482
|
var _a, _b;
|
|
@@ -26383,9 +26484,6 @@ class KolSplitButton {
|
|
|
26383
26484
|
if (typeof ((_a = this._on) === null || _a === void 0 ? void 0 : _a.onClick) === 'function') {
|
|
26384
26485
|
(_b = this._on) === null || _b === void 0 ? void 0 : _b.onClick(event, this._value);
|
|
26385
26486
|
}
|
|
26386
|
-
else {
|
|
26387
|
-
this.toggleDropdown();
|
|
26388
|
-
}
|
|
26389
26487
|
},
|
|
26390
26488
|
};
|
|
26391
26489
|
this.clickToggleHandler = {
|
|
@@ -26400,7 +26498,9 @@ class KolSplitButton {
|
|
|
26400
26498
|
this.handleOnClose = () => {
|
|
26401
26499
|
this.state = Object.assign(Object.assign({}, this.state), { _show: false });
|
|
26402
26500
|
};
|
|
26501
|
+
this._accessKey = undefined;
|
|
26403
26502
|
this._ariaControls = undefined;
|
|
26503
|
+
this._ariaDescription = undefined;
|
|
26404
26504
|
this._ariaExpanded = undefined;
|
|
26405
26505
|
this._ariaSelected = undefined;
|
|
26406
26506
|
this._customClass = undefined;
|
|
@@ -26412,6 +26512,7 @@ class KolSplitButton {
|
|
|
26412
26512
|
this._name = undefined;
|
|
26413
26513
|
this._on = undefined;
|
|
26414
26514
|
this._role = undefined;
|
|
26515
|
+
this._shortKey = undefined;
|
|
26415
26516
|
this._syncValueBySelector = undefined;
|
|
26416
26517
|
this._tooltipAlign = 'top';
|
|
26417
26518
|
this._type = 'button';
|
|
@@ -26421,12 +26522,19 @@ class KolSplitButton {
|
|
|
26421
26522
|
_show: false,
|
|
26422
26523
|
};
|
|
26423
26524
|
}
|
|
26525
|
+
async getValue() {
|
|
26526
|
+
return this._value;
|
|
26527
|
+
}
|
|
26528
|
+
async kolFocus() {
|
|
26529
|
+
var _a;
|
|
26530
|
+
await ((_a = this.primaryButtonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
26531
|
+
}
|
|
26424
26532
|
render() {
|
|
26425
26533
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
26426
|
-
return (hAsync("div", { key: '
|
|
26534
|
+
return (hAsync("div", { key: '66a929dff8d069efce9546856d5d4c86e49320a5', class: "kol-split-button" }, hAsync("div", { key: '85505f259071971082af5d60bc838e541663c3da', class: "kol-split-button__root" }, hAsync(KolButtonWcTag, { key: 'c4a089a9afce71f21a96b236f2a8c91662ad78f0', class: clsx('kol-split-button__button', {
|
|
26427
26535
|
[this._variant]: this._variant !== 'custom',
|
|
26428
26536
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
26429
|
-
}), _ariaControls: this._ariaControls, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _role: this._role, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: '
|
|
26537
|
+
}), ref: this.catchPrimaryRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaDescription: this._ariaDescription, _ariaExpanded: this._ariaExpanded, _ariaSelected: this._ariaSelected, _customClass: this._customClass, _disabled: this._disabled, _icons: this._icons, _id: this._id, _hideLabel: this._hideLabel, _label: this._label, _name: this._name, _on: this.clickButtonHandler, _role: this._role, _shortKey: this._shortKey, _syncValueBySelector: this._syncValueBySelector, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _buttonVariant: this._variant }), hAsync("div", { key: 'e8612f334a399f23bbc9e3a257bd5e56dc26ca71', class: "kol-split-button__horizontal-line" }), hAsync(KolButtonWcTag, { key: '168c422e85261c679a7563b267cdbf25555b1385', class: "kol-split-button__secondary-button", _disabled: this._disabled, _hideLabel: true, _icons: "codicon codicon-triangle-down", _label: this.state._show ? translate(`${i18nDropdownLabel}-close`) : translate(`${i18nDropdownLabel}-open`), _on: this.clickToggleHandler })), hAsync(KolPopoverWcTag, { key: '34083ba6afef3fc9e04397800552a5e9755d3f00', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: '659cd50ab13bfdb752d0d2930e7b53737a499e40' }))));
|
|
26430
26538
|
}
|
|
26431
26539
|
async closePopup() {
|
|
26432
26540
|
this.handleOnClose();
|
|
@@ -26440,7 +26548,9 @@ class KolSplitButton {
|
|
|
26440
26548
|
"$flags$": 57,
|
|
26441
26549
|
"$tagName$": "kol-split-button",
|
|
26442
26550
|
"$members$": {
|
|
26551
|
+
"_accessKey": [1, "_access-key"],
|
|
26443
26552
|
"_ariaControls": [1, "_aria-controls"],
|
|
26553
|
+
"_ariaDescription": [1, "_aria-description"],
|
|
26444
26554
|
"_ariaExpanded": [4, "_aria-expanded"],
|
|
26445
26555
|
"_ariaSelected": [4, "_aria-selected"],
|
|
26446
26556
|
"_customClass": [1, "_custom-class"],
|
|
@@ -26452,12 +26562,15 @@ class KolSplitButton {
|
|
|
26452
26562
|
"_name": [1],
|
|
26453
26563
|
"_on": [16],
|
|
26454
26564
|
"_role": [1],
|
|
26565
|
+
"_shortKey": [1, "_short-key"],
|
|
26455
26566
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
26456
26567
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
26457
26568
|
"_type": [1],
|
|
26458
26569
|
"_value": [8],
|
|
26459
26570
|
"_variant": [1],
|
|
26460
26571
|
"state": [32],
|
|
26572
|
+
"getValue": [64],
|
|
26573
|
+
"kolFocus": [64],
|
|
26461
26574
|
"closePopup": [64]
|
|
26462
26575
|
},
|
|
26463
26576
|
"$listeners$": undefined,
|
|
@@ -26523,7 +26636,7 @@ class KolTableSettings {
|
|
|
26523
26636
|
}
|
|
26524
26637
|
render() {
|
|
26525
26638
|
const sortedColumns = [...this.tableSettings.columns].sort((a, b) => a.position - b.position);
|
|
26526
|
-
return (hAsync(KolPopoverButtonWcTag, { key: '
|
|
26639
|
+
return (hAsync(KolPopoverButtonWcTag, { key: '0ca51ae3cc20e2c0a3e8af8d287ec0a0414139bc', ref: (el) => (this.popoverRef = el), class: "kol-table-settings", _icons: "codicon codicon-settings-gear", _label: translate('kol-table-settings'), _popoverAlign: "top", _hideLabel: true }, hAsync("div", { key: 'e5fbc57fd59529262b64192a8013d84be69f0f9b', class: "kol-table-settings__content" }, hAsync(KolHeadingTag, { key: 'f15bdeface7b959ddd25ed3fe76d5ad262954091', _label: translate('kol-table-settings'), _level: 0 }), this.errorMessage && hAsync(KolAlertWcTag, { key: '286889a668bc874f1688b06ad145c71bdc5cde6b', _type: "error", _label: this.errorMessage, _variant: "msg", class: "kol-table-settings__error-message" }), hAsync("form", { key: 'de4d015a4bf8123a0f61cb94a6d546b7fc2a947c', onSubmit: this.handleSubmit.bind(this) }, hAsync("div", { key: '5f59e3f62159570ce663ee4946c45305064c47f0', class: "kol-table-settings__columns-container" }, hAsync("div", { key: '316fc127e3d68faa71e57c055cabfa6635ce7732', class: "kol-table-settings__columns" }, sortedColumns.map((column, index) => (hAsync("div", { key: column.key, class: "kol-table-settings__column" }, hAsync(KolInputCheckboxTag, { _checked: column.visible, _label: translate('kol-table-settings-show-column', { placeholders: { column: column.label } }), _value: true, _hideLabel: true, _on: { onInput: (_, value) => this.handleVisibilityChange(column.key, value) } }), hAsync("span", null, column.label), hAsync(KolInputNumberTag, { _hideLabel: true, _value: column.width, _label: translate('kol-table-settings-column-width', { placeholders: { column: column.label } }), _min: 1, _on: { onInput: (_, value) => this.handleWidthChange(column.key, value) } }), hAsync(KolButtonWcTag, { _icons: "codicon codicon-arrow-up", _label: translate('kol-table-settings-move-up', { placeholders: { column: column.label } }), _hideLabel: true, _buttonVariant: "ghost", _on: { onClick: () => this.moveColumn(column.key, 'up') }, _disabled: index === 0, "data-testid": "table-settings-move-up" }), hAsync(KolButtonWcTag, { _icons: "codicon codicon-arrow-down", _label: translate('kol-table-settings-move-down', { placeholders: { column: column.label } }), _hideLabel: true, _buttonVariant: "ghost", _on: { onClick: () => this.moveColumn(column.key, 'down') }, _disabled: index === sortedColumns.length - 1, "data-testid": "table-settings-move-down" })))))), hAsync("div", { key: '4e7a2481531e1cf0c387df5476efd5b9044f27d5', class: "kol-table-settings__actions" }, hAsync(KolButtonWcTag, { key: 'b4ad0c611d272a9e4f29d93ebcf018febb16cf83', _label: translate('kol-table-settings-cancel'), _buttonVariant: "secondary", _on: { onClick: () => this.handleCancel() }, "data-testid": "table-settings-cancel" }), hAsync(KolButtonWcTag, { key: 'b46efad370ce482f80e181acab237ce0a8433711', _label: translate('kol-table-settings-apply'), _buttonVariant: "primary", _type: "submit", "data-testid": "table-settings-apply" }))))));
|
|
26527
26640
|
}
|
|
26528
26641
|
get host() { return getElement(this); }
|
|
26529
26642
|
static get watchers() { return {
|
|
@@ -26584,7 +26697,7 @@ const validateTableSettings = (component, value) => {
|
|
|
26584
26697
|
watchValidator(component, `_tableSettings`, (value) => typeof value === 'object' && value !== null, new Set(['TableSettings']), value);
|
|
26585
26698
|
};
|
|
26586
26699
|
|
|
26587
|
-
const defaultStyleCss$8 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 1px solid #000;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}\n@layer kol-component {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n @media (min-width: 1024px) {\n .kol-pagination {\n display: flex;\n }\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n}";
|
|
26700
|
+
const defaultStyleCss$8 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}\n@layer kol-component {\n .kol-pagination {\n align-items: center;\n display: grid;\n gap: calc(16rem / var(--kolibri-root-font-size, 16));\n grid-template-columns: 1fr auto;\n }\n .kol-pagination__navigation-list {\n align-items: center;\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5em;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .kol-pagination__separator:before {\n content: \"•••\";\n }\n}\n@layer kol-component {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n display: grid;\n place-items: center;\n }\n @media (min-width: 1024px) {\n .kol-table-stateful__pagination, .kol-table-stateful__pagination-wrapper {\n grid-auto-flow: column;\n }\n }\n .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n @media (min-width: 1024px) {\n .kol-pagination {\n display: flex;\n }\n }\n @media (max-width: 1024px) {\n .kol-pagination {\n flex-direction: column;\n }\n }\n}";
|
|
26588
26701
|
var KolTableStatefulDefaultStyle0 = defaultStyleCss$8;
|
|
26589
26702
|
|
|
26590
26703
|
const PAGINATION_OPTIONS = [10, 20, 50, 100];
|
|
@@ -26860,7 +26973,7 @@ class KolTableStateful {
|
|
|
26860
26973
|
? this.state._data.length.toString()
|
|
26861
26974
|
: '0',
|
|
26862
26975
|
},
|
|
26863
|
-
})), hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(
|
|
26976
|
+
})), hAsync("div", { class: "kol-table-stateful__pagination-wrapper" }, hAsync(KolPaginationWcTag, { class: "test", _boundaryCount: this.state._pagination._boundaryCount, _customClass: this.state._pagination._customClass, _on: this.handlePagination, _page: this.state._pagination._page, _pageSize: this.state._pagination._pageSize, _pageSizeOptions: this.state._pagination._pageSizeOptions || PAGINATION_OPTIONS, _siblingCount: this.state._pagination._siblingCount, _tooltipAlign: "bottom", _max: this.state._pagination._max || this.state._pagination._max || this.state._data.length, _label: label }))));
|
|
26864
26977
|
}
|
|
26865
26978
|
getHeaderCellSortState(headerCell) {
|
|
26866
26979
|
if (!this.disableSort && typeof headerCell.compareFn === 'function') {
|
|
@@ -26920,7 +27033,7 @@ class KolTableStateful {
|
|
|
26920
27033
|
horizontal: (_d = (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) }))))) !== null && _d !== void 0 ? _d : [],
|
|
26921
27034
|
vertical: (_f = (_e = this.state._headers.vertical) === null || _e === void 0 ? void 0 : _e.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) }))))) !== null && _f !== void 0 ? _f : [],
|
|
26922
27035
|
};
|
|
26923
|
-
return (hAsync(Host, { key: '
|
|
27036
|
+
return (hAsync(Host, { key: 'ae9fe552c93f1ef8273be72a54865e524abc550d', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: '4409842d643b60aa5a19e31394e7ec40823d10e8', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
26924
27037
|
onSort: (_, payload) => {
|
|
26925
27038
|
this.handleSort(payload);
|
|
26926
27039
|
},
|
|
@@ -26970,7 +27083,7 @@ class KolTableStateful {
|
|
|
26970
27083
|
}; }
|
|
26971
27084
|
}
|
|
26972
27085
|
|
|
26973
|
-
const defaultStyleCss$7 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 1px solid #000;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}";
|
|
27086
|
+
const defaultStyleCss$7 = "@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-global {\n :host {\n font-size: rem(16);\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-button {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"\";\n }\n .kol-button__text {\n margin: auto;\n width: 100%;\n }\n}\n@layer kol-component {\n .kol-popover-button__button {\n display: inline-block;\n }\n .kol-popover-button__popover {\n border: 0;\n margin: 0;\n padding: 0;\n }\n}\n@layer kol-component {\n .kol-table-settings {\n background: #fff;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n }\n .kol-table-settings__columns-container {\n margin-top: calc(16rem / var(--kolibri-root-font-size, 16));\n max-height: calc(200rem / var(--kolibri-root-font-size, 16));\n overflow: auto;\n }\n .kol-table-settings__columns {\n align-items: center;\n display: grid;\n gap: calc(8rem / var(--kolibri-root-font-size, 16));\n grid-auto-rows: min-content;\n grid-template-columns: min-content 1fr calc(100rem / var(--kolibri-root-font-size, 16)) auto auto;\n overflow: hidden;\n }\n .kol-table-settings__column {\n display: contents;\n }\n}\n@layer kol-component {\n .kol-table {\n display: block;\n max-width: 100%;\n position: relative;\n }\n .kol-table__scroll-container {\n overflow-x: auto;\n overflow-y: hidden;\n }\n .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .kol-table__table {\n width: 100%;\n }\n .kol-table__caption {\n text-align: start;\n min-height: var(--a11y-min-size);\n padding-right: var(--a11y-min-size);\n }\n .kol-table__focus-element {\n font-size: 0;\n }\n .kol-table__sort-button .kol-button {\n color: inherit;\n }\n .kol-table__body {\n text-align: left;\n }\n .kol-table__body .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-left {\n text-align: left;\n }\n .kol-table__cell--align-left .kol-button__text {\n justify-items: start;\n }\n .kol-table__cell--align-center {\n text-align: center;\n }\n .kol-table__cell--align-center .kol-button__text {\n justify-items: center;\n }\n .kol-table__cell--align-right {\n text-align: right;\n }\n .kol-table__cell--align-right .kol-button__text {\n justify-items: end;\n }\n .kol-table__cell--selection {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .kol-table__spacer {\n display: none;\n }\n .kol-table__selection-label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .kol-table__selection-label--disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .kol-table__selection-input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .kol-table__selection-input:disabled {\n cursor: not-allowed;\n }\n .kol-table__selection-input:before {\n content: \"\";\n }\n .kol-table__selection-input--checkbox {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 1.5;\n transition: all 0.5s ease 0s;\n }\n .kol-table__selection-input--radio {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .kol-table__selection-input--radio:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .kol-table__selection-input--radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-table__selection-input--radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n}";
|
|
26974
27087
|
var KolTableStatelessDefaultStyle0 = defaultStyleCss$7;
|
|
26975
27088
|
|
|
26976
27089
|
class KolTableStateless$1 {
|
|
@@ -26986,7 +27099,7 @@ class KolTableStateless$1 {
|
|
|
26986
27099
|
this._tableSettings = undefined;
|
|
26987
27100
|
}
|
|
26988
27101
|
render() {
|
|
26989
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
27102
|
+
return (hAsync(KolTableStatelessWcTag, { key: '8c15043ee319bd85b3aeb21cfc3760d6ae8ca434', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection, _tableSettings: this._tableSettings }));
|
|
26990
27103
|
}
|
|
26991
27104
|
static get style() { return {
|
|
26992
27105
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -27213,28 +27326,28 @@ class KolTableStateless {
|
|
|
27213
27326
|
}
|
|
27214
27327
|
return max;
|
|
27215
27328
|
}
|
|
27216
|
-
|
|
27217
|
-
const
|
|
27329
|
+
getThePrimaryHeadersWithKeyOrRenderFunction(headers) {
|
|
27330
|
+
const primaryHeaders = [];
|
|
27218
27331
|
headers.forEach((cells) => {
|
|
27219
27332
|
cells.forEach((cell) => {
|
|
27220
|
-
if (typeof cell.key === 'string') {
|
|
27221
|
-
|
|
27333
|
+
if (typeof cell.key === 'string' || typeof cell.render === 'function') {
|
|
27334
|
+
primaryHeaders.push(cell);
|
|
27222
27335
|
}
|
|
27223
27336
|
});
|
|
27224
27337
|
});
|
|
27225
|
-
return
|
|
27338
|
+
return primaryHeaders;
|
|
27226
27339
|
}
|
|
27227
27340
|
getPrimaryHeaders(headers) {
|
|
27228
27341
|
var _a, _b;
|
|
27229
|
-
let
|
|
27342
|
+
let primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
27230
27343
|
this.horizontal = true;
|
|
27231
|
-
if (
|
|
27232
|
-
|
|
27233
|
-
if (
|
|
27344
|
+
if (primaryHeaders.length === 0) {
|
|
27345
|
+
primaryHeaders = this.getThePrimaryHeadersWithKeyOrRenderFunction((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
27346
|
+
if (primaryHeaders.length > 0) {
|
|
27234
27347
|
this.horizontal = false;
|
|
27235
27348
|
}
|
|
27236
27349
|
}
|
|
27237
|
-
return
|
|
27350
|
+
return primaryHeaders;
|
|
27238
27351
|
}
|
|
27239
27352
|
getColumnPositionMap() {
|
|
27240
27353
|
var _a;
|
|
@@ -27301,18 +27414,18 @@ class KolTableStateless {
|
|
|
27301
27414
|
const row = isFoot && this.state._dataFoot ? this.state._dataFoot[i - startRow] : data[i];
|
|
27302
27415
|
if (typeof sortedPrimaryHeader[j] === 'object' &&
|
|
27303
27416
|
sortedPrimaryHeader[j] !== null &&
|
|
27304
|
-
typeof sortedPrimaryHeader[j].key === 'string' &&
|
|
27305
27417
|
typeof row === 'object' &&
|
|
27306
|
-
row !== null
|
|
27418
|
+
row !== null &&
|
|
27419
|
+
(typeof sortedPrimaryHeader[j].key === 'string' || typeof sortedPrimaryHeader[j].render === 'function')) {
|
|
27307
27420
|
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[j]), { colSpan: undefined, data: row, label: row[sortedPrimaryHeader[j].key], rowSpan: undefined }));
|
|
27308
27421
|
}
|
|
27309
27422
|
}
|
|
27310
27423
|
else {
|
|
27311
27424
|
if (typeof sortedPrimaryHeader[i] === 'object' &&
|
|
27312
27425
|
sortedPrimaryHeader[i] !== null &&
|
|
27313
|
-
typeof sortedPrimaryHeader[i].key === 'string' &&
|
|
27314
27426
|
typeof data[j] === 'object' &&
|
|
27315
|
-
data[j] !== null
|
|
27427
|
+
data[j] !== null &&
|
|
27428
|
+
(typeof sortedPrimaryHeader[i].key === 'string' || typeof sortedPrimaryHeader[i].render === 'function')) {
|
|
27316
27429
|
dataRow.push(Object.assign(Object.assign({}, sortedPrimaryHeader[i]), { colSpan: undefined, data: data[j], label: data[j][sortedPrimaryHeader[i].key], rowSpan: undefined }));
|
|
27317
27430
|
}
|
|
27318
27431
|
}
|
|
@@ -27490,7 +27603,7 @@ class KolTableStateless {
|
|
|
27490
27603
|
if (columnSettings && !columnSettings.visible) {
|
|
27491
27604
|
return '';
|
|
27492
27605
|
}
|
|
27493
|
-
let ariaSort =
|
|
27606
|
+
let ariaSort = 'none';
|
|
27494
27607
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
27495
27608
|
if (cell.sortDirection) {
|
|
27496
27609
|
switch (cell.sortDirection) {
|
|
@@ -27502,6 +27615,8 @@ class KolTableStateless {
|
|
|
27502
27615
|
sortButtonIcon = 'codicon codicon-chevron-down';
|
|
27503
27616
|
ariaSort = 'descending';
|
|
27504
27617
|
break;
|
|
27618
|
+
default:
|
|
27619
|
+
ariaSort = 'none';
|
|
27505
27620
|
}
|
|
27506
27621
|
}
|
|
27507
27622
|
const scope = isVertical ? 'row' : typeof cell.colSpan === 'number' && cell.colSpan > 1 ? 'colgroup' : 'col';
|
|
@@ -27550,12 +27665,12 @@ class KolTableStateless {
|
|
|
27550
27665
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
27551
27666
|
this.checkboxRefs = [];
|
|
27552
27667
|
const sortedHorizontalHeaders = (_a = this.state._headerCells.horizontal) === null || _a === void 0 ? void 0 : _a.map((row) => this.sortByColumnPosition(row));
|
|
27553
|
-
return (hAsync("div", { key: '
|
|
27668
|
+
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: {
|
|
27554
27669
|
minWidth: this.getTableMinWidth(),
|
|
27555
|
-
} }, hAsync("div", { key: '
|
|
27670
|
+
} }, 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" }, [
|
|
27556
27671
|
sortedHorizontalHeaders.map((cols, rowIndex) => (hAsync("tr", { class: "kol-table__head-row", key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) && cols.map((cell, colIndex) => this.renderHeadingCell(cell, rowIndex, colIndex, false))))),
|
|
27557
27672
|
this.renderSpacer('head', sortedHorizontalHeaders),
|
|
27558
|
-
])), hAsync("tbody", { key: '
|
|
27673
|
+
])), hAsync("tbody", { key: 'f87e907d033d601fb065bf8d1d0892016ed1d368', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
27559
27674
|
}
|
|
27560
27675
|
get host() { return getElement(this); }
|
|
27561
27676
|
static get watchers() { return {
|
|
@@ -27799,9 +27914,9 @@ class KolTabs {
|
|
|
27799
27914
|
}, _icons: "codicon codicon-plus", "data-testid": "tabs-create-button" }))));
|
|
27800
27915
|
}
|
|
27801
27916
|
render() {
|
|
27802
|
-
return (hAsync("div", { key: '
|
|
27917
|
+
return (hAsync("div", { key: '8c3212b2e1bd09292d666d163c88ad94ef2f59bb', ref: (el) => {
|
|
27803
27918
|
this.tabPanelsElement = el;
|
|
27804
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
27919
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: 'ebbb16b66d9b77f98fe9d2384f83489530cd3e6d', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
27805
27920
|
}
|
|
27806
27921
|
validateAlign(value) {
|
|
27807
27922
|
validateAlign(this, value);
|
|
@@ -28041,7 +28156,7 @@ class KolTextarea {
|
|
|
28041
28156
|
} });
|
|
28042
28157
|
}
|
|
28043
28158
|
render() {
|
|
28044
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28159
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '92d2decb15fa4fa25f86387d6f911e5988f17c12' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '6bfa13c2aae8fa96002903b7c4064bff6868984c', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: '40aa057c2a81472a4db3ac2a5ab69392afce5037' }, this.getTextAreaProps())))));
|
|
28045
28160
|
}
|
|
28046
28161
|
constructor(hostRef) {
|
|
28047
28162
|
registerInstance(this, hostRef);
|
|
@@ -28295,7 +28410,9 @@ class KolToastContainer {
|
|
|
28295
28410
|
return localToastState;
|
|
28296
28411
|
}) });
|
|
28297
28412
|
setTimeout(() => {
|
|
28413
|
+
var _a, _b;
|
|
28298
28414
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((localToastState) => localToastState.id !== toastState.id) });
|
|
28415
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
28299
28416
|
}, TRANSITION_TIMEOUT);
|
|
28300
28417
|
}
|
|
28301
28418
|
async closeAll(immediate = false) {
|
|
@@ -28307,6 +28424,10 @@ class KolToastContainer {
|
|
|
28307
28424
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: toastsToClose.map((localToastState) => (Object.assign(Object.assign({}, localToastState), { status: 'removing' }))) });
|
|
28308
28425
|
setTimeout(() => {
|
|
28309
28426
|
this.state = Object.assign(Object.assign({}, this.state), { _toastStates: this.state._toastStates.filter((toastState) => toastsToClose.every((toastToClose) => toastToClose.id !== toastState.id)) });
|
|
28427
|
+
toastsToClose.forEach((toastState) => {
|
|
28428
|
+
var _a, _b;
|
|
28429
|
+
(_b = (_a = toastState.toast).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
28430
|
+
});
|
|
28310
28431
|
}, TRANSITION_TIMEOUT);
|
|
28311
28432
|
}
|
|
28312
28433
|
}
|
|
@@ -28317,7 +28438,7 @@ class KolToastContainer {
|
|
|
28317
28438
|
}
|
|
28318
28439
|
}
|
|
28319
28440
|
render() {
|
|
28320
|
-
return (hAsync(Host, { key: '
|
|
28441
|
+
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: {
|
|
28321
28442
|
onClick: () => {
|
|
28322
28443
|
void this.closeAll();
|
|
28323
28444
|
},
|
|
@@ -28369,7 +28490,7 @@ class KolToolbar {
|
|
|
28369
28490
|
this._orientation = undefined;
|
|
28370
28491
|
}
|
|
28371
28492
|
render() {
|
|
28372
|
-
return (hAsync("div", { key: '
|
|
28493
|
+
return (hAsync("div", { key: '820d0df7f0df9ab8a3e8de78b0d3fead62abfff8', class: `kol-toolbar kol-toolbar--orientation-${this.state._orientation}`, role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem)));
|
|
28373
28494
|
}
|
|
28374
28495
|
validateLabel(value) {
|
|
28375
28496
|
validateLabel(this, value);
|
|
@@ -28466,11 +28587,10 @@ function hideOverlay(overlay) {
|
|
|
28466
28587
|
}
|
|
28467
28588
|
}
|
|
28468
28589
|
|
|
28590
|
+
const TOOLTIP_DELAY = 300;
|
|
28469
28591
|
class KolTooltipWc {
|
|
28470
28592
|
constructor(hostRef) {
|
|
28471
28593
|
registerInstance(this, hostRef);
|
|
28472
|
-
this.hasFocusIn = false;
|
|
28473
|
-
this.hasMouseIn = false;
|
|
28474
28594
|
this.showTooltip = () => {
|
|
28475
28595
|
if (this.previousSibling && this.tooltipElement) {
|
|
28476
28596
|
showOverlay(this.tooltipElement);
|
|
@@ -28483,21 +28603,22 @@ class KolTooltipWc {
|
|
|
28483
28603
|
});
|
|
28484
28604
|
}
|
|
28485
28605
|
};
|
|
28486
|
-
this.
|
|
28487
|
-
|
|
28488
|
-
|
|
28489
|
-
|
|
28490
|
-
this.
|
|
28491
|
-
|
|
28492
|
-
|
|
28493
|
-
|
|
28494
|
-
|
|
28495
|
-
|
|
28496
|
-
|
|
28606
|
+
this.showTooltipWithDelay = () => {
|
|
28607
|
+
clearTimeout(this.hideTooltipTimeout);
|
|
28608
|
+
clearTimeout(this.showTooltipTimeout);
|
|
28609
|
+
this.showTooltipTimeout = setTimeout(() => {
|
|
28610
|
+
this.showTooltip();
|
|
28611
|
+
}, TOOLTIP_DELAY);
|
|
28612
|
+
};
|
|
28613
|
+
this.hideTooltipWithDelay = () => {
|
|
28614
|
+
clearTimeout(this.hideTooltipTimeout);
|
|
28615
|
+
this.hideTooltipTimeout = setTimeout(() => {
|
|
28616
|
+
void this.hideTooltip();
|
|
28617
|
+
}, TOOLTIP_DELAY);
|
|
28497
28618
|
};
|
|
28498
28619
|
this.hideTooltipByEscape = (event) => {
|
|
28499
28620
|
if (event.key === 'Escape') {
|
|
28500
|
-
this.hideTooltip();
|
|
28621
|
+
void this.hideTooltip();
|
|
28501
28622
|
}
|
|
28502
28623
|
};
|
|
28503
28624
|
this.addListeners = (el) => {
|
|
@@ -28529,17 +28650,6 @@ class KolTooltipWc {
|
|
|
28529
28650
|
this.catchArrowElement = (element) => {
|
|
28530
28651
|
this.arrowElement = element;
|
|
28531
28652
|
};
|
|
28532
|
-
this.showOrHideTooltip = () => {
|
|
28533
|
-
clearTimeout(this.overFocusTimeout);
|
|
28534
|
-
this.overFocusTimeout = setTimeout(() => {
|
|
28535
|
-
if (this.hasMouseIn || this.hasFocusIn) {
|
|
28536
|
-
this.showTooltip();
|
|
28537
|
-
}
|
|
28538
|
-
else {
|
|
28539
|
-
this.hideTooltip();
|
|
28540
|
-
}
|
|
28541
|
-
}, 300);
|
|
28542
|
-
};
|
|
28543
28653
|
this._badgeText = undefined;
|
|
28544
28654
|
this._align = 'top';
|
|
28545
28655
|
this._id = undefined;
|
|
@@ -28559,24 +28669,33 @@ class KolTooltipWc {
|
|
|
28559
28669
|
});
|
|
28560
28670
|
}
|
|
28561
28671
|
}
|
|
28672
|
+
async hideTooltip() {
|
|
28673
|
+
clearTimeout(this.showTooltipTimeout);
|
|
28674
|
+
if (this.tooltipElement) {
|
|
28675
|
+
hideOverlay(this.tooltipElement);
|
|
28676
|
+
this.tooltipElement.style.setProperty('display', 'none');
|
|
28677
|
+
this.tooltipElement.style.setProperty('visibility', 'hidden');
|
|
28678
|
+
if (this.cleanupAutoPositioning) {
|
|
28679
|
+
this.cleanupAutoPositioning();
|
|
28680
|
+
this.cleanupAutoPositioning = undefined;
|
|
28681
|
+
}
|
|
28682
|
+
}
|
|
28683
|
+
getDocument().removeEventListener('keyup', this.hideTooltipByEscape);
|
|
28684
|
+
}
|
|
28562
28685
|
handleMouseEnter() {
|
|
28563
|
-
this.
|
|
28564
|
-
this.showOrHideTooltip();
|
|
28686
|
+
this.showTooltipWithDelay();
|
|
28565
28687
|
}
|
|
28566
28688
|
handleMouseleave() {
|
|
28567
|
-
this.
|
|
28568
|
-
this.showOrHideTooltip();
|
|
28689
|
+
this.hideTooltipWithDelay();
|
|
28569
28690
|
}
|
|
28570
28691
|
handleFocusIn() {
|
|
28571
|
-
this.
|
|
28572
|
-
this.showOrHideTooltip();
|
|
28692
|
+
this.showTooltipWithDelay();
|
|
28573
28693
|
}
|
|
28574
28694
|
handleFocusout() {
|
|
28575
|
-
this.
|
|
28576
|
-
this.showOrHideTooltip();
|
|
28695
|
+
this.hideTooltipWithDelay();
|
|
28577
28696
|
}
|
|
28578
28697
|
render() {
|
|
28579
|
-
return (hAsync(Host, { key: '
|
|
28698
|
+
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 })))));
|
|
28580
28699
|
}
|
|
28581
28700
|
validateBadgeText(value) {
|
|
28582
28701
|
validateBadgeText(this, value);
|
|
@@ -28637,7 +28756,8 @@ class KolTooltipWc {
|
|
|
28637
28756
|
"_align": [1],
|
|
28638
28757
|
"_id": [1],
|
|
28639
28758
|
"_label": [1],
|
|
28640
|
-
"state": [32]
|
|
28759
|
+
"state": [32],
|
|
28760
|
+
"hideTooltip": [64]
|
|
28641
28761
|
},
|
|
28642
28762
|
"$listeners$": undefined,
|
|
28643
28763
|
"$lazyBundleId$": "-",
|
|
@@ -28654,7 +28774,7 @@ class KolTree {
|
|
|
28654
28774
|
this._label = undefined;
|
|
28655
28775
|
}
|
|
28656
28776
|
render() {
|
|
28657
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
28777
|
+
return (hAsync(KolTreeWcTag, { key: '13d3e695605cbf910749ac998731d7d6310b3ed8', _label: this._label }, hAsync("slot", { key: 'b4702460fa7ca8fe8e259cb7b782a8971735a9ef' })));
|
|
28658
28778
|
}
|
|
28659
28779
|
static get style() { return {
|
|
28660
28780
|
default: KolTreeDefaultStyle0
|
|
@@ -28702,7 +28822,7 @@ class KolTreeItem {
|
|
|
28702
28822
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
28703
28823
|
}
|
|
28704
28824
|
render() {
|
|
28705
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
28825
|
+
return (hAsync(KolTreeItemWcTag, { key: '6e77abb1a162108a6f06ac8bf9024b408a9bf990', _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '752481a98faee9bad7d5661bb01bc868198e544e' })));
|
|
28706
28826
|
}
|
|
28707
28827
|
static get style() { return {
|
|
28708
28828
|
default: KolTreeItemDefaultStyle0
|
|
@@ -28745,12 +28865,12 @@ class KolTreeItemWc {
|
|
|
28745
28865
|
}
|
|
28746
28866
|
render() {
|
|
28747
28867
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
28748
|
-
return (hAsync(Host, { key: '
|
|
28868
|
+
return (hAsync(Host, { key: 'e0d63b982e56ef662c1420fc9ade69068b8a81ff', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: '7c2d91957ad2e92256d5bc8bcbfa003d830a3645', class: "kol-tree-item", style: {
|
|
28749
28869
|
'--level': `${this.level}`,
|
|
28750
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
28870
|
+
} }, hAsync(KolLinkWcTag, { key: '7207fe34d30d14349d397fbd75ff2f0d16aa7086', class: clsx('kol-tree-item__link', {
|
|
28751
28871
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
28752
28872
|
'kol-tree-item__link--active': _active,
|
|
28753
|
-
}), _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _hasChildren ? _open : undefined, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: '
|
|
28873
|
+
}), _href: _href, _label: "", _role: "treeitem", _tabIndex: _active ? 0 : -1, _ariaExpanded: _hasChildren ? _open : undefined, _ariaOwns: _hasChildren ? this.groupId : undefined, ref: (element) => (this.linkElement = element) }, hAsync("span", { key: 'd959cfb814982fcbb72f89a7fea3e2b6031e7ab4', class: "kol-tree-item__link-inner", slot: "expert" }, _hasChildren ? (hAsync("span", { class: "kol-tree-item__toggle-button", onClick: (event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event)) }, hAsync(KolIconTag, { class: "kol-tree-item__toggle-button-icon", _icons: `codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`, _label: '' }))) : (hAsync("span", { class: "kol-tree-item__toggle-button-placeholder" })), hAsync("span", { key: '2249d95f2466360ef113bb8f271d91d5b7ed88e4', class: "kol-tree-item__text" }, _label))), hAsync("ul", { key: '1648a8aebf70ae58ad6068bf5192078de6d05cfd', class: "kol-tree-item__children", hidden: !_hasChildren || !_open, role: "group", id: this.groupId }, hAsync("slot", { key: '07aceb35f569834db39a1d9cfb18f80a5a9753e4' })))));
|
|
28754
28874
|
}
|
|
28755
28875
|
validateActive(value) {
|
|
28756
28876
|
validateActive(this, value || false);
|
|
@@ -28855,7 +28975,7 @@ class KolTreeWc {
|
|
|
28855
28975
|
validateLabel(this, value);
|
|
28856
28976
|
}
|
|
28857
28977
|
render() {
|
|
28858
|
-
return (hAsync(Host, { key: '
|
|
28978
|
+
return (hAsync(Host, { key: '0018aab7e413a716e2662cfd597d2ffdb063ffea', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("nav", { key: '383abb8a0f89e041b9d84fc7e872e1d4a4638948', class: "kol-tree", "aria-label": this.state._label }, hAsync("ul", { key: 'f35923f336b1c615940c32e40735fc5f74cade61', class: "kol-tree__treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: '21d555457a7a9cdab0f798c30230cde851b4038c' })))));
|
|
28859
28979
|
}
|
|
28860
28980
|
static isTreeItem(element) {
|
|
28861
28981
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -29053,7 +29173,7 @@ class KolVersion {
|
|
|
29053
29173
|
};
|
|
29054
29174
|
}
|
|
29055
29175
|
render() {
|
|
29056
|
-
return (hAsync(Host, { key: '
|
|
29176
|
+
return (hAsync(Host, { key: '3304cd937945785a92d3cf9a25cd70065f2ac5dd', class: "kol-version" }, hAsync(KolBadgeTag, { key: '155a2fbdb3ce12a1800b62745a2f9683585c9794', _color: "#bec5c9", _icons: {
|
|
29057
29177
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
29058
29178
|
}, _label: this.state._label })));
|
|
29059
29179
|
}
|
|
@@ -29136,6 +29256,7 @@ registerComponents([
|
|
|
29136
29256
|
KolModal,
|
|
29137
29257
|
KolNav,
|
|
29138
29258
|
KolPagination,
|
|
29259
|
+
KolPaginationWc,
|
|
29139
29260
|
KolPopover,
|
|
29140
29261
|
KolPopoverButton$1,
|
|
29141
29262
|
KolPopoverButton,
|