@openui5/sap.ui.webc.common 1.93.3 → 1.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +2 -2
- package/src/sap/ui/webc/common/.library +1 -1
- package/src/sap/ui/webc/common/WebComponent.js +42 -21
- package/src/sap/ui/webc/common/WebComponentMetadata.js +1 -1
- package/src/sap/ui/webc/common/WebComponentRenderer.js +3 -3
- package/src/sap/ui/webc/common/library.js +3 -3
- package/src/sap/ui/webc/common/thirdparty/base/Device.js +2 -0
- package/src/sap/ui/webc/common/thirdparty/base/EventProvider.js +16 -24
- package/src/sap/ui/webc/common/thirdparty/base/FontFace.js +4 -4
- package/src/sap/ui/webc/common/thirdparty/base/Keys.js +10 -0
- package/src/sap/ui/webc/common/thirdparty/base/StaticAreaItem.js +10 -1
- package/src/sap/ui/webc/common/thirdparty/base/SystemCSSVars.js +3 -3
- package/src/sap/ui/webc/common/thirdparty/base/UI5Element.js +25 -31
- package/src/sap/ui/webc/common/thirdparty/base/UI5ElementMetadata.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Icons.js +5 -0
- package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Illustrations.js +23 -0
- package/src/sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation.js +38 -0
- package/src/sap/ui/webc/common/thirdparty/base/renderer/LitRenderer.js +20 -18
- package/src/sap/ui/webc/common/thirdparty/base/sap/base/Log.js +253 -0
- package/src/sap/ui/webc/common/thirdparty/base/sap/base/assert.js +16 -0
- package/src/sap/ui/webc/common/thirdparty/base/sap/base/util/now.js +12 -0
- package/src/sap/ui/webc/common/thirdparty/base/types/DataType.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/base/types/Float.js +3 -0
- package/src/sap/ui/webc/common/thirdparty/base/types/Integer.js +3 -0
- package/src/sap/ui/webc/common/thirdparty/base/updateShadowRoot.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper.js +4 -4
- package/src/sap/ui/webc/common/thirdparty/base/util/InvisibleMessage.js +21 -14
- package/src/sap/ui/webc/common/thirdparty/base/util/PopupUtils.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/lit-html/directive.js +16 -0
- package/src/sap/ui/webc/common/thirdparty/lit-html/directives/class-map.js +8 -80
- package/src/sap/ui/webc/common/thirdparty/lit-html/directives/if-defined.js +13 -0
- package/src/sap/ui/webc/common/thirdparty/lit-html/directives/repeat.js +15 -159
- package/src/sap/ui/webc/common/thirdparty/lit-html/directives/style-map.js +8 -51
- package/src/sap/ui/webc/common/thirdparty/lit-html/directives/unsafe-html.js +9 -32
- package/src/sap/ui/webc/common/thirdparty/lit-html/lit-html.js +14 -49
- package/src/sap/ui/webc/common/thirdparty/lit-html/static.js +17 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/json-imports/Themes.js +7 -7
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-10d6a87c.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-17ba1024.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-33240f21.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-354df2bd.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-4c3222f0.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-abf4cf1a.js +9 -0
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-f92d2591.js +9 -0
- package/ui5.yaml +1 -1
- package/src/sap/ui/webc/common/thirdparty/base/renderer/ifDefined.js +0 -18
- package/src/sap/ui/webc/common/thirdparty/base/renderer/scopeHTML.js +0 -23
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/default-template-processor.js +0 -43
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/directive.js +0 -31
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/dom.js +0 -41
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/part.js +0 -24
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/parts.js +0 -374
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/render.js +0 -33
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template-factory.js +0 -45
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template-instance.js +0 -88
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template-result.js +0 -77
- package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template.js +0 -149
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-0ad70668.js +0 -9
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-0f7f1dcc.js +0 -9
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-4bf24a54.js +0 -9
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-69006d4e.js +0 -9
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-819624f1.js +0 -9
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-97e70e91.js +0 -9
- package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-c5f25513.js +0 -9
@@ -1,16 +1,16 @@
|
|
1
1
|
sap.ui.define(['exports', './findNodeOwner'], function (exports, findNodeOwner) { 'use strict';
|
2
2
|
|
3
3
|
const getEffectiveAriaLabelText = el => {
|
4
|
-
if (!el.
|
5
|
-
if (el.
|
6
|
-
return el.
|
4
|
+
if (!el.accessibleNameRef) {
|
5
|
+
if (el.accessibleName) {
|
6
|
+
return el.accessibleName;
|
7
7
|
}
|
8
8
|
return undefined;
|
9
9
|
}
|
10
10
|
return getAriaLabelledByTexts(el);
|
11
11
|
};
|
12
12
|
const getAriaLabelledByTexts = (el, ownerDocument, readyIds = "") => {
|
13
|
-
const ids = (readyIds && readyIds.split(" ")) || el.
|
13
|
+
const ids = (readyIds && readyIds.split(" ")) || el.accessibleNameRef.split(" ");
|
14
14
|
const owner = ownerDocument || findNodeOwner(el);
|
15
15
|
let result = "";
|
16
16
|
ids.forEach((elementId, index) => {
|
@@ -1,23 +1,30 @@
|
|
1
|
-
sap.ui.define(['../types/InvisibleMessageMode', './getSingletonElementInstance'], function (InvisibleMessageMode, getSingletonElementInstance) { 'use strict';
|
1
|
+
sap.ui.define(['../types/InvisibleMessageMode', './getSingletonElementInstance', '../Boot'], function (InvisibleMessageMode, getSingletonElementInstance, Boot) { 'use strict';
|
2
2
|
|
3
|
-
|
3
|
+
let politeSpan;
|
4
|
+
let assertiveSpan;
|
5
|
+
Boot.attachBoot(() => {
|
6
|
+
if (politeSpan && assertiveSpan) {
|
7
|
+
return;
|
8
|
+
}
|
9
|
+
const styles = `position: absolute;
|
4
10
|
clip: rect(1px,1px,1px,1px);
|
5
11
|
user-select: none;
|
6
12
|
left: -1000px;
|
7
13
|
top: -1000px;
|
8
14
|
pointer-events: none;`;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
politeSpan = document.createElement("span");
|
16
|
+
assertiveSpan = document.createElement("span");
|
17
|
+
politeSpan.classList.add("ui5-invisiblemessage-polite");
|
18
|
+
assertiveSpan.classList.add("ui5-invisiblemessage-assertive");
|
19
|
+
politeSpan.setAttribute("aria-live", "polite");
|
20
|
+
assertiveSpan.setAttribute("aria-live", "assertive");
|
21
|
+
politeSpan.setAttribute("role", "alert");
|
22
|
+
assertiveSpan.setAttribute("role", "alert");
|
23
|
+
politeSpan.style.cssText = styles;
|
24
|
+
assertiveSpan.style.cssText = styles;
|
25
|
+
getSingletonElementInstance("ui5-static-area").appendChild(politeSpan);
|
26
|
+
getSingletonElementInstance("ui5-static-area").appendChild(assertiveSpan);
|
27
|
+
});
|
21
28
|
const announce = (message, mode) => {
|
22
29
|
const span = mode === InvisibleMessageMode.Assertive ? assertiveSpan : politeSpan;
|
23
30
|
span.textContent = "";
|
@@ -45,7 +45,7 @@ sap.ui.define(['exports', '../getSharedResource', '../FeaturesRegistry', './getA
|
|
45
45
|
};
|
46
46
|
const getClosedPopupParent = el => {
|
47
47
|
const parent = el.parentElement || (el.getRootNode && el.getRootNode().host);
|
48
|
-
if (parent && ((parent.
|
48
|
+
if (parent && ((parent.showAt && parent.isUI5Element) || (parent.open && parent.isUI5Element) || parent === document.documentElement)) {
|
49
49
|
return parent;
|
50
50
|
}
|
51
51
|
return getClosedPopupParent(parent);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
sap.ui.define(['exports'], function (exports) { 'use strict';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2017 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/
|
8
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=t=>(...i)=>({_$litDirective$:t,values:i});class s{constructor(t){}T(t,i,s){this.Σdt=t,this.M=i,this.Σct=s;}S(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
9
|
+
|
10
|
+
exports.Directive = s;
|
11
|
+
exports.PartType = t;
|
12
|
+
exports.directive = i;
|
13
|
+
|
14
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
15
|
+
|
16
|
+
});
|
@@ -1,85 +1,13 @@
|
|
1
|
-
sap.ui.define(['exports', '../lit-html', '../
|
1
|
+
sap.ui.define(['exports', '../lit-html', '../directive'], function (exports, litHtml, directive) { 'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
* The complete set of authors may be found at
|
9
|
-
* http://polymer.github.io/AUTHORS.txt
|
10
|
-
* The complete set of contributors may be found at
|
11
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
12
|
-
* Code distributed by Google as part of the polymer project is also
|
13
|
-
* subject to an additional IP rights grant found at
|
14
|
-
* http://polymer.github.io/PATENTS.txt
|
15
|
-
*/
|
16
|
-
class ClassList {
|
17
|
-
constructor(element) {
|
18
|
-
this.classes = new Set();
|
19
|
-
this.changed = false;
|
20
|
-
this.element = element;
|
21
|
-
const classList = (element.getAttribute('class') || '').split(/\s+/);
|
22
|
-
for (const cls of classList) {
|
23
|
-
this.classes.add(cls);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
add(cls) {
|
27
|
-
this.classes.add(cls);
|
28
|
-
this.changed = true;
|
29
|
-
}
|
30
|
-
remove(cls) {
|
31
|
-
this.classes.delete(cls);
|
32
|
-
this.changed = true;
|
33
|
-
}
|
34
|
-
commit() {
|
35
|
-
if (this.changed) {
|
36
|
-
let classString = '';
|
37
|
-
this.classes.forEach((cls) => classString += cls + ' ');
|
38
|
-
this.element.setAttribute('class', classString);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
const previousClassesCache = new WeakMap();
|
43
|
-
const classMap = directive.directive((classInfo) => (part) => {
|
44
|
-
if (!(part instanceof parts.AttributePart) || (part instanceof parts.PropertyPart) ||
|
45
|
-
part.committer.name !== 'class' || part.committer.parts.length > 1) {
|
46
|
-
throw new Error('The `classMap` directive must be used in the `class` attribute ' +
|
47
|
-
'and must be the only part in the attribute.');
|
48
|
-
}
|
49
|
-
const { committer } = part;
|
50
|
-
const { element } = committer;
|
51
|
-
let previousClasses = previousClassesCache.get(part);
|
52
|
-
if (previousClasses === undefined) {
|
53
|
-
element.setAttribute('class', committer.strings.join(' '));
|
54
|
-
previousClassesCache.set(part, previousClasses = new Set());
|
55
|
-
}
|
56
|
-
const classList = (element.classList || new ClassList(element));
|
57
|
-
previousClasses.forEach((name) => {
|
58
|
-
if (!(name in classInfo)) {
|
59
|
-
classList.remove(name);
|
60
|
-
previousClasses.delete(name);
|
61
|
-
}
|
62
|
-
});
|
63
|
-
for (const name in classInfo) {
|
64
|
-
const value = classInfo[name];
|
65
|
-
if (value != previousClasses.has(name)) {
|
66
|
-
if (value) {
|
67
|
-
classList.add(name);
|
68
|
-
previousClasses.add(name);
|
69
|
-
}
|
70
|
-
else {
|
71
|
-
classList.remove(name);
|
72
|
-
previousClasses.delete(name);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
}
|
76
|
-
if (typeof classList.commit === 'function') {
|
77
|
-
classList.commit();
|
78
|
-
}
|
79
|
-
});
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2018 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/const e=directive.directive(class extends directive.Directive{constructor(t){var s;if(super(t),t.type!==directive.PartType.ATTRIBUTE||"class"!==t.name||(null===(s=t.strings)||void 0===s?void 0:s.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).filter((s=>t[s])).join(" ")}update(s,[r]){if(void 0===this.bt){this.bt=new Set;for(const t in r)r[t]&&this.bt.add(t);return this.render(r)}const i=s.element.classList;this.bt.forEach((t=>{t in r||(i.remove(t),this.bt.delete(t));}));for(const t in r){const s=!!r[t];s!==this.bt.has(t)&&(s?(i.add(t),this.bt.add(t)):(i.remove(t),this.bt.delete(t)));}return litHtml.noChange}});
|
80
8
|
|
81
|
-
|
9
|
+
exports.classMap = e;
|
82
10
|
|
83
|
-
|
11
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
84
12
|
|
85
13
|
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
sap.ui.define(['exports', '../lit-html'], function (exports, litHtml) { 'use strict';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2018 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/const l=l=>null!=l?l:litHtml.nothing;
|
8
|
+
|
9
|
+
exports.ifDefined = l;
|
10
|
+
|
11
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
12
|
+
|
13
|
+
});
|
@@ -1,164 +1,20 @@
|
|
1
|
-
sap.ui.define(['exports', '../lit-html', '../
|
1
|
+
sap.ui.define(['exports', '../lit-html', '../directive'], function (exports, litHtml, directive) { 'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
* The complete set of authors may be found at
|
9
|
-
* http://polymer.github.io/AUTHORS.txt
|
10
|
-
* The complete set of contributors may be found at
|
11
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
12
|
-
* Code distributed by Google as part of the polymer project is also
|
13
|
-
* subject to an additional IP rights grant found at
|
14
|
-
* http://polymer.github.io/PATENTS.txt
|
15
|
-
*/
|
16
|
-
const createAndInsertPart = (containerPart, beforePart) => {
|
17
|
-
const container = containerPart.startNode.parentNode;
|
18
|
-
const beforeNode = beforePart === undefined ? containerPart.endNode :
|
19
|
-
beforePart.startNode;
|
20
|
-
const startNode = container.insertBefore(template.createMarker(), beforeNode);
|
21
|
-
container.insertBefore(template.createMarker(), beforeNode);
|
22
|
-
const newPart = new parts.NodePart(containerPart.options);
|
23
|
-
newPart.insertAfterNode(startNode);
|
24
|
-
return newPart;
|
25
|
-
};
|
26
|
-
const updatePart = (part, value) => {
|
27
|
-
part.setValue(value);
|
28
|
-
part.commit();
|
29
|
-
return part;
|
30
|
-
};
|
31
|
-
const insertPartBefore = (containerPart, part, ref) => {
|
32
|
-
const container = containerPart.startNode.parentNode;
|
33
|
-
const beforeNode = ref ? ref.startNode : containerPart.endNode;
|
34
|
-
const endNode = part.endNode.nextSibling;
|
35
|
-
if (endNode !== beforeNode) {
|
36
|
-
dom.reparentNodes(container, part.startNode, endNode, beforeNode);
|
37
|
-
}
|
38
|
-
};
|
39
|
-
const removePart = (part) => {
|
40
|
-
dom.removeNodes(part.startNode.parentNode, part.startNode, part.endNode.nextSibling);
|
41
|
-
};
|
42
|
-
const generateMap = (list, start, end) => {
|
43
|
-
const map = new Map();
|
44
|
-
for (let i = start; i <= end; i++) {
|
45
|
-
map.set(list[i], i);
|
46
|
-
}
|
47
|
-
return map;
|
48
|
-
};
|
49
|
-
const partListCache = new WeakMap();
|
50
|
-
const keyListCache = new WeakMap();
|
51
|
-
const repeat = directive.directive((items, keyFnOrTemplate, template) => {
|
52
|
-
let keyFn;
|
53
|
-
if (template === undefined) {
|
54
|
-
template = keyFnOrTemplate;
|
55
|
-
}
|
56
|
-
else if (keyFnOrTemplate !== undefined) {
|
57
|
-
keyFn = keyFnOrTemplate;
|
58
|
-
}
|
59
|
-
return (containerPart) => {
|
60
|
-
if (!(containerPart instanceof parts.NodePart)) {
|
61
|
-
throw new Error('repeat can only be used in text bindings');
|
62
|
-
}
|
63
|
-
const oldParts = partListCache.get(containerPart) || [];
|
64
|
-
const oldKeys = keyListCache.get(containerPart) || [];
|
65
|
-
const newParts = [];
|
66
|
-
const newValues = [];
|
67
|
-
const newKeys = [];
|
68
|
-
let index = 0;
|
69
|
-
for (const item of items) {
|
70
|
-
newKeys[index] = keyFn ? keyFn(item, index) : index;
|
71
|
-
newValues[index] = template(item, index);
|
72
|
-
index++;
|
73
|
-
}
|
74
|
-
let newKeyToIndexMap;
|
75
|
-
let oldKeyToIndexMap;
|
76
|
-
let oldHead = 0;
|
77
|
-
let oldTail = oldParts.length - 1;
|
78
|
-
let newHead = 0;
|
79
|
-
let newTail = newValues.length - 1;
|
80
|
-
while (oldHead <= oldTail && newHead <= newTail) {
|
81
|
-
if (oldParts[oldHead] === null) {
|
82
|
-
oldHead++;
|
83
|
-
}
|
84
|
-
else if (oldParts[oldTail] === null) {
|
85
|
-
oldTail--;
|
86
|
-
}
|
87
|
-
else if (oldKeys[oldHead] === newKeys[newHead]) {
|
88
|
-
newParts[newHead] =
|
89
|
-
updatePart(oldParts[oldHead], newValues[newHead]);
|
90
|
-
oldHead++;
|
91
|
-
newHead++;
|
92
|
-
}
|
93
|
-
else if (oldKeys[oldTail] === newKeys[newTail]) {
|
94
|
-
newParts[newTail] =
|
95
|
-
updatePart(oldParts[oldTail], newValues[newTail]);
|
96
|
-
oldTail--;
|
97
|
-
newTail--;
|
98
|
-
}
|
99
|
-
else if (oldKeys[oldHead] === newKeys[newTail]) {
|
100
|
-
newParts[newTail] =
|
101
|
-
updatePart(oldParts[oldHead], newValues[newTail]);
|
102
|
-
insertPartBefore(containerPart, oldParts[oldHead], newParts[newTail + 1]);
|
103
|
-
oldHead++;
|
104
|
-
newTail--;
|
105
|
-
}
|
106
|
-
else if (oldKeys[oldTail] === newKeys[newHead]) {
|
107
|
-
newParts[newHead] =
|
108
|
-
updatePart(oldParts[oldTail], newValues[newHead]);
|
109
|
-
insertPartBefore(containerPart, oldParts[oldTail], oldParts[oldHead]);
|
110
|
-
oldTail--;
|
111
|
-
newHead++;
|
112
|
-
}
|
113
|
-
else {
|
114
|
-
if (newKeyToIndexMap === undefined) {
|
115
|
-
newKeyToIndexMap = generateMap(newKeys, newHead, newTail);
|
116
|
-
oldKeyToIndexMap = generateMap(oldKeys, oldHead, oldTail);
|
117
|
-
}
|
118
|
-
if (!newKeyToIndexMap.has(oldKeys[oldHead])) {
|
119
|
-
removePart(oldParts[oldHead]);
|
120
|
-
oldHead++;
|
121
|
-
}
|
122
|
-
else if (!newKeyToIndexMap.has(oldKeys[oldTail])) {
|
123
|
-
removePart(oldParts[oldTail]);
|
124
|
-
oldTail--;
|
125
|
-
}
|
126
|
-
else {
|
127
|
-
const oldIndex = oldKeyToIndexMap.get(newKeys[newHead]);
|
128
|
-
const oldPart = oldIndex !== undefined ? oldParts[oldIndex] : null;
|
129
|
-
if (oldPart === null) {
|
130
|
-
const newPart = createAndInsertPart(containerPart, oldParts[oldHead]);
|
131
|
-
updatePart(newPart, newValues[newHead]);
|
132
|
-
newParts[newHead] = newPart;
|
133
|
-
}
|
134
|
-
else {
|
135
|
-
newParts[newHead] =
|
136
|
-
updatePart(oldPart, newValues[newHead]);
|
137
|
-
insertPartBefore(containerPart, oldPart, oldParts[oldHead]);
|
138
|
-
oldParts[oldIndex] = null;
|
139
|
-
}
|
140
|
-
newHead++;
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
while (newHead <= newTail) {
|
145
|
-
const newPart = createAndInsertPart(containerPart, newParts[newTail + 1]);
|
146
|
-
updatePart(newPart, newValues[newHead]);
|
147
|
-
newParts[newHead++] = newPart;
|
148
|
-
}
|
149
|
-
while (oldHead <= oldTail) {
|
150
|
-
const oldPart = oldParts[oldHead++];
|
151
|
-
if (oldPart !== null) {
|
152
|
-
removePart(oldPart);
|
153
|
-
}
|
154
|
-
}
|
155
|
-
partListCache.set(containerPart, newParts);
|
156
|
-
keyListCache.set(containerPart, newKeys);
|
157
|
-
};
|
158
|
-
});
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2020 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/const {et:t}=litHtml._Σ,e=()=>document.createComment(""),u$1=(o,i,n)=>{var v;const l=o.A.parentNode,r=void 0===i?o.B:i.A;if(void 0===n){const i=l.insertBefore(e(),r),v=l.insertBefore(e(),r);n=new t(i,v,o,o.options);}else {const t=n.B.nextSibling,i=n.M!==o;if(i&&(null===(v=n.Q)||void 0===v||v.call(n,o),n.M=o),t!==r||i){let o=n.A;for(;o!==t;){const t=o.nextSibling;l.insertBefore(o,r),o=t;}}}return n},c$1=(o,t,i=o)=>(o.I(t,i),o),s={},f=(o,t=s)=>o.H=t,a=o=>o.H,m=o=>{var t;null===(t=o.P)||void 0===t||t.call(o,!1,!0);let i=o.A;const n=o.B.nextSibling;for(;i!==n;){const o=i.nextSibling;i.remove(),i=o;}};
|
159
8
|
|
160
|
-
|
9
|
+
/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2017 Google LLC
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
+
*/
|
14
|
+
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=directive.directive(class extends directive.Directive{constructor(e){if(super(e),e.type!==directive.PartType.CHILD)throw Error("repeat() can only be used in text expressions")}Mt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.Mt(e,s,t).values}update(s,[t,r,c]){var d;const p=a(s),{values:v,keys:a$1}=this.Mt(t,r,c);if(!p)return this.Pt=a$1,v;const h=null!==(d=this.Pt)&&void 0!==d?d:this.Pt=[],m$1=[];let x,y,j=0,k=p.length-1,w=0,b=v.length-1;for(;j<=k&&w<=b;)if(null===p[j])j++;else if(null===p[k])k--;else if(h[j]===a$1[w])m$1[w]=c$1(p[j],v[w]),j++,w++;else if(h[k]===a$1[b])m$1[b]=c$1(p[k],v[b]),k--,b--;else if(h[j]===a$1[b])m$1[b]=c$1(p[j],v[b]),u$1(s,m$1[b+1],p[j]),j++,b--;else if(h[k]===a$1[w])m$1[w]=c$1(p[k],v[w]),u$1(s,p[j],p[k]),k--,w++;else if(void 0===x&&(x=u(a$1,w,b),y=u(h,j,k)),x.has(h[j]))if(x.has(h[k])){const e=y.get(a$1[w]),t=void 0!==e?p[e]:null;if(null===t){const e=u$1(s,p[j]);c$1(e,v[w]),m$1[w]=e;}else m$1[w]=c$1(t,v[w]),u$1(s,p[j],t),p[e]=null;w++;}else m(p[k]),k--;else m(p[j]),j++;for(;w<=b;){const e=u$1(s,m$1[b+1]);c$1(e,v[w]),m$1[w++]=e;}for(;j<=k;){const e=p[j++];null!==e&&m(e);}return this.Pt=a$1,f(s,m$1),litHtml.noChange}});
|
161
15
|
|
162
|
-
|
16
|
+
exports.repeat = c;
|
17
|
+
|
18
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
163
19
|
|
164
20
|
});
|
@@ -1,56 +1,13 @@
|
|
1
|
-
sap.ui.define(['exports', '../lit-html', '../
|
1
|
+
sap.ui.define(['exports', '../lit-html', '../directive'], function (exports, litHtml, directive) { 'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
* The complete set of authors may be found at
|
9
|
-
* http://polymer.github.io/AUTHORS.txt
|
10
|
-
* The complete set of contributors may be found at
|
11
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
12
|
-
* Code distributed by Google as part of the polymer project is also
|
13
|
-
* subject to an additional IP rights grant found at
|
14
|
-
* http://polymer.github.io/PATENTS.txt
|
15
|
-
*/
|
16
|
-
const previousStylePropertyCache = new WeakMap();
|
17
|
-
const styleMap = directive.directive((styleInfo) => (part) => {
|
18
|
-
if (!(part instanceof parts.AttributePart) || (part instanceof parts.PropertyPart) ||
|
19
|
-
part.committer.name !== 'style' || part.committer.parts.length > 1) {
|
20
|
-
throw new Error('The `styleMap` directive must be used in the style attribute ' +
|
21
|
-
'and must be the only part in the attribute.');
|
22
|
-
}
|
23
|
-
const { committer } = part;
|
24
|
-
const { style } = committer.element;
|
25
|
-
let previousStyleProperties = previousStylePropertyCache.get(part);
|
26
|
-
if (previousStyleProperties === undefined) {
|
27
|
-
style.cssText = committer.strings.join(' ');
|
28
|
-
previousStylePropertyCache.set(part, previousStyleProperties = new Set());
|
29
|
-
}
|
30
|
-
previousStyleProperties.forEach((name) => {
|
31
|
-
if (!(name in styleInfo)) {
|
32
|
-
previousStyleProperties.delete(name);
|
33
|
-
if (name.indexOf('-') === -1) {
|
34
|
-
style[name] = null;
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
style.removeProperty(name);
|
38
|
-
}
|
39
|
-
}
|
40
|
-
});
|
41
|
-
for (const name in styleInfo) {
|
42
|
-
previousStyleProperties.add(name);
|
43
|
-
if (name.indexOf('-') === -1) {
|
44
|
-
style[name] = styleInfo[name];
|
45
|
-
}
|
46
|
-
else {
|
47
|
-
style.setProperty(name, styleInfo[name]);
|
48
|
-
}
|
49
|
-
}
|
50
|
-
});
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2018 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/const i=directive.directive(class extends directive.Directive{constructor(t){var e;if(super(t),t.type!==directive.PartType.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.St){this.St=new Set;for(const t in r)this.St.add(t);return this.render(r)}this.St.forEach((t=>{null==r[t]&&(this.St.delete(t),t.includes("-")?s.removeProperty(t):s[t]="");}));for(const t in r){const e=r[t];null!=e&&(this.St.add(t),t.includes("-")?s.setProperty(t,e):s[t]=e);}return litHtml.noChange}});
|
51
8
|
|
52
|
-
|
9
|
+
exports.styleMap = i;
|
53
10
|
|
54
|
-
|
11
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
55
12
|
|
56
13
|
});
|
@@ -1,37 +1,14 @@
|
|
1
|
-
sap.ui.define(['exports', '../
|
1
|
+
sap.ui.define(['exports', '../lit-html', '../directive'], function (exports, litHtml, directive) { 'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
* The complete set of authors may be found at
|
9
|
-
* http://polymer.github.io/AUTHORS.txt
|
10
|
-
* The complete set of contributors may be found at
|
11
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
12
|
-
* Code distributed by Google as part of the polymer project is also
|
13
|
-
* subject to an additional IP rights grant found at
|
14
|
-
* http://polymer.github.io/PATENTS.txt
|
15
|
-
*/
|
16
|
-
const previousValues = new WeakMap();
|
17
|
-
const unsafeHTML = directive.directive((value) => (part) => {
|
18
|
-
if (!(part instanceof parts.NodePart)) {
|
19
|
-
throw new Error('unsafeHTML can only be used in text bindings');
|
20
|
-
}
|
21
|
-
const previousValue = previousValues.get(part);
|
22
|
-
if (previousValue !== undefined && parts.isPrimitive(value) &&
|
23
|
-
value === previousValue.value && part.value === previousValue.fragment) {
|
24
|
-
return;
|
25
|
-
}
|
26
|
-
const template = document.createElement('template');
|
27
|
-
template.innerHTML = value;
|
28
|
-
const fragment = document.importNode(template.content, true);
|
29
|
-
part.setValue(fragment);
|
30
|
-
previousValues.set(part, { value, fragment });
|
31
|
-
});
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2017 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/class n extends directive.Directive{constructor(i){if(super(i),this.vt=litHtml.nothing,i.type!==directive.PartType.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===litHtml.nothing)return this.Vt=void 0,this.vt=r;if(r===litHtml.noChange)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.vt)return this.Vt;this.vt=r;const s=[r];return s.raw=s,this.Vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}n.directiveName="unsafeHTML",n.resultType=1;const o=directive.directive(n);
|
32
8
|
|
33
|
-
|
9
|
+
exports.UnsafeHTMLDirective = n;
|
10
|
+
exports.unsafeHTML = o;
|
34
11
|
|
35
|
-
|
12
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
36
13
|
|
37
14
|
});
|
@@ -1,54 +1,19 @@
|
|
1
|
-
sap.ui.define(['exports'
|
1
|
+
sap.ui.define(['exports'], function (exports) { 'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
* http://polymer.github.io/AUTHORS.txt
|
10
|
-
* The complete set of contributors may be found at
|
11
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
12
|
-
* Code distributed by Google as part of the polymer project is also
|
13
|
-
* subject to an additional IP rights grant found at
|
14
|
-
* http://polymer.github.io/PATENTS.txt
|
15
|
-
*/
|
16
|
-
if (typeof window !== 'undefined') {
|
17
|
-
(window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.4.1');
|
18
|
-
}
|
19
|
-
const html = (strings, ...values) => new templateResult.TemplateResult(strings, values, 'html', defaultTemplateProcessor.defaultTemplateProcessor);
|
20
|
-
const svg = (strings, ...values) => new templateResult.SVGTemplateResult(strings, values, 'svg', defaultTemplateProcessor.defaultTemplateProcessor);
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2017 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/
|
8
|
+
var t,i,s,e;const o=globalThis.trustedTypes,l=o?o.createPolicy("lit-html",{createHTML:t=>t}):void 0,n=`lit$${(Math.random()+"").slice(9)}$`,h="?"+n,r=`<${h}>`,u=document,c=(t="")=>u.createComment(t),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,v=Array.isArray,a=t=>{var i;return v(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])},f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,$=/'/g,g=/"/g,y=/^(?:script|style|textarea)$/i,b=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),T=b(1),x=b(2),w=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),P=new WeakMap,V=(t,i,s)=>{var e,o;const l=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let n=l._$litPart$;if(void 0===n){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;l._$litPart$=n=new C(i.insertBefore(c(),t),t,void 0,s);}return n.I(t),n},E=u.createTreeWalker(u,129,null,!1),M=(t,i)=>{const s=t.length-1,e=[];let o,h=2===i?"<svg>":"",u=f;for(let i=0;i<s;i++){const s=t[i];let l,c,d=-1,v=0;for(;v<s.length&&(u.lastIndex=v,c=u.exec(s),null!==c);)v=u.lastIndex,u===f?"!--"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(o=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=o?o:f,d=-1):void 0===c[1]?d=-2:(d=u.lastIndex-c[2].length,l=c[1],u=void 0===c[3]?p:'"'===c[3]?g:$):u===g||u===$?u=p:u===_||u===m?u=f:(u=p,o=void 0);const a=u===p&&t[i+1].startsWith("/>")?" ":"";h+=u===f?s+r:d>=0?(e.push(l),s.slice(0,d)+"$lit$"+s.slice(d)+n+a):s+n+(-2===d?(e.push(void 0),i):a);}const c=h+(t[s]||"<?>")+(2===i?"</svg>":"");return [void 0!==l?l.createHTML(c):c,e]};class N{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let l=0,r=0;const u=t.length-1,d=this.parts,[v,a]=M(t,i);if(this.el=N.createElement(v,s),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(e=E.nextNode())&&d.length<u;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(n)){const s=a[r++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+"$lit$").split(n),i=/([.?@])?(.*)/.exec(s);d.push({type:1,index:l,name:i[2],strings:t,ctor:"."===i[1]?I:"?"===i[1]?L:"@"===i[1]?R:H});}else d.push({type:6,index:l});}for(const i of t)e.removeAttribute(i);}if(y.test(e.tagName)){const t=e.textContent.split(n),i=t.length-1;if(i>0){e.textContent=o?o.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],c()),E.nextNode(),d.push({type:2,index:++l});e.append(t[i],c());}}}else if(8===e.nodeType)if(e.data===h)d.push({type:2,index:l});else {let t=-1;for(;-1!==(t=e.data.indexOf(n,t+1));)d.push({type:7,index:l}),t+=n.length-1;}l++;}}static createElement(t,i){const s=u.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){var o,l,n,h;if(i===w)return i;let r=void 0!==e?null===(o=s.Σi)||void 0===o?void 0:o[e]:s.Σo;const u=d(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(l=null==r?void 0:r.O)||void 0===l||l.call(r,!1),void 0===u?r=void 0:(r=new u(t),r.T(t,s,e)),void 0!==e?(null!==(n=(h=s).Σi)&&void 0!==n?n:h.Σi=[])[e]=r:s.Σo=r),void 0!==r&&(i=S(t,r.S(t,i.values),r,e)),i}class k{constructor(t,i){this.l=[],this.N=void 0,this.D=t,this.M=i;}u(t){var i;const{el:{content:s},parts:e}=this.D,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:u).importNode(s,!0);E.currentNode=o;let l=E.nextNode(),n=0,h=0,r=e[0];for(;void 0!==r;){if(n===r.index){let i;2===r.type?i=new C(l,l.nextSibling,this,t):1===r.type?i=new r.ctor(l,r.name,r.strings,this,t):6===r.type&&(i=new z(l,this,t)),this.l.push(i),r=e[++h];}n!==(null==r?void 0:r.index)&&(l=E.nextNode(),n++);}return o}v(t){let i=0;for(const s of this.l)void 0!==s&&(void 0!==s.strings?(s.I(t,s,i),i+=s.strings.length-2):s.I(t[i])),i++;}}class C{constructor(t,i,s,e){this.type=2,this.N=void 0,this.A=t,this.B=i,this.M=s,this.options=e;}setConnected(t){var i;null===(i=this.P)||void 0===i||i.call(this,t);}get parentNode(){return this.A.parentNode}get startNode(){return this.A}get endNode(){return this.B}I(t,i=this){t=S(this,t,i),d(t)?t===A||null==t||""===t?(this.H!==A&&this.R(),this.H=A):t!==this.H&&t!==w&&this.m(t):void 0!==t._$litType$?this._(t):void 0!==t.nodeType?this.$(t):a(t)?this.g(t):this.m(t);}k(t,i=this.B){return this.A.parentNode.insertBefore(t,i)}$(t){this.H!==t&&(this.R(),this.H=this.k(t));}m(t){const i=this.A.nextSibling;null!==i&&3===i.nodeType&&(null===this.B?null===i.nextSibling:i===this.B.previousSibling)?i.data=t:this.$(u.createTextNode(t)),this.H=t;}_(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this.C(t):(void 0===e.el&&(e.el=N.createElement(e.h,this.options)),e);if((null===(i=this.H)||void 0===i?void 0:i.D)===o)this.H.v(s);else {const t=new k(o,this),i=t.u(this.options);t.v(s),this.$(i),this.H=t;}}C(t){let i=P.get(t.strings);return void 0===i&&P.set(t.strings,i=new N(t)),i}g(t){v(this.H)||(this.H=[],this.R());const i=this.H;let s,e=0;for(const o of t)e===i.length?i.push(s=new C(this.k(c()),this.k(c()),this,this.options)):s=i[e],s.I(o),e++;e<i.length&&(this.R(s&&s.B.nextSibling,e),i.length=e);}R(t=this.A.nextSibling,i){var s;for(null===(s=this.P)||void 0===s||s.call(this,!1,!0,i);t&&t!==this.B;){const i=t.nextSibling;t.remove(),t=i;}}}class H{constructor(t,i,s,e,o){this.type=1,this.H=A,this.N=void 0,this.V=void 0,this.element=t,this.name=i,this.M=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this.H=Array(s.length-1).fill(A),this.strings=s):this.H=A;}get tagName(){return this.element.tagName}I(t,i=this,s,e){const o=this.strings;let l=!1;if(void 0===o)t=S(this,t,i,0),l=!d(t)||t!==this.H&&t!==w,l&&(this.H=t);else {const e=t;let n,h;for(t=o[0],n=0;n<o.length-1;n++)h=S(this,e[s+n],i,n),h===w&&(h=this.H[n]),l||(l=!d(h)||h!==this.H[n]),h===A?t=A:t!==A&&(t+=(null!=h?h:"")+o[n+1]),this.H[n]=h;}l&&!e&&this.W(t);}W(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"");}}class I extends H{constructor(){super(...arguments),this.type=3;}W(t){this.element[this.name]=t===A?void 0:t;}}class L extends H{constructor(){super(...arguments),this.type=4;}W(t){t&&t!==A?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name);}}class R extends H{constructor(){super(...arguments),this.type=5;}I(t,i=this){var s;if((t=null!==(s=S(this,t,i,0))&&void 0!==s?s:A)===w)return;const e=this.H,o=t===A&&e!==A||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,l=t!==A&&(e===A||o);o&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,t),this.H=t;}handleEvent(t){var i,s;"function"==typeof this.H?this.H.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this.H.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this.N=void 0,this.V=void 0,this.M=i,this.options=s;}I(t){S(this,t);}}const Z={Z:"$lit$",U:n,Y:h,q:1,X:M,tt:k,it:a,st:S,et:C,ot:H,nt:L,rt:R,lt:I,ht:z};null===(i=(t=globalThis).litHtmlPlatformSupport)||void 0===i||i.call(t,N,C),(null!==(s=(e=globalThis).litHtmlVersions)&&void 0!==s?s:e.litHtmlVersions=[]).push("2.0.0-rc.3");
|
21
9
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
exports.removeNodes = dom.removeNodes;
|
29
|
-
exports.reparentNodes = dom.reparentNodes;
|
30
|
-
exports.noChange = part.noChange;
|
31
|
-
exports.nothing = part.nothing;
|
32
|
-
exports.AttributeCommitter = parts.AttributeCommitter;
|
33
|
-
exports.AttributePart = parts.AttributePart;
|
34
|
-
exports.BooleanAttributePart = parts.BooleanAttributePart;
|
35
|
-
exports.EventPart = parts.EventPart;
|
36
|
-
exports.NodePart = parts.NodePart;
|
37
|
-
exports.PropertyCommitter = parts.PropertyCommitter;
|
38
|
-
exports.PropertyPart = parts.PropertyPart;
|
39
|
-
exports.isIterable = parts.isIterable;
|
40
|
-
exports.isPrimitive = parts.isPrimitive;
|
41
|
-
exports.parts = render.parts;
|
42
|
-
exports.render = render.render;
|
43
|
-
exports.templateCaches = templateFactory.templateCaches;
|
44
|
-
exports.templateFactory = templateFactory.templateFactory;
|
45
|
-
exports.TemplateInstance = templateInstance.TemplateInstance;
|
46
|
-
exports.Template = template.Template;
|
47
|
-
exports.createMarker = template.createMarker;
|
48
|
-
exports.isTemplatePartActive = template.isTemplatePartActive;
|
49
|
-
exports.html = html;
|
50
|
-
exports.svg = svg;
|
10
|
+
exports._Σ = Z;
|
11
|
+
exports.html = T;
|
12
|
+
exports.noChange = w;
|
13
|
+
exports.nothing = A;
|
14
|
+
exports.render = V;
|
15
|
+
exports.svg = x;
|
51
16
|
|
52
|
-
|
17
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
53
18
|
|
54
19
|
});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
sap.ui.define(['exports', './lit-html'], function (exports, litHtml) { 'use strict';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2020 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/const o=t=>({It:t}),r=(t,...e)=>({It:e.reduce(((e,o,r)=>e+(t=>{if(void 0!==t.It)return t.It;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+t[r+1]),t[0])}),i=new Map,a=t=>(e,...o)=>{var r;const a=o.length;let l,s;const n=[],u=[];let c,$=0,v=!1;for(;$<a;){for(c=e[$];$<a&&void 0!==(s=o[$],l=null===(r=s)||void 0===r?void 0:r.It);)c+=l+e[++$],v=!0;u.push(s),n.push(c),$++;}if($===a&&n.push(e[a]),v){const t=n.join("$$lit$$");void 0===(e=i.get(t))&&i.set(t,e=n),o=u;}return t(e,...o)},l=a(litHtml.html),s=a(litHtml.svg);
|
8
|
+
|
9
|
+
exports.html = l;
|
10
|
+
exports.literal = r;
|
11
|
+
exports.svg = s;
|
12
|
+
exports.unsafeStatic = o;
|
13
|
+
exports.withStatic = a;
|
14
|
+
|
15
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
16
|
+
|
17
|
+
});
|
@@ -2,13 +2,13 @@ sap.ui.define(['require', 'sap/ui/webc/common/thirdparty/base/asset-registries/T
|
|
2
2
|
|
3
3
|
const loadThemeProperties = async (themeName) => {
|
4
4
|
switch (themeName) {
|
5
|
-
case "sap_belize": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
6
|
-
case "sap_belize_hcb": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
7
|
-
case "sap_belize_hcw": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
8
|
-
case "sap_fiori_3": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
9
|
-
case "sap_fiori_3_dark": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
10
|
-
case "sap_fiori_3_hcb": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
11
|
-
case "sap_fiori_3_hcw": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-
|
5
|
+
case "sap_belize": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-4c3222f0'], resolve, reject) })).default;
|
6
|
+
case "sap_belize_hcb": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-10d6a87c'], resolve, reject) })).default;
|
7
|
+
case "sap_belize_hcw": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-f92d2591'], resolve, reject) })).default;
|
8
|
+
case "sap_fiori_3": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-33240f21'], resolve, reject) })).default;
|
9
|
+
case "sap_fiori_3_dark": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-abf4cf1a'], resolve, reject) })).default;
|
10
|
+
case "sap_fiori_3_hcb": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-17ba1024'], resolve, reject) })).default;
|
11
|
+
case "sap_fiori_3_hcw": return (await new Promise(function (resolve, reject) { require(['../../parameters-bundle.css-354df2bd'], resolve, reject) })).default;
|
12
12
|
default: throw "unknown theme"
|
13
13
|
}
|
14
14
|
};
|