@ui5/webcomponents-base 1.12.0-rc.2 → 1.12.0
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/.eslintignore +4 -4
- package/.npsrc.json +3 -0
- package/CHANGELOG.md +25 -0
- package/bundle.esm.js +2 -0
- package/config/wdio.conf.cjs +400 -0
- package/dist/asset-registries/Icons.d.ts +11 -3
- package/dist/asset-registries/Icons.js +19 -1
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/assets/Boot.c60061c6.js +9 -0
- package/dist/assets/bundle.esm.9c467f8a.js +52 -0
- package/dist/assets/test/pages/{Boot.html.a40788ce.js → Boot.html.f5728a59.js} +1 -1
- package/dist/assets/test/pages/{i18n.html.65058ddf.js → i18n.html.0ea9b5b0.js} +1 -1
- package/dist/assets/test/pages/{i18n_texts.html.4d80a4fd.js → i18n_texts.html.dac50826.js} +1 -1
- package/dist/config/Icons.js +5 -5
- package/dist/config/Icons.js.map +1 -1
- package/dist/config/NoConflict.js +1 -0
- package/dist/config/NoConflict.js.map +1 -1
- package/dist/config/Theme.d.ts +6 -5
- package/dist/config/Theme.js +14 -7
- package/dist/config/Theme.js.map +1 -1
- package/dist/decorators/slot.js +2 -2
- package/dist/decorators/slot.js.map +1 -1
- package/dist/generated/AssetParameters.js +2 -0
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/global.d.ts +2 -0
- package/dist/test/pages/AllTestElements.html +2 -2
- package/dist/test/pages/Boot.html +2 -2
- package/dist/test/pages/Configuration.html +3 -2
- package/dist/test/pages/ConfigurationScript.html +2 -2
- package/dist/test/pages/WithComplexTemplate.html +2 -2
- package/dist/test/pages/i18n.html +3 -3
- package/dist/test/pages/i18n_texts.html +3 -3
- package/dist/validateThemeRoot.js +14 -13
- package/dist/validateThemeRoot.js.map +1 -1
- package/index.js +227 -1
- package/lib/generate-asset-parameters/index.js +4 -2
- package/lib/generate-styles/index.js +3 -3
- package/lib/generate-version-info/index.js +1 -1
- package/{package-scripts.js → package-scripts.cjs} +2 -1
- package/package.json +4 -3
- package/config/wdio.conf.js +0 -1
- package/dist/assets/Boot.0f056029.js +0 -9
- package/dist/assets/bundle.esm.90296f02.js +0 -52
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/index.js
CHANGED
|
@@ -1,4 +1,230 @@
|
|
|
1
|
+
// animations/
|
|
2
|
+
import scroll from "./dist/animations/scroll.js";
|
|
3
|
+
import slideDown from "./dist/animations/slideDown.js";
|
|
4
|
+
import slideUp from "./dist/animations/slideup.js";
|
|
5
|
+
|
|
6
|
+
// config/
|
|
7
|
+
import { getAnimationMode, setAnimationMode } from "./dist/config/AnimationMode.js";
|
|
8
|
+
import { getCalendarType } from "./dist/config/CalendarType.js";
|
|
9
|
+
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/config/FormatSettings.js";
|
|
10
|
+
import {
|
|
11
|
+
setDefaultIconCollection,
|
|
12
|
+
getDefaultIconCollection,
|
|
13
|
+
getEffectiveIconCollection,
|
|
14
|
+
RegisteredIconCollection,
|
|
15
|
+
} from "./dist/config/Icons.js";
|
|
16
|
+
import {
|
|
17
|
+
getLanguage,
|
|
18
|
+
setLanguage,
|
|
19
|
+
getDefaultLanguage,
|
|
20
|
+
setFetchDefaultLanguage,
|
|
21
|
+
getFetchDefaultLanguage,
|
|
22
|
+
} from "./dist/config/Language.js";
|
|
23
|
+
import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js";
|
|
24
|
+
import { getRTL } from "./dist/config/RTL.js";
|
|
25
|
+
import {
|
|
26
|
+
getTheme,
|
|
27
|
+
setTheme,
|
|
28
|
+
getDefaultTheme,
|
|
29
|
+
} from "./dist/config/Theme.js";
|
|
30
|
+
|
|
31
|
+
// decorators/
|
|
32
|
+
import customElement from "./dist/decorators/customElement.js";
|
|
33
|
+
import event from "./dist/decorators/event.js";
|
|
34
|
+
import property from "./dist/decorators/property.js";
|
|
35
|
+
import slot from "./dist/decorators/slot.js";
|
|
36
|
+
|
|
37
|
+
// delegate/
|
|
38
|
+
import ItemNavigation from "./dist/delegate/ItemNavigation.js";
|
|
39
|
+
import ResizeHandler from "./dist/delegate/ResizeHandler.js";
|
|
40
|
+
import ScrollEnablement from "./dist/delegate/ScrollEnablement.js";
|
|
41
|
+
|
|
42
|
+
// locale/
|
|
43
|
+
import applyDirection from "./dist/locale/applyDirection.js";
|
|
44
|
+
import { attachDirectionChange, detachDirectionChange } from "./dist/locale/directionChange.js";
|
|
45
|
+
import getEffectiveDir from "./dist/locale/getEffectiveDir.js";
|
|
46
|
+
import { attachLanguageChange, detachLanguageChange } from "./dist/locale/languageChange.js";
|
|
47
|
+
|
|
48
|
+
// util/
|
|
49
|
+
import { URLListValidator, sanitizeHTML } from "./dist/util/HTMLSanitizer.js";
|
|
50
|
+
|
|
51
|
+
// Assets.ts
|
|
52
|
+
import { registerI18nLoader } from "./dist/asset-registries/i18n.js";
|
|
53
|
+
import { registerLocaleDataLoader } from "./dist/asset-registries/LocaleData.js";
|
|
54
|
+
import { registerThemePropertiesLoader } from "./dist/asset-registries/Themes.js";
|
|
55
|
+
import { registerIconLoader } from "./dist/asset-registries/Icons.js";
|
|
56
|
+
|
|
57
|
+
// Boot.ts
|
|
58
|
+
import { attachBoot } from "./dist/Boot.js";
|
|
59
|
+
|
|
60
|
+
// CSP.ts
|
|
61
|
+
import {
|
|
62
|
+
setPackageCSSRoot,
|
|
63
|
+
setUseLinks,
|
|
64
|
+
setPreloadLinks,
|
|
65
|
+
} from "./dist/CSP.js";
|
|
66
|
+
|
|
67
|
+
// CustomElementsScope.ts
|
|
68
|
+
import {
|
|
69
|
+
setCustomElementsScopingSuffix,
|
|
70
|
+
getCustomElementsScopingSuffix,
|
|
71
|
+
setCustomElementsScopingRules,
|
|
72
|
+
getCustomElementsScopingRules,
|
|
73
|
+
getEffectiveScopingSuffixForTag,
|
|
74
|
+
} from "./dist/CustomElementsScope.js";
|
|
75
|
+
|
|
76
|
+
// Device.ts
|
|
77
|
+
import {
|
|
78
|
+
supportsTouch,
|
|
79
|
+
isIE,
|
|
80
|
+
isSafari,
|
|
81
|
+
isChrome,
|
|
82
|
+
isFirefox,
|
|
83
|
+
isPhone,
|
|
84
|
+
isTablet,
|
|
85
|
+
isDesktop,
|
|
86
|
+
isCombi,
|
|
87
|
+
isIOS,
|
|
88
|
+
isAndroid,
|
|
89
|
+
} from "./dist/Device.js";
|
|
90
|
+
|
|
91
|
+
// EventProvider.ts
|
|
92
|
+
import EventProvider from "./dist/EventProvider.js";
|
|
93
|
+
|
|
94
|
+
// i18nBundle.ts
|
|
95
|
+
import I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from "./dist/i18nBundle.js";
|
|
96
|
+
|
|
97
|
+
// MediaRange.ts
|
|
98
|
+
import MediaRange from "./dist/MediaRange.js";
|
|
99
|
+
|
|
100
|
+
// PropertiesFileFormat.ts
|
|
101
|
+
import parseProperties from "./dist/PropertiesFileFormat.js";
|
|
102
|
+
|
|
103
|
+
// Render.ts
|
|
104
|
+
import {
|
|
105
|
+
renderDeferred,
|
|
106
|
+
renderImmediately,
|
|
107
|
+
cancelRender,
|
|
108
|
+
renderFinished,
|
|
109
|
+
} from "./dist/Render.js";
|
|
110
|
+
|
|
111
|
+
// Theming.ts
|
|
112
|
+
import { addCustomCSS, attachThemeLoaded, detachThemeLoaded } from "./dist/Theming.js";
|
|
113
|
+
|
|
114
|
+
// UI5Element.ts
|
|
1
115
|
import UI5Element from "./dist/UI5Element.js";
|
|
2
116
|
|
|
3
117
|
export default UI5Element;
|
|
4
|
-
export {
|
|
118
|
+
export {
|
|
119
|
+
// animations/
|
|
120
|
+
scroll,
|
|
121
|
+
slideDown,
|
|
122
|
+
slideUp,
|
|
123
|
+
|
|
124
|
+
// config/
|
|
125
|
+
getAnimationMode,
|
|
126
|
+
setAnimationMode,
|
|
127
|
+
getCalendarType,
|
|
128
|
+
getFirstDayOfWeek,
|
|
129
|
+
getLegacyDateCalendarCustomizing,
|
|
130
|
+
setDefaultIconCollection,
|
|
131
|
+
getDefaultIconCollection,
|
|
132
|
+
getEffectiveIconCollection,
|
|
133
|
+
RegisteredIconCollection,
|
|
134
|
+
getLanguage,
|
|
135
|
+
setLanguage,
|
|
136
|
+
getDefaultLanguage,
|
|
137
|
+
setFetchDefaultLanguage,
|
|
138
|
+
getFetchDefaultLanguage,
|
|
139
|
+
getNoConflict,
|
|
140
|
+
setNoConflict,
|
|
141
|
+
getRTL,
|
|
142
|
+
getTheme,
|
|
143
|
+
setTheme,
|
|
144
|
+
getDefaultTheme,
|
|
145
|
+
|
|
146
|
+
// decorators/
|
|
147
|
+
customElement,
|
|
148
|
+
event,
|
|
149
|
+
property,
|
|
150
|
+
slot,
|
|
151
|
+
|
|
152
|
+
// delegate/
|
|
153
|
+
ItemNavigation,
|
|
154
|
+
ResizeHandler,
|
|
155
|
+
ScrollEnablement,
|
|
156
|
+
|
|
157
|
+
// locale/
|
|
158
|
+
applyDirection,
|
|
159
|
+
attachDirectionChange,
|
|
160
|
+
detachDirectionChange,
|
|
161
|
+
getEffectiveDir,
|
|
162
|
+
attachLanguageChange,
|
|
163
|
+
detachLanguageChange,
|
|
164
|
+
|
|
165
|
+
// util/
|
|
166
|
+
URLListValidator,
|
|
167
|
+
sanitizeHTML,
|
|
168
|
+
|
|
169
|
+
// Assets.ts
|
|
170
|
+
registerI18nLoader,
|
|
171
|
+
registerLocaleDataLoader,
|
|
172
|
+
registerThemePropertiesLoader,
|
|
173
|
+
registerIconLoader,
|
|
174
|
+
|
|
175
|
+
// Boot.ts
|
|
176
|
+
attachBoot,
|
|
177
|
+
|
|
178
|
+
// CSP.ts
|
|
179
|
+
setPackageCSSRoot,
|
|
180
|
+
setUseLinks,
|
|
181
|
+
setPreloadLinks,
|
|
182
|
+
|
|
183
|
+
// CustomElementsScope.ts
|
|
184
|
+
setCustomElementsScopingSuffix,
|
|
185
|
+
getCustomElementsScopingSuffix,
|
|
186
|
+
setCustomElementsScopingRules,
|
|
187
|
+
getCustomElementsScopingRules,
|
|
188
|
+
getEffectiveScopingSuffixForTag,
|
|
189
|
+
|
|
190
|
+
// Device.ts
|
|
191
|
+
supportsTouch,
|
|
192
|
+
isIE,
|
|
193
|
+
isSafari,
|
|
194
|
+
isChrome,
|
|
195
|
+
isFirefox,
|
|
196
|
+
isPhone,
|
|
197
|
+
isTablet,
|
|
198
|
+
isDesktop,
|
|
199
|
+
isCombi,
|
|
200
|
+
isIOS,
|
|
201
|
+
isAndroid,
|
|
202
|
+
|
|
203
|
+
// EventProvider.ts
|
|
204
|
+
EventProvider,
|
|
205
|
+
|
|
206
|
+
// i18nBundle.ts
|
|
207
|
+
I18nBundle,
|
|
208
|
+
getI18nBundle,
|
|
209
|
+
registerCustomI18nBundleGetter,
|
|
210
|
+
|
|
211
|
+
// MediaRange.ts
|
|
212
|
+
MediaRange,
|
|
213
|
+
|
|
214
|
+
// PropertiesFileFormat.ts
|
|
215
|
+
parseProperties,
|
|
216
|
+
|
|
217
|
+
// Render.ts
|
|
218
|
+
renderDeferred,
|
|
219
|
+
renderImmediately,
|
|
220
|
+
cancelRender,
|
|
221
|
+
renderFinished,
|
|
222
|
+
|
|
223
|
+
// Theming.ts
|
|
224
|
+
addCustomCSS,
|
|
225
|
+
attachThemeLoaded,
|
|
226
|
+
detachThemeLoaded,
|
|
227
|
+
|
|
228
|
+
// UI5Element.ts
|
|
229
|
+
UI5Element,
|
|
230
|
+
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import fs from "fs/promises";
|
|
2
|
+
import assets from "@ui5/webcomponents-tools/assets-meta.js";
|
|
3
3
|
|
|
4
4
|
const fileContent = `const assetParameters = ${JSON.stringify(assets)};
|
|
5
5
|
|
|
6
6
|
const DEFAULT_THEME = assetParameters.themes.default;
|
|
7
|
+
const SUPPORTED_THEMES = assetParameters.themes.all;
|
|
7
8
|
const DEFAULT_LANGUAGE = assetParameters.languages.default;
|
|
8
9
|
const DEFAULT_LOCALE = assetParameters.locales.default;
|
|
9
10
|
const SUPPORTED_LOCALES = assetParameters.locales.all;
|
|
10
11
|
|
|
11
12
|
export {
|
|
12
13
|
DEFAULT_THEME,
|
|
14
|
+
SUPPORTED_THEMES,
|
|
13
15
|
DEFAULT_LANGUAGE,
|
|
14
16
|
DEFAULT_LOCALE,
|
|
15
17
|
SUPPORTED_LOCALES,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import fs from 'fs/promises';
|
|
2
|
+
import path from "path";
|
|
3
|
+
import CleanCSS from "clean-css";
|
|
4
4
|
|
|
5
5
|
const generate = async () => {
|
|
6
6
|
await fs.mkdir("src/generated/css/", {recursive: true});
|
|
@@ -58,8 +58,9 @@ const scripts = {
|
|
|
58
58
|
},
|
|
59
59
|
start: "nps prepare watch.withBundle",
|
|
60
60
|
test: {
|
|
61
|
-
default: 'concurrently "nps test.wdio"',
|
|
61
|
+
default: 'concurrently "nps test.wdio" "nps test.ssr" "nps test.ssr2"',
|
|
62
62
|
ssr: `mocha test/ssr`,
|
|
63
|
+
ssr2: "node -e \"import('./dist/Device.js')\"",
|
|
63
64
|
wdio: `node "${LIB}/test-runner/test-runner.js"`
|
|
64
65
|
},
|
|
65
66
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-base",
|
|
3
|
-
"version": "1.12.0
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"module": "index.js",
|
|
8
9
|
"keywords": [
|
|
9
10
|
"openui5",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@buxlabs/amd-to-es6": "0.16.1",
|
|
38
39
|
"@openui5/sap.ui.core": "1.109.0",
|
|
39
|
-
"@ui5/webcomponents-tools": "1.12.0
|
|
40
|
+
"@ui5/webcomponents-tools": "1.12.0",
|
|
40
41
|
"chromedriver": "110.0.0",
|
|
41
42
|
"clean-css": "^5.2.2",
|
|
42
43
|
"copy-and-watch": "^0.1.5",
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"replace-in-file": "^6.3.5",
|
|
47
48
|
"resolve": "^1.20.0"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "a3ea5367f668040c721ca45d3bf73f560c3ae9af"
|
|
50
51
|
}
|
package/config/wdio.conf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("@ui5/webcomponents-tools/components-package/wdio.js");
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(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 s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();const k={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"]}},C=k.themes.default,B=k.languages.default,u=k.locales.default,ce=k.locales.all,st=()=>{const e=navigator.languages,t=()=>navigator.language;return e&&e[0]||t()||B};var Pe={},$e=Pe.hasOwnProperty,rt=Pe.toString,Ce=$e.toString,ot=Ce.call(Object),ue=function(e){var t,n;return!e||rt.call(e)!=="[object Object]"?!1:(t=Object.getPrototypeOf(e),t?(n=$e.call(t,"constructor")&&t.constructor,typeof n=="function"&&Ce.call(n)===ot):!0)},at=Object.create(null),Re=function(e,t,n,s){var r,o,a,c,v,p,f=arguments[2]||{},V=3,tt=arguments.length,ie=arguments[0]||!1,nt=arguments[1]?void 0:at;for(typeof f!="object"&&typeof f!="function"&&(f={});V<tt;V++)if((v=arguments[V])!=null)for(c in v)r=f[c],a=v[c],!(c==="__proto__"||f===a)&&(ie&&a&&(ue(a)||(o=Array.isArray(a)))?(o?(o=!1,p=r&&Array.isArray(r)?r:[]):p=r&&ue(r)?r:{},f[c]=Re(ie,arguments[1],p,a)):a!==nt&&(f[c]=a));return f};const Oe=function(e,t){return Re(!0,!1,...arguments)},Ue=new Map,Vn=(e,t)=>{Ue.set(e,t)},w=e=>Ue.get(e),it=e=>{const t=document.querySelector(`META[name="${e}"]`);return t&&t.getAttribute("content")},ct=e=>{const t=it("sap-allowedThemeOrigins");return t&&t.split(",").some(n=>n==="*"||e===n.trim())},ut=(e,t)=>{const n=new URL(e).pathname;return new URL(n,t).toString()},lt=e=>{let t,n;try{t=new URL(e);const s=t.origin;return t=t.toString(),t.startsWith(".")||t.startsWith("/")?n=new URL(t,window.location.href).toString():s&&ct(s)?n=t.toString():n=ut(t,window.location.href),n.endsWith("/")||(n=`${n}/`),`${n}UI5/`}catch{}};var Y;(function(e){e.Full="full",e.Basic="basic",e.Minimal="minimal",e.None="none"})(Y||(Y={}));const ft=Y;let le=!1,i={animationMode:ft.Full,theme:C,themeRoot:void 0,rtl:void 0,language:void 0,calendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1};const Nn=()=>(l(),i.animationMode),dt=()=>(l(),i.theme),ht=()=>(l(),i.themeRoot),Zn=()=>(l(),i.rtl),pt=()=>(l(),i.language),gt=()=>(l(),i.fetchDefaultLanguage),Wn=()=>(l(),i.noConflict),Hn=()=>(l(),i.calendarType),qn=()=>(l(),i.formatSettings),R=new Map;R.set("true",!0);R.set("false",!1);const mt=()=>{const e=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let t;if(e){try{t=JSON.parse(e.innerHTML)}catch{console.warn("Incorrect data-sap-ui-config format. Please use JSON")}t&&(i=Oe(i,t))}},yt=()=>{const e=new URLSearchParams(window.location.search);e.forEach((t,n)=>{const s=n.split("sap-").length;s===0||s===n.split("sap-ui-").length||fe(n,t,"sap")}),e.forEach((t,n)=>{!n.startsWith("sap-ui")||fe(n,t,"sap-ui")})},wt=e=>{const t=e.split("@")[1];return lt(t)},St=(e,t)=>e==="theme"&&t.includes("@")?t.split("@")[0]:t,fe=(e,t,n)=>{const s=t.toLowerCase(),r=e.split(`${n}-`)[1];R.has(t)&&(t=R.get(s)),r==="theme"?(i.theme=St(r,t),t&&t.includes("@")&&(i.themeRoot=wt(t))):i[r]=t},_t=()=>{const e=w("OpenUI5Support");if(!e||!e.isLoaded())return;const t=e.getConfigurationSettingsObject();i=Oe(i,t)},l=()=>{typeof document>"u"||le||(mt(),yt(),_t(),le=!0)};class A{constructor(){this._eventRegistry=new Map}attachEvent(t,n){const s=this._eventRegistry,r=s.get(t);if(!Array.isArray(r)){s.set(t,[n]);return}r.includes(n)||r.push(n)}detachEvent(t,n){const s=this._eventRegistry,r=s.get(t);if(!r)return;const o=r.indexOf(n);o!==-1&&r.splice(o,1),r.length===0&&s.delete(t)}fireEvent(t,n){const r=this._eventRegistry.get(t);return r?r.map(o=>o.call(this,n)):[]}fireEventAsync(t,n){return Promise.all(this.fireEvent(t,n))}isHandlerAttached(t,n){const r=this._eventRegistry.get(t);return r?r.includes(n):!1}hasListeners(t){return!!this._eventRegistry.get(t)}}const Ie=new A,Me="languageChange",ke=e=>{Ie.attachEvent(Me,e)},bt=e=>Ie.fireEventAsync(Me,e),de=10;class Tt{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(n=>n!==t),this.lookup.delete(t))}shift(){const t=this.list.shift();if(t)return this.lookup.delete(t),t}isEmpty(){return this.list.length===0}isAdded(t){return this.lookup.has(t)}process(t){let n;const s=new Map;for(n=this.shift();n;){const r=s.get(n)||0;if(r>de)throw new Error(`Web component processed too many times this task, max allowed is: ${de}`);t(n),s.set(n,r+1),n=this.shift()}}}const At=(e,t=document.body)=>{let n=document.querySelector(e);return n||(n=document.createElement(e),t.insertBefore(n,t.firstChild))},vt=()=>typeof document>"u"?null:At("ui5-shared-resources",document.head),D=(e,t)=>{const n=e.split(".");let s=vt();if(!s)return t;for(let r=0;r<n.length;r++){const o=n[r],a=r===n.length-1;Object.prototype.hasOwnProperty.call(s,o)||(s[o]=a?t:{}),s=s[o]}return s},Lt={version:"1.12.0-rc.2",major:1,minor:12,patch:0,suffix:"-rc.2",isNext:!1,buildTime:1679559021};let P,Et="";const N=new Map,b=D("Runtimes",[]),Pt=()=>{if(P===void 0){P=b.length;const e=Lt;b.push({...e,alias:Et,description:`Runtime ${P} - ver ${e.version}`})}},Be=()=>P,$t=(e,t)=>{const n=`${e},${t}`;if(N.has(n))return N.get(n);const s=b[e],r=b[t];if(!s||!r)throw new Error("Invalid runtime index supplied");if(s.isNext||r.isNext)return s.buildTime-r.buildTime;const o=s.major-r.major;if(o)return o;const a=s.minor-r.minor;if(a)return a;const c=s.patch-r.patch;if(c)return c;const p=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(s.suffix,r.suffix);return N.set(n,p),p},Ct=()=>b,De=D("Tags",new Map),te=new Set;let h=new Map,Z;const xe=-1,Gn=e=>{te.add(e),De.set(e,Be())},Kn=e=>te.has(e),Rt=()=>[...te.values()],Jn=e=>{let t=De.get(e);t===void 0&&(t=xe),h.has(t)||h.set(t,new Set),h.get(t).add(e),Z||(Z=setTimeout(()=>{Ot(),h=new Map,Z=void 0},1e3))},Ot=()=>{const e=Ct(),t=Be(),n=e[t];let s="Multiple UI5 Web Components instances detected.";e.length>1&&(s=`${s}
|
|
2
|
-
Loading order (versions before 1.1.0 not listed): ${e.map(r=>`
|
|
3
|
-
${r.description}`).join("")}`),[...h.keys()].forEach(r=>{let o,a;r===xe?(o=1,a={description:"Older unknown runtime"}):(o=$t(t,r),a=e[r]);let c;o>0?c="an older":o<0?c="a newer":c="the same",s=`${s}
|
|
4
|
-
|
|
5
|
-
"${n.description}" failed to define ${h.get(r).size} tag(s) as they were defined by a runtime of ${c} version "${a.description}": ${[...h.get(r)].sort().join(", ")}.`,o>0?s=`${s}
|
|
6
|
-
WARNING! If your code uses features of the above web components, unavailable in ${a.description}, it might not work as expected!`:s=`${s}
|
|
7
|
-
Since the above web components were defined by the same or newer version runtime, they should be compatible with your code.`}),s=`${s}
|
|
8
|
-
|
|
9
|
-
To prevent other runtimes from defining tags that you use, consider using scoping or have third-party libraries use scoping: https://github.com/SAP/ui5-webcomponents/blob/main/docs/2-advanced/03-scoping.md.`,console.warn(s)},Fe=new Set,Xn=e=>{Fe.add(e)},Ut=e=>Fe.has(e),ne=new Set,It=new A,S=new Tt;let g,$,W,L;const Mt=async e=>{S.add(e),await Bt()},kt=e=>{It.fireEvent("beforeComponentRender",e),ne.add(e),e._render()},Yn=e=>{S.remove(e),ne.delete(e)},Bt=async()=>{L||(L=new Promise(e=>{window.requestAnimationFrame(()=>{S.process(kt),L=null,e(),W||(W=setTimeout(()=>{W=void 0,S.isEmpty()&&jt()},200))})})),await L},Dt=()=>g||(g=new Promise(e=>{$=e,window.requestAnimationFrame(()=>{S.isEmpty()&&(g=void 0,e())})}),g),xt=()=>{const e=Rt().map(t=>customElements.whenDefined(t));return Promise.all(e)},Ft=async()=>{await xt(),await Dt()},jt=()=>{!S.isEmpty()||$&&($(),$=void 0,g=void 0)},je=async e=>{ne.forEach(t=>{const n=t.constructor,s=n.getMetadata().getTag(),r=Ut(n),o=n.getMetadata().isLanguageAware(),a=n.getMetadata().isThemeAware();(!e||e.tag===s||e.rtlAware&&r||e.languageAware&&o||e.themeAware&&a)&&Mt(t)}),await Ft()};let _,Q;const zt=()=>(_===void 0&&(_=pt()),_),Qn=async e=>{_!==e&&(_=e,await bt(e),await je({languageAware:!0}))},Vt=e=>{Q=e},Nt=()=>(Q===void 0&&Vt(gt()),Q),Zt=/^((?:[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 ze{constructor(t){const n=Zt.exec(t.replace(/_/g,"-"));if(n===null)throw new Error(`The given language ${t} does not adhere to BCP-47.`);this.sLocaleId=t,this.sLanguage=n[1]||B,this.sScript=n[2]||"",this.sRegion=n[3]||"",this.sVariant=n[4]&&n[4].slice(1)||null,this.sExtension=n[5]&&n[5].slice(1)||null,this.sPrivateUse=n[6]||null,this.sLanguage&&(this.sLanguage=this.sLanguage.toLowerCase()),this.sScript&&(this.sScript=this.sScript.toLowerCase().replace(/^[a-z]/,s=>s.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 H=new Map,Ve=e=>(H.has(e)||H.set(e,new ze(e)),H.get(e)),he=e=>{try{if(e&&typeof e=="string")return Ve(e)}catch{}return new ze(u)},ee=e=>{if(e)return he(e);const t=zt();return t?Ve(t):he(st())},Wt=/^((?:[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,pe=/(?:^|-)(saptrc|sappsd)(?:-|$)/i,Ht={he:"iw",yi:"ji",nb:"no",sr:"sh"},qt=e=>{let t;if(!e)return u;if(typeof e=="string"&&(t=Wt.exec(e.replace(/_/g,"-")))){let n=t[1].toLowerCase(),s=t[3]?t[3].toUpperCase():void 0;const r=t[2]?t[2].toLowerCase():void 0,o=t[4]?t[4].slice(1):void 0,a=t[6];return n=Ht[n]||n,a&&(t=pe.exec(a))||o&&(t=pe.exec(o))?`en_US_${t[1].toLowerCase()}`:(n==="zh"&&!s&&(r==="hans"?s="CN":r==="hant"&&(s="TW")),n+(s?"_"+s+(o?"_"+o.replace("-","_"):""):""))}return u},Gt=e=>{if(!e)return u;if(e==="zh_HK")return"zh_TW";const t=e.lastIndexOf("_");return t>=0?e.slice(0,t):e!==u?u:""},ge=new Set,me=new Set,se=new Map,q=new Map,re=new Map,es=(e,t,n)=>{const s=`${e}/${t}`;re.set(s,n)},ye=(e,t)=>{se.set(e,t)},ts=e=>se.get(e),Ne=(e,t)=>{const n=`${e}/${t}`;return re.has(n)},Kt=(e,t)=>{const n=`${e}/${t}`,s=re.get(n);return s&&!q.get(n)&&q.set(n,s(t)),q.get(n)},Jt=e=>{ge.has(e)||(console.warn(`[${e}]: Message bundle assets are not configured. Falling back to English texts.`,` Add \`import "${e}/dist/Assets.js"\` in your bundle and make sure your build tool supports dynamic imports and JSON imports. See section "Assets" in the documentation for more information.`),ge.add(e))},we=(e,t)=>t!==B&&!Ne(e,t),Xt=async e=>{const t=ee().getLanguage(),n=ee().getRegion();let s=t+(n?`-${n}`:"");if(we(e,s))for(s=qt(s);we(e,s);)s=Gt(s);const r=Nt();if(s===B&&!r){ye(e,null);return}if(!Ne(e,s)){Jt(e);return}try{const o=await Kt(e,s);ye(e,o)}catch(o){const a=o;me.has(a.message)||(me.add(a.message),console.error(a.message))}};ke(e=>{const t=[...se.keys()];return Promise.all(t.map(Xt))});const Yt=new Map,O=new Map,G=new Map,Se=new Set;let _e=!1;const Qt={iw:"he",ji:"yi",in:"id"},be=e=>{_e||(console.warn(`[LocaleData] Supported locale "${e}" not configured, import the "Assets.js" module from the webcomponents package you are using.`),_e=!0)},en=(e,t,n)=>{e=e&&Qt[e]||e,e==="no"&&(e="nb"),e==="zh"&&!t&&(n==="Hans"?t="CN":n==="Hant"&&(t="TW")),(e==="sh"||e==="sr"&&n==="Latn")&&(e="sr",t="Latn");let s=`${e}_${t}`;return ce.includes(s)||(s=e,ce.includes(s))?O.has(s)?s:(be(s),u):u},Te=(e,t)=>{Yt.set(e,t)},tn=e=>{if(!G.get(e)){const t=O.get(e);if(!t)throw new Error(`CLDR data for locale ${e} is not loaded!`);G.set(e,t(e))}return G.get(e)},nn=async(e,t,n)=>{const s=en(e,t,n),r=w("OpenUI5Support");if(r){const o=r.getLocaleDataObject();if(o){Te(s,o);return}}try{const o=await tn(s);Te(s,o)}catch(o){const a=o;Se.has(a.message)||(Se.add(a.message),console.error(a.message))}},sn=(e,t)=>{O.set(e,t)};sn("en",async()=>(await fetch("https://sdk.openui5.org/1.103.0/resources/sap/ui/core/cldr/en.json")).json());ke(()=>{const e=ee();return nn(e.getLanguage(),e.getRegion(),e.getScript())});const Ze=new A,We="themeRegistered",rn=e=>{Ze.attachEvent(We,e)},on=e=>Ze.fireEvent(We,e),He=new Map,qe=new Map,Ge=new Set,U=new Set,ns=(e,t,n)=>{qe.set(`${e}/${t}`,n),Ge.add(e),U.add(t),on(t)},Ke=async(e,t)=>{const n=He.get(`${e}_${t}`);if(n!==void 0)return n;if(!U.has(t)){const s=[...U.values()].join(", ");return console.warn(`You have requested a non-registered theme ${t} - falling back to ${C}. Registered themes are: ${s}`),Ae(e,C)}return Ae(e,t)},Ae=async(e,t)=>{const n=qe.get(`${e}/${t}`);if(!n){console.error(`Theme [${t}] not registered for package [${e}]`);return}let s;try{s=await n(t)}catch(o){console.error(e,o.message);return}const r=s._||s;return He.set(`${e}_${t}`,r),r},Je=()=>Ge,an=e=>U.has(e);var I;(function(e){e["SAP-icons"]="SAP-icons-v4",e.horizon="SAP-icons-v5",e["SAP-icons-TNT"]="tnt",e.BusinessSuiteInAppSymbols="business-suite"})(I||(I={}));const Xe=e=>I[e]?I[e]:e,cn=(e,t)=>{const n=document.createElement("style");return n.type="text/css",t&&Object.entries(t).forEach(s=>n.setAttribute(...s)),n.textContent=e,document.head.appendChild(n),n},un=(e,t)=>{const n=document.createElement("link");return n.type="text/css",n.rel="stylesheet",t&&Object.entries(t).forEach(s=>n.setAttribute(...s)),n.href=e,document.head.appendChild(n),new Promise(s=>{n.addEventListener("load",s),n.addEventListener("error",s)})},x=(e,t)=>t?`${e}|${t}`:e,F=(e,t,n="")=>{const s=typeof e=="string"?e:e.content;if(document.adoptedStyleSheets){const r=new CSSStyleSheet;r.replaceSync(s),r._ui5StyleId=x(t,n),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]}else{const r={};r[t]=n,cn(s,r)}},ln=(e,t,n="")=>{const s=typeof e=="string"?e:e.content;if(document.adoptedStyleSheets){const r=document.adoptedStyleSheets.find(o=>o._ui5StyleId===x(t,n));r&&r.replaceSync(s||"")}else{const r=document.querySelector(`head>style[${t}="${n}"]`);r&&(r.textContent=s||"")}},j=(e,t="")=>document.adoptedStyleSheets?!!document.adoptedStyleSheets.find(n=>n._ui5StyleId===x(e,t)):!!document.querySelector(`head>style[${e}="${t}"]`),fn=(e,t="")=>{var n;if(document.adoptedStyleSheets)document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s._ui5StyleId!==x(e,t));else{const s=document.querySelector(`head > style[${e}="${t}"]`);(n=s==null?void 0:s.parentElement)==null||n.removeChild(s)}},Ye=(e,t,n="")=>{j(t,n)?ln(e,t,n):F(e,t,n)},m=new Set,dn=()=>{let e=document.querySelector(".sapThemeMetaData-Base-baseLib")||document.querySelector(".sapThemeMetaData-UI5-sap-ui-core");if(e)return getComputedStyle(e).backgroundImage;e=document.createElement("span"),e.style.display="none",e.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(e);let t=getComputedStyle(e).backgroundImage;return t==="none"&&(e.classList.add("sapThemeMetaData-UI5-sap-ui-core"),t=getComputedStyle(e).backgroundImage),document.body.removeChild(e),t},hn=e=>{const t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){let n=t[1];if(n=n.replace(/\\"/g,'"'),n.charAt(0)!=="{"&&n.charAt(n.length-1)!=="}")try{n=decodeURIComponent(n)}catch{m.has("decode")||(console.warn("Malformed theme metadata string, unable to decodeURIComponent"),m.add("decode"));return}try{return JSON.parse(n)}catch{m.has("parse")||(console.warn("Malformed theme metadata string, unable to parse JSON"),m.add("parse"))}}},pn=e=>{let t,n;try{t=e.Path.match(/\.([^.]+)\.css_variables$/)[1],n=e.Extends[0]}catch{m.has("object")||(console.warn("Malformed theme metadata Object",e),m.add("object"));return}return{themeName:t,baseThemeName:n}},ve=()=>{const e=dn();if(!e||e==="none")return;const t=hn(e);if(t)return pn(t)},gn=new A,mn="themeLoaded",yn=e=>gn.fireEvent(mn,e);let K;const Qe=()=>(K===void 0&&(K=ht()),K),wn=e=>`${Qe()}Base/baseLib/${e}/css_variables.css`,Sn=async e=>{const t=document.querySelector(`[sap-ui-webcomponents-theme="${e}"]`);t&&document.head.removeChild(t),await un(wn(e),{"sap-ui-webcomponents-theme":e})},T="@ui5/webcomponents-theming",_n=()=>Je().has(T),bn=async e=>{if(!_n())return;const t=await Ke(T,e);t&&Ye(t,"data-ui5-theme-properties",T)},Tn=()=>{fn("data-ui5-theme-properties",T)},An=async e=>{const n=[...Je()].map(async s=>{if(s===T)return;const r=await Ke(s,e);r&&Ye(r,"data-ui5-theme-properties",s)});return Promise.all(n)},vn=async e=>{var s;const t=ve();if(t)return t;const n=w("OpenUI5Support");if(n){if(n.cssVariablesLoaded())return{themeName:(s=n.getConfigurationSettingsObject())==null?void 0:s.theme,baseThemeName:""}}else if(Qe())return await Sn(e),ve()},oe=async e=>{const t=await vn(e);!t||e!==t.themeName?await bn(e):Tn();const n=an(e)?e:t&&t.baseThemeName;await An(n||C),yn(e)};let y;const z=()=>(y===void 0&&(y=dt()),y),ss=async e=>{y!==e&&(y=e,await oe(y),await je({themeAware:!0}))},Ln=e=>z().startsWith(e),En=new Map;var d;(function(e){e.SAPIconsV4="SAP-icons-v4",e.SAPIconsV5="SAP-icons-v5",e.SAPIconsTNTV2="tnt-v2",e.SAPIconsTNTV3="tnt-v3",e.SAPBSIconsV1="business-suite-v1",e.SAPBSIconsV2="business-suite-v2"})(d||(d={}));const Pn=e=>{const t=z(),n=En.get(t);return!e&&n?Xe(n):$n(e)},$n=e=>{const t=Ln("sap_horizon");return e?e==="tnt"?t?d.SAPIconsTNTV3:d.SAPIconsTNTV2:e==="business-suite"?t?d.SAPBSIconsV2:d.SAPBSIconsV1:e:t?d.SAPIconsV5:d.SAPIconsV4},Le=new Map,M=D("SVGIcons.registry",new Map),J=D("SVGIcons.promises",new Map),Ee="ICON_NOT_FOUND",Cn=async e=>{if(!J.has(e)){if(!Le.has(e))throw new Error(`No loader registered for the ${e} icons collection. Probably you forgot to import the "AllIcons.js" module for the respective package.`);const t=Le.get(e);J.set(e,t(e))}return J.get(e)},Rn=e=>{Object.keys(e.data).forEach(t=>{const n=e.data[t];On(t,{pathData:n.path||n.paths,ltr:n.ltr,accData:n.acc,collection:e.collection,packageName:e.packageName})})},On=(e,t)=>{const n=`${t.collection}/${e}`;M.set(n,{pathData:t.pathData,ltr:t.ltr,accData:t.accData,packageName:t.packageName,customTemplate:t.customTemplate,viewBox:t.viewBox,collection:t.collection})},Un=e=>{e.startsWith("sap-icon://")&&(e=e.replace("sap-icon://",""));let t;[e,t]=e.split("/").reverse(),e=e.replace("icon-",""),t&&(t=Xe(t)),t=Pn(t);const n=`${t}/${e}`;return{name:e,collection:t,registryKey:n}},X=async e=>{const{collection:t,registryKey:n}=Un(e);let s=Ee;try{s=await Cn(t)}catch(r){console.error(r.message)}return s===Ee?s:(M.has(n)||Rn(s),M.get(n))},rs=async()=>(await X("edit"),await X("tnt/arrow"),await X("business-suite/3d"),Array.from(M.keys())),In=()=>new Promise(e=>{document.body?e():document.addEventListener("DOMContentLoaded",()=>{e()})}),Mn={packageName:"@ui5/webcomponents-base",fileName:"FontFace.css",content:`@font-face{font-family:"72";font-style:normal;font-weight:400;src:local("72"),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72full";font-style:normal;font-weight:400;src:local('72-full'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72";font-style:normal;font-weight:700;src:local('72-Bold'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72full";font-style:normal;font-weight:700;src:local('72-Bold-full'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Bold';font-style:normal;src:local('72-Bold'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Boldfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Light';font-style:normal;src:local('72-Light'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Lightfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72Black";font-style:bold;font-weight:900;src:local('72Black'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2")}`},kn={packageName:"@ui5/webcomponents-base",fileName:"OverrideFontFace.css",content:"@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}"},Bn=()=>{const e=w("OpenUI5Support");(!e||!e.isLoaded())&&Dn(),xn()},Dn=()=>{j("data-ui5-font-face")||F(Mn,"data-ui5-font-face")},xn=()=>{j("data-ui5-font-face-override")||F(kn,"data-ui5-font-face-override")},Fn={packageName:"@ui5/webcomponents-base",fileName:"SystemCSSVars.css",content:":root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}[dir=rtl]{--_ui5_dir:rtl}[dir=ltr]{--_ui5_dir:ltr}"},jn=()=>{j("data-ui5-system-css-vars")||F(Fn,"data-ui5-system-css-vars")};let ae=!1,E;const et=new A,os=e=>{if(!ae){et.attachEvent("boot",e);return}e()},as=async()=>{if(E!==void 0)return E;const e=async t=>{if(typeof document>"u"){t();return}rn(zn),Pt();const n=w("OpenUI5Support"),s=n?n.isLoaded():!1,r=w("F6Navigation");n&&await n.init(),r&&!s&&r.init(),await In(),await oe(z()),n&&n.attachListeners(),Bn(),jn(),t(),ae=!0,await et.fireEventAsync("boot")};return E=new Promise(e),E},zn=e=>{const t=z();ae&&e===t&&oe(t)};export{Qn as A,z as B,es as C,os as D,A as E,rs as _,je as a,w as b,Zn as c,zt as d,st as e,Ft as f,D as g,Wn as h,kt as i,Yn as j,At as k,as as l,Xn as m,Kn as n,Jn as o,Gn as p,Oe as q,Vn as r,ss as s,Mt as t,ns as u,Xt as v,ts as w,Nn as x,Hn as y,qn as z};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import{g as pt,r as Ht,s as kt,a as Bt,E as K,b as J,c as he,d as Vt,e as pe,f as Ut,h as fe,i as ge,j as me,m as ye,k as _e,l as ve,n as Ae,o as $e,p as we,q as Ce,t as Se,u as C,v as be,w as Ee,x as Me,y as Te,z as Ft,A as xe,B as De,_ as Ie,C as Le}from"./Boot.0f056029.js";const Pe=pt("PopupUtilsData",{currentZIndex:100}),_t=()=>Pe.currentZIndex,A=()=>{var s,t,e;return(e=(t=(s=window.sap)==null?void 0:s.ui)==null?void 0:t.getCore)==null?void 0:e.call(t)};class ft{static isLoaded(){return!!A()}static init(){const t=A();return t?new Promise(e=>{t.attachInit(()=>{window.sap.ui.require(["sap/ui/core/LocaleData","sap/ui/core/Popup"],(n,i)=>{i.setInitialZIndex(_t()),e()})})}):Promise.resolve()}static getConfigurationSettingsObject(){const t=A();if(!t)return;const e=t.getConfiguration(),n=window.sap.ui.require("sap/ui/core/LocaleData");return{animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),themeRoot:e.getThemeRoot(),rtl:e.getRTL(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:n?n.getInstance(e.getLocale()).getFirstDayOfWeek():void 0,legacyDateCalendarCustomizing:e.getFormatSettings().getLegacyDateCalendarCustomizing()}}}static getLocaleDataObject(){const t=A();if(!t)return;const e=t.getConfiguration();return window.sap.ui.require("sap/ui/core/LocaleData").getInstance(e.getLocale())._get()}static _listenForThemeChange(){const t=A(),e=t.getConfiguration();t.attachThemeChanged(async()=>{await kt(e.getTheme())})}static attachListeners(){!A()||ft._listenForThemeChange()}static cssVariablesLoaded(){if(!A())return;const e=[...document.head.children].find(n=>n.id==="sap-ui-theme-sap.ui.core");if(!!e)return!!e.href.match(/\/css(-|_)variables\.css/)}static getNextZIndex(){return A()?window.sap.ui.require("sap/ui/core/Popup").getNextZIndex():void 0}static setInitialZIndex(){if(!A())return;window.sap.ui.require("sap/ui/core/Popup").setInitialZIndex(_t())}}Ht("OpenUI5Support",ft);const Y=new Map,Q=new Map,vt=s=>{if(!Y.has(s)){const t=Ne(s.split("-"));Y.set(s,t)}return Y.get(s)},jt=s=>{if(!Q.has(s)){const t=s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Q.set(s,t)}return Q.get(s)},Ne=s=>s.map((t,e)=>e===0?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(""),Oe=s=>{if(!(s instanceof HTMLElement))return"default";const t=s.getAttribute("slot");if(t){const e=t.match(/^(.+?)-\d+$/);return e?e[1]:t}return"default"},zt=s=>s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement):[s],Re=s=>s.reduce((t,e)=>t.concat(zt(e)),[]);let He,At={include:[/^ui5-/],exclude:[]};const tt=new Map,Wt=()=>He,ct=s=>{if(!tt.has(s)){const t=At.include.some(e=>s.match(e))&&!At.exclude.some(e=>s.match(e));tt.set(s,t)}return tt.get(s)},qt=s=>{if(ct(s))return Wt()};class ke{constructor(t){this.metadata=t}getInitialState(){if(Object.prototype.hasOwnProperty.call(this,"_initialState"))return this._initialState;const t={},e=this.slotsAreManaged(),n=this.getProperties();for(const i in n){const r=n[i].type,o=n[i].defaultValue;r===Boolean?(t[i]=!1,o!==void 0&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):n[i].multiple?t[i]=[]:r===Object?t[i]="defaultValue"in n[i]?n[i].defaultValue:{}:r===String?t[i]="defaultValue"in n[i]?n[i].defaultValue:"":t[i]=o}if(e){const i=this.getSlots();for(const[r,o]of Object.entries(i)){const c=o.propertyName||r;t[c]=[]}}return this._initialState=t,t}static validatePropertyValue(t,e){return e.multiple&&t?t.map(i=>$t(i,e)):$t(t,e)}static validateSlotValue(t,e){return Be(t,e)}getPureTag(){return this.metadata.tag||""}getTag(){const t=this.metadata.tag;if(!t)return"";const e=qt(t);return e?`${t}-${e}`:t}hasAttribute(t){const e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute&&!e.multiple}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute.bind(this)).map(jt)}canSlotText(){const t=this.getSlots().default;return t&&t.type===Node}hasSlots(){return!!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.values(this.getSlots()).some(t=>t.individualSlots)}slotsAreManaged(){return!!this.metadata.managedSlots}supportsF6FastNavigation(){return!!this.metadata.fastNavigation}getProperties(){return this.metadata.properties||(this.metadata.properties={}),this.metadata.properties}getEvents(){return this.metadata.events||(this.metadata.events={}),this.metadata.events}getSlots(){return this.metadata.slots||(this.metadata.slots={}),this.metadata.slots}isLanguageAware(){return!!this.metadata.languageAware}isThemeAware(){return!!this.metadata.themeAware}shouldInvalidateOnChildChange(t,e,n){const i=this.getSlots()[t].invalidateOnChildChange;if(i===void 0)return!1;if(typeof i=="boolean")return i;if(typeof i=="object"){if(e==="property"){if(i.properties===void 0)return!1;if(typeof i.properties=="boolean")return i.properties;if(Array.isArray(i.properties))return i.properties.includes(n);throw new Error("Wrong format for invalidateOnChildChange.properties: boolean or array is expected")}if(e==="slot"){if(i.slots===void 0)return!1;if(typeof i.slots=="boolean")return i.slots;if(Array.isArray(i.slots))return i.slots.includes(n);throw new Error("Wrong format for invalidateOnChildChange.slots: boolean or array is expected")}}throw new Error("Wrong format for invalidateOnChildChange: boolean or object is expected")}}const $t=(s,t)=>{const e=t.type;let n=t.validator;return e&&e.isDataTypeClass&&(n=e),n?n.isValid(s)?s:t.defaultValue:!e||e===String?typeof s=="string"||typeof s>"u"||s===null?s:s.toString():e===Boolean?typeof s=="boolean"?s:!1:e===Object?typeof s=="object"?s:t.defaultValue:s in e?s:t.defaultValue},Be=(s,t)=>(s&&zt(s).forEach(e=>{if(!(e instanceof t.type))throw new Error(`The element is not of type ${t.type.toString()}`)}),s);customElements.get("ui5-static-area")||customElements.define("ui5-static-area",class extends HTMLElement{});const Ve=(s,t)=>{const e=Ue(t),n=Wt();return s(t,e,n)},Ue=s=>{const t=s.constructor,e=t.getMetadata().getPureTag(),n=t.getUniqueDependencies().map(i=>i.getMetadata().getPureTag()).filter(ct);return ct(e)&&n.push(e),n},Fe=()=>pt("CustomStyle.eventProvider",new K),je="CustomCSSChange",gt=s=>{Fe().attachEvent(je,s)},ze=()=>pt("CustomStyle.customCSSFor",{});gt(s=>{Bt({tag:s})});const We=s=>{const t=ze();return t[s]?t[s].join(""):""},qe=10,et=s=>Array.isArray(s)?s.filter(t=>!!t).flat(qe).map(t=>typeof t=="string"?t:t.content).join(" "):typeof s=="string"?s:s.content,W=new Map;gt(s=>{W.delete(`${s}_normal`)});const Zt=(s,t=!1)=>{const e=s.getMetadata().getTag(),n=`${e}_${t?"static":"normal"}`,i=J("OpenUI5Enablement");if(!W.has(n)){let r,o="";if(i&&(o=et(i.getBusyIndicatorStyles())),t)r=et(s.staticAreaStyles);else{const c=We(e)||"";r=`${et(s.styles)} ${c}`}r=`${r} ${o}`,W.set(n,r)}return W.get(n)},q=new Map;gt(s=>{q.delete(`${s}_normal`)});const Ze=(s,t=!1)=>{const n=`${s.getMetadata().getTag()}_${t?"static":"normal"}`;if(!q.has(n)){const i=Zt(s,t),r=new CSSStyleSheet;r.replaceSync(i),q.set(n,[r])}return q.get(n)},dt=(s,t=!1)=>{let e;const n=s.constructor,r=n[t?"staticAreaTemplate":"template"],o=t?s.staticAreaItem.shadowRoot:s.shadowRoot,c=Ve(r,s);if(!o){console.warn("There is no shadow root to update");return}if(document.adoptedStyleSheets?o.adoptedStyleSheets=Ze(n,t):e=Zt(n,t),n.renderer){n.renderer(c,o,e,t,{host:s});return}n.render(c,o,e,t,{host:s})},Ge="--_ui5_content_density",Ke=s=>getComputedStyle(s).getPropertyValue(Ge),Je=s=>{const t=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(s);return t&&t[2]?t[2].split(/,/):null},Xe={iw:"he",ji:"yi",in:"id",sh:"sr"},Ye=Je("$cldr-rtl-locales:ar,fa,he$")||[],Qe=s=>(s=s&&Xe[s]||s,Ye.indexOf(s)>=0),Gt=()=>{if(typeof document>"u")return!1;const s=he();return s!==void 0?!!s:Qe(Vt()||pe())},ts="--_ui5_dir",Kt=s=>{const t=window.document,e=["ltr","rtl"],n=getComputedStyle(s).getPropertyValue(ts);return e.includes(n)?n:e.includes(s.dir)?s.dir:e.includes(t.documentElement.dir)?t.documentElement.dir:e.includes(t.body.dir)?t.body.dir:Gt()?"rtl":void 0},z="ui5-static-area-item",es="data-sap-ui-integration-popup-content";class R extends HTMLElement{constructor(){super(),this._rendered=!1,this.attachShadow({mode:"open"})}setOwnerElement(t){this.ownerElement=t,this.classList.add(this.ownerElement._id),this.ownerElement.hasAttribute("data-ui5-static-stable")&&this.setAttribute("data-ui5-stable",this.ownerElement.getAttribute("data-ui5-static-stable"))}update(){this._rendered&&(this._updateAdditionalAttrs(),this._updateContentDensity(),this._updateDirection(),dt(this.ownerElement,!0))}_updateContentDensity(){Ke(this.ownerElement)==="compact"?(this.classList.add("sapUiSizeCompact"),this.classList.add("ui5-content-density-compact")):(this.classList.remove("sapUiSizeCompact"),this.classList.remove("ui5-content-density-compact"))}_updateDirection(){if(this.ownerElement){const t=Kt(this.ownerElement);t?this.setAttribute("dir",t):this.removeAttribute("dir")}}_updateAdditionalAttrs(){this.setAttribute(z,""),this.setAttribute(es,"")}async getDomRef(){return this._updateContentDensity(),this._rendered||(this._rendered=!0,dt(this.ownerElement,!0)),await Ut(),this.shadowRoot}static getTag(){const t=qt(z);return t?`${z}-${t}`:z}static createInstance(){return customElements.get(R.getTag())||customElements.define(R.getTag(),R),document.createElement(this.getTag())}}const ut=new WeakMap,ss=(s,t,e)=>{const n=new MutationObserver(t);ut.set(s,n),n.observe(s,e)},ns=s=>{const t=ut.get(s);t&&(t.disconnect(),ut.delete(s))},is=["value-changed"];let Z;const rs=s=>is.includes(s),os=s=>{const t=mt();return!(typeof t!="boolean"&&t.events&&t.events.includes&&t.events.includes(s))},mt=()=>(Z===void 0&&(Z=fe()),Z),as=s=>{Z=s},ls=s=>{const t=mt();return rs(s)?!1:t===!0?!0:!os(s)},cs=["disabled","title","hidden","role","draggable"],wt=s=>cs.includes(s)||s.startsWith("aria")?!0:![HTMLElement,Element,Node].some(e=>e.prototype.hasOwnProperty(s)),Ct=(s,t)=>{if(s.length!==t.length)return!1;for(let e=0;e<s.length;e++)if(s[e]!==t[e])return!1;return!0};let ds=0;const St=new Map,st=new Map;function L(s){this._suppressInvalidation||(this.onInvalidation(s),this._changedState.push(s),Se(this),this._eventProvider.fireEvent("invalidate",{...s,target:this}))}class w extends HTMLElement{constructor(){super();const t=this.constructor;this._changedState=[],this._suppressInvalidation=!0,this._inDOM=!1,this._fullyConnected=!1,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._eventProvider=new K;let e;this._domRefReadyPromise=new Promise(n=>{e=n}),this._domRefReadyPromise._deferredResolve=e,this._doNotSyncAttributes=new Set,this._state={...t.getMetadata().getInitialState()},this._upgradeAllProperties(),t._needsShadowDOM()&&this.attachShadow({mode:"open"})}get _id(){return this.__id||(this.__id=`ui5wc_${++ds}`),this.__id}async connectedCallback(){const t=this.constructor;this.setAttribute(t.getMetadata().getPureTag(),""),t.getMetadata().supportsF6FastNavigation()&&this.setAttribute("data-sap-ui-fastnavgroup","true");const e=t.getMetadata().slotsAreManaged();this._inDOM=!0,e&&(this._startObservingDOMChildren(),await this._processChildren()),this._inDOM&&(ge(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,this.onEnterDOM())}disconnectedCallback(){const e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,e&&this._stopObservingDOMChildren(),this._fullyConnected&&(this.onExitDOM(),this._fullyConnected=!1),this.staticAreaItem&&this.staticAreaItem.parentElement&&this.staticAreaItem.parentElement.removeChild(this.staticAreaItem),me(this)}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){const t=this.constructor;if(!t.getMetadata().hasSlots())return;const n=t.getMetadata().canSlotText(),i={childList:!0,subtree:n,characterData:n};ss(this,this._processChildren.bind(this),i)}_stopObservingDOMChildren(){ns(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor,e=t.getMetadata().getSlots(),n=t.getMetadata().canSlotText(),i=Array.from(n?this.childNodes:this.children),r=new Map,o=new Map;for(const[d,u]of Object.entries(e)){const h=u.propertyName||d;o.set(h,d),r.set(h,[...this._state[h]]),this._clearSlot(d,u)}const c=new Map,a=new Map,l=i.map(async(d,u)=>{const h=Oe(d),f=e[h];if(f===void 0){if(h!=="default"){const g=Object.keys(e).join(", ");console.warn(`Unknown slotName: ${h}, ignoring`,d,`Valid values are: ${g}`)}return}if(f.individualSlots){const g=(c.get(h)||0)+1;c.set(h,g),d._individualSlot=`${h}-${g}`}if(d instanceof HTMLElement){const g=d.localName;if(g.includes("-")){if(!window.customElements.get(g)){const de=window.customElements.whenDefined(g);let j=St.get(g);j||(j=new Promise(ue=>setTimeout(ue,1e3)),St.set(g,j)),await Promise.race([de,j])}window.customElements.upgrade(d)}}if(d=t.getMetadata().constructor.validateSlotValue(d,f),bt(d)&&f.invalidateOnChildChange){const g=this._getChildChangeListener(h);g&&d.attachInvalidate.call(d,g)}d instanceof HTMLSlotElement&&this._attachSlotChange(d,h);const m=f.propertyName||h;a.has(m)?a.get(m).push({child:d,idx:u}):a.set(m,[{child:d,idx:u}])});await Promise.all(l),a.forEach((d,u)=>{this._state[u]=d.sort((h,f)=>h.idx-f.idx).map(h=>h.child)});let p=!1;for(const[d,u]of Object.entries(e)){const h=u.propertyName||d;Ct(r.get(h),this._state[h])||(L.call(this,{type:"slot",name:o.get(h),reason:"children"}),p=!0)}p||L.call(this,{type:"slot",name:"default",reason:"textcontent"})}_clearSlot(t,e){const n=e.propertyName||t;this._state[n].forEach(r=>{if(bt(r)){const o=this._getChildChangeListener(t);o&&r.detachInvalidate.call(r,o)}r instanceof HTMLSlotElement&&this._detachSlotChange(r,t)}),this._state[n]=[]}attachInvalidate(t){this._eventProvider.attachEvent("invalidate",t)}detachInvalidate(t){this._eventProvider.detachEvent("invalidate",t)}_onChildChange(t,e){!this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)||L.call(this,{type:"slot",name:t,reason:"childchange",child:e.target})}attributeChangedCallback(t,e,n){let i;if(this._doNotSyncAttributes.has(t))return;const r=this.constructor.getMetadata().getProperties(),o=t.replace(/^ui5-/,""),c=vt(o);if(r.hasOwnProperty(c)){const a=r[c],l=a.type;let p=a.validator;l&&l.isDataTypeClass&&(p=l),p?i=p.attributeToProperty(n):l===Boolean?i=n!==null:i=n,this[c]=i}}_updateAttribute(t,e){const n=this.constructor;if(!n.getMetadata().hasAttribute(t))return;const r=n.getMetadata().getProperties()[t],o=r.type;let c=r.validator;const a=jt(t),l=this.getAttribute(a);if(o&&o.isDataTypeClass&&(c=o),c){const p=c.propertyToAttribute(e);p===null?(this._doNotSyncAttributes.add(a),this.removeAttribute(a),this._doNotSyncAttributes.delete(a)):this.setAttribute(a,p)}else o===Boolean?e===!0&&l===null?this.setAttribute(a,""):e===!1&&l!==null&&this.removeAttribute(a):typeof e!="object"&&l!==e&&this.setAttribute(a,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.bind(this))}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e){const n=this._getSlotChangeListener(e);n&&t.addEventListener("slotchange",n)}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e))}_onSlotChange(t){L.call(this,{type:"slot",name:t,reason:"slotchange"})}onInvalidation(t){}_render(){const t=this.constructor,e=t.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),this._suppressInvalidation=!1,this._changedState=[],t._needsShadowDOM()&&dt(this),this.staticAreaItem&&this.staticAreaItem.update(),e&&this._assignIndividualSlotsToChildren(),this.onAfterRendering()}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute("slot",e._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef=="function")return this._getRealDomRef();if(!this.shadowRoot||this.shadowRoot.children.length===0)return;const t=[...this.shadowRoot.children].filter(e=>!["link","style"].includes(e.localName));return t.length!==1&&console.warn(`The shadow DOM for ${this.constructor.getMetadata().getTag()} does not have a top level element, the getDomRef() method might not work as expected`),t[0]}getFocusDomRef(){const t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(t){await this._waitForDomRef();const e=this.getFocusDomRef();e&&typeof e.focus=="function"&&e.focus(t)}fireEvent(t,e,n=!1,i=!0){const r=this._fireEvent(t,e,n,i),o=vt(t);return o!==t?r&&this._fireEvent(o,e,n):r}_fireEvent(t,e,n=!1,i=!0){const r=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:i,cancelable:n}),o=this.dispatchEvent(r);if(ls(t))return o;const c=new CustomEvent(t,{detail:e,composed:!1,bubbles:i,cancelable:n});return this.dispatchEvent(c)&&o}getSlottedNodes(t){return Re(this[t])}get effectiveDir(){return ye(this.constructor),Kt(this)}get isUI5Element(){return!0}get classes(){return{}}static get observedAttributes(){return this.getMetadata().getAttributesList()}static _needsShadowDOM(){return!!this.template}static _needsStaticArea(){return!!this.staticAreaTemplate}getStaticAreaItemDomRef(){if(!this.constructor._needsStaticArea())throw new Error("This component does not use the static area");return this.staticAreaItem||(this.staticAreaItem=R.createInstance(),this.staticAreaItem.setOwnerElement(this)),this.staticAreaItem.parentElement||_e("ui5-static-area").appendChild(this.staticAreaItem),this.staticAreaItem.getDomRef()}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties();for(const[i,r]of Object.entries(n)){if(wt(i)||console.warn(`"${i}" is not a valid property name. Use a name that does not collide with DOM APIs`),r.type===Boolean&&r.defaultValue)throw new Error(`Cannot set a default value for property "${i}". All booleans are false by default.`);if(r.type===Array)throw new Error(`Wrong type for property "${i}". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...`);if(r.type===Object&&r.defaultValue)throw new Error(`Cannot set a default value for property "${i}". All properties of type "Object" are empty objects by default.`);if(r.multiple&&r.defaultValue)throw new Error(`Cannot set a default value for property "${i}". All multiple properties are empty arrays by default.`);Object.defineProperty(t,i,{get(){if(this._state[i]!==void 0)return this._state[i];const o=r.defaultValue;return r.type===Boolean?!1:r.type===String?o:r.multiple?[]:o},set(o){let c;o=this.constructor.getMetadata().constructor.validatePropertyValue(o,r);const p=r.type;let d=r.validator;const u=this._state[i];p&&p.isDataTypeClass&&(d=p),d?c=!d.valuesAreEqual(u,o):Array.isArray(u)&&Array.isArray(o)&&r.multiple&&r.compareValues?c=!Ct(u,o):c=u!==o,c&&(this._state[i]=o,L.call(this,{type:"property",name:i,newValue:o,oldValue:u}),this._updateAttribute(i,o))}})}if(e){const i=this.getMetadata().getSlots();for(const[r,o]of Object.entries(i)){wt(r)||console.warn(`"${r}" is not a valid property name. Use a name that does not collide with DOM APIs`);const c=o.propertyName||r;Object.defineProperty(t,c,{get(){return this._state[c]!==void 0?this._state[c]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}})}}}static get styles(){return""}static get staticAreaStyles(){return""}static get dependencies(){return[]}static getUniqueDependencies(){if(!st.has(this)){const t=this.dependencies.filter((e,n,i)=>i.indexOf(e)===n);st.set(this,t)}return st.get(this)||[]}static whenDependenciesDefined(){return Promise.all(this.getUniqueDependencies().map(t=>t.define()))}static async onDefine(){return Promise.resolve()}static async define(){await ve(),await Promise.all([this.whenDependenciesDefined(),this.onDefine()]);const t=this.getMetadata().getTag(),e=Ae(t),n=customElements.get(t);return n&&!e?$e(t):n||(this._generateAccessors(),we(t),window.customElements.define(t,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==w;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const n=Ce({},...t);return this._metadata=new ke(n),this._metadata}}w.metadata={};const bt=s=>"isUI5Element"in s;/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var nt;const G=window,x=G.trustedTypes,Et=x?x.createPolicy("lit-html",{createHTML:s=>s}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,yt="?"+$,us=`<${yt}>`,D=document,H=(s="")=>D.createComment(s),k=s=>s===null||typeof s!="object"&&typeof s!="function",Jt=Array.isArray,Xt=s=>Jt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,Tt=/>/g,S=RegExp(`>|[
|
|
6
|
-
\f\r](?:([^\\s"'>=/]+)([
|
|
7
|
-
\f\r]*=[
|
|
8
|
-
\f\r]*(?:[^
|
|
9
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),xt=/'/g,Dt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,hs=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ps=hs(1),E=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),It=new WeakMap,T=D.createTreeWalker(D,129,null,!1),Qt=(s,t)=>{const e=s.length-1,n=[];let i,r=t===2?"<svg>":"",o=P;for(let a=0;a<e;a++){const l=s[a];let p,d,u=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===P?d[1]==="!--"?o=Mt:d[1]!==void 0?o=Tt:d[2]!==void 0?(Yt.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=S):d[3]!==void 0&&(o=S):o===S?d[0]===">"?(o=i!=null?i:P,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,p=d[1],o=d[3]===void 0?S:d[3]==='"'?Dt:xt):o===Dt||o===xt?o=S:o===Mt||o===Tt?o=P:(o=S,i=void 0);const f=o===S&&s[a+1].startsWith("/>")?" ":"";r+=o===P?l+us:u>=0?(n.push(p),l.slice(0,u)+"$lit$"+l.slice(u)+$+f):l+$+(u===-2?(n.push(void 0),a):f)}const c=r+(s[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Et!==void 0?Et.createHTML(c):c,n]};class B{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,o=0;const c=t.length-1,a=this.parts,[l,p]=Qt(t,e);if(this.el=B.createElement(l,n),T.currentNode=this.el.content,e===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(i=T.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes()){const d=[];for(const u of i.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith($)){const h=p[o++];if(d.push(u),h!==void 0){const f=i.getAttribute(h.toLowerCase()+"$lit$").split($),m=/([.?@])?(.*)/.exec(h);a.push({type:1,index:r,name:m[2],strings:f,ctor:m[1]==="."?ee:m[1]==="?"?se:m[1]==="@"?ne:V})}else a.push({type:6,index:r})}for(const u of d)i.removeAttribute(u)}if(Yt.test(i.tagName)){const d=i.textContent.split($),u=d.length-1;if(u>0){i.textContent=x?x.emptyScript:"";for(let h=0;h<u;h++)i.append(d[h],H()),T.nextNode(),a.push({type:2,index:++r});i.append(d[u],H())}}}else if(i.nodeType===8)if(i.data===yt)a.push({type:2,index:r});else{let d=-1;for(;(d=i.data.indexOf($,d+1))!==-1;)a.push({type:7,index:r}),d+=$.length-1}r++}}static createElement(t,e){const n=D.createElement("template");return n.innerHTML=t,n}}function M(s,t,e=s,n){var i,r,o,c;if(t===E)return t;let a=n!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[n]:e._$Cl;const l=k(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((r=a==null?void 0:a._$AO)===null||r===void 0||r.call(a,!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,e,n)),n!==void 0?((o=(c=e)._$Co)!==null&&o!==void 0?o:c._$Co=[])[n]=a:e._$Cl=a),a!==void 0&&(t=M(s,a._$AS(s,t.values),a,n)),t}class te{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:n},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:D).importNode(n,!0);T.currentNode=r;let o=T.nextNode(),c=0,a=0,l=i[0];for(;l!==void 0;){if(c===l.index){let p;l.type===2?p=new I(o,o.nextSibling,this,t):l.type===1?p=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(p=new ie(o,this,t)),this.u.push(p),l=i[++a]}c!==(l==null?void 0:l.index)&&(o=T.nextNode(),c++)}return r}p(t){let e=0;for(const n of this.u)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class I{constructor(t,e,n,i){var r;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cm=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),k(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==E&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xt(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==y&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=B.createElement(i.h,this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.p(n);else{const o=new te(r,this),c=o.v(this.options);o.p(n),this.T(c),this._$AH=o}}_$AC(t){let e=It.get(t.strings);return e===void 0&&It.set(t.strings,e=new B(t)),e}k(t){Jt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new I(this.O(H()),this.O(H()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class V{constructor(t,e,n,i,r){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(r===void 0)t=M(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const c=t;let a,l;for(t=r[0],a=0;a<r.length-1;a++)l=M(this,c[n+a],e,a),l===E&&(l=this._$AH[a]),o||(o=!k(l)||l!==this._$AH[a]),l===y?t=y:t!==y&&(t+=(l!=null?l:"")+r[a+1]),this._$AH[a]=l}o&&!i&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class ee extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}const fs=x?x.emptyScript:"";class se extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==y?this.element.setAttribute(this.name,fs):this.element.removeAttribute(this.name)}}class ne extends V{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=M(this,t,e,0))!==null&&n!==void 0?n:y)===E)return;const i=this._$AH,r=t===y&&i!==y||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==y&&(i===y||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;typeof this._$AH=="function"?this._$AH.call((n=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}}class ie{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const gs={P:"$lit$",A:$,M:yt,C:1,L:Qt,R:te,D:Xt,V:M,I,H:V,N:se,U:ne,B:ee,F:ie},Lt=G.litHtmlPolyfillSupport;Lt==null||Lt(B,I),((nt=G.litHtmlVersions)!==null&&nt!==void 0?nt:G.litHtmlVersions=[]).push("2.6.0");const ms=(s,t,e)=>{var n,i;const r=(n=e==null?void 0:e.renderBefore)!==null&&n!==void 0?n:t;let o=r._$litPart$;if(o===void 0){const c=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=o=new I(t.insertBefore(H(),c),c,void 0,e!=null?e:{})}return o._$AI(s),o};/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2017 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ys=s=>(...t)=>({_$litDirective$:s,values:t});class oe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright 2020 Google LLC
|
|
16
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const{I:_s}=gs,Pt=()=>document.createComment(""),N=(s,t,e)=>{var n;const i=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){const o=i.insertBefore(Pt(),r),c=i.insertBefore(Pt(),r);e=new _s(o,c,s,s.options)}else{const o=e._$AB.nextSibling,c=e._$AM,a=c!==s;if(a){let l;(n=e._$AQ)===null||n===void 0||n.call(e,s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==c._$AU&&e._$AP(l)}if(o!==r||a){let l=e._$AA;for(;l!==o;){const p=l.nextSibling;i.insertBefore(l,r),l=p}}}return e},b=(s,t,e=s)=>(s._$AI(t,e),s),vs={},As=(s,t=vs)=>s._$AH=t,$s=s=>s._$AH,it=s=>{var t;(t=s._$AP)===null||t===void 0||t.call(s,!1,!0);let e=s._$AA;const n=s._$AB.nextSibling;for(;e!==n;){const i=e.nextSibling;e.remove(),e=i}};/**
|
|
18
|
-
* @license
|
|
19
|
-
* Copyright 2017 Google LLC
|
|
20
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const Nt=(s,t,e)=>{const n=new Map;for(let i=t;i<=e;i++)n.set(s[i],i);return n},ae=ys(class extends oe{constructor(s){if(super(s),s.type!==re.CHILD)throw Error("repeat() can only be used in text expressions")}ht(s,t,e){let n;e===void 0?e=t:t!==void 0&&(n=t);const i=[],r=[];let o=0;for(const c of s)i[o]=n?n(c,o):o,r[o]=e(c,o),o++;return{values:r,keys:i}}render(s,t,e){return this.ht(s,t,e).values}update(s,[t,e,n]){var i;const r=$s(s),{values:o,keys:c}=this.ht(t,e,n);if(!Array.isArray(r))return this.ut=c,o;const a=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],l=[];let p,d,u=0,h=r.length-1,f=0,m=o.length-1;for(;u<=h&&f<=m;)if(r[u]===null)u++;else if(r[h]===null)h--;else if(a[u]===c[f])l[f]=b(r[u],o[f]),u++,f++;else if(a[h]===c[m])l[m]=b(r[h],o[m]),h--,m--;else if(a[u]===c[m])l[m]=b(r[u],o[m]),N(s,l[m+1],r[u]),u++,m--;else if(a[h]===c[f])l[f]=b(r[h],o[f]),N(s,r[u],r[h]),h--,f++;else if(p===void 0&&(p=Nt(c,f,m),d=Nt(a,u,h)),p.has(a[u]))if(p.has(a[h])){const g=d.get(c[f]),F=g!==void 0?r[g]:null;if(F===null){const X=N(s,r[u]);b(X,o[f]),l[f]=X}else l[f]=b(F,o[f]),N(s,r[u],F),r[g]=null;f++}else it(r[h]),h--;else it(r[u]),u++;for(;f<=m;){const g=N(s,l[m+1]);b(g,o[f]),l[f++]=g}for(;u<=h;){const g=r[u++];g!==null&&it(g)}return this.ut=c,As(s,l),E}});/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2018 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const v=s=>s!=null?s:y;/**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2017 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/class Ot extends oe{constructor(t){if(super(t),this.it=y,t.type!==re.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===y||t==null)return this._t=void 0,this.it=t;if(t===E)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ot.directiveName="unsafeHTML",Ot.resultType=1;const _=(s,...t)=>{const e=J("LitStatic");return(e?e.html:ps)(s,...t)},U=(s,t,e,n,i)=>{const r=J("OpenUI5Enablement");r&&!n&&(s=r.wrapTemplateResultInBusyMarkup(_,i.host,s)),typeof e=="string"?s=_`<style>${e}</style>${s}`:Array.isArray(e)&&e.length&&(s=_`${e.map(o=>_`<link type="text/css" rel="stylesheet" href="${o}">`)}${s}`),ms(s,t,i)},ws={tag:"ui5-test-generic",properties:{strProp:{type:String},boolProp:{type:Boolean},objectProp:{type:Object},noAttributeProp:{type:String,noAttribute:!0},multiProp:{type:String,multiple:!0},defaultValueProp:{type:String,defaultValue:"Hello"}},managedSlots:!0,slots:{default:{type:Node},other:{type:HTMLElement},individual:{type:HTMLElement,individualSlots:!0},named:{type:HTMLElement,propertyName:"items"}}};class le extends w{static get metadata(){return ws}static get render(){return U}static get template(){return t=>_`<div><p>
|
|
30
|
-
<slot></slot>
|
|
31
|
-
<slot name="other"></slot>
|
|
32
|
-
<slot name="individual-1"></slot>
|
|
33
|
-
<slot name="individual-2"></slot>
|
|
34
|
-
</p></div>`}static get styles(){return`:host {
|
|
35
|
-
display: inline-block;
|
|
36
|
-
border: 1px solid black;
|
|
37
|
-
color: var(--var1);
|
|
38
|
-
}`}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}le.define();const Cs={tag:"ui5-test-no-shadow"};class Ss extends w{static get metadata(){return Cs}}Ss.define();const bs={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,invalidateOnChildChange:{properties:["prop1"]}},items:{type:HTMLElement,invalidateOnChildChange:{properties:!0}}}};class Es extends w{static get metadata(){return bs}static get render(){return U}static get template(){return t=>_`<div>
|
|
39
|
-
<slot></slot>
|
|
40
|
-
</div>`}}Es.define();const Ms={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};class Ts extends w{static get metadata(){return Ms}static get render(){return U}static get template(){return t=>_`<div></div>`}}Ts.define();const xs={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};class Ds extends w{static get metadata(){return xs}static get render(){return U}static get template(){return t=>_`
|
|
41
|
-
<div dir=${t.effectiveDir}>
|
|
42
|
-
WithStaticArea works!
|
|
43
|
-
</div>`}static get staticAreaTemplate(){return t=>_`
|
|
44
|
-
<div class="ui5-with-static-area-content">
|
|
45
|
-
Static area content.
|
|
46
|
-
</div>`}static get styles(){return`
|
|
47
|
-
:host {
|
|
48
|
-
display: inline-block;
|
|
49
|
-
border: 1px solid black;
|
|
50
|
-
color: red;
|
|
51
|
-
}`}async addStaticArea(){if(!this.staticContent)return;const t=await this.getStaticAreaItemDomRef();return this.responsivePopover=t.querySelector(".ui5-with-static-area-content"),this.responsivePopover}onBeforeRendering(){this.addStaticArea()}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}Ds.define();const Is=(s,t,e)=>_`<div>Root text: ${v(s.text)}${ae(s.items,(n,i)=>n._id||i,(n,i)=>Ls(n,i,s))} Root text: ${v(s.text)}</div>`,Ls=(s,t,e,n,i)=>_`<h3>Item-${t}</h3>${s.text?Ps(s,t,e):void 0}<ul>${ae(s.words,(r,o)=>r._id||o,(r,o)=>Ns(r,o,e))}</ul>${s.text?Os(s,t,e):void 0}`,Ps=(s,t,e,n,i)=>_`<div class="before-each-content--start--${t}">Root text: ${v(e.text)}, Item text: ${v(s.text)}</div>`,Ns=(s,t,e,n,i)=>_`<li><h3>Word-${t}</h3><div class="nested-each-content--${t}--0">Root Text: ${v(e.text)}, Word text: ${v(s.text)}</div><div class="nested-each-content--${t}--1">Root Text: ${v(e.text)}, Word text: ${v(s.text)}</div></li>`,Os=(s,t,e,n,i)=>_`<div class="after-each-content--end--${t}">Root text: ${v(e.text)}, Item text: ${v(s.text)}</div>`;class Rs extends w{static get metadata(){return{tag:"ui5-test-complex-template"}}static get render(){return U}static get template(){return Is}get text(){return"root"}get items(){return[{text:"positives",words:[{text:"word1_good"},{text:"word2_nice"},{text:"word3_kind"}]},{text:"negatives",words:[{text:"word4_bad"},{text:"word5_rude"},{text:"word6_unpolite"}]}]}}Rs.define();const Hs={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};class ks extends le{static get metadata(){return Hs}}ks.define();const Bs={content:":root{ --var1: red; }",packageName:"",fileName:""},Vs={content:":root{ --var1: green; }",packageName:"",fileName:""},Us={content:":root{ --var1: blue; }",packageName:"",fileName:""},Fs={content:":root{ --var1: orange; }",packageName:"",fileName:""},js={content:":root{ --var1: orange; }",packageName:"",fileName:""},zs={content:":root{ --var1: yellow; }",packageName:"",fileName:""},Ws={content:":root{ --var1: yellow; }",packageName:"",fileName:""};C("@ui5/webcomponents-base-test","sap_fiori_3",()=>Bs);C("@ui5/webcomponents-base-test","sap_fiori_3_dark",()=>Vs);C("@ui5/webcomponents-base-test","sap_belize",()=>Us);C("@ui5/webcomponents-base-test","sap_belize_hcb",()=>Fs);C("@ui5/webcomponents-base-test","sap_belize_hcw",()=>js);C("@ui5/webcomponents-base-test","sap_fiori_3_hcb",()=>zs);C("@ui5/webcomponents-base-test","sap_fiori_3_hcw",()=>Ws);const qs=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,Zs=(s,t)=>(t=t||[],s.replace(qs,(e,n,i,r,o)=>{if(n)return"'";if(i)return i.replace(/''/g,"'");if(r){const c=typeof r=="string"?parseInt(r):r;return String(t[c])}throw new Error(`[i18n]: pattern syntax error at pos ${o}`)})),rt=new Map;class Gs{constructor(t){this.packageName=t}getText(t,...e){if(typeof t=="string"&&(t={key:t,defaultText:t}),!t||!t.key)return"";const n=Ee(this.packageName);n&&!n[t.key]&&console.warn(`Key ${t.key} not found in the i18n bundle, the default text will be used`);const i=n&&n[t.key]?n[t.key]:t.defaultText||t.key;return Zs(i,e)}}const Ks=s=>{if(rt.has(s))return rt.get(s);const t=new Gs(s);return rt.set(s,t),t},Js=async s=>(await be(s),Ks(s)),Xs=typeof window.chrome=="object"||typeof window.v8=="object"?(s,t)=>(t>2&&40*t>s.length,s):s=>s,Ys=/(?:\r\n|\r|\n|^)[ \t\f]*/,Qs=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g,tn=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g,en={"\\f":"\f","\\n":`
|
|
52
|
-
`,"\\r":"\r","\\t":" "},sn=s=>{const t={},e=s.split(Ys);let n,i,r,o,c,a,l,p;const d=u=>{o?(o=`${o}${u}`,p++):(o=u,p=0)};for(c=0;c<e.length;c++)if(n=e[c],!(n===""||n.charAt(0)==="#"||n.charAt(0)==="!")){for(i=Qs,l=0,i.lastIndex=l,r=null,o="",a=i.exec(n);a!==null;){if(l<a.index&&d(n.slice(l,a.index)),l=i.lastIndex,a[1]){if(a[1].length!==6)throw new Error(`Incomplete Unicode Escape '${a[1]}'`);d(String.fromCharCode(parseInt(a[1].slice(2),16)))}else a[2]?d(en[a[2]]||a[2].slice(1)):a[3]?(n=e[++c],l=0,i.lastIndex=l):a[4]&&(r=o,o="",i=tn,i.lastIndex=l);a=i.exec(n)}l<n.length&&d(n.slice(l)),r==null&&(r=o,o=""),t[r]=Xs(o,o?p:0)}return t};let ot;const nn=()=>(ot===void 0&&(ot=Me()),ot);var ht;(function(s){s.Gregorian="Gregorian",s.Islamic="Islamic",s.Japanese="Japanese",s.Buddhist="Buddhist",s.Persian="Persian"})(ht||(ht={}));const Rt=ht;let O;const rn=()=>(O===void 0&&(O=Te()),O&&O in Rt?O:Rt.Gregorian);let at;class ce{static getLegacyDateCalendarCustomizing(){return at===void 0&&(at=Ft()),at.legacyDateCalendarCustomizing||[]}}Ht("LegacyDateFormats",ce);let lt;const on=()=>(lt===void 0&&(lt=Ft()),lt.firstDayOfWeek),an=J("LegacyDateFormats"),ln=an?ce.getLegacyDateCalendarCustomizing:()=>[],cn=new K,dn="directionChange",un=()=>cn.fireEvent(dn,void 0),hn=async()=>{const s=un();await Promise.all(s),await Bt({rtlAware:!0})};window.registerThemePropertiesLoader=C;window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:nn,getLanguage:Vt,setLanguage:xe,getTheme:De,setTheme:kt,getNoConflict:mt,setNoConflict:as,getCalendarType:rn,getRTL:Gt,getFirstDayOfWeek:on,getLegacyDateCalendarCustomizing:ln},getIconNames:Ie,parseProperties:sn,registerI18nLoader:Le,getI18nBundle:Js,renderFinished:Ut,applyDirection:hn,EventProvider:K};
|
|
File without changes
|