@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.js
CHANGED
|
@@ -2658,9 +2658,9 @@ var loglevel = {exports: {}};
|
|
|
2658
2658
|
}));
|
|
2659
2659
|
}(loglevel));
|
|
2660
2660
|
|
|
2661
|
-
var
|
|
2661
|
+
var m = loglevel.exports;
|
|
2662
2662
|
|
|
2663
|
-
const
|
|
2663
|
+
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.
|
|
2664
2664
|
|
|
2665
2665
|
import { register } from 'adopted-style-sheets';
|
|
2666
2666
|
import { defineCustomElements } from '...';
|
|
@@ -2670,7 +2670,7 @@ const Y=new Map,I=[],O=new Map,o$1={A11yUi:{CSS_STYLE_CACHE:Y,HYDRATED_HISTORY:I
|
|
|
2670
2670
|
.then(() => {
|
|
2671
2671
|
// run your app or website
|
|
2672
2672
|
})
|
|
2673
|
-
.catch(console.warn);`)),(typeof o$1.A11yUi.Themes[e]!="object"||o$1.A11yUi.Themes[e]===null)&&(o$1.A11yUi.Themes[e]={})
|
|
2673
|
+
.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{}
|
|
2674
2674
|
|
|
2675
2675
|
const alertTypeOptions = ['default', 'info', 'success', 'warning', 'error'];
|
|
2676
2676
|
const alertVariantOptions = ['card', 'msg'];
|
|
@@ -3745,9 +3745,9 @@ const koliBriQuerySelector = (selector, node) => querySelector(selector, node ||
|
|
|
3745
3745
|
const koliBriQuerySelectorAll = (selector, node) => querySelectorAll(selector, node || getDocument());
|
|
3746
3746
|
class KoliBriDevHelper {
|
|
3747
3747
|
}
|
|
3748
|
-
KoliBriDevHelper.getCssStyle =
|
|
3749
|
-
KoliBriDevHelper.patchTheme =
|
|
3750
|
-
KoliBriDevHelper.patchThemeTag =
|
|
3748
|
+
KoliBriDevHelper.getCssStyle = l;
|
|
3749
|
+
KoliBriDevHelper.patchTheme = k;
|
|
3750
|
+
KoliBriDevHelper.patchThemeTag = $;
|
|
3751
3751
|
KoliBriDevHelper.querySelector = koliBriQuerySelector;
|
|
3752
3752
|
KoliBriDevHelper.querySelectorAll = koliBriQuerySelectorAll;
|
|
3753
3753
|
KoliBriDevHelper.stringifyJson = stringifyJson;
|
|
@@ -4239,7 +4239,12 @@ const validateMsg = (component, value) => {
|
|
|
4239
4239
|
}
|
|
4240
4240
|
catch (e) {
|
|
4241
4241
|
}
|
|
4242
|
-
watchValidator(component, `_msg`, (value) => typeof value === '
|
|
4242
|
+
watchValidator(component, `_msg`, (value) => isObject$1(value) && typeof (value === null || value === void 0 ? void 0 : value._description) === 'string', new Set(['MsgPropType']), value, {
|
|
4243
|
+
defaultValue: {
|
|
4244
|
+
_description: '',
|
|
4245
|
+
_type: 'error',
|
|
4246
|
+
},
|
|
4247
|
+
});
|
|
4243
4248
|
});
|
|
4244
4249
|
};
|
|
4245
4250
|
|
|
@@ -4293,6 +4298,12 @@ const validateShow = (component, value, hooks) => {
|
|
|
4293
4298
|
watchBoolean(component, '_show', value, hooks);
|
|
4294
4299
|
};
|
|
4295
4300
|
|
|
4301
|
+
const validateSpellCheck = (component, value) => {
|
|
4302
|
+
watchBoolean(component, '_spellCheck', value, {
|
|
4303
|
+
defaultValue: undefined,
|
|
4304
|
+
});
|
|
4305
|
+
};
|
|
4306
|
+
|
|
4296
4307
|
const validateSuggestions = (component, value) => {
|
|
4297
4308
|
watchJsonArrayString(component, '_suggestions', (item) => typeof item === 'string' || typeof item === 'number', value, undefined, {
|
|
4298
4309
|
hooks: {
|
|
@@ -6137,11 +6148,15 @@ class InputController extends ControlledInputController {
|
|
|
6137
6148
|
validateTooltipAlign(this.component, value);
|
|
6138
6149
|
}
|
|
6139
6150
|
validateError(value) {
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6151
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
6152
|
+
this.validateMsg({
|
|
6153
|
+
_description: value,
|
|
6154
|
+
_type: 'error',
|
|
6155
|
+
});
|
|
6156
|
+
}
|
|
6157
|
+
else {
|
|
6158
|
+
this.validateMsg(undefined);
|
|
6159
|
+
}
|
|
6145
6160
|
}
|
|
6146
6161
|
validateHideError(value) {
|
|
6147
6162
|
validateHideError(this.component, value, {
|
|
@@ -6209,7 +6224,9 @@ class InputController extends ControlledInputController {
|
|
|
6209
6224
|
this.validateAccessKey(this.component._accessKey);
|
|
6210
6225
|
this.validateAdjustHeight(this.component._adjustHeight);
|
|
6211
6226
|
this.validateError(this.component._error);
|
|
6212
|
-
|
|
6227
|
+
if (this.component._msg) {
|
|
6228
|
+
this.validateMsg(this.component._msg);
|
|
6229
|
+
}
|
|
6213
6230
|
this.validateDisabled(this.component._disabled);
|
|
6214
6231
|
this.validateHideError(this.component._hideError);
|
|
6215
6232
|
this.validateHideLabel(this.component._hideLabel);
|
|
@@ -6449,18 +6466,18 @@ class KolCombobox {
|
|
|
6449
6466
|
render() {
|
|
6450
6467
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
6451
6468
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
6452
|
-
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: '
|
|
6469
|
+
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) => {
|
|
6453
6470
|
this.controller.onFacade.onFocus(event);
|
|
6454
6471
|
this.inputHasFocus = true;
|
|
6455
6472
|
}, onBlur: (event) => {
|
|
6456
6473
|
this.controller.onFacade.onBlur(event);
|
|
6457
6474
|
this.inputHasFocus = false;
|
|
6458
|
-
}, onChange: this.onChange.bind(this), onInput: this.onInput.bind(this), placeholder: this.state._placeholder })), hAsync("button", { key: '
|
|
6475
|
+
}, 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) &&
|
|
6459
6476
|
this._filteredSuggestions.length > 0 &&
|
|
6460
6477
|
this._filteredSuggestions.map((option, index) => (hAsync("li", { id: `option-${index}`, key: `-${index}`, ref: (el) => {
|
|
6461
6478
|
if (el)
|
|
6462
6479
|
this.refSuggestions[index] = el;
|
|
6463
|
-
}, "data-index": index, tabIndex: -1, role: "option", "aria-selected": this.state._value === option, onClick: (e) => {
|
|
6480
|
+
}, "data-index": index, tabIndex: -1, role: "option", "aria-selected": this.state._value === option ? 'true' : undefined, onClick: (e) => {
|
|
6464
6481
|
this.selectOption(e, option);
|
|
6465
6482
|
this.toggleListbox();
|
|
6466
6483
|
}, onMouseOver: () => {
|
|
@@ -7840,7 +7857,7 @@ class KolInputColor {
|
|
|
7840
7857
|
return (hAsync(Host, { key: '267d32979240084675613c62100026e9c887ec99', class: "kol-input-color" }, hAsync(KolInputTag, { key: '9b0bb20397e411dca2d205beef02ce115a60977f', class: {
|
|
7841
7858
|
color: true,
|
|
7842
7859
|
'hide-label': !!this.state._hideLabel,
|
|
7843
|
-
}, _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: '
|
|
7860
|
+
}, _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) => {
|
|
7844
7861
|
this.controller.onFacade.onFocus(event);
|
|
7845
7862
|
this.inputHasFocus = true;
|
|
7846
7863
|
}, onBlur: (event) => {
|
|
@@ -8216,7 +8233,7 @@ class KolInputDate {
|
|
|
8216
8233
|
return (hAsync(Host, { key: '023c36b654230fa048f8a42c481af8d66d719ff2', class: { 'kol-input-date': true, 'has-value': this.state._hasValue } }, hAsync(KolInputTag, { key: '8c62e80c2fb1d5d7556abf81c096973cb689c431', class: {
|
|
8217
8234
|
[this.state._type]: true,
|
|
8218
8235
|
'hide-label': !!this.state._hideLabel,
|
|
8219
|
-
}, _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: '
|
|
8236
|
+
}, _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) => {
|
|
8220
8237
|
this.controller.onFacade.onBlur(event);
|
|
8221
8238
|
this.inputHasFocus = false;
|
|
8222
8239
|
}, onFocus: (event) => {
|
|
@@ -8557,13 +8574,16 @@ class InputTextController extends InputTextEmailController {
|
|
|
8557
8574
|
this.hasError = false;
|
|
8558
8575
|
this.component = component;
|
|
8559
8576
|
}
|
|
8577
|
+
validateSpellCheck(value) {
|
|
8578
|
+
validateSpellCheck(this.component, value);
|
|
8579
|
+
}
|
|
8560
8580
|
validateType(value) {
|
|
8561
8581
|
watchValidator(this.component, '_type', (value) => typeof value === 'string' && inputTextTypeOptions.includes(value), new Set([`String {${inputTextTypeOptions.join(', ')}`]), value);
|
|
8562
8582
|
}
|
|
8563
8583
|
componentWillLoad() {
|
|
8564
8584
|
super.componentWillLoad();
|
|
8585
|
+
this.validateSpellCheck(this.component._spellCheck);
|
|
8565
8586
|
this.validateType(this.component._type);
|
|
8566
|
-
this.validateHasCounter(this.component._hasCounter);
|
|
8567
8587
|
}
|
|
8568
8588
|
}
|
|
8569
8589
|
|
|
@@ -8603,7 +8623,7 @@ class KolInputEmail {
|
|
|
8603
8623
|
return (hAsync(Host, { key: '0a6dae92f7eceb1477c24f41f975e5554cf88ea9', class: {
|
|
8604
8624
|
'kol-input-email': true,
|
|
8605
8625
|
'has-value': this.state._hasValue,
|
|
8606
|
-
} }, 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: '
|
|
8626
|
+
} }, 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) => {
|
|
8607
8627
|
this.controller.onFacade.onFocus(event);
|
|
8608
8628
|
this.inputHasFocus = true;
|
|
8609
8629
|
}, onBlur: (event) => {
|
|
@@ -8893,7 +8913,7 @@ class KolInputFile {
|
|
|
8893
8913
|
return (hAsync(Host, { key: 'e5a5bf2cb09d060fa8558b234e03a8a3772ab394', class: "kol-input-file" }, hAsync(KolInputTag, { key: '306dd041fd374663109d6e0e1354d3e334dd3652', class: {
|
|
8894
8914
|
file: true,
|
|
8895
8915
|
'hide-label': !!this.state._hideLabel,
|
|
8896
|
-
}, _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: '
|
|
8916
|
+
}, _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) => {
|
|
8897
8917
|
this.controller.onFacade.onFocus(event);
|
|
8898
8918
|
this.inputHasFocus = true;
|
|
8899
8919
|
}, onBlur: (event) => {
|
|
@@ -9201,7 +9221,7 @@ class KolInputNumber {
|
|
|
9201
9221
|
} }, hAsync(KolInputTag, { key: 'cca3c8727c315de0af6d0bfb46476b0ece3a590c', class: {
|
|
9202
9222
|
number: true,
|
|
9203
9223
|
'hide-label': !!this.state._hideLabel,
|
|
9204
|
-
}, _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: '
|
|
9224
|
+
}, _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) => {
|
|
9205
9225
|
this.controller.onFacade.onFocus(event);
|
|
9206
9226
|
this.inputHasFocus = true;
|
|
9207
9227
|
}, onBlur: (event) => {
|
|
@@ -9452,7 +9472,6 @@ class KolInputPassword {
|
|
|
9452
9472
|
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9453
9473
|
}
|
|
9454
9474
|
render() {
|
|
9455
|
-
var _a;
|
|
9456
9475
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
9457
9476
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
9458
9477
|
return (hAsync(Host, { key: 'e4bbac1ce3dd4e5d3f22168588a8932403474775', class: {
|
|
@@ -9461,17 +9480,17 @@ class KolInputPassword {
|
|
|
9461
9480
|
} }, hAsync(KolInputTag, { key: 'ea8e123c738e56d384e323e8896bae2d46fb39df', class: {
|
|
9462
9481
|
'hide-label': !!this.state._hideLabel,
|
|
9463
9482
|
password: true,
|
|
9464
|
-
}, _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: '
|
|
9483
|
+
}, _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) => {
|
|
9465
9484
|
this.controller.onFacade.onFocus(event);
|
|
9466
9485
|
this.inputHasFocus = true;
|
|
9467
9486
|
}, onBlur: (event) => {
|
|
9468
9487
|
this.controller.onFacade.onBlur(event);
|
|
9469
9488
|
this.inputHasFocus = false;
|
|
9470
|
-
} })), this._variant === 'visibility-toggle'
|
|
9489
|
+
} })), 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: {
|
|
9471
9490
|
onClick: () => {
|
|
9472
9491
|
this._passwordVisible = !this._passwordVisible;
|
|
9473
9492
|
},
|
|
9474
|
-
}, _hideLabel: true, _icons: this._passwordVisible ? 'codicon codicon-eye-closed' : 'codicon codicon-eye-watch' })) :
|
|
9493
|
+
}, _hideLabel: true, _icons: this._passwordVisible ? 'codicon codicon-eye-closed' : 'codicon codicon-eye-watch' })) : null))));
|
|
9475
9494
|
}
|
|
9476
9495
|
constructor(hostRef) {
|
|
9477
9496
|
registerInstance(this, hostRef);
|
|
@@ -10045,20 +10064,20 @@ class KolInputRange {
|
|
|
10045
10064
|
'hide-label': !!this.state._hideLabel,
|
|
10046
10065
|
}, _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: {
|
|
10047
10066
|
'--kolibri-input-range--input-number--width': `${this.state._max}`.length + 0.5 + 'em',
|
|
10048
|
-
} }, hAsync("input", Object.assign({ key: '
|
|
10067
|
+
} }, 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) => {
|
|
10049
10068
|
this.controller.onFacade.onFocus(event);
|
|
10050
10069
|
this.inputHasFocus = true;
|
|
10051
10070
|
}, onBlur: (event) => {
|
|
10052
10071
|
this.controller.onFacade.onBlur(event);
|
|
10053
10072
|
this.inputHasFocus = false;
|
|
10054
|
-
} })), hAsync("input", Object.assign({ key: '
|
|
10073
|
+
} })), 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) => {
|
|
10055
10074
|
this.controller.onFacade.onFocus(event);
|
|
10056
10075
|
this.inputHasFocus = true;
|
|
10057
10076
|
}, onBlur: (event) => {
|
|
10058
10077
|
this.controller.onFacade.onBlur(event);
|
|
10059
10078
|
this.inputHasFocus = false;
|
|
10060
10079
|
} }))), hasSuggestions && [
|
|
10061
|
-
hAsync("datalist", { key: '
|
|
10080
|
+
hAsync("datalist", { key: '9ac1ec64cf00ea72f0df8562b5951693c77953f1', id: `${this.state._id}-list` }, this.state._suggestions.map((option) => (hAsync("option", { value: option })))),
|
|
10062
10081
|
]))));
|
|
10063
10082
|
}
|
|
10064
10083
|
constructor(hostRef) {
|
|
@@ -10296,13 +10315,13 @@ class KolInputText {
|
|
|
10296
10315
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
10297
10316
|
const hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;
|
|
10298
10317
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
10299
|
-
return (hAsync(Host, { key: '
|
|
10318
|
+
return (hAsync(Host, { key: 'dfff639f5219d9a6b70417050414ae1114c3e426', class: {
|
|
10300
10319
|
'has-value': this.state._hasValue,
|
|
10301
10320
|
'kol-input-text': true,
|
|
10302
|
-
} }, hAsync(KolInputTag, { key: '
|
|
10321
|
+
} }, hAsync(KolInputTag, { key: 'b0b460bd253ce8e6b7b0c64167cf7b04914aa7ce', class: {
|
|
10303
10322
|
[this.state._type]: true,
|
|
10304
10323
|
'hide-label': !!this.state._hideLabel,
|
|
10305
|
-
}, _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: '
|
|
10324
|
+
}, _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) => {
|
|
10306
10325
|
this.controller.onFacade.onFocus(event);
|
|
10307
10326
|
this.inputHasFocus = true;
|
|
10308
10327
|
}, onBlur: (event) => {
|
|
@@ -10355,6 +10374,7 @@ class KolInputText {
|
|
|
10355
10374
|
this._readOnly = false;
|
|
10356
10375
|
this._required = false;
|
|
10357
10376
|
this._shortKey = undefined;
|
|
10377
|
+
this._spellCheck = undefined;
|
|
10358
10378
|
this._suggestions = undefined;
|
|
10359
10379
|
this._smartButton = undefined;
|
|
10360
10380
|
this._syncValueBySelector = undefined;
|
|
@@ -10445,6 +10465,9 @@ class KolInputText {
|
|
|
10445
10465
|
validateShortKey(value) {
|
|
10446
10466
|
this.controller.validateShortKey(value);
|
|
10447
10467
|
}
|
|
10468
|
+
validateSpellCheck(value) {
|
|
10469
|
+
this.controller.validateSpellCheck(value);
|
|
10470
|
+
}
|
|
10448
10471
|
validateSuggestions(value) {
|
|
10449
10472
|
this.controller.validateSuggestions(value);
|
|
10450
10473
|
}
|
|
@@ -10498,6 +10521,7 @@ class KolInputText {
|
|
|
10498
10521
|
"_readOnly": ["validateReadOnly"],
|
|
10499
10522
|
"_required": ["validateRequired"],
|
|
10500
10523
|
"_shortKey": ["validateShortKey"],
|
|
10524
|
+
"_spellCheck": ["validateSpellCheck"],
|
|
10501
10525
|
"_suggestions": ["validateSuggestions"],
|
|
10502
10526
|
"_smartButton": ["validateSmartButton"],
|
|
10503
10527
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
@@ -10534,6 +10558,7 @@ class KolInputText {
|
|
|
10534
10558
|
"_readOnly": [4, "_read-only"],
|
|
10535
10559
|
"_required": [4],
|
|
10536
10560
|
"_shortKey": [1, "_short-key"],
|
|
10561
|
+
"_spellCheck": [4, "_spell-check"],
|
|
10537
10562
|
"_suggestions": [1],
|
|
10538
10563
|
"_smartButton": [1, "_smart-button"],
|
|
10539
10564
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
@@ -10592,28 +10617,27 @@ class KolInputWc {
|
|
|
10592
10617
|
}
|
|
10593
10618
|
render() {
|
|
10594
10619
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
10595
|
-
const
|
|
10596
|
-
const
|
|
10597
|
-
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)));
|
|
10620
|
+
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;
|
|
10621
|
+
const showMsg = hasValidMsg && (this._touched === true || ((_c = this._msg) === null || _c === void 0 ? void 0 : _c._type) !== 'error');
|
|
10598
10622
|
const hasExpertSlot = showExpertSlot(this._label);
|
|
10599
10623
|
const hasHint = typeof this._hint === 'string' && this._hint.length > 0;
|
|
10600
10624
|
const useTooltopInsteadOfLabel = !hasExpertSlot && this._hideLabel;
|
|
10601
|
-
return (hAsync(Host, { key: '
|
|
10625
|
+
return (hAsync(Host, { key: 'f387b8c961abba887df0af3acdc992fdc780bf67', class: clsx('kol-input', this.getModifierClassNameByMsgType(showMsg), {
|
|
10602
10626
|
disabled: this._disabled === true,
|
|
10603
|
-
error:
|
|
10627
|
+
[((_d = this._msg) === null || _d === void 0 ? void 0 : _d._type) || 'error']: showMsg === true,
|
|
10604
10628
|
'read-only': this._readOnly === true,
|
|
10605
10629
|
required: this._required === true,
|
|
10606
10630
|
touched: this._touched === true,
|
|
10607
10631
|
'hidden-error': this._hideError === true,
|
|
10608
|
-
}) }, hAsync("label", { key: '
|
|
10632
|
+
}) }, 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: {
|
|
10609
10633
|
input: true,
|
|
10610
10634
|
'icon-left': typeof ((_e = this._icons) === null || _e === void 0 ? void 0 : _e.left) === 'object',
|
|
10611
10635
|
'icon-right': typeof ((_f = this._icons) === null || _f === void 0 ? void 0 : _f.right) === 'object',
|
|
10612
|
-
} }, ((_g = this._icons) === null || _g === void 0 ? void 0 : _g.left) && (hAsync(KolIconTag, { key: '
|
|
10636
|
+
} }, ((_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'))))));
|
|
10613
10637
|
}
|
|
10614
|
-
getModifierClassNameByMsgType() {
|
|
10638
|
+
getModifierClassNameByMsgType(showMsg) {
|
|
10615
10639
|
var _a, _b;
|
|
10616
|
-
if ((_a = this._msg) === null || _a === void 0 ? void 0 : _a._type) {
|
|
10640
|
+
if (showMsg && ((_a = this._msg) === null || _a === void 0 ? void 0 : _a._type)) {
|
|
10617
10641
|
return {
|
|
10618
10642
|
default: 'msg-type-default',
|
|
10619
10643
|
info: 'msg-type-info',
|
|
@@ -13526,6 +13550,31 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
13526
13550
|
});
|
|
13527
13551
|
}
|
|
13528
13552
|
|
|
13553
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
13554
|
+
// incorrect for RTL.
|
|
13555
|
+
function getWindowScrollBarX(element, rect) {
|
|
13556
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
13557
|
+
if (!rect) {
|
|
13558
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
13559
|
+
}
|
|
13560
|
+
return rect.left + leftScroll;
|
|
13561
|
+
}
|
|
13562
|
+
|
|
13563
|
+
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
13564
|
+
if (ignoreScrollbarX === void 0) {
|
|
13565
|
+
ignoreScrollbarX = false;
|
|
13566
|
+
}
|
|
13567
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
13568
|
+
const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
|
|
13569
|
+
// RTL <body> scrollbar.
|
|
13570
|
+
getWindowScrollBarX(documentElement, htmlRect));
|
|
13571
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
13572
|
+
return {
|
|
13573
|
+
x,
|
|
13574
|
+
y
|
|
13575
|
+
};
|
|
13576
|
+
}
|
|
13577
|
+
|
|
13529
13578
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
13530
13579
|
let {
|
|
13531
13580
|
elements,
|
|
@@ -13557,11 +13606,12 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
13557
13606
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13558
13607
|
}
|
|
13559
13608
|
}
|
|
13609
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
13560
13610
|
return {
|
|
13561
13611
|
width: rect.width * scale.x,
|
|
13562
13612
|
height: rect.height * scale.y,
|
|
13563
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
13564
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
13613
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
13614
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
13565
13615
|
};
|
|
13566
13616
|
}
|
|
13567
13617
|
|
|
@@ -13569,16 +13619,6 @@ function getClientRects(element) {
|
|
|
13569
13619
|
return Array.from(element.getClientRects());
|
|
13570
13620
|
}
|
|
13571
13621
|
|
|
13572
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
13573
|
-
// incorrect for RTL.
|
|
13574
|
-
function getWindowScrollBarX(element, rect) {
|
|
13575
|
-
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
13576
|
-
if (!rect) {
|
|
13577
|
-
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
13578
|
-
}
|
|
13579
|
-
return rect.left + leftScroll;
|
|
13580
|
-
}
|
|
13581
|
-
|
|
13582
13622
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
13583
13623
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
13584
13624
|
function getDocumentRect(element) {
|
|
@@ -13653,9 +13693,10 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
13653
13693
|
} else {
|
|
13654
13694
|
const visualOffsets = getVisualOffsets(element);
|
|
13655
13695
|
rect = {
|
|
13656
|
-
...clippingAncestor,
|
|
13657
13696
|
x: clippingAncestor.x - visualOffsets.x,
|
|
13658
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
13697
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
13698
|
+
width: clippingAncestor.width,
|
|
13699
|
+
height: clippingAncestor.height
|
|
13659
13700
|
};
|
|
13660
13701
|
}
|
|
13661
13702
|
return rectToClientRect(rect);
|
|
@@ -13765,17 +13806,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
13765
13806
|
offsets.x = getWindowScrollBarX(documentElement);
|
|
13766
13807
|
}
|
|
13767
13808
|
}
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
const htmlRect = documentElement.getBoundingClientRect();
|
|
13772
|
-
htmlY = htmlRect.top + scroll.scrollTop;
|
|
13773
|
-
htmlX = htmlRect.left + scroll.scrollLeft -
|
|
13774
|
-
// RTL <body> scrollbar.
|
|
13775
|
-
getWindowScrollBarX(documentElement, htmlRect);
|
|
13776
|
-
}
|
|
13777
|
-
const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;
|
|
13778
|
-
const y = rect.top + scroll.scrollTop - offsets.y - htmlY;
|
|
13809
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
13810
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
13811
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
13779
13812
|
return {
|
|
13780
13813
|
x,
|
|
13781
13814
|
y,
|
|
@@ -14558,7 +14591,7 @@ class KolSelect {
|
|
|
14558
14591
|
form: this.host,
|
|
14559
14592
|
ref: this.selectRef,
|
|
14560
14593
|
});
|
|
14561
|
-
} }, hAsync("input", { key: '146ff341cfd1297a88aa014c307ba776807d1afd', type: "submit", hidden: true }), hAsync("select", Object.assign({ key: '
|
|
14594
|
+
} }, 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) => {
|
|
14562
14595
|
this.controller.onFacade.onFocus(event);
|
|
14563
14596
|
this.inputHasFocus = true;
|
|
14564
14597
|
}, onBlur: (event) => {
|
|
@@ -14913,20 +14946,20 @@ class KolSingleSelect {
|
|
|
14913
14946
|
render() {
|
|
14914
14947
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
14915
14948
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
14916
|
-
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: '
|
|
14949
|
+
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) => {
|
|
14917
14950
|
this.controller.onFacade.onFocus(event);
|
|
14918
14951
|
this.inputHasFocus = true;
|
|
14919
14952
|
}, onBlur: (event) => {
|
|
14920
14953
|
this.controller.onFacade.onBlur(event);
|
|
14921
14954
|
this.inputHasFocus = false;
|
|
14922
|
-
}, placeholder: this.state._placeholder })), this._inputValue && (hAsync(KolIconTag, { key: '
|
|
14955
|
+
}, placeholder: this.state._placeholder })), this._inputValue && (hAsync(KolIconTag, { key: '8cff7aaaa6727a1cface8ba6ff14b2f46c4f379d', _icons: "codicon codicon-close", _label: translate('kol-delete-selection'), onClick: () => {
|
|
14923
14956
|
var _a;
|
|
14924
14957
|
this.clearSelection();
|
|
14925
14958
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14926
|
-
}, class: "single-select__delete" })), hAsync("button", { key: '
|
|
14959
|
+
}, 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) => {
|
|
14927
14960
|
if (el)
|
|
14928
14961
|
this.refOptions[index] = el;
|
|
14929
|
-
}, tabIndex: -1, role: "option", "aria-selected": this.state._value === option.value, onClick: (event) => {
|
|
14962
|
+
}, tabIndex: -1, role: "option", "aria-selected": this.state._value === option.value ? 'true' : undefined, onClick: (event) => {
|
|
14930
14963
|
var _a;
|
|
14931
14964
|
this.selectOption(event, option);
|
|
14932
14965
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -24607,7 +24640,7 @@ class KolTableStateless {
|
|
|
24607
24640
|
let max = 0;
|
|
24608
24641
|
horizontalHeaders.forEach((row) => {
|
|
24609
24642
|
let count = 0;
|
|
24610
|
-
row.forEach((col) => { var _a; return (count += (_a = col.colSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24643
|
+
Array.isArray(row) && row.forEach((col) => { var _a; return (count += (_a = col.colSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24611
24644
|
if (max < count) {
|
|
24612
24645
|
max = count;
|
|
24613
24646
|
}
|
|
@@ -24622,7 +24655,7 @@ class KolTableStateless {
|
|
|
24622
24655
|
let max = 0;
|
|
24623
24656
|
verticalHeaders.forEach((col) => {
|
|
24624
24657
|
let count = 0;
|
|
24625
|
-
col.forEach((row) => { var _a; return (count += (_a = row.rowSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24658
|
+
Array.isArray(col) && col.forEach((row) => { var _a; return (count += (_a = row.rowSpan) !== null && _a !== void 0 ? _a : 1); });
|
|
24626
24659
|
if (max < count) {
|
|
24627
24660
|
max = count;
|
|
24628
24661
|
}
|
|
@@ -24635,34 +24668,34 @@ class KolTableStateless {
|
|
|
24635
24668
|
}
|
|
24636
24669
|
return max;
|
|
24637
24670
|
}
|
|
24638
|
-
|
|
24639
|
-
const
|
|
24671
|
+
getThePrimaryHeadersWithKeysIfExists(headers) {
|
|
24672
|
+
const primaryHeadersWithKeys = [];
|
|
24640
24673
|
headers.forEach((cells) => {
|
|
24641
24674
|
cells.forEach((cell) => {
|
|
24642
24675
|
if (typeof cell.key === 'string') {
|
|
24643
|
-
|
|
24676
|
+
primaryHeadersWithKeys.push(cell);
|
|
24644
24677
|
}
|
|
24645
24678
|
});
|
|
24646
24679
|
});
|
|
24647
|
-
return
|
|
24680
|
+
return primaryHeadersWithKeys;
|
|
24648
24681
|
}
|
|
24649
|
-
|
|
24682
|
+
getPrimaryHeaders(headers) {
|
|
24650
24683
|
var _a, _b;
|
|
24651
|
-
let
|
|
24684
|
+
let primaryHeadersWithKeys = this.getThePrimaryHeadersWithKeysIfExists((_a = headers.horizontal) !== null && _a !== void 0 ? _a : []);
|
|
24652
24685
|
this.horizontal = true;
|
|
24653
|
-
if (
|
|
24654
|
-
|
|
24655
|
-
if (
|
|
24686
|
+
if (primaryHeadersWithKeys.length === 0) {
|
|
24687
|
+
primaryHeadersWithKeys = this.getThePrimaryHeadersWithKeysIfExists((_b = headers.vertical) !== null && _b !== void 0 ? _b : []);
|
|
24688
|
+
if (primaryHeadersWithKeys.length > 0) {
|
|
24656
24689
|
this.horizontal = false;
|
|
24657
24690
|
}
|
|
24658
24691
|
}
|
|
24659
|
-
return
|
|
24692
|
+
return primaryHeadersWithKeys;
|
|
24660
24693
|
}
|
|
24661
24694
|
createDataField(data, headers, isFoot) {
|
|
24662
24695
|
var _a;
|
|
24663
24696
|
headers.horizontal = Array.isArray(headers === null || headers === void 0 ? void 0 : headers.horizontal) ? headers.horizontal : [];
|
|
24664
24697
|
headers.vertical = Array.isArray(headers === null || headers === void 0 ? void 0 : headers.vertical) ? headers.vertical : [];
|
|
24665
|
-
const primaryHeader = this.
|
|
24698
|
+
const primaryHeader = this.getPrimaryHeaders(headers);
|
|
24666
24699
|
const maxCols = this.getNumberOfCols(headers.horizontal, data);
|
|
24667
24700
|
let maxRows = this.getNumberOfRows(headers.vertical, data);
|
|
24668
24701
|
let startRow = 0;
|
|
@@ -24824,6 +24857,13 @@ class KolTableStateless {
|
|
|
24824
24857
|
}
|
|
24825
24858
|
} })), hAsync(KolTooltipWcTag, { "aria-hidden": "true", class: "input-tooltip", _align: "right", _id: `${translationKey}-label`, _label: label }))));
|
|
24826
24859
|
}
|
|
24860
|
+
renderHeaderTdCell() {
|
|
24861
|
+
return (hAsync(Fragment, null, Array.isArray(this.state._headerCells.horizontal) &&
|
|
24862
|
+
this.state._headerCells.horizontal.length > 0 &&
|
|
24863
|
+
Array.isArray(this.state._headerCells.vertical) &&
|
|
24864
|
+
this.state._headerCells.vertical.length > 0 &&
|
|
24865
|
+
Array.isArray(this.state._headerCells.horizontal) && (hAsync("td", { "aria-hidden": "true", colSpan: this.state._headerCells.vertical.length, rowSpan: this.state._headerCells.horizontal.length }))));
|
|
24866
|
+
}
|
|
24827
24867
|
renderHeadingCell(cell, rowIndex, colIndex, isVertical) {
|
|
24828
24868
|
let ariaSort = undefined;
|
|
24829
24869
|
let sortButtonIcon = 'codicon codicon-fold';
|
|
@@ -24855,9 +24895,11 @@ class KolTableStateless {
|
|
|
24855
24895
|
} })) : (cell.label)));
|
|
24856
24896
|
}
|
|
24857
24897
|
renderSpacer(variant, cellDefs) {
|
|
24858
|
-
var _a;
|
|
24859
|
-
const
|
|
24860
|
-
|
|
24898
|
+
var _a, _b;
|
|
24899
|
+
const verticalHeaderColpan = ((_a = this.state._headerCells.vertical) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
24900
|
+
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);
|
|
24901
|
+
const selectionCell = this.state._selection ? 1 : 0;
|
|
24902
|
+
return (hAsync("tr", { "aria-hidden": "true", class: `${variant}-spacer` }, hAsync("td", { colSpan: verticalHeaderColpan + colspan + selectionCell })));
|
|
24861
24903
|
}
|
|
24862
24904
|
renderFoot() {
|
|
24863
24905
|
if (!this.state._dataFoot || this.state._dataFoot.length === 0) {
|
|
@@ -24872,28 +24914,29 @@ class KolTableStateless {
|
|
|
24872
24914
|
render() {
|
|
24873
24915
|
const dataField = this.createDataField(this.state._data, this.state._headerCells);
|
|
24874
24916
|
this.checkboxRefs = [];
|
|
24875
|
-
return (hAsync(Host, { key: '
|
|
24917
|
+
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: {
|
|
24876
24918
|
minWidth: this.state._minWidth,
|
|
24877
|
-
} }, hAsync("div", { key: '
|
|
24878
|
-
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(),
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
24890
|
-
|
|
24891
|
-
|
|
24892
|
-
|
|
24893
|
-
|
|
24894
|
-
|
|
24919
|
+
} }, 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' }, [
|
|
24920
|
+
this.state._headerCells.horizontal.map((cols, rowIndex) => (hAsync("tr", { key: `thead-${rowIndex}` }, this.state._selection && this.renderHeadingSelectionCell(), rowIndex === 0 && this.renderHeaderTdCell(), Array.isArray(cols) &&
|
|
24921
|
+
cols.map((cell, colIndex) => {
|
|
24922
|
+
if (cell.asTd === true) {
|
|
24923
|
+
return (hAsync("td", { key: `thead-${rowIndex}-${colIndex}-${cell.label}`, class: {
|
|
24924
|
+
[cell.textAlign]: typeof cell.textAlign === 'string' && cell.textAlign.length > 0,
|
|
24925
|
+
}, colSpan: cell.colSpan, rowSpan: cell.rowSpan, style: {
|
|
24926
|
+
textAlign: cell.textAlign,
|
|
24927
|
+
width: cell.width,
|
|
24928
|
+
}, ref: typeof cell.render === 'function'
|
|
24929
|
+
? (el) => {
|
|
24930
|
+
this.cellRender(cell, el);
|
|
24931
|
+
}
|
|
24932
|
+
: undefined }, typeof cell.render !== 'function' ? cell.label : ''));
|
|
24933
|
+
}
|
|
24934
|
+
else {
|
|
24935
|
+
return this.renderHeadingCell(cell, rowIndex, colIndex, false);
|
|
24936
|
+
}
|
|
24937
|
+
})))),
|
|
24895
24938
|
this.renderSpacer('head', this.state._headerCells.horizontal),
|
|
24896
|
-
])), hAsync("tbody", { key: '
|
|
24939
|
+
])), hAsync("tbody", { key: 'f0de4de3fd33fced22b3c29062357795409589be' }, dataField.map((row, rowIndex) => this.renderTableRow(row, rowIndex, true))), this.renderFoot()))));
|
|
24897
24940
|
}
|
|
24898
24941
|
get host() { return getElement(this); }
|
|
24899
24942
|
static get watchers() { return {
|
|
@@ -25289,6 +25332,9 @@ class TextareaController extends InputIconController {
|
|
|
25289
25332
|
validateRows(value) {
|
|
25290
25333
|
validateRows(this.component, value);
|
|
25291
25334
|
}
|
|
25335
|
+
validateSpellCheck(value) {
|
|
25336
|
+
validateSpellCheck(this.component, value);
|
|
25337
|
+
}
|
|
25292
25338
|
validateValue(value) {
|
|
25293
25339
|
watchString(this.component, '_value', value, {
|
|
25294
25340
|
hooks: {
|
|
@@ -25306,6 +25352,7 @@ class TextareaController extends InputIconController {
|
|
|
25306
25352
|
this.validateResize(this.component._resize);
|
|
25307
25353
|
this.validateRequired(this.component._required);
|
|
25308
25354
|
this.validateRows(this.component._rows);
|
|
25355
|
+
this.validateSpellCheck(this.component._spellCheck);
|
|
25309
25356
|
this.validateValue(this.component._value);
|
|
25310
25357
|
}
|
|
25311
25358
|
}
|
|
@@ -25337,7 +25384,7 @@ class KolTextarea {
|
|
|
25337
25384
|
render() {
|
|
25338
25385
|
const { ariaDescribedBy } = getRenderStates(this.state);
|
|
25339
25386
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
25340
|
-
return (hAsync(Host, { key: '
|
|
25387
|
+
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) => {
|
|
25341
25388
|
this.controller.onFacade.onFocus(event);
|
|
25342
25389
|
this.inputHasFocus = true;
|
|
25343
25390
|
}, onBlur: (event) => {
|
|
@@ -25383,6 +25430,7 @@ class KolTextarea {
|
|
|
25383
25430
|
this._required = false;
|
|
25384
25431
|
this._rows = undefined;
|
|
25385
25432
|
this._shortKey = undefined;
|
|
25433
|
+
this._spellCheck = undefined;
|
|
25386
25434
|
this._syncValueBySelector = undefined;
|
|
25387
25435
|
this._tabIndex = undefined;
|
|
25388
25436
|
this._tooltipAlign = 'top';
|
|
@@ -25475,6 +25523,9 @@ class KolTextarea {
|
|
|
25475
25523
|
validateShortKey(value) {
|
|
25476
25524
|
this.controller.validateShortKey(value);
|
|
25477
25525
|
}
|
|
25526
|
+
validateSpellCheck(value) {
|
|
25527
|
+
this.controller.validateSpellCheck(value);
|
|
25528
|
+
}
|
|
25478
25529
|
validateSyncValueBySelector(value) {
|
|
25479
25530
|
this.controller.validateSyncValueBySelector(value);
|
|
25480
25531
|
}
|
|
@@ -25530,6 +25581,7 @@ class KolTextarea {
|
|
|
25530
25581
|
"_required": ["validateRequired"],
|
|
25531
25582
|
"_rows": ["validateRows"],
|
|
25532
25583
|
"_shortKey": ["validateShortKey"],
|
|
25584
|
+
"_spellCheck": ["validateSpellCheck"],
|
|
25533
25585
|
"_syncValueBySelector": ["validateSyncValueBySelector"],
|
|
25534
25586
|
"_tabIndex": ["validateTabIndex"],
|
|
25535
25587
|
"_touched": ["validateTouched"],
|
|
@@ -25564,6 +25616,7 @@ class KolTextarea {
|
|
|
25564
25616
|
"_required": [4],
|
|
25565
25617
|
"_rows": [1026],
|
|
25566
25618
|
"_shortKey": [1, "_short-key"],
|
|
25619
|
+
"_spellCheck": [4, "_spell-check"],
|
|
25567
25620
|
"_syncValueBySelector": [1, "_sync-value-by-selector"],
|
|
25568
25621
|
"_tabIndex": [2, "_tab-index"],
|
|
25569
25622
|
"_tooltipAlign": [1, "_tooltip-align"],
|