@ui5/webcomponents-base 1.10.0 → 1.10.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,43 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.10.0](https://github.com/SAP/ui5-webcomponents/compare/v1.9.3...v1.10.0) (2023-01-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **i18n:** add mapping for norwegian locale ([#6284](https://github.com/SAP/ui5-webcomponents/issues/6284)) ([7fef62f](https://github.com/SAP/ui5-webcomponents/commit/7fef62f269c2e3903139aaf9dbb92519a77c6918)), closes [#6283](https://github.com/SAP/ui5-webcomponents/issues/6283)
12
+ * **i18n:** processing text with formater ([#6041](https://github.com/SAP/ui5-webcomponents/issues/6041)) ([f155dee](https://github.com/SAP/ui5-webcomponents/commit/f155deee5ca7b1cb4a0e1e61298a895344321eb0))
13
+ * **ui5-popover:** clicking on iframe now closes an open popover ([#6145](https://github.com/SAP/ui5-webcomponents/issues/6145)) ([f01e872](https://github.com/SAP/ui5-webcomponents/commit/f01e87276fb043c6b523623d0d72c53a0a0856fc)), closes [#6087](https://github.com/SAP/ui5-webcomponents/issues/6087)
14
+ * **ui5-side-navigation:** focus handling of tree inside popover ([#6155](https://github.com/SAP/ui5-webcomponents/issues/6155)) ([cf024bd](https://github.com/SAP/ui5-webcomponents/commit/cf024bd43e08dd4dccc6cab225b81b3f4f771a74))
15
+
16
+
17
+ ### Features
18
+
19
+ * add TS types for localization packages ([#6147](https://github.com/SAP/ui5-webcomponents/issues/6147)) ([39dcbfd](https://github.com/SAP/ui5-webcomponents/commit/39dcbfd91e6bc728f1c3feaff5e229ae3a359b06))
20
+ * create better types for rendering-related functionality ([#6059](https://github.com/SAP/ui5-webcomponents/issues/6059)) ([5fad3ca](https://github.com/SAP/ui5-webcomponents/commit/5fad3ca31158348d0a2ee22f72feeeeec1cb0dce))
21
+ * enable TS in main, fiori ([#6064](https://github.com/SAP/ui5-webcomponents/issues/6064)) ([0b56130](https://github.com/SAP/ui5-webcomponents/commit/0b561307b93b8af465dc5bee67650069ee138f7f))
22
+ * migrate illustrated-message component to TS, small refactor ([#6195](https://github.com/SAP/ui5-webcomponents/issues/6195)) ([046c779](https://github.com/SAP/ui5-webcomponents/commit/046c779f654648172619dd720c0d90342ec78fb9))
23
+ * support decorators for custom elements metadata ([#6072](https://github.com/SAP/ui5-webcomponents/issues/6072)) ([fc9ee6e](https://github.com/SAP/ui5-webcomponents/commit/fc9ee6e2af10b4315fde072a50ab37efa180c809))
24
+ * **ui5-breadcrumbs:** migrate to TS ([#6254](https://github.com/SAP/ui5-webcomponents/issues/6254)) ([02a6d64](https://github.com/SAP/ui5-webcomponents/commit/02a6d64a3c915b48f293d01ca008da8ad49095c7))
25
+ * **ui5-button, ui5-date-picker, ui5-calendar:** migrate to TS ([#6173](https://github.com/SAP/ui5-webcomponents/issues/6173)) ([7232ca0](https://github.com/SAP/ui5-webcomponents/commit/7232ca08f286c5dde10080373fb62247f1acf7b7)), closes [#6080](https://github.com/SAP/ui5-webcomponents/issues/6080)
26
+ * **ui5-list, ui5-li, ui5-li-custom:** migrate to TS ([#6166](https://github.com/SAP/ui5-webcomponents/issues/6166)) ([12b3570](https://github.com/SAP/ui5-webcomponents/commit/12b35707c3f0934dcb98fdcde0ed715140a4af4a))
27
+ * **ui5-tree-item-custom:** initial implementation ([#5962](https://github.com/SAP/ui5-webcomponents/issues/5962)) ([b148c23](https://github.com/SAP/ui5-webcomponents/commit/b148c23cf7ed11b4e17c9eda61a20fc48882ba4f))
28
+ * **ui5:** display focus outline via keyboard only ([#6084](https://github.com/SAP/ui5-webcomponents/issues/6084)) ([848997b](https://github.com/SAP/ui5-webcomponents/commit/848997bccf753a1b9b687a27083f3536f0335ff9))
29
+ * use Typescript for the `base` package ([#5982](https://github.com/SAP/ui5-webcomponents/issues/5982)) ([bd184d8](https://github.com/SAP/ui5-webcomponents/commit/bd184d81a4218328bc7bf04baf2bc1f69a361679))
30
+
31
+
32
+
33
+
34
+
35
+ ## [1.9.3](https://github.com/SAP/ui5-webcomponents/compare/v1.9.2...v1.9.3) (2022-12-16)
36
+
37
+ **Note:** Version bump only for package @ui5/webcomponents-base
38
+
39
+
40
+
41
+
42
+
6
43
  ## [1.9.1](https://github.com/SAP/ui5-webcomponents/compare/v1.9.0...v1.9.1) (2022-11-10)
7
44
 
8
45
  **Note:** Version bump only for package @ui5/webcomponents-base
@@ -544,7 +544,7 @@ class UI5Element extends HTMLElement {
544
544
  }
545
545
  res = `${res}: ${x.name}`;
546
546
  if (x.type === "property") {
547
- res = `${res} ${x.oldValue} => ${x.newValue}`;
547
+ res = `${res} ${JSON.stringify(x.oldValue)} => ${JSON.stringify(x.newValue)}`;
548
548
  }
549
549
 
550
550
  return res;
@@ -1,4 +1,4 @@
1
- const qs=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=s(r);fetch(r.href,o)}};qs();const we={themes:{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","sap_horizon","sap_horizon_dark","sap_horizon_hcb","sap_horizon_hcw","sap_horizon_exp"]},languages:{default:"en",all:["ar","bg","ca","cs","cy","da","de","el","en","en_GB","en_US_sappsd","en_US_saprigi","en_US_saptrc","es","es_MX","et","fi","fr","fr_CA","hi","hr","hu","in","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt_PT","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]},locales:{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","sr_Latn","sv","th","tr","uk","vi","zh_CN","zh_HK","zh_SG","zh_TW"]}},he=we.themes.default,fe=we.languages.default,$=we.locales.default,lt=we.locales.all;var Jt=()=>{const t=navigator.languages,e=()=>navigator.language;return t&&t[0]||e()||fe},Xt={},Yt=Xt.hasOwnProperty,Gs=Xt.toString,Qt=Yt.toString,Ks=Qt.call(Object),ut=function(t){var e,s;return!t||Gs.call(t)!=="[object Object]"?!1:(e=Object.getPrototypeOf(t),e?(s=Yt.call(e,"constructor")&&e.constructor,typeof s=="function"&&Qt.call(s)===Ks):!0)},Js=Object.create(null),es=function(t,e,s,n){var r,o,i,c,a,l,f=arguments[2]||{},u=3,d=arguments.length,h=arguments[0]||!1,p=arguments[1]?void 0:Js;for(typeof f!="object"&&typeof f!="function"&&(f={});u<d;u++)if((a=arguments[u])!=null)for(c in a)r=f[c],i=a[c],!(c==="__proto__"||f===i)&&(h&&i&&(ut(i)||(o=Array.isArray(i)))?(o?(o=!1,l=r&&Array.isArray(r)?r:[]):l=r&&ut(r)?r:{},f[c]=es(h,arguments[1],l,i)):i!==p&&(f[c]=i));return f};const Ye=function(t,e){return es(!0,!1,...arguments)},ts=new Map,Xs=(t,e)=>{ts.set(t,e)},b=t=>ts.get(t),Ys=t=>{const e=document.querySelector(`META[name="${t}"]`);return e&&e.getAttribute("content")},Qs=t=>{const e=Ys("sap-allowedThemeOrigins");return e&&e.split(",").some(s=>s==="*"||t===s.trim())},en=(t,e)=>{const s=new URL(t).pathname;return new URL(s,e).toString()},tn=t=>{let e,s;try{e=new URL(t);const n=e.origin;return e=e.toString(),e.startsWith(".")||e.startsWith("/")?s=new URL(e,window.location.href).toString():n&&Qs(n)?s=e.toString():s=en(e,window.location.href),s.endsWith("/")||(s=`${s}/`),`${s}UI5/`}catch{}};var We;(function(t){t.Full="full",t.Basic="basic",t.Minimal="minimal",t.None="none"})(We||(We={}));var sn=We;let dt=!1,_={animationMode:sn.Full,theme:he,themeRoot:void 0,rtl:void 0,language:void 0,calendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1};const nn=()=>(C(),_.animationMode),rn=()=>(C(),_.theme),on=()=>(C(),_.themeRoot),an=()=>(C(),_.rtl),cn=()=>(C(),_.language),ln=()=>(C(),_.fetchDefaultLanguage),un=()=>(C(),_.noConflict),dn=()=>(C(),_.calendarType),hn=()=>(C(),_.formatSettings),pe=new Map;pe.set("true",!0);pe.set("false",!1);const fn=()=>{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{console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(_=Ye(_,e))}},pn=()=>{const t=new URLSearchParams(window.location.search);t.forEach((e,s)=>{const n=s.split("sap-").length;n===0||n===s.split("sap-ui-").length||ht(s,e,"sap")}),t.forEach((e,s)=>{!s.startsWith("sap-ui")||ht(s,e,"sap-ui")})},gn=t=>{const e=t.split("@")[1];return tn(e)},mn=(t,e)=>t==="theme"&&e.includes("@")?e.split("@")[0]:e,ht=(t,e,s)=>{const n=e.toLowerCase(),r=t.split(`${s}-`)[1];pe.has(e)&&(e=pe.get(n)),r==="theme"?(_.theme=mn(r,e),e&&e.includes("@")&&(_.themeRoot=gn(e))):_[r]=e},yn=()=>{const t=b("OpenUI5Support");if(!t||!t.isLoaded())return;const e=t.getConfigurationSettingsObject();_=Ye(_,e)},C=()=>{dt||(fn(),pn(),yn(),dt=!0)};class O{constructor(){this._eventRegistry=new Map}attachEvent(e,s){const n=this._eventRegistry,r=n.get(e);if(!Array.isArray(r)){n.set(e,[s]);return}r.includes(s)||r.push(s)}detachEvent(e,s){const n=this._eventRegistry,r=n.get(e);if(!r)return;const o=r.indexOf(s);o!==-1&&r.splice(o,1),r.length===0&&n.delete(e)}fireEvent(e,s){const r=this._eventRegistry.get(e);return r?r.map(o=>o.call(this,s)):[]}fireEventAsync(e,s){return Promise.all(this.fireEvent(e,s))}isHandlerAttached(e,s){const r=this._eventRegistry.get(e);return r?r.includes(s):!1}hasListeners(e){return!!this._eventRegistry.get(e)}}const ss=new O,ns="languageChange",rs=t=>{ss.attachEvent(ns,t)},_n=t=>ss.fireEventAsync(ns,t),ft=10;class wn{constructor(){this.list=[],this.lookup=new Set}add(e){this.lookup.has(e)||(this.list.push(e),this.lookup.add(e))}remove(e){!this.lookup.has(e)||(this.list=this.list.filter(s=>s!==e),this.lookup.delete(e))}shift(){const e=this.list.shift();if(e)return this.lookup.delete(e),e}isEmpty(){return this.list.length===0}isAdded(e){return this.lookup.has(e)}process(e){let s;const n=new Map;for(s=this.shift();s;){const r=n.get(s)||0;if(r>ft)throw new Error(`Web component processed too many times this task, max allowed is: ${ft}`);e(s),n.set(s,r+1),s=this.shift()}}}const os=(t,e=document.body)=>{let s=document.querySelector(t);return s||(s=document.createElement(t),e.insertBefore(s,e.firstChild))},vn=()=>os("ui5-shared-resources",document.head),R=(t,e)=>{const s=t.split(".");let n=vn();for(let r=0;r<s.length;r++){const o=s[r],i=r===s.length-1;Object.prototype.hasOwnProperty.call(n,o)||(n[o]=i?e:{}),n=n[o]}return n},An={version:"1.10.0",major:1,minor:10,patch:0,suffix:"",isNext:!1,buildTime:1674232443};let ae,Sn="";const Ee=new Map,K=R("Runtimes",[]),$n=()=>{if(ae===void 0){ae=K.length;const t=An;K.push({...t,alias:Sn,description:`Runtime ${ae} - ver ${t.version}`})}},is=()=>ae,bn=(t,e)=>{const s=`${t},${e}`;if(Ee.has(s))return Ee.get(s);const n=K[t],r=K[e];if(!n||!r)throw new Error("Invalid runtime index supplied");if(n.isNext||r.isNext)return n.buildTime-r.buildTime;const o=n.major-r.major;if(o)return o;const i=n.minor-r.minor;if(i)return i;const c=n.patch-r.patch;if(c)return c;const l=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(n.suffix,r.suffix);return Ee.set(s,l),l},Cn=()=>K,as=R("Tags",new Map),Qe=new Set;let P=new Map,Te;const cs=-1,En=t=>{Qe.add(t),as.set(t,is())},Tn=t=>Qe.has(t),Ln=()=>[...Qe.values()],Mn=t=>{let e=as.get(t);e===void 0&&(e=cs),P.has(e)||P.set(e,new Set),P.get(e).add(t),Te||(Te=setTimeout(()=>{Pn(),P=new Map,Te=void 0},1e3))},Pn=()=>{const t=Cn(),e=is(),s=t[e];let n="Multiple UI5 Web Components instances detected.";t.length>1&&(n=`${n}
1
+ const qs=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=s(r);fetch(r.href,o)}};qs();const we={themes:{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","sap_horizon","sap_horizon_dark","sap_horizon_hcb","sap_horizon_hcw","sap_horizon_exp"]},languages:{default:"en",all:["ar","bg","ca","cs","cy","da","de","el","en","en_GB","en_US_sappsd","en_US_saprigi","en_US_saptrc","es","es_MX","et","fi","fr","fr_CA","hi","hr","hu","in","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt_PT","pt","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh_CN","zh_TW"]},locales:{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","sr_Latn","sv","th","tr","uk","vi","zh_CN","zh_HK","zh_SG","zh_TW"]}},he=we.themes.default,fe=we.languages.default,$=we.locales.default,lt=we.locales.all;var Jt=()=>{const t=navigator.languages,e=()=>navigator.language;return t&&t[0]||e()||fe},Xt={},Yt=Xt.hasOwnProperty,Gs=Xt.toString,Qt=Yt.toString,Ks=Qt.call(Object),ut=function(t){var e,s;return!t||Gs.call(t)!=="[object Object]"?!1:(e=Object.getPrototypeOf(t),e?(s=Yt.call(e,"constructor")&&e.constructor,typeof s=="function"&&Qt.call(s)===Ks):!0)},Js=Object.create(null),es=function(t,e,s,n){var r,o,i,c,a,l,f=arguments[2]||{},u=3,d=arguments.length,h=arguments[0]||!1,p=arguments[1]?void 0:Js;for(typeof f!="object"&&typeof f!="function"&&(f={});u<d;u++)if((a=arguments[u])!=null)for(c in a)r=f[c],i=a[c],!(c==="__proto__"||f===i)&&(h&&i&&(ut(i)||(o=Array.isArray(i)))?(o?(o=!1,l=r&&Array.isArray(r)?r:[]):l=r&&ut(r)?r:{},f[c]=es(h,arguments[1],l,i)):i!==p&&(f[c]=i));return f};const Ye=function(t,e){return es(!0,!1,...arguments)},ts=new Map,Xs=(t,e)=>{ts.set(t,e)},b=t=>ts.get(t),Ys=t=>{const e=document.querySelector(`META[name="${t}"]`);return e&&e.getAttribute("content")},Qs=t=>{const e=Ys("sap-allowedThemeOrigins");return e&&e.split(",").some(s=>s==="*"||t===s.trim())},en=(t,e)=>{const s=new URL(t).pathname;return new URL(s,e).toString()},tn=t=>{let e,s;try{e=new URL(t);const n=e.origin;return e=e.toString(),e.startsWith(".")||e.startsWith("/")?s=new URL(e,window.location.href).toString():n&&Qs(n)?s=e.toString():s=en(e,window.location.href),s.endsWith("/")||(s=`${s}/`),`${s}UI5/`}catch{}};var We;(function(t){t.Full="full",t.Basic="basic",t.Minimal="minimal",t.None="none"})(We||(We={}));var sn=We;let dt=!1,_={animationMode:sn.Full,theme:he,themeRoot:void 0,rtl:void 0,language:void 0,calendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1};const nn=()=>(C(),_.animationMode),rn=()=>(C(),_.theme),on=()=>(C(),_.themeRoot),an=()=>(C(),_.rtl),cn=()=>(C(),_.language),ln=()=>(C(),_.fetchDefaultLanguage),un=()=>(C(),_.noConflict),dn=()=>(C(),_.calendarType),hn=()=>(C(),_.formatSettings),pe=new Map;pe.set("true",!0);pe.set("false",!1);const fn=()=>{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{console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(_=Ye(_,e))}},pn=()=>{const t=new URLSearchParams(window.location.search);t.forEach((e,s)=>{const n=s.split("sap-").length;n===0||n===s.split("sap-ui-").length||ht(s,e,"sap")}),t.forEach((e,s)=>{!s.startsWith("sap-ui")||ht(s,e,"sap-ui")})},gn=t=>{const e=t.split("@")[1];return tn(e)},mn=(t,e)=>t==="theme"&&e.includes("@")?e.split("@")[0]:e,ht=(t,e,s)=>{const n=e.toLowerCase(),r=t.split(`${s}-`)[1];pe.has(e)&&(e=pe.get(n)),r==="theme"?(_.theme=mn(r,e),e&&e.includes("@")&&(_.themeRoot=gn(e))):_[r]=e},yn=()=>{const t=b("OpenUI5Support");if(!t||!t.isLoaded())return;const e=t.getConfigurationSettingsObject();_=Ye(_,e)},C=()=>{dt||(fn(),pn(),yn(),dt=!0)};class O{constructor(){this._eventRegistry=new Map}attachEvent(e,s){const n=this._eventRegistry,r=n.get(e);if(!Array.isArray(r)){n.set(e,[s]);return}r.includes(s)||r.push(s)}detachEvent(e,s){const n=this._eventRegistry,r=n.get(e);if(!r)return;const o=r.indexOf(s);o!==-1&&r.splice(o,1),r.length===0&&n.delete(e)}fireEvent(e,s){const r=this._eventRegistry.get(e);return r?r.map(o=>o.call(this,s)):[]}fireEventAsync(e,s){return Promise.all(this.fireEvent(e,s))}isHandlerAttached(e,s){const r=this._eventRegistry.get(e);return r?r.includes(s):!1}hasListeners(e){return!!this._eventRegistry.get(e)}}const ss=new O,ns="languageChange",rs=t=>{ss.attachEvent(ns,t)},_n=t=>ss.fireEventAsync(ns,t),ft=10;class wn{constructor(){this.list=[],this.lookup=new Set}add(e){this.lookup.has(e)||(this.list.push(e),this.lookup.add(e))}remove(e){!this.lookup.has(e)||(this.list=this.list.filter(s=>s!==e),this.lookup.delete(e))}shift(){const e=this.list.shift();if(e)return this.lookup.delete(e),e}isEmpty(){return this.list.length===0}isAdded(e){return this.lookup.has(e)}process(e){let s;const n=new Map;for(s=this.shift();s;){const r=n.get(s)||0;if(r>ft)throw new Error(`Web component processed too many times this task, max allowed is: ${ft}`);e(s),n.set(s,r+1),s=this.shift()}}}const os=(t,e=document.body)=>{let s=document.querySelector(t);return s||(s=document.createElement(t),e.insertBefore(s,e.firstChild))},vn=()=>os("ui5-shared-resources",document.head),R=(t,e)=>{const s=t.split(".");let n=vn();for(let r=0;r<s.length;r++){const o=s[r],i=r===s.length-1;Object.prototype.hasOwnProperty.call(n,o)||(n[o]=i?e:{}),n=n[o]}return n},An={version:"1.10.2",major:1,minor:10,patch:2,suffix:"",isNext:!1,buildTime:1674626623};let ae,Sn="";const Ee=new Map,K=R("Runtimes",[]),$n=()=>{if(ae===void 0){ae=K.length;const t=An;K.push({...t,alias:Sn,description:`Runtime ${ae} - ver ${t.version}`})}},is=()=>ae,bn=(t,e)=>{const s=`${t},${e}`;if(Ee.has(s))return Ee.get(s);const n=K[t],r=K[e];if(!n||!r)throw new Error("Invalid runtime index supplied");if(n.isNext||r.isNext)return n.buildTime-r.buildTime;const o=n.major-r.major;if(o)return o;const i=n.minor-r.minor;if(i)return i;const c=n.patch-r.patch;if(c)return c;const l=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(n.suffix,r.suffix);return Ee.set(s,l),l},Cn=()=>K,as=R("Tags",new Map),Qe=new Set;let P=new Map,Te;const cs=-1,En=t=>{Qe.add(t),as.set(t,is())},Tn=t=>Qe.has(t),Ln=()=>[...Qe.values()],Mn=t=>{let e=as.get(t);e===void 0&&(e=cs),P.has(e)||P.set(e,new Set),P.get(e).add(t),Te||(Te=setTimeout(()=>{Pn(),P=new Map,Te=void 0},1e3))},Pn=()=>{const t=Cn(),e=is(),s=t[e];let n="Multiple UI5 Web Components instances detected.";t.length>1&&(n=`${n}
2
2
  Loading order (versions before 1.1.0 not listed): ${t.map(r=>`
3
3
  ${r.description}`).join("")}`),[...P.keys()].forEach(r=>{let o,i;r===cs?(o=1,i={description:"Older unknown runtime"}):(o=bn(e,r),i=t[r]);let c;o>0?c="an older":o<0?c="a newer":c="the same",n=`${n}
4
4
 
@@ -1,11 +1,11 @@
1
1
  import EventProvider from "../EventProvider.js";
2
2
  import type UI5Element from "../UI5Element.js";
3
- type EventListenerParam = {
3
+ type ScrollEnablementEventListenerParam = {
4
4
  isLeft: boolean;
5
5
  isRight: boolean;
6
6
  };
7
- type EventListenerReturn = void;
8
- declare class ScrollEnablement extends EventProvider<EventListenerParam, EventListenerReturn> {
7
+ type ScrollEnablementEventListenerReturn = void;
8
+ declare class ScrollEnablement extends EventProvider<ScrollEnablementEventListenerParam, ScrollEnablementEventListenerReturn> {
9
9
  containerComponent: UI5Element;
10
10
  mouseMove: (event: MouseEvent | TouchEvent) => void;
11
11
  mouseUp: (event: MouseEvent | TouchEvent) => void;
@@ -46,3 +46,4 @@ declare class ScrollEnablement extends EventProvider<EventListenerParam, EventLi
46
46
  ontouchend(event: TouchEvent | MouseEvent): void;
47
47
  }
48
48
  export default ScrollEnablement;
49
+ export type { ScrollEnablementEventListenerParam, };
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollEnablement.js","sourceRoot":"","sources":["../../src/delegate/ScrollEnablement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAG7C,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;AAQnE,MAAM,gBAAiB,SAAQ,aAAsD;IAcpF,YAAY,kBAA8B;QACzC,KAAK,EAAE,CAAC;QANT,kBAAa,GAAG,aAAa,EAAE,CAAC;QAO/B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE/C,IAAI,CAAC,aAAa,GAAG,aAAa,EAAE,CAAC;QAErC,gGAAgG;QAChG,4FAA4F;Q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CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1D,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SACtD;IACF,CAAC;CACD;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  const VersionInfo = {
2
- version: "1.10.0",
2
+ version: "1.10.2",
3
3
  major: 1,
4
4
  minor: 10,
5
- patch: 0,
5
+ patch: 2,
6
6
  suffix: "",
7
7
  isNext: false,
8
- buildTime: 1674232443,
8
+ buildTime: 1674626623,
9
9
  };
10
10
  export default VersionInfo;
@@ -1,4 +1,4 @@
1
- import { StyleData } from "./src/types.js";
1
+ import { StyleData } from "./types.js";
2
2
 
3
3
  export {};
4
4
 
@@ -36,7 +36,7 @@ const scripts = {
36
36
  },
37
37
  copy: {
38
38
  default: "nps copy.src",
39
- src: `copy-and-watch "src/**/*.{js,css}" dist/`,
39
+ src: `copy-and-watch "src/**/*.{js,css,d.ts}" dist/`,
40
40
  },
41
41
  generateAssetParameters: `node "${assetParametersScript}"`,
42
42
  generateVersionInfo: `node "${versionScript}"`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-base",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -36,8 +36,8 @@
36
36
  "devDependencies": {
37
37
  "@buxlabs/amd-to-es6": "0.16.1",
38
38
  "@openui5/sap.ui.core": "1.109.0",
39
- "@ui5/webcomponents-tools": "1.10.0",
40
- "chromedriver": "108.0.0",
39
+ "@ui5/webcomponents-tools": "1.10.2",
40
+ "chromedriver": "109.0.0",
41
41
  "clean-css": "^5.2.2",
42
42
  "copy-and-watch": "^0.1.5",
43
43
  "cross-env": "^7.0.3",
package/src/UI5Element.ts CHANGED
@@ -668,7 +668,7 @@ abstract class UI5Element extends HTMLElement {
668
668
  }
669
669
  res = `${res}: ${x.name}`;
670
670
  if (x.type === "property") {
671
- res = `${res} ${x.oldValue} => ${x.newValue}`;
671
+ res = `${res} ${JSON.stringify(x.oldValue)} => ${JSON.stringify(x.newValue)}`;
672
672
  }
673
673
 
674
674
  return res;
@@ -6,13 +6,13 @@ import type UI5Element from "../UI5Element.js";
6
6
  const scrollEventName = "scroll";
7
7
  const touchEndEventName = supportsTouch() ? "touchend" : "mouseup";
8
8
 
9
- type EventListenerParam = {
9
+ type ScrollEnablementEventListenerParam = {
10
10
  isLeft: boolean;
11
11
  isRight: boolean
12
12
  }
13
- type EventListenerReturn = void;
13
+ type ScrollEnablementEventListenerReturn = void;
14
14
 
15
- class ScrollEnablement extends EventProvider<EventListenerParam, EventListenerReturn> {
15
+ class ScrollEnablement extends EventProvider<ScrollEnablementEventListenerParam, ScrollEnablementEventListenerReturn> {
16
16
  containerComponent: UI5Element;
17
17
  mouseMove: (event: MouseEvent | TouchEvent) => void;
18
18
  mouseUp: (event: MouseEvent | TouchEvent) => void;
@@ -219,3 +219,6 @@ class ScrollEnablement extends EventProvider<EventListenerParam, EventListenerRe
219
219
  }
220
220
 
221
221
  export default ScrollEnablement;
222
+ export type {
223
+ ScrollEnablementEventListenerParam,
224
+ };
@@ -0,0 +1,44 @@
1
+ import { StyleData } from "./types.js";
2
+
3
+ export {};
4
+
5
+ declare global {
6
+
7
+ type VersionInfo = {
8
+ version: string,
9
+ major: number,
10
+ minor: number,
11
+ patch: number,
12
+ suffix: string,
13
+ isNext: boolean,
14
+ buildTime: number,
15
+ }
16
+
17
+ interface Window {
18
+ sap: any;
19
+ chrome: any;
20
+ v8: any;
21
+ }
22
+ module "*.css.js" {
23
+ const content: StyleData;
24
+ export default content;
25
+ }
26
+
27
+ module "*generated/AssetParameters.js" {
28
+ const DEFAULT_THEME: string;
29
+ const DEFAULT_LANGUAGE: string;
30
+ const DEFAULT_LOCALE: string;
31
+ const SUPPORTED_LOCALES: Array<string>;
32
+ export {
33
+ DEFAULT_THEME,
34
+ DEFAULT_LANGUAGE,
35
+ DEFAULT_LOCALE,
36
+ SUPPORTED_LOCALES,
37
+ };
38
+ }
39
+
40
+ module "*generated/VersionInfo.js" {
41
+ const content: VersionInfo;
42
+ export default content;
43
+ }
44
+ }
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "include": ["src/**/*", "global.d.ts"],
2
+ "include": ["src/**/*", "src/global.d.ts"],
3
3
  "compilerOptions": {
4
4
  "target": "ES2021",
5
5
  // Generate d.ts files