@public-ui/hydrate 3.0.0-rc.3 → 3.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +461 -459
- package/dist/index.mjs +461 -459
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4060,8 +4060,8 @@ const validateHeadingVariant = (component, value) => {
|
|
|
4060
4060
|
watchValidator(component, `_variant`, (value) => typeof value === 'string' && headingVariantPropTypeOptions.includes(value), new Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(', ')}`]), value);
|
|
4061
4061
|
};
|
|
4062
4062
|
|
|
4063
|
-
const
|
|
4064
|
-
watchBoolean(component, '
|
|
4063
|
+
const validateHideMsg = (component, value, options) => {
|
|
4064
|
+
watchBoolean(component, '_hideMsg', value, options);
|
|
4065
4065
|
};
|
|
4066
4066
|
|
|
4067
4067
|
const validateHideLabel = (component, value, options = {}) => {
|
|
@@ -4384,7 +4384,12 @@ const validateTableHeaderCells = (component, value) => {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
catch (e) {
|
|
4386
4386
|
}
|
|
4387
|
-
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4387
|
+
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4388
|
+
value !== null &&
|
|
4389
|
+
(value.horizontal === undefined ||
|
|
4390
|
+
(Array.isArray(value.horizontal) && value.horizontal.find((headerRow) => !Array.isArray(headerRow)) === undefined)) &&
|
|
4391
|
+
(value.vertical === undefined || (Array.isArray(value.vertical) && value.vertical.find((headerCol) => !Array.isArray(headerCol)) === undefined)) &&
|
|
4392
|
+
true, new Set(['TableHeaderCellsPropType']), value);
|
|
4388
4393
|
});
|
|
4389
4394
|
});
|
|
4390
4395
|
};
|
|
@@ -4548,7 +4553,6 @@ let KolButtonTag = 'kol-button';
|
|
|
4548
4553
|
let KolButtonWcTag = 'kol-button-wc';
|
|
4549
4554
|
let KolFormTag = 'kol-form';
|
|
4550
4555
|
let KolIconTag = 'kol-icon';
|
|
4551
|
-
let KolInputTag = 'kol-input';
|
|
4552
4556
|
let KolLinkTag = 'kol-link';
|
|
4553
4557
|
let KolLinkWcTag = 'kol-link-wc';
|
|
4554
4558
|
let KolPaginationTag = 'kol-pagination';
|
|
@@ -4670,12 +4674,12 @@ class KolAccordion {
|
|
|
4670
4674
|
};
|
|
4671
4675
|
this._disabled = false;
|
|
4672
4676
|
this._label = undefined;
|
|
4673
|
-
this._level =
|
|
4677
|
+
this._level = 0;
|
|
4674
4678
|
this._on = undefined;
|
|
4675
4679
|
this._open = false;
|
|
4676
4680
|
this.state = {
|
|
4677
4681
|
_label: '',
|
|
4678
|
-
_level:
|
|
4682
|
+
_level: 0,
|
|
4679
4683
|
_on: {},
|
|
4680
4684
|
};
|
|
4681
4685
|
}
|
|
@@ -4769,12 +4773,12 @@ class KolAlert {
|
|
|
4769
4773
|
this._alert = false;
|
|
4770
4774
|
this._hasCloser = false;
|
|
4771
4775
|
this._label = undefined;
|
|
4772
|
-
this._level =
|
|
4776
|
+
this._level = 0;
|
|
4773
4777
|
this._on = undefined;
|
|
4774
4778
|
this._type = 'default';
|
|
4775
4779
|
this._variant = 'msg';
|
|
4776
4780
|
this.state = {
|
|
4777
|
-
_level:
|
|
4781
|
+
_level: 0,
|
|
4778
4782
|
};
|
|
4779
4783
|
}
|
|
4780
4784
|
render() {
|
|
@@ -5043,12 +5047,12 @@ class KolAlertWc {
|
|
|
5043
5047
|
this._alert = false;
|
|
5044
5048
|
this._hasCloser = false;
|
|
5045
5049
|
this._label = undefined;
|
|
5046
|
-
this._level =
|
|
5050
|
+
this._level = 0;
|
|
5047
5051
|
this._on = undefined;
|
|
5048
5052
|
this._type = 'default';
|
|
5049
5053
|
this._variant = 'msg';
|
|
5050
5054
|
this.state = {
|
|
5051
|
-
_level:
|
|
5055
|
+
_level: 0,
|
|
5052
5056
|
};
|
|
5053
5057
|
}
|
|
5054
5058
|
render() {
|
|
@@ -5216,8 +5220,8 @@ class KolAvatarWc {
|
|
|
5216
5220
|
}
|
|
5217
5221
|
|
|
5218
5222
|
const FormFieldMsgFc = (_a) => {
|
|
5219
|
-
var { alert, msg,
|
|
5220
|
-
return (hAsync(KolAlertFc$1, Object.assign({ id: `${id}-msg`, alert: alert, type: "error", class: clsx('kol-form-field__msg', { 'visually-hidden':
|
|
5223
|
+
var { alert, msg, hideMsg, id, class: classNames } = _a, other = __rest(_a, ["alert", "msg", "hideMsg", "id", "class"]);
|
|
5224
|
+
return (hAsync(KolAlertFc$1, Object.assign({ id: `${id}-msg`, alert: alert, type: "error", class: clsx('kol-form-field__msg', { 'visually-hidden': hideMsg === true }, classNames) }, msg, other, { "aria-hidden": "true" }), (msg === null || msg === void 0 ? void 0 : msg.description) || undefined));
|
|
5221
5225
|
};
|
|
5222
5226
|
var KolFormFieldMsgFc = FormFieldMsgFc;
|
|
5223
5227
|
|
|
@@ -13914,7 +13918,7 @@ const InputContainer$1 = (_a, children) => {
|
|
|
13914
13918
|
return (hAsync("div", Object.assign({ class: clsx('kol-form-field__input', classNames) }, other), children));
|
|
13915
13919
|
};
|
|
13916
13920
|
const KolFormFieldFc = (props, children) => {
|
|
13917
|
-
const { component: Component = 'div', renderNoLabel, renderNoTooltip, renderNoHint, anotherChildren, id, required, alert, disabled, class: classNames, msg,
|
|
13921
|
+
const { component: Component = 'div', renderNoLabel, renderNoTooltip, renderNoHint, anotherChildren, id, required, alert, disabled, class: classNames, msg, hideMsg, hideLabel, label, hint, accessKey, shortKey, tooltipAlign, counter, readOnly, touched, formFieldLabelProps, formFieldHintProps, formFieldTooltipProps, formFieldMsgProps, formFieldCounterProps, formFieldInputProps } = props, other = __rest(props, ["component", "renderNoLabel", "renderNoTooltip", "renderNoHint", "anotherChildren", "id", "required", "alert", "disabled", "class", "msg", "hideMsg", "hideLabel", "label", "hint", "accessKey", "shortKey", "tooltipAlign", "counter", "readOnly", "touched", "formFieldLabelProps", "formFieldHintProps", "formFieldTooltipProps", "formFieldMsgProps", "formFieldCounterProps", "formFieldInputProps"]);
|
|
13918
13922
|
const showLabel = !renderNoLabel;
|
|
13919
13923
|
const showHint = !renderNoHint;
|
|
13920
13924
|
const showTooltip = !renderNoTooltip;
|
|
@@ -13928,7 +13932,7 @@ const KolFormFieldFc = (props, children) => {
|
|
|
13928
13932
|
['kol-form-field--touched']: Boolean(touched),
|
|
13929
13933
|
['kol-form-field--hide-label']: Boolean(hideLabel),
|
|
13930
13934
|
['kol-form-field--read-only']: Boolean(readOnly),
|
|
13931
|
-
['kol-form-field--hidden-
|
|
13935
|
+
['kol-form-field--hidden-msg']: Boolean(hideMsg),
|
|
13932
13936
|
};
|
|
13933
13937
|
if (showMsg) {
|
|
13934
13938
|
stateCssClasses = Object.assign(Object.assign({}, stateCssClasses), { [`kol-form-field--${(msg === null || msg === void 0 ? void 0 : msg.type) || 'error'}`]: true, [`kol-form-field--${getModifierClassNameByMsgType(msg)}`]: true });
|
|
@@ -13939,7 +13943,7 @@ const KolFormFieldFc = (props, children) => {
|
|
|
13939
13943
|
children,
|
|
13940
13944
|
useTooltipInsteadOfLabel && (hAsync(KolFieldControlTooltipFc, Object.assign({}, (formFieldTooltipProps || {}), { id: id, label: label, hideLabel: hideLabel, align: tooltipAlign, badgeText: badgeText })))),
|
|
13941
13945
|
counter ? hAsync(KolFormFieldCounterFc$1, Object.assign({}, (formFieldCounterProps || {}), counter)) : null,
|
|
13942
|
-
showMsg && hAsync(KolFormFieldMsgFc, Object.assign({}, (formFieldMsgProps || {}), { id: id, alert: alert, msg: msg,
|
|
13946
|
+
showMsg && hAsync(KolFormFieldMsgFc, Object.assign({}, (formFieldMsgProps || {}), { id: id, alert: alert, msg: msg, hideMsg: hideMsg })),
|
|
13943
13947
|
showHint && hAsync(KolFieldControlHintFc, Object.assign({}, (formFieldHintProps || {}), { id: id, hint: hint })),
|
|
13944
13948
|
anotherChildren));
|
|
13945
13949
|
};
|
|
@@ -14869,7 +14873,7 @@ class KolCard {
|
|
|
14869
14873
|
this._on = undefined;
|
|
14870
14874
|
this._hasCloser = false;
|
|
14871
14875
|
this._label = undefined;
|
|
14872
|
-
this._level =
|
|
14876
|
+
this._level = 0;
|
|
14873
14877
|
this.state = {
|
|
14874
14878
|
_label: '',
|
|
14875
14879
|
};
|
|
@@ -14931,6 +14935,39 @@ class KolCard {
|
|
|
14931
14935
|
}; }
|
|
14932
14936
|
}
|
|
14933
14937
|
|
|
14938
|
+
function getFormFieldProps(state) {
|
|
14939
|
+
const props = {
|
|
14940
|
+
id: state._id,
|
|
14941
|
+
disabled: state._disabled,
|
|
14942
|
+
msg: convertMsgToInternMsg(state._msg),
|
|
14943
|
+
hint: state._hint,
|
|
14944
|
+
label: state._label,
|
|
14945
|
+
hideLabel: state._hideLabel,
|
|
14946
|
+
hideMsg: state._hideMsg,
|
|
14947
|
+
touched: state._touched,
|
|
14948
|
+
accessKey: state._accessKey,
|
|
14949
|
+
shortKey: state._shortKey,
|
|
14950
|
+
};
|
|
14951
|
+
if ('_required' in state) {
|
|
14952
|
+
props.required = state._required;
|
|
14953
|
+
}
|
|
14954
|
+
if ('_readOnly' in state) {
|
|
14955
|
+
props.readOnly = state._readOnly;
|
|
14956
|
+
}
|
|
14957
|
+
if ('_hasCounter' in state && '_currentLength' in state) {
|
|
14958
|
+
props.counter = state._hasCounter ? { currentLength: state._currentLength } : undefined;
|
|
14959
|
+
if (props.counter && '_maxLength' in state) {
|
|
14960
|
+
props.counter.maxLength = state._maxLength;
|
|
14961
|
+
}
|
|
14962
|
+
}
|
|
14963
|
+
return props;
|
|
14964
|
+
}
|
|
14965
|
+
const FormFieldStateWrapper = (_a, children) => {
|
|
14966
|
+
var { state } = _a, other = __rest(_a, ["state"]);
|
|
14967
|
+
return (hAsync(KolFormFieldFc$1, Object.assign({}, getFormFieldProps(state), other), children));
|
|
14968
|
+
};
|
|
14969
|
+
var KolFormFieldStateWrapperFc = FormFieldStateWrapper;
|
|
14970
|
+
|
|
14934
14971
|
class ControlledInputController extends AssociatedInputController {
|
|
14935
14972
|
constructor(component, name, host) {
|
|
14936
14973
|
super(component, name, host);
|
|
@@ -14974,12 +15011,12 @@ class InputController extends ControlledInputController {
|
|
|
14974
15011
|
validateTooltipAlign(value) {
|
|
14975
15012
|
validateTooltipAlign(this.component, value);
|
|
14976
15013
|
}
|
|
14977
|
-
|
|
14978
|
-
|
|
15014
|
+
validateHideMsg(value) {
|
|
15015
|
+
validateHideMsg(this.component, value, {
|
|
14979
15016
|
hooks: {
|
|
14980
15017
|
afterPatch: () => {
|
|
14981
|
-
if (this.component.state.
|
|
14982
|
-
a11yHint('Property
|
|
15018
|
+
if (this.component.state._hideMsg) {
|
|
15019
|
+
a11yHint('Property _hideMsg for inputs: Only use when the error message is shown outside of the input component.');
|
|
14983
15020
|
}
|
|
14984
15021
|
},
|
|
14985
15022
|
},
|
|
@@ -15041,7 +15078,7 @@ class InputController extends ControlledInputController {
|
|
|
15041
15078
|
this.validateAdjustHeight(this.component._adjustHeight);
|
|
15042
15079
|
this.validateMsg(this.component._msg);
|
|
15043
15080
|
this.validateDisabled(this.component._disabled);
|
|
15044
|
-
this.
|
|
15081
|
+
this.validateHideMsg(this.component._hideMsg);
|
|
15045
15082
|
this.validateHideLabel(this.component._hideLabel);
|
|
15046
15083
|
this.validateHint(this.component._hint);
|
|
15047
15084
|
this.validateId(this.component._id);
|
|
@@ -15189,7 +15226,163 @@ const getRenderStates$1 = (state) => {
|
|
|
15189
15226
|
return { hasError, hasHint, ariaDescribedBy };
|
|
15190
15227
|
};
|
|
15191
15228
|
|
|
15192
|
-
const
|
|
15229
|
+
const getRenderStates = (state) => {
|
|
15230
|
+
var _a, _b, _c;
|
|
15231
|
+
const hasMessage = Boolean(((_a = state === null || state === void 0 ? void 0 : state._msg) === null || _a === void 0 ? void 0 : _a._description) && ((_b = state._msg._description) === null || _b === void 0 ? void 0 : _b.length) > 0);
|
|
15232
|
+
const isMessageValidError = ((_c = state._msg) === null || _c === void 0 ? void 0 : _c._type) === 'error' && hasMessage;
|
|
15233
|
+
const hasError = isMessageValidError && state._touched === true;
|
|
15234
|
+
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
15235
|
+
const ariaDescribedBy = [];
|
|
15236
|
+
if (hasMessage) {
|
|
15237
|
+
ariaDescribedBy.push(`${state._id}-msg`);
|
|
15238
|
+
}
|
|
15239
|
+
if (hasHint) {
|
|
15240
|
+
ariaDescribedBy.push(`${state._id}-hint`);
|
|
15241
|
+
}
|
|
15242
|
+
return { hasError, hasHint, ariaDescribedBy };
|
|
15243
|
+
};
|
|
15244
|
+
|
|
15245
|
+
function getInputProps(state, customSuggestions) {
|
|
15246
|
+
const { ariaDescribedBy } = getRenderStates(state);
|
|
15247
|
+
const props = {
|
|
15248
|
+
id: state._id,
|
|
15249
|
+
hideLabel: state._hideLabel,
|
|
15250
|
+
label: state._label,
|
|
15251
|
+
accessKey: state._accessKey,
|
|
15252
|
+
disabled: state._disabled,
|
|
15253
|
+
name: state._name,
|
|
15254
|
+
ariaDescribedBy: ariaDescribedBy,
|
|
15255
|
+
};
|
|
15256
|
+
if ('_type' in state)
|
|
15257
|
+
props.type = state._type;
|
|
15258
|
+
if ('_value' in state)
|
|
15259
|
+
props.value = state._value;
|
|
15260
|
+
if ('_required' in state)
|
|
15261
|
+
props.required = state._required;
|
|
15262
|
+
if ('_maxLength' in state)
|
|
15263
|
+
props.maxlength = state._maxLength;
|
|
15264
|
+
if ('_placeholder' in state)
|
|
15265
|
+
props.placeholder = state._placeholder;
|
|
15266
|
+
if ('_autoComplete' in state)
|
|
15267
|
+
props.autoComplete = state._autoComplete;
|
|
15268
|
+
if ('_spellCheck' in state)
|
|
15269
|
+
props.spellcheck = state._spellCheck;
|
|
15270
|
+
if ('_pattern' in state)
|
|
15271
|
+
props.pattern = state._pattern;
|
|
15272
|
+
if ('_readOnly' in state)
|
|
15273
|
+
props.readonly = state._readOnly;
|
|
15274
|
+
if ('_min' in state)
|
|
15275
|
+
props.min = state._min;
|
|
15276
|
+
if ('_max' in state)
|
|
15277
|
+
props.max = state._max;
|
|
15278
|
+
if ('_step' in state)
|
|
15279
|
+
props.step = state._step;
|
|
15280
|
+
if ('_multiple' in state)
|
|
15281
|
+
props.multiple = state._multiple;
|
|
15282
|
+
if ('_checked' in state)
|
|
15283
|
+
props.checked = state._checked;
|
|
15284
|
+
if ('_indeterminate' in state)
|
|
15285
|
+
props.indeterminate = state._indeterminate;
|
|
15286
|
+
if ('_touched' in state)
|
|
15287
|
+
props.touched = state._touched;
|
|
15288
|
+
if ('_msg' in state)
|
|
15289
|
+
props.msg = convertMsgToInternMsg(state._msg);
|
|
15290
|
+
if ('_suggestions' in state && !customSuggestions) {
|
|
15291
|
+
const hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;
|
|
15292
|
+
if (hasSuggestions) {
|
|
15293
|
+
props.suggestions = (hAsync(KolSuggestionsFc, { id: state._id, suggestions: state._suggestions }));
|
|
15294
|
+
}
|
|
15295
|
+
}
|
|
15296
|
+
return props;
|
|
15297
|
+
}
|
|
15298
|
+
const InputStateWrapper = (_a) => {
|
|
15299
|
+
var { state, customSuggestions } = _a, other = __rest(_a, ["state", "customSuggestions"]);
|
|
15300
|
+
return hAsync(KolInputFc, Object.assign({}, getInputProps(state, customSuggestions), other));
|
|
15301
|
+
};
|
|
15302
|
+
var KolInputStateWrapperFc = InputStateWrapper;
|
|
15303
|
+
|
|
15304
|
+
const KolButtonFc = (props) => {
|
|
15305
|
+
const { label, icons, hideLabel, disabled, onClick } = props, other = __rest(props, ["label", "icons", "hideLabel", "disabled", "onClick"]);
|
|
15306
|
+
return hAsync(KolButtonWcTag, Object.assign({ tabindex: 0, _label: label, _disabled: disabled, _icons: icons, _hideLabel: hideLabel, _on: { onClick } }, other));
|
|
15307
|
+
};
|
|
15308
|
+
var KolButtonFc$1 = KolButtonFc;
|
|
15309
|
+
|
|
15310
|
+
const KolIconButtonFc = (props) => {
|
|
15311
|
+
const { componentName = 'button', label, icon, onClick } = props, other = __rest(props, ["componentName", "label", "icon", "onClick"]);
|
|
15312
|
+
const Component = componentName === 'button' ? KolButtonFc$1 : KolIconFc$1;
|
|
15313
|
+
return hAsync(Component, Object.assign({ label: label || '', hideLabel: true, icons: `codicon codicon-${icon}`, onClick: onClick }, other));
|
|
15314
|
+
};
|
|
15315
|
+
var KolIconButtonFc$1 = KolIconButtonFc;
|
|
15316
|
+
|
|
15317
|
+
function getInputContainerProps(state) {
|
|
15318
|
+
let icons = undefined;
|
|
15319
|
+
let smartButton;
|
|
15320
|
+
if ('_icons' in state) {
|
|
15321
|
+
icons = state._icons;
|
|
15322
|
+
}
|
|
15323
|
+
if ('_smartButton' in state) {
|
|
15324
|
+
smartButton = state._smartButton;
|
|
15325
|
+
}
|
|
15326
|
+
return {
|
|
15327
|
+
icons,
|
|
15328
|
+
smartButton,
|
|
15329
|
+
disabled: state._disabled,
|
|
15330
|
+
msg: convertMsgToInternMsg(state._msg),
|
|
15331
|
+
touched: state._touched,
|
|
15332
|
+
};
|
|
15333
|
+
}
|
|
15334
|
+
const InputContainerStateWrapperFc = ({ state, endAdornment: defaultEndAdornment }, children) => {
|
|
15335
|
+
const { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);
|
|
15336
|
+
let leftIconProps = icons === null || icons === void 0 ? void 0 : icons.left;
|
|
15337
|
+
if (isString$2(leftIconProps)) {
|
|
15338
|
+
leftIconProps = { icon: leftIconProps };
|
|
15339
|
+
}
|
|
15340
|
+
let rightIconProps = icons === null || icons === void 0 ? void 0 : icons.right;
|
|
15341
|
+
if (isString$2(rightIconProps)) {
|
|
15342
|
+
rightIconProps = { icon: rightIconProps };
|
|
15343
|
+
}
|
|
15344
|
+
const startAdornment = [];
|
|
15345
|
+
const endAdornment = [];
|
|
15346
|
+
if (defaultEndAdornment) {
|
|
15347
|
+
if (Array.isArray(defaultEndAdornment)) {
|
|
15348
|
+
endAdornment.push(...defaultEndAdornment);
|
|
15349
|
+
}
|
|
15350
|
+
else {
|
|
15351
|
+
endAdornment.push(defaultEndAdornment);
|
|
15352
|
+
}
|
|
15353
|
+
}
|
|
15354
|
+
if (leftIconProps) {
|
|
15355
|
+
startAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(leftIconProps) ? leftIconProps : {}))));
|
|
15356
|
+
}
|
|
15357
|
+
if (isObject$1(smartButton)) {
|
|
15358
|
+
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "button" }, smartButton, { hideLabel: true, disabled: disabled })));
|
|
15359
|
+
}
|
|
15360
|
+
if (rightIconProps) {
|
|
15361
|
+
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(rightIconProps) ? rightIconProps : {}))));
|
|
15362
|
+
}
|
|
15363
|
+
return (hAsync(KolInputContainerFc$1, { disabled: disabled, msg: msg, touched: touched, startAdornment: startAdornment, endAdornment: endAdornment }, children));
|
|
15364
|
+
};
|
|
15365
|
+
var KolInputContainerStateWrapperFc = InputContainerStateWrapperFc;
|
|
15366
|
+
|
|
15367
|
+
const CustomSuggestionsToggleFc = ({ onClick, disabled }) => {
|
|
15368
|
+
return (hAsync("button", { tabindex: "-1", class: "kol-custom-suggestions-toggle", onClick: onClick, disabled: disabled },
|
|
15369
|
+
hAsync(KolIconTag, { _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') })));
|
|
15370
|
+
};
|
|
15371
|
+
var CustomSuggestionsToggleFc$1 = CustomSuggestionsToggleFc;
|
|
15372
|
+
|
|
15373
|
+
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {
|
|
15374
|
+
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 }, option));
|
|
15375
|
+
};
|
|
15376
|
+
var CustomSuggestionsOptionFc$1 = CustomSuggestionsOptionFc;
|
|
15377
|
+
|
|
15378
|
+
const CustomSuggestionsOptionsGroupFc = ({ blockSuggestionMouseOver, onKeyDown }, children) => {
|
|
15379
|
+
return (hAsync("ul", { role: "listbox", class: clsx('kol-custom-suggestions-options-group', {
|
|
15380
|
+
'kol-custom-suggestions-options-group--cursor-hidden': blockSuggestionMouseOver,
|
|
15381
|
+
}), onKeyDown: onKeyDown }, children));
|
|
15382
|
+
};
|
|
15383
|
+
var CustomSuggestionsOptionsGroupFc$1 = CustomSuggestionsOptionsGroupFc;
|
|
15384
|
+
|
|
15385
|
+
const defaultStyleCss$C = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-option {\n cursor: pointer;\n }\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\n cursor: none !important;\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-options-group {\n display: block;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 2;\n background-color: white;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-toggle {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n width: var(--a11y-min-size);\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
15193
15386
|
var KolComboboxDefaultStyle0 = defaultStyleCss$C;
|
|
15194
15387
|
|
|
15195
15388
|
class KolCombobox {
|
|
@@ -15264,21 +15457,34 @@ class KolCombobox {
|
|
|
15264
15457
|
this.focusOption(index);
|
|
15265
15458
|
}
|
|
15266
15459
|
}
|
|
15267
|
-
|
|
15268
|
-
|
|
15460
|
+
getFormFieldProps() {
|
|
15461
|
+
return {
|
|
15462
|
+
state: this.state,
|
|
15463
|
+
class: clsx('kol-combobox', {
|
|
15464
|
+
'has-value': this.state._hasValue,
|
|
15465
|
+
}),
|
|
15466
|
+
tooltipAlign: this._tooltipAlign,
|
|
15467
|
+
onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
15468
|
+
alert: this.showAsAlert(),
|
|
15469
|
+
};
|
|
15470
|
+
}
|
|
15471
|
+
getInputProps() {
|
|
15269
15472
|
const { ariaDescribedBy } = getRenderStates$1(this.state);
|
|
15270
|
-
return (
|
|
15473
|
+
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: this.state._disabled, customSuggestions: true, id: this.state._id, name: this.state._name, required: this.state._required }, this.controller.onFacade), { onFocus: (event) => {
|
|
15271
15474
|
this.controller.onFacade.onFocus(event);
|
|
15272
15475
|
this.inputHasFocus = true;
|
|
15273
15476
|
}, onBlur: (event) => {
|
|
15274
15477
|
this.controller.onFacade.onBlur(event);
|
|
15275
15478
|
this.inputHasFocus = false;
|
|
15276
|
-
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })
|
|
15479
|
+
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder });
|
|
15480
|
+
}
|
|
15481
|
+
render() {
|
|
15482
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '4a5847a07661537d4af1651d63cc02213f8faba4' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'f5f23700d41e0f08b5e4d042f29cfc3fcd2e2edc', state: this.state }, hAsync("div", { key: '422e81dc9ae35f1b3ac2bb77525eaa7ce23011ea', class: "kol-combobox__group" }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'b0a5a69ffaafe1443f24692a0cec9cb368b329ad' }, this.getInputProps())), hAsync(CustomSuggestionsToggleFc$1, { key: '6a5ab0dc9ba9c4fc0aa2e06b06bbaed5558efb10', onClick: this.toggleListbox.bind(this), disabled: this.state._disabled })), this._isOpen && !(this.state._disabled === true) && (hAsync(CustomSuggestionsOptionsGroupFc$1, { key: '65a14c8a44817ab31d4fca050df4b70fdb0ecb69', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
15277
15483
|
this._filteredSuggestions.length > 0 &&
|
|
15278
|
-
this._filteredSuggestions.map((option, index) => (hAsync(
|
|
15484
|
+
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc$1, { index: index, option: option, ref: (el) => {
|
|
15279
15485
|
if (el)
|
|
15280
15486
|
this.refSuggestions[index] = el;
|
|
15281
|
-
},
|
|
15487
|
+
}, selected: this.state._value === option, onClick: (e) => {
|
|
15282
15488
|
this.selectOption(e, option);
|
|
15283
15489
|
this.toggleListbox();
|
|
15284
15490
|
}, onMouseOver: () => {
|
|
@@ -15287,13 +15493,13 @@ class KolCombobox {
|
|
|
15287
15493
|
}
|
|
15288
15494
|
}, onFocus: () => {
|
|
15289
15495
|
this.focusOption(index);
|
|
15290
|
-
},
|
|
15496
|
+
}, onKeyDown: (e) => {
|
|
15291
15497
|
if (e.key === 'Enter' || e.key === 'NumpadEnter') {
|
|
15292
15498
|
this.selectOption(e, option);
|
|
15293
15499
|
this.toggleListbox();
|
|
15294
15500
|
e.preventDefault();
|
|
15295
15501
|
}
|
|
15296
|
-
} }
|
|
15502
|
+
} }))))))));
|
|
15297
15503
|
}
|
|
15298
15504
|
handleKeyDown(event) {
|
|
15299
15505
|
var _a, _b;
|
|
@@ -15401,7 +15607,7 @@ class KolCombobox {
|
|
|
15401
15607
|
this._accessKey = undefined;
|
|
15402
15608
|
this._placeholder = undefined;
|
|
15403
15609
|
this._disabled = false;
|
|
15404
|
-
this.
|
|
15610
|
+
this._hideMsg = false;
|
|
15405
15611
|
this._hideLabel = false;
|
|
15406
15612
|
this._hint = '';
|
|
15407
15613
|
this._icons = undefined;
|
|
@@ -15420,7 +15626,7 @@ class KolCombobox {
|
|
|
15420
15626
|
this._value = undefined;
|
|
15421
15627
|
this.state = {
|
|
15422
15628
|
_hasValue: false,
|
|
15423
|
-
|
|
15629
|
+
_hideMsg: false,
|
|
15424
15630
|
_id: `id-${nonce()}`,
|
|
15425
15631
|
_label: '',
|
|
15426
15632
|
_suggestions: [],
|
|
@@ -15442,8 +15648,8 @@ class KolCombobox {
|
|
|
15442
15648
|
validateDisabled(value) {
|
|
15443
15649
|
this.controller.validateDisabled(value);
|
|
15444
15650
|
}
|
|
15445
|
-
|
|
15446
|
-
this.controller.
|
|
15651
|
+
validateHideMsg(value) {
|
|
15652
|
+
this.controller.validateHideMsg(value);
|
|
15447
15653
|
}
|
|
15448
15654
|
validateHideLabel(value) {
|
|
15449
15655
|
this.controller.validateHideLabel(value);
|
|
@@ -15531,7 +15737,7 @@ class KolCombobox {
|
|
|
15531
15737
|
"_placeholder": ["validatePlaceholder"],
|
|
15532
15738
|
"_accessKey": ["validateAccessKey"],
|
|
15533
15739
|
"_disabled": ["validateDisabled"],
|
|
15534
|
-
"
|
|
15740
|
+
"_hideMsg": ["validateHideMsg"],
|
|
15535
15741
|
"_hideLabel": ["validateHideLabel"],
|
|
15536
15742
|
"_hint": ["validateHint"],
|
|
15537
15743
|
"_icons": ["validateIcons"],
|
|
@@ -15558,7 +15764,7 @@ class KolCombobox {
|
|
|
15558
15764
|
"_accessKey": [1, "_access-key"],
|
|
15559
15765
|
"_placeholder": [1],
|
|
15560
15766
|
"_disabled": [4],
|
|
15561
|
-
"
|
|
15767
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
15562
15768
|
"_hideLabel": [4, "_hide-label"],
|
|
15563
15769
|
"_hint": [1],
|
|
15564
15770
|
"_icons": [1],
|
|
@@ -15585,7 +15791,7 @@ class KolCombobox {
|
|
|
15585
15791
|
},
|
|
15586
15792
|
"$listeners$": [[0, "keydown", "handleKeyDown"], [8, "click", "handleWindowClick"], [1, "mousemove", "handleMouseEvent"], [8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"]],
|
|
15587
15793
|
"$lazyBundleId$": "-",
|
|
15588
|
-
"$attrsToReflect$": [["
|
|
15794
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
15589
15795
|
}; }
|
|
15590
15796
|
}
|
|
15591
15797
|
|
|
@@ -15612,12 +15818,12 @@ class KolDetails {
|
|
|
15612
15818
|
};
|
|
15613
15819
|
this._disabled = false;
|
|
15614
15820
|
this._label = undefined;
|
|
15615
|
-
this._level =
|
|
15821
|
+
this._level = 0;
|
|
15616
15822
|
this._on = undefined;
|
|
15617
15823
|
this._open = false;
|
|
15618
15824
|
this.state = {
|
|
15619
15825
|
_label: '',
|
|
15620
|
-
_level:
|
|
15826
|
+
_level: 0,
|
|
15621
15827
|
_on: {},
|
|
15622
15828
|
};
|
|
15623
15829
|
}
|
|
@@ -15626,8 +15832,7 @@ class KolDetails {
|
|
|
15626
15832
|
await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
15627
15833
|
}
|
|
15628
15834
|
render() {
|
|
15629
|
-
const { _open, _label, _disabled } = this.state;
|
|
15630
|
-
const _level = 1;
|
|
15835
|
+
const { _open, _label, _disabled, _level } = this.state;
|
|
15631
15836
|
const rootClass = 'kol-details';
|
|
15632
15837
|
const props = {
|
|
15633
15838
|
id: this.nonce,
|
|
@@ -15649,7 +15854,7 @@ class KolDetails {
|
|
|
15649
15854
|
animationClass: `${rootClass}__wrapper-animation`,
|
|
15650
15855
|
},
|
|
15651
15856
|
};
|
|
15652
|
-
return (hAsync(KolCollapsibleFc$1, Object.assign({ key: '
|
|
15857
|
+
return (hAsync(KolCollapsibleFc$1, Object.assign({ key: '7ea8720203ee440b779c90a4d6f4042e3ebdeb6d' }, props), hAsync("slot", { key: '8ff437abe8ffb838fb30b67121ce22b5c69d7f5c' })));
|
|
15653
15858
|
}
|
|
15654
15859
|
validateDisabled(value) {
|
|
15655
15860
|
validateDisabled(this, value);
|
|
@@ -15882,27 +16087,22 @@ class KolForm {
|
|
|
15882
16087
|
targetElement.focus();
|
|
15883
16088
|
}
|
|
15884
16089
|
};
|
|
16090
|
+
this.setBlockElement = (el) => (this.errorListBlock = el);
|
|
16091
|
+
this.setFirstLinkElement = (el) => (this.errorListFirstLink = el);
|
|
15885
16092
|
this._on = undefined;
|
|
15886
16093
|
this._requiredText = true;
|
|
15887
16094
|
this._errorList = undefined;
|
|
15888
16095
|
this.state = {};
|
|
15889
16096
|
}
|
|
15890
16097
|
renderErrorList(errorList) {
|
|
15891
|
-
return (hAsync(KolAlertFc$1, { class: "kol-form__alert", ref: (
|
|
15892
|
-
this.errorListBlock = el;
|
|
15893
|
-
}, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { class: "kol-form__link", _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: (el) => {
|
|
15894
|
-
if (index === 0) {
|
|
15895
|
-
this.errorListFirstLink = el;
|
|
15896
|
-
this.scrollToErrorList();
|
|
15897
|
-
}
|
|
15898
|
-
} }))))))));
|
|
16098
|
+
return (hAsync(KolAlertFc$1, { class: "kol-form__alert", ref: this.setBlockElement, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { class: "kol-form__link", _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: index === 0 ? this.setFirstLinkElement : undefined }))))))));
|
|
15899
16099
|
}
|
|
15900
16100
|
renderFormElement() {
|
|
15901
16101
|
return (hAsync("form", { class: "kol-form", method: "post", onSubmit: this.onSubmit, onReset: this.onReset, autoComplete: "off", noValidate: true }, this.state._requiredText === true ? (hAsync("p", null, hAsync("div", { class: "kol-form__mandatory-fields-hint" }, translate('kol-form-description')))) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (hAsync("p", null, hAsync("div", { class: "kol-form__mandatory-fields-hint" }, this.state._requiredText))) : null, hAsync("slot", null)));
|
|
15902
16102
|
}
|
|
15903
16103
|
render() {
|
|
15904
16104
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
15905
|
-
return (hAsync(Host, { key: '
|
|
16105
|
+
return (hAsync(Host, { key: 'c2a136366ecf4670db6d7a53e176738fdb472016' }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
15906
16106
|
}
|
|
15907
16107
|
scrollToErrorList() {
|
|
15908
16108
|
var _a;
|
|
@@ -15972,12 +16172,12 @@ class KolHeading {
|
|
|
15972
16172
|
constructor(hostRef) {
|
|
15973
16173
|
registerInstance(this, hostRef);
|
|
15974
16174
|
this._label = undefined;
|
|
15975
|
-
this._level =
|
|
16175
|
+
this._level = 0;
|
|
15976
16176
|
this._secondaryHeadline = undefined;
|
|
15977
16177
|
this._variant = undefined;
|
|
15978
16178
|
this.state = {
|
|
15979
16179
|
_label: '',
|
|
15980
|
-
_level:
|
|
16180
|
+
_level: 0,
|
|
15981
16181
|
};
|
|
15982
16182
|
}
|
|
15983
16183
|
validateLabel(value) {
|
|
@@ -16278,39 +16478,6 @@ class InputCheckboxController extends InputCheckboxRadioController {
|
|
|
16278
16478
|
}
|
|
16279
16479
|
}
|
|
16280
16480
|
|
|
16281
|
-
function getFormFieldProps(state) {
|
|
16282
|
-
const props = {
|
|
16283
|
-
id: state._id,
|
|
16284
|
-
disabled: state._disabled,
|
|
16285
|
-
msg: convertMsgToInternMsg(state._msg),
|
|
16286
|
-
hint: state._hint,
|
|
16287
|
-
label: state._label,
|
|
16288
|
-
hideLabel: state._hideLabel,
|
|
16289
|
-
hideError: state._hideError,
|
|
16290
|
-
touched: state._touched,
|
|
16291
|
-
accessKey: state._accessKey,
|
|
16292
|
-
shortKey: state._shortKey,
|
|
16293
|
-
};
|
|
16294
|
-
if ('_required' in state) {
|
|
16295
|
-
props.required = state._required;
|
|
16296
|
-
}
|
|
16297
|
-
if ('_readOnly' in state) {
|
|
16298
|
-
props.readOnly = state._readOnly;
|
|
16299
|
-
}
|
|
16300
|
-
if ('_hasCounter' in state && '_currentLength' in state) {
|
|
16301
|
-
props.counter = state._hasCounter ? { currentLength: state._currentLength } : undefined;
|
|
16302
|
-
if (props.counter && '_maxLength' in state) {
|
|
16303
|
-
props.counter.maxLength = state._maxLength;
|
|
16304
|
-
}
|
|
16305
|
-
}
|
|
16306
|
-
return props;
|
|
16307
|
-
}
|
|
16308
|
-
const FormFieldStateWrapper = (_a, children) => {
|
|
16309
|
-
var { state } = _a, other = __rest(_a, ["state"]);
|
|
16310
|
-
return (hAsync(KolFormFieldFc$1, Object.assign({}, getFormFieldProps(state), other), children));
|
|
16311
|
-
};
|
|
16312
|
-
var KolFormFieldStateWrapperFc = FormFieldStateWrapper;
|
|
16313
|
-
|
|
16314
16481
|
const InputContainer = (_a, children) => {
|
|
16315
16482
|
var { class: classNames } = _a, other = __rest(_a, ["class"]);
|
|
16316
16483
|
return (hAsync("div", Object.assign({ class: clsx('kol-field-control__input', classNames) }, other), children));
|
|
@@ -16405,22 +16572,6 @@ const CheckboxFc = (_a) => {
|
|
|
16405
16572
|
};
|
|
16406
16573
|
var KolCheckboxFc = CheckboxFc;
|
|
16407
16574
|
|
|
16408
|
-
const getRenderStates = (state) => {
|
|
16409
|
-
var _a, _b, _c;
|
|
16410
|
-
const hasMessage = Boolean(((_a = state === null || state === void 0 ? void 0 : state._msg) === null || _a === void 0 ? void 0 : _a._description) && ((_b = state._msg._description) === null || _b === void 0 ? void 0 : _b.length) > 0);
|
|
16411
|
-
const isMessageValidError = ((_c = state._msg) === null || _c === void 0 ? void 0 : _c._type) === 'error' && hasMessage;
|
|
16412
|
-
const hasError = isMessageValidError && state._touched === true;
|
|
16413
|
-
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
16414
|
-
const ariaDescribedBy = [];
|
|
16415
|
-
if (hasMessage) {
|
|
16416
|
-
ariaDescribedBy.push(`${state._id}-msg`);
|
|
16417
|
-
}
|
|
16418
|
-
if (hasHint) {
|
|
16419
|
-
ariaDescribedBy.push(`${state._id}-hint`);
|
|
16420
|
-
}
|
|
16421
|
-
return { hasError, hasHint, ariaDescribedBy };
|
|
16422
|
-
};
|
|
16423
|
-
|
|
16424
16575
|
function getCheckboxProps(state, inputProps = {}) {
|
|
16425
16576
|
const { ariaDescribedBy } = getRenderStates(state);
|
|
16426
16577
|
const props = {
|
|
@@ -16514,7 +16665,7 @@ class KolInputCheckbox {
|
|
|
16514
16665
|
return this.state._icons.unchecked;
|
|
16515
16666
|
}
|
|
16516
16667
|
render() {
|
|
16517
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
16668
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6a0a46a18a7de19b8379ffbcefcf8e7eb346f5e6' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(KolFieldControlStateWrapperFc, Object.assign({ key: '827396232275bb9e76fcba42e9bdaabc4238e09a' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(KolCheckboxStateWrapperFc, Object.assign({ key: '5cc4790a0e8fb58964741c78047c9d0b2d46e80d' }, this.getInputProps())))));
|
|
16518
16669
|
}
|
|
16519
16670
|
constructor(hostRef) {
|
|
16520
16671
|
registerInstance(this, hostRef);
|
|
@@ -16533,7 +16684,7 @@ class KolInputCheckbox {
|
|
|
16533
16684
|
};
|
|
16534
16685
|
this._accessKey = undefined;
|
|
16535
16686
|
this._checked = false;
|
|
16536
|
-
this.
|
|
16687
|
+
this._hideMsg = false;
|
|
16537
16688
|
this._disabled = false;
|
|
16538
16689
|
this._hideLabel = false;
|
|
16539
16690
|
this._hint = '';
|
|
@@ -16555,7 +16706,7 @@ class KolInputCheckbox {
|
|
|
16555
16706
|
this._variant = 'default';
|
|
16556
16707
|
this.state = {
|
|
16557
16708
|
_checked: false,
|
|
16558
|
-
|
|
16709
|
+
_hideMsg: false,
|
|
16559
16710
|
_icons: {
|
|
16560
16711
|
checked: 'codicon codicon-check',
|
|
16561
16712
|
indeterminate: 'codicon codicon-remove',
|
|
@@ -16583,8 +16734,8 @@ class KolInputCheckbox {
|
|
|
16583
16734
|
validateDisabled(value) {
|
|
16584
16735
|
this.controller.validateDisabled(value);
|
|
16585
16736
|
}
|
|
16586
|
-
|
|
16587
|
-
this.controller.
|
|
16737
|
+
validateHideMsg(value) {
|
|
16738
|
+
this.controller.validateHideMsg(value);
|
|
16588
16739
|
}
|
|
16589
16740
|
validateHideLabel(value) {
|
|
16590
16741
|
this.controller.validateHideLabel(value);
|
|
@@ -16647,7 +16798,7 @@ class KolInputCheckbox {
|
|
|
16647
16798
|
"_accessKey": ["validateAccessKey"],
|
|
16648
16799
|
"_checked": ["validateChecked"],
|
|
16649
16800
|
"_disabled": ["validateDisabled"],
|
|
16650
|
-
"
|
|
16801
|
+
"_hideMsg": ["validateHideMsg"],
|
|
16651
16802
|
"_hideLabel": ["validateHideLabel"],
|
|
16652
16803
|
"_hint": ["validateHint"],
|
|
16653
16804
|
"_icons": ["validateIcons"],
|
|
@@ -16675,7 +16826,7 @@ class KolInputCheckbox {
|
|
|
16675
16826
|
"$members$": {
|
|
16676
16827
|
"_accessKey": [1, "_access-key"],
|
|
16677
16828
|
"_checked": [1540],
|
|
16678
|
-
"
|
|
16829
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
16679
16830
|
"_disabled": [4],
|
|
16680
16831
|
"_hideLabel": [4, "_hide-label"],
|
|
16681
16832
|
"_hint": [1],
|
|
@@ -16702,132 +16853,10 @@ class KolInputCheckbox {
|
|
|
16702
16853
|
},
|
|
16703
16854
|
"$listeners$": undefined,
|
|
16704
16855
|
"$lazyBundleId$": "-",
|
|
16705
|
-
"$attrsToReflect$": [["_checked", "_checked"], ["
|
|
16856
|
+
"$attrsToReflect$": [["_checked", "_checked"], ["_hideMsg", "_hide-msg"], ["_indeterminate", "_indeterminate"], ["_touched", "_touched"]]
|
|
16706
16857
|
}; }
|
|
16707
16858
|
}
|
|
16708
16859
|
|
|
16709
|
-
function getInputProps(state) {
|
|
16710
|
-
const { ariaDescribedBy } = getRenderStates(state);
|
|
16711
|
-
const props = {
|
|
16712
|
-
id: state._id,
|
|
16713
|
-
hideLabel: state._hideLabel,
|
|
16714
|
-
label: state._label,
|
|
16715
|
-
accessKey: state._accessKey,
|
|
16716
|
-
disabled: state._disabled,
|
|
16717
|
-
name: state._name,
|
|
16718
|
-
ariaDescribedBy: ariaDescribedBy,
|
|
16719
|
-
};
|
|
16720
|
-
if ('_type' in state)
|
|
16721
|
-
props.type = state._type;
|
|
16722
|
-
if ('_value' in state)
|
|
16723
|
-
props.value = state._value;
|
|
16724
|
-
if ('_required' in state)
|
|
16725
|
-
props.required = state._required;
|
|
16726
|
-
if ('_maxLength' in state)
|
|
16727
|
-
props.maxlength = state._maxLength;
|
|
16728
|
-
if ('_placeholder' in state)
|
|
16729
|
-
props.placeholder = state._placeholder;
|
|
16730
|
-
if ('_autoComplete' in state)
|
|
16731
|
-
props.autoComplete = state._autoComplete;
|
|
16732
|
-
if ('_spellCheck' in state)
|
|
16733
|
-
props.spellcheck = state._spellCheck;
|
|
16734
|
-
if ('_pattern' in state)
|
|
16735
|
-
props.pattern = state._pattern;
|
|
16736
|
-
if ('_readOnly' in state)
|
|
16737
|
-
props.readonly = state._readOnly;
|
|
16738
|
-
if ('_min' in state)
|
|
16739
|
-
props.min = state._min;
|
|
16740
|
-
if ('_max' in state)
|
|
16741
|
-
props.max = state._max;
|
|
16742
|
-
if ('_step' in state)
|
|
16743
|
-
props.step = state._step;
|
|
16744
|
-
if ('_multiple' in state)
|
|
16745
|
-
props.multiple = state._multiple;
|
|
16746
|
-
if ('_checked' in state)
|
|
16747
|
-
props.checked = state._checked;
|
|
16748
|
-
if ('_indeterminate' in state)
|
|
16749
|
-
props.indeterminate = state._indeterminate;
|
|
16750
|
-
if ('_touched' in state)
|
|
16751
|
-
props.touched = state._touched;
|
|
16752
|
-
if ('_msg' in state)
|
|
16753
|
-
props.msg = convertMsgToInternMsg(state._msg);
|
|
16754
|
-
if ('_suggestions' in state) {
|
|
16755
|
-
const hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;
|
|
16756
|
-
if (hasSuggestions) {
|
|
16757
|
-
props.suggestions = (hAsync(KolSuggestionsFc, { id: state._id, suggestions: state._suggestions }));
|
|
16758
|
-
}
|
|
16759
|
-
}
|
|
16760
|
-
return props;
|
|
16761
|
-
}
|
|
16762
|
-
const InputStateWrapper = (_a) => {
|
|
16763
|
-
var { state } = _a, other = __rest(_a, ["state"]);
|
|
16764
|
-
return hAsync(KolInputFc, Object.assign({}, getInputProps(state), other));
|
|
16765
|
-
};
|
|
16766
|
-
var KolInputStateWrapperFc = InputStateWrapper;
|
|
16767
|
-
|
|
16768
|
-
const KolButtonFc = (props) => {
|
|
16769
|
-
const { label, icons, hideLabel, disabled, onClick } = props, other = __rest(props, ["label", "icons", "hideLabel", "disabled", "onClick"]);
|
|
16770
|
-
return hAsync(KolButtonWcTag, Object.assign({ tabindex: 0, _label: label, _disabled: disabled, _icons: icons, _hideLabel: hideLabel, _on: { onClick } }, other));
|
|
16771
|
-
};
|
|
16772
|
-
var KolButtonFc$1 = KolButtonFc;
|
|
16773
|
-
|
|
16774
|
-
const KolIconButtonFc = (props) => {
|
|
16775
|
-
const { componentName = 'button', label, icon, onClick } = props, other = __rest(props, ["componentName", "label", "icon", "onClick"]);
|
|
16776
|
-
const Component = componentName === 'button' ? KolButtonFc$1 : KolIconFc$1;
|
|
16777
|
-
return hAsync(Component, Object.assign({ label: label || '', hideLabel: true, icons: `codicon codicon-${icon}`, onClick: onClick }, other));
|
|
16778
|
-
};
|
|
16779
|
-
var KolIconButtonFc$1 = KolIconButtonFc;
|
|
16780
|
-
|
|
16781
|
-
function getInputContainerProps(state) {
|
|
16782
|
-
let icons = undefined;
|
|
16783
|
-
let smartButton;
|
|
16784
|
-
if ('_icons' in state) {
|
|
16785
|
-
icons = state._icons;
|
|
16786
|
-
}
|
|
16787
|
-
if ('_smartButton' in state) {
|
|
16788
|
-
smartButton = state._smartButton;
|
|
16789
|
-
}
|
|
16790
|
-
return {
|
|
16791
|
-
icons,
|
|
16792
|
-
smartButton,
|
|
16793
|
-
disabled: state._disabled,
|
|
16794
|
-
msg: convertMsgToInternMsg(state._msg),
|
|
16795
|
-
touched: state._touched,
|
|
16796
|
-
};
|
|
16797
|
-
}
|
|
16798
|
-
const InputContainerStateWrapperFc = ({ state, endAdornment: defaultEndAdornment }, children) => {
|
|
16799
|
-
const { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);
|
|
16800
|
-
let leftIconProps = icons === null || icons === void 0 ? void 0 : icons.left;
|
|
16801
|
-
if (isString$2(leftIconProps)) {
|
|
16802
|
-
leftIconProps = { icon: leftIconProps };
|
|
16803
|
-
}
|
|
16804
|
-
let rightIconProps = icons === null || icons === void 0 ? void 0 : icons.right;
|
|
16805
|
-
if (isString$2(rightIconProps)) {
|
|
16806
|
-
rightIconProps = { icon: rightIconProps };
|
|
16807
|
-
}
|
|
16808
|
-
const startAdornment = [];
|
|
16809
|
-
const endAdornment = [];
|
|
16810
|
-
if (defaultEndAdornment) {
|
|
16811
|
-
if (Array.isArray(defaultEndAdornment)) {
|
|
16812
|
-
endAdornment.push(...defaultEndAdornment);
|
|
16813
|
-
}
|
|
16814
|
-
else {
|
|
16815
|
-
endAdornment.push(defaultEndAdornment);
|
|
16816
|
-
}
|
|
16817
|
-
}
|
|
16818
|
-
if (leftIconProps) {
|
|
16819
|
-
startAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(leftIconProps) ? leftIconProps : {}))));
|
|
16820
|
-
}
|
|
16821
|
-
if (isObject$1(smartButton)) {
|
|
16822
|
-
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "button" }, smartButton, { hideLabel: true, disabled: disabled })));
|
|
16823
|
-
}
|
|
16824
|
-
if (rightIconProps) {
|
|
16825
|
-
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(rightIconProps) ? rightIconProps : {}))));
|
|
16826
|
-
}
|
|
16827
|
-
return (hAsync(KolInputContainerFc$1, { disabled: disabled, msg: msg, touched: touched, startAdornment: startAdornment, endAdornment: endAdornment }, children));
|
|
16828
|
-
};
|
|
16829
|
-
var KolInputContainerStateWrapperFc = InputContainerStateWrapperFc;
|
|
16830
|
-
|
|
16831
16860
|
class InputColorController extends InputIconController {
|
|
16832
16861
|
constructor(component, name, host) {
|
|
16833
16862
|
super(component, name, host);
|
|
@@ -16851,7 +16880,7 @@ class InputColorController extends InputIconController {
|
|
|
16851
16880
|
}
|
|
16852
16881
|
}
|
|
16853
16882
|
|
|
16854
|
-
const defaultStyleCss$u = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
16883
|
+
const defaultStyleCss$u = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
16855
16884
|
var KolInputColorDefaultStyle0 = defaultStyleCss$u;
|
|
16856
16885
|
|
|
16857
16886
|
class KolInputColor {
|
|
@@ -16876,7 +16905,7 @@ class KolInputColor {
|
|
|
16876
16905
|
return Object.assign(Object.assign({ ref: this.catchRef, type: 'color', slot: 'input', state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput });
|
|
16877
16906
|
}
|
|
16878
16907
|
render() {
|
|
16879
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
16908
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '2cc074d267724a8844cb3a74173a4158d5085dec' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '97ab0641e442efdf1cae0db8b98ddc495dcbbb83', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '04f39017c2a6c0056d7c72d2dbc868f6af0eb495' }, this.getInputProps())))));
|
|
16880
16909
|
}
|
|
16881
16910
|
constructor(hostRef) {
|
|
16882
16911
|
registerInstance(this, hostRef);
|
|
@@ -16899,7 +16928,7 @@ class KolInputColor {
|
|
|
16899
16928
|
this._accessKey = undefined;
|
|
16900
16929
|
this._autoComplete = undefined;
|
|
16901
16930
|
this._disabled = false;
|
|
16902
|
-
this.
|
|
16931
|
+
this._hideMsg = false;
|
|
16903
16932
|
this._hideLabel = false;
|
|
16904
16933
|
this._hint = '';
|
|
16905
16934
|
this._icons = undefined;
|
|
@@ -16918,7 +16947,7 @@ class KolInputColor {
|
|
|
16918
16947
|
this._value = undefined;
|
|
16919
16948
|
this.state = {
|
|
16920
16949
|
_autoComplete: 'off',
|
|
16921
|
-
|
|
16950
|
+
_hideMsg: false,
|
|
16922
16951
|
_id: `id-${nonce()}`,
|
|
16923
16952
|
_label: '',
|
|
16924
16953
|
_suggestions: [],
|
|
@@ -16938,8 +16967,8 @@ class KolInputColor {
|
|
|
16938
16967
|
validateDisabled(value) {
|
|
16939
16968
|
this.controller.validateDisabled(value);
|
|
16940
16969
|
}
|
|
16941
|
-
|
|
16942
|
-
this.controller.
|
|
16970
|
+
validateHideMsg(value) {
|
|
16971
|
+
this.controller.validateHideMsg(value);
|
|
16943
16972
|
}
|
|
16944
16973
|
validateHideLabel(value) {
|
|
16945
16974
|
this.controller.validateHideLabel(value);
|
|
@@ -16996,7 +17025,7 @@ class KolInputColor {
|
|
|
16996
17025
|
"_accessKey": ["validateAccessKey"],
|
|
16997
17026
|
"_autoComplete": ["validateAutoComplete"],
|
|
16998
17027
|
"_disabled": ["validateDisabled"],
|
|
16999
|
-
"
|
|
17028
|
+
"_hideMsg": ["validateHideMsg"],
|
|
17000
17029
|
"_hideLabel": ["validateHideLabel"],
|
|
17001
17030
|
"_hint": ["validateHint"],
|
|
17002
17031
|
"_icons": ["validateIcons"],
|
|
@@ -17023,7 +17052,7 @@ class KolInputColor {
|
|
|
17023
17052
|
"_accessKey": [1, "_access-key"],
|
|
17024
17053
|
"_autoComplete": [1, "_auto-complete"],
|
|
17025
17054
|
"_disabled": [4],
|
|
17026
|
-
"
|
|
17055
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
17027
17056
|
"_hideLabel": [4, "_hide-label"],
|
|
17028
17057
|
"_hint": [1],
|
|
17029
17058
|
"_icons": [1],
|
|
@@ -17047,7 +17076,7 @@ class KolInputColor {
|
|
|
17047
17076
|
},
|
|
17048
17077
|
"$listeners$": undefined,
|
|
17049
17078
|
"$lazyBundleId$": "-",
|
|
17050
|
-
"$attrsToReflect$": [["
|
|
17079
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
17051
17080
|
}; }
|
|
17052
17081
|
}
|
|
17053
17082
|
|
|
@@ -17200,7 +17229,7 @@ InputDateController.isoTimeRegex = /^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/;
|
|
|
17200
17229
|
InputDateController.isoWeekRegex = /^\d{4}-W(?:[0-4]\d|5[0-3])$/;
|
|
17201
17230
|
InputDateController.DEFAULT_MAX_DATE = new Date(9999, 11, 31, 23, 59, 59);
|
|
17202
17231
|
|
|
17203
|
-
const defaultStyleCss$t = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
17232
|
+
const defaultStyleCss$t = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
17204
17233
|
var KolInputDateDefaultStyle0 = defaultStyleCss$t;
|
|
17205
17234
|
|
|
17206
17235
|
class KolInputDate {
|
|
@@ -17248,7 +17277,7 @@ class KolInputDate {
|
|
|
17248
17277
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onChange: this.onChange, onInput: this.onInput });
|
|
17249
17278
|
}
|
|
17250
17279
|
render() {
|
|
17251
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
17280
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '7e3a749df34a7a6475d0b84c2203a3d3c784a84d' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '51ec81dc553db4bc3293877dab6c47dcb697bbdd', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'd4662d1832990c06d4327c10eb24866e4d3235df' }, this.getInputProps())))));
|
|
17252
17281
|
}
|
|
17253
17282
|
constructor(hostRef) {
|
|
17254
17283
|
registerInstance(this, hostRef);
|
|
@@ -17286,7 +17315,7 @@ class KolInputDate {
|
|
|
17286
17315
|
this._accessKey = undefined;
|
|
17287
17316
|
this._autoComplete = undefined;
|
|
17288
17317
|
this._disabled = false;
|
|
17289
|
-
this.
|
|
17318
|
+
this._hideMsg = false;
|
|
17290
17319
|
this._hideLabel = false;
|
|
17291
17320
|
this._hint = '';
|
|
17292
17321
|
this._icons = undefined;
|
|
@@ -17312,7 +17341,7 @@ class KolInputDate {
|
|
|
17312
17341
|
this.state = {
|
|
17313
17342
|
_autoComplete: 'off',
|
|
17314
17343
|
_hasValue: false,
|
|
17315
|
-
|
|
17344
|
+
_hideMsg: false,
|
|
17316
17345
|
_id: `id-${nonce()}`,
|
|
17317
17346
|
_label: '',
|
|
17318
17347
|
_suggestions: [],
|
|
@@ -17333,8 +17362,8 @@ class KolInputDate {
|
|
|
17333
17362
|
validateDisabled(value) {
|
|
17334
17363
|
this.controller.validateDisabled(value);
|
|
17335
17364
|
}
|
|
17336
|
-
|
|
17337
|
-
this.controller.
|
|
17365
|
+
validateHideMsg(value) {
|
|
17366
|
+
this.controller.validateHideMsg(value);
|
|
17338
17367
|
}
|
|
17339
17368
|
validateHideLabel(value) {
|
|
17340
17369
|
this.controller.validateHideLabel(value);
|
|
@@ -17418,7 +17447,7 @@ class KolInputDate {
|
|
|
17418
17447
|
"_accessKey": ["validateAccessKey"],
|
|
17419
17448
|
"_autoComplete": ["validateAutoComplete"],
|
|
17420
17449
|
"_disabled": ["validateDisabled"],
|
|
17421
|
-
"
|
|
17450
|
+
"_hideMsg": ["validateHideMsg"],
|
|
17422
17451
|
"_hideLabel": ["validateHideLabel"],
|
|
17423
17452
|
"_hint": ["validateHint"],
|
|
17424
17453
|
"_icons": ["validateIcons"],
|
|
@@ -17451,7 +17480,7 @@ class KolInputDate {
|
|
|
17451
17480
|
"_accessKey": [1, "_access-key"],
|
|
17452
17481
|
"_autoComplete": [1, "_auto-complete"],
|
|
17453
17482
|
"_disabled": [4],
|
|
17454
|
-
"
|
|
17483
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
17455
17484
|
"_hideLabel": [4, "_hide-label"],
|
|
17456
17485
|
"_hint": [1],
|
|
17457
17486
|
"_icons": [1],
|
|
@@ -17483,7 +17512,7 @@ class KolInputDate {
|
|
|
17483
17512
|
},
|
|
17484
17513
|
"$listeners$": undefined,
|
|
17485
17514
|
"$lazyBundleId$": "-",
|
|
17486
|
-
"$attrsToReflect$": [["
|
|
17515
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
17487
17516
|
}; }
|
|
17488
17517
|
}
|
|
17489
17518
|
|
|
@@ -17603,7 +17632,7 @@ class InputEmailController extends InputTextEmailController {
|
|
|
17603
17632
|
}
|
|
17604
17633
|
}
|
|
17605
17634
|
|
|
17606
|
-
const defaultStyleCss$s = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
17635
|
+
const defaultStyleCss$s = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
17607
17636
|
var KolInputEmailDefaultStyle0 = defaultStyleCss$s;
|
|
17608
17637
|
|
|
17609
17638
|
class KolInputEmail {
|
|
@@ -17636,7 +17665,7 @@ class KolInputEmail {
|
|
|
17636
17665
|
} });
|
|
17637
17666
|
}
|
|
17638
17667
|
render() {
|
|
17639
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
17668
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '1da21bd08b98eaa5d1fd8b0570a5305b753fb3d8' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'e4a2763de575dd266cd0367a5221d2f301b09bc8', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '6ca6d3beed387300f7ed049a3d32f4bff1d3a2eb' }, this.getInputProps())))));
|
|
17640
17669
|
}
|
|
17641
17670
|
constructor(hostRef) {
|
|
17642
17671
|
registerInstance(this, hostRef);
|
|
@@ -17661,7 +17690,7 @@ class KolInputEmail {
|
|
|
17661
17690
|
this._autoComplete = undefined;
|
|
17662
17691
|
this._disabled = false;
|
|
17663
17692
|
this._hasCounter = false;
|
|
17664
|
-
this.
|
|
17693
|
+
this._hideMsg = false;
|
|
17665
17694
|
this._hideLabel = false;
|
|
17666
17695
|
this._hint = '';
|
|
17667
17696
|
this._icons = undefined;
|
|
@@ -17688,7 +17717,7 @@ class KolInputEmail {
|
|
|
17688
17717
|
_autoComplete: 'off',
|
|
17689
17718
|
_currentLength: 0,
|
|
17690
17719
|
_hasValue: false,
|
|
17691
|
-
|
|
17720
|
+
_hideMsg: false,
|
|
17692
17721
|
_id: `id-${nonce()}`,
|
|
17693
17722
|
_label: '',
|
|
17694
17723
|
_suggestions: [],
|
|
@@ -17711,8 +17740,8 @@ class KolInputEmail {
|
|
|
17711
17740
|
validateHasCounter(value) {
|
|
17712
17741
|
this.controller.validateHasCounter(value);
|
|
17713
17742
|
}
|
|
17714
|
-
|
|
17715
|
-
this.controller.
|
|
17743
|
+
validateHideMsg(value) {
|
|
17744
|
+
this.controller.validateHideMsg(value);
|
|
17716
17745
|
}
|
|
17717
17746
|
validateHideLabel(value) {
|
|
17718
17747
|
this.controller.validateHideLabel(value);
|
|
@@ -17790,7 +17819,7 @@ class KolInputEmail {
|
|
|
17790
17819
|
"_autoComplete": ["validateAutoComplete"],
|
|
17791
17820
|
"_disabled": ["validateDisabled"],
|
|
17792
17821
|
"_hasCounter": ["validateHasCounter"],
|
|
17793
|
-
"
|
|
17822
|
+
"_hideMsg": ["validateHideMsg"],
|
|
17794
17823
|
"_hideLabel": ["validateHideLabel"],
|
|
17795
17824
|
"_hint": ["validateHint"],
|
|
17796
17825
|
"_icons": ["validateIcons"],
|
|
@@ -17824,7 +17853,7 @@ class KolInputEmail {
|
|
|
17824
17853
|
"_autoComplete": [1, "_auto-complete"],
|
|
17825
17854
|
"_disabled": [4],
|
|
17826
17855
|
"_hasCounter": [4, "_has-counter"],
|
|
17827
|
-
"
|
|
17856
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
17828
17857
|
"_hideLabel": [4, "_hide-label"],
|
|
17829
17858
|
"_hint": [1],
|
|
17830
17859
|
"_icons": [1],
|
|
@@ -17854,7 +17883,7 @@ class KolInputEmail {
|
|
|
17854
17883
|
},
|
|
17855
17884
|
"$listeners$": undefined,
|
|
17856
17885
|
"$lazyBundleId$": "-",
|
|
17857
|
-
"$attrsToReflect$": [["
|
|
17886
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
17858
17887
|
}; }
|
|
17859
17888
|
}
|
|
17860
17889
|
|
|
@@ -17880,7 +17909,7 @@ class InputFileController extends InputIconController {
|
|
|
17880
17909
|
}
|
|
17881
17910
|
}
|
|
17882
17911
|
|
|
17883
|
-
const defaultStyleCss$r = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-input {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n}";
|
|
17912
|
+
const defaultStyleCss$r = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-input {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n}";
|
|
17884
17913
|
var KolInputFileDefaultStyle0 = defaultStyleCss$r;
|
|
17885
17914
|
|
|
17886
17915
|
class KolInputFile {
|
|
@@ -17911,7 +17940,7 @@ class KolInputFile {
|
|
|
17911
17940
|
} });
|
|
17912
17941
|
}
|
|
17913
17942
|
render() {
|
|
17914
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
17943
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '3c2a19696312a817df72cf8aba4e02ed60eb6768' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '783aaf2dac305d6715be4e6d6cef68543d07b9b8', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'e9c64850b8109420d3bb513ccacd19f77cde2f24' }, this.getInputProps())))));
|
|
17915
17944
|
}
|
|
17916
17945
|
constructor(hostRef) {
|
|
17917
17946
|
registerInstance(this, hostRef);
|
|
@@ -17934,7 +17963,7 @@ class KolInputFile {
|
|
|
17934
17963
|
this._accept = undefined;
|
|
17935
17964
|
this._accessKey = undefined;
|
|
17936
17965
|
this._disabled = false;
|
|
17937
|
-
this.
|
|
17966
|
+
this._hideMsg = false;
|
|
17938
17967
|
this._hideLabel = false;
|
|
17939
17968
|
this._hint = '';
|
|
17940
17969
|
this._icons = undefined;
|
|
@@ -17952,7 +17981,7 @@ class KolInputFile {
|
|
|
17952
17981
|
this._tooltipAlign = 'top';
|
|
17953
17982
|
this._touched = false;
|
|
17954
17983
|
this.state = {
|
|
17955
|
-
|
|
17984
|
+
_hideMsg: false,
|
|
17956
17985
|
_id: `id-${nonce()}`,
|
|
17957
17986
|
_label: '',
|
|
17958
17987
|
};
|
|
@@ -17971,8 +18000,8 @@ class KolInputFile {
|
|
|
17971
18000
|
validateDisabled(value) {
|
|
17972
18001
|
this.controller.validateDisabled(value);
|
|
17973
18002
|
}
|
|
17974
|
-
|
|
17975
|
-
this.controller.
|
|
18003
|
+
validateHideMsg(value) {
|
|
18004
|
+
this.controller.validateHideMsg(value);
|
|
17976
18005
|
}
|
|
17977
18006
|
validateHideLabel(value) {
|
|
17978
18007
|
this.controller.validateHideLabel(value);
|
|
@@ -18029,7 +18058,7 @@ class KolInputFile {
|
|
|
18029
18058
|
"_accept": ["validateAccept"],
|
|
18030
18059
|
"_accessKey": ["validateAccessKey"],
|
|
18031
18060
|
"_disabled": ["validateDisabled"],
|
|
18032
|
-
"
|
|
18061
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18033
18062
|
"_hideLabel": ["validateHideLabel"],
|
|
18034
18063
|
"_hint": ["validateHint"],
|
|
18035
18064
|
"_icons": ["validateIcons"],
|
|
@@ -18056,7 +18085,7 @@ class KolInputFile {
|
|
|
18056
18085
|
"_accept": [1],
|
|
18057
18086
|
"_accessKey": [1, "_access-key"],
|
|
18058
18087
|
"_disabled": [4],
|
|
18059
|
-
"
|
|
18088
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18060
18089
|
"_hideLabel": [4, "_hide-label"],
|
|
18061
18090
|
"_hint": [1],
|
|
18062
18091
|
"_icons": [1],
|
|
@@ -18080,7 +18109,7 @@ class KolInputFile {
|
|
|
18080
18109
|
},
|
|
18081
18110
|
"$listeners$": undefined,
|
|
18082
18111
|
"$lazyBundleId$": "-",
|
|
18083
|
-
"$attrsToReflect$": [["
|
|
18112
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"]]
|
|
18084
18113
|
}; }
|
|
18085
18114
|
}
|
|
18086
18115
|
|
|
@@ -18124,7 +18153,7 @@ class InputNumberController extends InputIconController {
|
|
|
18124
18153
|
onChange(event) {
|
|
18125
18154
|
super.onChange(event);
|
|
18126
18155
|
if (!!event.target.value !== !!this.component._value) {
|
|
18127
|
-
this.component._value = event.target.value;
|
|
18156
|
+
this.component._value = parseFloat(event.target.value);
|
|
18128
18157
|
}
|
|
18129
18158
|
}
|
|
18130
18159
|
validateMax(value) {
|
|
@@ -18166,7 +18195,7 @@ class InputNumberController extends InputIconController {
|
|
|
18166
18195
|
}
|
|
18167
18196
|
}
|
|
18168
18197
|
|
|
18169
|
-
const defaultStyleCss$q = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
18198
|
+
const defaultStyleCss$q = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
18170
18199
|
var KolInputNumberDefaultStyle0 = defaultStyleCss$q;
|
|
18171
18200
|
|
|
18172
18201
|
class KolInputNumber {
|
|
@@ -18199,7 +18228,7 @@ class KolInputNumber {
|
|
|
18199
18228
|
} });
|
|
18200
18229
|
}
|
|
18201
18230
|
render() {
|
|
18202
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
18231
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6a2b442199bca0bde5330fe6c8752669d5f4e934' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '1b8bbc0f5b79acc5c479a07e5273bf560de6959f', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'dcf8e4c7d7907c1f87a7fa9bde93df0c2a1ff1dd' }, this.getInputProps())))));
|
|
18203
18232
|
}
|
|
18204
18233
|
constructor(hostRef) {
|
|
18205
18234
|
registerInstance(this, hostRef);
|
|
@@ -18222,7 +18251,7 @@ class KolInputNumber {
|
|
|
18222
18251
|
this._accessKey = undefined;
|
|
18223
18252
|
this._autoComplete = undefined;
|
|
18224
18253
|
this._disabled = false;
|
|
18225
|
-
this.
|
|
18254
|
+
this._hideMsg = false;
|
|
18226
18255
|
this._hideLabel = false;
|
|
18227
18256
|
this._hint = '';
|
|
18228
18257
|
this._icons = undefined;
|
|
@@ -18248,7 +18277,7 @@ class KolInputNumber {
|
|
|
18248
18277
|
this.state = {
|
|
18249
18278
|
_autoComplete: 'off',
|
|
18250
18279
|
_hasValue: false,
|
|
18251
|
-
|
|
18280
|
+
_hideMsg: false,
|
|
18252
18281
|
_id: `id-${nonce()}`,
|
|
18253
18282
|
_label: '',
|
|
18254
18283
|
_suggestions: [],
|
|
@@ -18268,8 +18297,8 @@ class KolInputNumber {
|
|
|
18268
18297
|
validateDisabled(value) {
|
|
18269
18298
|
this.controller.validateDisabled(value);
|
|
18270
18299
|
}
|
|
18271
|
-
|
|
18272
|
-
this.controller.
|
|
18300
|
+
validateHideMsg(value) {
|
|
18301
|
+
this.controller.validateHideMsg(value);
|
|
18273
18302
|
}
|
|
18274
18303
|
validateHideLabel(value) {
|
|
18275
18304
|
this.controller.validateHideLabel(value);
|
|
@@ -18346,7 +18375,7 @@ class KolInputNumber {
|
|
|
18346
18375
|
"_accessKey": ["validateAccessKey"],
|
|
18347
18376
|
"_autoComplete": ["validateAutoComplete"],
|
|
18348
18377
|
"_disabled": ["validateDisabled"],
|
|
18349
|
-
"
|
|
18378
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18350
18379
|
"_hideLabel": ["validateHideLabel"],
|
|
18351
18380
|
"_hint": ["validateHint"],
|
|
18352
18381
|
"_icons": ["validateIcons"],
|
|
@@ -18379,14 +18408,14 @@ class KolInputNumber {
|
|
|
18379
18408
|
"_accessKey": [1, "_access-key"],
|
|
18380
18409
|
"_autoComplete": [1, "_auto-complete"],
|
|
18381
18410
|
"_disabled": [4],
|
|
18382
|
-
"
|
|
18411
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18383
18412
|
"_hideLabel": [4, "_hide-label"],
|
|
18384
18413
|
"_hint": [1],
|
|
18385
18414
|
"_icons": [1],
|
|
18386
18415
|
"_id": [1],
|
|
18387
18416
|
"_label": [1],
|
|
18388
|
-
"_max": [
|
|
18389
|
-
"_min": [
|
|
18417
|
+
"_max": [2],
|
|
18418
|
+
"_min": [2],
|
|
18390
18419
|
"_msg": [1],
|
|
18391
18420
|
"_name": [1],
|
|
18392
18421
|
"_on": [16],
|
|
@@ -18401,7 +18430,7 @@ class KolInputNumber {
|
|
|
18401
18430
|
"_tabIndex": [2, "_tab-index"],
|
|
18402
18431
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
18403
18432
|
"_touched": [1540],
|
|
18404
|
-
"_value": [
|
|
18433
|
+
"_value": [1538],
|
|
18405
18434
|
"state": [32],
|
|
18406
18435
|
"inputHasFocus": [32],
|
|
18407
18436
|
"getValue": [64],
|
|
@@ -18409,11 +18438,11 @@ class KolInputNumber {
|
|
|
18409
18438
|
},
|
|
18410
18439
|
"$listeners$": undefined,
|
|
18411
18440
|
"$lazyBundleId$": "-",
|
|
18412
|
-
"$attrsToReflect$": [["
|
|
18441
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
18413
18442
|
}; }
|
|
18414
18443
|
}
|
|
18415
18444
|
|
|
18416
|
-
const defaultStyleCss$p = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-input-password {\n --kol-tooltip-width: calc(160rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
18445
|
+
const defaultStyleCss$p = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-input-password {\n --kol-tooltip-width: calc(160rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
18417
18446
|
var KolInputPasswordDefaultStyle0 = defaultStyleCss$p;
|
|
18418
18447
|
|
|
18419
18448
|
class KolInputPassword {
|
|
@@ -18456,7 +18485,7 @@ class KolInputPassword {
|
|
|
18456
18485
|
}, icon: `codicon codicon-eye-${this._passwordVisible ? 'closed' : 'watch'}`, disabled: this._disabled }));
|
|
18457
18486
|
}
|
|
18458
18487
|
render() {
|
|
18459
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
18488
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '19c7942b0bcbefd79949c6363eaef0f7132b4715' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '665dd89045b1d2e21531faf926ea6ffa954d62d8', state: this.state, endAdornment: this.getShowPasswordButton() }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '5f2b33f1dc95198727b1d573727c64dfb1bc93d4' }, this.getInputProps())))));
|
|
18460
18489
|
}
|
|
18461
18490
|
constructor(hostRef) {
|
|
18462
18491
|
registerInstance(this, hostRef);
|
|
@@ -18481,7 +18510,7 @@ class KolInputPassword {
|
|
|
18481
18510
|
this._autoComplete = undefined;
|
|
18482
18511
|
this._disabled = false;
|
|
18483
18512
|
this._hasCounter = false;
|
|
18484
|
-
this.
|
|
18513
|
+
this._hideMsg = false;
|
|
18485
18514
|
this._hideLabel = false;
|
|
18486
18515
|
this._hint = '';
|
|
18487
18516
|
this._icons = undefined;
|
|
@@ -18507,7 +18536,7 @@ class KolInputPassword {
|
|
|
18507
18536
|
_autoComplete: 'off',
|
|
18508
18537
|
_currentLength: 0,
|
|
18509
18538
|
_hasValue: false,
|
|
18510
|
-
|
|
18539
|
+
_hideMsg: false,
|
|
18511
18540
|
_id: `id-${nonce()}`,
|
|
18512
18541
|
_label: '',
|
|
18513
18542
|
_variant: 'default',
|
|
@@ -18537,8 +18566,8 @@ class KolInputPassword {
|
|
|
18537
18566
|
validateHasCounter(value) {
|
|
18538
18567
|
this.controller.validateHasCounter(value);
|
|
18539
18568
|
}
|
|
18540
|
-
|
|
18541
|
-
this.controller.
|
|
18569
|
+
validateHideMsg(value) {
|
|
18570
|
+
this.controller.validateHideMsg(value);
|
|
18542
18571
|
}
|
|
18543
18572
|
validateHideLabel(value) {
|
|
18544
18573
|
this.controller.validateHideLabel(value);
|
|
@@ -18611,7 +18640,7 @@ class KolInputPassword {
|
|
|
18611
18640
|
"_disabled": ["validateDisabled"],
|
|
18612
18641
|
"_variant": ["validateVariant"],
|
|
18613
18642
|
"_hasCounter": ["validateHasCounter"],
|
|
18614
|
-
"
|
|
18643
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18615
18644
|
"_hideLabel": ["validateHideLabel"],
|
|
18616
18645
|
"_hint": ["validateHint"],
|
|
18617
18646
|
"_icons": ["validateIcons"],
|
|
@@ -18643,7 +18672,7 @@ class KolInputPassword {
|
|
|
18643
18672
|
"_autoComplete": [1, "_auto-complete"],
|
|
18644
18673
|
"_disabled": [4],
|
|
18645
18674
|
"_hasCounter": [4, "_has-counter"],
|
|
18646
|
-
"
|
|
18675
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18647
18676
|
"_hideLabel": [4, "_hide-label"],
|
|
18648
18677
|
"_hint": [1],
|
|
18649
18678
|
"_icons": [1],
|
|
@@ -18673,11 +18702,11 @@ class KolInputPassword {
|
|
|
18673
18702
|
},
|
|
18674
18703
|
"$listeners$": undefined,
|
|
18675
18704
|
"$lazyBundleId$": "-",
|
|
18676
|
-
"$attrsToReflect$": [["
|
|
18705
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
18677
18706
|
}; }
|
|
18678
18707
|
}
|
|
18679
18708
|
|
|
18680
|
-
const defaultStyleCss$o = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-field-control {\n min-height: var(--a11y-min-size);\n display: grid;\n grid-template-columns: auto 1fr;\n grid-template-areas: \"input label\";\n grid-template-rows: auto;\n align-items: center;\n justify-content: left;\n }\n .kol-field-control:has(.kol-field-control__hint) {\n grid-template-columns: auto 1fr;\n grid-template-areas: \"input label\" \"hint hint\";\n grid-template-rows: auto auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label) {\n grid-template-columns: 1fr auto;\n grid-template-areas: \"label input\";\n grid-template-rows: auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) {\n grid-template-columns: 1fr auto;\n grid-template-areas: \"label input\" \"hint hint\";\n grid-template-rows: auto auto;\n }\n .kol-field-control__input {\n grid-area: input;\n display: flex;\n min-height: var(--a11y-min-size);\n align-items: center;\n }\n .kol-field-control__label {\n align-items: center;\n cursor: pointer;\n display: flex;\n flex-grow: 1;\n grid-area: label;\n min-height: var(--a11y-min-size);\n }\n .kol-field-control__label--visually-hidden {\n height: 0;\n margin: 0;\n padding: 0;\n visibility: hidden;\n }\n .kol-field-control__label-text::after {\n content: \"\";\n }\n .kol-field-control__tooltip .span-label::after {\n content: \"\";\n }\n .kol-field-control__hint {\n grid-area: hint;\n }\n .kol-field-control--disabled .kol-field-control__label {\n cursor: not-allowed;\n opacity: 0.5;\n }\n .kol-field-control--required .kol-field-control__label-text::after {\n content: \"*\";\n }\n .kol-field-control--required .kol-field-control__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-form-field {\n --border-width: calc(2rem / var(--kolibri-root-font-size, 16));\n --input-size: 1.5em;\n }\n .kol-form-field__label {\n display: contents;\n }\n .kol-form-field__input {\n display: flex;\n flex-direction: column;\n }\n .kol-form-field__input--orientation-horizontal {\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n }\n .kol-form-field--disabled {\n opacity: unset;\n }\n .kol-input-radio {\n appearance: none;\n border-width: var(--border-width);\n border-style: solid;\n border-radius: 100%;\n cursor: pointer;\n display: flex;\n height: var(--input-size);\n margin: 0;\n min-height: var(--input-size);\n min-width: var(--input-size);\n padding: 0;\n width: var(--input-size);\n }\n .kol-input-radio:before {\n border-radius: 100%;\n content: \"\";\n margin: auto;\n height: calc(var(--input-size) / 2);\n width: calc(var(--input-size) / 2);\n }\n .kol-input-radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-input-radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-input-radio:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n}";
|
|
18709
|
+
const defaultStyleCss$o = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-field-control {\n min-height: var(--a11y-min-size);\n display: grid;\n grid-template-columns: auto 1fr;\n grid-template-areas: \"input label\";\n grid-template-rows: auto;\n align-items: center;\n justify-content: left;\n }\n .kol-field-control:has(.kol-field-control__hint) {\n grid-template-columns: auto 1fr;\n grid-template-areas: \"input label\" \"hint hint\";\n grid-template-rows: auto auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label) {\n grid-template-columns: 1fr auto;\n grid-template-areas: \"label input\";\n grid-template-rows: auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) {\n grid-template-columns: 1fr auto;\n grid-template-areas: \"label input\" \"hint hint\";\n grid-template-rows: auto auto;\n }\n .kol-field-control__input {\n grid-area: input;\n display: flex;\n min-height: var(--a11y-min-size);\n align-items: center;\n }\n .kol-field-control__label {\n align-items: center;\n cursor: pointer;\n display: flex;\n flex-grow: 1;\n grid-area: label;\n min-height: var(--a11y-min-size);\n }\n .kol-field-control__label--visually-hidden {\n height: 0;\n margin: 0;\n padding: 0;\n visibility: hidden;\n }\n .kol-field-control__label-text::after {\n content: \"\";\n }\n .kol-field-control__tooltip .span-label::after {\n content: \"\";\n }\n .kol-field-control__hint {\n grid-area: hint;\n }\n .kol-field-control--disabled .kol-field-control__label {\n cursor: not-allowed;\n opacity: 0.5;\n }\n .kol-field-control--required .kol-field-control__label-text::after {\n content: \"*\";\n }\n .kol-field-control--required .kol-field-control__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-form-field {\n --border-width: calc(2rem / var(--kolibri-root-font-size, 16));\n --input-size: 1.5em;\n }\n .kol-form-field__label {\n display: contents;\n }\n .kol-form-field__input {\n display: flex;\n flex-direction: column;\n }\n .kol-form-field__input--orientation-horizontal {\n flex-direction: row;\n flex-wrap: wrap;\n align-items: flex-start;\n }\n .kol-form-field--disabled {\n opacity: unset;\n }\n .kol-input-radio {\n appearance: none;\n border-width: var(--border-width);\n border-style: solid;\n border-radius: 100%;\n cursor: pointer;\n display: flex;\n height: var(--input-size);\n margin: 0;\n min-height: var(--input-size);\n min-width: var(--input-size);\n padding: 0;\n width: var(--input-size);\n }\n .kol-input-radio:before {\n border-radius: 100%;\n content: \"\";\n margin: auto;\n height: calc(var(--input-size) / 2);\n width: calc(var(--input-size) / 2);\n }\n .kol-input-radio:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .kol-input-radio:checked:before {\n /* Give it a visible background in forced colors mode */\n background-color: selectedItem !important;\n }\n }\n .kol-input-radio:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n}";
|
|
18681
18710
|
var KolInputRadioDefaultStyle0 = defaultStyleCss$o;
|
|
18682
18711
|
|
|
18683
18712
|
class KolInputRadio {
|
|
@@ -18701,13 +18730,12 @@ class KolInputRadio {
|
|
|
18701
18730
|
class: `kol-form-field__input--orientation-${this.state._orientation}`,
|
|
18702
18731
|
},
|
|
18703
18732
|
tooltipAlign: this._tooltipAlign,
|
|
18704
|
-
onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
18705
18733
|
alert: this.showAsAlert(),
|
|
18706
18734
|
hideLabel: false,
|
|
18707
18735
|
};
|
|
18708
18736
|
}
|
|
18709
18737
|
render() {
|
|
18710
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
18738
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: 'd0a65a6642e9adc5ac017d8d42f1e867fa2ba0f6' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
|
|
18711
18739
|
}
|
|
18712
18740
|
getOptionProps(option, id) {
|
|
18713
18741
|
const obj = {
|
|
@@ -18777,7 +18805,7 @@ class KolInputRadio {
|
|
|
18777
18805
|
};
|
|
18778
18806
|
this._accessKey = undefined;
|
|
18779
18807
|
this._disabled = false;
|
|
18780
|
-
this.
|
|
18808
|
+
this._hideMsg = false;
|
|
18781
18809
|
this._hideLabel = false;
|
|
18782
18810
|
this._hint = '';
|
|
18783
18811
|
this._id = undefined;
|
|
@@ -18795,7 +18823,7 @@ class KolInputRadio {
|
|
|
18795
18823
|
this._touched = false;
|
|
18796
18824
|
this._value = undefined;
|
|
18797
18825
|
this.state = {
|
|
18798
|
-
|
|
18826
|
+
_hideMsg: false,
|
|
18799
18827
|
_id: `id-${nonce()}`,
|
|
18800
18828
|
_label: '',
|
|
18801
18829
|
_options: [],
|
|
@@ -18819,8 +18847,8 @@ class KolInputRadio {
|
|
|
18819
18847
|
validateHideLabel(value) {
|
|
18820
18848
|
this.controller.validateHideLabel(value);
|
|
18821
18849
|
}
|
|
18822
|
-
|
|
18823
|
-
this.controller.
|
|
18850
|
+
validateHideMsg(value) {
|
|
18851
|
+
this.controller.validateHideMsg(value);
|
|
18824
18852
|
}
|
|
18825
18853
|
validateHint(value) {
|
|
18826
18854
|
this.controller.validateHint(value);
|
|
@@ -18875,7 +18903,7 @@ class KolInputRadio {
|
|
|
18875
18903
|
"_tooltipAlign": ["validateTooltipAlign"],
|
|
18876
18904
|
"_disabled": ["validateDisabled"],
|
|
18877
18905
|
"_hideLabel": ["validateHideLabel"],
|
|
18878
|
-
"
|
|
18906
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18879
18907
|
"_hint": ["validateHint"],
|
|
18880
18908
|
"_id": ["validateId"],
|
|
18881
18909
|
"_label": ["validateLabel"],
|
|
@@ -18900,7 +18928,7 @@ class KolInputRadio {
|
|
|
18900
18928
|
"$members$": {
|
|
18901
18929
|
"_accessKey": [1, "_access-key"],
|
|
18902
18930
|
"_disabled": [4],
|
|
18903
|
-
"
|
|
18931
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18904
18932
|
"_hideLabel": [4, "_hide-label"],
|
|
18905
18933
|
"_hint": [1],
|
|
18906
18934
|
"_id": [1],
|
|
@@ -18924,7 +18952,7 @@ class KolInputRadio {
|
|
|
18924
18952
|
},
|
|
18925
18953
|
"$listeners$": undefined,
|
|
18926
18954
|
"$lazyBundleId$": "-",
|
|
18927
|
-
"$attrsToReflect$": [["
|
|
18955
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
18928
18956
|
}; }
|
|
18929
18957
|
}
|
|
18930
18958
|
|
|
@@ -18964,7 +18992,7 @@ class InputRangeController extends InputIconController {
|
|
|
18964
18992
|
}
|
|
18965
18993
|
}
|
|
18966
18994
|
|
|
18967
|
-
const defaultStyleCss$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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-input-range__inputs-wrapper {\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n }\n .kol-input-range__input--number {\n width: var(--kolibri-input-range--input-number--width);\n }\n .kol-input-range__input--range {\n appearance: none;\n background-color: #d3d3d3;\n border: calc(1rem / var(--kolibri-root-font-size, 16)) solid #000;\n display: inline-block;\n flex-grow: 1;\n height: calc(8rem / var(--kolibri-root-font-size, 16));\n line-height: 1.5;\n padding: 0;\n margin: 0;\n /* Design-Hack - related with flex-grow */\n width: 0;\n }\n .kol-input-range__input--range::-webkit-slider-thumb {\n box-sizing: border-box;\n background-color: #000;\n height: calc(20rem / var(--kolibri-root-font-size, 16));\n width: calc(20rem / var(--kolibri-root-font-size, 16));\n border-radius: calc(20rem / var(--kolibri-root-font-size, 16));\n cursor: pointer;\n -webkit-appearance: none;\n }\n @media (prefers-contrast: more) or (forced-colors: active) {\n .kol-input-range__input--range::-webkit-slider-thumb {\n outline: calc(1rem / var(--kolibri-root-font-size, 16)) solid currentColor;\n }\n }\n .kol-input-range__input--range::-moz-range-thumb {\n box-sizing: border-box;\n background-color: #000;\n height: calc(20rem / var(--kolibri-root-font-size, 16));\n width: calc(20rem / var(--kolibri-root-font-size, 16));\n border-radius: calc(20rem / var(--kolibri-root-font-size, 16));\n cursor: pointer;\n -moz-appearance: none;\n }\n}";
|
|
18995
|
+
const defaultStyleCss$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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-input-range__inputs-wrapper {\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n }\n .kol-input-range__input--number {\n width: var(--kolibri-input-range--input-number--width);\n }\n .kol-input-range__input--range {\n appearance: none;\n background-color: #d3d3d3;\n border: calc(1rem / var(--kolibri-root-font-size, 16)) solid #000;\n display: inline-block;\n flex-grow: 1;\n height: calc(8rem / var(--kolibri-root-font-size, 16));\n line-height: 1.5;\n padding: 0;\n margin: 0;\n /* Design-Hack - related with flex-grow */\n width: 0;\n }\n .kol-input-range__input--range::-webkit-slider-thumb {\n box-sizing: border-box;\n background-color: #000;\n height: calc(20rem / var(--kolibri-root-font-size, 16));\n width: calc(20rem / var(--kolibri-root-font-size, 16));\n border-radius: calc(20rem / var(--kolibri-root-font-size, 16));\n cursor: pointer;\n -webkit-appearance: none;\n }\n @media (prefers-contrast: more) or (forced-colors: active) {\n .kol-input-range__input--range::-webkit-slider-thumb {\n outline: calc(1rem / var(--kolibri-root-font-size, 16)) solid currentColor;\n }\n }\n .kol-input-range__input--range::-moz-range-thumb {\n box-sizing: border-box;\n background-color: #000;\n height: calc(20rem / var(--kolibri-root-font-size, 16));\n width: calc(20rem / var(--kolibri-root-font-size, 16));\n border-radius: calc(20rem / var(--kolibri-root-font-size, 16));\n cursor: pointer;\n -moz-appearance: none;\n }\n}";
|
|
18968
18996
|
var KolInputRangeDefaultStyle0 = defaultStyleCss$n;
|
|
18969
18997
|
|
|
18970
18998
|
class KolInputRange {
|
|
@@ -19027,7 +19055,7 @@ class KolInputRange {
|
|
|
19027
19055
|
const inputsWrapperStyle = {
|
|
19028
19056
|
'--kolibri-input-range--input-number--width': `calc(${String((_a = this.state._max) !== null && _a !== void 0 ? _a : 1000).length}ch + 1.5em)`,
|
|
19029
19057
|
};
|
|
19030
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
19058
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: 'e3e7627159a0e18e30e701a45c4b3ab01d7d2e2b' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'e4e46a99e464f80d46914f05786fbb7c8c2bebc1', state: this.state }, hAsync("div", { key: '1b8e0d82edec1936a5942389ec2d867a6ea10d8e', class: "kol-input-range__inputs-wrapper", style: inputsWrapperStyle }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '3ce9b5705d25c03ac18910656b7f0700b7e89b83', class: "kol-input-range__input kol-input-range__input--range" }, this.getInputRangeProps())), hAsync(KolInputStateWrapperFc, Object.assign({ key: '235b9bf93e39cc78b91044da2addaba0e9bd78a3', class: "kol-input-range__input kol-input-range__input--number" }, this.getInputNumberProps()))), this.hasSuggestions && hAsync(KolSuggestionsFc, { key: '1681fc5c7b9f9fe1a320a649d66d305bffe22e8a', id: this.state._id, suggestions: this.state._suggestions }))));
|
|
19031
19059
|
}
|
|
19032
19060
|
constructor(hostRef) {
|
|
19033
19061
|
registerInstance(this, hostRef);
|
|
@@ -19062,7 +19090,7 @@ class KolInputRange {
|
|
|
19062
19090
|
this._accessKey = undefined;
|
|
19063
19091
|
this._autoComplete = undefined;
|
|
19064
19092
|
this._disabled = false;
|
|
19065
|
-
this.
|
|
19093
|
+
this._hideMsg = false;
|
|
19066
19094
|
this._hideLabel = false;
|
|
19067
19095
|
this._hint = '';
|
|
19068
19096
|
this._icons = undefined;
|
|
@@ -19083,7 +19111,7 @@ class KolInputRange {
|
|
|
19083
19111
|
this._value = undefined;
|
|
19084
19112
|
this.state = {
|
|
19085
19113
|
_autoComplete: 'off',
|
|
19086
|
-
|
|
19114
|
+
_hideMsg: false,
|
|
19087
19115
|
_id: `id-${nonce()}`,
|
|
19088
19116
|
_label: '',
|
|
19089
19117
|
_suggestions: [],
|
|
@@ -19103,8 +19131,8 @@ class KolInputRange {
|
|
|
19103
19131
|
validateDisabled(value) {
|
|
19104
19132
|
this.controller.validateDisabled(value);
|
|
19105
19133
|
}
|
|
19106
|
-
|
|
19107
|
-
this.controller.
|
|
19134
|
+
validateHideMsg(value) {
|
|
19135
|
+
this.controller.validateHideMsg(value);
|
|
19108
19136
|
}
|
|
19109
19137
|
validateHideLabel(value) {
|
|
19110
19138
|
this.controller.validateHideLabel(value);
|
|
@@ -19167,7 +19195,7 @@ class KolInputRange {
|
|
|
19167
19195
|
"_accessKey": ["validateAccessKey"],
|
|
19168
19196
|
"_autoComplete": ["validateAutoComplete"],
|
|
19169
19197
|
"_disabled": ["validateDisabled"],
|
|
19170
|
-
"
|
|
19198
|
+
"_hideMsg": ["validateHideMsg"],
|
|
19171
19199
|
"_hideLabel": ["validateHideLabel"],
|
|
19172
19200
|
"_hint": ["validateHint"],
|
|
19173
19201
|
"_icons": ["validateIcons"],
|
|
@@ -19196,7 +19224,7 @@ class KolInputRange {
|
|
|
19196
19224
|
"_accessKey": [1, "_access-key"],
|
|
19197
19225
|
"_autoComplete": [1, "_auto-complete"],
|
|
19198
19226
|
"_disabled": [4],
|
|
19199
|
-
"
|
|
19227
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
19200
19228
|
"_hideLabel": [4, "_hide-label"],
|
|
19201
19229
|
"_hint": [1],
|
|
19202
19230
|
"_icons": [1],
|
|
@@ -19222,11 +19250,11 @@ class KolInputRange {
|
|
|
19222
19250
|
},
|
|
19223
19251
|
"$listeners$": undefined,
|
|
19224
19252
|
"$lazyBundleId$": "-",
|
|
19225
|
-
"$attrsToReflect$": [["
|
|
19253
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
19226
19254
|
}; }
|
|
19227
19255
|
}
|
|
19228
19256
|
|
|
19229
|
-
const defaultStyleCss$m = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
19257
|
+
const defaultStyleCss$m = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}";
|
|
19230
19258
|
var KolInputTextDefaultStyle0 = defaultStyleCss$m;
|
|
19231
19259
|
|
|
19232
19260
|
class KolInputText {
|
|
@@ -19253,7 +19281,7 @@ class KolInputText {
|
|
|
19253
19281
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown });
|
|
19254
19282
|
}
|
|
19255
19283
|
render() {
|
|
19256
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
19284
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '7e0045c8690d06ab4709e09e137741cca78c92b7' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '1038617b73ed6ac787797378cef828d7c89b732d', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'bc1386bd9b425a2dc5d91e5823d1c9c72a0dfdf1' }, this.getInputProps())))));
|
|
19257
19285
|
}
|
|
19258
19286
|
constructor(hostRef) {
|
|
19259
19287
|
registerInstance(this, hostRef);
|
|
@@ -19295,7 +19323,7 @@ class KolInputText {
|
|
|
19295
19323
|
this._autoComplete = undefined;
|
|
19296
19324
|
this._disabled = false;
|
|
19297
19325
|
this._hasCounter = false;
|
|
19298
|
-
this.
|
|
19326
|
+
this._hideMsg = false;
|
|
19299
19327
|
this._hideLabel = false;
|
|
19300
19328
|
this._hint = '';
|
|
19301
19329
|
this._icons = undefined;
|
|
@@ -19323,7 +19351,7 @@ class KolInputText {
|
|
|
19323
19351
|
_autoComplete: 'off',
|
|
19324
19352
|
_currentLength: 0,
|
|
19325
19353
|
_hasValue: false,
|
|
19326
|
-
|
|
19354
|
+
_hideMsg: false,
|
|
19327
19355
|
_id: `id-${nonce()}`,
|
|
19328
19356
|
_label: '',
|
|
19329
19357
|
_suggestions: [],
|
|
@@ -19347,8 +19375,8 @@ class KolInputText {
|
|
|
19347
19375
|
validateHasCounter(value) {
|
|
19348
19376
|
this.controller.validateHasCounter(value);
|
|
19349
19377
|
}
|
|
19350
|
-
|
|
19351
|
-
this.controller.
|
|
19378
|
+
validateHideMsg(value) {
|
|
19379
|
+
this.controller.validateHideMsg(value);
|
|
19352
19380
|
}
|
|
19353
19381
|
validateHideLabel(value) {
|
|
19354
19382
|
this.controller.validateHideLabel(value);
|
|
@@ -19431,7 +19459,7 @@ class KolInputText {
|
|
|
19431
19459
|
"_autoComplete": ["validateAutoComplete"],
|
|
19432
19460
|
"_disabled": ["validateDisabled"],
|
|
19433
19461
|
"_hasCounter": ["validateHasCounter"],
|
|
19434
|
-
"
|
|
19462
|
+
"_hideMsg": ["validateHideMsg"],
|
|
19435
19463
|
"_hideLabel": ["validateHideLabel"],
|
|
19436
19464
|
"_hint": ["validateHint"],
|
|
19437
19465
|
"_icons": ["validateIcons"],
|
|
@@ -19466,7 +19494,7 @@ class KolInputText {
|
|
|
19466
19494
|
"_autoComplete": [1, "_auto-complete"],
|
|
19467
19495
|
"_disabled": [4],
|
|
19468
19496
|
"_hasCounter": [4, "_has-counter"],
|
|
19469
|
-
"
|
|
19497
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
19470
19498
|
"_hideLabel": [4, "_hide-label"],
|
|
19471
19499
|
"_hint": [1],
|
|
19472
19500
|
"_icons": [1],
|
|
@@ -19497,7 +19525,7 @@ class KolInputText {
|
|
|
19497
19525
|
},
|
|
19498
19526
|
"$listeners$": undefined,
|
|
19499
19527
|
"$lazyBundleId$": "-",
|
|
19500
|
-
"$attrsToReflect$": [["
|
|
19528
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
19501
19529
|
}; }
|
|
19502
19530
|
}
|
|
19503
19531
|
|
|
@@ -19513,7 +19541,7 @@ class KolInputWc {
|
|
|
19513
19541
|
this._currentLength = undefined;
|
|
19514
19542
|
this._disabled = false;
|
|
19515
19543
|
this._hasCounter = false;
|
|
19516
|
-
this.
|
|
19544
|
+
this._hideMsg = false;
|
|
19517
19545
|
this._hideLabel = false;
|
|
19518
19546
|
this._hint = '';
|
|
19519
19547
|
this._icons = undefined;
|
|
@@ -19544,18 +19572,18 @@ class KolInputWc {
|
|
|
19544
19572
|
const hasExpertSlot = showExpertSlot(this._label);
|
|
19545
19573
|
const hasHint = typeof this._hint === 'string' && this._hint.length > 0;
|
|
19546
19574
|
const useTooltipInsteadOfLabel = !hasExpertSlot && this._hideLabel;
|
|
19547
|
-
return (hAsync(Host, { key: '
|
|
19575
|
+
return (hAsync(Host, { key: 'cfd9957fb1257b093d42a0066c080d282f33fe9e', class: clsx('kol-input', this.getModifierClassNameByMsgType(showMsg), {
|
|
19548
19576
|
disabled: this._disabled === true,
|
|
19549
19577
|
[((_d = this._msg) === null || _d === void 0 ? void 0 : _d._type) || 'error']: showMsg === true,
|
|
19550
19578
|
'read-only': this._readOnly === true,
|
|
19551
19579
|
required: this._required === true,
|
|
19552
19580
|
touched: this._touched === true,
|
|
19553
|
-
'hidden-
|
|
19554
|
-
}) }, hAsync("label", { key: '
|
|
19581
|
+
'hidden-msg': this._hideMsg === true,
|
|
19582
|
+
}) }, hAsync("label", { key: '102823f929a7cad84ee12ddacd7bb6f9782537b8', class: "input-label", id: !useTooltipInsteadOfLabel ? `${this._id}-label` : undefined, hidden: useTooltipInsteadOfLabel, htmlFor: this._id }, hAsync("span", { key: 'b2ac9d0717998fee3300addc9ab39e7dbab48eef', class: "input-label-span" }, hAsync("slot", { key: '8b56ca6a6fea3cbb75c73a7bef18593a5e8e9cb9', name: "label" }))), hasHint && (hAsync("span", { key: '5452317626e66003189a15f34b09a8e19bb33f59', class: "hint", id: `${this._id}-hint` }, this._hint)), hAsync("div", { key: 'abd919e1a330a7d8ac02c2ea9e28e7c98988a57f', class: {
|
|
19555
19583
|
input: true,
|
|
19556
19584
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
19557
19585
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
19558
|
-
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '
|
|
19586
|
+
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '0ebc2e86f6234e1f3266b6fcec60996a1b21b578', _label: "", _icons: ((_h = this._icons) === null || _h === void 0 ? void 0 : _h.left).icon, style: this.getIconStyles((_j = this._icons) === null || _j === void 0 ? void 0 : _j.left) })), hAsync("div", { key: '40fca3a7748e5de1000aef706672f2fc63407cb1', ref: this.catchInputSlot, id: this.slotName, class: "input-slot" }), typeof this._smartButton === 'object' && this._smartButton !== null && (hAsync(KolButtonWcTag, { key: '321f1feb6f4187365fd536a0b5c0d305f98613c7', _customClass: this._smartButton._customClass, _disabled: this._smartButton._disabled, _icons: this._smartButton._icons, _hideLabel: true, _id: this._smartButton._id, _label: this._smartButton._label, _on: this._smartButton._on, _tooltipAlign: this._smartButton._tooltipAlign, _variant: this._smartButton._variant })), ((_k = this._icons) === null || _k === void 0 ? void 0 : _k.right) && (hAsync(KolIconTag, { key: '3f335bb610f0c3359c75b467aaf8d9419428f237', _label: "", _icons: ((_l = this._icons) === null || _l === void 0 ? void 0 : _l.right).icon, style: this.getIconStyles((_m = this._icons) === null || _m === void 0 ? void 0 : _m.right) }))), useTooltipInsteadOfLabel && (hAsync(KolTooltipWcTag, { key: '8ccbab744fe667c4b689cf4b0649371d7dd6de58', "aria-hidden": "true", class: "input-tooltip", _badgeText: this._accessKey || this._shortKey, _align: this._tooltipAlign, _id: this._hideLabel ? `${this._id}-label` : undefined, _label: this._label })), showMsg && hAsync(KolFormFieldMsgFc, { key: '4351c438daf4927a556809fc9cb8af6f54425256', alert: this._alert, hideMsg: this._hideMsg, msg: convertMsgToInternMsg(this._msg), id: this._id }), Array.isArray(this._suggestions) && this._suggestions.length > 0 && (hAsync("datalist", { key: '2669a99b02803c5c26a00e9e8f88cef20784ea5e', id: `${this._id}-list` }, this._suggestions.map((option) => (hAsync("option", { value: option }))))), this._hasCounter && (hAsync("span", { key: '078089228f083c2815c39a3db63c35ee82673bd9', class: "counter", "aria-atomic": "true", "aria-live": "polite", "data-testid": "input-counter" }, this._currentLength, this._maxLength && (hAsync(Fragment, null, hAsync("span", { key: 'bcd923ae79e3eeb81c4df0aa0fef564b1352b3c6', "aria-label": translate('kol-of'), role: "img" }, "/"), this._maxLength)), ' ', hAsync("span", { key: '14c8efa8d7c1f8c4266e1c91b955fcadf803835c' }, translate('kol-characters'))))));
|
|
19559
19587
|
}
|
|
19560
19588
|
getModifierClassNameByMsgType(showMsg) {
|
|
19561
19589
|
var _a, _b;
|
|
@@ -19579,7 +19607,7 @@ class KolInputWc {
|
|
|
19579
19607
|
"_currentLength": [2, "_current-length"],
|
|
19580
19608
|
"_disabled": [4],
|
|
19581
19609
|
"_hasCounter": [4, "_has-counter"],
|
|
19582
|
-
"
|
|
19610
|
+
"_hideMsg": [4, "_hide-msg"],
|
|
19583
19611
|
"_hideLabel": [4, "_hide-label"],
|
|
19584
19612
|
"_hint": [1],
|
|
19585
19613
|
"_icons": [16],
|
|
@@ -20039,15 +20067,26 @@ class KolLinkWc {
|
|
|
20039
20067
|
}; }
|
|
20040
20068
|
}
|
|
20041
20069
|
|
|
20042
|
-
const
|
|
20070
|
+
const ModalVariantPropTypeOptions = ['blank', 'card'];
|
|
20071
|
+
const validateModalVariant = (component, value) => {
|
|
20072
|
+
watchValidator(component, '_variant', (value) => typeof value === 'string' && ModalVariantPropTypeOptions.includes(value), new Set(ModalVariantPropTypeOptions), value);
|
|
20073
|
+
};
|
|
20074
|
+
|
|
20075
|
+
const defaultStyleCss$i = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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-modal {\n border: 0;\n padding: 0;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n position: relative;\n }\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.33);\n }\n .kol-modal__close-button {\n position: absolute;\n top: calc(1rem / var(--kolibri-root-font-size, 16));\n right: calc(1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}";
|
|
20043
20076
|
var KolModalDefaultStyle0 = defaultStyleCss$i;
|
|
20044
20077
|
|
|
20045
20078
|
class KolModal {
|
|
20046
20079
|
constructor(hostRef) {
|
|
20047
20080
|
registerInstance(this, hostRef);
|
|
20081
|
+
this.on = {
|
|
20082
|
+
onClick: async () => {
|
|
20083
|
+
await this.closeModal();
|
|
20084
|
+
},
|
|
20085
|
+
};
|
|
20048
20086
|
this._label = undefined;
|
|
20049
20087
|
this._on = undefined;
|
|
20050
20088
|
this._width = '100%';
|
|
20089
|
+
this._variant = 'blank';
|
|
20051
20090
|
this.state = {
|
|
20052
20091
|
_label: '',
|
|
20053
20092
|
_width: '100%',
|
|
@@ -20072,11 +20111,15 @@ class KolModal {
|
|
|
20072
20111
|
(_b = (_a = this.refDialog) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
20073
20112
|
}
|
|
20074
20113
|
render() {
|
|
20075
|
-
return (hAsync("dialog", { key: '
|
|
20114
|
+
return (hAsync("dialog", { key: 'c5b2a309c6f2439231206b400deb6dfb7f09e233', class: clsx('kol-modal', { 'kol-modal__card': this.state._variant === 'card' }), ref: (el) => {
|
|
20076
20115
|
this.refDialog = el;
|
|
20077
20116
|
}, style: {
|
|
20078
20117
|
width: this.state._width,
|
|
20079
|
-
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: '
|
|
20118
|
+
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: '6cac7e41355946eb4630bb990e9ba91fbcc606b0', tabindex: "-1" }, hAsync("slot", { key: '630a8462624d9287c1f0bf1ebb0db526a5bf73cb' })), this.state._variant === 'card' && (hAsync(KolButtonWcTag, { key: '31f574b47b9cf7d580dba8c588361f20cc3aed67', class: "kol-modal__close-button", "data-testid": "modal-close-button", _hideLabel: true, _icons: {
|
|
20119
|
+
left: {
|
|
20120
|
+
icon: 'codicon codicon-close',
|
|
20121
|
+
},
|
|
20122
|
+
}, _label: translate('kol-close'), _on: this.on, _tooltipAlign: "left" }))));
|
|
20080
20123
|
}
|
|
20081
20124
|
validateLabel(value) {
|
|
20082
20125
|
validateLabel(this, value, {
|
|
@@ -20097,16 +20140,21 @@ class KolModal {
|
|
|
20097
20140
|
defaultValue: '100%',
|
|
20098
20141
|
});
|
|
20099
20142
|
}
|
|
20143
|
+
validateVariant(value) {
|
|
20144
|
+
validateModalVariant(this, value);
|
|
20145
|
+
}
|
|
20100
20146
|
componentWillLoad() {
|
|
20101
20147
|
this.validateLabel(this._label);
|
|
20102
20148
|
this.validateOn(this._on);
|
|
20103
20149
|
this.validateWidth(this._width);
|
|
20150
|
+
this.validateVariant(this._variant);
|
|
20104
20151
|
}
|
|
20105
20152
|
get host() { return getElement(this); }
|
|
20106
20153
|
static get watchers() { return {
|
|
20107
20154
|
"_label": ["validateLabel"],
|
|
20108
20155
|
"_on": ["validateOn"],
|
|
20109
|
-
"_width": ["validateWidth"]
|
|
20156
|
+
"_width": ["validateWidth"],
|
|
20157
|
+
"_variant": ["validateVariant"]
|
|
20110
20158
|
}; }
|
|
20111
20159
|
static get style() { return {
|
|
20112
20160
|
default: KolModalDefaultStyle0
|
|
@@ -20118,6 +20166,7 @@ class KolModal {
|
|
|
20118
20166
|
"_label": [1],
|
|
20119
20167
|
"_on": [16],
|
|
20120
20168
|
"_width": [1],
|
|
20169
|
+
"_variant": [1],
|
|
20121
20170
|
"state": [32],
|
|
20122
20171
|
"openModal": [64],
|
|
20123
20172
|
"closeModal": [64]
|
|
@@ -20243,9 +20292,9 @@ class KolNav {
|
|
|
20243
20292
|
const collapsible = this.state._collapsible === true;
|
|
20244
20293
|
const hideLabel = this.state._hideLabel === true;
|
|
20245
20294
|
const orientation = this.state._orientation;
|
|
20246
|
-
return (hAsync("div", { key: '
|
|
20295
|
+
return (hAsync("div", { key: 'cfbe64daec9896d7ff1c5f56fd867e2adab579d5', class: clsx('kol-nav', `kol-nav--${orientation}`, {
|
|
20247
20296
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
20248
|
-
}) }, hAsync("nav", { key: '
|
|
20297
|
+
}) }, hAsync("nav", { key: '82c17d35f3424eb239176fae6da4090a647f8fe4', class: "kol-nav__navigation", "aria-label": this.state._label, id: "nav" }, hAsync(this.linkList, { key: 'da5b3a23c215608d7f391ebfde2f24f8a86e6d72', collapsible: collapsible, hideLabel: hideLabel, deep: 0, links: this.state._links, orientation: orientation })), hasCompactButton && (hAsync("div", { key: '57e94f3af9250c43d340a9657cac977842c3b49b', class: "kol-nav__compact" }, hAsync(KolButtonTag, { key: '001bf20dee912e10e3236d3ba85690118588a015', _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: {
|
|
20249
20298
|
onClick: () => {
|
|
20250
20299
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
20251
20300
|
},
|
|
@@ -22854,7 +22903,7 @@ class KolPopover {
|
|
|
22854
22903
|
});
|
|
22855
22904
|
}
|
|
22856
22905
|
render() {
|
|
22857
|
-
return (hAsync(Host, { key: '
|
|
22906
|
+
return (hAsync(Host, { key: '6e414db89865e4faced8091f9f4484077f903033', ref: this.catchHostAndTriggerElement, class: "kol-popover" }, hAsync("div", { key: '64a38574bf8ca2878f871846f9985eef4f0b3394', class: clsx('kol-popover__content', { 'kol-popover__content--visible': this.state._visible }), ref: this.catchPopoverElement, hidden: !this.state._show }, hAsync("div", { key: 'e2fe3722133cc1bc20be4a7ccfc45e0622442892', class: clsx('kol-popover__arrow', `kol-popover__arrow--${this.state._align}`), ref: this.catchArrowElement }), hAsync("slot", { key: '9fba7bbfd2879e01da7c15f026227671bfb4c171' }))));
|
|
22858
22907
|
}
|
|
22859
22908
|
validateAlign(value) {
|
|
22860
22909
|
validateAlign(this, value);
|
|
@@ -22934,7 +22983,7 @@ class KolProcess {
|
|
|
22934
22983
|
};
|
|
22935
22984
|
}
|
|
22936
22985
|
render() {
|
|
22937
|
-
return (hAsync("div", { key: '
|
|
22986
|
+
return (hAsync("div", { key: 'cc2c7a43ba0100f71f04669b0df3a8721e22b8a9', class: "kol-progress" }, createProgressSVG(this.state), hAsync("progress", { key: 'acd76a45d181c4e6899ef316ef04d2c159197e0b', class: "visually-hidden", "aria-busy": this.state._value < this.state._max ? 'true' : 'false', max: this.state._max, value: this.state._value }), hAsync("span", { key: 'b73035f03d88014db6fcaa032a0671df7d52a848', "aria-live": "polite", "aria-relevant": "removals text", class: "visually-hidden" }, this.state._liveValue, " von ", this.state._max, " ", this.state._unit)));
|
|
22938
22987
|
}
|
|
22939
22988
|
validateLabel(value) {
|
|
22940
22989
|
validateLabel(this, value);
|
|
@@ -23043,7 +23092,7 @@ class KolQuote {
|
|
|
23043
23092
|
}
|
|
23044
23093
|
render() {
|
|
23045
23094
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
23046
|
-
return (hAsync("figure", { key: '
|
|
23095
|
+
return (hAsync("figure", { key: '78d631f0d5dd0dad6b89eae8b0dc4dbaf4ead851', 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: 'c4d64d8ac6593ac6dcd153c2f4fbb18b7c327278', class: "kol-quote__figcaption" }, hAsync("cite", { key: 'a7d71571245e7110e97cf9e37bd0560ed5f67a88', class: "kol-quote__cite" }, hAsync(KolLinkTag, { key: '295878eecc876a4e9864dd87e779318f30a0dd63', _href: this.state._href, _label: this.state._label, _target: "_blank" }))))));
|
|
23047
23096
|
}
|
|
23048
23097
|
static get watchers() { return {
|
|
23049
23098
|
"_label": ["validateLabel"],
|
|
@@ -23228,7 +23277,7 @@ const SelectStateWrapper = (_a) => {
|
|
|
23228
23277
|
};
|
|
23229
23278
|
var KolSelectStateWrapperFc = SelectStateWrapper;
|
|
23230
23279
|
|
|
23231
|
-
const defaultStyleCss$d = "@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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-select {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n cursor: pointer;\n width: 100%;\n /* needed hack for vertical alignment */\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: \"✓ \";\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n}";
|
|
23280
|
+
const defaultStyleCss$d = "@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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-select {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n cursor: pointer;\n width: 100%;\n /* needed hack for vertical alignment */\n }\n .kol-select:not([multiple], [size]) {\n height: 2.75em;\n }\n .kol-select:focus {\n outline: none;\n }\n .kol-select__option:checked::before {\n content: \"✓ \";\n }\n .kol-select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n}";
|
|
23232
23281
|
var KolSelectDefaultStyle0 = defaultStyleCss$d;
|
|
23233
23282
|
|
|
23234
23283
|
class KolSelect {
|
|
@@ -23260,13 +23309,13 @@ class KolSelect {
|
|
|
23260
23309
|
} });
|
|
23261
23310
|
}
|
|
23262
23311
|
render() {
|
|
23263
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
23312
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: 'ee17395a6e4c6739788a55963b94371d694c5170' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'b39687b04e0e072ca8558a7ae50e010cf90a654c', state: this.state }, hAsync("form", { key: '23f28fee6175c9f1cc19236dd7c24aa38e7a1515', onSubmit: (event) => {
|
|
23264
23313
|
event.preventDefault();
|
|
23265
23314
|
propagateSubmitEventToForm({
|
|
23266
23315
|
form: this.host,
|
|
23267
23316
|
ref: this.selectRef,
|
|
23268
23317
|
});
|
|
23269
|
-
} }, hAsync("input", { key: '
|
|
23318
|
+
} }, hAsync("input", { key: '38cce424bf172f0c235bf68878b6d2ac9c704ba9', type: "submit", hidden: true }), hAsync(KolSelectStateWrapperFc, Object.assign({ key: '958a3dd3848c598ecc38d2f4b3be72b75750d1d6' }, this.getSelectProps()))))));
|
|
23270
23319
|
}
|
|
23271
23320
|
constructor(hostRef) {
|
|
23272
23321
|
registerInstance(this, hostRef);
|
|
@@ -23275,7 +23324,7 @@ class KolSelect {
|
|
|
23275
23324
|
};
|
|
23276
23325
|
this._accessKey = undefined;
|
|
23277
23326
|
this._disabled = false;
|
|
23278
|
-
this.
|
|
23327
|
+
this._hideMsg = false;
|
|
23279
23328
|
this._hideLabel = false;
|
|
23280
23329
|
this._hint = '';
|
|
23281
23330
|
this._icons = undefined;
|
|
@@ -23296,7 +23345,7 @@ class KolSelect {
|
|
|
23296
23345
|
this._value = undefined;
|
|
23297
23346
|
this.state = {
|
|
23298
23347
|
_hasValue: false,
|
|
23299
|
-
|
|
23348
|
+
_hideMsg: false,
|
|
23300
23349
|
_id: `id-${nonce()}`,
|
|
23301
23350
|
_label: '',
|
|
23302
23351
|
_multiple: false,
|
|
@@ -23315,8 +23364,8 @@ class KolSelect {
|
|
|
23315
23364
|
validateDisabled(value) {
|
|
23316
23365
|
this.controller.validateDisabled(value);
|
|
23317
23366
|
}
|
|
23318
|
-
|
|
23319
|
-
this.controller.
|
|
23367
|
+
validateHideMsg(value) {
|
|
23368
|
+
this.controller.validateHideMsg(value);
|
|
23320
23369
|
}
|
|
23321
23370
|
validateHideLabel(value) {
|
|
23322
23371
|
this.controller.validateHideLabel(value);
|
|
@@ -23389,7 +23438,7 @@ class KolSelect {
|
|
|
23389
23438
|
static get watchers() { return {
|
|
23390
23439
|
"_accessKey": ["validateAccessKey"],
|
|
23391
23440
|
"_disabled": ["validateDisabled"],
|
|
23392
|
-
"
|
|
23441
|
+
"_hideMsg": ["validateHideMsg"],
|
|
23393
23442
|
"_hideLabel": ["validateHideLabel"],
|
|
23394
23443
|
"_hint": ["validateHint"],
|
|
23395
23444
|
"_icons": ["validateIcons"],
|
|
@@ -23417,7 +23466,7 @@ class KolSelect {
|
|
|
23417
23466
|
"$members$": {
|
|
23418
23467
|
"_accessKey": [1, "_access-key"],
|
|
23419
23468
|
"_disabled": [4],
|
|
23420
|
-
"
|
|
23469
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
23421
23470
|
"_hideLabel": [4, "_hide-label"],
|
|
23422
23471
|
"_hint": [1],
|
|
23423
23472
|
"_icons": [1],
|
|
@@ -23443,7 +23492,7 @@ class KolSelect {
|
|
|
23443
23492
|
},
|
|
23444
23493
|
"$listeners$": undefined,
|
|
23445
23494
|
"$lazyBundleId$": "-",
|
|
23446
|
-
"$attrsToReflect$": [["
|
|
23495
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
23447
23496
|
}; }
|
|
23448
23497
|
}
|
|
23449
23498
|
|
|
@@ -23491,7 +23540,7 @@ class SingleSelectController extends InputIconController {
|
|
|
23491
23540
|
}
|
|
23492
23541
|
}
|
|
23493
23542
|
|
|
23494
|
-
const defaultStyleCss$c = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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 :
|
|
23543
|
+
const defaultStyleCss$c = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-option {\n cursor: pointer;\n }\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\n cursor: none !important;\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-options-group {\n display: block;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 2;\n background-color: white;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-toggle {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n width: var(--a11y-min-size);\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: calc(44rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}\n@layer kol-component {\n .kol-single-select__no-results-message {\n cursor: default;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: calc(50rem / var(--kolibri-root-font-size, 16));\n }\n}";
|
|
23495
23544
|
var KolSingleSelectDefaultStyle0 = defaultStyleCss$c;
|
|
23496
23545
|
|
|
23497
23546
|
class KolSingleSelect {
|
|
@@ -23583,23 +23632,34 @@ class KolSingleSelect {
|
|
|
23583
23632
|
this.focusOption(index);
|
|
23584
23633
|
}
|
|
23585
23634
|
}
|
|
23586
|
-
|
|
23587
|
-
|
|
23635
|
+
getFormFieldProps() {
|
|
23636
|
+
return {
|
|
23637
|
+
state: this.state,
|
|
23638
|
+
class: 'kol-single-select',
|
|
23639
|
+
tooltipAlign: this._tooltipAlign,
|
|
23640
|
+
onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
23641
|
+
alert: this.showAsAlert(),
|
|
23642
|
+
};
|
|
23643
|
+
}
|
|
23644
|
+
getInputProps() {
|
|
23588
23645
|
const { ariaDescribedBy } = getRenderStates$1(this.state);
|
|
23589
|
-
return
|
|
23646
|
+
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: this.state._disabled, 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) => {
|
|
23590
23647
|
this.controller.onFacade.onFocus(event);
|
|
23591
23648
|
this.inputHasFocus = true;
|
|
23592
23649
|
}, onBlur: (event) => {
|
|
23593
23650
|
this.controller.onFacade.onBlur(event);
|
|
23594
23651
|
this.inputHasFocus = false;
|
|
23595
|
-
}
|
|
23652
|
+
} });
|
|
23653
|
+
}
|
|
23654
|
+
render() {
|
|
23655
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: 'a8337d95ef18c12894dc607ff24bfb137b4fc293' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'ca146a5bde07e23d8798ce590426176ec0df463a', state: this.state }, hAsync("div", { key: '43e0cef9fef3d9b72dd4b11c9441e3cd69b7b76e', class: "kol-single-select__group" }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '2825c0ac997cc509f39e8da4c8b818edd0842155' }, this.getInputProps())), this._inputValue && (hAsync(KolIconTag, { key: '5b7e670f970674f35e903cc473a520f7e9be4a18', _icons: "codicon codicon-close", _label: translate('kol-delete-selection'), onClick: () => {
|
|
23596
23656
|
var _a;
|
|
23597
23657
|
this.clearSelection();
|
|
23598
23658
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23599
|
-
}, class: "single-select__delete" })), hAsync(
|
|
23659
|
+
}, class: "kol-single-select__delete" })), hAsync(CustomSuggestionsToggleFc$1, { key: '2ff836ca1dc8c67711416091d7d8b0119c91871e', onClick: this.toggleListbox.bind(this), disabled: this.state._disabled })), this._isOpen && !(this.state._disabled === true) && (hAsync(CustomSuggestionsOptionsGroupFc$1, { key: 'd3038c42215c8bb71745d9aa4f9f8a124541d7b6', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync(CustomSuggestionsOptionFc$1, { index: index, option: option.label, ref: (el) => {
|
|
23600
23660
|
if (el)
|
|
23601
23661
|
this.refOptions[index] = el;
|
|
23602
|
-
},
|
|
23662
|
+
}, selected: this._value === option.value, onClick: (event) => {
|
|
23603
23663
|
var _a;
|
|
23604
23664
|
this.selectOption(event, option);
|
|
23605
23665
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -23612,7 +23672,7 @@ class KolSingleSelect {
|
|
|
23612
23672
|
}, onFocus: () => {
|
|
23613
23673
|
this._focusedOptionIndex = index;
|
|
23614
23674
|
this.focusOption(index);
|
|
23615
|
-
},
|
|
23675
|
+
}, onKeyDown: (e) => {
|
|
23616
23676
|
var _a;
|
|
23617
23677
|
if (e.key === 'Enter' || e.key === 'NumpadEnter') {
|
|
23618
23678
|
this.selectOption(e, option);
|
|
@@ -23620,7 +23680,7 @@ class KolSingleSelect {
|
|
|
23620
23680
|
this.toggleListbox(e);
|
|
23621
23681
|
e.preventDefault();
|
|
23622
23682
|
}
|
|
23623
|
-
} }
|
|
23683
|
+
} })))) : (hAsync("li", { class: "kol-single-select__no-results-message" }, translate('kol-no-results-message'), " ")))))));
|
|
23624
23684
|
}
|
|
23625
23685
|
handleFocusOut() {
|
|
23626
23686
|
setTimeout(() => {
|
|
@@ -23750,7 +23810,7 @@ class KolSingleSelect {
|
|
|
23750
23810
|
this._accessKey = undefined;
|
|
23751
23811
|
this._placeholder = undefined;
|
|
23752
23812
|
this._disabled = false;
|
|
23753
|
-
this.
|
|
23813
|
+
this._hideMsg = false;
|
|
23754
23814
|
this._hideLabel = false;
|
|
23755
23815
|
this._hint = '';
|
|
23756
23816
|
this._icons = undefined;
|
|
@@ -23768,7 +23828,7 @@ class KolSingleSelect {
|
|
|
23768
23828
|
this._touched = false;
|
|
23769
23829
|
this._value = undefined;
|
|
23770
23830
|
this.state = {
|
|
23771
|
-
|
|
23831
|
+
_hideMsg: false,
|
|
23772
23832
|
_id: `id-${nonce()}`,
|
|
23773
23833
|
_label: '',
|
|
23774
23834
|
_options: [],
|
|
@@ -23788,8 +23848,8 @@ class KolSingleSelect {
|
|
|
23788
23848
|
validateDisabled(value) {
|
|
23789
23849
|
this.controller.validateDisabled(value);
|
|
23790
23850
|
}
|
|
23791
|
-
|
|
23792
|
-
this.controller.
|
|
23851
|
+
validateHideMsg(value) {
|
|
23852
|
+
this.controller.validateHideMsg(value);
|
|
23793
23853
|
}
|
|
23794
23854
|
validateHideLabel(value) {
|
|
23795
23855
|
this.controller.validateHideLabel(value);
|
|
@@ -23876,7 +23936,7 @@ class KolSingleSelect {
|
|
|
23876
23936
|
"_placeholder": ["validatePlaceholder"],
|
|
23877
23937
|
"_accessKey": ["validateAccessKey"],
|
|
23878
23938
|
"_disabled": ["validateDisabled"],
|
|
23879
|
-
"
|
|
23939
|
+
"_hideMsg": ["validateHideMsg"],
|
|
23880
23940
|
"_hideLabel": ["validateHideLabel"],
|
|
23881
23941
|
"_hint": ["validateHint"],
|
|
23882
23942
|
"_icons": ["validateIcons"],
|
|
@@ -23903,7 +23963,7 @@ class KolSingleSelect {
|
|
|
23903
23963
|
"_accessKey": [1, "_access-key"],
|
|
23904
23964
|
"_placeholder": [1],
|
|
23905
23965
|
"_disabled": [4],
|
|
23906
|
-
"
|
|
23966
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
23907
23967
|
"_hideLabel": [4, "_hide-label"],
|
|
23908
23968
|
"_hint": [1],
|
|
23909
23969
|
"_icons": [1],
|
|
@@ -23931,7 +23991,7 @@ class KolSingleSelect {
|
|
|
23931
23991
|
},
|
|
23932
23992
|
"$listeners$": [[8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"], [0, "keydown", "handleKeyDown"], [1, "mousemove", "handleMouseEvent"]],
|
|
23933
23993
|
"$lazyBundleId$": "-",
|
|
23934
|
-
"$attrsToReflect$": [["
|
|
23994
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
23935
23995
|
}; }
|
|
23936
23996
|
}
|
|
23937
23997
|
|
|
@@ -23949,7 +24009,7 @@ class KolSkipNav {
|
|
|
23949
24009
|
};
|
|
23950
24010
|
}
|
|
23951
24011
|
render() {
|
|
23952
|
-
return (hAsync("nav", { key: '
|
|
24012
|
+
return (hAsync("nav", { key: 'bdb9b836ec6c9f4bb0d2e72a2e3779be9013f069', class: "kol-skip-nav", "aria-label": this.state._label }, hAsync("ul", { key: 'a29040214a801b13f3e6ad81b6c42d7ad685e38e', class: "kol-skip-nav__list" }, this.state._links.map((link, index) => {
|
|
23953
24013
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
23954
24014
|
}))));
|
|
23955
24015
|
}
|
|
@@ -24017,7 +24077,7 @@ class KolSpin {
|
|
|
24017
24077
|
};
|
|
24018
24078
|
}
|
|
24019
24079
|
render() {
|
|
24020
|
-
return (hAsync(Host, { key: '
|
|
24080
|
+
return (hAsync(Host, { key: '78146272c08f10d0bde3450838cf18acc290fdc6', 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" }))));
|
|
24021
24081
|
}
|
|
24022
24082
|
validateShow(value) {
|
|
24023
24083
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -24105,10 +24165,10 @@ class KolSplitButton {
|
|
|
24105
24165
|
}
|
|
24106
24166
|
render() {
|
|
24107
24167
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
24108
|
-
return (hAsync("div", { key: '
|
|
24168
|
+
return (hAsync("div", { key: 'adfeb36fc1c13115648cab2c692dcf28ede4f663', class: "kol-split-button" }, hAsync("div", { key: '6ddddfa00a901d7a1c02a242384ba6478955c13b', class: "kol-split-button__root" }, hAsync(KolButtonWcTag, { key: '8d5545244b2cff5ae573bdd2cb9ec9d7343df844', class: clsx('kol-split-button__button', {
|
|
24109
24169
|
[this._variant]: this._variant !== 'custom',
|
|
24110
24170
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
24111
|
-
}), _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, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }), hAsync("div", { key: '
|
|
24171
|
+
}), _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, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value, _variant: this._variant }), hAsync("div", { key: '541dc194c17523c5cf68f484bfaee3efb534b879', class: "kol-split-button__horizontal-line" }), hAsync(KolButtonWcTag, { key: 'f3736a72068960bfe628f6b9734ce12c1fbaa3d2', 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: '596a0e240cd9bbd6707a314a21387c767fed614a', _show: this.state._show, _on: { onClose: this.handleOnClose }, _align: "bottom" }, hAsync("slot", { key: '7be4e75220049796535a7267791066a5bf923bc4' }))));
|
|
24112
24172
|
}
|
|
24113
24173
|
async closePopup() {
|
|
24114
24174
|
this.handleOnClose();
|
|
@@ -24149,51 +24209,6 @@ class KolSplitButton {
|
|
|
24149
24209
|
}; }
|
|
24150
24210
|
}
|
|
24151
24211
|
|
|
24152
|
-
class KolSymbol {
|
|
24153
|
-
constructor(hostRef) {
|
|
24154
|
-
registerInstance(this, hostRef);
|
|
24155
|
-
this._label = undefined;
|
|
24156
|
-
this._symbol = undefined;
|
|
24157
|
-
this.state = {
|
|
24158
|
-
_label: translate('kol-warning'),
|
|
24159
|
-
_symbol: '',
|
|
24160
|
-
};
|
|
24161
|
-
}
|
|
24162
|
-
render() {
|
|
24163
|
-
return (hAsync(Host, { key: '2aeed4aecded7debd64cec5622e9ff5875a41fe7', class: "kol-symbol" }, hAsync("span", { key: 'f8fd7c4233896ade7b659b47ed5ea4832c839e3f', "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
24164
|
-
}
|
|
24165
|
-
validateLabel(value) {
|
|
24166
|
-
validateLabel(this, value, {
|
|
24167
|
-
required: true,
|
|
24168
|
-
});
|
|
24169
|
-
}
|
|
24170
|
-
validateSymbol(value) {
|
|
24171
|
-
watchString(this, '_symbol', value, {
|
|
24172
|
-
required: true,
|
|
24173
|
-
});
|
|
24174
|
-
}
|
|
24175
|
-
componentWillLoad() {
|
|
24176
|
-
this.validateLabel(this._label);
|
|
24177
|
-
this.validateSymbol(this._symbol);
|
|
24178
|
-
}
|
|
24179
|
-
static get watchers() { return {
|
|
24180
|
-
"_label": ["validateLabel"],
|
|
24181
|
-
"_symbol": ["validateSymbol"]
|
|
24182
|
-
}; }
|
|
24183
|
-
static get cmpMeta() { return {
|
|
24184
|
-
"$flags$": 0,
|
|
24185
|
-
"$tagName$": "kol-symbol",
|
|
24186
|
-
"$members$": {
|
|
24187
|
-
"_label": [1],
|
|
24188
|
-
"_symbol": [1],
|
|
24189
|
-
"state": [32]
|
|
24190
|
-
},
|
|
24191
|
-
"$listeners$": undefined,
|
|
24192
|
-
"$lazyBundleId$": "-",
|
|
24193
|
-
"$attrsToReflect$": []
|
|
24194
|
-
}; }
|
|
24195
|
-
}
|
|
24196
|
-
|
|
24197
24212
|
var Callback;
|
|
24198
24213
|
(function (Callback) {
|
|
24199
24214
|
Callback["onBlur"] = "onBlur";
|
|
@@ -24313,6 +24328,7 @@ class KolTableStateful {
|
|
|
24313
24328
|
vertical: [],
|
|
24314
24329
|
},
|
|
24315
24330
|
_label: '',
|
|
24331
|
+
_minWidth: 'auto',
|
|
24316
24332
|
_pagination: {
|
|
24317
24333
|
_page: 1,
|
|
24318
24334
|
_pageSize: 10,
|
|
@@ -24556,7 +24572,7 @@ class KolTableStateful {
|
|
|
24556
24572
|
horizontal: (_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) })))),
|
|
24557
24573
|
vertical: (_d = this.state._headers.vertical) === null || _d === void 0 ? void 0 : _d.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24558
24574
|
};
|
|
24559
|
-
return (hAsync(Host, { key: '
|
|
24575
|
+
return (hAsync(Host, { key: 'e060a717d5efd96fb63fdc4f4de37fc34ed0c710', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: 'a415e591ec24f4cc1793205689d90e6366b4a654', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
24560
24576
|
onSort: (_, payload) => {
|
|
24561
24577
|
this.handleSort(payload);
|
|
24562
24578
|
},
|
|
@@ -24619,7 +24635,7 @@ class KolTableStateless$1 {
|
|
|
24619
24635
|
this._selection = undefined;
|
|
24620
24636
|
}
|
|
24621
24637
|
render() {
|
|
24622
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
24638
|
+
return (hAsync(KolTableStatelessWcTag, { key: '048855cd40a5b65261de66ea0ef42be89f37557e', _data: this._data, _dataFoot: this._dataFoot, _headerCells: this._headerCells, _label: this._label, _minWidth: this._minWidth, _on: this._on, _selection: this._selection }));
|
|
24623
24639
|
}
|
|
24624
24640
|
static get style() { return {
|
|
24625
24641
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24642,6 +24658,11 @@ class KolTableStateless$1 {
|
|
|
24642
24658
|
}; }
|
|
24643
24659
|
}
|
|
24644
24660
|
|
|
24661
|
+
const HEADER_CELL_WIDTH_VALIDATOR = /^\d+(\.\d+)?([a-z]+|%)?$/;
|
|
24662
|
+
const validateMinWidth = (component, value, options) => {
|
|
24663
|
+
watchValidator(component, '_minWidth', (v) => typeof v === 'string' && HEADER_CELL_WIDTH_VALIDATOR.test(v), new Set(['String', '/^\\d+(\\.\\d+)?([a-z]+|%)?$/']), value, options);
|
|
24664
|
+
};
|
|
24665
|
+
|
|
24645
24666
|
class KolTableStateless {
|
|
24646
24667
|
constructor(hostRef) {
|
|
24647
24668
|
registerInstance(this, hostRef);
|
|
@@ -24666,7 +24687,7 @@ class KolTableStateless {
|
|
|
24666
24687
|
const dataKey = this.getDataKey(cell.data);
|
|
24667
24688
|
key = dataKey ? `${dataKey}-${this.horizontal ? colIndex : rowIndex}` : key;
|
|
24668
24689
|
}
|
|
24669
|
-
if (cell.
|
|
24690
|
+
if (cell.headerCell) {
|
|
24670
24691
|
return this.renderHeadingCell(cell, rowIndex, colIndex, isVertical);
|
|
24671
24692
|
}
|
|
24672
24693
|
else {
|
|
@@ -24684,11 +24705,12 @@ class KolTableStateless {
|
|
|
24684
24705
|
};
|
|
24685
24706
|
this.state = {
|
|
24686
24707
|
_data: [],
|
|
24687
|
-
_label: '',
|
|
24688
24708
|
_headerCells: {
|
|
24689
24709
|
horizontal: [],
|
|
24690
24710
|
vertical: [],
|
|
24691
24711
|
},
|
|
24712
|
+
_label: '',
|
|
24713
|
+
_minWidth: 'auto',
|
|
24692
24714
|
};
|
|
24693
24715
|
this.tableDivElementHasScrollbar = false;
|
|
24694
24716
|
this._data = undefined;
|
|
@@ -24718,9 +24740,7 @@ class KolTableStateless {
|
|
|
24718
24740
|
});
|
|
24719
24741
|
}
|
|
24720
24742
|
validateMinWidth(value) {
|
|
24721
|
-
|
|
24722
|
-
defaultValue: undefined,
|
|
24723
|
-
});
|
|
24743
|
+
validateMinWidth(this, value);
|
|
24724
24744
|
}
|
|
24725
24745
|
validateOn(value) {
|
|
24726
24746
|
validateTableCallbacks(this, value);
|
|
@@ -24875,7 +24895,7 @@ class KolTableStateless {
|
|
|
24875
24895
|
if (rowsTotal <= i) {
|
|
24876
24896
|
const rows = headerCells[i - rowsTotal + rowCount[index]];
|
|
24877
24897
|
if (typeof rows === 'object') {
|
|
24878
|
-
dataRow.push(Object.assign(Object.assign({}, rows), {
|
|
24898
|
+
dataRow.push(Object.assign(Object.assign({}, rows), { headerCell: true, data: {} }));
|
|
24879
24899
|
let rowSpan = 1;
|
|
24880
24900
|
if (typeof rows.rowSpan === 'number' && rows.rowSpan > 1) {
|
|
24881
24901
|
rowSpan = rows.rowSpan;
|
|
@@ -25081,29 +25101,12 @@ class KolTableStateless {
|
|
|
25081
25101
|
render() {
|
|
25082
25102
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
25083
25103
|
this.checkboxRefs = [];
|
|
25084
|
-
return (hAsync("div", { key: '
|
|
25104
|
+
return (hAsync("div", { key: '3a3e95a3993c3a10dc7342da4534249ee014979f', ref: (element) => (this.tableDivElement = element), class: "kol-table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: 'a576fe89e8549a7686cec0af5cc9f9d064870768', class: "kol-table__table", style: {
|
|
25085
25105
|
minWidth: this.state._minWidth,
|
|
25086
|
-
} }, hAsync("div", { key: '
|
|
25087
|
-
this.state._headerCells.horizontal.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) &&
|
|
25088
|
-
cols.map((cell, colIndex) => {
|
|
25089
|
-
if (cell.asTd === true) {
|
|
25090
|
-
return (hAsync("td", { key: `thead-${rowIndex}-${colIndex}-${cell.label}`, class: clsx({
|
|
25091
|
-
[`kol-table__head--${cell.textAlign}`]: typeof cell.textAlign === 'string' && cell.textAlign.length > 0,
|
|
25092
|
-
}), colSpan: cell.colSpan, rowSpan: cell.rowSpan, style: {
|
|
25093
|
-
textAlign: cell.textAlign,
|
|
25094
|
-
width: cell.width,
|
|
25095
|
-
}, ref: typeof cell.render === 'function'
|
|
25096
|
-
? (el) => {
|
|
25097
|
-
this.cellRender(cell, el);
|
|
25098
|
-
}
|
|
25099
|
-
: undefined }, typeof cell.render !== 'function' ? cell.label : ''));
|
|
25100
|
-
}
|
|
25101
|
-
else {
|
|
25102
|
-
return this.renderHeadingCell(cell, rowIndex, colIndex, false);
|
|
25103
|
-
}
|
|
25104
|
-
})))),
|
|
25106
|
+
} }, hAsync("div", { key: '1440b0c066cbff9b3e007d0a3a29f908e498c7b5', class: "kol-table__focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: '0e0ed2a572adf7576f854f0aa524cf5184d8c089', class: "kol-table__caption", id: "caption" }, this.state._label), Array.isArray(this.state._headerCells.horizontal) && (hAsync("thead", { key: 'ca8178d06124396db66ec7acb990152e4cd64976', class: "kol-table__head" }, [
|
|
25107
|
+
this.state._headerCells.horizontal.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))))),
|
|
25105
25108
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
25106
|
-
])), hAsync("tbody", { key: '
|
|
25109
|
+
])), hAsync("tbody", { key: '945142452f85ef86c130b3cc7863a2532eb40f6f', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot())));
|
|
25107
25110
|
}
|
|
25108
25111
|
get host() { return getElement(this); }
|
|
25109
25112
|
static get watchers() { return {
|
|
@@ -25324,9 +25327,9 @@ class KolTabs {
|
|
|
25324
25327
|
} }))));
|
|
25325
25328
|
}
|
|
25326
25329
|
render() {
|
|
25327
|
-
return (hAsync("div", { key: '
|
|
25330
|
+
return (hAsync("div", { key: '592fb62ac9fe48dbf63d7dfef9ce4e75406a2acf', ref: (el) => {
|
|
25328
25331
|
this.tabPanelsElement = el;
|
|
25329
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
25332
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '5102f215e596aabaa44212a86ca29b0224d58bf5', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
25330
25333
|
}
|
|
25331
25334
|
validateAlign(value) {
|
|
25332
25335
|
validateAlign(this, value);
|
|
@@ -25553,7 +25556,7 @@ class TextareaController extends InputIconController {
|
|
|
25553
25556
|
}
|
|
25554
25557
|
}
|
|
25555
25558
|
|
|
25556
|
-
const defaultStyleCss$5 = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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: block;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n width: 100%;\n }\n .kol-textarea:focus {\n outline: none;\n }\n}";
|
|
25559
|
+
const defaultStyleCss$5 = "/*\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 * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\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 * 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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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%; /* 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}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.5s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\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: block;\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__close-button {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n width: 100%;\n }\n .kol-textarea:focus {\n outline: none;\n }\n}";
|
|
25557
25560
|
var KolTextareaDefaultStyle0 = defaultStyleCss$5;
|
|
25558
25561
|
|
|
25559
25562
|
const increaseTextareaHeight = (el) => {
|
|
@@ -25598,7 +25601,7 @@ class KolTextarea {
|
|
|
25598
25601
|
} });
|
|
25599
25602
|
}
|
|
25600
25603
|
render() {
|
|
25601
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
25604
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '872d9e86581bcaa2f890bc1922f51e150e719dcc' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'd606938ceeb96ddd460e0da945a41de58201ed8a', state: this.state }, hAsync(KolTextAreaStateWrapperFc, Object.assign({ key: 'e1fff4989bfb2c73e5b33ee6c81be446de2b1994' }, this.getTextAreaProps())))));
|
|
25602
25605
|
}
|
|
25603
25606
|
constructor(hostRef) {
|
|
25604
25607
|
registerInstance(this, hostRef);
|
|
@@ -25620,7 +25623,7 @@ class KolTextarea {
|
|
|
25620
25623
|
this._adjustHeight = false;
|
|
25621
25624
|
this._disabled = false;
|
|
25622
25625
|
this._hasCounter = false;
|
|
25623
|
-
this.
|
|
25626
|
+
this._hideMsg = false;
|
|
25624
25627
|
this._hideLabel = false;
|
|
25625
25628
|
this._hint = '';
|
|
25626
25629
|
this._icons = undefined;
|
|
@@ -25646,7 +25649,7 @@ class KolTextarea {
|
|
|
25646
25649
|
_adjustHeight: false,
|
|
25647
25650
|
_currentLength: 0,
|
|
25648
25651
|
_hasValue: false,
|
|
25649
|
-
|
|
25652
|
+
_hideMsg: false,
|
|
25650
25653
|
_id: `id-${nonce()}`,
|
|
25651
25654
|
_label: '',
|
|
25652
25655
|
_resize: 'vertical',
|
|
@@ -25669,8 +25672,8 @@ class KolTextarea {
|
|
|
25669
25672
|
validateHasCounter(value) {
|
|
25670
25673
|
this.controller.validateHasCounter(value);
|
|
25671
25674
|
}
|
|
25672
|
-
|
|
25673
|
-
this.controller.
|
|
25675
|
+
validateHideMsg(value) {
|
|
25676
|
+
this.controller.validateHideMsg(value);
|
|
25674
25677
|
}
|
|
25675
25678
|
validateHideLabel(value) {
|
|
25676
25679
|
this.controller.validateHideLabel(value);
|
|
@@ -25757,7 +25760,7 @@ class KolTextarea {
|
|
|
25757
25760
|
"_adjustHeight": ["validateAdjustHeight"],
|
|
25758
25761
|
"_disabled": ["validateDisabled"],
|
|
25759
25762
|
"_hasCounter": ["validateHasCounter"],
|
|
25760
|
-
"
|
|
25763
|
+
"_hideMsg": ["validateHideMsg"],
|
|
25761
25764
|
"_hideLabel": ["validateHideLabel"],
|
|
25762
25765
|
"_hint": ["validateHint"],
|
|
25763
25766
|
"_icons": ["validateIcons"],
|
|
@@ -25790,7 +25793,7 @@ class KolTextarea {
|
|
|
25790
25793
|
"_adjustHeight": [4, "_adjust-height"],
|
|
25791
25794
|
"_disabled": [4],
|
|
25792
25795
|
"_hasCounter": [4, "_has-counter"],
|
|
25793
|
-
"
|
|
25796
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
25794
25797
|
"_hideLabel": [4, "_hide-label"],
|
|
25795
25798
|
"_hint": [1],
|
|
25796
25799
|
"_icons": [16],
|
|
@@ -25819,7 +25822,7 @@ class KolTextarea {
|
|
|
25819
25822
|
},
|
|
25820
25823
|
"$listeners$": undefined,
|
|
25821
25824
|
"$lazyBundleId$": "-",
|
|
25822
|
-
"$attrsToReflect$": [["
|
|
25825
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
25823
25826
|
}; }
|
|
25824
25827
|
}
|
|
25825
25828
|
|
|
@@ -25880,7 +25883,7 @@ class KolToastContainer {
|
|
|
25880
25883
|
}
|
|
25881
25884
|
}
|
|
25882
25885
|
render() {
|
|
25883
|
-
return (hAsync(Host, { key: '
|
|
25886
|
+
return (hAsync(Host, { key: '4446bc4544f05d74ee8afd3757d8c0b7ce58d6c4', class: "kol-toast-container" }, this.state._toastStates.length > 1 && (hAsync(KolButtonTag, { key: '923a3ae7f4463e710bebbe94ffb7d55812510f70', _label: translate('kol-toast-close-all'), class: "kol-toast-container__button-close-all", _on: {
|
|
25884
25887
|
onClick: () => {
|
|
25885
25888
|
void this.closeAll();
|
|
25886
25889
|
},
|
|
@@ -25931,7 +25934,7 @@ class KolToolbar {
|
|
|
25931
25934
|
this._items = undefined;
|
|
25932
25935
|
}
|
|
25933
25936
|
render() {
|
|
25934
|
-
return (hAsync("div", { key: '
|
|
25937
|
+
return (hAsync("div", { key: '303cfe01af1a3776d1a3161bfd6253449c4101c1', class: "kol-toolbar", role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem)));
|
|
25935
25938
|
}
|
|
25936
25939
|
validateLabel(value) {
|
|
25937
25940
|
validateLabel(this, value);
|
|
@@ -26129,7 +26132,7 @@ class KolTooltipWc {
|
|
|
26129
26132
|
this.showOrHideTooltip();
|
|
26130
26133
|
}
|
|
26131
26134
|
render() {
|
|
26132
|
-
return (hAsync(Host, { key: '
|
|
26135
|
+
return (hAsync(Host, { key: '6b03bbbae8b6a083bcdb3b304e9985101a5be022', class: "kol-tooltip" }, this.state._label !== '' && (hAsync("div", { key: '75fa23644f41ba3fde4e1be656ed89fe2bd5be9d', class: "kol-tooltip__floating", ref: this.catchTooltipElement }, hAsync("div", { key: '74d99d02b5d7557e4dc9c8d81880d76fbc23aa2d', class: "kol-tooltip__arrow", ref: this.catchArrowElement }), hAsync(KolSpanFc$1, { key: '7a6b461ff6da4a292fabd08ab8a6bd90412a85fc', class: "kol-tooltip__content", id: this.state._id, badgeText: this._badgeText, label: this.state._label })))));
|
|
26133
26136
|
}
|
|
26134
26137
|
validateBadgeText(value) {
|
|
26135
26138
|
validateBadgeText(this, value);
|
|
@@ -26207,7 +26210,7 @@ class KolTree {
|
|
|
26207
26210
|
this._label = undefined;
|
|
26208
26211
|
}
|
|
26209
26212
|
render() {
|
|
26210
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
26213
|
+
return (hAsync(KolTreeWcTag, { key: '69fcda89930476d36e84516cc64cc7eebf1094db', _label: this._label }, hAsync("slot", { key: '5259ea6f1eb1fb6f3ed8b8a64e7a442f27e4abce' })));
|
|
26211
26214
|
}
|
|
26212
26215
|
static get style() { return {
|
|
26213
26216
|
default: KolTreeDefaultStyle0
|
|
@@ -26255,7 +26258,7 @@ class KolTreeItem {
|
|
|
26255
26258
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26256
26259
|
}
|
|
26257
26260
|
render() {
|
|
26258
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26261
|
+
return (hAsync(KolTreeItemWcTag, { key: '59e322059558664a9ca5d03a7a98bafa9b84cb98', _active: this._active, _label: this._label, _open: this._open, _href: this._href, ref: (element) => (this.element = element) }, hAsync("slot", { key: '728328010d981a229607662273528d35587ef1e4' })));
|
|
26259
26262
|
}
|
|
26260
26263
|
static get style() { return {
|
|
26261
26264
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26298,12 +26301,12 @@ class KolTreeItemWc {
|
|
|
26298
26301
|
}
|
|
26299
26302
|
render() {
|
|
26300
26303
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
26301
|
-
return (hAsync(Host, { key: '
|
|
26304
|
+
return (hAsync(Host, { key: 'e8cebee52ed0f115c3aa30e82e2e3ccf5d09e626', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: 'c4b1d56ae69f55ca57ad8d863df02fe0d7ff4f00', class: "kol-tree-item", style: {
|
|
26302
26305
|
'--level': `${this.level}`,
|
|
26303
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
26306
|
+
} }, hAsync(KolLinkWcTag, { key: '8e87e00dae2d0e6dcad5602e28b5642bc31702f5', class: clsx('kol-tree-item__link', {
|
|
26304
26307
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
26305
26308
|
'kol-tree-item__link--active': _active,
|
|
26306
|
-
}), _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: '
|
|
26309
|
+
}), _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: 'f037767f3e0142ec622d5e3dc03f303b30831abf', slot: "expert" }, _hasChildren && (hAsync("span", { key: 'a344ded5e01b484b686aeb71b4370fe37f3fd8b1', class: "kol-tree-item__toggle-button", onClick: (event) => (_open ? void this.handleCollapseClick(event) : void this.handleExpandClick(event)) }, hAsync(KolIconTag, { key: 'd84793747ce43c28fca27abde4c76f4a5feb060b', class: "kol-tree-item__toggle-button-icon", _icons: `codicon codicon-${_open ? 'chevron-down' : 'chevron-right'}`, _label: '' }))), ' ', _label)), hAsync("ul", { key: '828ff0900dc3f9018e939ef0d519cdcabbab652b', class: "kol-tree-item__children", hidden: !_hasChildren || !_open, role: "group", id: this.groupId }, hAsync("slot", { key: '7fd8f3b71eb060d42835e3d1b311ab4bb7930f99' })))));
|
|
26307
26310
|
}
|
|
26308
26311
|
validateActive(value) {
|
|
26309
26312
|
validateActive(this, value || false);
|
|
@@ -26408,7 +26411,7 @@ class KolTreeWc {
|
|
|
26408
26411
|
validateLabel(this, value);
|
|
26409
26412
|
}
|
|
26410
26413
|
render() {
|
|
26411
|
-
return (hAsync(Host, { key: '
|
|
26414
|
+
return (hAsync(Host, { key: '7ed304596f8d9f4ab353c881aa3e7a058d23b1cc', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("nav", { key: '53d283e8c52792eb96d540a364cd13f6e504a433', class: "kol-tree", "aria-label": this.state._label }, hAsync("ul", { key: 'c2ce2459919900ee430507a5599ff09d54638376', class: "kol-tree__treeview-navigation", role: "tree", "aria-label": this.state._label }, hAsync("slot", { key: 'cba291c46b0bbfe699b154b0333932a1829ff03e' })))));
|
|
26412
26415
|
}
|
|
26413
26416
|
static isTreeItem(element) {
|
|
26414
26417
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -26603,7 +26606,7 @@ class KolVersion {
|
|
|
26603
26606
|
};
|
|
26604
26607
|
}
|
|
26605
26608
|
render() {
|
|
26606
|
-
return (hAsync(Host, { key: '
|
|
26609
|
+
return (hAsync(Host, { key: 'd243221867a53ea02e895c0ce390bfea16f7ec4c', class: "kol-version" }, hAsync(KolBadgeTag, { key: '7cf5abc0ad77a88aa4404efbe769b860041040fa', _color: "#bec5c9", _icons: {
|
|
26607
26610
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
26608
26611
|
}, _label: this.state._label })));
|
|
26609
26612
|
}
|
|
@@ -26694,7 +26697,6 @@ registerComponents([
|
|
|
26694
26697
|
KolSkipNav,
|
|
26695
26698
|
KolSpin,
|
|
26696
26699
|
KolSplitButton,
|
|
26697
|
-
KolSymbol,
|
|
26698
26700
|
KolTableStateful,
|
|
26699
26701
|
KolTableStateless$1,
|
|
26700
26702
|
KolTableStateless,
|