@ui5/webcomponents-base
Advanced tools
Comparing version 0.23.4 to 0.23.5
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.23.5](https://github.com/SAP/ui5-webcomponents/compare/v0.23.4...v0.23.5) (2020-10-08) | ||
### Bug Fixes | ||
* **framework:** Allow role as a property name ([#2290](https://github.com/SAP/ui5-webcomponents/issues/2290)) ([a78c871](https://github.com/SAP/ui5-webcomponents/commit/a78c871)) | ||
## [0.23.4](https://github.com/SAP/ui5-webcomponents/compare/v0.23.3...v0.23.4) (2020-10-06) | ||
@@ -8,0 +19,0 @@ |
@@ -9,3 +9,3 @@ const t=new Map,e=(e,s)=>{t.set(e,s)},s=e=>t.get(e),n={default:"sap_fiori_3",all:["sap_fiori_3","sap_fiori_3_dark","sap_belize","sap_belize_hcb","sap_belize_hcw","sap_fiori_3_hcb","sap_fiori_3_hcw"]}.default,i={default:"en",all:["ar","bg","ca","cs","da","de","el","en","es","et","fi","fr","hi","hr","hu","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]}.default,r={default:"en",all:["ar","ar_EG","ar_SA","bg","ca","cs","da","de","de_AT","de_CH","el","el_CY","en","en_AU","en_GB","en_HK","en_IE","en_IN","en_NZ","en_PG","en_SG","en_ZA","es","es_AR","es_BO","es_CL","es_CO","es_MX","es_PE","es_UY","es_VE","et","fa","fi","fr","fr_BE","fr_CA","fr_CH","fr_LU","he","hi","hr","hu","id","it","it_CH","ja","kk","ko","lt","lv","ms","nb","nl","nl_BE","pl","pt","pt_PT","ro","ru","ru_UA","sk","sl","sr","sv","th","tr","uk","vi","zh_CN","zh_HK","zh_SG","zh_TW"]}.default;var a=()=>{const t=navigator.languages;return t&&t[0]||(()=>navigator.language)()||navigator.userLanguage||navigator.browserLanguage||i},o={},l=o.hasOwnProperty,c=o.toString,d=l.toString,u=d.call(Object),h=function(t){var e,s;return!(!t||"[object Object]"!==c.call(t))&&(!(e=Object.getPrototypeOf(t))||"function"==typeof(s=l.call(e,"constructor")&&e.constructor)&&d.call(s)===u)},p=Object.create(null),m=function(){var t,e,s,n,i,r,a=arguments[2]||{},o=3,l=arguments.length,c=arguments[0]||!1,d=arguments[1]?void 0:p;for("object"!=typeof a&&"function"!=typeof a&&(a={});o<l;o++)if(null!=(i=arguments[o]))for(n in i)t=a[n],s=i[n],"__proto__"!==n&&a!==s&&(c&&s&&(h(s)||(e=Array.isArray(s)))?(e?(e=!1,r=t&&Array.isArray(t)?t:[]):r=t&&h(t)?t:{},a[n]=m(c,arguments[1],r,s)):s!==d&&(a[n]=s));return a},f=function(){var t=[!0,!1];return t.push.apply(t,arguments),m.apply(null,t)};let g=!1,_={animationMode:"full",theme:n,rtl:null,language:null,calendarType:null,noConflict:!1,formatSettings:{},useDefaultLanguage:!1,assetsPath:""};const y=new Map;y.set("true",!0),y.set("false",!1);const w=()=>{g||((()=>{const t=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let e;if(t){try{e=JSON.parse(t.innerHTML)}catch(t){console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(_=f(_,e))}})(),new URLSearchParams(window.location.search).forEach((t,e)=>{if(!e.startsWith("sap-ui"))return;const s=t.toLowerCase(),n=e.split("sap-ui-")[1];y.has(t)&&(t=y.get(s)),_[n]=t}),(()=>{const t=s("OpenUI5Support");if(!t||!t.isLoaded())return;const e=t.getConfigurationSettingsObject();_=f(_,e)})(),g=!0)};class v{constructor(){this._eventRegistry={}}attachEvent(t,e){const s=this._eventRegistry;let n=s[t];Array.isArray(n)||(s[t]=[],n=s[t]),n.push({function:e})}detachEvent(t,e){const s=this._eventRegistry;let n=s[t];n&&(n=n.filter(t=>t.function!==e),0===n.length&&delete s[t])}fireEvent(t,e){const s=this._eventRegistry[t];return s?s.map(t=>t.function.call(this,e)):[]}isHandlerAttached(t,e){const s=this._eventRegistry[t];if(!s)return!1;for(let t=0;t<s.length;t++){if(s[t].function===e)return!0}return!1}hasListeners(t){return!!this._eventRegistry[t]}}const b=new v,S=10;const A=t=>{const e=[];return t.forEach(t=>{e.push(t)}),e},E=new Set,C=new Set;let x;const P=t=>{E.add(t)},O=t=>E.has(t),M=()=>A(E),R=t=>{C.add(t),x||(x=setTimeout(()=>{L(),x=void 0},1e3))},L=()=>{console.warn(`The following tags have already been defined by a different UI5 Web Components version: ${A(C).join(", ")}`),C.clear()},D=new Set,N=t=>{D.add(t)},T=t=>D.has(t),I=new Set,$=new class{constructor(){this.list=[],this.lookup=new Set}add(t){this.lookup.has(t)||(this.list.push(t),this.lookup.add(t))}remove(t){this.lookup.has(t)&&(this.list=this.list.filter(e=>e!==t),this.lookup.delete(t))}shift(){const t=this.list.shift();if(t)return this.lookup.delete(t),t}isEmpty(){return 0===this.list.length}isAdded(t){return this.lookup.has(t)}process(t){let e;const s=new Map;for(e=this.shift();e;){const n=s.get(e)||0;if(n>S)throw new Error(`Web component processed too many times this task, max allowed is: ${S}`);t(e),s.set(e,n+1),e=this.shift()}}};let V,k,j,U,F,z;class B{constructor(){throw new Error("Static class")}static async renderDeferred(t){$.add(t),await B.scheduleRenderTask()}static renderImmediately(t){t._render()}static cancelRender(t){$.remove(t)}static async scheduleRenderTask(){U||(U=new Promise(t=>{window.requestAnimationFrame(()=>{$.process(t=>t._render()),U=null,t(),j||(j=setTimeout(()=>{j=void 0,$.isEmpty()&&B._resolveTaskPromise()},200))})})),await U}static whenDOMUpdated(){return V||(V=new Promise(t=>{k=t,window.requestAnimationFrame(()=>{$.isEmpty()&&(V=void 0,t())})}),V)}static whenAllCustomElementsAreDefined(){const t=M().map(t=>customElements.whenDefined(t));return Promise.all(t)}static async whenFinished(){await B.whenAllCustomElementsAreDefined(),await B.whenDOMUpdated()}static _resolveTaskPromise(){$.isEmpty()&&k&&(k.call(this),k=void 0,V=void 0)}static register(t){I.add(t)}static deregister(t){I.delete(t)}static reRenderAllUI5Elements(t){I.forEach(e=>{const s=e.constructor.getMetadata().getTag(),n=T(e.constructor),i=e.constructor.getMetadata().isLanguageAware();(!t||t.tag===s||t.rtlAware&&n||t.languageAware&&i)&&B.renderDeferred(e)})}}const H=()=>(void 0===F&&(F=(()=>(w(),_.language))()),F),W=()=>(void 0===z&&(t=>{z=t})((()=>(w(),_.useDefaultLanguage))()),z),Z=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i;class q{constructor(t){const e=Z.exec(t.replace(/_/g,"-"));if(null===e)throw new Error(`The given language ${t} does not adhere to BCP-47.`);this.sLocaleId=t,this.sLanguage=e[1]||null,this.sScript=e[2]||null,this.sRegion=e[3]||null,this.sVariant=e[4]&&e[4].slice(1)||null,this.sExtension=e[5]&&e[5].slice(1)||null,this.sPrivateUse=e[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,t=>t.toUpperCase())),this.sRegion&&(this.sRegion=this.sRegion.toUpperCase())}getLanguage(){return this.sLanguage}getScript(){return this.sScript}getRegion(){return this.sRegion}getVariant(){return this.sVariant}getVariantSubtags(){return this.sVariant?this.sVariant.split("-"):[]}getExtension(){return this.sExtension}getExtensionSubtags(){return this.sExtension?this.sExtension.slice(2).split("-"):[]}getPrivateUse(){return this.sPrivateUse}getPrivateUseSubtags(){return this.sPrivateUse?this.sPrivateUse.slice(2).split("-"):[]}hasPrivateUseSubtag(t){return this.getPrivateUseSubtags().indexOf(t)>=0}toString(){const t=[this.sLanguage];return this.sScript&&t.push(this.sScript),this.sRegion&&t.push(this.sRegion),this.sVariant&&t.push(this.sVariant),this.sExtension&&t.push(this.sExtension),this.sPrivateUse&&t.push(this.sPrivateUse),t.join("-")}}const G=t=>{try{if(t&&"string"==typeof t)return new q(t)}catch(t){}},J=t=>t?G(t):H()?new q(H()):G(a()),X=new Map,Y=new Map,K=new Map,Q=async t=>{X.get(t)||X.set(t,fetch(t));const e=await X.get(t);return K.get(t)||K.set(t,e.text()),K.get(t)},tt=/^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i,et=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,st={he:"iw",yi:"ji",id:"in",sr:"sh"},nt=t=>{if(!t)return r;if("zh_HK"===t)return"zh_TW";const e=t.lastIndexOf("_");return e>=0?t.slice(0,e):t!==r?r:""};let it;const rt=()=>(void 0===it&&(it=(()=>(w(),_.assetsPath))()),it),at=t=>{const e=rt();return e&&"string"==typeof t?`${e}${t}`:t},ot=new Map,lt=new Map,ct=(t,e)=>{ot.set(t,e)},dt=t=>ot.get(t),ut=async t=>{const e=lt.get(t);if(!e)return void console.warn("Message bundle assets are not configured. Falling back to English texts.",` You need to import ${t}/dist/Assets.js with a build tool that supports JSON imports.`);const n=J().getLanguage(),a=J().getRegion(),o=W();let l=(t=>{let e;if(!t)return r;if("string"==typeof t&&(e=tt.exec(t.replace(/_/g,"-")))){let t=e[1].toLowerCase(),s=e[3]?e[3].toUpperCase():void 0;const n=e[2]?e[2].toLowerCase():void 0,i=e[4]?e[4].slice(1):void 0,r=e[6];return t=st[t]||t,r&&(e=et.exec(r))||i&&(e=et.exec(i))?`en_US_${e[1].toLowerCase()}`:("zh"!==t||s||("hans"===n?s="CN":"hant"===n&&(s="TW")),t+(s?"_"+s+(i?"_"+i.replace("-","_"):""):""))}})(n+(a?`-${a}`:""));for(;l!==i&&!e[l];)l=nt(l);if(o&&l===i)return void ct(t,null);const c=e[l];if("object"==typeof c)return void ct(t,c);const d=await Q(at(c));let u;if(d.startsWith("{"))u=JSON.parse;else{const t=s("PropertiesFormatSupport");if(!t)throw new Error('In order to support .properties files, please: import "@ui5/webcomponents-base/dist/features/PropertiesFormatSupport.js";');u=t.parser}const h=u(d);ct(t,h)};var ht;ht=()=>{const t=[...ot.keys()];return Promise.all(t.map(ut))},b.attachEvent("languageChange",ht);const pt=new Map,mt=new Map,ft=new Set,gt=new Set,_t=(t,e,s)=>{s._?mt.set(`${t}_${e}`,s._):s.includes(":root")||""===s?mt.set(`${t}_${e}`,s):pt.set(`${t}_${e}`,s),ft.add(t),gt.add(e)},yt=async(t,e)=>{const s=mt.get(`${t}_${e}`);if(void 0!==s)return s;if(!gt.has(e)){const e=[...gt.values()].join(", ");return console.warn(`You have requested a non-registered theme - falling back to ${n}. Registered themes are: ${e}`),mt.get(`${t}_${n}`)}const i=await wt(t,e),r=i._||i;return mt.set(`${t}_${e}`,r),r},wt=async(t,e)=>{const s=pt.get(`${t}_${e}`);if(!s)throw new Error(`You have to import the ${t}/dist/Assets.js module to switch to additional themes`);return".css"===(t=>{const e=t.lastIndexOf(".");return e<1?"":t.slice(e)})(s)?Q(s):(async t=>{X.get(t)||X.set(t,fetch(t));const e=await X.get(t);return Y.get(t)||Y.set(t,e.json()),Y.get(t)})(at(s))},vt=()=>ft; | ||
*/ | ||
!function(t){var e,s=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,n=s&&"a=1"===new s({a:1}).toString(),i=s&&"+"===new s("s=%2B").get("s"),r="__URLSearchParams__",a=!s||((e=new s).append("s"," &"),"s=+%26"===e.toString()),o=u.prototype,l=!(!t.Symbol||!t.Symbol.iterator);if(!(s&&n&&i&&a)){o.append=function(t,e){g(this[r],t,e)},o.delete=function(t){delete this[r][t]},o.get=function(t){var e=this[r];return t in e?e[t][0]:null},o.getAll=function(t){var e=this[r];return t in e?e[t].slice(0):[]},o.has=function(t){return t in this[r]},o.set=function(t,e){this[r][t]=[""+e]},o.toString=function(){var t,e,s,n,i=this[r],a=[];for(e in i)for(s=h(e),t=0,n=i[e];t<n.length;t++)a.push(s+"="+h(n[t]));return a.join("&")};var c=!!i&&s&&!n&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:c?new Proxy(s,{construct:function(t,e){return new t(new u(e[0]).toString())}}):u});var d=t.URLSearchParams.prototype;d.polyfill=!0,d.forEach=d.forEach||function(t,e){var s=f(this.toString());Object.getOwnPropertyNames(s).forEach((function(n){s[n].forEach((function(s){t.call(e,s,n,this)}),this)}),this)},d.sort=d.sort||function(){var t,e,s,n=f(this.toString()),i=[];for(t in n)i.push(t);for(i.sort(),e=0;e<i.length;e++)this.delete(i[e]);for(e=0;e<i.length;e++){var r=i[e],a=n[r];for(s=0;s<a.length;s++)this.append(r,a[s])}},d.keys=d.keys||function(){var t=[];return this.forEach((function(e,s){t.push(s)})),m(t)},d.values=d.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),m(t)},d.entries=d.entries||function(){var t=[];return this.forEach((function(e,s){t.push([s,e])})),m(t)},l&&(d[t.Symbol.iterator]=d[t.Symbol.iterator]||d.entries)}function u(t){((t=t||"")instanceof URLSearchParams||t instanceof u)&&(t=t.toString()),this[r]=f(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return decodeURIComponent(t.replace(/\+/g," "))}function m(e){var s={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return l&&(s[t.Symbol.iterator]=function(){return s}),s}function f(t){var e={};if("object"==typeof t)for(var s in t)t.hasOwnProperty(s)&&g(e,s,t[s]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var n=t.split("&"),i=0;i<n.length;i++){var r=n[i],a=r.indexOf("=");-1<a?g(e,p(r.slice(0,a)),p(r.slice(a+1))):r&&g(e,p(r),"")}}return e}function g(t,e,s){var n="string"==typeof s?s:null!=s&&"function"==typeof s.toString?s.toString():JSON.stringify(s);e in t?t[e].push(n):t[e]=[n]}}("undefined"!=typeof global?global:window);(()=>{if(!window.ShadyDOM)return;const t=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get(){return t.get.apply(this)},set(e){t.set.apply(this,arguments);const s=this.parentNode;s instanceof HTMLElement&&s.isUI5Element&&s._processChildren()}})})();const bt=(t,e={})=>{const s=document.createElement("style");return s.type="text/css",Object.entries(e).forEach(t=>s.setAttribute(...t)),s.textContent=t,document.head.appendChild(s),s},St=(t,e)=>{const s=document.head.querySelector(`style[data-ui5-theme-properties="${e}"]`);if(s)s.textContent=t||"";else{bt(t,{"data-ui5-theme-properties":e})}},At=()=>{const t=(()=>{let t=document.querySelector(".sapThemeMetaData-Base-baseLib");if(t)return getComputedStyle(t).backgroundImage;t=document.createElement("span"),t.style.display="none",t.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(t);const e=getComputedStyle(t).backgroundImage;return document.body.removeChild(t),e})();if(t&&"none"!==t)return(t=>{let e,s;try{e=t.Path.match(/\.([^.]+)\.css_variables$/)[1],s=t.Extends[0]}catch(e){return void console.warn("Malformed theme metadata Object",t)}return{themeName:e,baseThemeName:s}})((t=>{const e=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(t);if(e&&e.length>=2){let t=e[1];if(t=t.replace(/\\"/g,'"'),"{"!==t.charAt(0)&&"}"!==t.charAt(t.length-1))try{t=decodeURIComponent(t)}catch(t){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(t)}catch(t){console.warn("Malformed theme metadata string, unable to parse JSON")}}})(t))};let Et;const Ct=()=>!!window.CSSVarsPonyfill,xt=()=>{Et=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,variables:Pt()?Ot():{},silent:!0})},Pt=()=>{const t=document.body;return t.hasAttribute("data-ui5-compact-size")||t.classList.contains("ui5-content-density-compact")||t.classList.contains("sapUiSizeCompact")},Ot=()=>{const t={};return[...document.querySelectorAll("[data-ui5-theme-properties]")].forEach(e=>{const s=e.textContent.replace("\n","");let n;const i=new RegExp("data-ui5-compact-size[^{]*{(.*?)}","g");for(;null!==(n=i.exec(s));){n[1].split(";").forEach(e=>{const s=e.split(":");t[s[0].trim()]=s[1].trim()})}}),t},Mt=new v,Rt="@ui5/webcomponents-theme-base",Lt=async t=>{if(!vt().has(Rt))return;const e=await yt(Rt,t);St(e,Rt)},Dt=async t=>{const e=(()=>{const t=At();if(t)return t;const e=s("OpenUI5Support");if(e){if(e.cssVariablesLoaded())return{themeName:e.getConfigurationSettingsObject().theme}}})();e&&t===e.themeName?(()=>{const t=document.head.querySelector(`style[data-ui5-theme-properties="${Rt}"]`);t&&t.parentElement.removeChild(t)})():await Lt(t);const n=(t=>gt.has(t))(t)?t:e&&e.baseThemeName;await(async t=>{vt().forEach(async e=>{if(e===Rt)return;const s=await yt(e,t);St(s,e)})})(n),Ct()&&xt(),(t=>Mt.fireEvent("themeLoaded",t))(t)};let Nt;const Tt=()=>(void 0===Nt&&(Nt=(()=>(w(),_.theme))()),Nt),It=async t=>{Nt!==t&&(Nt=t,await Dt(Nt))},$t=window.sap,Vt=$t&&$t.ui&&"function"==typeof $t.ui.getCore&&$t.ui.getCore();e("OpenUI5Support",{isLoaded:()=>!!Vt,init:()=>Vt?new Promise(t=>{Vt.attachInit(()=>{$t.ui.require(["sap/ui/core/LocaleData"],t)})}):Promise.resolve(),getConfigurationSettingsObject:()=>{if(!Vt)return;const t=Vt.getConfiguration(),e=$t.ui.require("sap/ui/core/LocaleData");return{animationMode:t.getAnimationMode(),language:t.getLanguage(),theme:t.getTheme(),rtl:t.getRTL(),calendarType:t.getCalendarType(),formatSettings:{firstDayOfWeek:e?e.getInstance(t.getLocale()).getFirstDayOfWeek():void 0}}},getLocaleDataObject:()=>{if(!Vt)return;const t=Vt.getConfiguration();return $t.ui.require("sap/ui/core/LocaleData").getInstance(t.getLocale())._get()},attachListeners:()=>{Vt&&(()=>{const t=Vt.getConfiguration();Vt.attachThemeChanged(async()=>{await It(t.getTheme())})})()},cssVariablesLoaded:()=>{if(!Vt)return;const t=[...document.head.children].find(t=>"sap-ui-theme-sap.ui.core"===t.id);return t?!!t.href.match(/\/css(-|_)variables\.css/):void 0}});let kt;let jt;const Ut=()=>jt||(jt=new Promise(async t=>{const e=s("OpenUI5Support");e&&await e.init(),await(()=>new Promise(t=>{document.body?t():document.addEventListener("DOMContentLoaded",()=>{t()})}))(),await Dt(Tt()),e&&e.attachListeners(),(()=>{if(document.querySelector("head>style[data-ui5-font-face]"))return;const t=s("OpenUI5Support");t&&t.isLoaded()||bt('\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local("72"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff?ui5-webcomponents) format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local(\'72-full\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff?ui5-webcomponents) format("woff");\n\t\t\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff?ui5-webcomponents) format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold-full\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff?ui5-webcomponents) format("woff");\n\t}\n',{"data-ui5-font-face":""})})(),document.querySelector("head>style[data-ui5-system-css-vars]")||bt('\n\t:root {\n\t\t--_ui5_content_density:cozy;\n\t}\n\t\n\t[data-ui5-compact-size],\n\t.ui5-content-density-compact,\n\t.sapUiSizeCompact {\n\t\t--_ui5_content_density:compact;\n\t}\n\t\n\t[dir="rtl"] {\n\t\t--_ui5_dir:rtl;\n\t}\n\t\n\t[dir="ltr"] {\n\t\t--_ui5_dir:ltr;\n\t}\n',{"data-ui5-system-css-vars":""}),await(()=>kt||(kt=new Promise(t=>{window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor(()=>{t()}):t()}),kt))(),t()}),jt);class Ft{static isValid(t){}static generataTypeAcessors(t){Object.keys(t).forEach(e=>{Object.defineProperty(this,e,{get:()=>t[e]})})}}const zt=new Map,Bt=new Map,Ht=t=>{if(!zt.has(t)){const e=Zt(t.split("-"));zt.set(t,e)}return zt.get(t)},Wt=t=>{if(!Bt.has(t)){const e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Bt.set(t,e)}return Bt.get(t)},Zt=t=>t.map((t,e)=>0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(""),qt=t=>t&&t instanceof HTMLElement&&"slot"===t.localName;let Gt={include:[/^ui5-/],exclude:[]};const Jt=new Map,Xt=t=>{if(!Jt.has(t)){const e=Gt.include.some(e=>t.match(e))&&!Gt.exclude.some(e=>t.match(e));Jt.set(t,e)}return Jt.get(t)},Yt=t=>{Xt(t)};class Kt{constructor(t){this.metadata=t}static validatePropertyValue(t,e){return e.multiple?t.map(t=>Qt(t,e)):Qt(t,e)}static validateSlotValue(t,e){return te(t,e)}getPureTag(){return this.metadata.tag}getTag(){const t=this.metadata.tag,e=Yt(t);return e?`${t}-${e}`:t}getAltTag(){const t=this.metadata.altTag;if(!t)return;const e=Yt(t);return e?`${t}-${e}`:t}hasAttribute(t){const e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute,this).map(Wt)}getSlots(){return this.metadata.slots||{}}canSlotText(){const t=this.getSlots().default;return t&&t.type===Node}hasSlots(){return!!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.entries(this.getSlots()).some(([t,e])=>e.individualSlots)}slotsAreManaged(){return!!this.metadata.managedSlots}getProperties(){return this.metadata.properties||{}}getEvents(){return this.metadata.events||{}}isLanguageAware(){return!!this.metadata.languageAware}}const Qt=(t,e)=>{const s=e.type;return s===Boolean?"boolean"==typeof t&&t:s===String?"string"==typeof t||null==t?t:t.toString():s===Object?"object"==typeof t?t:e.defaultValue:((t,e,s=!1)=>{if("function"!=typeof t||"function"!=typeof e)return!1;if(s&&t===e)return!0;let n=t;do{n=Object.getPrototypeOf(n)}while(null!==n&&n!==e);return n===e})(s,Ft)?s.isValid(t)?t:e.defaultValue:void 0},te=(t,e)=>{if(null===t)return t;return(t=>qt(t)?t.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement):[t])(t).forEach(t=>{if(!(t instanceof e.type))throw new Error(`${t} is not of type ${e.type}`)}),t},ee=(t,e)=>{const s=e.constructor.getUniqueDependencies().map(t=>t.getMetadata().getPureTag()).filter(Xt);return t(e,s,void 0)},se=(t,e=document.body)=>{let s=document.querySelector(t);return s||(s=document.createElement(t),e.insertBefore(s,e.firstChild))},ne=()=>se("ui5-static-area"),ie=()=>{ne().destroy()};class re extends HTMLElement{constructor(){super()}get isUI5Element(){return!0}destroy(){const t=document.querySelector(this.tagName.toLowerCase());t.parentElement.removeChild(t)}}customElements.get("ui5-static-area")||customElements.define("ui5-static-area",re);const ae=t=>Array.isArray(t)?oe(t).join(" "):t,oe=t=>t.reduce((t,e)=>t.concat(Array.isArray(e)?oe(e):e),[]);class le{constructor(t){this.ui5ElementContext=t,this._rendered=!1}isRendered(){return this._rendered}_updateFragment(){const t=ee(this.ui5ElementContext.constructor.staticAreaTemplate,this.ui5ElementContext),e=!window.ShadyDOM&&ae(this.ui5ElementContext.constructor.staticAreaStyles);this.staticAreaItemDomRef||(this.staticAreaItemDomRef=document.createElement("ui5-static-area-item"),this.staticAreaItemDomRef.attachShadow({mode:"open"}),this.staticAreaItemDomRef.classList.add(this.ui5ElementContext._id),ne().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this._updateContentDensity(this.ui5ElementContext.isCompact),this.ui5ElementContext.constructor.render(t,this.staticAreaItemDomRef.shadowRoot,e,{eventContext:this.ui5ElementContext})}_removeFragmentFromStaticArea(){if(!this.staticAreaItemDomRef)return;const t=ne();t.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,t.childElementCount<1&&ie()}_updateContentDensity(t){this.staticAreaItemDomRef&&(t?(this.staticAreaItemDomRef.classList.add("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.add("ui5-content-density-compact")):(this.staticAreaItemDomRef.classList.remove("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.remove("ui5-content-density-compact")))}async getDomRef(){return this._rendered&&this.staticAreaItemDomRef||this._updateFragment(),await B.whenDOMUpdated(),this.staticAreaItemDomRef.shadowRoot}}class ce extends HTMLElement{constructor(){super()}get isUI5Element(){return!0}}customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",ce);const de=window,ue=new WeakMap;class he{constructor(){throw new Error("Static class")}static observeDOMNode(t,e,s){let n=ue.get(t);if(n)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");de.ShadyDOM?n=de.ShadyDOM.observeChildren(t,e):(n=new MutationObserver(e),n.observe(t,s)),ue.set(t,n)}static unobserveDOMNode(t){const e=ue.get(t);e&&(e instanceof MutationObserver?e.disconnect():de.ShadyDOM.unobserveChildren(e),ue.delete(t))}}const pe=["value-changed"];let me;const fe=()=>(void 0===me&&(me=(()=>(w(),_.noConflict))()),me),ge=t=>{const e=fe();return!(t=>pe.includes(t))(t)&&(!0===e||!(t=>{const e=fe();return!(e.events&&e.events.includes&&e.events.includes(t))})(t))};const _e={iw:"he",ji:"yi",in:"id",sh:"sr"},ye=(t=>{const e=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(t);return e&&e[2]?e[2].split(/,/):null})("$cldr-rtl-locales:ar,fa,he$")||[],we=()=>{const t=(()=>(w(),_.rtl))();return null!==t?!!t:(t=>(t=t&&_e[t]||t,ye.indexOf(t)>=0))(H()||a())},ve=new v,be=t=>{ve.attachEvent("CustomCSSChange",t)},Se={},Ae=new Map;be(t=>{Ae.delete(t)});const Ee=t=>{const e=t.getMetadata().getTag();if(!Ae.has(e)){const s=(t=>Se[t]?Se[t].join(""):"")(e)||"",n=`${ae(t.styles)} ${s}`;Ae.set(e,n)}return Ae.get(e)},Ce=new Map;be(t=>{Ce.delete(t)});const xe=t=>{const e=t.getMetadata().getTag();if(!Ce.has(e)){const s=Ee(t),n=new CSSStyleSheet;n.replaceSync(s),Ce.set(e,[n])}return Ce.get(e)},Pe=(t,e,s,n)=>{const i=s+e.length,r=t.charAt(i),a=t.substring(0,s)+n;if("("===r){const e=((t,e)=>{let s=1;for(let n=e+1;n<t.length;n++){const e=t.charAt(n);if("("===e?s++:")"===e&&s--,0===s)return n}})(t,i);return a+t.substring(i+1,e)+t.substring(e+1)}return a+t.substring(i)},Oe=(t,e,s)=>(t=((t,e,s)=>{let n=t.indexOf(e);for(;-1!==n;)n=(t=Pe(t,e,n,s)).indexOf(e);return t})(t=t.trim(),"::slotted","")).startsWith(":host")?Pe(t,":host",0,e):t.match(/^[@0-9]/)||"to"===t||"to{"===t?t:t.match(new RegExp(`^${e}[^a-zA-Z0-9-]`))?t:s&&t.startsWith(`[${s}]`)?t:`${e} ${t}`,Me=(t,e,s)=>{t=(t=t.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");let n="";return t.split("\n").forEach(t=>{if(t.match(/{$/)){const n=t.split(",");t=n.map(t=>Oe(t,e,s)).join(",")}n=`${n}${t}`}),n},Re=new Set;be(t=>{Re.delete(t)});const Le=t=>{const e=t.getMetadata().getTag(),s=t.getMetadata().getPureTag();if(Re.has(e))return;let n=Ee(t);n=Me(n,e,s);let i=(t=>{let e=t.staticAreaStyles;return Array.isArray(e)&&(e=e.join(" ")),e})(t);i&&(i=Me(i,"ui5-static-area-item"),n=`${n} ${i}`),bt(n,{"data-ui5-element-styles":e}),Ct()&&(Et||(Et=window.setTimeout(xt,0))),Re.add(e)};class De extends Ft{static isValid(t){return Number.isInteger(t)}}class Ne extends Ft{static isValid(t){return Number(t)===t}}const Te=["disabled","title","hidden"],Ie=t=>{if(Te.includes(t)||t.startsWith("aria"))return!0;return![HTMLElement,Element,Node].some(e=>e.prototype.hasOwnProperty(t))},$e={events:{"_property-change":{}}};let Ve=0;const ke=new Map,je=new Map,Ue="--_ui5_content_density",Fe="--_ui5_dir";class ze extends HTMLElement{constructor(){let t;super(),this._propertyChangeListeners=new Set,this._initializeState(),this._upgradeAllProperties(),this._initializeContainers(),this._upToDate=!1,this._inDOM=!1,this._fullyConnected=!1,this._domRefReadyPromise=new Promise(e=>{t=e}),this._domRefReadyPromise._deferredResolve=t,this._monitoredChildProps=new Map,this._shouldInvalidateParent=!1}addEventListener(t,e,s){return"_property-change"===t&&this._propertyChangeListeners.add(e),super.addEventListener(t,e,s)}removeEventListener(t,e,s){return"_property-change"===t&&this._propertyChangeListeners.delete(e),super.removeEventListener(t,e,s)}_hasPropertyChangeListeners(){return!!this._propertyChangeListeners.size}get _id(){return this.__id||(this.__id=`ui5wc_${++Ve}`),this.__id}_initializeContainers(){const t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea();t&&this.attachShadow({mode:"open"}),e&&(this.staticAreaItem=new le(this))}async connectedCallback(){this.setAttribute(this.constructor.getMetadata().getPureTag(),"");const t=this.constructor._needsShadowDOM(),e=this.constructor.getMetadata().slotsAreManaged();if(this._inDOM=!0,e&&(this._startObservingDOMChildren(),await this._processChildren()),t){if(this.shadowRoot||await Promise.resolve(),!this._inDOM)return;B.register(this),B.renderImmediately(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,"function"==typeof this.onEnterDOM&&this.onEnterDOM()}}disconnectedCallback(){const t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea(),s=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,s&&this._stopObservingDOMChildren(),t&&(B.deregister(this),this._fullyConnected&&("function"==typeof this.onExitDOM&&this.onExitDOM(),this._fullyConnected=!1)),e&&this.staticAreaItem._removeFragmentFromStaticArea(),B.cancelRender(this)}_startObservingDOMChildren(){if(!this.constructor.getMetadata().hasSlots())return;const t={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};he.observeDOMNode(this,this._processChildren.bind(this),t)}_stopObservingDOMChildren(){he.unobserveDOMNode(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor.getMetadata().getSlots(),e=this.constructor.getMetadata().canSlotText(),s=Array.from(e?this.childNodes:this.children);for(const[e,s]of Object.entries(t))this._clearSlot(e,s);const n=new Map,i=new Map,r=s.map(async(e,s)=>{const r=this.constructor._getSlotName(e),a=t[r];if(void 0===a){const s=Object.keys(t).join(", ");return void console.warn(`Unknown slotName: ${r}, ignoring`,e,`Valid values are: ${s}`)}if(a.individualSlots){const t=(n.get(r)||0)+1;n.set(r,t),e._individualSlot=`${r}-${t}`}if(e instanceof HTMLElement){const t=e.localName;if(t.includes("-")){if(!window.customElements.get(t)){const e=window.customElements.whenDefined(t);let s=ke.get(t);s||(s=new Promise(t=>setTimeout(t,1e3)),ke.set(t,s)),await Promise.race([e,s])}window.customElements.upgrade(e)}}(e=this.constructor.getMetadata().constructor.validateSlotValue(e,a)).isUI5Element&&a.listenFor&&this._attachChildPropertyUpdated(e,a.listenFor),e.isUI5Element&&a.invalidateParent&&(e._shouldInvalidateParent=!0),qt(e)&&this._attachSlotChange(e);const o=a.propertyName||r;i.has(o)?i.get(o).push({child:e,idx:s}):i.set(o,[{child:e,idx:s}])});await Promise.all(r),i.forEach((t,e)=>{this._state[e]=t.sort((t,e)=>t.idx-e.idx).map(t=>t.child)}),this._invalidate("slots")}_clearSlot(t,e){const s=e.propertyName||t;let n=this._state[s];Array.isArray(n)||(n=[n]),n.forEach(t=>{t&&t.isUI5Element&&(this._detachChildPropertyUpdated(t),t._shouldInvalidateParent=!1),qt(t)&&this._detachSlotChange(t)}),this._state[s]=[],this._invalidate(s,[])}attributeChangedCallback(t,e,s){const n=this.constructor.getMetadata().getProperties(),i=t.replace(/^ui5-/,""),r=Ht(i);if(n.hasOwnProperty(r)){const t=n[r].type;t===Boolean&&(s=null!==s),t===De&&(s=parseInt(s)),t===Ne&&(s=parseFloat(s)),this[r]=s}}_updateAttribute(t,e){if(!this.constructor.getMetadata().hasAttribute(t))return;if("object"==typeof e)return;const s=Wt(t),n=this.getAttribute(s);"boolean"==typeof e?!0===e&&null===n?this.setAttribute(s,""):!1===e&&null!==n&&this.removeAttribute(s):n!==e&&this.setAttribute(s,e)}_upgradeProperty(t){if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this[t]=e}}_upgradeAllProperties(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}_initializeState(){const t=this.constructor._getDefaultState();this._state=Object.assign({},t)}_attachChildPropertyUpdated(t,e){const s=this.constructor._getSlotName(t);let n=[],i=[];Array.isArray(e)?n=e:(n=Array.isArray(e.include)?e.include:[],i=Array.isArray(e.exclude)?e.exclude:[]),this._monitoredChildProps.has(s)||this._monitoredChildProps.set(s,{observedProps:n,notObservedProps:i}),t.addEventListener("_property-change",this._invalidateParentOnPropertyUpdate)}_detachChildPropertyUpdated(t){t.removeEventListener("_property-change",this._invalidateParentOnPropertyUpdate)}_propertyChange(t,e){this._updateAttribute(t,e),this._hasPropertyChangeListeners()&&this.dispatchEvent(new CustomEvent("_property-change",{detail:{name:t,newValue:e},composed:!1,bubbles:!1}))}_invalidateParentOnPropertyUpdate(t){const e=this.parentNode;if(!e)return;const s=e.constructor._getSlotName(this),n=e._monitoredChildProps.get(s);if(!n)return;const{observedProps:i,notObservedProps:r}=n,a=1===i.length&&"*"===i[0]||i.includes(t.detail.name),o=r.includes(t.detail.name);a&&!o&&e._invalidate("_parent_",this)}_attachSlotChange(t){this._invalidateOnSlotChange||(this._invalidateOnSlotChange=()=>{this._invalidate("slotchange")}),t.addEventListener("slotchange",this._invalidateOnSlotChange)}_detachSlotChange(t){t.removeEventListener("slotchange",this._invalidateOnSlotChange)}_invalidate(){this._shouldInvalidateParent&&this.parentNode._invalidate(),this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,B.renderDeferred(this))}_render(){const t=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),delete this._suppressInvalidation,this._upToDate=!0,this._updateShadowRoot(),this._shouldUpdateFragment()&&this.staticAreaItem._updateFragment(this),t&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}_updateShadowRoot(){if(!this.constructor._needsShadowDOM())return;let t;const e=ee(this.constructor.template,this);window.ShadyDOM&&Le(this.constructor),document.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=xe(this.constructor)),document.adoptedStyleSheets||window.ShadyDOM||(t=Ee(this.constructor)),this.constructor.render(e,this.shadowRoot,t,{eventContext:this})}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(t=>{t._individualSlot&&t.setAttribute("slot",t._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(this.shadowRoot&&0!==this.shadowRoot.children.length)return 1===this.shadowRoot.children.length?this.shadowRoot.children[0]:this.shadowRoot.children[1]}getFocusDomRef(){const t=this.getDomRef();if(t){return t.querySelector("[data-sap-focus-ref]")||t}}getStableDomRef(t){return this.getDomRef().querySelector(`[data-ui5-stable=${t}]`)}async focus(){await this._waitForDomRef();const t=this.getFocusDomRef();t&&"function"==typeof t.focus&&t.focus()}fireEvent(t,e,s=!1,n=!0){const i=this._fireEvent(t,e,s,n),r=Ht(t);return r!==t?i&&this._fireEvent(r,e,s):i}_fireEvent(t,e,s=!1,n=!0){let i=!0;const r=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:n,cancelable:s});if(i=this.dispatchEvent(r),ge(t))return i;const a=new CustomEvent(t,{detail:e,composed:!1,bubbles:n,cancelable:s});return this.dispatchEvent(a)&&i}getSlottedNodes(t){return this[t].reduce((t,e)=>qt(e)?t.concat(e.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement)):t.concat([e]),[])}get isCompact(){return"compact"===getComputedStyle(this).getPropertyValue(Ue)}get effectiveDir(){N(this.constructor);const t=window.document,e=["ltr","rtl"],s=getComputedStyle(this).getPropertyValue(Fe);return e.includes(s)?s:e.includes(this.dir)?this.dir:e.includes(t.documentElement.dir)?t.documentElement.dir:e.includes(t.body.dir)?t.body.dir:we()?"rtl":void 0}updateStaticAreaItemContentDensity(){this.staticAreaItem&&this.staticAreaItem._updateContentDensity(this.isCompact)}get isUI5Element(){return!0}static get observedAttributes(){return this.getMetadata().getAttributesList()}static _getSlotName(t){if(!(t instanceof HTMLElement))return"default";const e=t.getAttribute("slot");if(e){const t=e.match(/^(.+?)-\d+$/);return t?t[1]:e}return"default"}static _needsShadowDOM(){return!!this.template}_shouldUpdateFragment(){return this.constructor._needsStaticArea()&&this.staticAreaItem.isRendered()}static _needsStaticArea(){return"function"==typeof this.staticAreaTemplate}getStaticAreaItemDomRef(){return this.staticAreaItem.getDomRef()}static _getDefaultState(){if(this._defaultState)return this._defaultState;const t=this.getMetadata(),e={},s=t.slotsAreManaged(),n=t.getProperties();for(const t in n){const s=n[t].type,i=n[t].defaultValue;s===Boolean?(e[t]=!1,void 0!==i&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):n[t].multiple?e[t]=[]:e[t]=s===Object?"defaultValue"in n[t]?n[t].defaultValue:{}:s===String?"defaultValue"in n[t]?n[t].defaultValue:"":i}if(s){const s=t.getSlots();for(const[t,n]of Object.entries(s)){e[n.propertyName||t]=[]}}return this._defaultState=e,e}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[e,n]of Object.entries(s)){if(!Ie(e))throw new Error(`"${e}" is not a valid property name. Use a name that does not collide with DOM APIs`);if(n.type===Boolean&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All booleans are false by default.`);if(n.type===Array)throw new Error(`Wrong type for property "${e}". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...`);if(n.type===Object&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All properties of type "Object" are empty objects by default.`);if(n.multiple&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All multiple properties are empty arrays by default.`);Object.defineProperty(t,e,{get(){if(void 0!==this._state[e])return this._state[e];const t=n.defaultValue;return n.type!==Boolean&&(n.type===String?t:n.multiple?[]:t)},set(t){t=this.constructor.getMetadata().constructor.validatePropertyValue(t,n),this._state[e]!==t&&(this._state[e]=t,this._invalidate(e,t),this._propertyChange(e,t))}})}if(e){const e=this.getMetadata().getSlots();for(const[s,n]of Object.entries(e)){if(!Ie(s))throw new Error(`"${s}" is not a valid property name. Use a name that does not collide with DOM APIs`);const e=n.propertyName||s;Object.defineProperty(t,e,{get(){return void 0!==this._state[e]?this._state[e]:[]},set(){throw new Error("Cannot set slots directly, use the DOM APIs")}})}}}static get metadata(){return $e}static get styles(){return""}static get staticAreaStyles(){return""}static get dependencies(){return[]}static getUniqueDependencies(){if(!je.has(this)){const t=this.dependencies.filter((t,e,s)=>s.indexOf(t)===e);je.set(this,t)}return je.get(this)}static whenDependenciesDefined(){return Promise.all(this.getUniqueDependencies().map(t=>t.define()))}static async onDefine(){return Promise.resolve()}static async define(){await Ut(),await Promise.all([this.whenDependenciesDefined(),this.onDefine()]);const t=this.getMetadata().getTag(),e=this.getMetadata().getAltTag(),s=O(t),n=customElements.get(t);if(n&&!s)R(t);else if(!n&&(this._generateAccessors(),P(t),window.customElements.define(t,this),e&&!customElements.get(e))){class t extends(this){}P(e),window.customElements.define(e,t)}return this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==ze;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=f({},...t);return this._metadata=new Kt(s),this._metadata}} | ||
!function(t){var e,s=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,n=s&&"a=1"===new s({a:1}).toString(),i=s&&"+"===new s("s=%2B").get("s"),r="__URLSearchParams__",a=!s||((e=new s).append("s"," &"),"s=+%26"===e.toString()),o=u.prototype,l=!(!t.Symbol||!t.Symbol.iterator);if(!(s&&n&&i&&a)){o.append=function(t,e){g(this[r],t,e)},o.delete=function(t){delete this[r][t]},o.get=function(t){var e=this[r];return t in e?e[t][0]:null},o.getAll=function(t){var e=this[r];return t in e?e[t].slice(0):[]},o.has=function(t){return t in this[r]},o.set=function(t,e){this[r][t]=[""+e]},o.toString=function(){var t,e,s,n,i=this[r],a=[];for(e in i)for(s=h(e),t=0,n=i[e];t<n.length;t++)a.push(s+"="+h(n[t]));return a.join("&")};var c=!!i&&s&&!n&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:c?new Proxy(s,{construct:function(t,e){return new t(new u(e[0]).toString())}}):u});var d=t.URLSearchParams.prototype;d.polyfill=!0,d.forEach=d.forEach||function(t,e){var s=f(this.toString());Object.getOwnPropertyNames(s).forEach((function(n){s[n].forEach((function(s){t.call(e,s,n,this)}),this)}),this)},d.sort=d.sort||function(){var t,e,s,n=f(this.toString()),i=[];for(t in n)i.push(t);for(i.sort(),e=0;e<i.length;e++)this.delete(i[e]);for(e=0;e<i.length;e++){var r=i[e],a=n[r];for(s=0;s<a.length;s++)this.append(r,a[s])}},d.keys=d.keys||function(){var t=[];return this.forEach((function(e,s){t.push(s)})),m(t)},d.values=d.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),m(t)},d.entries=d.entries||function(){var t=[];return this.forEach((function(e,s){t.push([s,e])})),m(t)},l&&(d[t.Symbol.iterator]=d[t.Symbol.iterator]||d.entries)}function u(t){((t=t||"")instanceof URLSearchParams||t instanceof u)&&(t=t.toString()),this[r]=f(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return decodeURIComponent(t.replace(/\+/g," "))}function m(e){var s={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return l&&(s[t.Symbol.iterator]=function(){return s}),s}function f(t){var e={};if("object"==typeof t)for(var s in t)t.hasOwnProperty(s)&&g(e,s,t[s]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var n=t.split("&"),i=0;i<n.length;i++){var r=n[i],a=r.indexOf("=");-1<a?g(e,p(r.slice(0,a)),p(r.slice(a+1))):r&&g(e,p(r),"")}}return e}function g(t,e,s){var n="string"==typeof s?s:null!=s&&"function"==typeof s.toString?s.toString():JSON.stringify(s);e in t?t[e].push(n):t[e]=[n]}}("undefined"!=typeof global?global:window);(()=>{if(!window.ShadyDOM)return;const t=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue");Object.defineProperty(Node.prototype,"nodeValue",{get(){return t.get.apply(this)},set(e){t.set.apply(this,arguments);const s=this.parentNode;s instanceof HTMLElement&&s.isUI5Element&&s._processChildren()}})})();const bt=(t,e={})=>{const s=document.createElement("style");return s.type="text/css",Object.entries(e).forEach(t=>s.setAttribute(...t)),s.textContent=t,document.head.appendChild(s),s},St=(t,e)=>{const s=document.head.querySelector(`style[data-ui5-theme-properties="${e}"]`);if(s)s.textContent=t||"";else{bt(t,{"data-ui5-theme-properties":e})}},At=()=>{const t=(()=>{let t=document.querySelector(".sapThemeMetaData-Base-baseLib");if(t)return getComputedStyle(t).backgroundImage;t=document.createElement("span"),t.style.display="none",t.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(t);const e=getComputedStyle(t).backgroundImage;return document.body.removeChild(t),e})();if(t&&"none"!==t)return(t=>{let e,s;try{e=t.Path.match(/\.([^.]+)\.css_variables$/)[1],s=t.Extends[0]}catch(e){return void console.warn("Malformed theme metadata Object",t)}return{themeName:e,baseThemeName:s}})((t=>{const e=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(t);if(e&&e.length>=2){let t=e[1];if(t=t.replace(/\\"/g,'"'),"{"!==t.charAt(0)&&"}"!==t.charAt(t.length-1))try{t=decodeURIComponent(t)}catch(t){return void console.warn("Malformed theme metadata string, unable to decodeURIComponent")}try{return JSON.parse(t)}catch(t){console.warn("Malformed theme metadata string, unable to parse JSON")}}})(t))};let Et;const Ct=()=>!!window.CSSVarsPonyfill,xt=()=>{Et=void 0,window.CSSVarsPonyfill.cssVars({rootElement:document.head,variables:Pt()?Ot():{},silent:!0})},Pt=()=>{const t=document.body;return t.hasAttribute("data-ui5-compact-size")||t.classList.contains("ui5-content-density-compact")||t.classList.contains("sapUiSizeCompact")},Ot=()=>{const t={};return[...document.querySelectorAll("[data-ui5-theme-properties]")].forEach(e=>{const s=e.textContent.replace("\n","");let n;const i=new RegExp("data-ui5-compact-size[^{]*{(.*?)}","g");for(;null!==(n=i.exec(s));){n[1].split(";").forEach(e=>{const s=e.split(":");t[s[0].trim()]=s[1].trim()})}}),t},Mt=new v,Rt="@ui5/webcomponents-theme-base",Lt=async t=>{if(!vt().has(Rt))return;const e=await yt(Rt,t);St(e,Rt)},Dt=async t=>{const e=(()=>{const t=At();if(t)return t;const e=s("OpenUI5Support");if(e){if(e.cssVariablesLoaded())return{themeName:e.getConfigurationSettingsObject().theme}}})();e&&t===e.themeName?(()=>{const t=document.head.querySelector(`style[data-ui5-theme-properties="${Rt}"]`);t&&t.parentElement.removeChild(t)})():await Lt(t);const n=(t=>gt.has(t))(t)?t:e&&e.baseThemeName;await(async t=>{vt().forEach(async e=>{if(e===Rt)return;const s=await yt(e,t);St(s,e)})})(n),Ct()&&xt(),(t=>Mt.fireEvent("themeLoaded",t))(t)};let Nt;const Tt=()=>(void 0===Nt&&(Nt=(()=>(w(),_.theme))()),Nt),It=async t=>{Nt!==t&&(Nt=t,await Dt(Nt))},$t=window.sap,Vt=$t&&$t.ui&&"function"==typeof $t.ui.getCore&&$t.ui.getCore();e("OpenUI5Support",{isLoaded:()=>!!Vt,init:()=>Vt?new Promise(t=>{Vt.attachInit(()=>{$t.ui.require(["sap/ui/core/LocaleData"],t)})}):Promise.resolve(),getConfigurationSettingsObject:()=>{if(!Vt)return;const t=Vt.getConfiguration(),e=$t.ui.require("sap/ui/core/LocaleData");return{animationMode:t.getAnimationMode(),language:t.getLanguage(),theme:t.getTheme(),rtl:t.getRTL(),calendarType:t.getCalendarType(),formatSettings:{firstDayOfWeek:e?e.getInstance(t.getLocale()).getFirstDayOfWeek():void 0}}},getLocaleDataObject:()=>{if(!Vt)return;const t=Vt.getConfiguration();return $t.ui.require("sap/ui/core/LocaleData").getInstance(t.getLocale())._get()},attachListeners:()=>{Vt&&(()=>{const t=Vt.getConfiguration();Vt.attachThemeChanged(async()=>{await It(t.getTheme())})})()},cssVariablesLoaded:()=>{if(!Vt)return;const t=[...document.head.children].find(t=>"sap-ui-theme-sap.ui.core"===t.id);return t?!!t.href.match(/\/css(-|_)variables\.css/):void 0}});let kt;let jt;const Ut=()=>jt||(jt=new Promise(async t=>{const e=s("OpenUI5Support");e&&await e.init(),await(()=>new Promise(t=>{document.body?t():document.addEventListener("DOMContentLoaded",()=>{t()})}))(),await Dt(Tt()),e&&e.attachListeners(),(()=>{if(document.querySelector("head>style[data-ui5-font-face]"))return;const t=s("OpenUI5Support");t&&t.isLoaded()||bt('\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local("72"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff?ui5-webcomponents) format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 400;\n\t\tsrc: local(\'72-full\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff?ui5-webcomponents) format("woff");\n\t\t\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff?ui5-webcomponents) format("woff");\n\t}\n\t\n\t@font-face {\n\t\tfont-family: "72full";\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tsrc: local(\'72-Bold-full\'),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2"),\n\t\t\turl(https://ui5.sap.com/sdk/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff?ui5-webcomponents) format("woff");\n\t}\n',{"data-ui5-font-face":""})})(),document.querySelector("head>style[data-ui5-system-css-vars]")||bt('\n\t:root {\n\t\t--_ui5_content_density:cozy;\n\t}\n\t\n\t[data-ui5-compact-size],\n\t.ui5-content-density-compact,\n\t.sapUiSizeCompact {\n\t\t--_ui5_content_density:compact;\n\t}\n\t\n\t[dir="rtl"] {\n\t\t--_ui5_dir:rtl;\n\t}\n\t\n\t[dir="ltr"] {\n\t\t--_ui5_dir:ltr;\n\t}\n',{"data-ui5-system-css-vars":""}),await(()=>kt||(kt=new Promise(t=>{window.WebComponents&&!window.WebComponents.ready&&window.WebComponents.waitFor?window.WebComponents.waitFor(()=>{t()}):t()}),kt))(),t()}),jt);class Ft{static isValid(t){}static generataTypeAcessors(t){Object.keys(t).forEach(e=>{Object.defineProperty(this,e,{get:()=>t[e]})})}}const zt=new Map,Bt=new Map,Ht=t=>{if(!zt.has(t)){const e=Zt(t.split("-"));zt.set(t,e)}return zt.get(t)},Wt=t=>{if(!Bt.has(t)){const e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Bt.set(t,e)}return Bt.get(t)},Zt=t=>t.map((t,e)=>0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(""),qt=t=>t&&t instanceof HTMLElement&&"slot"===t.localName;let Gt={include:[/^ui5-/],exclude:[]};const Jt=new Map,Xt=t=>{if(!Jt.has(t)){const e=Gt.include.some(e=>t.match(e))&&!Gt.exclude.some(e=>t.match(e));Jt.set(t,e)}return Jt.get(t)},Yt=t=>{Xt(t)};class Kt{constructor(t){this.metadata=t}static validatePropertyValue(t,e){return e.multiple?t.map(t=>Qt(t,e)):Qt(t,e)}static validateSlotValue(t,e){return te(t,e)}getPureTag(){return this.metadata.tag}getTag(){const t=this.metadata.tag,e=Yt(t);return e?`${t}-${e}`:t}getAltTag(){const t=this.metadata.altTag;if(!t)return;const e=Yt(t);return e?`${t}-${e}`:t}hasAttribute(t){const e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute,this).map(Wt)}getSlots(){return this.metadata.slots||{}}canSlotText(){const t=this.getSlots().default;return t&&t.type===Node}hasSlots(){return!!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.entries(this.getSlots()).some(([t,e])=>e.individualSlots)}slotsAreManaged(){return!!this.metadata.managedSlots}getProperties(){return this.metadata.properties||{}}getEvents(){return this.metadata.events||{}}isLanguageAware(){return!!this.metadata.languageAware}}const Qt=(t,e)=>{const s=e.type;return s===Boolean?"boolean"==typeof t&&t:s===String?"string"==typeof t||null==t?t:t.toString():s===Object?"object"==typeof t?t:e.defaultValue:((t,e,s=!1)=>{if("function"!=typeof t||"function"!=typeof e)return!1;if(s&&t===e)return!0;let n=t;do{n=Object.getPrototypeOf(n)}while(null!==n&&n!==e);return n===e})(s,Ft)?s.isValid(t)?t:e.defaultValue:void 0},te=(t,e)=>{if(null===t)return t;return(t=>qt(t)?t.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement):[t])(t).forEach(t=>{if(!(t instanceof e.type))throw new Error(`${t} is not of type ${e.type}`)}),t},ee=(t,e)=>{const s=e.constructor.getUniqueDependencies().map(t=>t.getMetadata().getPureTag()).filter(Xt);return t(e,s,void 0)},se=(t,e=document.body)=>{let s=document.querySelector(t);return s||(s=document.createElement(t),e.insertBefore(s,e.firstChild))},ne=()=>se("ui5-static-area"),ie=()=>{ne().destroy()};class re extends HTMLElement{constructor(){super()}get isUI5Element(){return!0}destroy(){const t=document.querySelector(this.tagName.toLowerCase());t.parentElement.removeChild(t)}}customElements.get("ui5-static-area")||customElements.define("ui5-static-area",re);const ae=t=>Array.isArray(t)?oe(t).join(" "):t,oe=t=>t.reduce((t,e)=>t.concat(Array.isArray(e)?oe(e):e),[]);class le{constructor(t){this.ui5ElementContext=t,this._rendered=!1}isRendered(){return this._rendered}_updateFragment(){const t=ee(this.ui5ElementContext.constructor.staticAreaTemplate,this.ui5ElementContext),e=!window.ShadyDOM&&ae(this.ui5ElementContext.constructor.staticAreaStyles);this.staticAreaItemDomRef||(this.staticAreaItemDomRef=document.createElement("ui5-static-area-item"),this.staticAreaItemDomRef.attachShadow({mode:"open"}),this.staticAreaItemDomRef.classList.add(this.ui5ElementContext._id),ne().appendChild(this.staticAreaItemDomRef),this._rendered=!0),this._updateContentDensity(this.ui5ElementContext.isCompact),this.ui5ElementContext.constructor.render(t,this.staticAreaItemDomRef.shadowRoot,e,{eventContext:this.ui5ElementContext})}_removeFragmentFromStaticArea(){if(!this.staticAreaItemDomRef)return;const t=ne();t.removeChild(this.staticAreaItemDomRef),this.staticAreaItemDomRef=null,t.childElementCount<1&&ie()}_updateContentDensity(t){this.staticAreaItemDomRef&&(t?(this.staticAreaItemDomRef.classList.add("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.add("ui5-content-density-compact")):(this.staticAreaItemDomRef.classList.remove("sapUiSizeCompact"),this.staticAreaItemDomRef.classList.remove("ui5-content-density-compact")))}async getDomRef(){return this._rendered&&this.staticAreaItemDomRef||this._updateFragment(),await B.whenDOMUpdated(),this.staticAreaItemDomRef.shadowRoot}}class ce extends HTMLElement{constructor(){super()}get isUI5Element(){return!0}}customElements.get("ui5-static-area-item")||customElements.define("ui5-static-area-item",ce);const de=window,ue=new WeakMap;class he{constructor(){throw new Error("Static class")}static observeDOMNode(t,e,s){let n=ue.get(t);if(n)throw new Error("A mutation/ShadyDOM observer is already assigned to this node.");de.ShadyDOM?n=de.ShadyDOM.observeChildren(t,e):(n=new MutationObserver(e),n.observe(t,s)),ue.set(t,n)}static unobserveDOMNode(t){const e=ue.get(t);e&&(e instanceof MutationObserver?e.disconnect():de.ShadyDOM.unobserveChildren(e),ue.delete(t))}}const pe=["value-changed"];let me;const fe=()=>(void 0===me&&(me=(()=>(w(),_.noConflict))()),me),ge=t=>{const e=fe();return!(t=>pe.includes(t))(t)&&(!0===e||!(t=>{const e=fe();return!(e.events&&e.events.includes&&e.events.includes(t))})(t))};const _e={iw:"he",ji:"yi",in:"id",sh:"sr"},ye=(t=>{const e=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(t);return e&&e[2]?e[2].split(/,/):null})("$cldr-rtl-locales:ar,fa,he$")||[],we=()=>{const t=(()=>(w(),_.rtl))();return null!==t?!!t:(t=>(t=t&&_e[t]||t,ye.indexOf(t)>=0))(H()||a())},ve=new v,be=t=>{ve.attachEvent("CustomCSSChange",t)},Se={},Ae=new Map;be(t=>{Ae.delete(t)});const Ee=t=>{const e=t.getMetadata().getTag();if(!Ae.has(e)){const s=(t=>Se[t]?Se[t].join(""):"")(e)||"",n=`${ae(t.styles)} ${s}`;Ae.set(e,n)}return Ae.get(e)},Ce=new Map;be(t=>{Ce.delete(t)});const xe=t=>{const e=t.getMetadata().getTag();if(!Ce.has(e)){const s=Ee(t),n=new CSSStyleSheet;n.replaceSync(s),Ce.set(e,[n])}return Ce.get(e)},Pe=(t,e,s,n)=>{const i=s+e.length,r=t.charAt(i),a=t.substring(0,s)+n;if("("===r){const e=((t,e)=>{let s=1;for(let n=e+1;n<t.length;n++){const e=t.charAt(n);if("("===e?s++:")"===e&&s--,0===s)return n}})(t,i);return a+t.substring(i+1,e)+t.substring(e+1)}return a+t.substring(i)},Oe=(t,e,s)=>(t=((t,e,s)=>{let n=t.indexOf(e);for(;-1!==n;)n=(t=Pe(t,e,n,s)).indexOf(e);return t})(t=t.trim(),"::slotted","")).startsWith(":host")?Pe(t,":host",0,e):t.match(/^[@0-9]/)||"to"===t||"to{"===t?t:t.match(new RegExp(`^${e}[^a-zA-Z0-9-]`))?t:s&&t.startsWith(`[${s}]`)?t:`${e} ${t}`,Me=(t,e,s)=>{t=(t=t.replace(/\n/g," ")).replace(/([{}])/g,"$1\n");let n="";return t.split("\n").forEach(t=>{if(t.match(/{$/)){const n=t.split(",");t=n.map(t=>Oe(t,e,s)).join(",")}n=`${n}${t}`}),n},Re=new Set;be(t=>{Re.delete(t)});const Le=t=>{const e=t.getMetadata().getTag(),s=t.getMetadata().getPureTag();if(Re.has(e))return;let n=Ee(t);n=Me(n,e,s);let i=(t=>{let e=t.staticAreaStyles;return Array.isArray(e)&&(e=e.join(" ")),e})(t);i&&(i=Me(i,"ui5-static-area-item"),n=`${n} ${i}`),bt(n,{"data-ui5-element-styles":e}),Ct()&&(Et||(Et=window.setTimeout(xt,0))),Re.add(e)};class De extends Ft{static isValid(t){return Number.isInteger(t)}}class Ne extends Ft{static isValid(t){return Number(t)===t}}const Te=["disabled","title","hidden","role","draggable"],Ie=t=>{if(Te.includes(t)||t.startsWith("aria"))return!0;return![HTMLElement,Element,Node].some(e=>e.prototype.hasOwnProperty(t))},$e={events:{"_property-change":{}}};let Ve=0;const ke=new Map,je=new Map,Ue="--_ui5_content_density",Fe="--_ui5_dir";class ze extends HTMLElement{constructor(){let t;super(),this._propertyChangeListeners=new Set,this._initializeState(),this._upgradeAllProperties(),this._initializeContainers(),this._upToDate=!1,this._inDOM=!1,this._fullyConnected=!1,this._domRefReadyPromise=new Promise(e=>{t=e}),this._domRefReadyPromise._deferredResolve=t,this._monitoredChildProps=new Map,this._shouldInvalidateParent=!1}addEventListener(t,e,s){return"_property-change"===t&&this._propertyChangeListeners.add(e),super.addEventListener(t,e,s)}removeEventListener(t,e,s){return"_property-change"===t&&this._propertyChangeListeners.delete(e),super.removeEventListener(t,e,s)}_hasPropertyChangeListeners(){return!!this._propertyChangeListeners.size}get _id(){return this.__id||(this.__id=`ui5wc_${++Ve}`),this.__id}_initializeContainers(){const t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea();t&&this.attachShadow({mode:"open"}),e&&(this.staticAreaItem=new le(this))}async connectedCallback(){this.setAttribute(this.constructor.getMetadata().getPureTag(),"");const t=this.constructor._needsShadowDOM(),e=this.constructor.getMetadata().slotsAreManaged();if(this._inDOM=!0,e&&(this._startObservingDOMChildren(),await this._processChildren()),t){if(this.shadowRoot||await Promise.resolve(),!this._inDOM)return;B.register(this),B.renderImmediately(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,"function"==typeof this.onEnterDOM&&this.onEnterDOM()}}disconnectedCallback(){const t=this.constructor._needsShadowDOM(),e=this.constructor._needsStaticArea(),s=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,s&&this._stopObservingDOMChildren(),t&&(B.deregister(this),this._fullyConnected&&("function"==typeof this.onExitDOM&&this.onExitDOM(),this._fullyConnected=!1)),e&&this.staticAreaItem._removeFragmentFromStaticArea(),B.cancelRender(this)}_startObservingDOMChildren(){if(!this.constructor.getMetadata().hasSlots())return;const t={childList:!0,subtree:this.constructor.getMetadata().canSlotText(),characterData:!0};he.observeDOMNode(this,this._processChildren.bind(this),t)}_stopObservingDOMChildren(){he.unobserveDOMNode(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor.getMetadata().getSlots(),e=this.constructor.getMetadata().canSlotText(),s=Array.from(e?this.childNodes:this.children);for(const[e,s]of Object.entries(t))this._clearSlot(e,s);const n=new Map,i=new Map,r=s.map(async(e,s)=>{const r=this.constructor._getSlotName(e),a=t[r];if(void 0===a){const s=Object.keys(t).join(", ");return void console.warn(`Unknown slotName: ${r}, ignoring`,e,`Valid values are: ${s}`)}if(a.individualSlots){const t=(n.get(r)||0)+1;n.set(r,t),e._individualSlot=`${r}-${t}`}if(e instanceof HTMLElement){const t=e.localName;if(t.includes("-")){if(!window.customElements.get(t)){const e=window.customElements.whenDefined(t);let s=ke.get(t);s||(s=new Promise(t=>setTimeout(t,1e3)),ke.set(t,s)),await Promise.race([e,s])}window.customElements.upgrade(e)}}(e=this.constructor.getMetadata().constructor.validateSlotValue(e,a)).isUI5Element&&a.listenFor&&this._attachChildPropertyUpdated(e,a.listenFor),e.isUI5Element&&a.invalidateParent&&(e._shouldInvalidateParent=!0),qt(e)&&this._attachSlotChange(e);const o=a.propertyName||r;i.has(o)?i.get(o).push({child:e,idx:s}):i.set(o,[{child:e,idx:s}])});await Promise.all(r),i.forEach((t,e)=>{this._state[e]=t.sort((t,e)=>t.idx-e.idx).map(t=>t.child)}),this._invalidate("slots")}_clearSlot(t,e){const s=e.propertyName||t;let n=this._state[s];Array.isArray(n)||(n=[n]),n.forEach(t=>{t&&t.isUI5Element&&(this._detachChildPropertyUpdated(t),t._shouldInvalidateParent=!1),qt(t)&&this._detachSlotChange(t)}),this._state[s]=[],this._invalidate(s,[])}attributeChangedCallback(t,e,s){const n=this.constructor.getMetadata().getProperties(),i=t.replace(/^ui5-/,""),r=Ht(i);if(n.hasOwnProperty(r)){const t=n[r].type;t===Boolean&&(s=null!==s),t===De&&(s=parseInt(s)),t===Ne&&(s=parseFloat(s)),this[r]=s}}_updateAttribute(t,e){if(!this.constructor.getMetadata().hasAttribute(t))return;if("object"==typeof e)return;const s=Wt(t),n=this.getAttribute(s);"boolean"==typeof e?!0===e&&null===n?this.setAttribute(s,""):!1===e&&null!==n&&this.removeAttribute(s):n!==e&&this.setAttribute(s,e)}_upgradeProperty(t){if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this[t]=e}}_upgradeAllProperties(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty,this)}_initializeState(){const t=this.constructor._getDefaultState();this._state=Object.assign({},t)}_attachChildPropertyUpdated(t,e){const s=this.constructor._getSlotName(t);let n=[],i=[];Array.isArray(e)?n=e:(n=Array.isArray(e.include)?e.include:[],i=Array.isArray(e.exclude)?e.exclude:[]),this._monitoredChildProps.has(s)||this._monitoredChildProps.set(s,{observedProps:n,notObservedProps:i}),t.addEventListener("_property-change",this._invalidateParentOnPropertyUpdate)}_detachChildPropertyUpdated(t){t.removeEventListener("_property-change",this._invalidateParentOnPropertyUpdate)}_propertyChange(t,e){this._updateAttribute(t,e),this._hasPropertyChangeListeners()&&this.dispatchEvent(new CustomEvent("_property-change",{detail:{name:t,newValue:e},composed:!1,bubbles:!1}))}_invalidateParentOnPropertyUpdate(t){const e=this.parentNode;if(!e)return;const s=e.constructor._getSlotName(this),n=e._monitoredChildProps.get(s);if(!n)return;const{observedProps:i,notObservedProps:r}=n,a=1===i.length&&"*"===i[0]||i.includes(t.detail.name),o=r.includes(t.detail.name);a&&!o&&e._invalidate("_parent_",this)}_attachSlotChange(t){this._invalidateOnSlotChange||(this._invalidateOnSlotChange=()=>{this._invalidate("slotchange")}),t.addEventListener("slotchange",this._invalidateOnSlotChange)}_detachSlotChange(t){t.removeEventListener("slotchange",this._invalidateOnSlotChange)}_invalidate(){this._shouldInvalidateParent&&this.parentNode._invalidate(),this._upToDate&&this.getDomRef()&&!this._suppressInvalidation&&(this._upToDate=!1,B.renderDeferred(this))}_render(){const t=this.constructor.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,"function"==typeof this.onBeforeRendering&&this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),delete this._suppressInvalidation,this._upToDate=!0,this._updateShadowRoot(),this._shouldUpdateFragment()&&this.staticAreaItem._updateFragment(this),t&&this._assignIndividualSlotsToChildren(),"function"==typeof this.onAfterRendering&&this.onAfterRendering()}_updateShadowRoot(){if(!this.constructor._needsShadowDOM())return;let t;const e=ee(this.constructor.template,this);window.ShadyDOM&&Le(this.constructor),document.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=xe(this.constructor)),document.adoptedStyleSheets||window.ShadyDOM||(t=Ee(this.constructor)),this.constructor.render(e,this.shadowRoot,t,{eventContext:this})}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(t=>{t._individualSlot&&t.setAttribute("slot",t._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(this.shadowRoot&&0!==this.shadowRoot.children.length)return 1===this.shadowRoot.children.length?this.shadowRoot.children[0]:this.shadowRoot.children[1]}getFocusDomRef(){const t=this.getDomRef();if(t){return t.querySelector("[data-sap-focus-ref]")||t}}getStableDomRef(t){return this.getDomRef().querySelector(`[data-ui5-stable=${t}]`)}async focus(){await this._waitForDomRef();const t=this.getFocusDomRef();t&&"function"==typeof t.focus&&t.focus()}fireEvent(t,e,s=!1,n=!0){const i=this._fireEvent(t,e,s,n),r=Ht(t);return r!==t?i&&this._fireEvent(r,e,s):i}_fireEvent(t,e,s=!1,n=!0){let i=!0;const r=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:n,cancelable:s});if(i=this.dispatchEvent(r),ge(t))return i;const a=new CustomEvent(t,{detail:e,composed:!1,bubbles:n,cancelable:s});return this.dispatchEvent(a)&&i}getSlottedNodes(t){return this[t].reduce((t,e)=>qt(e)?t.concat(e.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement)):t.concat([e]),[])}get isCompact(){return"compact"===getComputedStyle(this).getPropertyValue(Ue)}get effectiveDir(){N(this.constructor);const t=window.document,e=["ltr","rtl"],s=getComputedStyle(this).getPropertyValue(Fe);return e.includes(s)?s:e.includes(this.dir)?this.dir:e.includes(t.documentElement.dir)?t.documentElement.dir:e.includes(t.body.dir)?t.body.dir:we()?"rtl":void 0}updateStaticAreaItemContentDensity(){this.staticAreaItem&&this.staticAreaItem._updateContentDensity(this.isCompact)}get isUI5Element(){return!0}static get observedAttributes(){return this.getMetadata().getAttributesList()}static _getSlotName(t){if(!(t instanceof HTMLElement))return"default";const e=t.getAttribute("slot");if(e){const t=e.match(/^(.+?)-\d+$/);return t?t[1]:e}return"default"}static _needsShadowDOM(){return!!this.template}_shouldUpdateFragment(){return this.constructor._needsStaticArea()&&this.staticAreaItem.isRendered()}static _needsStaticArea(){return"function"==typeof this.staticAreaTemplate}getStaticAreaItemDomRef(){return this.staticAreaItem.getDomRef()}static _getDefaultState(){if(this._defaultState)return this._defaultState;const t=this.getMetadata(),e={},s=t.slotsAreManaged(),n=t.getProperties();for(const t in n){const s=n[t].type,i=n[t].defaultValue;s===Boolean?(e[t]=!1,void 0!==i&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):n[t].multiple?e[t]=[]:e[t]=s===Object?"defaultValue"in n[t]?n[t].defaultValue:{}:s===String?"defaultValue"in n[t]?n[t].defaultValue:"":i}if(s){const s=t.getSlots();for(const[t,n]of Object.entries(s)){e[n.propertyName||t]=[]}}return this._defaultState=e,e}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[e,n]of Object.entries(s)){if(Ie(e)||console.warn(`"${e}" is not a valid property name. Use a name that does not collide with DOM APIs`),n.type===Boolean&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All booleans are false by default.`);if(n.type===Array)throw new Error(`Wrong type for property "${e}". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...`);if(n.type===Object&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All properties of type "Object" are empty objects by default.`);if(n.multiple&&n.defaultValue)throw new Error(`Cannot set a default value for property "${e}". All multiple properties are empty arrays by default.`);Object.defineProperty(t,e,{get(){if(void 0!==this._state[e])return this._state[e];const t=n.defaultValue;return n.type!==Boolean&&(n.type===String?t:n.multiple?[]:t)},set(t){t=this.constructor.getMetadata().constructor.validatePropertyValue(t,n),this._state[e]!==t&&(this._state[e]=t,this._invalidate(e,t),this._propertyChange(e,t))}})}if(e){const e=this.getMetadata().getSlots();for(const[s,n]of Object.entries(e)){Ie(s)||console.warn(`"${s}" is not a valid property name. Use a name that does not collide with DOM APIs`);const e=n.propertyName||s;Object.defineProperty(t,e,{get(){return void 0!==this._state[e]?this._state[e]:[]},set(){throw new Error("Cannot set slots directly, use the DOM APIs")}})}}}static get metadata(){return $e}static get styles(){return""}static get staticAreaStyles(){return""}static get dependencies(){return[]}static getUniqueDependencies(){if(!je.has(this)){const t=this.dependencies.filter((t,e,s)=>s.indexOf(t)===e);je.set(this,t)}return je.get(this)}static whenDependenciesDefined(){return Promise.all(this.getUniqueDependencies().map(t=>t.define()))}static async onDefine(){return Promise.resolve()}static async define(){await Ut(),await Promise.all([this.whenDependenciesDefined(),this.onDefine()]);const t=this.getMetadata().getTag(),e=this.getMetadata().getAltTag(),s=O(t),n=customElements.get(t);if(n&&!s)R(t);else if(!n&&(this._generateAccessors(),P(t),window.customElements.define(t,this),e&&!customElements.get(e))){class t extends(this){}P(e),window.customElements.define(e,t)}return this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==ze;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=f({},...t);return this._metadata=new Kt(s),this._metadata}} | ||
/** | ||
@@ -12,0 +12,0 @@ * @license |
@@ -893,3 +893,3 @@ import merge from "./thirdparty/merge.js"; | ||
if (!isValidPropertyName(prop)) { | ||
throw new Error(`"${prop}" is not a valid property name. Use a name that does not collide with DOM APIs`); | ||
console.warn(`"${prop}" is not a valid property name. Use a name that does not collide with DOM APIs`); /* eslint-disable-line */ | ||
} | ||
@@ -950,3 +950,3 @@ | ||
if (!isValidPropertyName(slotName)) { | ||
throw new Error(`"${slotName}" is not a valid property name. Use a name that does not collide with DOM APIs`); | ||
console.warn(`"${slotName}" is not a valid property name. Use a name that does not collide with DOM APIs`); /* eslint-disable-line */ | ||
} | ||
@@ -953,0 +953,0 @@ |
@@ -7,2 +7,4 @@ // Note: disabled is present in IE so we explicitly allow it here. | ||
"hidden", | ||
"role", | ||
"draggable", | ||
]; | ||
@@ -9,0 +11,0 @@ |
{ | ||
"name": "@ui5/webcomponents-base", | ||
"version": "0.23.4", | ||
"version": "0.23.5", | ||
"description": "UI5 Web Components: webcomponents.base", | ||
@@ -33,3 +33,3 @@ "author": "SAP SE (https://www.sap.com)", | ||
"devDependencies": { | ||
"@ui5/webcomponents-tools": "0.23.4", | ||
"@ui5/webcomponents-tools": "0.23.5", | ||
"array-uniq": "^2.0.0", | ||
@@ -36,0 +36,0 @@ "chromedriver": "latest", |
@@ -893,3 +893,3 @@ import merge from "./thirdparty/merge.js"; | ||
if (!isValidPropertyName(prop)) { | ||
throw new Error(`"${prop}" is not a valid property name. Use a name that does not collide with DOM APIs`); | ||
console.warn(`"${prop}" is not a valid property name. Use a name that does not collide with DOM APIs`); /* eslint-disable-line */ | ||
} | ||
@@ -950,3 +950,3 @@ | ||
if (!isValidPropertyName(slotName)) { | ||
throw new Error(`"${slotName}" is not a valid property name. Use a name that does not collide with DOM APIs`); | ||
console.warn(`"${slotName}" is not a valid property name. Use a name that does not collide with DOM APIs`); /* eslint-disable-line */ | ||
} | ||
@@ -953,0 +953,0 @@ |
@@ -7,2 +7,4 @@ // Note: disabled is present in IE so we explicitly allow it here. | ||
"hidden", | ||
"role", | ||
"draggable", | ||
]; | ||
@@ -9,0 +11,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4585188
18898