@public-ui/hydrate 2.2.1-daf78eefb286eb2b5af07293e65a52004723eadc.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +161 -108
- package/dist/index.mjs +161 -108
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2654,9 +2654,9 @@ var loglevel = {exports: {}};
|
|
|
2654
2654
|
}));
|
|
2655
2655
|
}(loglevel));
|
|
2656
2656
|
|
|
2657
|
-
var
|
|
2657
|
+
var m = loglevel.exports;
|
|
2658
2658
|
|
|
2659
|
-
const
|
|
2659
|
+
const H=new Map,M=[],Y=new Map,o$1={A11yUi:{CSS_STYLE_CACHE:H,HYDRATED_HISTORY:M,STYLING_TASK_QUEUE:Y,Themes:{}}};let g=!1;const I=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,O=e=>typeof e=="string"&&I.test(e),p=e=>{if(O(e)===!1)throw new Error(`[Theming] The theme identifier "${typeof e=="string"?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},$=(e,t,s,n)=>T(e,t,s,n),T=(e,t,s,n)=>{n=n??{},n.append=n.append??!1,p(e),g===!1&&(g=!0,m.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.
|
|
2660
2660
|
|
|
2661
2661
|
import { register } from 'adopted-style-sheets';
|
|
2662
2662
|
import { defineCustomElements } from '...';
|
|
@@ -2666,7 +2666,7 @@ const Y=new Map,I=[],O=new Map,o$1={A11yUi:{CSS_STYLE_CACHE:Y,HYDRATED_HISTORY:I
|
|
|
2666
2666
|
.then(() => {
|
|
2667
2667
|
// run your app or website
|
|
2668
2668
|
})
|
|
2669
|
-
.catch(console.warn);`)),(typeof o$1.A11yUi.Themes[e]!="object"||o$1.A11yUi.Themes[e]===null)&&(o$1.A11yUi.Themes[e]={})
|
|
2669
|
+
.catch(console.warn);`)),(typeof o$1.A11yUi.Themes[e]!="object"||o$1.A11yUi.Themes[e]===null)&&(o$1.A11yUi.Themes[e]={}),n.append&&typeof o$1.A11yUi.Themes[e][t]=="string"?o$1.A11yUi.Themes[e][t]+=s:o$1.A11yUi.Themes[e][t]=s;},k=(e,t,s,n)=>d(e,t,s,n),d=(e,t,s,n)=>(p(e),typeof t=="object"&&t!==null&&Object.getOwnPropertyNames(t).forEach(a=>{const r=t[a],i=a.toLowerCase(),c=typeof n?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(a)?n.transformTagName(i):a;typeof r=="string"&&r.length>0&&T(e,c.toUpperCase(),r,s);}),e);const C=new Set,F=/--[^;]+/g,q=/:/,J=(e,t)=>{let s=t.match(F);if(Array.isArray(s)){s=s.filter(a=>q.test(a));const n=document.createElement("style");n.innerHTML=`.${e} {${s.join(";")}}`,document.querySelector("head")?.appendChild(n);}C.add(e);},l=(e,t)=>typeof o$1.A11yUi=="object"&&o$1.A11yUi!==null&&typeof o$1.A11yUi.Themes=="object"&&o$1.A11yUi.Themes!==null&&typeof o$1.A11yUi.Themes[e]=="object"&&o$1.A11yUi.Themes[e]!==null&&typeof o$1.A11yUi.Themes[e][t]=="string"?o$1.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",V=e=>{for(const t of Array.from(e.childNodes))if(t instanceof HTMLStyleElement&&t.tagName==="STYLE"&&t.dataset.themingFallback===void 0)e.removeChild(t);else break},W=(e,t)=>{try{if(o$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=[];t.forEach(n=>{const a=new CSSStyleSheet;a.replaceSync(n),s.push(a);}),e.adoptedStyleSheets=s;}catch{[...t].reverse().forEach((s,n)=>{if(typeof s!="string"||s.length===0)return;const a=document.createElement("style");switch(a.dataset.themingFallback="",n){case 4:a.dataset.themingBaseA11y="";break;case 3:a.dataset.themingBaseGlobal="";break;case 2:a.dataset.themingBaseComponent="";break;case 1:a.dataset.themingCustomGlobal="";break;case 0:a.dataset.themingCustomComponent="";break;default:a.dataset.themingUnknown="";break}a.innerHTML=s,e.insertBefore(a,e.firstChild);});}},X=(e,t,s)=>{if(s!==!1){const n=[...Array.from(e.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE")];let a;try{a=[...Array.from(e.adoptedStyleSheets)];}catch{a=[];}s?.mode==="before"?(n.reverse().forEach(r=>t.unshift(r.innerHTML)),a.reverse().forEach(r=>t.unshift(Array.from(r.cssRules).map(i=>i.cssText).join("")))):s?.mode==="after"&&(n.forEach(r=>t.push(r.innerHTML)),a.forEach(r=>t.push(Array.from(r.cssRules).map(i=>i.cssText).join(""))));}},w=(e,t)=>{const s=t.name||"default";let n;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");n=e.shadowRoot;}catch{n=e;}if(o$1.A11yUi.CSS_STYLE_CACHE.get(s)?.has(e.tagName))L(n,o$1.A11yUi.CSS_STYLE_CACHE.get(s)?.get(e.tagName));else {const a=l(s,"PROPERTIES"),r=l(s,"GLOBAL"),i=l(s,e.tagName);C.has(s)===!1&&J(s,r);const c=[a,r,i];X(n,c,t.encroachCss),t.loglevel==="debug"&&console.log(e.tagName,c),t.cache===!0&&(o$1.A11yUi.CSS_STYLE_CACHE.has(s)===!1&&o$1.A11yUi.CSS_STYLE_CACHE.set(s,new Map),o$1.A11yUi.CSS_STYLE_CACHE.get(s)?.set(e.tagName,c)),L(n,c);}},L=(e,t)=>{V(e),W(e,t);},_=e=>{e.loglevel==="debug"&&o$1.A11yUi.HYDRATED_HISTORY.push({timestamp:Date.now(),numberOfTasks:o$1.A11yUi.STYLING_TASK_QUEUE.size});},te=e=>{o$1.A11yUi.STYLING_TASK_QUEUE.delete(e);},v=(e,t)=>{te(e),_(t);},se=e=>{for(const t of e)if(o$1.A11yUi.STYLING_TASK_QUEUE.has(t.target)&&t.target.classList.contains("hydrated")){const{themeDetails:s}=o$1.A11yUi.STYLING_TASK_QUEUE.get(t.target);w(t.target,s),v(t.target,s);}};try{new MutationObserver(se);}catch{}
|
|
2670
2670
|
|
|
2671
2671
|
const alertTypeOptions = ['default', 'info', 'success', 'warning', 'error'];
|
|
2672
2672
|
const alertVariantOptions = ['card', 'msg'];
|
|
@@ -3741,9 +3741,9 @@ const koliBriQuerySelector = (selector, node) => querySelector(selector, node ||
|
|
|
3741
3741
|
const koliBriQuerySelectorAll = (selector, node) => querySelectorAll(selector, node || getDocument());
|
|
3742
3742
|
class KoliBriDevHelper {
|
|
3743
3743
|
}
|
|
3744
|
-
KoliBriDevHelper.getCssStyle =
|
|
3745
|
-
KoliBriDevHelper.patchTheme =
|
|
3746
|
-
KoliBriDevHelper.patchThemeTag =
|
|
3744
|
+
KoliBriDevHelper.getCssStyle = l;
|
|
3745
|
+
KoliBriDevHelper.patchTheme = k;
|
|
3746
|
+
KoliBriDevHelper.patchThemeTag = $;
|
|
3747
3747
|
KoliBriDevHelper.querySelector = koliBriQuerySelector;
|
|
3748
3748
|
KoliBriDevHelper.querySelectorAll = koliBriQuerySelectorAll;
|
|
3749
3749
|
KoliBriDevHelper.stringifyJson = stringifyJson;
|
|
@@ -4235,7 +4235,12 @@ const validateMsg = (component, value) => {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
catch (e) {
|
|
4237
4237
|
}
|
|
4238
|
-
watchValidator(component, `_msg`, (value) => typeof value === '
|
|
4238
|
+
watchValidator(component, `_msg`, (value) => isObject$1(value) && typeof (value === null || value === void 0 ? void 0 : value._description) === 'string', new Set(['MsgPropType']), value, {
|
|
4239
|
+
defaultValue: {
|
|
4240
|
+
_description: '',
|
|
4241
|
+
_type: 'error',
|
|
4242
|
+
},
|
|
4243
|
+
});
|
|
4239
4244
|
});
|
|
4240
4245
|
};
|
|
4241
4246
|
|
|
@@ -4289,6 +4294,12 @@ const validateShow = (component, value, hooks) => {
|
|
|
4289
4294
|
watchBoolean(component, '_show', value, hooks);
|
|
4290
4295
|
};
|
|
4291
4296
|
|
|
4297
|
+
const validateSpellCheck = (component, value) => {
|
|
4298
|
+
watchBoolean(component, '_spellCheck', value, {
|
|
4299
|
+
defaultValue: undefined,
|
|
4300
|
+
});
|
|
4301
|
+
};
|
|
4302
|
+
|
|
4292
4303
|
const validateSuggestions = (component, value) => {
|
|
4293
4304
|
watchJsonArrayString(component, '_suggestions', (item) => typeof item === 'string' || typeof item === 'number', value, undefined, {
|
|
4294
4305
|
hooks: {
|
|
@@ -6133,11 +6144,15 @@ class InputController extends ControlledInputController {
|
|
|
6133
6144
|
validateTooltipAlign(this.component, value);
|
|
6134
6145
|
}
|
|
6135
6146
|
validateError(value) {
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6147
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
6148
|
+
this.validateMsg({
|
|
6149
|
+
_description: value,
|
|
6150
|
+
_type: 'error',
|
|
6151
|
+
});
|
|
6152
|
+
}
|
|
6153
|
+
else {
|
|
6154
|
+
this.validateMsg(undefined);
|
|
6155
|
+
}
|
|
6141
6156
|
}
|
|
6142
6157
|
validateHideError(value) {
|
|
6143
6158
|
validateHideError(this.component, value, {
|
|
@@ -6205,7 +6220,9 @@ class InputController extends ControlledInputController {
|
|
|
6205
6220
|
this.validateAccessKey(this.component._accessKey);
|
|
6206
6221
|
this.validateAdjustHeight(this.component._adjustHeight);
|
|
6207
6222
|
this.validateError(this.component._error);
|
|
6208
|
-
|
|
6223
|
+
if (this.component._msg) {
|
|
6224
|
+
this.validateMsg(this.component._msg);
|
|
6225
|
+
}
|
|
6209
6226
|
this.validateDisabled(this.component._disabled);
|
|
6210
6227
|
this.validateHideError(this.component._hideError);
|
|
6211
6228
|
this.validateHideLabel(this.component._hideLabel);
|
|
@@ -6445,18 +6462,18 @@ class KolCombobox {
|
|
|
6445
6462
|
render() {
|
|
6446
6463
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
6447
6464
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
6448
|
-
return (hAsync(Host, { key: 'c3278c2069dbca97941ec443ad0facc36db203d8', class: "kol-combobox" }, hAsync("div", { key: '248c0d3e8d08db48834a704a3c5cf2178a92730d', class: clsx('combobox', this.state._disabled && 'combobox--disabled') }, hAsync(KolInputTag, { key: '5d8af20e02c638b8f631bb9ebef6bbefcd035f45', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'bdb1fc5448a1b2c2b728fe52e3044507fb12720e', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '7bf99311858263462241bee3bf5d024ba194f5e9', slot: "input" }, hAsync("div", { key: '9d3b73ddbfed9e8326c6b99d141acaf27dbba58f', class: "combobox__group" }, hAsync("input", Object.assign({ key: '
|
|
6465
|
+
return (hAsync(Host, { key: 'c3278c2069dbca97941ec443ad0facc36db203d8', class: "kol-combobox" }, hAsync("div", { key: '248c0d3e8d08db48834a704a3c5cf2178a92730d', class: clsx('combobox', this.state._disabled && 'combobox--disabled') }, hAsync(KolInputTag, { key: '5d8af20e02c638b8f631bb9ebef6bbefcd035f45', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'bdb1fc5448a1b2c2b728fe52e3044507fb12720e', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '7bf99311858263462241bee3bf5d024ba194f5e9', slot: "input" }, hAsync("div", { key: '9d3b73ddbfed9e8326c6b99d141acaf27dbba58f', class: "combobox__group" }, hAsync("input", Object.assign({ key: 'a1d739b73b806459f28b9b44c795d383545d23c9', ref: this.catchRef, class: "combobox__input", type: "text", role: "combobox", "aria-autocomplete": "both", "aria-expanded": this._isOpen ? 'true' : 'false', "aria-controls": "listbox", value: this.state._value, accessKey: this.state._accessKey, "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, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, name: this.state._name, required: this.state._required }, this.controller.onFacade, { onFocus: (event) => {
|
|
6449
6466
|
this.controller.onFacade.onFocus(event);
|
|
6450
6467
|
this.inputHasFocus = true;
|
|
6451
6468
|
}, onBlur: (event) => {
|
|
6452
6469
|
this.controller.onFacade.onBlur(event);
|
|
6453
6470
|
this.inputHasFocus = false;
|
|
6454
|
-
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })), hAsync("button", { key: '
|
|
6471
|
+
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })), hAsync("button", { key: '8a224c4f264cae4581cc66adec944460feaf89c6', tabindex: "-1", class: "combobox__icon", onClick: this.toggleListbox.bind(this), disabled: this.state._disabled }, hAsync(KolIconTag, { key: '622583975eb2d9a0f3dbb4d72d3eb1f421a3d5a1', _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') }))), this._isOpen && !(this.state._disabled === true) && (hAsync("ul", { key: '8e7e8cd1f3e1cbcd99faf4b0060b108c85faefcc', role: "listbox", class: clsx('combobox__listbox', this.blockSuggestionMouseOver && 'combobox__listbox--cursor-hidden'), onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
6455
6472
|
this._filteredSuggestions.length > 0 &&
|
|
6456
6473
|
this._filteredSuggestions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
6457
6474
|
if (el)
|
|
6458
6475
|
this.refSuggestions[index] = el;
|
|
6459
|
-
}, "data-index": index, tabIndex: -1, role: "option", "aria-selected": this.state._value === option, onClick: (e) => {
|
|
6476
|
+
}, "data-index": index, tabIndex: -1, role: "option", "aria-selected": this.state._value === option ? 'true' : undefined, onClick: (e) => {
|
|
6460
6477
|
this.selectOption(e, option);
|
|
6461
6478
|
this.toggleListbox();
|
|
6462
6479
|
}, onMouseOver: () => {
|
|
@@ -7836,7 +7853,7 @@ class KolInputColor {
|
|
|
7836
7853
|
return (hAsync(Host, { key: '267d32979240084675613c62100026e9c887ec99', class: "kol-input-color" }, hAsync(KolInputTag, { key: '9b0bb20397e411dca2d205beef02ce115a60977f', class: {
|
|
7837
7854
|
color: true,
|
|
7838
7855
|
'hide-label': !!this.state._hideLabel,
|
|
7839
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _hideError: this.state._hideError, _id: this.state._id, _label: this.state._label, _shortKey: this.state._shortKey, _suggestions: this.state._suggestions, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '7f0501edad65f345d2c3a6641093db2cdf5c0e63', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'f1318bbdd622361e3b819bb90921079dbfc0575a', slot: "input" }, hAsync("input", Object.assign({ key: '
|
|
7856
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _hideError: this.state._hideError, _id: this.state._id, _label: this.state._label, _shortKey: this.state._shortKey, _suggestions: this.state._suggestions, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '7f0501edad65f345d2c3a6641093db2cdf5c0e63', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'f1318bbdd622361e3b819bb90921079dbfc0575a', slot: "input" }, hAsync("input", Object.assign({ key: 'fcf10809a84c0d1c7e276480d6ccf38f85b8e261', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, name: this.state._name, slot: "input", type: "color", value: this.state._value }, this.controller.onFacade, { onFocus: (event) => {
|
|
7840
7857
|
this.controller.onFacade.onFocus(event);
|
|
7841
7858
|
this.inputHasFocus = true;
|
|
7842
7859
|
}, onBlur: (event) => {
|
|
@@ -8212,7 +8229,7 @@ class KolInputDate {
|
|
|
8212
8229
|
return (hAsync(Host, { key: '023c36b654230fa048f8a42c481af8d66d719ff2', class: { 'kol-input-date': true, 'has-value': this.state._hasValue } }, hAsync(KolInputTag, { key: '8c62e80c2fb1d5d7556abf81c096973cb689c431', class: {
|
|
8213
8230
|
[this.state._type]: true,
|
|
8214
8231
|
'hide-label': !!this.state._hideLabel,
|
|
8215
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '5ddac8288007ae72d9a2c9d4232454fcf8ced485', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '93501ba3e4b31203b9eaa8710e00052a4a44b4f8', slot: "input" }, hAsync("input", Object.assign({ key: '
|
|
8232
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '5ddac8288007ae72d9a2c9d4232454fcf8ced485', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '93501ba3e4b31203b9eaa8710e00052a4a44b4f8', slot: "input" }, hAsync("input", Object.assign({ key: '975399701d3067bfaf1b273d0758dd2035730561', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, step: this.state._step, type: this.state._type, value: this.state._value || undefined }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onBlur: (event) => {
|
|
8216
8233
|
this.controller.onFacade.onBlur(event);
|
|
8217
8234
|
this.inputHasFocus = false;
|
|
8218
8235
|
}, onFocus: (event) => {
|
|
@@ -8553,13 +8570,16 @@ class InputTextController extends InputTextEmailController {
|
|
|
8553
8570
|
this.hasError = false;
|
|
8554
8571
|
this.component = component;
|
|
8555
8572
|
}
|
|
8573
|
+
validateSpellCheck(value) {
|
|
8574
|
+
validateSpellCheck(this.component, value);
|
|
8575
|
+
}
|
|
8556
8576
|
validateType(value) {
|
|
8557
8577
|
watchValidator(this.component, '_type', (value) => typeof value === 'string' && inputTextTypeOptions.includes(value), new Set([`String {${inputTextTypeOptions.join(', ')}`]), value);
|
|
8558
8578
|
}
|
|
8559
8579
|
componentWillLoad() {
|
|
8560
8580
|
super.componentWillLoad();
|
|
8581
|
+
this.validateSpellCheck(this.component._spellCheck);
|
|
8561
8582
|
this.validateType(this.component._type);
|
|
8562
|
-
this.validateHasCounter(this.component._hasCounter);
|
|
8563
8583
|
}
|
|
8564
8584
|
}
|
|
8565
8585
|
|
|
@@ -8599,7 +8619,7 @@ class KolInputEmail {
|
|
|
8599
8619
|
return (hAsync(Host, { key: '0a6dae92f7eceb1477c24f41f975e5554cf88ea9', class: {
|
|
8600
8620
|
'kol-input-email': true,
|
|
8601
8621
|
'has-value': this.state._hasValue,
|
|
8602
|
-
} }, hAsync(KolInputTag, { key: '0924c898848ac3aef5f738761bd3b62a681548eb', class: { email: true, 'hide-label': !!this.state._hideLabel }, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'd64b8718e6f2e5bd518601ecee7617249e063dbe', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '636e58b8611da6aaf134e94ead11934406bc44b4', slot: "input" }, hAsync("input", Object.assign({ key: '
|
|
8622
|
+
} }, hAsync(KolInputTag, { key: '0924c898848ac3aef5f738761bd3b62a681548eb', class: { email: true, 'hide-label': !!this.state._hideLabel }, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'd64b8718e6f2e5bd518601ecee7617249e063dbe', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '636e58b8611da6aaf134e94ead11934406bc44b4', slot: "input" }, hAsync("input", Object.assign({ key: '395b8ac51cb57f363548891fa6e0d49de33cbc17', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, multiple: this.state._multiple, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, type: "email", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onInput: this.onInput, onFocus: (event) => {
|
|
8603
8623
|
this.controller.onFacade.onFocus(event);
|
|
8604
8624
|
this.inputHasFocus = true;
|
|
8605
8625
|
}, onBlur: (event) => {
|
|
@@ -8889,7 +8909,7 @@ class KolInputFile {
|
|
|
8889
8909
|
return (hAsync(Host, { key: 'e5a5bf2cb09d060fa8558b234e03a8a3772ab394', class: "kol-input-file" }, hAsync(KolInputTag, { key: '306dd041fd374663109d6e0e1354d3e334dd3652', class: {
|
|
8890
8910
|
file: true,
|
|
8891
8911
|
'hide-label': !!this.state._hideLabel,
|
|
8892
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '943463859848736c8d2c43a3a02de8e99c660904', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'f0aa210f2d890e689994256cd87321f484162179', slot: "input" }, hAsync("input", Object.assign({ key: '
|
|
8912
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '943463859848736c8d2c43a3a02de8e99c660904', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'f0aa210f2d890e689994256cd87321f484162179', slot: "input" }, hAsync("input", Object.assign({ key: 'ae3ed46e21125c7c77335e8248882c0d6b84be79', ref: this.catchRef, title: "", accept: this.state._accept, accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, multiple: this.state._multiple, name: this.state._name, required: this.state._required, type: "file", value: this.state._value }, this.controller.onFacade, { onChange: this.onChange, onInput: this.onInput, onFocus: (event) => {
|
|
8893
8913
|
this.controller.onFacade.onFocus(event);
|
|
8894
8914
|
this.inputHasFocus = true;
|
|
8895
8915
|
}, onBlur: (event) => {
|
|
@@ -9197,7 +9217,7 @@ class KolInputNumber {
|
|
|
9197
9217
|
} }, hAsync(KolInputTag, { key: 'cca3c8727c315de0af6d0bfb46476b0ece3a590c', class: {
|
|
9198
9218
|
number: true,
|
|
9199
9219
|
'hide-label': !!this.state._hideLabel,
|
|
9200
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '77e22ae9678676a8f3db1a4c31ccf445af311d75', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '6b717a3b135d57ffaccee69534077169ef8ba3f6', slot: "input" }, hAsync("input", Object.assign({ key: '
|
|
9220
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _msg: this.state._msg, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _suggestions: this.state._suggestions, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '77e22ae9678676a8f3db1a4c31ccf445af311d75', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '6b717a3b135d57ffaccee69534077169ef8ba3f6', slot: "input" }, hAsync("input", Object.assign({ key: 'ec0c34b9fd6bb3da27f94541903201599d841ff5', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, placeholder: this.state._placeholder, step: this.state._step, type: "number", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onFocus: (event) => {
|
|
9201
9221
|
this.controller.onFacade.onFocus(event);
|
|
9202
9222
|
this.inputHasFocus = true;
|
|
9203
9223
|
}, onBlur: (event) => {
|
|
@@ -9448,7 +9468,6 @@ class KolInputPassword {
|
|
|
9448
9468
|
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9449
9469
|
}
|
|
9450
9470
|
render() {
|
|
9451
|
-
var _a;
|
|
9452
9471
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
9453
9472
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9454
9473
|
return (hAsync(Host, { key: 'e4bbac1ce3dd4e5d3f22168588a8932403474775', class: {
|
|
@@ -9457,17 +9476,17 @@ class KolInputPassword {
|
|
|
9457
9476
|
} }, hAsync(KolInputTag, { key: 'ea8e123c738e56d384e323e8896bae2d46fb39df', class: {
|
|
9458
9477
|
'hide-label': !!this.state._hideLabel,
|
|
9459
9478
|
password: true,
|
|
9460
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _msg: this.state._msg, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '8b3ea92e78b33d8e2d715cd175db73d783f9dc29', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'a531257549c04c2787ce78511af4cb50e3d4013e', slot: "input" }, hAsync("input", Object.assign({ key: '
|
|
9479
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _msg: this.state._msg, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '8b3ea92e78b33d8e2d715cd175db73d783f9dc29', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'a531257549c04c2787ce78511af4cb50e3d4013e', slot: "input" }, hAsync("input", Object.assign({ key: '84bf423a5e3ee87cdf094124b064869f020b17a3', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, type: this._passwordVisible ? 'text' : 'password', value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onInput: this.onInput, onFocus: (event) => {
|
|
9461
9480
|
this.controller.onFacade.onFocus(event);
|
|
9462
9481
|
this.inputHasFocus = true;
|
|
9463
9482
|
}, onBlur: (event) => {
|
|
9464
9483
|
this.controller.onFacade.onBlur(event);
|
|
9465
9484
|
this.inputHasFocus = false;
|
|
9466
|
-
} })), this._variant === 'visibility-toggle'
|
|
9485
|
+
} })), this._variant === 'visibility-toggle' ? (hAsync(KolButtonWcTag, { class: "password-toggle-button", _label: this._passwordVisible ? translate('kol-hide-password') : translate('kol-show-password'), _variant: "ghost", _disabled: this._disabled, _on: {
|
|
9467
9486
|
onClick: () => {
|
|
9468
9487
|
this._passwordVisible = !this._passwordVisible;
|
|
9469
9488
|
},
|
|
9470
|
-
}, _hideLabel: true, _icons: this._passwordVisible ? 'codicon codicon-eye-closed' : 'codicon codicon-eye-watch' })) :
|
|
9489
|
+
}, _hideLabel: true, _icons: this._passwordVisible ? 'codicon codicon-eye-closed' : 'codicon codicon-eye-watch' })) : null))));
|
|
9471
9490
|
}
|
|
9472
9491
|
constructor(hostRef) {
|
|
9473
9492
|
registerInstance(this, hostRef);
|
|
@@ -10041,20 +10060,20 @@ class KolInputRange {
|
|
|
10041
10060
|
'hide-label': !!this.state._hideLabel,
|
|
10042
10061
|
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched }, hAsync("span", { key: '5ff97f4eadb9d0268a86336bb1ec3c33220e9448', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '9caa68963d809d85651a3711d6e00750c02012cf', slot: "input" }, hAsync("div", { key: '707405cdaa4fa35c2202af6566c00b5b18176a4a', class: "inputs-wrapper", style: {
|
|
10043
10062
|
'--kolibri-input-range--input-number--width': `${this.state._max}`.length + 0.5 + 'em',
|
|
10044
|
-
} }, hAsync("input", Object.assign({ key: '
|
|
10063
|
+
} }, hAsync("input", Object.assign({ key: '086f4e66a08820af1d83e352ace068d00f6b77c3', ref: this.catchInputRangeRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-hidden": "true", autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name ? `${this.state._name}-range` : undefined, step: this.state._step, tabIndex: -1, type: "range", value: this.state._value }, this.controller.onFacade, { onChange: this.onChange, onFocus: (event) => {
|
|
10045
10064
|
this.controller.onFacade.onFocus(event);
|
|
10046
10065
|
this.inputHasFocus = true;
|
|
10047
10066
|
}, onBlur: (event) => {
|
|
10048
10067
|
this.controller.onFacade.onBlur(event);
|
|
10049
10068
|
this.inputHasFocus = false;
|
|
10050
|
-
} })), hAsync("input", Object.assign({ key: '
|
|
10069
|
+
} })), hAsync("input", Object.assign({ key: '044b5512f8a5f38ff8042408a1e40a7e042a93a9', ref: this.catchInputNumberRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, max: this.state._max, min: this.state._min, name: this.state._name ? `${this.state._name}-number` : undefined, step: this.state._step, type: "number", value: this.state._value }, this.controller.onFacade, { onKeyDown: this.onKeyDown, onChange: this.onChange, onFocus: (event) => {
|
|
10051
10070
|
this.controller.onFacade.onFocus(event);
|
|
10052
10071
|
this.inputHasFocus = true;
|
|
10053
10072
|
}, onBlur: (event) => {
|
|
10054
10073
|
this.controller.onFacade.onBlur(event);
|
|
10055
10074
|
this.inputHasFocus = false;
|
|
10056
10075
|
} }))), hasSuggestions && [
|
|
10057
|
-
hAsync("datalist", { key: '
|
|
10076
|
+
hAsync("datalist", { key: '9ac1ec64cf00ea72f0df8562b5951693c77953f1', id: `${this.state._id}-list` }, this.state._suggestions.map((option) => (hAsync("option", { value: option })))),
|
|
10058
10077
|
]))));
|
|
10059
10078
|
}
|
|
10060
10079
|
constructor(hostRef) {
|
|
@@ -10292,13 +10311,13 @@ class KolInputText {
|
|
|
10292
10311
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
10293
10312
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
10294
10313
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
10295
|
-
return (hAsync(Host, { key: '
|
|
10314
|
+
return (hAsync(Host, { key: 'dfff639f5219d9a6b70417050414ae1114c3e426', class: {
|
|
10296
10315
|
'has-value': this.state._hasValue,
|
|
10297
10316
|
'kol-input-text': true,
|
|
10298
|
-
} }, hAsync(KolInputTag, { key: '
|
|
10317
|
+
} }, hAsync(KolInputTag, { key: 'b0b460bd253ce8e6b7b0c64167cf7b04914aa7ce', class: {
|
|
10299
10318
|
[this.state._type]: true,
|
|
10300
10319
|
'hide-label': !!this.state._hideLabel,
|
|
10301
|
-
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _msg: this.state._msg, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _suggestions: this.state._suggestions, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '
|
|
10320
|
+
}, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _hasCounter: this.state._hasCounter, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _msg: this.state._msg, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _smartButton: this.state._smartButton, _suggestions: this.state._suggestions, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: '9fa94f23db0961dd372863f6c4f32ad1a63c5152', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey, this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey, this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: 'a7d63ed3ba033b473eb7b7e22a24eabce9b6e8c2', slot: "input" }, hAsync("input", Object.assign({ key: 'dfc93edf65abe84c68878643827eca0ab0f505ba', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoComplete: this.state._autoComplete, autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, list: hasSuggestions ? `${this.state._id}-list` : undefined, maxlength: this.state._maxLength, name: this.state._name, pattern: this.state._pattern, placeholder: this.state._placeholder, readOnly: this.state._readOnly, required: this.state._required, spellcheck: this.state._spellCheck, type: this.state._type, value: this.state._value }, this.controller.onFacade, { onChange: this.onChange, onInput: this.onInput, onKeyDown: this.onKeyDown, onFocus: (event) => {
|
|
10302
10321
|
this.controller.onFacade.onFocus(event);
|
|
10303
10322
|
this.inputHasFocus = true;
|
|
10304
10323
|
}, onBlur: (event) => {
|
|
@@ -10351,6 +10370,7 @@ class KolInputText {
|
|
|
10351
10370
|
this._readOnly = false;
|
|
10352
10371
|
this._required = false;
|
|
10353
10372
|
this._shortKey = undefined;
|
|
10373
|
+
this._spellCheck = undefined;
|
|
10354
10374
|
this._suggestions = undefined;
|
|
10355
10375
|
this._smartButton = undefined;
|
|
10356
10376
|
this._syncValueBySelector = undefined;
|
|
@@ -10441,6 +10461,9 @@ class KolInputText {
|
|
|
10441
10461
|
validateShortKey(value) {
|
|
10442
10462
|
this.controller.validateShortKey(value);
|
|
10443
10463
|
}
|
|
10464
|
+
validateSpellCheck(value) {
|
|
10465
|
+
this.controller.validateSpellCheck(value);
|
|
10466
|
+
}
|
|
10444
10467
|
validateSuggestions(value) {
|
|
10445
10468
|
this.controller.validateSuggestions(value);
|
|
10446
10469
|
}
|
|
@@ -10494,6 +10517,7 @@ class KolInputText {
|
|
|
10494
10517
|
"_readOnly": ["validateReadOnly"],
|
|
10495
10518
|
"_required": ["validateRequired"],
|
|
10496
10519
|
"_shortKey": ["validateShortKey"],
|
|
10520
|
+
"_spellCheck": ["validateSpellCheck"],
|
|
10497
10521
|
"_suggestions": ["validateSuggestions"],
|
|
10498
10522
|
"_smartButton": ["validateSmartButton"],
|
|
10499
10523
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
@@ -10530,6 +10554,7 @@ class KolInputText {
|
|
|
10530
10554
|
"_readOnly": [4, "_read-only"],
|
|
10531
10555
|
"_required": [4],
|
|
10532
10556
|
"_shortKey": [1, "_short-key"],
|
|
10557
|
+
"_spellCheck": [4, "_spell-check"],
|
|
10533
10558
|
"_suggestions": [1],
|
|
10534
10559
|
"_smartButton": [1, "_smart-button"],
|
|
10535
10560
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
@@ -10588,28 +10613,27 @@ class KolInputWc {
|
|
|
10588
10613
|
}
|
|
10589
10614
|
render() {
|
|
10590
10615
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
10591
|
-
const
|
|
10592
|
-
const
|
|
10593
|
-
const showFormFieldMsg = Boolean(hasError || (((_c = this._msg) === null || _c === void 0 ? void 0 : _c._type) !== 'error' && ((_d = this._msg) === null || _d === void 0 ? void 0 : _d._description)));
|
|
10616
|
+
const hasValidMsg = typeof this._msg === 'object' && this._msg !== null && typeof ((_a = this._msg) === null || _a === void 0 ? void 0 : _a._description) === 'string' && ((_b = this._msg) === null || _b === void 0 ? void 0 : _b._description.length) > 0;
|
|
10617
|
+
const showMsg = hasValidMsg && (this._touched === true || ((_c = this._msg) === null || _c === void 0 ? void 0 : _c._type) !== 'error');
|
|
10594
10618
|
const hasExpertSlot = showExpertSlot(this._label);
|
|
10595
10619
|
const hasHint = typeof this._hint === 'string' && this._hint.length > 0;
|
|
10596
10620
|
const useTooltopInsteadOfLabel = !hasExpertSlot && this._hideLabel;
|
|
10597
|
-
return (hAsync(Host, { key: '
|
|
10621
|
+
return (hAsync(Host, { key: 'f387b8c961abba887df0af3acdc992fdc780bf67', class: clsx('kol-input', this.getModifierClassNameByMsgType(showMsg), {
|
|
10598
10622
|
disabled: this._disabled === true,
|
|
10599
|
-
error:
|
|
10623
|
+
[((_d = this._msg) === null || _d === void 0 ? void 0 : _d._type) || 'error']: showMsg === true,
|
|
10600
10624
|
'read-only': this._readOnly === true,
|
|
10601
10625
|
required: this._required === true,
|
|
10602
10626
|
touched: this._touched === true,
|
|
10603
10627
|
'hidden-error': this._hideError === true,
|
|
10604
|
-
}) }, hAsync("label", { key: '
|
|
10628
|
+
}) }, hAsync("label", { key: '46d5a787dc011c63d78b23f5041d3bddd4bf35b9', class: "input-label", id: !useTooltopInsteadOfLabel ? `${this._id}-label` : undefined, hidden: useTooltopInsteadOfLabel, htmlFor: this._id }, hAsync("span", { key: 'd704939fe7f625fa71fcced90cfc57ad88f9d3f5', class: "input-label-span" }, hAsync("slot", { key: '717a440a4755fa1cc878ccc697a2339a236cc2ca', name: "label" }))), hasHint && (hAsync("span", { key: 'cf2a32a4850aa36c47640044ee8131cd039437f3', class: "hint", id: `${this._id}-hint` }, this._hint)), hAsync("div", { key: '908ad6c86b9f897a203babfa6a647482fd963ee7', class: {
|
|
10605
10629
|
input: true,
|
|
10606
10630
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
10607
10631
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
10608
|
-
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '
|
|
10632
|
+
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '8d34322e538ef59f93ea0d91c18865c09acdc806', _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: '63e0601882b3b4708004514ee16eea9d10eaa79e', ref: this.catchInputSlot, id: this.slotName, class: "input-slot" }), typeof this._smartButton === 'object' && this._smartButton !== null && (hAsync(KolButtonWcTag, { key: '90e62c7fd3205e54abeaf277ff6cb84cc9f808e2', _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: '78820371cd0eea944bba2249fa206dfa1f7ea9a8', _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) }))), useTooltopInsteadOfLabel && (hAsync(KolTooltipWcTag, { key: '23f8131f06b0ade72a2ac6de4bc45d87c537ecf8', "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: 'd7913257b81e5b0ad00da22c589cf22e31ba809f', _alert: this._alert, _hideError: this._hideError, _msg: this._msg, _id: this._id }), Array.isArray(this._suggestions) && this._suggestions.length > 0 && (hAsync("datalist", { key: '3d900634935d030abd1d25b62bce6872989488b6', id: `${this._id}-list` }, this._suggestions.map((option) => (hAsync("option", { value: option }))))), this._hasCounter && (hAsync("span", { key: '72ffb636b35c38cae343fda5e00ad2726d23009c', class: "counter", "aria-atomic": "true", "aria-live": "polite", "data-testid": "input-counter" }, this._currentLength, this._maxLength && (hAsync(Fragment, null, hAsync("span", { key: '5316e7ddca828a22191faabf95d762261cd3e7e0', "aria-label": translate('kol-of'), role: "img" }, "/"), this._maxLength)), ' ', hAsync("span", { key: '2ec4c8bb02a35daffbea7a9d58d15a5e487b9652' }, translate('kol-characters'))))));
|
|
10609
10633
|
}
|
|
10610
|
-
getModifierClassNameByMsgType() {
|
|
10634
|
+
getModifierClassNameByMsgType(showMsg) {
|
|
10611
10635
|
var _a, _b;
|
|
10612
|
-
if ((_a = this._msg) === null || _a === void 0 ? void 0 : _a._type) {
|
|
10636
|
+
if (showMsg && ((_a = this._msg) === null || _a === void 0 ? void 0 : _a._type)) {
|
|
10613
10637
|
return {
|
|
10614
10638
|
default: 'msg-type-default',
|
|
10615
10639
|
info: 'msg-type-info',
|
|
@@ -13522,6 +13546,31 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
13522
13546
|
});
|
|
13523
13547
|
}
|
|
13524
13548
|
|
|
13549
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
13550
|
+
// incorrect for RTL.
|
|
13551
|
+
function getWindowScrollBarX(element, rect) {
|
|
13552
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
13553
|
+
if (!rect) {
|
|
13554
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
13555
|
+
}
|
|
13556
|
+
return rect.left + leftScroll;
|
|
13557
|
+
}
|
|
13558
|
+
|
|
13559
|
+
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
13560
|
+
if (ignoreScrollbarX === void 0) {
|
|
13561
|
+
ignoreScrollbarX = false;
|
|
13562
|
+
}
|
|
13563
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
13564
|
+
const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
|
|
13565
|
+
// RTL <body> scrollbar.
|
|
13566
|
+
getWindowScrollBarX(documentElement, htmlRect));
|
|
13567
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
13568
|
+
return {
|
|
13569
|
+
x,
|
|
13570
|
+
y
|
|
13571
|
+
};
|
|
13572
|
+
}
|
|
13573
|
+
|
|
13525
13574
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
13526
13575
|
let {
|
|
13527
13576
|
elements,
|
|
@@ -13553,11 +13602,12 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
13553
13602
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13554
13603
|
}
|
|
13555
13604
|
}
|
|
13605
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
13556
13606
|
return {
|
|
13557
13607
|
width: rect.width * scale.x,
|
|
13558
13608
|
height: rect.height * scale.y,
|
|
13559
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
13560
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
13609
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
13610
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
13561
13611
|
};
|
|
13562
13612
|
}
|
|
13563
13613
|
|
|
@@ -13565,16 +13615,6 @@ function getClientRects(element) {
|
|
|
13565
13615
|
return Array.from(element.getClientRects());
|
|
13566
13616
|
}
|
|
13567
13617
|
|
|
13568
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
13569
|
-
// incorrect for RTL.
|
|
13570
|
-
function getWindowScrollBarX(element, rect) {
|
|
13571
|
-
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
13572
|
-
if (!rect) {
|
|
13573
|
-
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
13574
|
-
}
|
|
13575
|
-
return rect.left + leftScroll;
|
|
13576
|
-
}
|
|
13577
|
-
|
|
13578
13618
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
13579
13619
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
13580
13620
|
function getDocumentRect(element) {
|
|
@@ -13649,9 +13689,10 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
13649
13689
|
} else {
|
|
13650
13690
|
const visualOffsets = getVisualOffsets(element);
|
|
13651
13691
|
rect = {
|
|
13652
|
-
...clippingAncestor,
|
|
13653
13692
|
x: clippingAncestor.x - visualOffsets.x,
|
|
13654
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
13693
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
13694
|
+
width: clippingAncestor.width,
|
|
13695
|
+
height: clippingAncestor.height
|
|
13655
13696
|
};
|
|
13656
13697
|
}
|
|
13657
13698
|
return rectToClientRect(rect);
|
|
@@ -13761,17 +13802,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
13761
13802
|
offsets.x = getWindowScrollBarX(documentElement);
|
|
13762
13803
|
}
|
|
13763
13804
|
}
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
const htmlRect = documentElement.getBoundingClientRect();
|
|
13768
|
-
htmlY = htmlRect.top + scroll.scrollTop;
|
|
13769
|
-
htmlX = htmlRect.left + scroll.scrollLeft -
|
|
13770
|
-
// RTL <body> scrollbar.
|
|
13771
|
-
getWindowScrollBarX(documentElement, htmlRect);
|
|
13772
|
-
}
|
|
13773
|
-
const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;
|
|
13774
|
-
const y = rect.top + scroll.scrollTop - offsets.y - htmlY;
|
|
13805
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
13806
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
13807
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
13775
13808
|
return {
|
|
13776
13809
|
x,
|
|
13777
13810
|
y,
|
|
@@ -14554,7 +14587,7 @@ class KolSelect {
|
|
|
14554
14587
|
form: this.host,
|
|
14555
14588
|
ref: this.selectRef,
|
|
14556
14589
|
});
|
|
14557
|
-
} }, hAsync("input", { key: '146ff341cfd1297a88aa014c307ba776807d1afd', type: "submit", hidden: true }), hAsync("select", Object.assign({ key: '
|
|
14590
|
+
} }, hAsync("input", { key: '146ff341cfd1297a88aa014c307ba776807d1afd', type: "submit", hidden: true }), hAsync("select", Object.assign({ key: '666ff4c9635d4779f06df8f1ab0bae0163fa449f', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, multiple: this.state._multiple, name: this.state._name, required: this.state._required, size: this.state._rows }, this.controller.onFacade, { onInput: this.onInput.bind(this), onChange: this.onChange.bind(this), onFocus: (event) => {
|
|
14558
14591
|
this.controller.onFacade.onFocus(event);
|
|
14559
14592
|
this.inputHasFocus = true;
|
|
14560
14593
|
}, onBlur: (event) => {
|
|
@@ -14909,20 +14942,20 @@ class KolSingleSelect {
|
|
|
14909
14942
|
render() {
|
|
14910
14943
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
14911
14944
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
14912
|
-
return (hAsync(Host, { key: 'ec78d6ba606de5a637558504d9b8d389991bd5d1', class: "kol-single-select" }, hAsync("div", { key: 'ba04220b3ac54ff6b8497948854df6d884ec152c', class: `single-select ${this.state._disabled === true ? 'disabled' : ''} ` }, hAsync(KolInputTag, { key: 'c5ba4a1ee8facce73b47cdece06df4623b718be8', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, role: `presentation` }, hAsync("span", { key: '103578ebf9a841970388a5c3969218f981897e6c', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey || this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '191bf5b70972f84dc1359082b6538617986a0383', slot: "input" }, hAsync("div", { key: '50d8b9e371af7679ae853d2001b95c9bb8383398', class: "single-select__group" }, hAsync("input", Object.assign({ key: '
|
|
14945
|
+
return (hAsync(Host, { key: 'ec78d6ba606de5a637558504d9b8d389991bd5d1', class: "kol-single-select" }, hAsync("div", { key: 'ba04220b3ac54ff6b8497948854df6d884ec152c', class: `single-select ${this.state._disabled === true ? 'disabled' : ''} ` }, hAsync(KolInputTag, { key: 'c5ba4a1ee8facce73b47cdece06df4623b718be8', _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _disabled: this.state._disabled, _hideError: this.state._hideError, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _msg: this.state._msg, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, role: `presentation` }, hAsync("span", { key: '103578ebf9a841970388a5c3969218f981897e6c', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey || this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '191bf5b70972f84dc1359082b6538617986a0383', slot: "input" }, hAsync("div", { key: '50d8b9e371af7679ae853d2001b95c9bb8383398', class: "single-select__group" }, hAsync("input", Object.assign({ key: '46d194911f251412811fc2f41989aa8a48f98c36', ref: this.catchRef, class: "single-select__input", type: "text", "aria-autocomplete": "both", "aria-controls": "listbox", value: this._inputValue, accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-activedescendant": this._isOpen && this._focusedOptionIndex >= 0 ? `option-${this._focusedOptionIndex}` : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, name: this.state._name, required: this.state._required }, this.controller.onFacade, { onInput: this.onInput.bind(this), onChange: this.onChange.bind(this), onClick: this.toggleListbox.bind(this), onFocus: (event) => {
|
|
14913
14946
|
this.controller.onFacade.onFocus(event);
|
|
14914
14947
|
this.inputHasFocus = true;
|
|
14915
14948
|
}, onBlur: (event) => {
|
|
14916
14949
|
this.controller.onFacade.onBlur(event);
|
|
14917
14950
|
this.inputHasFocus = false;
|
|
14918
|
-
}, placeholder: this.state._placeholder })), this._inputValue && (hAsync(KolIconTag, { key: '
|
|
14951
|
+
}, placeholder: this.state._placeholder })), this._inputValue && (hAsync(KolIconTag, { key: '8cff7aaaa6727a1cface8ba6ff14b2f46c4f379d', _icons: "codicon codicon-close", _label: translate('kol-delete-selection'), onClick: () => {
|
|
14919
14952
|
var _a;
|
|
14920
14953
|
this.clearSelection();
|
|
14921
14954
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14922
|
-
}, class: "single-select__delete" })), hAsync("button", { key: '
|
|
14955
|
+
}, class: "single-select__delete" })), hAsync("button", { key: '6f04499addadb0afb347c4c9f59d9f96b5e949fd', tabindex: "-1", class: "single-select__button", onClick: this.toggleListbox.bind(this), disabled: this.state._disabled }, hAsync(KolIconTag, { key: 'b90af9338c0039ecd8802aba4e0b9a5a1b43437e', _icons: "codicon codicon-triangle-down", _label: translate('kol-dropdown') }))), this._isOpen && !(this.state._disabled === true) && (hAsync("ul", { key: '2625d07e9fabd15eb99ab6bd3321259d9f9f3720', role: "listbox", class: clsx('single-select__listbox', this.blockSuggestionMouseOver && 'single-select__listbox--cursor-hidden'), onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
14923
14956
|
if (el)
|
|
14924
14957
|
this.refOptions[index] = el;
|
|
14925
|
-
}, tabIndex: -1, role: "option", "aria-selected": this.state._value === option.value, onClick: (event) => {
|
|
14958
|
+
}, tabIndex: -1, role: "option", "aria-selected": this.state._value === option.value ? 'true' : undefined, onClick: (event) => {
|
|
14926
14959
|
var _a;
|
|
14927
14960
|
this.selectOption(event, option);
|
|
14928
14961
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -24603,7 +24636,7 @@ class KolTableStateless {
|
|
|
24603
24636
|
let max = 0;
|
|
24604
24637
|
horizontalHeaders.forEach((row) => {
|
|
24605
24638
|
let count = 0;
|
|
24606
|
-
row.forEach((col) => { var _a; return (count += (_a = col.colSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24639
|
+
Array.isArray(row) && row.forEach((col) => { var _a; return (count += (_a = col.colSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24607
24640
|
if (max < count) {
|
|
24608
24641
|
max = count;
|
|
24609
24642
|
}
|
|
@@ -24618,7 +24651,7 @@ class KolTableStateless {
|
|
|
24618
24651
|
let max = 0;
|
|
24619
24652
|
verticalHeaders.forEach((col) => {
|
|
24620
24653
|
let count = 0;
|
|
24621
|
-
col.forEach((row) => { var _a; return (count += (_a = row.rowSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24654
|
+
Array.isArray(col) && col.forEach((row) => { var _a; return (count += (_a = row.rowSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24622
24655
|
if (max < count) {
|
|
24623
24656
|
max = count;
|
|
24624
24657
|
}
|
|
@@ -24631,34 +24664,34 @@ class KolTableStateless {
|
|
|
24631
24664
|
}
|
|
24632
24665
|
return max;
|
|
24633
24666
|
}
|
|
24634
|
-
|
|
24635
|
-
const
|
|
24667
|
+
getThePrimaryHeadersWithKeysIfExists(headers) {
|
|
24668
|
+
const primaryHeadersWithKeys = [];
|
|
24636
24669
|
headers.forEach((cells) => {
|
|
24637
24670
|
cells.forEach((cell) => {
|
|
24638
24671
|
if (typeof cell.key === 'string') {
|
|
24639
|
-
|
|
24672
|
+
primaryHeadersWithKeys.push(cell);
|
|
24640
24673
|
}
|
|
24641
24674
|
});
|
|
24642
24675
|
});
|
|
24643
|
-
return
|
|
24676
|
+
return primaryHeadersWithKeys;
|
|
24644
24677
|
}
|
|
24645
|
-
|
|
24678
|
+
getPrimaryHeaders(headers) {
|
|
24646
24679
|
var _a, _b;
|
|
24647
|
-
let
|
|
24680
|
+
let primaryHeadersWithKeys = this.getThePrimaryHeadersWithKeysIfExists((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
24648
24681
|
this.horizontal = true;
|
|
24649
|
-
if (
|
|
24650
|
-
|
|
24651
|
-
if (
|
|
24682
|
+
if (primaryHeadersWithKeys.length === 0) {
|
|
24683
|
+
primaryHeadersWithKeys = this.getThePrimaryHeadersWithKeysIfExists((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
24684
|
+
if (primaryHeadersWithKeys.length > 0) {
|
|
24652
24685
|
this.horizontal = false;
|
|
24653
24686
|
}
|
|
24654
24687
|
}
|
|
24655
|
-
return
|
|
24688
|
+
return primaryHeadersWithKeys;
|
|
24656
24689
|
}
|
|
24657
24690
|
createDataField(data, headers, isFoot) {
|
|
24658
24691
|
var _a;
|
|
24659
24692
|
headers.horizontal = Array.isArray(headers === null || headers === void 0 ? void 0 : headers.horizontal) ? headers.horizontal : [];
|
|
24660
24693
|
headers.vertical = Array.isArray(headers === null || headers === void 0 ? void 0 : headers.vertical) ? headers.vertical : [];
|
|
24661
|
-
const primaryHeader = this.
|
|
24694
|
+
const primaryHeader = this.getPrimaryHeaders(headers);
|
|
24662
24695
|
const maxCols = this.getNumberOfCols(headers.horizontal, data);
|
|
24663
24696
|
let maxRows = this.getNumberOfRows(headers.vertical, data);
|
|
24664
24697
|
let startRow = 0;
|
|
@@ -24820,6 +24853,13 @@ class KolTableStateless {
|
|
|
24820
24853
|
}
|
|
24821
24854
|
} })), hAsync(KolTooltipWcTag, { "aria-hidden": "true", class: "input-tooltip", _align: "right", _id: `${translationKey}-label`, _label: label }))));
|
|
24822
24855
|
}
|
|
24856
|
+
renderHeaderTdCell() {
|
|
24857
|
+
return (hAsync(Fragment, null, Array.isArray(this.state._headerCells.horizontal) &&
|
|
24858
|
+
this.state._headerCells.horizontal.length > 0 &&
|
|
24859
|
+
Array.isArray(this.state._headerCells.vertical) &&
|
|
24860
|
+
this.state._headerCells.vertical.length > 0 &&
|
|
24861
|
+
Array.isArray(this.state._headerCells.horizontal) && (hAsync("td", { "aria-hidden": "true", colSpan: this.state._headerCells.vertical.length, rowSpan: this.state._headerCells.horizontal.length }))));
|
|
24862
|
+
}
|
|
24823
24863
|
renderHeadingCell(cell, rowIndex, colIndex, isVertical) {
|
|
24824
24864
|
let ariaSort = undefined;
|
|
24825
24865
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
@@ -24851,9 +24891,11 @@ class KolTableStateless {
|
|
|
24851
24891
|
} })) : (cell.label)));
|
|
24852
24892
|
}
|
|
24853
24893
|
renderSpacer(variant, cellDefs) {
|
|
24854
|
-
var _a;
|
|
24855
|
-
const
|
|
24856
|
-
|
|
24894
|
+
var _a, _b;
|
|
24895
|
+
const verticalHeaderColpan = ((_a = this.state._headerCells.vertical) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
24896
|
+
const colspan = (_b = cellDefs === null || cellDefs === void 0 ? void 0 : cellDefs[0]) === null || _b === void 0 ? void 0 : _b.reduce((acc, row) => acc + (row.colSpan || 1), 0);
|
|
24897
|
+
const selectionCell = this.state._selection ? 1 : 0;
|
|
24898
|
+
return (hAsync("tr", { "aria-hidden": "true", class: `${variant}-spacer` }, hAsync("td", { colSpan: verticalHeaderColpan + colspan + selectionCell })));
|
|
24857
24899
|
}
|
|
24858
24900
|
renderFoot() {
|
|
24859
24901
|
if (!this.state._dataFoot || this.state._dataFoot.length === 0) {
|
|
@@ -24868,28 +24910,29 @@ class KolTableStateless {
|
|
|
24868
24910
|
render() {
|
|
24869
24911
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
24870
24912
|
this.checkboxRefs = [];
|
|
24871
|
-
return (hAsync(Host, { key: '
|
|
24913
|
+
return (hAsync(Host, { key: '482e452bd3bd6dd800bd0bd277618d543b932511', class: "kol-table-stateless-wc" }, hAsync("div", { key: 'd237bc287eb2dbb4c423857807f4ce2aa079f4d4', ref: (element) => (this.tableDivElement = element), class: "table", tabindex: this.tableDivElementHasScrollbar ? '-1' : undefined }, hAsync("table", { key: 'a4f3435eb7f8ebb7bea738fded143d2fd5ee1261', style: {
|
|
24872
24914
|
minWidth: this.state._minWidth,
|
|
24873
|
-
} }, hAsync("div", { key: '
|
|
24874
|
-
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(),
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
24915
|
+
} }, hAsync("div", { key: 'ad3995862452de82107201bca3cc1b0aadd0cf36', class: "focus-element", tabindex: this.tableDivElementHasScrollbar ? '0' : undefined, "aria-describedby": "caption" }, "\u00A0"), hAsync("caption", { key: 'c18a326a251676d7abea34f20c47187461d91748', id: "caption" }, this.state._label), Array.isArray(this.state._headerCells.horizontal) && (hAsync("thead", { key: '770b33b2bfd99cfb6693700cc77a919675101eb9' }, [
|
|
24916
|
+
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) &&
|
|
24917
|
+
cols.map((cell, colIndex) => {
|
|
24918
|
+
if (cell.asTd === true) {
|
|
24919
|
+
return (hAsync("td", { key: `thead-${rowIndex}-${colIndex}-${cell.label}`, class: {
|
|
24920
|
+
[cell.textAlign]: typeof cell.textAlign === 'string' && cell.textAlign.length > 0,
|
|
24921
|
+
}, colSpan: cell.colSpan, rowSpan: cell.rowSpan, style: {
|
|
24922
|
+
textAlign: cell.textAlign,
|
|
24923
|
+
width: cell.width,
|
|
24924
|
+
}, ref: typeof cell.render === 'function'
|
|
24925
|
+
? (el) => {
|
|
24926
|
+
this.cellRender(cell, el);
|
|
24927
|
+
}
|
|
24928
|
+
: undefined }, typeof cell.render !== 'function' ? cell.label : ''));
|
|
24929
|
+
}
|
|
24930
|
+
else {
|
|
24931
|
+
return this.renderHeadingCell(cell, rowIndex, colIndex, false);
|
|
24932
|
+
}
|
|
24933
|
+
})))),
|
|
24891
24934
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
24892
|
-
])), hAsync("tbody", { key: '
|
|
24935
|
+
])), hAsync("tbody", { key: 'f0de4de3fd33fced22b3c29062357795409589be' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
24893
24936
|
}
|
|
24894
24937
|
get host() { return getElement(this); }
|
|
24895
24938
|
static get watchers() { return {
|
|
@@ -25285,6 +25328,9 @@ class TextareaController extends InputIconController {
|
|
|
25285
25328
|
validateRows(value) {
|
|
25286
25329
|
validateRows(this.component, value);
|
|
25287
25330
|
}
|
|
25331
|
+
validateSpellCheck(value) {
|
|
25332
|
+
validateSpellCheck(this.component, value);
|
|
25333
|
+
}
|
|
25288
25334
|
validateValue(value) {
|
|
25289
25335
|
watchString(this.component, '_value', value, {
|
|
25290
25336
|
hooks: {
|
|
@@ -25302,6 +25348,7 @@ class TextareaController extends InputIconController {
|
|
|
25302
25348
|
this.validateResize(this.component._resize);
|
|
25303
25349
|
this.validateRequired(this.component._required);
|
|
25304
25350
|
this.validateRows(this.component._rows);
|
|
25351
|
+
this.validateSpellCheck(this.component._spellCheck);
|
|
25305
25352
|
this.validateValue(this.component._value);
|
|
25306
25353
|
}
|
|
25307
25354
|
}
|
|
@@ -25333,7 +25380,7 @@ class KolTextarea {
|
|
|
25333
25380
|
render() {
|
|
25334
25381
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25335
25382
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
25336
|
-
return (hAsync(Host, { key: '
|
|
25383
|
+
return (hAsync(Host, { key: '9770edffb4be5cea8a71c9a4bd75f24b5102c5bf', class: { 'kol-textarea': true, 'has-value': this.state._hasValue } }, hAsync(KolInputTag, { key: '33005094032fe05acb36aa4fb6265400ebf94c92', class: { textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }, _accessKey: this.state._accessKey, _alert: this.showAsAlert(), _currentLength: this.state._currentLength, _disabled: this.state._disabled, _hideError: this.state._hideError, _hasCounter: this.state._hasCounter, _hideLabel: this.state._hideLabel, _hint: this.state._hint, _icons: this.state._icons, _id: this.state._id, _label: this.state._label, _maxLength: this.state._maxLength, _msg: this.state._msg, _readOnly: this.state._readOnly, _required: this.state._required, _shortKey: this.state._shortKey, _tooltipAlign: this._tooltipAlign, _touched: this.state._touched, onClick: () => { var _a; return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus(); }, role: `presentation` }, hAsync("span", { key: 'e061a13f3b3d7b111feb2a252f91f9a5a2696bd5', slot: "label" }, hasExpertSlot ? (hAsync("slot", { name: "expert" })) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (hAsync(Fragment, null, hAsync(InternalUnderlinedBadgeText, { badgeText: buildBadgeTextString(this.state._accessKey || this.state._shortKey), label: this.state._label }), ' ', hAsync("span", { class: "access-key-hint", "aria-hidden": "true" }, buildBadgeTextString(this.state._accessKey || this.state._shortKey)))) : (hAsync("span", null, this.state._label))), hAsync("div", { key: '2b9c5e0fff5a6d27f044b5521277cb23ca0797b9', slot: "input" }, hAsync("textarea", Object.assign({ key: 'c03589fa5a0f9f26d71e8bc3d7c2af0990388968', ref: this.catchRef, title: "", accessKey: this.state._accessKey, "aria-describedby": ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined, "aria-label": this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, autoCapitalize: "off", autoCorrect: "off", disabled: this.state._disabled, id: this.state._id, maxlength: this.state._maxLength, name: this.state._name, readOnly: this.state._readOnly, required: this.state._required, rows: this.state._rows, placeholder: this.state._placeholder, spellcheck: this.state._spellCheck }, this.controller.onFacade, { onInput: this.onInput, onFocus: (event) => {
|
|
25337
25384
|
this.controller.onFacade.onFocus(event);
|
|
25338
25385
|
this.inputHasFocus = true;
|
|
25339
25386
|
}, onBlur: (event) => {
|
|
@@ -25379,6 +25426,7 @@ class KolTextarea {
|
|
|
25379
25426
|
this._required = false;
|
|
25380
25427
|
this._rows = undefined;
|
|
25381
25428
|
this._shortKey = undefined;
|
|
25429
|
+
this._spellCheck = undefined;
|
|
25382
25430
|
this._syncValueBySelector = undefined;
|
|
25383
25431
|
this._tabIndex = undefined;
|
|
25384
25432
|
this._tooltipAlign = 'top';
|
|
@@ -25471,6 +25519,9 @@ class KolTextarea {
|
|
|
25471
25519
|
validateShortKey(value) {
|
|
25472
25520
|
this.controller.validateShortKey(value);
|
|
25473
25521
|
}
|
|
25522
|
+
validateSpellCheck(value) {
|
|
25523
|
+
this.controller.validateSpellCheck(value);
|
|
25524
|
+
}
|
|
25474
25525
|
validateSyncValueBySelector(value) {
|
|
25475
25526
|
this.controller.validateSyncValueBySelector(value);
|
|
25476
25527
|
}
|
|
@@ -25526,6 +25577,7 @@ class KolTextarea {
|
|
|
25526
25577
|
"_required": ["validateRequired"],
|
|
25527
25578
|
"_rows": ["validateRows"],
|
|
25528
25579
|
"_shortKey": ["validateShortKey"],
|
|
25580
|
+
"_spellCheck": ["validateSpellCheck"],
|
|
25529
25581
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
25530
25582
|
"_tabIndex": ["validateTabIndex"],
|
|
25531
25583
|
"_touched": ["validateTouched"],
|
|
@@ -25560,6 +25612,7 @@ class KolTextarea {
|
|
|
25560
25612
|
"_required": [4],
|
|
25561
25613
|
"_rows": [1026],
|
|
25562
25614
|
"_shortKey": [1, "_short-key"],
|
|
25615
|
+
"_spellCheck": [4, "_spell-check"],
|
|
25563
25616
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
25564
25617
|
"_tabIndex": [2, "_tab-index"],
|
|
25565
25618
|
"_tooltipAlign": [1, "_tooltip-align"],
|