@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.js
CHANGED
|
@@ -4064,8 +4064,8 @@ const validateHeadingVariant = (component, value) => {
|
|
|
4064
4064
|
watchValidator(component, `_variant`, (value) => typeof value === 'string' && headingVariantPropTypeOptions.includes(value), new Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(', ')}`]), value);
|
|
4065
4065
|
};
|
|
4066
4066
|
|
|
4067
|
-
const
|
|
4068
|
-
watchBoolean(component, '
|
|
4067
|
+
const validateHideMsg = (component, value, options) => {
|
|
4068
|
+
watchBoolean(component, '_hideMsg', value, options);
|
|
4069
4069
|
};
|
|
4070
4070
|
|
|
4071
4071
|
const validateHideLabel = (component, value, options = {}) => {
|
|
@@ -4388,7 +4388,12 @@ const validateTableHeaderCells = (component, value) => {
|
|
|
4388
4388
|
}
|
|
4389
4389
|
catch (e) {
|
|
4390
4390
|
}
|
|
4391
|
-
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4391
|
+
watchValidator(component, '_headerCells', (value) => typeof value === 'object' &&
|
|
4392
|
+
value !== null &&
|
|
4393
|
+
(value.horizontal === undefined ||
|
|
4394
|
+
(Array.isArray(value.horizontal) && value.horizontal.find((headerRow) => !Array.isArray(headerRow)) === undefined)) &&
|
|
4395
|
+
(value.vertical === undefined || (Array.isArray(value.vertical) && value.vertical.find((headerCol) => !Array.isArray(headerCol)) === undefined)) &&
|
|
4396
|
+
true, new Set(['TableHeaderCellsPropType']), value);
|
|
4392
4397
|
});
|
|
4393
4398
|
});
|
|
4394
4399
|
};
|
|
@@ -4552,7 +4557,6 @@ let KolButtonTag = 'kol-button';
|
|
|
4552
4557
|
let KolButtonWcTag = 'kol-button-wc';
|
|
4553
4558
|
let KolFormTag = 'kol-form';
|
|
4554
4559
|
let KolIconTag = 'kol-icon';
|
|
4555
|
-
let KolInputTag = 'kol-input';
|
|
4556
4560
|
let KolLinkTag = 'kol-link';
|
|
4557
4561
|
let KolLinkWcTag = 'kol-link-wc';
|
|
4558
4562
|
let KolPaginationTag = 'kol-pagination';
|
|
@@ -4674,12 +4678,12 @@ class KolAccordion {
|
|
|
4674
4678
|
};
|
|
4675
4679
|
this._disabled = false;
|
|
4676
4680
|
this._label = undefined;
|
|
4677
|
-
this._level =
|
|
4681
|
+
this._level = 0;
|
|
4678
4682
|
this._on = undefined;
|
|
4679
4683
|
this._open = false;
|
|
4680
4684
|
this.state = {
|
|
4681
4685
|
_label: '',
|
|
4682
|
-
_level:
|
|
4686
|
+
_level: 0,
|
|
4683
4687
|
_on: {},
|
|
4684
4688
|
};
|
|
4685
4689
|
}
|
|
@@ -4773,12 +4777,12 @@ class KolAlert {
|
|
|
4773
4777
|
this._alert = false;
|
|
4774
4778
|
this._hasCloser = false;
|
|
4775
4779
|
this._label = undefined;
|
|
4776
|
-
this._level =
|
|
4780
|
+
this._level = 0;
|
|
4777
4781
|
this._on = undefined;
|
|
4778
4782
|
this._type = 'default';
|
|
4779
4783
|
this._variant = 'msg';
|
|
4780
4784
|
this.state = {
|
|
4781
|
-
_level:
|
|
4785
|
+
_level: 0,
|
|
4782
4786
|
};
|
|
4783
4787
|
}
|
|
4784
4788
|
render() {
|
|
@@ -5047,12 +5051,12 @@ class KolAlertWc {
|
|
|
5047
5051
|
this._alert = false;
|
|
5048
5052
|
this._hasCloser = false;
|
|
5049
5053
|
this._label = undefined;
|
|
5050
|
-
this._level =
|
|
5054
|
+
this._level = 0;
|
|
5051
5055
|
this._on = undefined;
|
|
5052
5056
|
this._type = 'default';
|
|
5053
5057
|
this._variant = 'msg';
|
|
5054
5058
|
this.state = {
|
|
5055
|
-
_level:
|
|
5059
|
+
_level: 0,
|
|
5056
5060
|
};
|
|
5057
5061
|
}
|
|
5058
5062
|
render() {
|
|
@@ -5220,8 +5224,8 @@ class KolAvatarWc {
|
|
|
5220
5224
|
}
|
|
5221
5225
|
|
|
5222
5226
|
const FormFieldMsgFc = (_a) => {
|
|
5223
|
-
var { alert, msg,
|
|
5224
|
-
return (hAsync(KolAlertFc$1, Object.assign({ id: `${id}-msg`, alert: alert, type: "error", class: clsx('kol-form-field__msg', { 'visually-hidden':
|
|
5227
|
+
var { alert, msg, hideMsg, id, class: classNames } = _a, other = __rest(_a, ["alert", "msg", "hideMsg", "id", "class"]);
|
|
5228
|
+
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));
|
|
5225
5229
|
};
|
|
5226
5230
|
var KolFormFieldMsgFc = FormFieldMsgFc;
|
|
5227
5231
|
|
|
@@ -13918,7 +13922,7 @@ const InputContainer$1 = (_a, children) => {
|
|
|
13918
13922
|
return (hAsync("div", Object.assign({ class: clsx('kol-form-field__input', classNames) }, other), children));
|
|
13919
13923
|
};
|
|
13920
13924
|
const KolFormFieldFc = (props, children) => {
|
|
13921
|
-
const { component: Component = 'div', renderNoLabel, renderNoTooltip, renderNoHint, anotherChildren, id, required, alert, disabled, class: classNames, msg,
|
|
13925
|
+
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"]);
|
|
13922
13926
|
const showLabel = !renderNoLabel;
|
|
13923
13927
|
const showHint = !renderNoHint;
|
|
13924
13928
|
const showTooltip = !renderNoTooltip;
|
|
@@ -13932,7 +13936,7 @@ const KolFormFieldFc = (props, children) => {
|
|
|
13932
13936
|
['kol-form-field--touched']: Boolean(touched),
|
|
13933
13937
|
['kol-form-field--hide-label']: Boolean(hideLabel),
|
|
13934
13938
|
['kol-form-field--read-only']: Boolean(readOnly),
|
|
13935
|
-
['kol-form-field--hidden-
|
|
13939
|
+
['kol-form-field--hidden-msg']: Boolean(hideMsg),
|
|
13936
13940
|
};
|
|
13937
13941
|
if (showMsg) {
|
|
13938
13942
|
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 });
|
|
@@ -13943,7 +13947,7 @@ const KolFormFieldFc = (props, children) => {
|
|
|
13943
13947
|
children,
|
|
13944
13948
|
useTooltipInsteadOfLabel && (hAsync(KolFieldControlTooltipFc, Object.assign({}, (formFieldTooltipProps || {}), { id: id, label: label, hideLabel: hideLabel, align: tooltipAlign, badgeText: badgeText })))),
|
|
13945
13949
|
counter ? hAsync(KolFormFieldCounterFc$1, Object.assign({}, (formFieldCounterProps || {}), counter)) : null,
|
|
13946
|
-
showMsg && hAsync(KolFormFieldMsgFc, Object.assign({}, (formFieldMsgProps || {}), { id: id, alert: alert, msg: msg,
|
|
13950
|
+
showMsg && hAsync(KolFormFieldMsgFc, Object.assign({}, (formFieldMsgProps || {}), { id: id, alert: alert, msg: msg, hideMsg: hideMsg })),
|
|
13947
13951
|
showHint && hAsync(KolFieldControlHintFc, Object.assign({}, (formFieldHintProps || {}), { id: id, hint: hint })),
|
|
13948
13952
|
anotherChildren));
|
|
13949
13953
|
};
|
|
@@ -14873,7 +14877,7 @@ class KolCard {
|
|
|
14873
14877
|
this._on = undefined;
|
|
14874
14878
|
this._hasCloser = false;
|
|
14875
14879
|
this._label = undefined;
|
|
14876
|
-
this._level =
|
|
14880
|
+
this._level = 0;
|
|
14877
14881
|
this.state = {
|
|
14878
14882
|
_label: '',
|
|
14879
14883
|
};
|
|
@@ -14935,6 +14939,39 @@ class KolCard {
|
|
|
14935
14939
|
}; }
|
|
14936
14940
|
}
|
|
14937
14941
|
|
|
14942
|
+
function getFormFieldProps(state) {
|
|
14943
|
+
const props = {
|
|
14944
|
+
id: state._id,
|
|
14945
|
+
disabled: state._disabled,
|
|
14946
|
+
msg: convertMsgToInternMsg(state._msg),
|
|
14947
|
+
hint: state._hint,
|
|
14948
|
+
label: state._label,
|
|
14949
|
+
hideLabel: state._hideLabel,
|
|
14950
|
+
hideMsg: state._hideMsg,
|
|
14951
|
+
touched: state._touched,
|
|
14952
|
+
accessKey: state._accessKey,
|
|
14953
|
+
shortKey: state._shortKey,
|
|
14954
|
+
};
|
|
14955
|
+
if ('_required' in state) {
|
|
14956
|
+
props.required = state._required;
|
|
14957
|
+
}
|
|
14958
|
+
if ('_readOnly' in state) {
|
|
14959
|
+
props.readOnly = state._readOnly;
|
|
14960
|
+
}
|
|
14961
|
+
if ('_hasCounter' in state && '_currentLength' in state) {
|
|
14962
|
+
props.counter = state._hasCounter ? { currentLength: state._currentLength } : undefined;
|
|
14963
|
+
if (props.counter && '_maxLength' in state) {
|
|
14964
|
+
props.counter.maxLength = state._maxLength;
|
|
14965
|
+
}
|
|
14966
|
+
}
|
|
14967
|
+
return props;
|
|
14968
|
+
}
|
|
14969
|
+
const FormFieldStateWrapper = (_a, children) => {
|
|
14970
|
+
var { state } = _a, other = __rest(_a, ["state"]);
|
|
14971
|
+
return (hAsync(KolFormFieldFc$1, Object.assign({}, getFormFieldProps(state), other), children));
|
|
14972
|
+
};
|
|
14973
|
+
var KolFormFieldStateWrapperFc = FormFieldStateWrapper;
|
|
14974
|
+
|
|
14938
14975
|
class ControlledInputController extends AssociatedInputController {
|
|
14939
14976
|
constructor(component, name, host) {
|
|
14940
14977
|
super(component, name, host);
|
|
@@ -14978,12 +15015,12 @@ class InputController extends ControlledInputController {
|
|
|
14978
15015
|
validateTooltipAlign(value) {
|
|
14979
15016
|
validateTooltipAlign(this.component, value);
|
|
14980
15017
|
}
|
|
14981
|
-
|
|
14982
|
-
|
|
15018
|
+
validateHideMsg(value) {
|
|
15019
|
+
validateHideMsg(this.component, value, {
|
|
14983
15020
|
hooks: {
|
|
14984
15021
|
afterPatch: () => {
|
|
14985
|
-
if (this.component.state.
|
|
14986
|
-
a11yHint('Property
|
|
15022
|
+
if (this.component.state._hideMsg) {
|
|
15023
|
+
a11yHint('Property _hideMsg for inputs: Only use when the error message is shown outside of the input component.');
|
|
14987
15024
|
}
|
|
14988
15025
|
},
|
|
14989
15026
|
},
|
|
@@ -15045,7 +15082,7 @@ class InputController extends ControlledInputController {
|
|
|
15045
15082
|
this.validateAdjustHeight(this.component._adjustHeight);
|
|
15046
15083
|
this.validateMsg(this.component._msg);
|
|
15047
15084
|
this.validateDisabled(this.component._disabled);
|
|
15048
|
-
this.
|
|
15085
|
+
this.validateHideMsg(this.component._hideMsg);
|
|
15049
15086
|
this.validateHideLabel(this.component._hideLabel);
|
|
15050
15087
|
this.validateHint(this.component._hint);
|
|
15051
15088
|
this.validateId(this.component._id);
|
|
@@ -15193,7 +15230,163 @@ const getRenderStates$1 = (state) => {
|
|
|
15193
15230
|
return { hasError, hasHint, ariaDescribedBy };
|
|
15194
15231
|
};
|
|
15195
15232
|
|
|
15196
|
-
const
|
|
15233
|
+
const getRenderStates = (state) => {
|
|
15234
|
+
var _a, _b, _c;
|
|
15235
|
+
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);
|
|
15236
|
+
const isMessageValidError = ((_c = state._msg) === null || _c === void 0 ? void 0 : _c._type) === 'error' && hasMessage;
|
|
15237
|
+
const hasError = isMessageValidError && state._touched === true;
|
|
15238
|
+
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
15239
|
+
const ariaDescribedBy = [];
|
|
15240
|
+
if (hasMessage) {
|
|
15241
|
+
ariaDescribedBy.push(`${state._id}-msg`);
|
|
15242
|
+
}
|
|
15243
|
+
if (hasHint) {
|
|
15244
|
+
ariaDescribedBy.push(`${state._id}-hint`);
|
|
15245
|
+
}
|
|
15246
|
+
return { hasError, hasHint, ariaDescribedBy };
|
|
15247
|
+
};
|
|
15248
|
+
|
|
15249
|
+
function getInputProps(state, customSuggestions) {
|
|
15250
|
+
const { ariaDescribedBy } = getRenderStates(state);
|
|
15251
|
+
const props = {
|
|
15252
|
+
id: state._id,
|
|
15253
|
+
hideLabel: state._hideLabel,
|
|
15254
|
+
label: state._label,
|
|
15255
|
+
accessKey: state._accessKey,
|
|
15256
|
+
disabled: state._disabled,
|
|
15257
|
+
name: state._name,
|
|
15258
|
+
ariaDescribedBy: ariaDescribedBy,
|
|
15259
|
+
};
|
|
15260
|
+
if ('_type' in state)
|
|
15261
|
+
props.type = state._type;
|
|
15262
|
+
if ('_value' in state)
|
|
15263
|
+
props.value = state._value;
|
|
15264
|
+
if ('_required' in state)
|
|
15265
|
+
props.required = state._required;
|
|
15266
|
+
if ('_maxLength' in state)
|
|
15267
|
+
props.maxlength = state._maxLength;
|
|
15268
|
+
if ('_placeholder' in state)
|
|
15269
|
+
props.placeholder = state._placeholder;
|
|
15270
|
+
if ('_autoComplete' in state)
|
|
15271
|
+
props.autoComplete = state._autoComplete;
|
|
15272
|
+
if ('_spellCheck' in state)
|
|
15273
|
+
props.spellcheck = state._spellCheck;
|
|
15274
|
+
if ('_pattern' in state)
|
|
15275
|
+
props.pattern = state._pattern;
|
|
15276
|
+
if ('_readOnly' in state)
|
|
15277
|
+
props.readonly = state._readOnly;
|
|
15278
|
+
if ('_min' in state)
|
|
15279
|
+
props.min = state._min;
|
|
15280
|
+
if ('_max' in state)
|
|
15281
|
+
props.max = state._max;
|
|
15282
|
+
if ('_step' in state)
|
|
15283
|
+
props.step = state._step;
|
|
15284
|
+
if ('_multiple' in state)
|
|
15285
|
+
props.multiple = state._multiple;
|
|
15286
|
+
if ('_checked' in state)
|
|
15287
|
+
props.checked = state._checked;
|
|
15288
|
+
if ('_indeterminate' in state)
|
|
15289
|
+
props.indeterminate = state._indeterminate;
|
|
15290
|
+
if ('_touched' in state)
|
|
15291
|
+
props.touched = state._touched;
|
|
15292
|
+
if ('_msg' in state)
|
|
15293
|
+
props.msg = convertMsgToInternMsg(state._msg);
|
|
15294
|
+
if ('_suggestions' in state && !customSuggestions) {
|
|
15295
|
+
const hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;
|
|
15296
|
+
if (hasSuggestions) {
|
|
15297
|
+
props.suggestions = (hAsync(KolSuggestionsFc, { id: state._id, suggestions: state._suggestions }));
|
|
15298
|
+
}
|
|
15299
|
+
}
|
|
15300
|
+
return props;
|
|
15301
|
+
}
|
|
15302
|
+
const InputStateWrapper = (_a) => {
|
|
15303
|
+
var { state, customSuggestions } = _a, other = __rest(_a, ["state", "customSuggestions"]);
|
|
15304
|
+
return hAsync(KolInputFc, Object.assign({}, getInputProps(state, customSuggestions), other));
|
|
15305
|
+
};
|
|
15306
|
+
var KolInputStateWrapperFc = InputStateWrapper;
|
|
15307
|
+
|
|
15308
|
+
const KolButtonFc = (props) => {
|
|
15309
|
+
const { label, icons, hideLabel, disabled, onClick } = props, other = __rest(props, ["label", "icons", "hideLabel", "disabled", "onClick"]);
|
|
15310
|
+
return hAsync(KolButtonWcTag, Object.assign({ tabindex: 0, _label: label, _disabled: disabled, _icons: icons, _hideLabel: hideLabel, _on: { onClick } }, other));
|
|
15311
|
+
};
|
|
15312
|
+
var KolButtonFc$1 = KolButtonFc;
|
|
15313
|
+
|
|
15314
|
+
const KolIconButtonFc = (props) => {
|
|
15315
|
+
const { componentName = 'button', label, icon, onClick } = props, other = __rest(props, ["componentName", "label", "icon", "onClick"]);
|
|
15316
|
+
const Component = componentName === 'button' ? KolButtonFc$1 : KolIconFc$1;
|
|
15317
|
+
return hAsync(Component, Object.assign({ label: label || '', hideLabel: true, icons: `codicon codicon-${icon}`, onClick: onClick }, other));
|
|
15318
|
+
};
|
|
15319
|
+
var KolIconButtonFc$1 = KolIconButtonFc;
|
|
15320
|
+
|
|
15321
|
+
function getInputContainerProps(state) {
|
|
15322
|
+
let icons = undefined;
|
|
15323
|
+
let smartButton;
|
|
15324
|
+
if ('_icons' in state) {
|
|
15325
|
+
icons = state._icons;
|
|
15326
|
+
}
|
|
15327
|
+
if ('_smartButton' in state) {
|
|
15328
|
+
smartButton = state._smartButton;
|
|
15329
|
+
}
|
|
15330
|
+
return {
|
|
15331
|
+
icons,
|
|
15332
|
+
smartButton,
|
|
15333
|
+
disabled: state._disabled,
|
|
15334
|
+
msg: convertMsgToInternMsg(state._msg),
|
|
15335
|
+
touched: state._touched,
|
|
15336
|
+
};
|
|
15337
|
+
}
|
|
15338
|
+
const InputContainerStateWrapperFc = ({ state, endAdornment: defaultEndAdornment }, children) => {
|
|
15339
|
+
const { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);
|
|
15340
|
+
let leftIconProps = icons === null || icons === void 0 ? void 0 : icons.left;
|
|
15341
|
+
if (isString$2(leftIconProps)) {
|
|
15342
|
+
leftIconProps = { icon: leftIconProps };
|
|
15343
|
+
}
|
|
15344
|
+
let rightIconProps = icons === null || icons === void 0 ? void 0 : icons.right;
|
|
15345
|
+
if (isString$2(rightIconProps)) {
|
|
15346
|
+
rightIconProps = { icon: rightIconProps };
|
|
15347
|
+
}
|
|
15348
|
+
const startAdornment = [];
|
|
15349
|
+
const endAdornment = [];
|
|
15350
|
+
if (defaultEndAdornment) {
|
|
15351
|
+
if (Array.isArray(defaultEndAdornment)) {
|
|
15352
|
+
endAdornment.push(...defaultEndAdornment);
|
|
15353
|
+
}
|
|
15354
|
+
else {
|
|
15355
|
+
endAdornment.push(defaultEndAdornment);
|
|
15356
|
+
}
|
|
15357
|
+
}
|
|
15358
|
+
if (leftIconProps) {
|
|
15359
|
+
startAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(leftIconProps) ? leftIconProps : {}))));
|
|
15360
|
+
}
|
|
15361
|
+
if (isObject$1(smartButton)) {
|
|
15362
|
+
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "button" }, smartButton, { hideLabel: true, disabled: disabled })));
|
|
15363
|
+
}
|
|
15364
|
+
if (rightIconProps) {
|
|
15365
|
+
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(rightIconProps) ? rightIconProps : {}))));
|
|
15366
|
+
}
|
|
15367
|
+
return (hAsync(KolInputContainerFc$1, { disabled: disabled, msg: msg, touched: touched, startAdornment: startAdornment, endAdornment: endAdornment }, children));
|
|
15368
|
+
};
|
|
15369
|
+
var KolInputContainerStateWrapperFc = InputContainerStateWrapperFc;
|
|
15370
|
+
|
|
15371
|
+
const CustomSuggestionsToggleFc = ({ onClick, disabled }) => {
|
|
15372
|
+
return (hAsync("button", { tabindex: "-1", class: "kol-custom-suggestions-toggle", onClick: onClick, disabled: disabled },
|
|
15373
|
+
hAsync(KolIconTag, { _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') })));
|
|
15374
|
+
};
|
|
15375
|
+
var CustomSuggestionsToggleFc$1 = CustomSuggestionsToggleFc;
|
|
15376
|
+
|
|
15377
|
+
const CustomSuggestionsOptionFc = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {
|
|
15378
|
+
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));
|
|
15379
|
+
};
|
|
15380
|
+
var CustomSuggestionsOptionFc$1 = CustomSuggestionsOptionFc;
|
|
15381
|
+
|
|
15382
|
+
const CustomSuggestionsOptionsGroupFc = ({ blockSuggestionMouseOver, onKeyDown }, children) => {
|
|
15383
|
+
return (hAsync("ul", { role: "listbox", class: clsx('kol-custom-suggestions-options-group', {
|
|
15384
|
+
'kol-custom-suggestions-options-group--cursor-hidden': blockSuggestionMouseOver,
|
|
15385
|
+
}), onKeyDown: onKeyDown }, children));
|
|
15386
|
+
};
|
|
15387
|
+
var CustomSuggestionsOptionsGroupFc$1 = CustomSuggestionsOptionsGroupFc;
|
|
15388
|
+
|
|
15389
|
+
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}";
|
|
15197
15390
|
var KolComboboxDefaultStyle0 = defaultStyleCss$C;
|
|
15198
15391
|
|
|
15199
15392
|
class KolCombobox {
|
|
@@ -15268,21 +15461,34 @@ class KolCombobox {
|
|
|
15268
15461
|
this.focusOption(index);
|
|
15269
15462
|
}
|
|
15270
15463
|
}
|
|
15271
|
-
|
|
15272
|
-
|
|
15464
|
+
getFormFieldProps() {
|
|
15465
|
+
return {
|
|
15466
|
+
state: this.state,
|
|
15467
|
+
class: clsx('kol-combobox', {
|
|
15468
|
+
'has-value': this.state._hasValue,
|
|
15469
|
+
}),
|
|
15470
|
+
tooltipAlign: this._tooltipAlign,
|
|
15471
|
+
onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
15472
|
+
alert: this.showAsAlert(),
|
|
15473
|
+
};
|
|
15474
|
+
}
|
|
15475
|
+
getInputProps() {
|
|
15273
15476
|
const { ariaDescribedBy } = getRenderStates$1(this.state);
|
|
15274
|
-
return (
|
|
15477
|
+
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) => {
|
|
15275
15478
|
this.controller.onFacade.onFocus(event);
|
|
15276
15479
|
this.inputHasFocus = true;
|
|
15277
15480
|
}, onBlur: (event) => {
|
|
15278
15481
|
this.controller.onFacade.onBlur(event);
|
|
15279
15482
|
this.inputHasFocus = false;
|
|
15280
|
-
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })
|
|
15483
|
+
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder });
|
|
15484
|
+
}
|
|
15485
|
+
render() {
|
|
15486
|
+
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) &&
|
|
15281
15487
|
this._filteredSuggestions.length > 0 &&
|
|
15282
|
-
this._filteredSuggestions.map((option, index) => (hAsync(
|
|
15488
|
+
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc$1, { index: index, option: option, ref: (el) => {
|
|
15283
15489
|
if (el)
|
|
15284
15490
|
this.refSuggestions[index] = el;
|
|
15285
|
-
},
|
|
15491
|
+
}, selected: this.state._value === option, onClick: (e) => {
|
|
15286
15492
|
this.selectOption(e, option);
|
|
15287
15493
|
this.toggleListbox();
|
|
15288
15494
|
}, onMouseOver: () => {
|
|
@@ -15291,13 +15497,13 @@ class KolCombobox {
|
|
|
15291
15497
|
}
|
|
15292
15498
|
}, onFocus: () => {
|
|
15293
15499
|
this.focusOption(index);
|
|
15294
|
-
},
|
|
15500
|
+
}, onKeyDown: (e) => {
|
|
15295
15501
|
if (e.key === 'Enter' || e.key === 'NumpadEnter') {
|
|
15296
15502
|
this.selectOption(e, option);
|
|
15297
15503
|
this.toggleListbox();
|
|
15298
15504
|
e.preventDefault();
|
|
15299
15505
|
}
|
|
15300
|
-
} }
|
|
15506
|
+
} }))))))));
|
|
15301
15507
|
}
|
|
15302
15508
|
handleKeyDown(event) {
|
|
15303
15509
|
var _a, _b;
|
|
@@ -15405,7 +15611,7 @@ class KolCombobox {
|
|
|
15405
15611
|
this._accessKey = undefined;
|
|
15406
15612
|
this._placeholder = undefined;
|
|
15407
15613
|
this._disabled = false;
|
|
15408
|
-
this.
|
|
15614
|
+
this._hideMsg = false;
|
|
15409
15615
|
this._hideLabel = false;
|
|
15410
15616
|
this._hint = '';
|
|
15411
15617
|
this._icons = undefined;
|
|
@@ -15424,7 +15630,7 @@ class KolCombobox {
|
|
|
15424
15630
|
this._value = undefined;
|
|
15425
15631
|
this.state = {
|
|
15426
15632
|
_hasValue: false,
|
|
15427
|
-
|
|
15633
|
+
_hideMsg: false,
|
|
15428
15634
|
_id: `id-${nonce()}`,
|
|
15429
15635
|
_label: '',
|
|
15430
15636
|
_suggestions: [],
|
|
@@ -15446,8 +15652,8 @@ class KolCombobox {
|
|
|
15446
15652
|
validateDisabled(value) {
|
|
15447
15653
|
this.controller.validateDisabled(value);
|
|
15448
15654
|
}
|
|
15449
|
-
|
|
15450
|
-
this.controller.
|
|
15655
|
+
validateHideMsg(value) {
|
|
15656
|
+
this.controller.validateHideMsg(value);
|
|
15451
15657
|
}
|
|
15452
15658
|
validateHideLabel(value) {
|
|
15453
15659
|
this.controller.validateHideLabel(value);
|
|
@@ -15535,7 +15741,7 @@ class KolCombobox {
|
|
|
15535
15741
|
"_placeholder": ["validatePlaceholder"],
|
|
15536
15742
|
"_accessKey": ["validateAccessKey"],
|
|
15537
15743
|
"_disabled": ["validateDisabled"],
|
|
15538
|
-
"
|
|
15744
|
+
"_hideMsg": ["validateHideMsg"],
|
|
15539
15745
|
"_hideLabel": ["validateHideLabel"],
|
|
15540
15746
|
"_hint": ["validateHint"],
|
|
15541
15747
|
"_icons": ["validateIcons"],
|
|
@@ -15562,7 +15768,7 @@ class KolCombobox {
|
|
|
15562
15768
|
"_accessKey": [1, "_access-key"],
|
|
15563
15769
|
"_placeholder": [1],
|
|
15564
15770
|
"_disabled": [4],
|
|
15565
|
-
"
|
|
15771
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
15566
15772
|
"_hideLabel": [4, "_hide-label"],
|
|
15567
15773
|
"_hint": [1],
|
|
15568
15774
|
"_icons": [1],
|
|
@@ -15589,7 +15795,7 @@ class KolCombobox {
|
|
|
15589
15795
|
},
|
|
15590
15796
|
"$listeners$": [[0, "keydown", "handleKeyDown"], [8, "click", "handleWindowClick"], [1, "mousemove", "handleMouseEvent"], [8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"]],
|
|
15591
15797
|
"$lazyBundleId$": "-",
|
|
15592
|
-
"$attrsToReflect$": [["
|
|
15798
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
15593
15799
|
}; }
|
|
15594
15800
|
}
|
|
15595
15801
|
|
|
@@ -15616,12 +15822,12 @@ class KolDetails {
|
|
|
15616
15822
|
};
|
|
15617
15823
|
this._disabled = false;
|
|
15618
15824
|
this._label = undefined;
|
|
15619
|
-
this._level =
|
|
15825
|
+
this._level = 0;
|
|
15620
15826
|
this._on = undefined;
|
|
15621
15827
|
this._open = false;
|
|
15622
15828
|
this.state = {
|
|
15623
15829
|
_label: '',
|
|
15624
|
-
_level:
|
|
15830
|
+
_level: 0,
|
|
15625
15831
|
_on: {},
|
|
15626
15832
|
};
|
|
15627
15833
|
}
|
|
@@ -15630,8 +15836,7 @@ class KolDetails {
|
|
|
15630
15836
|
await ((_a = this.buttonWcRef) === null || _a === void 0 ? void 0 : _a.kolFocus());
|
|
15631
15837
|
}
|
|
15632
15838
|
render() {
|
|
15633
|
-
const { _open, _label, _disabled } = this.state;
|
|
15634
|
-
const _level = 1;
|
|
15839
|
+
const { _open, _label, _disabled, _level } = this.state;
|
|
15635
15840
|
const rootClass = 'kol-details';
|
|
15636
15841
|
const props = {
|
|
15637
15842
|
id: this.nonce,
|
|
@@ -15653,7 +15858,7 @@ class KolDetails {
|
|
|
15653
15858
|
animationClass: `${rootClass}__wrapper-animation`,
|
|
15654
15859
|
},
|
|
15655
15860
|
};
|
|
15656
|
-
return (hAsync(KolCollapsibleFc$1, Object.assign({ key: '
|
|
15861
|
+
return (hAsync(KolCollapsibleFc$1, Object.assign({ key: '7ea8720203ee440b779c90a4d6f4042e3ebdeb6d' }, props), hAsync("slot", { key: '8ff437abe8ffb838fb30b67121ce22b5c69d7f5c' })));
|
|
15657
15862
|
}
|
|
15658
15863
|
validateDisabled(value) {
|
|
15659
15864
|
validateDisabled(this, value);
|
|
@@ -15886,27 +16091,22 @@ class KolForm {
|
|
|
15886
16091
|
targetElement.focus();
|
|
15887
16092
|
}
|
|
15888
16093
|
};
|
|
16094
|
+
this.setBlockElement = (el) => (this.errorListBlock = el);
|
|
16095
|
+
this.setFirstLinkElement = (el) => (this.errorListFirstLink = el);
|
|
15889
16096
|
this._on = undefined;
|
|
15890
16097
|
this._requiredText = true;
|
|
15891
16098
|
this._errorList = undefined;
|
|
15892
16099
|
this.state = {};
|
|
15893
16100
|
}
|
|
15894
16101
|
renderErrorList(errorList) {
|
|
15895
|
-
return (hAsync(KolAlertFc$1, { class: "kol-form__alert", ref: (
|
|
15896
|
-
this.errorListBlock = el;
|
|
15897
|
-
}, 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) => {
|
|
15898
|
-
if (index === 0) {
|
|
15899
|
-
this.errorListFirstLink = el;
|
|
15900
|
-
this.scrollToErrorList();
|
|
15901
|
-
}
|
|
15902
|
-
} }))))))));
|
|
16102
|
+
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 }))))))));
|
|
15903
16103
|
}
|
|
15904
16104
|
renderFormElement() {
|
|
15905
16105
|
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)));
|
|
15906
16106
|
}
|
|
15907
16107
|
render() {
|
|
15908
16108
|
const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
|
|
15909
|
-
return (hAsync(Host, { key: '
|
|
16109
|
+
return (hAsync(Host, { key: 'c2a136366ecf4670db6d7a53e176738fdb472016' }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
|
|
15910
16110
|
}
|
|
15911
16111
|
scrollToErrorList() {
|
|
15912
16112
|
var _a;
|
|
@@ -15976,12 +16176,12 @@ class KolHeading {
|
|
|
15976
16176
|
constructor(hostRef) {
|
|
15977
16177
|
registerInstance(this, hostRef);
|
|
15978
16178
|
this._label = undefined;
|
|
15979
|
-
this._level =
|
|
16179
|
+
this._level = 0;
|
|
15980
16180
|
this._secondaryHeadline = undefined;
|
|
15981
16181
|
this._variant = undefined;
|
|
15982
16182
|
this.state = {
|
|
15983
16183
|
_label: '',
|
|
15984
|
-
_level:
|
|
16184
|
+
_level: 0,
|
|
15985
16185
|
};
|
|
15986
16186
|
}
|
|
15987
16187
|
validateLabel(value) {
|
|
@@ -16282,39 +16482,6 @@ class InputCheckboxController extends InputCheckboxRadioController {
|
|
|
16282
16482
|
}
|
|
16283
16483
|
}
|
|
16284
16484
|
|
|
16285
|
-
function getFormFieldProps(state) {
|
|
16286
|
-
const props = {
|
|
16287
|
-
id: state._id,
|
|
16288
|
-
disabled: state._disabled,
|
|
16289
|
-
msg: convertMsgToInternMsg(state._msg),
|
|
16290
|
-
hint: state._hint,
|
|
16291
|
-
label: state._label,
|
|
16292
|
-
hideLabel: state._hideLabel,
|
|
16293
|
-
hideError: state._hideError,
|
|
16294
|
-
touched: state._touched,
|
|
16295
|
-
accessKey: state._accessKey,
|
|
16296
|
-
shortKey: state._shortKey,
|
|
16297
|
-
};
|
|
16298
|
-
if ('_required' in state) {
|
|
16299
|
-
props.required = state._required;
|
|
16300
|
-
}
|
|
16301
|
-
if ('_readOnly' in state) {
|
|
16302
|
-
props.readOnly = state._readOnly;
|
|
16303
|
-
}
|
|
16304
|
-
if ('_hasCounter' in state && '_currentLength' in state) {
|
|
16305
|
-
props.counter = state._hasCounter ? { currentLength: state._currentLength } : undefined;
|
|
16306
|
-
if (props.counter && '_maxLength' in state) {
|
|
16307
|
-
props.counter.maxLength = state._maxLength;
|
|
16308
|
-
}
|
|
16309
|
-
}
|
|
16310
|
-
return props;
|
|
16311
|
-
}
|
|
16312
|
-
const FormFieldStateWrapper = (_a, children) => {
|
|
16313
|
-
var { state } = _a, other = __rest(_a, ["state"]);
|
|
16314
|
-
return (hAsync(KolFormFieldFc$1, Object.assign({}, getFormFieldProps(state), other), children));
|
|
16315
|
-
};
|
|
16316
|
-
var KolFormFieldStateWrapperFc = FormFieldStateWrapper;
|
|
16317
|
-
|
|
16318
16485
|
const InputContainer = (_a, children) => {
|
|
16319
16486
|
var { class: classNames } = _a, other = __rest(_a, ["class"]);
|
|
16320
16487
|
return (hAsync("div", Object.assign({ class: clsx('kol-field-control__input', classNames) }, other), children));
|
|
@@ -16409,22 +16576,6 @@ const CheckboxFc = (_a) => {
|
|
|
16409
16576
|
};
|
|
16410
16577
|
var KolCheckboxFc = CheckboxFc;
|
|
16411
16578
|
|
|
16412
|
-
const getRenderStates = (state) => {
|
|
16413
|
-
var _a, _b, _c;
|
|
16414
|
-
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);
|
|
16415
|
-
const isMessageValidError = ((_c = state._msg) === null || _c === void 0 ? void 0 : _c._type) === 'error' && hasMessage;
|
|
16416
|
-
const hasError = isMessageValidError && state._touched === true;
|
|
16417
|
-
const hasHint = typeof state._hint === 'string' && state._hint.length > 0;
|
|
16418
|
-
const ariaDescribedBy = [];
|
|
16419
|
-
if (hasMessage) {
|
|
16420
|
-
ariaDescribedBy.push(`${state._id}-msg`);
|
|
16421
|
-
}
|
|
16422
|
-
if (hasHint) {
|
|
16423
|
-
ariaDescribedBy.push(`${state._id}-hint`);
|
|
16424
|
-
}
|
|
16425
|
-
return { hasError, hasHint, ariaDescribedBy };
|
|
16426
|
-
};
|
|
16427
|
-
|
|
16428
16579
|
function getCheckboxProps(state, inputProps = {}) {
|
|
16429
16580
|
const { ariaDescribedBy } = getRenderStates(state);
|
|
16430
16581
|
const props = {
|
|
@@ -16518,7 +16669,7 @@ class KolInputCheckbox {
|
|
|
16518
16669
|
return this.state._icons.unchecked;
|
|
16519
16670
|
}
|
|
16520
16671
|
render() {
|
|
16521
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
16672
|
+
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())))));
|
|
16522
16673
|
}
|
|
16523
16674
|
constructor(hostRef) {
|
|
16524
16675
|
registerInstance(this, hostRef);
|
|
@@ -16537,7 +16688,7 @@ class KolInputCheckbox {
|
|
|
16537
16688
|
};
|
|
16538
16689
|
this._accessKey = undefined;
|
|
16539
16690
|
this._checked = false;
|
|
16540
|
-
this.
|
|
16691
|
+
this._hideMsg = false;
|
|
16541
16692
|
this._disabled = false;
|
|
16542
16693
|
this._hideLabel = false;
|
|
16543
16694
|
this._hint = '';
|
|
@@ -16559,7 +16710,7 @@ class KolInputCheckbox {
|
|
|
16559
16710
|
this._variant = 'default';
|
|
16560
16711
|
this.state = {
|
|
16561
16712
|
_checked: false,
|
|
16562
|
-
|
|
16713
|
+
_hideMsg: false,
|
|
16563
16714
|
_icons: {
|
|
16564
16715
|
checked: 'codicon codicon-check',
|
|
16565
16716
|
indeterminate: 'codicon codicon-remove',
|
|
@@ -16587,8 +16738,8 @@ class KolInputCheckbox {
|
|
|
16587
16738
|
validateDisabled(value) {
|
|
16588
16739
|
this.controller.validateDisabled(value);
|
|
16589
16740
|
}
|
|
16590
|
-
|
|
16591
|
-
this.controller.
|
|
16741
|
+
validateHideMsg(value) {
|
|
16742
|
+
this.controller.validateHideMsg(value);
|
|
16592
16743
|
}
|
|
16593
16744
|
validateHideLabel(value) {
|
|
16594
16745
|
this.controller.validateHideLabel(value);
|
|
@@ -16651,7 +16802,7 @@ class KolInputCheckbox {
|
|
|
16651
16802
|
"_accessKey": ["validateAccessKey"],
|
|
16652
16803
|
"_checked": ["validateChecked"],
|
|
16653
16804
|
"_disabled": ["validateDisabled"],
|
|
16654
|
-
"
|
|
16805
|
+
"_hideMsg": ["validateHideMsg"],
|
|
16655
16806
|
"_hideLabel": ["validateHideLabel"],
|
|
16656
16807
|
"_hint": ["validateHint"],
|
|
16657
16808
|
"_icons": ["validateIcons"],
|
|
@@ -16679,7 +16830,7 @@ class KolInputCheckbox {
|
|
|
16679
16830
|
"$members$": {
|
|
16680
16831
|
"_accessKey": [1, "_access-key"],
|
|
16681
16832
|
"_checked": [1540],
|
|
16682
|
-
"
|
|
16833
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
16683
16834
|
"_disabled": [4],
|
|
16684
16835
|
"_hideLabel": [4, "_hide-label"],
|
|
16685
16836
|
"_hint": [1],
|
|
@@ -16706,132 +16857,10 @@ class KolInputCheckbox {
|
|
|
16706
16857
|
},
|
|
16707
16858
|
"$listeners$": undefined,
|
|
16708
16859
|
"$lazyBundleId$": "-",
|
|
16709
|
-
"$attrsToReflect$": [["_checked", "_checked"], ["
|
|
16860
|
+
"$attrsToReflect$": [["_checked", "_checked"], ["_hideMsg", "_hide-msg"], ["_indeterminate", "_indeterminate"], ["_touched", "_touched"]]
|
|
16710
16861
|
}; }
|
|
16711
16862
|
}
|
|
16712
16863
|
|
|
16713
|
-
function getInputProps(state) {
|
|
16714
|
-
const { ariaDescribedBy } = getRenderStates(state);
|
|
16715
|
-
const props = {
|
|
16716
|
-
id: state._id,
|
|
16717
|
-
hideLabel: state._hideLabel,
|
|
16718
|
-
label: state._label,
|
|
16719
|
-
accessKey: state._accessKey,
|
|
16720
|
-
disabled: state._disabled,
|
|
16721
|
-
name: state._name,
|
|
16722
|
-
ariaDescribedBy: ariaDescribedBy,
|
|
16723
|
-
};
|
|
16724
|
-
if ('_type' in state)
|
|
16725
|
-
props.type = state._type;
|
|
16726
|
-
if ('_value' in state)
|
|
16727
|
-
props.value = state._value;
|
|
16728
|
-
if ('_required' in state)
|
|
16729
|
-
props.required = state._required;
|
|
16730
|
-
if ('_maxLength' in state)
|
|
16731
|
-
props.maxlength = state._maxLength;
|
|
16732
|
-
if ('_placeholder' in state)
|
|
16733
|
-
props.placeholder = state._placeholder;
|
|
16734
|
-
if ('_autoComplete' in state)
|
|
16735
|
-
props.autoComplete = state._autoComplete;
|
|
16736
|
-
if ('_spellCheck' in state)
|
|
16737
|
-
props.spellcheck = state._spellCheck;
|
|
16738
|
-
if ('_pattern' in state)
|
|
16739
|
-
props.pattern = state._pattern;
|
|
16740
|
-
if ('_readOnly' in state)
|
|
16741
|
-
props.readonly = state._readOnly;
|
|
16742
|
-
if ('_min' in state)
|
|
16743
|
-
props.min = state._min;
|
|
16744
|
-
if ('_max' in state)
|
|
16745
|
-
props.max = state._max;
|
|
16746
|
-
if ('_step' in state)
|
|
16747
|
-
props.step = state._step;
|
|
16748
|
-
if ('_multiple' in state)
|
|
16749
|
-
props.multiple = state._multiple;
|
|
16750
|
-
if ('_checked' in state)
|
|
16751
|
-
props.checked = state._checked;
|
|
16752
|
-
if ('_indeterminate' in state)
|
|
16753
|
-
props.indeterminate = state._indeterminate;
|
|
16754
|
-
if ('_touched' in state)
|
|
16755
|
-
props.touched = state._touched;
|
|
16756
|
-
if ('_msg' in state)
|
|
16757
|
-
props.msg = convertMsgToInternMsg(state._msg);
|
|
16758
|
-
if ('_suggestions' in state) {
|
|
16759
|
-
const hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;
|
|
16760
|
-
if (hasSuggestions) {
|
|
16761
|
-
props.suggestions = (hAsync(KolSuggestionsFc, { id: state._id, suggestions: state._suggestions }));
|
|
16762
|
-
}
|
|
16763
|
-
}
|
|
16764
|
-
return props;
|
|
16765
|
-
}
|
|
16766
|
-
const InputStateWrapper = (_a) => {
|
|
16767
|
-
var { state } = _a, other = __rest(_a, ["state"]);
|
|
16768
|
-
return hAsync(KolInputFc, Object.assign({}, getInputProps(state), other));
|
|
16769
|
-
};
|
|
16770
|
-
var KolInputStateWrapperFc = InputStateWrapper;
|
|
16771
|
-
|
|
16772
|
-
const KolButtonFc = (props) => {
|
|
16773
|
-
const { label, icons, hideLabel, disabled, onClick } = props, other = __rest(props, ["label", "icons", "hideLabel", "disabled", "onClick"]);
|
|
16774
|
-
return hAsync(KolButtonWcTag, Object.assign({ tabindex: 0, _label: label, _disabled: disabled, _icons: icons, _hideLabel: hideLabel, _on: { onClick } }, other));
|
|
16775
|
-
};
|
|
16776
|
-
var KolButtonFc$1 = KolButtonFc;
|
|
16777
|
-
|
|
16778
|
-
const KolIconButtonFc = (props) => {
|
|
16779
|
-
const { componentName = 'button', label, icon, onClick } = props, other = __rest(props, ["componentName", "label", "icon", "onClick"]);
|
|
16780
|
-
const Component = componentName === 'button' ? KolButtonFc$1 : KolIconFc$1;
|
|
16781
|
-
return hAsync(Component, Object.assign({ label: label || '', hideLabel: true, icons: `codicon codicon-${icon}`, onClick: onClick }, other));
|
|
16782
|
-
};
|
|
16783
|
-
var KolIconButtonFc$1 = KolIconButtonFc;
|
|
16784
|
-
|
|
16785
|
-
function getInputContainerProps(state) {
|
|
16786
|
-
let icons = undefined;
|
|
16787
|
-
let smartButton;
|
|
16788
|
-
if ('_icons' in state) {
|
|
16789
|
-
icons = state._icons;
|
|
16790
|
-
}
|
|
16791
|
-
if ('_smartButton' in state) {
|
|
16792
|
-
smartButton = state._smartButton;
|
|
16793
|
-
}
|
|
16794
|
-
return {
|
|
16795
|
-
icons,
|
|
16796
|
-
smartButton,
|
|
16797
|
-
disabled: state._disabled,
|
|
16798
|
-
msg: convertMsgToInternMsg(state._msg),
|
|
16799
|
-
touched: state._touched,
|
|
16800
|
-
};
|
|
16801
|
-
}
|
|
16802
|
-
const InputContainerStateWrapperFc = ({ state, endAdornment: defaultEndAdornment }, children) => {
|
|
16803
|
-
const { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);
|
|
16804
|
-
let leftIconProps = icons === null || icons === void 0 ? void 0 : icons.left;
|
|
16805
|
-
if (isString$2(leftIconProps)) {
|
|
16806
|
-
leftIconProps = { icon: leftIconProps };
|
|
16807
|
-
}
|
|
16808
|
-
let rightIconProps = icons === null || icons === void 0 ? void 0 : icons.right;
|
|
16809
|
-
if (isString$2(rightIconProps)) {
|
|
16810
|
-
rightIconProps = { icon: rightIconProps };
|
|
16811
|
-
}
|
|
16812
|
-
const startAdornment = [];
|
|
16813
|
-
const endAdornment = [];
|
|
16814
|
-
if (defaultEndAdornment) {
|
|
16815
|
-
if (Array.isArray(defaultEndAdornment)) {
|
|
16816
|
-
endAdornment.push(...defaultEndAdornment);
|
|
16817
|
-
}
|
|
16818
|
-
else {
|
|
16819
|
-
endAdornment.push(defaultEndAdornment);
|
|
16820
|
-
}
|
|
16821
|
-
}
|
|
16822
|
-
if (leftIconProps) {
|
|
16823
|
-
startAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(leftIconProps) ? leftIconProps : {}))));
|
|
16824
|
-
}
|
|
16825
|
-
if (isObject$1(smartButton)) {
|
|
16826
|
-
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "button" }, smartButton, { hideLabel: true, disabled: disabled })));
|
|
16827
|
-
}
|
|
16828
|
-
if (rightIconProps) {
|
|
16829
|
-
endAdornment.push(hAsync(KolIconButtonFc$1, Object.assign({ componentName: "icon" }, (isObject$1(rightIconProps) ? rightIconProps : {}))));
|
|
16830
|
-
}
|
|
16831
|
-
return (hAsync(KolInputContainerFc$1, { disabled: disabled, msg: msg, touched: touched, startAdornment: startAdornment, endAdornment: endAdornment }, children));
|
|
16832
|
-
};
|
|
16833
|
-
var KolInputContainerStateWrapperFc = InputContainerStateWrapperFc;
|
|
16834
|
-
|
|
16835
16864
|
class InputColorController extends InputIconController {
|
|
16836
16865
|
constructor(component, name, host) {
|
|
16837
16866
|
super(component, name, host);
|
|
@@ -16855,7 +16884,7 @@ class InputColorController extends InputIconController {
|
|
|
16855
16884
|
}
|
|
16856
16885
|
}
|
|
16857
16886
|
|
|
16858
|
-
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}";
|
|
16887
|
+
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}";
|
|
16859
16888
|
var KolInputColorDefaultStyle0 = defaultStyleCss$u;
|
|
16860
16889
|
|
|
16861
16890
|
class KolInputColor {
|
|
@@ -16880,7 +16909,7 @@ class KolInputColor {
|
|
|
16880
16909
|
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 });
|
|
16881
16910
|
}
|
|
16882
16911
|
render() {
|
|
16883
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
16912
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '2cc074d267724a8844cb3a74173a4158d5085dec' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '97ab0641e442efdf1cae0db8b98ddc495dcbbb83', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '04f39017c2a6c0056d7c72d2dbc868f6af0eb495' }, this.getInputProps())))));
|
|
16884
16913
|
}
|
|
16885
16914
|
constructor(hostRef) {
|
|
16886
16915
|
registerInstance(this, hostRef);
|
|
@@ -16903,7 +16932,7 @@ class KolInputColor {
|
|
|
16903
16932
|
this._accessKey = undefined;
|
|
16904
16933
|
this._autoComplete = undefined;
|
|
16905
16934
|
this._disabled = false;
|
|
16906
|
-
this.
|
|
16935
|
+
this._hideMsg = false;
|
|
16907
16936
|
this._hideLabel = false;
|
|
16908
16937
|
this._hint = '';
|
|
16909
16938
|
this._icons = undefined;
|
|
@@ -16922,7 +16951,7 @@ class KolInputColor {
|
|
|
16922
16951
|
this._value = undefined;
|
|
16923
16952
|
this.state = {
|
|
16924
16953
|
_autoComplete: 'off',
|
|
16925
|
-
|
|
16954
|
+
_hideMsg: false,
|
|
16926
16955
|
_id: `id-${nonce()}`,
|
|
16927
16956
|
_label: '',
|
|
16928
16957
|
_suggestions: [],
|
|
@@ -16942,8 +16971,8 @@ class KolInputColor {
|
|
|
16942
16971
|
validateDisabled(value) {
|
|
16943
16972
|
this.controller.validateDisabled(value);
|
|
16944
16973
|
}
|
|
16945
|
-
|
|
16946
|
-
this.controller.
|
|
16974
|
+
validateHideMsg(value) {
|
|
16975
|
+
this.controller.validateHideMsg(value);
|
|
16947
16976
|
}
|
|
16948
16977
|
validateHideLabel(value) {
|
|
16949
16978
|
this.controller.validateHideLabel(value);
|
|
@@ -17000,7 +17029,7 @@ class KolInputColor {
|
|
|
17000
17029
|
"_accessKey": ["validateAccessKey"],
|
|
17001
17030
|
"_autoComplete": ["validateAutoComplete"],
|
|
17002
17031
|
"_disabled": ["validateDisabled"],
|
|
17003
|
-
"
|
|
17032
|
+
"_hideMsg": ["validateHideMsg"],
|
|
17004
17033
|
"_hideLabel": ["validateHideLabel"],
|
|
17005
17034
|
"_hint": ["validateHint"],
|
|
17006
17035
|
"_icons": ["validateIcons"],
|
|
@@ -17027,7 +17056,7 @@ class KolInputColor {
|
|
|
17027
17056
|
"_accessKey": [1, "_access-key"],
|
|
17028
17057
|
"_autoComplete": [1, "_auto-complete"],
|
|
17029
17058
|
"_disabled": [4],
|
|
17030
|
-
"
|
|
17059
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
17031
17060
|
"_hideLabel": [4, "_hide-label"],
|
|
17032
17061
|
"_hint": [1],
|
|
17033
17062
|
"_icons": [1],
|
|
@@ -17051,7 +17080,7 @@ class KolInputColor {
|
|
|
17051
17080
|
},
|
|
17052
17081
|
"$listeners$": undefined,
|
|
17053
17082
|
"$lazyBundleId$": "-",
|
|
17054
|
-
"$attrsToReflect$": [["
|
|
17083
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
17055
17084
|
}; }
|
|
17056
17085
|
}
|
|
17057
17086
|
|
|
@@ -17204,7 +17233,7 @@ InputDateController.isoTimeRegex = /^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/;
|
|
|
17204
17233
|
InputDateController.isoWeekRegex = /^\d{4}-W(?:[0-4]\d|5[0-3])$/;
|
|
17205
17234
|
InputDateController.DEFAULT_MAX_DATE = new Date(9999, 11, 31, 23, 59, 59);
|
|
17206
17235
|
|
|
17207
|
-
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}";
|
|
17236
|
+
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}";
|
|
17208
17237
|
var KolInputDateDefaultStyle0 = defaultStyleCss$t;
|
|
17209
17238
|
|
|
17210
17239
|
class KolInputDate {
|
|
@@ -17252,7 +17281,7 @@ class KolInputDate {
|
|
|
17252
17281
|
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 });
|
|
17253
17282
|
}
|
|
17254
17283
|
render() {
|
|
17255
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
17284
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '7e3a749df34a7a6475d0b84c2203a3d3c784a84d' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '51ec81dc553db4bc3293877dab6c47dcb697bbdd', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'd4662d1832990c06d4327c10eb24866e4d3235df' }, this.getInputProps())))));
|
|
17256
17285
|
}
|
|
17257
17286
|
constructor(hostRef) {
|
|
17258
17287
|
registerInstance(this, hostRef);
|
|
@@ -17290,7 +17319,7 @@ class KolInputDate {
|
|
|
17290
17319
|
this._accessKey = undefined;
|
|
17291
17320
|
this._autoComplete = undefined;
|
|
17292
17321
|
this._disabled = false;
|
|
17293
|
-
this.
|
|
17322
|
+
this._hideMsg = false;
|
|
17294
17323
|
this._hideLabel = false;
|
|
17295
17324
|
this._hint = '';
|
|
17296
17325
|
this._icons = undefined;
|
|
@@ -17316,7 +17345,7 @@ class KolInputDate {
|
|
|
17316
17345
|
this.state = {
|
|
17317
17346
|
_autoComplete: 'off',
|
|
17318
17347
|
_hasValue: false,
|
|
17319
|
-
|
|
17348
|
+
_hideMsg: false,
|
|
17320
17349
|
_id: `id-${nonce()}`,
|
|
17321
17350
|
_label: '',
|
|
17322
17351
|
_suggestions: [],
|
|
@@ -17337,8 +17366,8 @@ class KolInputDate {
|
|
|
17337
17366
|
validateDisabled(value) {
|
|
17338
17367
|
this.controller.validateDisabled(value);
|
|
17339
17368
|
}
|
|
17340
|
-
|
|
17341
|
-
this.controller.
|
|
17369
|
+
validateHideMsg(value) {
|
|
17370
|
+
this.controller.validateHideMsg(value);
|
|
17342
17371
|
}
|
|
17343
17372
|
validateHideLabel(value) {
|
|
17344
17373
|
this.controller.validateHideLabel(value);
|
|
@@ -17422,7 +17451,7 @@ class KolInputDate {
|
|
|
17422
17451
|
"_accessKey": ["validateAccessKey"],
|
|
17423
17452
|
"_autoComplete": ["validateAutoComplete"],
|
|
17424
17453
|
"_disabled": ["validateDisabled"],
|
|
17425
|
-
"
|
|
17454
|
+
"_hideMsg": ["validateHideMsg"],
|
|
17426
17455
|
"_hideLabel": ["validateHideLabel"],
|
|
17427
17456
|
"_hint": ["validateHint"],
|
|
17428
17457
|
"_icons": ["validateIcons"],
|
|
@@ -17455,7 +17484,7 @@ class KolInputDate {
|
|
|
17455
17484
|
"_accessKey": [1, "_access-key"],
|
|
17456
17485
|
"_autoComplete": [1, "_auto-complete"],
|
|
17457
17486
|
"_disabled": [4],
|
|
17458
|
-
"
|
|
17487
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
17459
17488
|
"_hideLabel": [4, "_hide-label"],
|
|
17460
17489
|
"_hint": [1],
|
|
17461
17490
|
"_icons": [1],
|
|
@@ -17487,7 +17516,7 @@ class KolInputDate {
|
|
|
17487
17516
|
},
|
|
17488
17517
|
"$listeners$": undefined,
|
|
17489
17518
|
"$lazyBundleId$": "-",
|
|
17490
|
-
"$attrsToReflect$": [["
|
|
17519
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
17491
17520
|
}; }
|
|
17492
17521
|
}
|
|
17493
17522
|
|
|
@@ -17607,7 +17636,7 @@ class InputEmailController extends InputTextEmailController {
|
|
|
17607
17636
|
}
|
|
17608
17637
|
}
|
|
17609
17638
|
|
|
17610
|
-
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}";
|
|
17639
|
+
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}";
|
|
17611
17640
|
var KolInputEmailDefaultStyle0 = defaultStyleCss$s;
|
|
17612
17641
|
|
|
17613
17642
|
class KolInputEmail {
|
|
@@ -17640,7 +17669,7 @@ class KolInputEmail {
|
|
|
17640
17669
|
} });
|
|
17641
17670
|
}
|
|
17642
17671
|
render() {
|
|
17643
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
17672
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '1da21bd08b98eaa5d1fd8b0570a5305b753fb3d8' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'e4a2763de575dd266cd0367a5221d2f301b09bc8', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: '6ca6d3beed387300f7ed049a3d32f4bff1d3a2eb' }, this.getInputProps())))));
|
|
17644
17673
|
}
|
|
17645
17674
|
constructor(hostRef) {
|
|
17646
17675
|
registerInstance(this, hostRef);
|
|
@@ -17665,7 +17694,7 @@ class KolInputEmail {
|
|
|
17665
17694
|
this._autoComplete = undefined;
|
|
17666
17695
|
this._disabled = false;
|
|
17667
17696
|
this._hasCounter = false;
|
|
17668
|
-
this.
|
|
17697
|
+
this._hideMsg = false;
|
|
17669
17698
|
this._hideLabel = false;
|
|
17670
17699
|
this._hint = '';
|
|
17671
17700
|
this._icons = undefined;
|
|
@@ -17692,7 +17721,7 @@ class KolInputEmail {
|
|
|
17692
17721
|
_autoComplete: 'off',
|
|
17693
17722
|
_currentLength: 0,
|
|
17694
17723
|
_hasValue: false,
|
|
17695
|
-
|
|
17724
|
+
_hideMsg: false,
|
|
17696
17725
|
_id: `id-${nonce()}`,
|
|
17697
17726
|
_label: '',
|
|
17698
17727
|
_suggestions: [],
|
|
@@ -17715,8 +17744,8 @@ class KolInputEmail {
|
|
|
17715
17744
|
validateHasCounter(value) {
|
|
17716
17745
|
this.controller.validateHasCounter(value);
|
|
17717
17746
|
}
|
|
17718
|
-
|
|
17719
|
-
this.controller.
|
|
17747
|
+
validateHideMsg(value) {
|
|
17748
|
+
this.controller.validateHideMsg(value);
|
|
17720
17749
|
}
|
|
17721
17750
|
validateHideLabel(value) {
|
|
17722
17751
|
this.controller.validateHideLabel(value);
|
|
@@ -17794,7 +17823,7 @@ class KolInputEmail {
|
|
|
17794
17823
|
"_autoComplete": ["validateAutoComplete"],
|
|
17795
17824
|
"_disabled": ["validateDisabled"],
|
|
17796
17825
|
"_hasCounter": ["validateHasCounter"],
|
|
17797
|
-
"
|
|
17826
|
+
"_hideMsg": ["validateHideMsg"],
|
|
17798
17827
|
"_hideLabel": ["validateHideLabel"],
|
|
17799
17828
|
"_hint": ["validateHint"],
|
|
17800
17829
|
"_icons": ["validateIcons"],
|
|
@@ -17828,7 +17857,7 @@ class KolInputEmail {
|
|
|
17828
17857
|
"_autoComplete": [1, "_auto-complete"],
|
|
17829
17858
|
"_disabled": [4],
|
|
17830
17859
|
"_hasCounter": [4, "_has-counter"],
|
|
17831
|
-
"
|
|
17860
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
17832
17861
|
"_hideLabel": [4, "_hide-label"],
|
|
17833
17862
|
"_hint": [1],
|
|
17834
17863
|
"_icons": [1],
|
|
@@ -17858,7 +17887,7 @@ class KolInputEmail {
|
|
|
17858
17887
|
},
|
|
17859
17888
|
"$listeners$": undefined,
|
|
17860
17889
|
"$lazyBundleId$": "-",
|
|
17861
|
-
"$attrsToReflect$": [["
|
|
17890
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
17862
17891
|
}; }
|
|
17863
17892
|
}
|
|
17864
17893
|
|
|
@@ -17884,7 +17913,7 @@ class InputFileController extends InputIconController {
|
|
|
17884
17913
|
}
|
|
17885
17914
|
}
|
|
17886
17915
|
|
|
17887
|
-
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}";
|
|
17916
|
+
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}";
|
|
17888
17917
|
var KolInputFileDefaultStyle0 = defaultStyleCss$r;
|
|
17889
17918
|
|
|
17890
17919
|
class KolInputFile {
|
|
@@ -17915,7 +17944,7 @@ class KolInputFile {
|
|
|
17915
17944
|
} });
|
|
17916
17945
|
}
|
|
17917
17946
|
render() {
|
|
17918
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
17947
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '3c2a19696312a817df72cf8aba4e02ed60eb6768' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '783aaf2dac305d6715be4e6d6cef68543d07b9b8', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'e9c64850b8109420d3bb513ccacd19f77cde2f24' }, this.getInputProps())))));
|
|
17919
17948
|
}
|
|
17920
17949
|
constructor(hostRef) {
|
|
17921
17950
|
registerInstance(this, hostRef);
|
|
@@ -17938,7 +17967,7 @@ class KolInputFile {
|
|
|
17938
17967
|
this._accept = undefined;
|
|
17939
17968
|
this._accessKey = undefined;
|
|
17940
17969
|
this._disabled = false;
|
|
17941
|
-
this.
|
|
17970
|
+
this._hideMsg = false;
|
|
17942
17971
|
this._hideLabel = false;
|
|
17943
17972
|
this._hint = '';
|
|
17944
17973
|
this._icons = undefined;
|
|
@@ -17956,7 +17985,7 @@ class KolInputFile {
|
|
|
17956
17985
|
this._tooltipAlign = 'top';
|
|
17957
17986
|
this._touched = false;
|
|
17958
17987
|
this.state = {
|
|
17959
|
-
|
|
17988
|
+
_hideMsg: false,
|
|
17960
17989
|
_id: `id-${nonce()}`,
|
|
17961
17990
|
_label: '',
|
|
17962
17991
|
};
|
|
@@ -17975,8 +18004,8 @@ class KolInputFile {
|
|
|
17975
18004
|
validateDisabled(value) {
|
|
17976
18005
|
this.controller.validateDisabled(value);
|
|
17977
18006
|
}
|
|
17978
|
-
|
|
17979
|
-
this.controller.
|
|
18007
|
+
validateHideMsg(value) {
|
|
18008
|
+
this.controller.validateHideMsg(value);
|
|
17980
18009
|
}
|
|
17981
18010
|
validateHideLabel(value) {
|
|
17982
18011
|
this.controller.validateHideLabel(value);
|
|
@@ -18033,7 +18062,7 @@ class KolInputFile {
|
|
|
18033
18062
|
"_accept": ["validateAccept"],
|
|
18034
18063
|
"_accessKey": ["validateAccessKey"],
|
|
18035
18064
|
"_disabled": ["validateDisabled"],
|
|
18036
|
-
"
|
|
18065
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18037
18066
|
"_hideLabel": ["validateHideLabel"],
|
|
18038
18067
|
"_hint": ["validateHint"],
|
|
18039
18068
|
"_icons": ["validateIcons"],
|
|
@@ -18060,7 +18089,7 @@ class KolInputFile {
|
|
|
18060
18089
|
"_accept": [1],
|
|
18061
18090
|
"_accessKey": [1, "_access-key"],
|
|
18062
18091
|
"_disabled": [4],
|
|
18063
|
-
"
|
|
18092
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18064
18093
|
"_hideLabel": [4, "_hide-label"],
|
|
18065
18094
|
"_hint": [1],
|
|
18066
18095
|
"_icons": [1],
|
|
@@ -18084,7 +18113,7 @@ class KolInputFile {
|
|
|
18084
18113
|
},
|
|
18085
18114
|
"$listeners$": undefined,
|
|
18086
18115
|
"$lazyBundleId$": "-",
|
|
18087
|
-
"$attrsToReflect$": [["
|
|
18116
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"]]
|
|
18088
18117
|
}; }
|
|
18089
18118
|
}
|
|
18090
18119
|
|
|
@@ -18128,7 +18157,7 @@ class InputNumberController extends InputIconController {
|
|
|
18128
18157
|
onChange(event) {
|
|
18129
18158
|
super.onChange(event);
|
|
18130
18159
|
if (!!event.target.value !== !!this.component._value) {
|
|
18131
|
-
this.component._value = event.target.value;
|
|
18160
|
+
this.component._value = parseFloat(event.target.value);
|
|
18132
18161
|
}
|
|
18133
18162
|
}
|
|
18134
18163
|
validateMax(value) {
|
|
@@ -18170,7 +18199,7 @@ class InputNumberController extends InputIconController {
|
|
|
18170
18199
|
}
|
|
18171
18200
|
}
|
|
18172
18201
|
|
|
18173
|
-
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}";
|
|
18202
|
+
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}";
|
|
18174
18203
|
var KolInputNumberDefaultStyle0 = defaultStyleCss$q;
|
|
18175
18204
|
|
|
18176
18205
|
class KolInputNumber {
|
|
@@ -18203,7 +18232,7 @@ class KolInputNumber {
|
|
|
18203
18232
|
} });
|
|
18204
18233
|
}
|
|
18205
18234
|
render() {
|
|
18206
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
18235
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6a2b442199bca0bde5330fe6c8752669d5f4e934' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '1b8bbc0f5b79acc5c479a07e5273bf560de6959f', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'dcf8e4c7d7907c1f87a7fa9bde93df0c2a1ff1dd' }, this.getInputProps())))));
|
|
18207
18236
|
}
|
|
18208
18237
|
constructor(hostRef) {
|
|
18209
18238
|
registerInstance(this, hostRef);
|
|
@@ -18226,7 +18255,7 @@ class KolInputNumber {
|
|
|
18226
18255
|
this._accessKey = undefined;
|
|
18227
18256
|
this._autoComplete = undefined;
|
|
18228
18257
|
this._disabled = false;
|
|
18229
|
-
this.
|
|
18258
|
+
this._hideMsg = false;
|
|
18230
18259
|
this._hideLabel = false;
|
|
18231
18260
|
this._hint = '';
|
|
18232
18261
|
this._icons = undefined;
|
|
@@ -18252,7 +18281,7 @@ class KolInputNumber {
|
|
|
18252
18281
|
this.state = {
|
|
18253
18282
|
_autoComplete: 'off',
|
|
18254
18283
|
_hasValue: false,
|
|
18255
|
-
|
|
18284
|
+
_hideMsg: false,
|
|
18256
18285
|
_id: `id-${nonce()}`,
|
|
18257
18286
|
_label: '',
|
|
18258
18287
|
_suggestions: [],
|
|
@@ -18272,8 +18301,8 @@ class KolInputNumber {
|
|
|
18272
18301
|
validateDisabled(value) {
|
|
18273
18302
|
this.controller.validateDisabled(value);
|
|
18274
18303
|
}
|
|
18275
|
-
|
|
18276
|
-
this.controller.
|
|
18304
|
+
validateHideMsg(value) {
|
|
18305
|
+
this.controller.validateHideMsg(value);
|
|
18277
18306
|
}
|
|
18278
18307
|
validateHideLabel(value) {
|
|
18279
18308
|
this.controller.validateHideLabel(value);
|
|
@@ -18350,7 +18379,7 @@ class KolInputNumber {
|
|
|
18350
18379
|
"_accessKey": ["validateAccessKey"],
|
|
18351
18380
|
"_autoComplete": ["validateAutoComplete"],
|
|
18352
18381
|
"_disabled": ["validateDisabled"],
|
|
18353
|
-
"
|
|
18382
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18354
18383
|
"_hideLabel": ["validateHideLabel"],
|
|
18355
18384
|
"_hint": ["validateHint"],
|
|
18356
18385
|
"_icons": ["validateIcons"],
|
|
@@ -18383,14 +18412,14 @@ class KolInputNumber {
|
|
|
18383
18412
|
"_accessKey": [1, "_access-key"],
|
|
18384
18413
|
"_autoComplete": [1, "_auto-complete"],
|
|
18385
18414
|
"_disabled": [4],
|
|
18386
|
-
"
|
|
18415
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18387
18416
|
"_hideLabel": [4, "_hide-label"],
|
|
18388
18417
|
"_hint": [1],
|
|
18389
18418
|
"_icons": [1],
|
|
18390
18419
|
"_id": [1],
|
|
18391
18420
|
"_label": [1],
|
|
18392
|
-
"_max": [
|
|
18393
|
-
"_min": [
|
|
18421
|
+
"_max": [2],
|
|
18422
|
+
"_min": [2],
|
|
18394
18423
|
"_msg": [1],
|
|
18395
18424
|
"_name": [1],
|
|
18396
18425
|
"_on": [16],
|
|
@@ -18405,7 +18434,7 @@ class KolInputNumber {
|
|
|
18405
18434
|
"_tabIndex": [2, "_tab-index"],
|
|
18406
18435
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
18407
18436
|
"_touched": [1540],
|
|
18408
|
-
"_value": [
|
|
18437
|
+
"_value": [1538],
|
|
18409
18438
|
"state": [32],
|
|
18410
18439
|
"inputHasFocus": [32],
|
|
18411
18440
|
"getValue": [64],
|
|
@@ -18413,11 +18442,11 @@ class KolInputNumber {
|
|
|
18413
18442
|
},
|
|
18414
18443
|
"$listeners$": undefined,
|
|
18415
18444
|
"$lazyBundleId$": "-",
|
|
18416
|
-
"$attrsToReflect$": [["
|
|
18445
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
18417
18446
|
}; }
|
|
18418
18447
|
}
|
|
18419
18448
|
|
|
18420
|
-
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}";
|
|
18449
|
+
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}";
|
|
18421
18450
|
var KolInputPasswordDefaultStyle0 = defaultStyleCss$p;
|
|
18422
18451
|
|
|
18423
18452
|
class KolInputPassword {
|
|
@@ -18460,7 +18489,7 @@ class KolInputPassword {
|
|
|
18460
18489
|
}, icon: `codicon codicon-eye-${this._passwordVisible ? 'closed' : 'watch'}`, disabled: this._disabled }));
|
|
18461
18490
|
}
|
|
18462
18491
|
render() {
|
|
18463
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
18492
|
+
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())))));
|
|
18464
18493
|
}
|
|
18465
18494
|
constructor(hostRef) {
|
|
18466
18495
|
registerInstance(this, hostRef);
|
|
@@ -18485,7 +18514,7 @@ class KolInputPassword {
|
|
|
18485
18514
|
this._autoComplete = undefined;
|
|
18486
18515
|
this._disabled = false;
|
|
18487
18516
|
this._hasCounter = false;
|
|
18488
|
-
this.
|
|
18517
|
+
this._hideMsg = false;
|
|
18489
18518
|
this._hideLabel = false;
|
|
18490
18519
|
this._hint = '';
|
|
18491
18520
|
this._icons = undefined;
|
|
@@ -18511,7 +18540,7 @@ class KolInputPassword {
|
|
|
18511
18540
|
_autoComplete: 'off',
|
|
18512
18541
|
_currentLength: 0,
|
|
18513
18542
|
_hasValue: false,
|
|
18514
|
-
|
|
18543
|
+
_hideMsg: false,
|
|
18515
18544
|
_id: `id-${nonce()}`,
|
|
18516
18545
|
_label: '',
|
|
18517
18546
|
_variant: 'default',
|
|
@@ -18541,8 +18570,8 @@ class KolInputPassword {
|
|
|
18541
18570
|
validateHasCounter(value) {
|
|
18542
18571
|
this.controller.validateHasCounter(value);
|
|
18543
18572
|
}
|
|
18544
|
-
|
|
18545
|
-
this.controller.
|
|
18573
|
+
validateHideMsg(value) {
|
|
18574
|
+
this.controller.validateHideMsg(value);
|
|
18546
18575
|
}
|
|
18547
18576
|
validateHideLabel(value) {
|
|
18548
18577
|
this.controller.validateHideLabel(value);
|
|
@@ -18615,7 +18644,7 @@ class KolInputPassword {
|
|
|
18615
18644
|
"_disabled": ["validateDisabled"],
|
|
18616
18645
|
"_variant": ["validateVariant"],
|
|
18617
18646
|
"_hasCounter": ["validateHasCounter"],
|
|
18618
|
-
"
|
|
18647
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18619
18648
|
"_hideLabel": ["validateHideLabel"],
|
|
18620
18649
|
"_hint": ["validateHint"],
|
|
18621
18650
|
"_icons": ["validateIcons"],
|
|
@@ -18647,7 +18676,7 @@ class KolInputPassword {
|
|
|
18647
18676
|
"_autoComplete": [1, "_auto-complete"],
|
|
18648
18677
|
"_disabled": [4],
|
|
18649
18678
|
"_hasCounter": [4, "_has-counter"],
|
|
18650
|
-
"
|
|
18679
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18651
18680
|
"_hideLabel": [4, "_hide-label"],
|
|
18652
18681
|
"_hint": [1],
|
|
18653
18682
|
"_icons": [1],
|
|
@@ -18677,11 +18706,11 @@ class KolInputPassword {
|
|
|
18677
18706
|
},
|
|
18678
18707
|
"$listeners$": undefined,
|
|
18679
18708
|
"$lazyBundleId$": "-",
|
|
18680
|
-
"$attrsToReflect$": [["
|
|
18709
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
18681
18710
|
}; }
|
|
18682
18711
|
}
|
|
18683
18712
|
|
|
18684
|
-
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}";
|
|
18713
|
+
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}";
|
|
18685
18714
|
var KolInputRadioDefaultStyle0 = defaultStyleCss$o;
|
|
18686
18715
|
|
|
18687
18716
|
class KolInputRadio {
|
|
@@ -18705,13 +18734,12 @@ class KolInputRadio {
|
|
|
18705
18734
|
class: `kol-form-field__input--orientation-${this.state._orientation}`,
|
|
18706
18735
|
},
|
|
18707
18736
|
tooltipAlign: this._tooltipAlign,
|
|
18708
|
-
onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
18709
18737
|
alert: this.showAsAlert(),
|
|
18710
18738
|
hideLabel: false,
|
|
18711
18739
|
};
|
|
18712
18740
|
}
|
|
18713
18741
|
render() {
|
|
18714
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
18742
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: 'd0a65a6642e9adc5ac017d8d42f1e867fa2ba0f6' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
|
|
18715
18743
|
}
|
|
18716
18744
|
getOptionProps(option, id) {
|
|
18717
18745
|
const obj = {
|
|
@@ -18781,7 +18809,7 @@ class KolInputRadio {
|
|
|
18781
18809
|
};
|
|
18782
18810
|
this._accessKey = undefined;
|
|
18783
18811
|
this._disabled = false;
|
|
18784
|
-
this.
|
|
18812
|
+
this._hideMsg = false;
|
|
18785
18813
|
this._hideLabel = false;
|
|
18786
18814
|
this._hint = '';
|
|
18787
18815
|
this._id = undefined;
|
|
@@ -18799,7 +18827,7 @@ class KolInputRadio {
|
|
|
18799
18827
|
this._touched = false;
|
|
18800
18828
|
this._value = undefined;
|
|
18801
18829
|
this.state = {
|
|
18802
|
-
|
|
18830
|
+
_hideMsg: false,
|
|
18803
18831
|
_id: `id-${nonce()}`,
|
|
18804
18832
|
_label: '',
|
|
18805
18833
|
_options: [],
|
|
@@ -18823,8 +18851,8 @@ class KolInputRadio {
|
|
|
18823
18851
|
validateHideLabel(value) {
|
|
18824
18852
|
this.controller.validateHideLabel(value);
|
|
18825
18853
|
}
|
|
18826
|
-
|
|
18827
|
-
this.controller.
|
|
18854
|
+
validateHideMsg(value) {
|
|
18855
|
+
this.controller.validateHideMsg(value);
|
|
18828
18856
|
}
|
|
18829
18857
|
validateHint(value) {
|
|
18830
18858
|
this.controller.validateHint(value);
|
|
@@ -18879,7 +18907,7 @@ class KolInputRadio {
|
|
|
18879
18907
|
"_tooltipAlign": ["validateTooltipAlign"],
|
|
18880
18908
|
"_disabled": ["validateDisabled"],
|
|
18881
18909
|
"_hideLabel": ["validateHideLabel"],
|
|
18882
|
-
"
|
|
18910
|
+
"_hideMsg": ["validateHideMsg"],
|
|
18883
18911
|
"_hint": ["validateHint"],
|
|
18884
18912
|
"_id": ["validateId"],
|
|
18885
18913
|
"_label": ["validateLabel"],
|
|
@@ -18904,7 +18932,7 @@ class KolInputRadio {
|
|
|
18904
18932
|
"$members$": {
|
|
18905
18933
|
"_accessKey": [1, "_access-key"],
|
|
18906
18934
|
"_disabled": [4],
|
|
18907
|
-
"
|
|
18935
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
18908
18936
|
"_hideLabel": [4, "_hide-label"],
|
|
18909
18937
|
"_hint": [1],
|
|
18910
18938
|
"_id": [1],
|
|
@@ -18928,7 +18956,7 @@ class KolInputRadio {
|
|
|
18928
18956
|
},
|
|
18929
18957
|
"$listeners$": undefined,
|
|
18930
18958
|
"$lazyBundleId$": "-",
|
|
18931
|
-
"$attrsToReflect$": [["
|
|
18959
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
18932
18960
|
}; }
|
|
18933
18961
|
}
|
|
18934
18962
|
|
|
@@ -18968,7 +18996,7 @@ class InputRangeController extends InputIconController {
|
|
|
18968
18996
|
}
|
|
18969
18997
|
}
|
|
18970
18998
|
|
|
18971
|
-
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}";
|
|
18999
|
+
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}";
|
|
18972
19000
|
var KolInputRangeDefaultStyle0 = defaultStyleCss$n;
|
|
18973
19001
|
|
|
18974
19002
|
class KolInputRange {
|
|
@@ -19031,7 +19059,7 @@ class KolInputRange {
|
|
|
19031
19059
|
const inputsWrapperStyle = {
|
|
19032
19060
|
'--kolibri-input-range--input-number--width': `calc(${String((_a = this.state._max) !== null && _a !== void 0 ? _a : 1000).length}ch + 1.5em)`,
|
|
19033
19061
|
};
|
|
19034
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
19062
|
+
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 }))));
|
|
19035
19063
|
}
|
|
19036
19064
|
constructor(hostRef) {
|
|
19037
19065
|
registerInstance(this, hostRef);
|
|
@@ -19066,7 +19094,7 @@ class KolInputRange {
|
|
|
19066
19094
|
this._accessKey = undefined;
|
|
19067
19095
|
this._autoComplete = undefined;
|
|
19068
19096
|
this._disabled = false;
|
|
19069
|
-
this.
|
|
19097
|
+
this._hideMsg = false;
|
|
19070
19098
|
this._hideLabel = false;
|
|
19071
19099
|
this._hint = '';
|
|
19072
19100
|
this._icons = undefined;
|
|
@@ -19087,7 +19115,7 @@ class KolInputRange {
|
|
|
19087
19115
|
this._value = undefined;
|
|
19088
19116
|
this.state = {
|
|
19089
19117
|
_autoComplete: 'off',
|
|
19090
|
-
|
|
19118
|
+
_hideMsg: false,
|
|
19091
19119
|
_id: `id-${nonce()}`,
|
|
19092
19120
|
_label: '',
|
|
19093
19121
|
_suggestions: [],
|
|
@@ -19107,8 +19135,8 @@ class KolInputRange {
|
|
|
19107
19135
|
validateDisabled(value) {
|
|
19108
19136
|
this.controller.validateDisabled(value);
|
|
19109
19137
|
}
|
|
19110
|
-
|
|
19111
|
-
this.controller.
|
|
19138
|
+
validateHideMsg(value) {
|
|
19139
|
+
this.controller.validateHideMsg(value);
|
|
19112
19140
|
}
|
|
19113
19141
|
validateHideLabel(value) {
|
|
19114
19142
|
this.controller.validateHideLabel(value);
|
|
@@ -19171,7 +19199,7 @@ class KolInputRange {
|
|
|
19171
19199
|
"_accessKey": ["validateAccessKey"],
|
|
19172
19200
|
"_autoComplete": ["validateAutoComplete"],
|
|
19173
19201
|
"_disabled": ["validateDisabled"],
|
|
19174
|
-
"
|
|
19202
|
+
"_hideMsg": ["validateHideMsg"],
|
|
19175
19203
|
"_hideLabel": ["validateHideLabel"],
|
|
19176
19204
|
"_hint": ["validateHint"],
|
|
19177
19205
|
"_icons": ["validateIcons"],
|
|
@@ -19200,7 +19228,7 @@ class KolInputRange {
|
|
|
19200
19228
|
"_accessKey": [1, "_access-key"],
|
|
19201
19229
|
"_autoComplete": [1, "_auto-complete"],
|
|
19202
19230
|
"_disabled": [4],
|
|
19203
|
-
"
|
|
19231
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
19204
19232
|
"_hideLabel": [4, "_hide-label"],
|
|
19205
19233
|
"_hint": [1],
|
|
19206
19234
|
"_icons": [1],
|
|
@@ -19226,11 +19254,11 @@ class KolInputRange {
|
|
|
19226
19254
|
},
|
|
19227
19255
|
"$listeners$": undefined,
|
|
19228
19256
|
"$lazyBundleId$": "-",
|
|
19229
|
-
"$attrsToReflect$": [["
|
|
19257
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
19230
19258
|
}; }
|
|
19231
19259
|
}
|
|
19232
19260
|
|
|
19233
|
-
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}";
|
|
19261
|
+
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}";
|
|
19234
19262
|
var KolInputTextDefaultStyle0 = defaultStyleCss$m;
|
|
19235
19263
|
|
|
19236
19264
|
class KolInputText {
|
|
@@ -19257,7 +19285,7 @@ class KolInputText {
|
|
|
19257
19285
|
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 });
|
|
19258
19286
|
}
|
|
19259
19287
|
render() {
|
|
19260
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
19288
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '7e0045c8690d06ab4709e09e137741cca78c92b7' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '1038617b73ed6ac787797378cef828d7c89b732d', state: this.state }, hAsync(KolInputStateWrapperFc, Object.assign({ key: 'bc1386bd9b425a2dc5d91e5823d1c9c72a0dfdf1' }, this.getInputProps())))));
|
|
19261
19289
|
}
|
|
19262
19290
|
constructor(hostRef) {
|
|
19263
19291
|
registerInstance(this, hostRef);
|
|
@@ -19299,7 +19327,7 @@ class KolInputText {
|
|
|
19299
19327
|
this._autoComplete = undefined;
|
|
19300
19328
|
this._disabled = false;
|
|
19301
19329
|
this._hasCounter = false;
|
|
19302
|
-
this.
|
|
19330
|
+
this._hideMsg = false;
|
|
19303
19331
|
this._hideLabel = false;
|
|
19304
19332
|
this._hint = '';
|
|
19305
19333
|
this._icons = undefined;
|
|
@@ -19327,7 +19355,7 @@ class KolInputText {
|
|
|
19327
19355
|
_autoComplete: 'off',
|
|
19328
19356
|
_currentLength: 0,
|
|
19329
19357
|
_hasValue: false,
|
|
19330
|
-
|
|
19358
|
+
_hideMsg: false,
|
|
19331
19359
|
_id: `id-${nonce()}`,
|
|
19332
19360
|
_label: '',
|
|
19333
19361
|
_suggestions: [],
|
|
@@ -19351,8 +19379,8 @@ class KolInputText {
|
|
|
19351
19379
|
validateHasCounter(value) {
|
|
19352
19380
|
this.controller.validateHasCounter(value);
|
|
19353
19381
|
}
|
|
19354
|
-
|
|
19355
|
-
this.controller.
|
|
19382
|
+
validateHideMsg(value) {
|
|
19383
|
+
this.controller.validateHideMsg(value);
|
|
19356
19384
|
}
|
|
19357
19385
|
validateHideLabel(value) {
|
|
19358
19386
|
this.controller.validateHideLabel(value);
|
|
@@ -19435,7 +19463,7 @@ class KolInputText {
|
|
|
19435
19463
|
"_autoComplete": ["validateAutoComplete"],
|
|
19436
19464
|
"_disabled": ["validateDisabled"],
|
|
19437
19465
|
"_hasCounter": ["validateHasCounter"],
|
|
19438
|
-
"
|
|
19466
|
+
"_hideMsg": ["validateHideMsg"],
|
|
19439
19467
|
"_hideLabel": ["validateHideLabel"],
|
|
19440
19468
|
"_hint": ["validateHint"],
|
|
19441
19469
|
"_icons": ["validateIcons"],
|
|
@@ -19470,7 +19498,7 @@ class KolInputText {
|
|
|
19470
19498
|
"_autoComplete": [1, "_auto-complete"],
|
|
19471
19499
|
"_disabled": [4],
|
|
19472
19500
|
"_hasCounter": [4, "_has-counter"],
|
|
19473
|
-
"
|
|
19501
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
19474
19502
|
"_hideLabel": [4, "_hide-label"],
|
|
19475
19503
|
"_hint": [1],
|
|
19476
19504
|
"_icons": [1],
|
|
@@ -19501,7 +19529,7 @@ class KolInputText {
|
|
|
19501
19529
|
},
|
|
19502
19530
|
"$listeners$": undefined,
|
|
19503
19531
|
"$lazyBundleId$": "-",
|
|
19504
|
-
"$attrsToReflect$": [["
|
|
19532
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
19505
19533
|
}; }
|
|
19506
19534
|
}
|
|
19507
19535
|
|
|
@@ -19517,7 +19545,7 @@ class KolInputWc {
|
|
|
19517
19545
|
this._currentLength = undefined;
|
|
19518
19546
|
this._disabled = false;
|
|
19519
19547
|
this._hasCounter = false;
|
|
19520
|
-
this.
|
|
19548
|
+
this._hideMsg = false;
|
|
19521
19549
|
this._hideLabel = false;
|
|
19522
19550
|
this._hint = '';
|
|
19523
19551
|
this._icons = undefined;
|
|
@@ -19548,18 +19576,18 @@ class KolInputWc {
|
|
|
19548
19576
|
const hasExpertSlot = showExpertSlot(this._label);
|
|
19549
19577
|
const hasHint = typeof this._hint === 'string' && this._hint.length > 0;
|
|
19550
19578
|
const useTooltipInsteadOfLabel = !hasExpertSlot && this._hideLabel;
|
|
19551
|
-
return (hAsync(Host, { key: '
|
|
19579
|
+
return (hAsync(Host, { key: 'cfd9957fb1257b093d42a0066c080d282f33fe9e', class: clsx('kol-input', this.getModifierClassNameByMsgType(showMsg), {
|
|
19552
19580
|
disabled: this._disabled === true,
|
|
19553
19581
|
[((_d = this._msg) === null || _d === void 0 ? void 0 : _d._type) || 'error']: showMsg === true,
|
|
19554
19582
|
'read-only': this._readOnly === true,
|
|
19555
19583
|
required: this._required === true,
|
|
19556
19584
|
touched: this._touched === true,
|
|
19557
|
-
'hidden-
|
|
19558
|
-
}) }, hAsync("label", { key: '
|
|
19585
|
+
'hidden-msg': this._hideMsg === true,
|
|
19586
|
+
}) }, 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: {
|
|
19559
19587
|
input: true,
|
|
19560
19588
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
19561
19589
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
19562
|
-
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '
|
|
19590
|
+
} }, ((_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'))))));
|
|
19563
19591
|
}
|
|
19564
19592
|
getModifierClassNameByMsgType(showMsg) {
|
|
19565
19593
|
var _a, _b;
|
|
@@ -19583,7 +19611,7 @@ class KolInputWc {
|
|
|
19583
19611
|
"_currentLength": [2, "_current-length"],
|
|
19584
19612
|
"_disabled": [4],
|
|
19585
19613
|
"_hasCounter": [4, "_has-counter"],
|
|
19586
|
-
"
|
|
19614
|
+
"_hideMsg": [4, "_hide-msg"],
|
|
19587
19615
|
"_hideLabel": [4, "_hide-label"],
|
|
19588
19616
|
"_hint": [1],
|
|
19589
19617
|
"_icons": [16],
|
|
@@ -20043,15 +20071,26 @@ class KolLinkWc {
|
|
|
20043
20071
|
}; }
|
|
20044
20072
|
}
|
|
20045
20073
|
|
|
20046
|
-
const
|
|
20074
|
+
const ModalVariantPropTypeOptions = ['blank', 'card'];
|
|
20075
|
+
const validateModalVariant = (component, value) => {
|
|
20076
|
+
watchValidator(component, '_variant', (value) => typeof value === 'string' && ModalVariantPropTypeOptions.includes(value), new Set(ModalVariantPropTypeOptions), value);
|
|
20077
|
+
};
|
|
20078
|
+
|
|
20079
|
+
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}";
|
|
20047
20080
|
var KolModalDefaultStyle0 = defaultStyleCss$i;
|
|
20048
20081
|
|
|
20049
20082
|
class KolModal {
|
|
20050
20083
|
constructor(hostRef) {
|
|
20051
20084
|
registerInstance(this, hostRef);
|
|
20085
|
+
this.on = {
|
|
20086
|
+
onClick: async () => {
|
|
20087
|
+
await this.closeModal();
|
|
20088
|
+
},
|
|
20089
|
+
};
|
|
20052
20090
|
this._label = undefined;
|
|
20053
20091
|
this._on = undefined;
|
|
20054
20092
|
this._width = '100%';
|
|
20093
|
+
this._variant = 'blank';
|
|
20055
20094
|
this.state = {
|
|
20056
20095
|
_label: '',
|
|
20057
20096
|
_width: '100%',
|
|
@@ -20076,11 +20115,15 @@ class KolModal {
|
|
|
20076
20115
|
(_b = (_a = this.refDialog) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
20077
20116
|
}
|
|
20078
20117
|
render() {
|
|
20079
|
-
return (hAsync("dialog", { key: '
|
|
20118
|
+
return (hAsync("dialog", { key: 'c5b2a309c6f2439231206b400deb6dfb7f09e233', class: clsx('kol-modal', { 'kol-modal__card': this.state._variant === 'card' }), ref: (el) => {
|
|
20080
20119
|
this.refDialog = el;
|
|
20081
20120
|
}, style: {
|
|
20082
20121
|
width: this.state._width,
|
|
20083
|
-
}, "aria-label": this.state._label, onClose: this.handleNativeCloseEvent.bind(this) }, hAsync("div", { key: '
|
|
20122
|
+
}, "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: {
|
|
20123
|
+
left: {
|
|
20124
|
+
icon: 'codicon codicon-close',
|
|
20125
|
+
},
|
|
20126
|
+
}, _label: translate('kol-close'), _on: this.on, _tooltipAlign: "left" }))));
|
|
20084
20127
|
}
|
|
20085
20128
|
validateLabel(value) {
|
|
20086
20129
|
validateLabel(this, value, {
|
|
@@ -20101,16 +20144,21 @@ class KolModal {
|
|
|
20101
20144
|
defaultValue: '100%',
|
|
20102
20145
|
});
|
|
20103
20146
|
}
|
|
20147
|
+
validateVariant(value) {
|
|
20148
|
+
validateModalVariant(this, value);
|
|
20149
|
+
}
|
|
20104
20150
|
componentWillLoad() {
|
|
20105
20151
|
this.validateLabel(this._label);
|
|
20106
20152
|
this.validateOn(this._on);
|
|
20107
20153
|
this.validateWidth(this._width);
|
|
20154
|
+
this.validateVariant(this._variant);
|
|
20108
20155
|
}
|
|
20109
20156
|
get host() { return getElement(this); }
|
|
20110
20157
|
static get watchers() { return {
|
|
20111
20158
|
"_label": ["validateLabel"],
|
|
20112
20159
|
"_on": ["validateOn"],
|
|
20113
|
-
"_width": ["validateWidth"]
|
|
20160
|
+
"_width": ["validateWidth"],
|
|
20161
|
+
"_variant": ["validateVariant"]
|
|
20114
20162
|
}; }
|
|
20115
20163
|
static get style() { return {
|
|
20116
20164
|
default: KolModalDefaultStyle0
|
|
@@ -20122,6 +20170,7 @@ class KolModal {
|
|
|
20122
20170
|
"_label": [1],
|
|
20123
20171
|
"_on": [16],
|
|
20124
20172
|
"_width": [1],
|
|
20173
|
+
"_variant": [1],
|
|
20125
20174
|
"state": [32],
|
|
20126
20175
|
"openModal": [64],
|
|
20127
20176
|
"closeModal": [64]
|
|
@@ -20247,9 +20296,9 @@ class KolNav {
|
|
|
20247
20296
|
const collapsible = this.state._collapsible === true;
|
|
20248
20297
|
const hideLabel = this.state._hideLabel === true;
|
|
20249
20298
|
const orientation = this.state._orientation;
|
|
20250
|
-
return (hAsync("div", { key: '
|
|
20299
|
+
return (hAsync("div", { key: 'cfbe64daec9896d7ff1c5f56fd867e2adab579d5', class: clsx('kol-nav', `kol-nav--${orientation}`, {
|
|
20251
20300
|
'kol-nav--is-compact': this.state._hideLabel,
|
|
20252
|
-
}) }, hAsync("nav", { key: '
|
|
20301
|
+
}) }, 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: {
|
|
20253
20302
|
onClick: () => {
|
|
20254
20303
|
this.state = Object.assign(Object.assign({}, this.state), { _hideLabel: this.state._hideLabel === false });
|
|
20255
20304
|
},
|
|
@@ -22858,7 +22907,7 @@ class KolPopover {
|
|
|
22858
22907
|
});
|
|
22859
22908
|
}
|
|
22860
22909
|
render() {
|
|
22861
|
-
return (hAsync(Host, { key: '
|
|
22910
|
+
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' }))));
|
|
22862
22911
|
}
|
|
22863
22912
|
validateAlign(value) {
|
|
22864
22913
|
validateAlign(this, value);
|
|
@@ -22938,7 +22987,7 @@ class KolProcess {
|
|
|
22938
22987
|
};
|
|
22939
22988
|
}
|
|
22940
22989
|
render() {
|
|
22941
|
-
return (hAsync("div", { key: '
|
|
22990
|
+
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)));
|
|
22942
22991
|
}
|
|
22943
22992
|
validateLabel(value) {
|
|
22944
22993
|
validateLabel(this, value);
|
|
@@ -23047,7 +23096,7 @@ class KolQuote {
|
|
|
23047
23096
|
}
|
|
23048
23097
|
render() {
|
|
23049
23098
|
const hasExpertSlot = showExpertSlot(this.state._quote);
|
|
23050
|
-
return (hAsync("figure", { key: '
|
|
23099
|
+
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" }))))));
|
|
23051
23100
|
}
|
|
23052
23101
|
static get watchers() { return {
|
|
23053
23102
|
"_label": ["validateLabel"],
|
|
@@ -23232,7 +23281,7 @@ const SelectStateWrapper = (_a) => {
|
|
|
23232
23281
|
};
|
|
23233
23282
|
var KolSelectStateWrapperFc = SelectStateWrapper;
|
|
23234
23283
|
|
|
23235
|
-
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}";
|
|
23284
|
+
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}";
|
|
23236
23285
|
var KolSelectDefaultStyle0 = defaultStyleCss$d;
|
|
23237
23286
|
|
|
23238
23287
|
class KolSelect {
|
|
@@ -23264,13 +23313,13 @@ class KolSelect {
|
|
|
23264
23313
|
} });
|
|
23265
23314
|
}
|
|
23266
23315
|
render() {
|
|
23267
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
23316
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: 'ee17395a6e4c6739788a55963b94371d694c5170' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'b39687b04e0e072ca8558a7ae50e010cf90a654c', state: this.state }, hAsync("form", { key: '23f28fee6175c9f1cc19236dd7c24aa38e7a1515', onSubmit: (event) => {
|
|
23268
23317
|
event.preventDefault();
|
|
23269
23318
|
propagateSubmitEventToForm({
|
|
23270
23319
|
form: this.host,
|
|
23271
23320
|
ref: this.selectRef,
|
|
23272
23321
|
});
|
|
23273
|
-
} }, hAsync("input", { key: '
|
|
23322
|
+
} }, hAsync("input", { key: '38cce424bf172f0c235bf68878b6d2ac9c704ba9', type: "submit", hidden: true }), hAsync(KolSelectStateWrapperFc, Object.assign({ key: '958a3dd3848c598ecc38d2f4b3be72b75750d1d6' }, this.getSelectProps()))))));
|
|
23274
23323
|
}
|
|
23275
23324
|
constructor(hostRef) {
|
|
23276
23325
|
registerInstance(this, hostRef);
|
|
@@ -23279,7 +23328,7 @@ class KolSelect {
|
|
|
23279
23328
|
};
|
|
23280
23329
|
this._accessKey = undefined;
|
|
23281
23330
|
this._disabled = false;
|
|
23282
|
-
this.
|
|
23331
|
+
this._hideMsg = false;
|
|
23283
23332
|
this._hideLabel = false;
|
|
23284
23333
|
this._hint = '';
|
|
23285
23334
|
this._icons = undefined;
|
|
@@ -23300,7 +23349,7 @@ class KolSelect {
|
|
|
23300
23349
|
this._value = undefined;
|
|
23301
23350
|
this.state = {
|
|
23302
23351
|
_hasValue: false,
|
|
23303
|
-
|
|
23352
|
+
_hideMsg: false,
|
|
23304
23353
|
_id: `id-${nonce()}`,
|
|
23305
23354
|
_label: '',
|
|
23306
23355
|
_multiple: false,
|
|
@@ -23319,8 +23368,8 @@ class KolSelect {
|
|
|
23319
23368
|
validateDisabled(value) {
|
|
23320
23369
|
this.controller.validateDisabled(value);
|
|
23321
23370
|
}
|
|
23322
|
-
|
|
23323
|
-
this.controller.
|
|
23371
|
+
validateHideMsg(value) {
|
|
23372
|
+
this.controller.validateHideMsg(value);
|
|
23324
23373
|
}
|
|
23325
23374
|
validateHideLabel(value) {
|
|
23326
23375
|
this.controller.validateHideLabel(value);
|
|
@@ -23393,7 +23442,7 @@ class KolSelect {
|
|
|
23393
23442
|
static get watchers() { return {
|
|
23394
23443
|
"_accessKey": ["validateAccessKey"],
|
|
23395
23444
|
"_disabled": ["validateDisabled"],
|
|
23396
|
-
"
|
|
23445
|
+
"_hideMsg": ["validateHideMsg"],
|
|
23397
23446
|
"_hideLabel": ["validateHideLabel"],
|
|
23398
23447
|
"_hint": ["validateHint"],
|
|
23399
23448
|
"_icons": ["validateIcons"],
|
|
@@ -23421,7 +23470,7 @@ class KolSelect {
|
|
|
23421
23470
|
"$members$": {
|
|
23422
23471
|
"_accessKey": [1, "_access-key"],
|
|
23423
23472
|
"_disabled": [4],
|
|
23424
|
-
"
|
|
23473
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
23425
23474
|
"_hideLabel": [4, "_hide-label"],
|
|
23426
23475
|
"_hint": [1],
|
|
23427
23476
|
"_icons": [1],
|
|
@@ -23447,7 +23496,7 @@ class KolSelect {
|
|
|
23447
23496
|
},
|
|
23448
23497
|
"$listeners$": undefined,
|
|
23449
23498
|
"$lazyBundleId$": "-",
|
|
23450
|
-
"$attrsToReflect$": [["
|
|
23499
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
23451
23500
|
}; }
|
|
23452
23501
|
}
|
|
23453
23502
|
|
|
@@ -23495,7 +23544,7 @@ class SingleSelectController extends InputIconController {
|
|
|
23495
23544
|
}
|
|
23496
23545
|
}
|
|
23497
23546
|
|
|
23498
|
-
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 :
|
|
23547
|
+
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}";
|
|
23499
23548
|
var KolSingleSelectDefaultStyle0 = defaultStyleCss$c;
|
|
23500
23549
|
|
|
23501
23550
|
class KolSingleSelect {
|
|
@@ -23587,23 +23636,34 @@ class KolSingleSelect {
|
|
|
23587
23636
|
this.focusOption(index);
|
|
23588
23637
|
}
|
|
23589
23638
|
}
|
|
23590
|
-
|
|
23591
|
-
|
|
23639
|
+
getFormFieldProps() {
|
|
23640
|
+
return {
|
|
23641
|
+
state: this.state,
|
|
23642
|
+
class: 'kol-single-select',
|
|
23643
|
+
tooltipAlign: this._tooltipAlign,
|
|
23644
|
+
onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
23645
|
+
alert: this.showAsAlert(),
|
|
23646
|
+
};
|
|
23647
|
+
}
|
|
23648
|
+
getInputProps() {
|
|
23592
23649
|
const { ariaDescribedBy } = getRenderStates$1(this.state);
|
|
23593
|
-
return
|
|
23650
|
+
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) => {
|
|
23594
23651
|
this.controller.onFacade.onFocus(event);
|
|
23595
23652
|
this.inputHasFocus = true;
|
|
23596
23653
|
}, onBlur: (event) => {
|
|
23597
23654
|
this.controller.onFacade.onBlur(event);
|
|
23598
23655
|
this.inputHasFocus = false;
|
|
23599
|
-
}
|
|
23656
|
+
} });
|
|
23657
|
+
}
|
|
23658
|
+
render() {
|
|
23659
|
+
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: () => {
|
|
23600
23660
|
var _a;
|
|
23601
23661
|
this.clearSelection();
|
|
23602
23662
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23603
|
-
}, class: "single-select__delete" })), hAsync(
|
|
23663
|
+
}, 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) => {
|
|
23604
23664
|
if (el)
|
|
23605
23665
|
this.refOptions[index] = el;
|
|
23606
|
-
},
|
|
23666
|
+
}, selected: this._value === option.value, onClick: (event) => {
|
|
23607
23667
|
var _a;
|
|
23608
23668
|
this.selectOption(event, option);
|
|
23609
23669
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -23616,7 +23676,7 @@ class KolSingleSelect {
|
|
|
23616
23676
|
}, onFocus: () => {
|
|
23617
23677
|
this._focusedOptionIndex = index;
|
|
23618
23678
|
this.focusOption(index);
|
|
23619
|
-
},
|
|
23679
|
+
}, onKeyDown: (e) => {
|
|
23620
23680
|
var _a;
|
|
23621
23681
|
if (e.key === 'Enter' || e.key === 'NumpadEnter') {
|
|
23622
23682
|
this.selectOption(e, option);
|
|
@@ -23624,7 +23684,7 @@ class KolSingleSelect {
|
|
|
23624
23684
|
this.toggleListbox(e);
|
|
23625
23685
|
e.preventDefault();
|
|
23626
23686
|
}
|
|
23627
|
-
} }
|
|
23687
|
+
} })))) : (hAsync("li", { class: "kol-single-select__no-results-message" }, translate('kol-no-results-message'), " ")))))));
|
|
23628
23688
|
}
|
|
23629
23689
|
handleFocusOut() {
|
|
23630
23690
|
setTimeout(() => {
|
|
@@ -23754,7 +23814,7 @@ class KolSingleSelect {
|
|
|
23754
23814
|
this._accessKey = undefined;
|
|
23755
23815
|
this._placeholder = undefined;
|
|
23756
23816
|
this._disabled = false;
|
|
23757
|
-
this.
|
|
23817
|
+
this._hideMsg = false;
|
|
23758
23818
|
this._hideLabel = false;
|
|
23759
23819
|
this._hint = '';
|
|
23760
23820
|
this._icons = undefined;
|
|
@@ -23772,7 +23832,7 @@ class KolSingleSelect {
|
|
|
23772
23832
|
this._touched = false;
|
|
23773
23833
|
this._value = undefined;
|
|
23774
23834
|
this.state = {
|
|
23775
|
-
|
|
23835
|
+
_hideMsg: false,
|
|
23776
23836
|
_id: `id-${nonce()}`,
|
|
23777
23837
|
_label: '',
|
|
23778
23838
|
_options: [],
|
|
@@ -23792,8 +23852,8 @@ class KolSingleSelect {
|
|
|
23792
23852
|
validateDisabled(value) {
|
|
23793
23853
|
this.controller.validateDisabled(value);
|
|
23794
23854
|
}
|
|
23795
|
-
|
|
23796
|
-
this.controller.
|
|
23855
|
+
validateHideMsg(value) {
|
|
23856
|
+
this.controller.validateHideMsg(value);
|
|
23797
23857
|
}
|
|
23798
23858
|
validateHideLabel(value) {
|
|
23799
23859
|
this.controller.validateHideLabel(value);
|
|
@@ -23880,7 +23940,7 @@ class KolSingleSelect {
|
|
|
23880
23940
|
"_placeholder": ["validatePlaceholder"],
|
|
23881
23941
|
"_accessKey": ["validateAccessKey"],
|
|
23882
23942
|
"_disabled": ["validateDisabled"],
|
|
23883
|
-
"
|
|
23943
|
+
"_hideMsg": ["validateHideMsg"],
|
|
23884
23944
|
"_hideLabel": ["validateHideLabel"],
|
|
23885
23945
|
"_hint": ["validateHint"],
|
|
23886
23946
|
"_icons": ["validateIcons"],
|
|
@@ -23907,7 +23967,7 @@ class KolSingleSelect {
|
|
|
23907
23967
|
"_accessKey": [1, "_access-key"],
|
|
23908
23968
|
"_placeholder": [1],
|
|
23909
23969
|
"_disabled": [4],
|
|
23910
|
-
"
|
|
23970
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
23911
23971
|
"_hideLabel": [4, "_hide-label"],
|
|
23912
23972
|
"_hint": [1],
|
|
23913
23973
|
"_icons": [1],
|
|
@@ -23935,7 +23995,7 @@ class KolSingleSelect {
|
|
|
23935
23995
|
},
|
|
23936
23996
|
"$listeners$": [[8, "focusout", "handleFocusOut"], [8, "blur", "handleWindowBlur"], [0, "keydown", "handleKeyDown"], [1, "mousemove", "handleMouseEvent"]],
|
|
23937
23997
|
"$lazyBundleId$": "-",
|
|
23938
|
-
"$attrsToReflect$": [["
|
|
23998
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
23939
23999
|
}; }
|
|
23940
24000
|
}
|
|
23941
24001
|
|
|
@@ -23953,7 +24013,7 @@ class KolSkipNav {
|
|
|
23953
24013
|
};
|
|
23954
24014
|
}
|
|
23955
24015
|
render() {
|
|
23956
|
-
return (hAsync("nav", { key: '
|
|
24016
|
+
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) => {
|
|
23957
24017
|
return (hAsync("li", { class: "kol-skip-nav__list-item", key: index }, hAsync(KolLinkWcTag, Object.assign({}, link))));
|
|
23958
24018
|
}))));
|
|
23959
24019
|
}
|
|
@@ -24021,7 +24081,7 @@ class KolSpin {
|
|
|
24021
24081
|
};
|
|
24022
24082
|
}
|
|
24023
24083
|
render() {
|
|
24024
|
-
return (hAsync(Host, { key: '
|
|
24084
|
+
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" }))));
|
|
24025
24085
|
}
|
|
24026
24086
|
validateShow(value) {
|
|
24027
24087
|
this.showToggled = this.state._show === true && this._show === false;
|
|
@@ -24109,10 +24169,10 @@ class KolSplitButton {
|
|
|
24109
24169
|
}
|
|
24110
24170
|
render() {
|
|
24111
24171
|
const i18nDropdownLabel = 'kol-split-button-dropdown-label';
|
|
24112
|
-
return (hAsync("div", { key: '
|
|
24172
|
+
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', {
|
|
24113
24173
|
[this._variant]: this._variant !== 'custom',
|
|
24114
24174
|
[this._customClass]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,
|
|
24115
|
-
}), _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: '
|
|
24175
|
+
}), _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' }))));
|
|
24116
24176
|
}
|
|
24117
24177
|
async closePopup() {
|
|
24118
24178
|
this.handleOnClose();
|
|
@@ -24153,51 +24213,6 @@ class KolSplitButton {
|
|
|
24153
24213
|
}; }
|
|
24154
24214
|
}
|
|
24155
24215
|
|
|
24156
|
-
class KolSymbol {
|
|
24157
|
-
constructor(hostRef) {
|
|
24158
|
-
registerInstance(this, hostRef);
|
|
24159
|
-
this._label = undefined;
|
|
24160
|
-
this._symbol = undefined;
|
|
24161
|
-
this.state = {
|
|
24162
|
-
_label: translate('kol-warning'),
|
|
24163
|
-
_symbol: '',
|
|
24164
|
-
};
|
|
24165
|
-
}
|
|
24166
|
-
render() {
|
|
24167
|
-
return (hAsync(Host, { key: '2aeed4aecded7debd64cec5622e9ff5875a41fe7', class: "kol-symbol" }, hAsync("span", { key: 'f8fd7c4233896ade7b659b47ed5ea4832c839e3f', "aria-label": this.state._label, role: "term" }, this.state._symbol)));
|
|
24168
|
-
}
|
|
24169
|
-
validateLabel(value) {
|
|
24170
|
-
validateLabel(this, value, {
|
|
24171
|
-
required: true,
|
|
24172
|
-
});
|
|
24173
|
-
}
|
|
24174
|
-
validateSymbol(value) {
|
|
24175
|
-
watchString(this, '_symbol', value, {
|
|
24176
|
-
required: true,
|
|
24177
|
-
});
|
|
24178
|
-
}
|
|
24179
|
-
componentWillLoad() {
|
|
24180
|
-
this.validateLabel(this._label);
|
|
24181
|
-
this.validateSymbol(this._symbol);
|
|
24182
|
-
}
|
|
24183
|
-
static get watchers() { return {
|
|
24184
|
-
"_label": ["validateLabel"],
|
|
24185
|
-
"_symbol": ["validateSymbol"]
|
|
24186
|
-
}; }
|
|
24187
|
-
static get cmpMeta() { return {
|
|
24188
|
-
"$flags$": 0,
|
|
24189
|
-
"$tagName$": "kol-symbol",
|
|
24190
|
-
"$members$": {
|
|
24191
|
-
"_label": [1],
|
|
24192
|
-
"_symbol": [1],
|
|
24193
|
-
"state": [32]
|
|
24194
|
-
},
|
|
24195
|
-
"$listeners$": undefined,
|
|
24196
|
-
"$lazyBundleId$": "-",
|
|
24197
|
-
"$attrsToReflect$": []
|
|
24198
|
-
}; }
|
|
24199
|
-
}
|
|
24200
|
-
|
|
24201
24216
|
var Callback;
|
|
24202
24217
|
(function (Callback) {
|
|
24203
24218
|
Callback["onBlur"] = "onBlur";
|
|
@@ -24317,6 +24332,7 @@ class KolTableStateful {
|
|
|
24317
24332
|
vertical: [],
|
|
24318
24333
|
},
|
|
24319
24334
|
_label: '',
|
|
24335
|
+
_minWidth: 'auto',
|
|
24320
24336
|
_pagination: {
|
|
24321
24337
|
_page: 1,
|
|
24322
24338
|
_pageSize: 10,
|
|
@@ -24560,7 +24576,7 @@ class KolTableStateful {
|
|
|
24560
24576
|
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) })))),
|
|
24561
24577
|
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) })))),
|
|
24562
24578
|
};
|
|
24563
|
-
return (hAsync(Host, { key: '
|
|
24579
|
+
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: {
|
|
24564
24580
|
onSort: (_, payload) => {
|
|
24565
24581
|
this.handleSort(payload);
|
|
24566
24582
|
},
|
|
@@ -24623,7 +24639,7 @@ class KolTableStateless$1 {
|
|
|
24623
24639
|
this._selection = undefined;
|
|
24624
24640
|
}
|
|
24625
24641
|
render() {
|
|
24626
|
-
return (hAsync(KolTableStatelessWcTag, { key: '
|
|
24642
|
+
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 }));
|
|
24627
24643
|
}
|
|
24628
24644
|
static get style() { return {
|
|
24629
24645
|
default: KolTableStatelessDefaultStyle0
|
|
@@ -24646,6 +24662,11 @@ class KolTableStateless$1 {
|
|
|
24646
24662
|
}; }
|
|
24647
24663
|
}
|
|
24648
24664
|
|
|
24665
|
+
const HEADER_CELL_WIDTH_VALIDATOR = /^\d+(\.\d+)?([a-z]+|%)?$/;
|
|
24666
|
+
const validateMinWidth = (component, value, options) => {
|
|
24667
|
+
watchValidator(component, '_minWidth', (v) => typeof v === 'string' && HEADER_CELL_WIDTH_VALIDATOR.test(v), new Set(['String', '/^\\d+(\\.\\d+)?([a-z]+|%)?$/']), value, options);
|
|
24668
|
+
};
|
|
24669
|
+
|
|
24649
24670
|
class KolTableStateless {
|
|
24650
24671
|
constructor(hostRef) {
|
|
24651
24672
|
registerInstance(this, hostRef);
|
|
@@ -24670,7 +24691,7 @@ class KolTableStateless {
|
|
|
24670
24691
|
const dataKey = this.getDataKey(cell.data);
|
|
24671
24692
|
key = dataKey ? `${dataKey}-${this.horizontal ? colIndex : rowIndex}` : key;
|
|
24672
24693
|
}
|
|
24673
|
-
if (cell.
|
|
24694
|
+
if (cell.headerCell) {
|
|
24674
24695
|
return this.renderHeadingCell(cell, rowIndex, colIndex, isVertical);
|
|
24675
24696
|
}
|
|
24676
24697
|
else {
|
|
@@ -24688,11 +24709,12 @@ class KolTableStateless {
|
|
|
24688
24709
|
};
|
|
24689
24710
|
this.state = {
|
|
24690
24711
|
_data: [],
|
|
24691
|
-
_label: '',
|
|
24692
24712
|
_headerCells: {
|
|
24693
24713
|
horizontal: [],
|
|
24694
24714
|
vertical: [],
|
|
24695
24715
|
},
|
|
24716
|
+
_label: '',
|
|
24717
|
+
_minWidth: 'auto',
|
|
24696
24718
|
};
|
|
24697
24719
|
this.tableDivElementHasScrollbar = false;
|
|
24698
24720
|
this._data = undefined;
|
|
@@ -24722,9 +24744,7 @@ class KolTableStateless {
|
|
|
24722
24744
|
});
|
|
24723
24745
|
}
|
|
24724
24746
|
validateMinWidth(value) {
|
|
24725
|
-
|
|
24726
|
-
defaultValue: undefined,
|
|
24727
|
-
});
|
|
24747
|
+
validateMinWidth(this, value);
|
|
24728
24748
|
}
|
|
24729
24749
|
validateOn(value) {
|
|
24730
24750
|
validateTableCallbacks(this, value);
|
|
@@ -24879,7 +24899,7 @@ class KolTableStateless {
|
|
|
24879
24899
|
if (rowsTotal <= i) {
|
|
24880
24900
|
const rows = headerCells[i - rowsTotal + rowCount[index]];
|
|
24881
24901
|
if (typeof rows === 'object') {
|
|
24882
|
-
dataRow.push(Object.assign(Object.assign({}, rows), {
|
|
24902
|
+
dataRow.push(Object.assign(Object.assign({}, rows), { headerCell: true, data: {} }));
|
|
24883
24903
|
let rowSpan = 1;
|
|
24884
24904
|
if (typeof rows.rowSpan === 'number' && rows.rowSpan > 1) {
|
|
24885
24905
|
rowSpan = rows.rowSpan;
|
|
@@ -25085,29 +25105,12 @@ class KolTableStateless {
|
|
|
25085
25105
|
render() {
|
|
25086
25106
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
25087
25107
|
this.checkboxRefs = [];
|
|
25088
|
-
return (hAsync("div", { key: '
|
|
25108
|
+
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: {
|
|
25089
25109
|
minWidth: this.state._minWidth,
|
|
25090
|
-
} }, hAsync("div", { key: '
|
|
25091
|
-
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) &&
|
|
25092
|
-
cols.map((cell, colIndex) => {
|
|
25093
|
-
if (cell.asTd === true) {
|
|
25094
|
-
return (hAsync("td", { key: `thead-${rowIndex}-${colIndex}-${cell.label}`, class: clsx({
|
|
25095
|
-
[`kol-table__head--${cell.textAlign}`]: typeof cell.textAlign === 'string' && cell.textAlign.length > 0,
|
|
25096
|
-
}), colSpan: cell.colSpan, rowSpan: cell.rowSpan, style: {
|
|
25097
|
-
textAlign: cell.textAlign,
|
|
25098
|
-
width: cell.width,
|
|
25099
|
-
}, ref: typeof cell.render === 'function'
|
|
25100
|
-
? (el) => {
|
|
25101
|
-
this.cellRender(cell, el);
|
|
25102
|
-
}
|
|
25103
|
-
: undefined }, typeof cell.render !== 'function' ? cell.label : ''));
|
|
25104
|
-
}
|
|
25105
|
-
else {
|
|
25106
|
-
return this.renderHeadingCell(cell, rowIndex, colIndex, false);
|
|
25107
|
-
}
|
|
25108
|
-
})))),
|
|
25110
|
+
} }, 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" }, [
|
|
25111
|
+
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))))),
|
|
25109
25112
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
25110
|
-
])), hAsync("tbody", { key: '
|
|
25113
|
+
])), hAsync("tbody", { key: '945142452f85ef86c130b3cc7863a2532eb40f6f', class: "kol-table__body" }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot())));
|
|
25111
25114
|
}
|
|
25112
25115
|
get host() { return getElement(this); }
|
|
25113
25116
|
static get watchers() { return {
|
|
@@ -25328,9 +25331,9 @@ class KolTabs {
|
|
|
25328
25331
|
} }))));
|
|
25329
25332
|
}
|
|
25330
25333
|
render() {
|
|
25331
|
-
return (hAsync("div", { key: '
|
|
25334
|
+
return (hAsync("div", { key: '592fb62ac9fe48dbf63d7dfef9ce4e75406a2acf', ref: (el) => {
|
|
25332
25335
|
this.tabPanelsElement = el;
|
|
25333
|
-
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '
|
|
25336
|
+
}, class: clsx('kol-tabs', `kol-tabs--align-${this.state._align}`) }, this.renderButtonGroup(), hAsync("div", { key: '5102f215e596aabaa44212a86ca29b0224d58bf5', class: "kol-tabs__content", ref: this.catchTabPanelHost })));
|
|
25334
25337
|
}
|
|
25335
25338
|
validateAlign(value) {
|
|
25336
25339
|
validateAlign(this, value);
|
|
@@ -25557,7 +25560,7 @@ class TextareaController extends InputIconController {
|
|
|
25557
25560
|
}
|
|
25558
25561
|
}
|
|
25559
25562
|
|
|
25560
|
-
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}";
|
|
25563
|
+
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}";
|
|
25561
25564
|
var KolTextareaDefaultStyle0 = defaultStyleCss$5;
|
|
25562
25565
|
|
|
25563
25566
|
const increaseTextareaHeight = (el) => {
|
|
@@ -25602,7 +25605,7 @@ class KolTextarea {
|
|
|
25602
25605
|
} });
|
|
25603
25606
|
}
|
|
25604
25607
|
render() {
|
|
25605
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '
|
|
25608
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '872d9e86581bcaa2f890bc1922f51e150e719dcc' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: 'd606938ceeb96ddd460e0da945a41de58201ed8a', state: this.state }, hAsync(KolTextAreaStateWrapperFc, Object.assign({ key: 'e1fff4989bfb2c73e5b33ee6c81be446de2b1994' }, this.getTextAreaProps())))));
|
|
25606
25609
|
}
|
|
25607
25610
|
constructor(hostRef) {
|
|
25608
25611
|
registerInstance(this, hostRef);
|
|
@@ -25624,7 +25627,7 @@ class KolTextarea {
|
|
|
25624
25627
|
this._adjustHeight = false;
|
|
25625
25628
|
this._disabled = false;
|
|
25626
25629
|
this._hasCounter = false;
|
|
25627
|
-
this.
|
|
25630
|
+
this._hideMsg = false;
|
|
25628
25631
|
this._hideLabel = false;
|
|
25629
25632
|
this._hint = '';
|
|
25630
25633
|
this._icons = undefined;
|
|
@@ -25650,7 +25653,7 @@ class KolTextarea {
|
|
|
25650
25653
|
_adjustHeight: false,
|
|
25651
25654
|
_currentLength: 0,
|
|
25652
25655
|
_hasValue: false,
|
|
25653
|
-
|
|
25656
|
+
_hideMsg: false,
|
|
25654
25657
|
_id: `id-${nonce()}`,
|
|
25655
25658
|
_label: '',
|
|
25656
25659
|
_resize: 'vertical',
|
|
@@ -25673,8 +25676,8 @@ class KolTextarea {
|
|
|
25673
25676
|
validateHasCounter(value) {
|
|
25674
25677
|
this.controller.validateHasCounter(value);
|
|
25675
25678
|
}
|
|
25676
|
-
|
|
25677
|
-
this.controller.
|
|
25679
|
+
validateHideMsg(value) {
|
|
25680
|
+
this.controller.validateHideMsg(value);
|
|
25678
25681
|
}
|
|
25679
25682
|
validateHideLabel(value) {
|
|
25680
25683
|
this.controller.validateHideLabel(value);
|
|
@@ -25761,7 +25764,7 @@ class KolTextarea {
|
|
|
25761
25764
|
"_adjustHeight": ["validateAdjustHeight"],
|
|
25762
25765
|
"_disabled": ["validateDisabled"],
|
|
25763
25766
|
"_hasCounter": ["validateHasCounter"],
|
|
25764
|
-
"
|
|
25767
|
+
"_hideMsg": ["validateHideMsg"],
|
|
25765
25768
|
"_hideLabel": ["validateHideLabel"],
|
|
25766
25769
|
"_hint": ["validateHint"],
|
|
25767
25770
|
"_icons": ["validateIcons"],
|
|
@@ -25794,7 +25797,7 @@ class KolTextarea {
|
|
|
25794
25797
|
"_adjustHeight": [4, "_adjust-height"],
|
|
25795
25798
|
"_disabled": [4],
|
|
25796
25799
|
"_hasCounter": [4, "_has-counter"],
|
|
25797
|
-
"
|
|
25800
|
+
"_hideMsg": [1540, "_hide-msg"],
|
|
25798
25801
|
"_hideLabel": [4, "_hide-label"],
|
|
25799
25802
|
"_hint": [1],
|
|
25800
25803
|
"_icons": [16],
|
|
@@ -25823,7 +25826,7 @@ class KolTextarea {
|
|
|
25823
25826
|
},
|
|
25824
25827
|
"$listeners$": undefined,
|
|
25825
25828
|
"$lazyBundleId$": "-",
|
|
25826
|
-
"$attrsToReflect$": [["
|
|
25829
|
+
"$attrsToReflect$": [["_hideMsg", "_hide-msg"], ["_touched", "_touched"], ["_value", "_value"]]
|
|
25827
25830
|
}; }
|
|
25828
25831
|
}
|
|
25829
25832
|
|
|
@@ -25884,7 +25887,7 @@ class KolToastContainer {
|
|
|
25884
25887
|
}
|
|
25885
25888
|
}
|
|
25886
25889
|
render() {
|
|
25887
|
-
return (hAsync(Host, { key: '
|
|
25890
|
+
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: {
|
|
25888
25891
|
onClick: () => {
|
|
25889
25892
|
void this.closeAll();
|
|
25890
25893
|
},
|
|
@@ -25935,7 +25938,7 @@ class KolToolbar {
|
|
|
25935
25938
|
this._items = undefined;
|
|
25936
25939
|
}
|
|
25937
25940
|
render() {
|
|
25938
|
-
return (hAsync("div", { key: '
|
|
25941
|
+
return (hAsync("div", { key: '303cfe01af1a3776d1a3161bfd6253449c4101c1', class: "kol-toolbar", role: "toolbar", "aria-label": this.state._label }, this.state._items.map(this.renderItem)));
|
|
25939
25942
|
}
|
|
25940
25943
|
validateLabel(value) {
|
|
25941
25944
|
validateLabel(this, value);
|
|
@@ -26133,7 +26136,7 @@ class KolTooltipWc {
|
|
|
26133
26136
|
this.showOrHideTooltip();
|
|
26134
26137
|
}
|
|
26135
26138
|
render() {
|
|
26136
|
-
return (hAsync(Host, { key: '
|
|
26139
|
+
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 })))));
|
|
26137
26140
|
}
|
|
26138
26141
|
validateBadgeText(value) {
|
|
26139
26142
|
validateBadgeText(this, value);
|
|
@@ -26211,7 +26214,7 @@ class KolTree {
|
|
|
26211
26214
|
this._label = undefined;
|
|
26212
26215
|
}
|
|
26213
26216
|
render() {
|
|
26214
|
-
return (hAsync(KolTreeWcTag, { key: '
|
|
26217
|
+
return (hAsync(KolTreeWcTag, { key: '69fcda89930476d36e84516cc64cc7eebf1094db', _label: this._label }, hAsync("slot", { key: '5259ea6f1eb1fb6f3ed8b8a64e7a442f27e4abce' })));
|
|
26215
26218
|
}
|
|
26216
26219
|
static get style() { return {
|
|
26217
26220
|
default: KolTreeDefaultStyle0
|
|
@@ -26259,7 +26262,7 @@ class KolTreeItem {
|
|
|
26259
26262
|
return (_b = (await ((_a = this.element) === null || _a === void 0 ? void 0 : _a.isOpen()))) !== null && _b !== void 0 ? _b : false;
|
|
26260
26263
|
}
|
|
26261
26264
|
render() {
|
|
26262
|
-
return (hAsync(KolTreeItemWcTag, { key: '
|
|
26265
|
+
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' })));
|
|
26263
26266
|
}
|
|
26264
26267
|
static get style() { return {
|
|
26265
26268
|
default: KolTreeItemDefaultStyle0
|
|
@@ -26302,12 +26305,12 @@ class KolTreeItemWc {
|
|
|
26302
26305
|
}
|
|
26303
26306
|
render() {
|
|
26304
26307
|
const { _href, _active, _hasChildren, _open, _label } = this.state;
|
|
26305
|
-
return (hAsync(Host, { key: '
|
|
26308
|
+
return (hAsync(Host, { key: 'e8cebee52ed0f115c3aa30e82e2e3ccf5d09e626', onSlotchange: this.handleSlotchange.bind(this) }, hAsync("li", { key: 'c4b1d56ae69f55ca57ad8d863df02fe0d7ff4f00', class: "kol-tree-item", style: {
|
|
26306
26309
|
'--level': `${this.level}`,
|
|
26307
|
-
} }, hAsync(KolLinkWcTag, { key: '
|
|
26310
|
+
} }, hAsync(KolLinkWcTag, { key: '8e87e00dae2d0e6dcad5602e28b5642bc31702f5', class: clsx('kol-tree-item__link', {
|
|
26308
26311
|
'kol-tree-item__link--first-level': this.level === 0,
|
|
26309
26312
|
'kol-tree-item__link--active': _active,
|
|
26310
|
-
}), _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: '
|
|
26313
|
+
}), _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' })))));
|
|
26311
26314
|
}
|
|
26312
26315
|
validateActive(value) {
|
|
26313
26316
|
validateActive(this, value || false);
|
|
@@ -26412,7 +26415,7 @@ class KolTreeWc {
|
|
|
26412
26415
|
validateLabel(this, value);
|
|
26413
26416
|
}
|
|
26414
26417
|
render() {
|
|
26415
|
-
return (hAsync(Host, { key: '
|
|
26418
|
+
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' })))));
|
|
26416
26419
|
}
|
|
26417
26420
|
static isTreeItem(element) {
|
|
26418
26421
|
return (element === null || element === void 0 ? void 0 : element.tagName) === KolTreeItemTag.toUpperCase();
|
|
@@ -26607,7 +26610,7 @@ class KolVersion {
|
|
|
26607
26610
|
};
|
|
26608
26611
|
}
|
|
26609
26612
|
render() {
|
|
26610
|
-
return (hAsync(Host, { key: '
|
|
26613
|
+
return (hAsync(Host, { key: 'd243221867a53ea02e895c0ce390bfea16f7ec4c', class: "kol-version" }, hAsync(KolBadgeTag, { key: '7cf5abc0ad77a88aa4404efbe769b860041040fa', _color: "#bec5c9", _icons: {
|
|
26611
26614
|
left: { icon: 'codicon codicon-versions', label: translate('kol-version') },
|
|
26612
26615
|
}, _label: this.state._label })));
|
|
26613
26616
|
}
|
|
@@ -26698,7 +26701,6 @@ registerComponents([
|
|
|
26698
26701
|
KolSkipNav,
|
|
26699
26702
|
KolSpin,
|
|
26700
26703
|
KolSplitButton,
|
|
26701
|
-
KolSymbol,
|
|
26702
26704
|
KolTableStateful,
|
|
26703
26705
|
KolTableStateless$1,
|
|
26704
26706
|
KolTableStateless,
|