@public-ui/hydrate 3.1.2 → 3.1.3
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 +150 -63
- package/dist/index.mjs +150 -63
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function _mergeNamespaces(n, m) {
|
|
|
146
146
|
|
|
147
147
|
const NAMESPACE = 'kolibri';
|
|
148
148
|
const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
149
|
-
const Env = /* kolibri */ {"kolibriVersion":"3.1.
|
|
149
|
+
const Env = /* kolibri */ {"kolibriVersion":"3.1.3"};
|
|
150
150
|
|
|
151
151
|
function getDefaultExportFromCjs (x) {
|
|
152
152
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -522,7 +522,7 @@ function requireLoglevel () {
|
|
|
522
522
|
var loglevelExports = requireLoglevel();
|
|
523
523
|
var h$1 = /*@__PURE__*/getDefaultExportFromCjs(loglevelExports);
|
|
524
524
|
|
|
525
|
-
const
|
|
525
|
+
const Y=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV==="test",s="VITEST"in t,o="JEST_WORKER_ID"in t,a="PLAYWRIGHT_TEST_BASE_URL"in t,r=t.CI==="true",i=t.TEST==="true"||t.IS_TEST==="true",c=typeof navigator<"u"&&navigator.webdriver===true,y=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return e||s||o||a||r||i||c||y},n$1={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:Y(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map}};let f$1=false;const k=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,G=t=>typeof t=="string"&&k.test(t),S=t=>{if(!G(t))throw new Error(`[Theming] The theme identifier "${typeof t=="string"?t:""}" (Type: ${typeof t}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},A=t=>t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),x=(t,e,s,o)=>T(t,e,s,o),T=(t,e,s,o)=>{o=o??{},o.append=o.append??false,S(t),!f$1&&(f$1=true,h$1.warn(`[Theming] The theme process is locked. This means that the theme "${t}" should not be patched.
|
|
526
526
|
|
|
527
527
|
import { register } from 'adopted-style-sheets';
|
|
528
528
|
import { defineCustomElements } from '...';
|
|
@@ -532,7 +532,7 @@ const $=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV
|
|
|
532
532
|
.then(() => {
|
|
533
533
|
// run your app or website
|
|
534
534
|
})
|
|
535
|
-
.catch(console.warn);`));let
|
|
535
|
+
.catch(console.warn);`));let a=n$1.A11yUi.THEMES.get(t);if(a||(a=new Map,n$1.A11yUi.THEMES.set(t,a)),o.append&&a.has(e)){const r=a.get(e);a.set(e,A(`${r}${s}`));}else a.set(e,A(s));},K=(t,e,s,o)=>g(t,e,s,o),g=(t,e,s,o)=>(S(t),typeof e=="object"&&e!==null&&Object.getOwnPropertyNames(e).forEach(a=>{const r=e[a],i=a.toLowerCase(),c=typeof o?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(a)?o.transformTagName(i):a;typeof r=="string"&&r.length>0&&T(t,c.toUpperCase(),r,s);}),t),b=t=>{if(t instanceof HTMLElement){if(typeof t.dataset.theme=="string")return t;{let e=t.parentNode;for(;e instanceof ShadowRoot;)e=e.host;return b(e)}}else return null},C=(t={})=>t.themeEncroachCss==="false"||t.themeReset==="true"?false:{mode:t.themeEncroachCssMode==="after"||t.themeEncroachCssMode==="before"?t.themeEncroachCssMode:"before"},U=()=>typeof n$1.A11yUi.Theme=="object"&&n$1.A11yUi.Theme!==null&&typeof n$1.A11yUi.Theme.cache=="boolean"&&typeof n$1.A11yUi.Theme.encroachCss=="object"&&n$1.A11yUi.Theme.encroachCss!==null&&typeof n$1.A11yUi.Theme.encroachCss.mode=="string"&&typeof n$1.A11yUi.Theme.name=="string",w=t=>{if(U())return n$1.A11yUi.Theme;{const e={cache:true,encroachCss:C(),loglevel:"silent",mode:"csr",name:null},s=b(t);return s instanceof HTMLElement&&(e.cache=s.dataset.themeCache!=="false",e.encroachCss=C(s.dataset),e.loglevel=s.dataset.themeLoglevel==="debug"?s.dataset.themeLoglevel:"silent",e.mode=s.dataset.themeMode==="ssr"?s.dataset.themeMode:"csr",e.name=s.dataset.theme||null),e}};const v=new Set,N=new Map,X=/--[^;]+/g,Z=/:/,ee=typeof MutationObserver<"u";let L=25,R=()=>{L=Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const te=(t,e)=>{let s=e.match(X);if(Array.isArray(s)){s=s.filter(a=>Z.test(a));const o=document.createElement("style");o.innerHTML=`.${t} {${s.join(";")}}`,document.querySelector("head")?.appendChild(o);}v.add(t);},d=(t,e)=>{const s=n$1.A11yUi.THEMES.get(t);if(s instanceof Map){const o=s.get(e);if(o!==void 0)return o}return ""},se=t=>{const e=t.firstChild;if(!(!(e instanceof HTMLStyleElement)||e.dataset.themingFallback!==void 0))for(const s of Array.from(t.childNodes))if(s instanceof HTMLStyleElement&&s.tagName==="STYLE"&&s.dataset.themingFallback===void 0)t.removeChild(s);else break},oe=(t,e)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=e.filter(o=>typeof o=="string"&&o.length>0).map(o=>{let a=N.get(o);return a||(a=new CSSStyleSheet,a.replaceSync(o),N.set(o,a)),a});t.adoptedStyleSheets=s;}catch{for(let o=e.length-1;o>=0;o--){const a=e[o];if(typeof a!="string"||a.length===0)continue;const r=e.length-1-o,i=document.createElement("style");switch(i.dataset.themingFallback="",r){case 4:i.dataset.themingBaseA11y="";break;case 3:i.dataset.themingBaseGlobal="";break;case 2:i.dataset.themingBaseComponent="";break;case 1:i.dataset.themingCustomGlobal="";break;case 0:i.dataset.themingCustomComponent="";break;default:i.dataset.themingUnknown="";break}i.innerHTML=a,t.insertBefore(i,t.firstChild);}}},ae=(t,e,s)=>{if(s===false||s?.mode!=="before"&&s?.mode!=="after")return;const o=Array.from(t.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE");let a;try{a=Array.from(t.adoptedStyleSheets);}catch{a=[];}if(!(o.length===0&&a.length===0))if(s.mode==="before"){const r=[...a.map(i=>Array.from(i.cssRules).map(c=>c.cssText).join("")),...o.map(i=>i.innerHTML)];e.unshift(...r);}else o.forEach(r=>e.push(r.innerHTML)),a.forEach(r=>e.push(Array.from(r.cssRules).map(i=>i.cssText).join("")));},ne=(t,e,s)=>{const o=e.name||"default";let a;try{if(t.shadowRoot===null)throw new Error("ShadowRoot is null");a=t.shadowRoot;}catch{a=t;}const r=n$1.A11yUi.CSS_STYLE_CACHE.get(o)?.get(t.tagName);if(r)_(t,a,r,s);else {const i=d(o,"PROPERTIES"),c=d(o,"GLOBAL"),y=d(o,t.tagName);v.has(o)===false&&te(o,c);const u=[i,c,y];if(ae(a,u,e.encroachCss),e.cache===true){let m=n$1.A11yUi.CSS_STYLE_CACHE.get(o);m||(m=new Map,n$1.A11yUi.CSS_STYLE_CACHE.set(o,m)),m.set(t.tagName,u);}_(t,a,u,s);}},_=(t,e,s,o)=>{const a=n$1.A11yUi.Theme?.loglevel==="debug",r=a?performance.now():0;if(se(e),oe(e,s),me(t),requestAnimationFrame(o),a){const i=performance.now()-r,c=n$1.A11yUi.PERFORMANCE_MEASURES.get(t.tagName);c?(c.count+=1,c.totalTime+=i):n$1.A11yUi.PERFORMANCE_MEASURES.set(t.tagName,{count:1,totalTime:i});}},O=t=>{const e=n$1.A11yUi.STYLING_TASK_QUEUE.get(t);if(e){const{resetCss:s,themeDetails:o}=e;ne(t,o,s);}},re=100;let E=(t,e=0)=>{if(e>=re)return;const s=setTimeout(()=>{clearTimeout(s),t.classList.contains("hydrated")?O(t):E(t,e+1);},L);};const ie={attributes:true,attributeFilter:["class"],childList:false,subtree:false},ce={attributes:true,attributeFilter:[],childList:false,subtree:false},I=ee?new MutationObserver((t,e)=>{const s=[];for(const o of t){const a=o.target;a.classList.contains("hydrated")&&n$1.A11yUi.STYLING_TASK_QUEUE.has(a)&&(O(a),s.push(a));}for(const o of s)e.observe(o,ce);}):null;I&&(E=t=>I.observe(t,ie),R=()=>{});const H=new Map;let P=(t,e)=>{if(e){const a=H.get(e);if(a!==void 0)return a}const s=getComputedStyle(t).getPropertyValue("--theme-visibility-delay").trim();let o;if(s.endsWith("ms"))o=parseFloat(s);else if(s.endsWith("s"))o=parseFloat(s)*1e3;else {const a=parseFloat(s);o=isNaN(a)?0:a;}return e&&H.set(e,o),o};n$1.A11yUi.IS_TEST_ENVIRONMENT&&(P=()=>0);const $=(t,e)=>{t.style.setProperty("visibility",e),t.dataset.themed="";},le=(t,e)=>{const s=t.style.visibility||null,o=e.name||"default";n$1.A11yUi.STYLING_TASK_QUEUE.set(t,{resetCss:()=>{const a=P(t,o);a>0?setTimeout(()=>{$(t,s);},a):$(t,s);},themeDetails:e}),t.style.setProperty("visibility","hidden","important"),E(t);},me=t=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(t),R();},he=(t,e)=>{le(t,{...n$1.A11yUi.Theme,...e});};
|
|
536
536
|
|
|
537
537
|
var KeyEnum;
|
|
538
538
|
(function (KeyEnum) {
|
|
@@ -1953,9 +1953,9 @@ KoliBriUtils.executionLock = false;
|
|
|
1953
1953
|
KoliBriUtils.cache = new Map();
|
|
1954
1954
|
class KoliBriDevHelper {
|
|
1955
1955
|
}
|
|
1956
|
-
KoliBriDevHelper.getCssStyle =
|
|
1957
|
-
KoliBriDevHelper.patchTheme =
|
|
1958
|
-
KoliBriDevHelper.patchThemeTag =
|
|
1956
|
+
KoliBriDevHelper.getCssStyle = d;
|
|
1957
|
+
KoliBriDevHelper.patchTheme = K;
|
|
1958
|
+
KoliBriDevHelper.patchThemeTag = x;
|
|
1959
1959
|
KoliBriDevHelper.querySelector = koliBriQuerySelector;
|
|
1960
1960
|
KoliBriDevHelper.querySelectorAll = koliBriQuerySelectorAll;
|
|
1961
1961
|
KoliBriDevHelper.stringifyJson = stringifyJson;
|
|
@@ -2792,7 +2792,7 @@ var appGlobalScript = () => {
|
|
|
2792
2792
|
setMode((elm) => {
|
|
2793
2793
|
try {
|
|
2794
2794
|
if (elm.shadowRoot instanceof ShadowRoot) {
|
|
2795
|
-
|
|
2795
|
+
he(elm, w(elm));
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
catch (error) {
|
|
@@ -15230,7 +15230,14 @@ function linkify (state, silent) {
|
|
|
15230
15230
|
if (url.length <= proto.length) return false
|
|
15231
15231
|
|
|
15232
15232
|
// disallow '*' at the end of the link (conflicts with emphasis)
|
|
15233
|
-
|
|
15233
|
+
// do manual backsearch to avoid perf issues with regex /\*+$/ on "****...****a".
|
|
15234
|
+
let urlEnd = url.length;
|
|
15235
|
+
while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 0x2A/* * */) {
|
|
15236
|
+
urlEnd--;
|
|
15237
|
+
}
|
|
15238
|
+
if (urlEnd !== url.length) {
|
|
15239
|
+
url = url.slice(0, urlEnd);
|
|
15240
|
+
}
|
|
15234
15241
|
|
|
15235
15242
|
const fullUrl = state.md.normalizeLink(url);
|
|
15236
15243
|
if (!state.md.validateLink(fullUrl)) return false
|
|
@@ -19139,8 +19146,13 @@ class AssociatedInputController {
|
|
|
19139
19146
|
|
|
19140
19147
|
class KolButtonWc {
|
|
19141
19148
|
async focus() {
|
|
19142
|
-
|
|
19143
|
-
|
|
19149
|
+
return new Promise((resolve) => {
|
|
19150
|
+
requestAnimationFrame(() => {
|
|
19151
|
+
var _a;
|
|
19152
|
+
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19153
|
+
resolve();
|
|
19154
|
+
});
|
|
19155
|
+
});
|
|
19144
19156
|
}
|
|
19145
19157
|
async kolFocus() {
|
|
19146
19158
|
return this.focus();
|
|
@@ -19152,14 +19164,14 @@ class KolButtonWc {
|
|
|
19152
19164
|
const badgeText = this.state._accessKey || this.state._shortKey;
|
|
19153
19165
|
const isDisabled = this.state._disabled === true;
|
|
19154
19166
|
const hideLabel = this.state._hideLabel === true;
|
|
19155
|
-
return (hAsync(Host, { key: '
|
|
19167
|
+
return (hAsync(Host, { key: '0603a5a5e4c11a0fd65217ab5c631e70e0d3a558' }, hAsync("button", { key: '3d4b6d488067c3e0c1c1c5b275697826b2edad84', ref: (ref) => (this.buttonRef = ref), accessKey: this.state._accessKey, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-haspopup": this._ariaHasPopup, "aria-keyshortcuts": this.state._shortKey, "aria-label": hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: clsx('kol-button', {
|
|
19156
19168
|
'kol-button--disabled': isDisabled,
|
|
19157
19169
|
[`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
|
|
19158
19170
|
'kol-button--inline': this.state._inline === true,
|
|
19159
19171
|
'kol-button--standalone': this.state._inline === false,
|
|
19160
19172
|
'kol-button--hide-label': hideLabel,
|
|
19161
19173
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
19162
|
-
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: '
|
|
19174
|
+
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: '4e114c9fd123888eb7d62a4fb9f052a563661ae3', class: "kol-button__text", badgeText: badgeText, icons: this.state._icons, hideLabel: hideLabel, label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: 'cac7750b3da0c8903c4376eea62cdd4d2887f578', name: "expert", slot: "expert" }))), hideLabel && (hAsync(KolTooltipWcTag, { key: '97fc211fdcfc11ae33a75cfcf423b923d67fe937', ref: (ref) => (this.tooltipRef = ref), "aria-hidden": "true", hidden: hasExpertSlot, class: "kol-button__tooltip", _badgeText: badgeText, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' }))));
|
|
19163
19175
|
}
|
|
19164
19176
|
constructor(hostRef) {
|
|
19165
19177
|
registerInstance(this, hostRef);
|
|
@@ -19960,8 +19972,13 @@ class KolCombobox {
|
|
|
19960
19972
|
return this.state._value;
|
|
19961
19973
|
}
|
|
19962
19974
|
async focus() {
|
|
19963
|
-
|
|
19964
|
-
|
|
19975
|
+
return new Promise((resolve) => {
|
|
19976
|
+
requestAnimationFrame(() => {
|
|
19977
|
+
var _a;
|
|
19978
|
+
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19979
|
+
resolve();
|
|
19980
|
+
});
|
|
19981
|
+
});
|
|
19965
19982
|
}
|
|
19966
19983
|
async kolFocus() {
|
|
19967
19984
|
return this.focus();
|
|
@@ -20071,15 +20088,15 @@ class KolCombobox {
|
|
|
20071
20088
|
}
|
|
20072
20089
|
render() {
|
|
20073
20090
|
const isDisabled = this.state._disabled === true;
|
|
20074
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
20091
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'dd543c0596376f0d7402c6f0cd26ecb7f71dd866' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '8398ee5c49f193b11395e90c5b5594383ee465df', state: this.state }, hAsync("div", { key: '918b0b96efac30bd25ec3e9f104e796afbcbe4c2', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: '2a2f79a79a893d9746ebc87b4d0920327ffbf869' }, this.getInputProps())), this.state._value && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '6f014f249a8c5e14ee23d8cdbc4dd340f04e354c', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _disabled: isDisabled, "data-testid": "combobox-delete", class: clsx('kol-combobox__delete', {
|
|
20075
20092
|
'kol-combobox__delete--disabled': isDisabled,
|
|
20076
20093
|
}), _on: {
|
|
20077
20094
|
onClick: () => {
|
|
20078
20095
|
this.clearSelection();
|
|
20079
20096
|
},
|
|
20080
|
-
} })), hAsync(KolIconTag, { key: '
|
|
20097
|
+
} })), hAsync(KolIconTag, { key: 'c6392bc4eaf93734e5b780620396c2b5d53cd3e7', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
20081
20098
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
20082
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
20099
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'e2463b8e629b89b2e6df370baa3a891d58e4ea4f', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
20083
20100
|
this._filteredSuggestions.length > 0 &&
|
|
20084
20101
|
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { disabled: false, index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
20085
20102
|
if (el)
|
|
@@ -21241,8 +21258,13 @@ class KolInputCheckbox {
|
|
|
21241
21258
|
return this.getModelValue();
|
|
21242
21259
|
}
|
|
21243
21260
|
async focus() {
|
|
21244
|
-
|
|
21245
|
-
|
|
21261
|
+
return new Promise((resolve) => {
|
|
21262
|
+
requestAnimationFrame(() => {
|
|
21263
|
+
var _a;
|
|
21264
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21265
|
+
resolve();
|
|
21266
|
+
});
|
|
21267
|
+
});
|
|
21246
21268
|
}
|
|
21247
21269
|
async kolFocus() {
|
|
21248
21270
|
return this.focus();
|
|
@@ -21294,7 +21316,7 @@ class KolInputCheckbox {
|
|
|
21294
21316
|
return this.state._icons.unchecked;
|
|
21295
21317
|
}
|
|
21296
21318
|
render() {
|
|
21297
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21319
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '4268d6bce4ad454f831dd34cada27bec0c302526' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: 'ef7419fdb98eb000a1de3892ce83319e4107ee17' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '0319e3e14fc8928ecd44550743daced7882f41e5' }, this.getInputProps())))));
|
|
21298
21320
|
}
|
|
21299
21321
|
constructor(hostRef) {
|
|
21300
21322
|
registerInstance(this, hostRef);
|
|
@@ -21508,8 +21530,13 @@ class KolInputColor {
|
|
|
21508
21530
|
return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.value;
|
|
21509
21531
|
}
|
|
21510
21532
|
async focus() {
|
|
21511
|
-
|
|
21512
|
-
|
|
21533
|
+
return new Promise((resolve) => {
|
|
21534
|
+
requestAnimationFrame(() => {
|
|
21535
|
+
var _a;
|
|
21536
|
+
(_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21537
|
+
resolve();
|
|
21538
|
+
});
|
|
21539
|
+
});
|
|
21513
21540
|
}
|
|
21514
21541
|
async kolFocus() {
|
|
21515
21542
|
return this.focus();
|
|
@@ -21536,7 +21563,7 @@ class KolInputColor {
|
|
|
21536
21563
|
return Object.assign(Object.assign({ state: Object.assign(Object.assign({}, other), { _suggestions: [] }) }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus });
|
|
21537
21564
|
}
|
|
21538
21565
|
render() {
|
|
21539
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21566
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '672197313371115a6306029c88b29dc8e94ec645' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '98707f16f8a99696c03f8d9ed1034696f446a079', state: this.state, class: "kol-input-color__inputs-wrapper" }, hAsync("div", { key: 'b948f6db30e660bf1faa942e1dbd50187ac08e03', class: "kol-input-color__inputs-wrapper" }, hAsync(InputStateWrapper, Object.assign({ key: '674beab3684a322f0c6551f4ea2b5c84a5865f14', class: "kol-input-color__input kol-input-color__input--color" }, this.getInputColorProps())), hAsync(InputStateWrapper, Object.assign({ key: '539570c3626d77a92cf1bd5dfa892383fb8b4bc5', class: "kol-input-color__input kol-input-color__input--text" }, this.getInputTextProps()))))));
|
|
21540
21567
|
}
|
|
21541
21568
|
constructor(hostRef) {
|
|
21542
21569
|
registerInstance(this, hostRef);
|
|
@@ -21871,8 +21898,13 @@ class KolInputDate {
|
|
|
21871
21898
|
return this.inputRef && this.remapValue((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value);
|
|
21872
21899
|
}
|
|
21873
21900
|
async focus() {
|
|
21874
|
-
|
|
21875
|
-
|
|
21901
|
+
return new Promise((resolve) => {
|
|
21902
|
+
requestAnimationFrame(() => {
|
|
21903
|
+
var _a;
|
|
21904
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21905
|
+
resolve();
|
|
21906
|
+
});
|
|
21907
|
+
});
|
|
21876
21908
|
}
|
|
21877
21909
|
async kolFocus() {
|
|
21878
21910
|
return this.focus();
|
|
@@ -21915,7 +21947,7 @@ class KolInputDate {
|
|
|
21915
21947
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onChange: this.onChange, onInput: this.onInput });
|
|
21916
21948
|
}
|
|
21917
21949
|
render() {
|
|
21918
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21950
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '15b456fa5727b49ccca3b06aa3de5dce287ceb8f' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '0837919570d566a2df16b179502a1727f63553e7', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '8767a38e1e34071fa56b2afc946be5a9ebec8c31' }, this.getInputProps())))));
|
|
21919
21951
|
}
|
|
21920
21952
|
constructor(hostRef) {
|
|
21921
21953
|
registerInstance(this, hostRef);
|
|
@@ -22268,8 +22300,13 @@ class KolInputEmail {
|
|
|
22268
22300
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
22269
22301
|
}
|
|
22270
22302
|
async focus() {
|
|
22271
|
-
|
|
22272
|
-
|
|
22303
|
+
return new Promise((resolve) => {
|
|
22304
|
+
requestAnimationFrame(() => {
|
|
22305
|
+
var _a;
|
|
22306
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22307
|
+
resolve();
|
|
22308
|
+
});
|
|
22309
|
+
});
|
|
22273
22310
|
}
|
|
22274
22311
|
async kolFocus() {
|
|
22275
22312
|
return this.focus();
|
|
@@ -22296,7 +22333,7 @@ class KolInputEmail {
|
|
|
22296
22333
|
} });
|
|
22297
22334
|
}
|
|
22298
22335
|
render() {
|
|
22299
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22336
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '18fb0c72a47561c4bd4c45c22f4c9a164f833ac6' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2d8455068646dfed505af87cb9df3dc5573dd3d9', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '1334f6149ca17291faaa9214a554fba27c0b0619' }, this.getInputProps())))));
|
|
22300
22337
|
}
|
|
22301
22338
|
constructor(hostRef) {
|
|
22302
22339
|
registerInstance(this, hostRef);
|
|
@@ -22530,8 +22567,13 @@ class KolInputFile {
|
|
|
22530
22567
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.files;
|
|
22531
22568
|
}
|
|
22532
22569
|
async focus() {
|
|
22533
|
-
|
|
22534
|
-
|
|
22570
|
+
return new Promise((resolve) => {
|
|
22571
|
+
requestAnimationFrame(() => {
|
|
22572
|
+
var _a;
|
|
22573
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22574
|
+
resolve();
|
|
22575
|
+
});
|
|
22576
|
+
});
|
|
22535
22577
|
}
|
|
22536
22578
|
async kolFocus() {
|
|
22537
22579
|
return this.focus();
|
|
@@ -22562,7 +22604,7 @@ class KolInputFile {
|
|
|
22562
22604
|
} });
|
|
22563
22605
|
}
|
|
22564
22606
|
render() {
|
|
22565
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22607
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'e7621093635ee921fe24c98ddc1963962cf89452' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '407ff4acd442b830664f56bc4df510c80f82e838', state: this.state }, hAsync("span", { key: '6ef22f2d6b15b6d21bd532fd67be7a4b1494004c', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(InputStateWrapper, Object.assign({ key: '9f282e6becdc610eb99e9f5707972d29e2e73ae4' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: '73260188bdbfcb59014dc37a37a045d59ef8bbbd', class: "kol-input-container__button", _label: this.translateDataBrowseText, _buttonVariant: "primary", _disabled: this._disabled }))));
|
|
22566
22608
|
}
|
|
22567
22609
|
constructor(hostRef) {
|
|
22568
22610
|
registerInstance(this, hostRef);
|
|
@@ -22813,8 +22855,13 @@ class KolInputNumber {
|
|
|
22813
22855
|
return this.remapValue(this.state._value);
|
|
22814
22856
|
}
|
|
22815
22857
|
async focus() {
|
|
22816
|
-
|
|
22817
|
-
|
|
22858
|
+
return new Promise((resolve) => {
|
|
22859
|
+
requestAnimationFrame(() => {
|
|
22860
|
+
var _a;
|
|
22861
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22862
|
+
resolve();
|
|
22863
|
+
});
|
|
22864
|
+
});
|
|
22818
22865
|
}
|
|
22819
22866
|
async kolFocus() {
|
|
22820
22867
|
return this.focus();
|
|
@@ -22859,7 +22906,7 @@ class KolInputNumber {
|
|
|
22859
22906
|
} });
|
|
22860
22907
|
}
|
|
22861
22908
|
render() {
|
|
22862
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22909
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'f38e4daff34b058ea4bcffda58e6c3f1f66de411' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'b3ba66d15346c2fcd360685b9f31f8a9bf90714f', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'cce4533cbdaed4610d0a6b914aaf5c903808b150' }, this.getInputProps())))));
|
|
22863
22910
|
}
|
|
22864
22911
|
constructor(hostRef) {
|
|
22865
22912
|
registerInstance(this, hostRef);
|
|
@@ -23072,8 +23119,13 @@ class KolInputPassword {
|
|
|
23072
23119
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23073
23120
|
}
|
|
23074
23121
|
async focus() {
|
|
23075
|
-
|
|
23076
|
-
|
|
23122
|
+
return new Promise((resolve) => {
|
|
23123
|
+
requestAnimationFrame(() => {
|
|
23124
|
+
var _a;
|
|
23125
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23126
|
+
resolve();
|
|
23127
|
+
});
|
|
23128
|
+
});
|
|
23077
23129
|
}
|
|
23078
23130
|
async kolFocus() {
|
|
23079
23131
|
return this.focus();
|
|
@@ -23110,7 +23162,7 @@ class KolInputPassword {
|
|
|
23110
23162
|
}, icon: `codicon codicon-eye-${this._passwordVisible ? 'closed' : 'watch'}`, disabled: this._disabled }));
|
|
23111
23163
|
}
|
|
23112
23164
|
render() {
|
|
23113
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23165
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'd629ea1ee66f1ac0eff7f99f10f1d4ba328b70a5' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'ff4ca8d3671d67bd031dceae50626de077643418', state: this.state, endAdornment: this.getShowPasswordButton() }, hAsync(InputStateWrapper, Object.assign({ key: '575982bdf26e29442e3da2f7fc0ed4993ee5d06f' }, this.getInputProps())))));
|
|
23114
23166
|
}
|
|
23115
23167
|
constructor(hostRef) {
|
|
23116
23168
|
registerInstance(this, hostRef);
|
|
@@ -23364,8 +23416,13 @@ class KolInputRadio {
|
|
|
23364
23416
|
return this._value;
|
|
23365
23417
|
}
|
|
23366
23418
|
async focus() {
|
|
23367
|
-
|
|
23368
|
-
|
|
23419
|
+
return new Promise((resolve) => {
|
|
23420
|
+
requestAnimationFrame(() => {
|
|
23421
|
+
var _a;
|
|
23422
|
+
(_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23423
|
+
resolve();
|
|
23424
|
+
});
|
|
23425
|
+
});
|
|
23369
23426
|
}
|
|
23370
23427
|
async kolFocus() {
|
|
23371
23428
|
return this.focus();
|
|
@@ -23405,7 +23462,7 @@ class KolInputRadio {
|
|
|
23405
23462
|
};
|
|
23406
23463
|
}
|
|
23407
23464
|
render() {
|
|
23408
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23465
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '91141792ff67d13fc9f6b97fed09f42eb61ee71e' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
|
|
23409
23466
|
}
|
|
23410
23467
|
calculateDisabled(option) {
|
|
23411
23468
|
return Boolean(this.state._disabled) || Boolean(option.disabled);
|
|
@@ -23651,8 +23708,13 @@ const defaultStyleCss$o = "/*\n* This file defines the layer order for all CSS l
|
|
|
23651
23708
|
|
|
23652
23709
|
class KolInputRange {
|
|
23653
23710
|
async focus() {
|
|
23654
|
-
|
|
23655
|
-
|
|
23711
|
+
return new Promise((resolve) => {
|
|
23712
|
+
requestAnimationFrame(() => {
|
|
23713
|
+
var _a;
|
|
23714
|
+
(_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23715
|
+
resolve();
|
|
23716
|
+
});
|
|
23717
|
+
});
|
|
23656
23718
|
}
|
|
23657
23719
|
async kolFocus() {
|
|
23658
23720
|
return this.focus();
|
|
@@ -23725,7 +23787,7 @@ class KolInputRange {
|
|
|
23725
23787
|
const inputsWrapperStyle = {
|
|
23726
23788
|
'--kolibri-input-range--input-number--width': `calc(${String(this.state._max).length}ch + 2em)`,
|
|
23727
23789
|
};
|
|
23728
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23790
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '9e37892c3ed46883b5b076a64b20dc836e5dac8b' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'f272f84c1e5c19c7457b3cbd675cfb830264fed0', state: this.state }, hAsync("div", { key: '22611684e2fcf405392058b2a088ba8d77104187', class: "kol-input-range__inputs-wrapper", style: inputsWrapperStyle }, hAsync(InputStateWrapper, Object.assign({ key: '8b674517d5b2b2257b8af08c5ba24b0e734eee6e', class: "kol-input-range__input kol-input-range__input--range" }, this.getInputRangeProps())), hAsync(InputStateWrapper, Object.assign({ key: '41fd849aaa744937a6d9e5c3aa4d4ae5457d51ea', class: "kol-input-range__input kol-input-range__input--number" }, this.getInputNumberProps()))), this.hasSuggestions && hAsync(SuggestionsFc, { key: 'e87b033beb0cd5bcd9f5e896834292e08183f16b', id: this.state._id, suggestions: this.state._suggestions }))));
|
|
23729
23791
|
}
|
|
23730
23792
|
constructor(hostRef) {
|
|
23731
23793
|
registerInstance(this, hostRef);
|
|
@@ -23928,8 +23990,13 @@ class KolInputText {
|
|
|
23928
23990
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23929
23991
|
}
|
|
23930
23992
|
async focus() {
|
|
23931
|
-
|
|
23932
|
-
|
|
23993
|
+
return new Promise((resolve) => {
|
|
23994
|
+
requestAnimationFrame(() => {
|
|
23995
|
+
var _a;
|
|
23996
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23997
|
+
resolve();
|
|
23998
|
+
});
|
|
23999
|
+
});
|
|
23933
24000
|
}
|
|
23934
24001
|
async kolFocus() {
|
|
23935
24002
|
return this.focus();
|
|
@@ -23975,7 +24042,7 @@ class KolInputText {
|
|
|
23975
24042
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, ariaDescribedBy }, this.controller.onFacade), { onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown });
|
|
23976
24043
|
}
|
|
23977
24044
|
render() {
|
|
23978
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
24045
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'caaae8e149786397007b743af103bd6bebb611d4' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '494061b43d60bf4893f91fbfaa84a9835c05829b', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '2168499c5a3bf3f63aa459d9ac69e4bb7a1068db' }, this.getInputProps())))));
|
|
23979
24046
|
}
|
|
23980
24047
|
constructor(hostRef) {
|
|
23981
24048
|
registerInstance(this, hostRef);
|
|
@@ -24455,8 +24522,13 @@ class KolLinkWc {
|
|
|
24455
24522
|
};
|
|
24456
24523
|
}
|
|
24457
24524
|
async focus() {
|
|
24458
|
-
|
|
24459
|
-
|
|
24525
|
+
return new Promise((resolve) => {
|
|
24526
|
+
requestAnimationFrame(() => {
|
|
24527
|
+
var _a;
|
|
24528
|
+
(_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24529
|
+
resolve();
|
|
24530
|
+
});
|
|
24531
|
+
});
|
|
24460
24532
|
}
|
|
24461
24533
|
async kolFocus() {
|
|
24462
24534
|
return this.focus();
|
|
@@ -24466,7 +24538,7 @@ class KolLinkWc {
|
|
|
24466
24538
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
24467
24539
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
24468
24540
|
const ariaDescription = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim();
|
|
24469
|
-
return (hAsync(Host, { key: '
|
|
24541
|
+
return (hAsync(Host, { key: '95cb568bb3eff8d366c9add6680e8ef55ff13b37' }, hAsync("a", Object.assign({ key: 'da620b1a780bf191333ab07aefc79dcb17059279', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-disabled": this.state._disabled ? 'true' : undefined, "aria-expanded": typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined, "aria-owns": this.state._ariaOwns, "aria-label": this.state._hideLabel && typeof this.state._label === 'string'
|
|
24470
24542
|
? `${this.state._label}${isExternal ? ` (${this.translateOpenLinkInTab})` : ''}`
|
|
24471
24543
|
: undefined, "aria-keyshortcuts": this.state._shortKey, class: clsx('kol-link', {
|
|
24472
24544
|
'kol-link--disabled': this.state._disabled === true,
|
|
@@ -24476,7 +24548,7 @@ class KolLinkWc {
|
|
|
24476
24548
|
'kol-link--inline': this.state._inline === true,
|
|
24477
24549
|
'kol-link--standalone': this.state._inline === false,
|
|
24478
24550
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
24479
|
-
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '
|
|
24551
|
+
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: 'db460a4feeeedc6814f05baa13f9617af4fd7472', class: "kol-link__text", badgeText: this.state._accessKey || this.state._shortKey, icons: this.state._icons, hideLabel: this.state._hideLabel, label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { key: 'be6d382efe304b98ab1f0005dd02284db06f0714', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: '1dc8d91a26164254e0156191568cc227b5852074', class: "kol-link__icon", _label: this.state._hideLabel ? '' : this.translateOpenLinkInTab, _icons: 'codicon codicon-link-external', "aria-hidden": this.state._hideLabel }))), this.state._hideLabel === true && (hAsync(KolTooltipWcTag, { key: '5d9c344ad0a30f44c762bf1b3b4ecadab9b66595', "aria-hidden": "true", class: "kol-link__tooltip", ref: (ref) => (this.tooltipRef = ref), hidden: hasExpertSlot, _badgeText: this.state._accessKey || this.state._shortKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href }))));
|
|
24480
24552
|
}
|
|
24481
24553
|
validateAccessKey(value) {
|
|
24482
24554
|
validateAccessKey(this, value);
|
|
@@ -27884,8 +27956,13 @@ class KolSelectWc {
|
|
|
27884
27956
|
}
|
|
27885
27957
|
}
|
|
27886
27958
|
async focus() {
|
|
27887
|
-
|
|
27888
|
-
|
|
27959
|
+
return new Promise((resolve) => {
|
|
27960
|
+
requestAnimationFrame(() => {
|
|
27961
|
+
var _a;
|
|
27962
|
+
(_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
27963
|
+
resolve();
|
|
27964
|
+
});
|
|
27965
|
+
});
|
|
27889
27966
|
}
|
|
27890
27967
|
async kolFocus() {
|
|
27891
27968
|
return this.focus();
|
|
@@ -27911,11 +27988,11 @@ class KolSelectWc {
|
|
|
27911
27988
|
} });
|
|
27912
27989
|
}
|
|
27913
27990
|
render() {
|
|
27914
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
27991
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '6035493b06940cc2dd07937fb3a3723184397c0d' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'c3e3301e5e3c2ee55b2fb6d8c18dea1028a48f52', state: this.state }, hAsync("form", { key: '9db82379bd81278b03baaba699316631b8374ff4', onSubmit: (event) => {
|
|
27915
27992
|
event.preventDefault();
|
|
27916
27993
|
propagateSubmitEventToForm({
|
|
27917
27994
|
form: this.host});
|
|
27918
|
-
} }, hAsync("input", { key: '
|
|
27995
|
+
} }, hAsync("input", { key: 'fb33e29c11e295241f99bacebcbe94c1275f5c5f', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: '1dc3a556b861525d96b38eaefc1643d6cc7c80a1' }, this.getSelectProps()))))));
|
|
27919
27996
|
}
|
|
27920
27997
|
constructor(hostRef) {
|
|
27921
27998
|
registerInstance(this, hostRef);
|
|
@@ -28153,8 +28230,13 @@ class KolSingleSelect {
|
|
|
28153
28230
|
return this._value;
|
|
28154
28231
|
}
|
|
28155
28232
|
async focus() {
|
|
28156
|
-
|
|
28157
|
-
|
|
28233
|
+
return new Promise((resolve) => {
|
|
28234
|
+
requestAnimationFrame(() => {
|
|
28235
|
+
var _a;
|
|
28236
|
+
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28237
|
+
resolve();
|
|
28238
|
+
});
|
|
28239
|
+
});
|
|
28158
28240
|
}
|
|
28159
28241
|
async kolFocus() {
|
|
28160
28242
|
return this.focus();
|
|
@@ -28321,7 +28403,7 @@ class KolSingleSelect {
|
|
|
28321
28403
|
render() {
|
|
28322
28404
|
var _a;
|
|
28323
28405
|
const isDisabled = this.state._disabled === true;
|
|
28324
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28406
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'f19360b9684abe5c1ecef23424e6d8fd1fb7d550' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'f0905bdd7596b0e640758968d73f02baf0838af1', state: this.state }, hAsync("div", { key: '178f328d1fb98e96f0ab27d59f6a8f24282ac970', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '1372ab304b762b817e21d91d3537e430a2cac03d' }, this.getInputProps())), this._inputValue && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '0de9417090e7d48e3463aa1df24323c16120dac6', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _buttonVariant: "ghost", _disabled: isDisabled, "data-testid": "single-select-delete", class: clsx('kol-single-select__delete', {
|
|
28325
28407
|
'kol-single-select__delete--disabled': isDisabled,
|
|
28326
28408
|
}), _on: {
|
|
28327
28409
|
onClick: () => {
|
|
@@ -28329,9 +28411,9 @@ class KolSingleSelect {
|
|
|
28329
28411
|
this.clearSelection();
|
|
28330
28412
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28331
28413
|
},
|
|
28332
|
-
} })), hAsync(KolIconTag, { key: '
|
|
28414
|
+
} })), hAsync(KolIconTag, { key: 'fae151a9238323aa9a547a0f90e84920811da22e', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
28333
28415
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
28334
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
28416
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'ac5c9cbbd66a6f7f06c19ee953b15c9744e5c0dc', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this), style: { '--visible-options': `${(_a = this._rows) !== null && _a !== void 0 ? _a : 5}` } }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option.label, searchTerm: this._inputValue, ref: (el) => {
|
|
28335
28417
|
if (el)
|
|
28336
28418
|
this.refOptions[index] = el;
|
|
28337
28419
|
}, selected: this._value === option.value, disabled: option.disabled ? true : false, onClick: (event) => {
|
|
@@ -30510,8 +30592,13 @@ class KolTextarea {
|
|
|
30510
30592
|
return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
30511
30593
|
}
|
|
30512
30594
|
async focus() {
|
|
30513
|
-
|
|
30514
|
-
|
|
30595
|
+
return new Promise((resolve) => {
|
|
30596
|
+
requestAnimationFrame(() => {
|
|
30597
|
+
var _a;
|
|
30598
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30599
|
+
resolve();
|
|
30600
|
+
});
|
|
30601
|
+
});
|
|
30515
30602
|
}
|
|
30516
30603
|
async kolFocus() {
|
|
30517
30604
|
return this.focus();
|
|
@@ -30540,7 +30627,7 @@ class KolTextarea {
|
|
|
30540
30627
|
} });
|
|
30541
30628
|
}
|
|
30542
30629
|
render() {
|
|
30543
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
30630
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'af782a83effd3abe8ea1aa7ca3bf5d5c71b71bd6' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '70669a7491695fb801e89aa22a877cc31d3b2012', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: 'c999297e55a476ebbf394ff15e5ba52a398410f5' }, this.getTextAreaProps())))));
|
|
30544
30631
|
}
|
|
30545
30632
|
constructor(hostRef) {
|
|
30546
30633
|
registerInstance(this, hostRef);
|
package/dist/index.mjs
CHANGED
|
@@ -144,7 +144,7 @@ function _mergeNamespaces(n, m) {
|
|
|
144
144
|
|
|
145
145
|
const NAMESPACE = 'kolibri';
|
|
146
146
|
const BUILD = /* kolibri */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
147
|
-
const Env = /* kolibri */ {"kolibriVersion":"3.1.
|
|
147
|
+
const Env = /* kolibri */ {"kolibriVersion":"3.1.3"};
|
|
148
148
|
|
|
149
149
|
function getDefaultExportFromCjs (x) {
|
|
150
150
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -520,7 +520,7 @@ function requireLoglevel () {
|
|
|
520
520
|
var loglevelExports = requireLoglevel();
|
|
521
521
|
var h$1 = /*@__PURE__*/getDefaultExportFromCjs(loglevelExports);
|
|
522
522
|
|
|
523
|
-
const
|
|
523
|
+
const Y=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV==="test",s="VITEST"in t,o="JEST_WORKER_ID"in t,a="PLAYWRIGHT_TEST_BASE_URL"in t,r=t.CI==="true",i=t.TEST==="true"||t.IS_TEST==="true",c=typeof navigator<"u"&&navigator.webdriver===true,y=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return e||s||o||a||r||i||c||y},n$1={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:Y(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map}};let f$1=false;const k=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,G=t=>typeof t=="string"&&k.test(t),S=t=>{if(!G(t))throw new Error(`[Theming] The theme identifier "${typeof t=="string"?t:""}" (Type: ${typeof t}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},A=t=>t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),x=(t,e,s,o)=>T(t,e,s,o),T=(t,e,s,o)=>{o=o??{},o.append=o.append??false,S(t),!f$1&&(f$1=true,h$1.warn(`[Theming] The theme process is locked. This means that the theme "${t}" should not be patched.
|
|
524
524
|
|
|
525
525
|
import { register } from 'adopted-style-sheets';
|
|
526
526
|
import { defineCustomElements } from '...';
|
|
@@ -530,7 +530,7 @@ const $=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV
|
|
|
530
530
|
.then(() => {
|
|
531
531
|
// run your app or website
|
|
532
532
|
})
|
|
533
|
-
.catch(console.warn);`));let
|
|
533
|
+
.catch(console.warn);`));let a=n$1.A11yUi.THEMES.get(t);if(a||(a=new Map,n$1.A11yUi.THEMES.set(t,a)),o.append&&a.has(e)){const r=a.get(e);a.set(e,A(`${r}${s}`));}else a.set(e,A(s));},K=(t,e,s,o)=>g(t,e,s,o),g=(t,e,s,o)=>(S(t),typeof e=="object"&&e!==null&&Object.getOwnPropertyNames(e).forEach(a=>{const r=e[a],i=a.toLowerCase(),c=typeof o?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(a)?o.transformTagName(i):a;typeof r=="string"&&r.length>0&&T(t,c.toUpperCase(),r,s);}),t),b=t=>{if(t instanceof HTMLElement){if(typeof t.dataset.theme=="string")return t;{let e=t.parentNode;for(;e instanceof ShadowRoot;)e=e.host;return b(e)}}else return null},C=(t={})=>t.themeEncroachCss==="false"||t.themeReset==="true"?false:{mode:t.themeEncroachCssMode==="after"||t.themeEncroachCssMode==="before"?t.themeEncroachCssMode:"before"},U=()=>typeof n$1.A11yUi.Theme=="object"&&n$1.A11yUi.Theme!==null&&typeof n$1.A11yUi.Theme.cache=="boolean"&&typeof n$1.A11yUi.Theme.encroachCss=="object"&&n$1.A11yUi.Theme.encroachCss!==null&&typeof n$1.A11yUi.Theme.encroachCss.mode=="string"&&typeof n$1.A11yUi.Theme.name=="string",w=t=>{if(U())return n$1.A11yUi.Theme;{const e={cache:true,encroachCss:C(),loglevel:"silent",mode:"csr",name:null},s=b(t);return s instanceof HTMLElement&&(e.cache=s.dataset.themeCache!=="false",e.encroachCss=C(s.dataset),e.loglevel=s.dataset.themeLoglevel==="debug"?s.dataset.themeLoglevel:"silent",e.mode=s.dataset.themeMode==="ssr"?s.dataset.themeMode:"csr",e.name=s.dataset.theme||null),e}};const v=new Set,N=new Map,X=/--[^;]+/g,Z=/:/,ee=typeof MutationObserver<"u";let L=25,R=()=>{L=Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const te=(t,e)=>{let s=e.match(X);if(Array.isArray(s)){s=s.filter(a=>Z.test(a));const o=document.createElement("style");o.innerHTML=`.${t} {${s.join(";")}}`,document.querySelector("head")?.appendChild(o);}v.add(t);},d=(t,e)=>{const s=n$1.A11yUi.THEMES.get(t);if(s instanceof Map){const o=s.get(e);if(o!==void 0)return o}return ""},se=t=>{const e=t.firstChild;if(!(!(e instanceof HTMLStyleElement)||e.dataset.themingFallback!==void 0))for(const s of Array.from(t.childNodes))if(s instanceof HTMLStyleElement&&s.tagName==="STYLE"&&s.dataset.themingFallback===void 0)t.removeChild(s);else break},oe=(t,e)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=e.filter(o=>typeof o=="string"&&o.length>0).map(o=>{let a=N.get(o);return a||(a=new CSSStyleSheet,a.replaceSync(o),N.set(o,a)),a});t.adoptedStyleSheets=s;}catch{for(let o=e.length-1;o>=0;o--){const a=e[o];if(typeof a!="string"||a.length===0)continue;const r=e.length-1-o,i=document.createElement("style");switch(i.dataset.themingFallback="",r){case 4:i.dataset.themingBaseA11y="";break;case 3:i.dataset.themingBaseGlobal="";break;case 2:i.dataset.themingBaseComponent="";break;case 1:i.dataset.themingCustomGlobal="";break;case 0:i.dataset.themingCustomComponent="";break;default:i.dataset.themingUnknown="";break}i.innerHTML=a,t.insertBefore(i,t.firstChild);}}},ae=(t,e,s)=>{if(s===false||s?.mode!=="before"&&s?.mode!=="after")return;const o=Array.from(t.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE");let a;try{a=Array.from(t.adoptedStyleSheets);}catch{a=[];}if(!(o.length===0&&a.length===0))if(s.mode==="before"){const r=[...a.map(i=>Array.from(i.cssRules).map(c=>c.cssText).join("")),...o.map(i=>i.innerHTML)];e.unshift(...r);}else o.forEach(r=>e.push(r.innerHTML)),a.forEach(r=>e.push(Array.from(r.cssRules).map(i=>i.cssText).join("")));},ne=(t,e,s)=>{const o=e.name||"default";let a;try{if(t.shadowRoot===null)throw new Error("ShadowRoot is null");a=t.shadowRoot;}catch{a=t;}const r=n$1.A11yUi.CSS_STYLE_CACHE.get(o)?.get(t.tagName);if(r)_(t,a,r,s);else {const i=d(o,"PROPERTIES"),c=d(o,"GLOBAL"),y=d(o,t.tagName);v.has(o)===false&&te(o,c);const u=[i,c,y];if(ae(a,u,e.encroachCss),e.cache===true){let m=n$1.A11yUi.CSS_STYLE_CACHE.get(o);m||(m=new Map,n$1.A11yUi.CSS_STYLE_CACHE.set(o,m)),m.set(t.tagName,u);}_(t,a,u,s);}},_=(t,e,s,o)=>{const a=n$1.A11yUi.Theme?.loglevel==="debug",r=a?performance.now():0;if(se(e),oe(e,s),me(t),requestAnimationFrame(o),a){const i=performance.now()-r,c=n$1.A11yUi.PERFORMANCE_MEASURES.get(t.tagName);c?(c.count+=1,c.totalTime+=i):n$1.A11yUi.PERFORMANCE_MEASURES.set(t.tagName,{count:1,totalTime:i});}},O=t=>{const e=n$1.A11yUi.STYLING_TASK_QUEUE.get(t);if(e){const{resetCss:s,themeDetails:o}=e;ne(t,o,s);}},re=100;let E=(t,e=0)=>{if(e>=re)return;const s=setTimeout(()=>{clearTimeout(s),t.classList.contains("hydrated")?O(t):E(t,e+1);},L);};const ie={attributes:true,attributeFilter:["class"],childList:false,subtree:false},ce={attributes:true,attributeFilter:[],childList:false,subtree:false},I=ee?new MutationObserver((t,e)=>{const s=[];for(const o of t){const a=o.target;a.classList.contains("hydrated")&&n$1.A11yUi.STYLING_TASK_QUEUE.has(a)&&(O(a),s.push(a));}for(const o of s)e.observe(o,ce);}):null;I&&(E=t=>I.observe(t,ie),R=()=>{});const H=new Map;let P=(t,e)=>{if(e){const a=H.get(e);if(a!==void 0)return a}const s=getComputedStyle(t).getPropertyValue("--theme-visibility-delay").trim();let o;if(s.endsWith("ms"))o=parseFloat(s);else if(s.endsWith("s"))o=parseFloat(s)*1e3;else {const a=parseFloat(s);o=isNaN(a)?0:a;}return e&&H.set(e,o),o};n$1.A11yUi.IS_TEST_ENVIRONMENT&&(P=()=>0);const $=(t,e)=>{t.style.setProperty("visibility",e),t.dataset.themed="";},le=(t,e)=>{const s=t.style.visibility||null,o=e.name||"default";n$1.A11yUi.STYLING_TASK_QUEUE.set(t,{resetCss:()=>{const a=P(t,o);a>0?setTimeout(()=>{$(t,s);},a):$(t,s);},themeDetails:e}),t.style.setProperty("visibility","hidden","important"),E(t);},me=t=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(t),R();},he=(t,e)=>{le(t,{...n$1.A11yUi.Theme,...e});};
|
|
534
534
|
|
|
535
535
|
var KeyEnum;
|
|
536
536
|
(function (KeyEnum) {
|
|
@@ -1951,9 +1951,9 @@ KoliBriUtils.executionLock = false;
|
|
|
1951
1951
|
KoliBriUtils.cache = new Map();
|
|
1952
1952
|
class KoliBriDevHelper {
|
|
1953
1953
|
}
|
|
1954
|
-
KoliBriDevHelper.getCssStyle =
|
|
1955
|
-
KoliBriDevHelper.patchTheme =
|
|
1956
|
-
KoliBriDevHelper.patchThemeTag =
|
|
1954
|
+
KoliBriDevHelper.getCssStyle = d;
|
|
1955
|
+
KoliBriDevHelper.patchTheme = K;
|
|
1956
|
+
KoliBriDevHelper.patchThemeTag = x;
|
|
1957
1957
|
KoliBriDevHelper.querySelector = koliBriQuerySelector;
|
|
1958
1958
|
KoliBriDevHelper.querySelectorAll = koliBriQuerySelectorAll;
|
|
1959
1959
|
KoliBriDevHelper.stringifyJson = stringifyJson;
|
|
@@ -2790,7 +2790,7 @@ var appGlobalScript = () => {
|
|
|
2790
2790
|
setMode((elm) => {
|
|
2791
2791
|
try {
|
|
2792
2792
|
if (elm.shadowRoot instanceof ShadowRoot) {
|
|
2793
|
-
|
|
2793
|
+
he(elm, w(elm));
|
|
2794
2794
|
}
|
|
2795
2795
|
}
|
|
2796
2796
|
catch (error) {
|
|
@@ -15228,7 +15228,14 @@ function linkify (state, silent) {
|
|
|
15228
15228
|
if (url.length <= proto.length) return false
|
|
15229
15229
|
|
|
15230
15230
|
// disallow '*' at the end of the link (conflicts with emphasis)
|
|
15231
|
-
|
|
15231
|
+
// do manual backsearch to avoid perf issues with regex /\*+$/ on "****...****a".
|
|
15232
|
+
let urlEnd = url.length;
|
|
15233
|
+
while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 0x2A/* * */) {
|
|
15234
|
+
urlEnd--;
|
|
15235
|
+
}
|
|
15236
|
+
if (urlEnd !== url.length) {
|
|
15237
|
+
url = url.slice(0, urlEnd);
|
|
15238
|
+
}
|
|
15232
15239
|
|
|
15233
15240
|
const fullUrl = state.md.normalizeLink(url);
|
|
15234
15241
|
if (!state.md.validateLink(fullUrl)) return false
|
|
@@ -19137,8 +19144,13 @@ class AssociatedInputController {
|
|
|
19137
19144
|
|
|
19138
19145
|
class KolButtonWc {
|
|
19139
19146
|
async focus() {
|
|
19140
|
-
|
|
19141
|
-
|
|
19147
|
+
return new Promise((resolve) => {
|
|
19148
|
+
requestAnimationFrame(() => {
|
|
19149
|
+
var _a;
|
|
19150
|
+
(_a = this.buttonRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19151
|
+
resolve();
|
|
19152
|
+
});
|
|
19153
|
+
});
|
|
19142
19154
|
}
|
|
19143
19155
|
async kolFocus() {
|
|
19144
19156
|
return this.focus();
|
|
@@ -19150,14 +19162,14 @@ class KolButtonWc {
|
|
|
19150
19162
|
const badgeText = this.state._accessKey || this.state._shortKey;
|
|
19151
19163
|
const isDisabled = this.state._disabled === true;
|
|
19152
19164
|
const hideLabel = this.state._hideLabel === true;
|
|
19153
|
-
return (hAsync(Host, { key: '
|
|
19165
|
+
return (hAsync(Host, { key: '0603a5a5e4c11a0fd65217ab5c631e70e0d3a558' }, hAsync("button", { key: '3d4b6d488067c3e0c1c1c5b275697826b2edad84', ref: (ref) => (this.buttonRef = ref), accessKey: this.state._accessKey, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-expanded": mapBoolean2String(this.state._ariaExpanded), "aria-haspopup": this._ariaHasPopup, "aria-keyshortcuts": this.state._shortKey, "aria-label": hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined, "aria-selected": mapStringOrBoolean2String(this.state._ariaSelected), class: clsx('kol-button', {
|
|
19154
19166
|
'kol-button--disabled': isDisabled,
|
|
19155
19167
|
[`kol-button--${this.state._buttonVariant}`]: this.state._buttonVariant !== 'custom',
|
|
19156
19168
|
'kol-button--inline': this.state._inline === true,
|
|
19157
19169
|
'kol-button--standalone': this.state._inline === false,
|
|
19158
19170
|
'kol-button--hide-label': hideLabel,
|
|
19159
19171
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
19160
|
-
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: '
|
|
19172
|
+
}), disabled: isDisabled, id: this.state._id, name: this.state._name, onClick: this.onClick, onMouseDown: this.onMouseDown, role: this.state._role, tabIndex: this.state._tabIndex, type: this.state._type }, hAsync(KolSpanFc, { key: '4e114c9fd123888eb7d62a4fb9f052a563661ae3', class: "kol-button__text", badgeText: badgeText, icons: this.state._icons, hideLabel: hideLabel, label: hasExpertSlot ? '' : this.state._label }, hAsync("slot", { key: 'cac7750b3da0c8903c4376eea62cdd4d2887f578', name: "expert", slot: "expert" }))), hideLabel && (hAsync(KolTooltipWcTag, { key: '97fc211fdcfc11ae33a75cfcf423b923d67fe937', ref: (ref) => (this.tooltipRef = ref), "aria-hidden": "true", hidden: hasExpertSlot, class: "kol-button__tooltip", _badgeText: badgeText, _align: this.state._tooltipAlign, _label: typeof this.state._label === 'string' ? this.state._label : '' }))));
|
|
19161
19173
|
}
|
|
19162
19174
|
constructor(hostRef) {
|
|
19163
19175
|
registerInstance(this, hostRef);
|
|
@@ -19958,8 +19970,13 @@ class KolCombobox {
|
|
|
19958
19970
|
return this.state._value;
|
|
19959
19971
|
}
|
|
19960
19972
|
async focus() {
|
|
19961
|
-
|
|
19962
|
-
|
|
19973
|
+
return new Promise((resolve) => {
|
|
19974
|
+
requestAnimationFrame(() => {
|
|
19975
|
+
var _a;
|
|
19976
|
+
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
19977
|
+
resolve();
|
|
19978
|
+
});
|
|
19979
|
+
});
|
|
19963
19980
|
}
|
|
19964
19981
|
async kolFocus() {
|
|
19965
19982
|
return this.focus();
|
|
@@ -20069,15 +20086,15 @@ class KolCombobox {
|
|
|
20069
20086
|
}
|
|
20070
20087
|
render() {
|
|
20071
20088
|
const isDisabled = this.state._disabled === true;
|
|
20072
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
20089
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'dd543c0596376f0d7402c6f0cd26ecb7f71dd866' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '8398ee5c49f193b11395e90c5b5594383ee465df', state: this.state }, hAsync("div", { key: '918b0b96efac30bd25ec3e9f104e796afbcbe4c2', class: "kol-combobox__group" }, hAsync(InputStateWrapper, Object.assign({ key: '2a2f79a79a893d9746ebc87b4d0920327ffbf869' }, this.getInputProps())), this.state._value && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '6f014f249a8c5e14ee23d8cdbc4dd340f04e354c', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _disabled: isDisabled, "data-testid": "combobox-delete", class: clsx('kol-combobox__delete', {
|
|
20073
20090
|
'kol-combobox__delete--disabled': isDisabled,
|
|
20074
20091
|
}), _on: {
|
|
20075
20092
|
onClick: () => {
|
|
20076
20093
|
this.clearSelection();
|
|
20077
20094
|
},
|
|
20078
|
-
} })), hAsync(KolIconTag, { key: '
|
|
20095
|
+
} })), hAsync(KolIconTag, { key: 'c6392bc4eaf93734e5b780620396c2b5d53cd3e7', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
20079
20096
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
20080
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
20097
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'e2463b8e629b89b2e6df370baa3a891d58e4ea4f', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this) }, Array.isArray(this._filteredSuggestions) &&
|
|
20081
20098
|
this._filteredSuggestions.length > 0 &&
|
|
20082
20099
|
this._filteredSuggestions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { disabled: false, index: index, option: option, searchTerm: this.state._value, ref: (el) => {
|
|
20083
20100
|
if (el)
|
|
@@ -21239,8 +21256,13 @@ class KolInputCheckbox {
|
|
|
21239
21256
|
return this.getModelValue();
|
|
21240
21257
|
}
|
|
21241
21258
|
async focus() {
|
|
21242
|
-
|
|
21243
|
-
|
|
21259
|
+
return new Promise((resolve) => {
|
|
21260
|
+
requestAnimationFrame(() => {
|
|
21261
|
+
var _a;
|
|
21262
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21263
|
+
resolve();
|
|
21264
|
+
});
|
|
21265
|
+
});
|
|
21244
21266
|
}
|
|
21245
21267
|
async kolFocus() {
|
|
21246
21268
|
return this.focus();
|
|
@@ -21292,7 +21314,7 @@ class KolInputCheckbox {
|
|
|
21292
21314
|
return this.state._icons.unchecked;
|
|
21293
21315
|
}
|
|
21294
21316
|
render() {
|
|
21295
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21317
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '4268d6bce4ad454f831dd34cada27bec0c302526' }, this.getFormFieldProps(), { renderNoLabel: true }), hAsync(FieldControlStateWrapper, Object.assign({ key: 'ef7419fdb98eb000a1de3892ce83319e4107ee17' }, this.getFieldControlProps(), { renderNoHint: true }), hAsync(CheckboxStateWrapper, Object.assign({ key: '0319e3e14fc8928ecd44550743daced7882f41e5' }, this.getInputProps())))));
|
|
21296
21318
|
}
|
|
21297
21319
|
constructor(hostRef) {
|
|
21298
21320
|
registerInstance(this, hostRef);
|
|
@@ -21506,8 +21528,13 @@ class KolInputColor {
|
|
|
21506
21528
|
return (_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.value;
|
|
21507
21529
|
}
|
|
21508
21530
|
async focus() {
|
|
21509
|
-
|
|
21510
|
-
|
|
21531
|
+
return new Promise((resolve) => {
|
|
21532
|
+
requestAnimationFrame(() => {
|
|
21533
|
+
var _a;
|
|
21534
|
+
(_a = this.refInputText) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21535
|
+
resolve();
|
|
21536
|
+
});
|
|
21537
|
+
});
|
|
21511
21538
|
}
|
|
21512
21539
|
async kolFocus() {
|
|
21513
21540
|
return this.focus();
|
|
@@ -21534,7 +21561,7 @@ class KolInputColor {
|
|
|
21534
21561
|
return Object.assign(Object.assign({ state: Object.assign(Object.assign({}, other), { _suggestions: [] }) }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus });
|
|
21535
21562
|
}
|
|
21536
21563
|
render() {
|
|
21537
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21564
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '672197313371115a6306029c88b29dc8e94ec645' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '98707f16f8a99696c03f8d9ed1034696f446a079', state: this.state, class: "kol-input-color__inputs-wrapper" }, hAsync("div", { key: 'b948f6db30e660bf1faa942e1dbd50187ac08e03', class: "kol-input-color__inputs-wrapper" }, hAsync(InputStateWrapper, Object.assign({ key: '674beab3684a322f0c6551f4ea2b5c84a5865f14', class: "kol-input-color__input kol-input-color__input--color" }, this.getInputColorProps())), hAsync(InputStateWrapper, Object.assign({ key: '539570c3626d77a92cf1bd5dfa892383fb8b4bc5', class: "kol-input-color__input kol-input-color__input--text" }, this.getInputTextProps()))))));
|
|
21538
21565
|
}
|
|
21539
21566
|
constructor(hostRef) {
|
|
21540
21567
|
registerInstance(this, hostRef);
|
|
@@ -21869,8 +21896,13 @@ class KolInputDate {
|
|
|
21869
21896
|
return this.inputRef && this.remapValue((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value);
|
|
21870
21897
|
}
|
|
21871
21898
|
async focus() {
|
|
21872
|
-
|
|
21873
|
-
|
|
21899
|
+
return new Promise((resolve) => {
|
|
21900
|
+
requestAnimationFrame(() => {
|
|
21901
|
+
var _a;
|
|
21902
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
21903
|
+
resolve();
|
|
21904
|
+
});
|
|
21905
|
+
});
|
|
21874
21906
|
}
|
|
21875
21907
|
async kolFocus() {
|
|
21876
21908
|
return this.focus();
|
|
@@ -21913,7 +21945,7 @@ class KolInputDate {
|
|
|
21913
21945
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state }, this.controller.onFacade), { onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onChange: this.onChange, onInput: this.onInput });
|
|
21914
21946
|
}
|
|
21915
21947
|
render() {
|
|
21916
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
21948
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '15b456fa5727b49ccca3b06aa3de5dce287ceb8f' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '0837919570d566a2df16b179502a1727f63553e7', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '8767a38e1e34071fa56b2afc946be5a9ebec8c31' }, this.getInputProps())))));
|
|
21917
21949
|
}
|
|
21918
21950
|
constructor(hostRef) {
|
|
21919
21951
|
registerInstance(this, hostRef);
|
|
@@ -22266,8 +22298,13 @@ class KolInputEmail {
|
|
|
22266
22298
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
22267
22299
|
}
|
|
22268
22300
|
async focus() {
|
|
22269
|
-
|
|
22270
|
-
|
|
22301
|
+
return new Promise((resolve) => {
|
|
22302
|
+
requestAnimationFrame(() => {
|
|
22303
|
+
var _a;
|
|
22304
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22305
|
+
resolve();
|
|
22306
|
+
});
|
|
22307
|
+
});
|
|
22271
22308
|
}
|
|
22272
22309
|
async kolFocus() {
|
|
22273
22310
|
return this.focus();
|
|
@@ -22294,7 +22331,7 @@ class KolInputEmail {
|
|
|
22294
22331
|
} });
|
|
22295
22332
|
}
|
|
22296
22333
|
render() {
|
|
22297
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22334
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '18fb0c72a47561c4bd4c45c22f4c9a164f833ac6' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '2d8455068646dfed505af87cb9df3dc5573dd3d9', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '1334f6149ca17291faaa9214a554fba27c0b0619' }, this.getInputProps())))));
|
|
22298
22335
|
}
|
|
22299
22336
|
constructor(hostRef) {
|
|
22300
22337
|
registerInstance(this, hostRef);
|
|
@@ -22528,8 +22565,13 @@ class KolInputFile {
|
|
|
22528
22565
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.files;
|
|
22529
22566
|
}
|
|
22530
22567
|
async focus() {
|
|
22531
|
-
|
|
22532
|
-
|
|
22568
|
+
return new Promise((resolve) => {
|
|
22569
|
+
requestAnimationFrame(() => {
|
|
22570
|
+
var _a;
|
|
22571
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22572
|
+
resolve();
|
|
22573
|
+
});
|
|
22574
|
+
});
|
|
22533
22575
|
}
|
|
22534
22576
|
async kolFocus() {
|
|
22535
22577
|
return this.focus();
|
|
@@ -22560,7 +22602,7 @@ class KolInputFile {
|
|
|
22560
22602
|
} });
|
|
22561
22603
|
}
|
|
22562
22604
|
render() {
|
|
22563
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22605
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'e7621093635ee921fe24c98ddc1963962cf89452' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '407ff4acd442b830664f56bc4df510c80f82e838', state: this.state }, hAsync("span", { key: '6ef22f2d6b15b6d21bd532fd67be7a4b1494004c', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(InputStateWrapper, Object.assign({ key: '9f282e6becdc610eb99e9f5707972d29e2e73ae4' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: '73260188bdbfcb59014dc37a37a045d59ef8bbbd', class: "kol-input-container__button", _label: this.translateDataBrowseText, _buttonVariant: "primary", _disabled: this._disabled }))));
|
|
22564
22606
|
}
|
|
22565
22607
|
constructor(hostRef) {
|
|
22566
22608
|
registerInstance(this, hostRef);
|
|
@@ -22811,8 +22853,13 @@ class KolInputNumber {
|
|
|
22811
22853
|
return this.remapValue(this.state._value);
|
|
22812
22854
|
}
|
|
22813
22855
|
async focus() {
|
|
22814
|
-
|
|
22815
|
-
|
|
22856
|
+
return new Promise((resolve) => {
|
|
22857
|
+
requestAnimationFrame(() => {
|
|
22858
|
+
var _a;
|
|
22859
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22860
|
+
resolve();
|
|
22861
|
+
});
|
|
22862
|
+
});
|
|
22816
22863
|
}
|
|
22817
22864
|
async kolFocus() {
|
|
22818
22865
|
return this.focus();
|
|
@@ -22857,7 +22904,7 @@ class KolInputNumber {
|
|
|
22857
22904
|
} });
|
|
22858
22905
|
}
|
|
22859
22906
|
render() {
|
|
22860
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
22907
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'f38e4daff34b058ea4bcffda58e6c3f1f66de411' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'b3ba66d15346c2fcd360685b9f31f8a9bf90714f', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: 'cce4533cbdaed4610d0a6b914aaf5c903808b150' }, this.getInputProps())))));
|
|
22861
22908
|
}
|
|
22862
22909
|
constructor(hostRef) {
|
|
22863
22910
|
registerInstance(this, hostRef);
|
|
@@ -23070,8 +23117,13 @@ class KolInputPassword {
|
|
|
23070
23117
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23071
23118
|
}
|
|
23072
23119
|
async focus() {
|
|
23073
|
-
|
|
23074
|
-
|
|
23120
|
+
return new Promise((resolve) => {
|
|
23121
|
+
requestAnimationFrame(() => {
|
|
23122
|
+
var _a;
|
|
23123
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23124
|
+
resolve();
|
|
23125
|
+
});
|
|
23126
|
+
});
|
|
23075
23127
|
}
|
|
23076
23128
|
async kolFocus() {
|
|
23077
23129
|
return this.focus();
|
|
@@ -23108,7 +23160,7 @@ class KolInputPassword {
|
|
|
23108
23160
|
}, icon: `codicon codicon-eye-${this._passwordVisible ? 'closed' : 'watch'}`, disabled: this._disabled }));
|
|
23109
23161
|
}
|
|
23110
23162
|
render() {
|
|
23111
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23163
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'd629ea1ee66f1ac0eff7f99f10f1d4ba328b70a5' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'ff4ca8d3671d67bd031dceae50626de077643418', state: this.state, endAdornment: this.getShowPasswordButton() }, hAsync(InputStateWrapper, Object.assign({ key: '575982bdf26e29442e3da2f7fc0ed4993ee5d06f' }, this.getInputProps())))));
|
|
23112
23164
|
}
|
|
23113
23165
|
constructor(hostRef) {
|
|
23114
23166
|
registerInstance(this, hostRef);
|
|
@@ -23362,8 +23414,13 @@ class KolInputRadio {
|
|
|
23362
23414
|
return this._value;
|
|
23363
23415
|
}
|
|
23364
23416
|
async focus() {
|
|
23365
|
-
|
|
23366
|
-
|
|
23417
|
+
return new Promise((resolve) => {
|
|
23418
|
+
requestAnimationFrame(() => {
|
|
23419
|
+
var _a;
|
|
23420
|
+
(_a = this.getFocusableInput()) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23421
|
+
resolve();
|
|
23422
|
+
});
|
|
23423
|
+
});
|
|
23367
23424
|
}
|
|
23368
23425
|
async kolFocus() {
|
|
23369
23426
|
return this.focus();
|
|
@@ -23403,7 +23460,7 @@ class KolInputRadio {
|
|
|
23403
23460
|
};
|
|
23404
23461
|
}
|
|
23405
23462
|
render() {
|
|
23406
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23463
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '91141792ff67d13fc9f6b97fed09f42eb61ee71e' }, this.getFormFieldProps()), this.state._options.map((option, index) => this.renderOption(option, index))));
|
|
23407
23464
|
}
|
|
23408
23465
|
calculateDisabled(option) {
|
|
23409
23466
|
return Boolean(this.state._disabled) || Boolean(option.disabled);
|
|
@@ -23649,8 +23706,13 @@ const defaultStyleCss$o = "/*\n* This file defines the layer order for all CSS l
|
|
|
23649
23706
|
|
|
23650
23707
|
class KolInputRange {
|
|
23651
23708
|
async focus() {
|
|
23652
|
-
|
|
23653
|
-
|
|
23709
|
+
return new Promise((resolve) => {
|
|
23710
|
+
requestAnimationFrame(() => {
|
|
23711
|
+
var _a;
|
|
23712
|
+
(_a = this.refInputNumber) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23713
|
+
resolve();
|
|
23714
|
+
});
|
|
23715
|
+
});
|
|
23654
23716
|
}
|
|
23655
23717
|
async kolFocus() {
|
|
23656
23718
|
return this.focus();
|
|
@@ -23723,7 +23785,7 @@ class KolInputRange {
|
|
|
23723
23785
|
const inputsWrapperStyle = {
|
|
23724
23786
|
'--kolibri-input-range--input-number--width': `calc(${String(this.state._max).length}ch + 2em)`,
|
|
23725
23787
|
};
|
|
23726
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
23788
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '9e37892c3ed46883b5b076a64b20dc836e5dac8b' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'f272f84c1e5c19c7457b3cbd675cfb830264fed0', state: this.state }, hAsync("div", { key: '22611684e2fcf405392058b2a088ba8d77104187', class: "kol-input-range__inputs-wrapper", style: inputsWrapperStyle }, hAsync(InputStateWrapper, Object.assign({ key: '8b674517d5b2b2257b8af08c5ba24b0e734eee6e', class: "kol-input-range__input kol-input-range__input--range" }, this.getInputRangeProps())), hAsync(InputStateWrapper, Object.assign({ key: '41fd849aaa744937a6d9e5c3aa4d4ae5457d51ea', class: "kol-input-range__input kol-input-range__input--number" }, this.getInputNumberProps()))), this.hasSuggestions && hAsync(SuggestionsFc, { key: 'e87b033beb0cd5bcd9f5e896834292e08183f16b', id: this.state._id, suggestions: this.state._suggestions }))));
|
|
23727
23789
|
}
|
|
23728
23790
|
constructor(hostRef) {
|
|
23729
23791
|
registerInstance(this, hostRef);
|
|
@@ -23926,8 +23988,13 @@ class KolInputText {
|
|
|
23926
23988
|
return (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
23927
23989
|
}
|
|
23928
23990
|
async focus() {
|
|
23929
|
-
|
|
23930
|
-
|
|
23991
|
+
return new Promise((resolve) => {
|
|
23992
|
+
requestAnimationFrame(() => {
|
|
23993
|
+
var _a;
|
|
23994
|
+
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23995
|
+
resolve();
|
|
23996
|
+
});
|
|
23997
|
+
});
|
|
23931
23998
|
}
|
|
23932
23999
|
async kolFocus() {
|
|
23933
24000
|
return this.focus();
|
|
@@ -23973,7 +24040,7 @@ class KolInputText {
|
|
|
23973
24040
|
return Object.assign(Object.assign({ ref: this.catchRef, state: this.state, ariaDescribedBy }, this.controller.onFacade), { onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown });
|
|
23974
24041
|
}
|
|
23975
24042
|
render() {
|
|
23976
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
24043
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'caaae8e149786397007b743af103bd6bebb611d4' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '494061b43d60bf4893f91fbfaa84a9835c05829b', state: this.state }, hAsync(InputStateWrapper, Object.assign({ key: '2168499c5a3bf3f63aa459d9ac69e4bb7a1068db' }, this.getInputProps())))));
|
|
23977
24044
|
}
|
|
23978
24045
|
constructor(hostRef) {
|
|
23979
24046
|
registerInstance(this, hostRef);
|
|
@@ -24453,8 +24520,13 @@ class KolLinkWc {
|
|
|
24453
24520
|
};
|
|
24454
24521
|
}
|
|
24455
24522
|
async focus() {
|
|
24456
|
-
|
|
24457
|
-
|
|
24523
|
+
return new Promise((resolve) => {
|
|
24524
|
+
requestAnimationFrame(() => {
|
|
24525
|
+
var _a;
|
|
24526
|
+
(_a = this.anchorRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24527
|
+
resolve();
|
|
24528
|
+
});
|
|
24529
|
+
});
|
|
24458
24530
|
}
|
|
24459
24531
|
async kolFocus() {
|
|
24460
24532
|
return this.focus();
|
|
@@ -24464,7 +24536,7 @@ class KolLinkWc {
|
|
|
24464
24536
|
const { isExternal, tagAttrs } = this.getRenderValues();
|
|
24465
24537
|
const hasExpertSlot = showExpertSlot(this.state._label);
|
|
24466
24538
|
const ariaDescription = (_a = this.state._ariaDescription) === null || _a === void 0 ? void 0 : _a.trim();
|
|
24467
|
-
return (hAsync(Host, { key: '
|
|
24539
|
+
return (hAsync(Host, { key: '95cb568bb3eff8d366c9add6680e8ef55ff13b37' }, hAsync("a", Object.assign({ key: 'da620b1a780bf191333ab07aefc79dcb17059279', ref: this.catchRef }, tagAttrs, { accessKey: this.state._accessKey, "aria-current": this.state._ariaCurrent, "aria-controls": this.state._ariaControls, "aria-description": ariaDescription || undefined, "aria-disabled": this.state._disabled ? 'true' : undefined, "aria-expanded": typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined, "aria-owns": this.state._ariaOwns, "aria-label": this.state._hideLabel && typeof this.state._label === 'string'
|
|
24468
24540
|
? `${this.state._label}${isExternal ? ` (${this.translateOpenLinkInTab})` : ''}`
|
|
24469
24541
|
: undefined, "aria-keyshortcuts": this.state._shortKey, class: clsx('kol-link', {
|
|
24470
24542
|
'kol-link--disabled': this.state._disabled === true,
|
|
@@ -24474,7 +24546,7 @@ class KolLinkWc {
|
|
|
24474
24546
|
'kol-link--inline': this.state._inline === true,
|
|
24475
24547
|
'kol-link--standalone': this.state._inline === false,
|
|
24476
24548
|
[this.state._customClass]: this.state._buttonVariant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
|
|
24477
|
-
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: '
|
|
24549
|
+
}) }, this.state._on, { onClick: this.onClick, onKeyPress: this.onClick, role: this.state._role, tabIndex: this.state._disabled ? -1 : this.state._tabIndex }), hAsync(KolSpanFc, { key: 'db460a4feeeedc6814f05baa13f9617af4fd7472', class: "kol-link__text", badgeText: this.state._accessKey || this.state._shortKey, icons: this.state._icons, hideLabel: this.state._hideLabel, label: hasExpertSlot ? '' : this.state._label || this.state._href }, hAsync("slot", { key: 'be6d382efe304b98ab1f0005dd02284db06f0714', name: "expert", slot: "expert" })), isExternal && (hAsync(KolIconTag, { key: '1dc8d91a26164254e0156191568cc227b5852074', class: "kol-link__icon", _label: this.state._hideLabel ? '' : this.translateOpenLinkInTab, _icons: 'codicon codicon-link-external', "aria-hidden": this.state._hideLabel }))), this.state._hideLabel === true && (hAsync(KolTooltipWcTag, { key: '5d9c344ad0a30f44c762bf1b3b4ecadab9b66595', "aria-hidden": "true", class: "kol-link__tooltip", ref: (ref) => (this.tooltipRef = ref), hidden: hasExpertSlot, _badgeText: this.state._accessKey || this.state._shortKey, _align: this.state._tooltipAlign, _label: this.state._label || this.state._href }))));
|
|
24478
24550
|
}
|
|
24479
24551
|
validateAccessKey(value) {
|
|
24480
24552
|
validateAccessKey(this, value);
|
|
@@ -27882,8 +27954,13 @@ class KolSelectWc {
|
|
|
27882
27954
|
}
|
|
27883
27955
|
}
|
|
27884
27956
|
async focus() {
|
|
27885
|
-
|
|
27886
|
-
|
|
27957
|
+
return new Promise((resolve) => {
|
|
27958
|
+
requestAnimationFrame(() => {
|
|
27959
|
+
var _a;
|
|
27960
|
+
(_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
27961
|
+
resolve();
|
|
27962
|
+
});
|
|
27963
|
+
});
|
|
27887
27964
|
}
|
|
27888
27965
|
async kolFocus() {
|
|
27889
27966
|
return this.focus();
|
|
@@ -27909,11 +27986,11 @@ class KolSelectWc {
|
|
|
27909
27986
|
} });
|
|
27910
27987
|
}
|
|
27911
27988
|
render() {
|
|
27912
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
27989
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '6035493b06940cc2dd07937fb3a3723184397c0d' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'c3e3301e5e3c2ee55b2fb6d8c18dea1028a48f52', state: this.state }, hAsync("form", { key: '9db82379bd81278b03baaba699316631b8374ff4', onSubmit: (event) => {
|
|
27913
27990
|
event.preventDefault();
|
|
27914
27991
|
propagateSubmitEventToForm({
|
|
27915
27992
|
form: this.host});
|
|
27916
|
-
} }, hAsync("input", { key: '
|
|
27993
|
+
} }, hAsync("input", { key: 'fb33e29c11e295241f99bacebcbe94c1275f5c5f', type: "submit", hidden: true }), hAsync(SelectStateWrapper, Object.assign({ key: '1dc3a556b861525d96b38eaefc1643d6cc7c80a1' }, this.getSelectProps()))))));
|
|
27917
27994
|
}
|
|
27918
27995
|
constructor(hostRef) {
|
|
27919
27996
|
registerInstance(this, hostRef);
|
|
@@ -28151,8 +28228,13 @@ class KolSingleSelect {
|
|
|
28151
28228
|
return this._value;
|
|
28152
28229
|
}
|
|
28153
28230
|
async focus() {
|
|
28154
|
-
|
|
28155
|
-
|
|
28231
|
+
return new Promise((resolve) => {
|
|
28232
|
+
requestAnimationFrame(() => {
|
|
28233
|
+
var _a;
|
|
28234
|
+
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28235
|
+
resolve();
|
|
28236
|
+
});
|
|
28237
|
+
});
|
|
28156
28238
|
}
|
|
28157
28239
|
async kolFocus() {
|
|
28158
28240
|
return this.focus();
|
|
@@ -28319,7 +28401,7 @@ class KolSingleSelect {
|
|
|
28319
28401
|
render() {
|
|
28320
28402
|
var _a;
|
|
28321
28403
|
const isDisabled = this.state._disabled === true;
|
|
28322
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
28404
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'f19360b9684abe5c1ecef23424e6d8fd1fb7d550' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: 'f0905bdd7596b0e640758968d73f02baf0838af1', state: this.state }, hAsync("div", { key: '178f328d1fb98e96f0ab27d59f6a8f24282ac970', class: "kol-single-select__group" }, hAsync(InputStateWrapper, Object.assign({ key: '1372ab304b762b817e21d91d3537e430a2cac03d' }, this.getInputProps())), this._inputValue && !this.state._hideClearButton && (hAsync(KolButtonWcTag, { key: '0de9417090e7d48e3463aa1df24323c16120dac6', _icons: "codicon codicon-close", _label: this.translateDeleteSelection, _hideLabel: true, _buttonVariant: "ghost", _disabled: isDisabled, "data-testid": "single-select-delete", class: clsx('kol-single-select__delete', {
|
|
28323
28405
|
'kol-single-select__delete--disabled': isDisabled,
|
|
28324
28406
|
}), _on: {
|
|
28325
28407
|
onClick: () => {
|
|
@@ -28327,9 +28409,9 @@ class KolSingleSelect {
|
|
|
28327
28409
|
this.clearSelection();
|
|
28328
28410
|
(_a = this.refInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28329
28411
|
},
|
|
28330
|
-
} })), hAsync(KolIconTag, { key: '
|
|
28412
|
+
} })), hAsync(KolIconTag, { key: 'fae151a9238323aa9a547a0f90e84920811da22e', _icons: "codicon codicon-triangle-down", _label: "", class: clsx('kol-custom-suggestions-toggle', {
|
|
28331
28413
|
'kol-custom-suggestions-toggle--disabled': isDisabled,
|
|
28332
|
-
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: '
|
|
28414
|
+
}), onClick: this.toggleListbox.bind(this) })), this._isOpen && !isDisabled && (hAsync(CustomSuggestionsOptionsGroupFc, { key: 'ac5c9cbbd66a6f7f06c19ee953b15c9744e5c0dc', blockSuggestionMouseOver: this.blockSuggestionMouseOver, onKeyDown: this.handleKeyDownDropdown.bind(this), style: { '--visible-options': `${(_a = this._rows) !== null && _a !== void 0 ? _a : 5}` } }, Array.isArray(this._filteredOptions) && this._filteredOptions.length > 0 ? (this._filteredOptions.map((option, index) => (hAsync(CustomSuggestionsOptionFc, { index: index, option: option.label, searchTerm: this._inputValue, ref: (el) => {
|
|
28333
28415
|
if (el)
|
|
28334
28416
|
this.refOptions[index] = el;
|
|
28335
28417
|
}, selected: this._value === option.value, disabled: option.disabled ? true : false, onClick: (event) => {
|
|
@@ -30508,8 +30590,13 @@ class KolTextarea {
|
|
|
30508
30590
|
return (_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.value;
|
|
30509
30591
|
}
|
|
30510
30592
|
async focus() {
|
|
30511
|
-
|
|
30512
|
-
|
|
30593
|
+
return new Promise((resolve) => {
|
|
30594
|
+
requestAnimationFrame(() => {
|
|
30595
|
+
var _a;
|
|
30596
|
+
(_a = this.textareaRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
30597
|
+
resolve();
|
|
30598
|
+
});
|
|
30599
|
+
});
|
|
30513
30600
|
}
|
|
30514
30601
|
async kolFocus() {
|
|
30515
30602
|
return this.focus();
|
|
@@ -30538,7 +30625,7 @@ class KolTextarea {
|
|
|
30538
30625
|
} });
|
|
30539
30626
|
}
|
|
30540
30627
|
render() {
|
|
30541
|
-
return (hAsync(FormFieldStateWrapper, Object.assign({ key: '
|
|
30628
|
+
return (hAsync(FormFieldStateWrapper, Object.assign({ key: 'af782a83effd3abe8ea1aa7ca3bf5d5c71b71bd6' }, this.getFormFieldProps()), hAsync(InputContainerStateWrapperFc, { key: '70669a7491695fb801e89aa22a877cc31d3b2012', state: this.state }, hAsync(TextAreaStateWrapper, Object.assign({ key: 'c999297e55a476ebbf394ff15e5ba52a398410f5' }, this.getTextAreaProps())))));
|
|
30542
30629
|
}
|
|
30543
30630
|
constructor(hostRef) {
|
|
30544
30631
|
registerInstance(this, hostRef);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/hydrate",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"mocha-snapshots": "4.2.0",
|
|
52
52
|
"prettier": "3.8.1",
|
|
53
53
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
54
|
-
"rimraf": "6.1.
|
|
55
|
-
"@public-ui/components": "3.1.
|
|
54
|
+
"rimraf": "6.1.3",
|
|
55
|
+
"@public-ui/components": "3.1.3"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"type": "commonjs",
|