@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.
Files changed (73) hide show
  1. package/.reuse/dep5 +6 -11
  2. package/THIRDPARTY.txt +10 -16
  3. package/package.json +2 -2
  4. package/src/sap/ui/webc/common/.library +1 -1
  5. package/src/sap/ui/webc/common/WebComponent.js +42 -21
  6. package/src/sap/ui/webc/common/WebComponentMetadata.js +1 -1
  7. package/src/sap/ui/webc/common/WebComponentRenderer.js +3 -3
  8. package/src/sap/ui/webc/common/library.js +3 -3
  9. package/src/sap/ui/webc/common/thirdparty/base/Device.js +2 -0
  10. package/src/sap/ui/webc/common/thirdparty/base/EventProvider.js +16 -24
  11. package/src/sap/ui/webc/common/thirdparty/base/FontFace.js +4 -4
  12. package/src/sap/ui/webc/common/thirdparty/base/Keys.js +10 -0
  13. package/src/sap/ui/webc/common/thirdparty/base/StaticAreaItem.js +10 -1
  14. package/src/sap/ui/webc/common/thirdparty/base/SystemCSSVars.js +3 -3
  15. package/src/sap/ui/webc/common/thirdparty/base/UI5Element.js +25 -31
  16. package/src/sap/ui/webc/common/thirdparty/base/UI5ElementMetadata.js +1 -1
  17. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Icons.js +5 -0
  18. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Illustrations.js +23 -0
  19. package/src/sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation.js +38 -0
  20. package/src/sap/ui/webc/common/thirdparty/base/renderer/LitRenderer.js +20 -18
  21. package/src/sap/ui/webc/common/thirdparty/base/sap/base/Log.js +253 -0
  22. package/src/sap/ui/webc/common/thirdparty/base/sap/base/assert.js +16 -0
  23. package/src/sap/ui/webc/common/thirdparty/base/sap/base/util/now.js +12 -0
  24. package/src/sap/ui/webc/common/thirdparty/base/types/DataType.js +9 -0
  25. package/src/sap/ui/webc/common/thirdparty/base/types/Float.js +3 -0
  26. package/src/sap/ui/webc/common/thirdparty/base/types/Integer.js +3 -0
  27. package/src/sap/ui/webc/common/thirdparty/base/updateShadowRoot.js +1 -1
  28. package/src/sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper.js +4 -4
  29. package/src/sap/ui/webc/common/thirdparty/base/util/InvisibleMessage.js +21 -14
  30. package/src/sap/ui/webc/common/thirdparty/base/util/PopupUtils.js +1 -1
  31. package/src/sap/ui/webc/common/thirdparty/lit-html/directive.js +16 -0
  32. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/class-map.js +8 -80
  33. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/if-defined.js +13 -0
  34. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/repeat.js +15 -159
  35. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/style-map.js +8 -51
  36. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/unsafe-html.js +9 -32
  37. package/src/sap/ui/webc/common/thirdparty/lit-html/lit-html.js +14 -49
  38. package/src/sap/ui/webc/common/thirdparty/lit-html/static.js +17 -0
  39. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/json-imports/Themes.js +7 -7
  40. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  41. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  42. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  43. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  44. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  45. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  46. package/src/sap/ui/webc/common/thirdparty/theme-base/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  47. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-10d6a87c.js +9 -0
  48. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-17ba1024.js +9 -0
  49. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-33240f21.js +9 -0
  50. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-354df2bd.js +9 -0
  51. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-4c3222f0.js +9 -0
  52. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-abf4cf1a.js +9 -0
  53. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-f92d2591.js +9 -0
  54. package/ui5.yaml +1 -1
  55. package/src/sap/ui/webc/common/thirdparty/base/renderer/ifDefined.js +0 -18
  56. package/src/sap/ui/webc/common/thirdparty/base/renderer/scopeHTML.js +0 -23
  57. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/default-template-processor.js +0 -43
  58. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/directive.js +0 -31
  59. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/dom.js +0 -41
  60. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/part.js +0 -24
  61. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/parts.js +0 -374
  62. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/render.js +0 -33
  63. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template-factory.js +0 -45
  64. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template-instance.js +0 -88
  65. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template-result.js +0 -77
  66. package/src/sap/ui/webc/common/thirdparty/lit-html/lib/template.js +0 -149
  67. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-0ad70668.js +0 -9
  68. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-0f7f1dcc.js +0 -9
  69. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-4bf24a54.js +0 -9
  70. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-69006d4e.js +0 -9
  71. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-819624f1.js +0 -9
  72. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-97e70e91.js +0 -9
  73. package/src/sap/ui/webc/common/thirdparty/theme-base/parameters-bundle.css-c5f25513.js +0 -9
@@ -1,4 +1,4 @@
1
- sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventProvider', './util/getSingletonElementInstance', './StaticAreaItem', './updateShadowRoot', './Render', './CustomElementsRegistry', './DOMObserver', './config/NoConflict', './locale/getEffectiveDir', './types/Integer', './types/Float', './util/StringHelper', './util/isValidPropertyName', './util/SlotsHelper', './util/arraysAreEqual', './util/getClassCopy', './locale/RTLAwareRegistry', './isLegacyBrowser'], function (merge, Boot, UI5ElementMetadata, EventProvider, getSingletonElementInstance, StaticAreaItem, updateShadowRoot, Render, CustomElementsRegistry, DOMObserver, NoConflict, getEffectiveDir, Integer, Float, StringHelper, isValidPropertyName, SlotsHelper, arraysAreEqual, getClassCopy, RTLAwareRegistry, isLegacyBrowser) { 'use strict';
1
+ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventProvider', './util/getSingletonElementInstance', './StaticAreaItem', './updateShadowRoot', './Render', './CustomElementsRegistry', './DOMObserver', './config/NoConflict', './locale/getEffectiveDir', './types/DataType', './util/StringHelper', './util/isValidPropertyName', './util/isDescendantOf', './util/SlotsHelper', './util/arraysAreEqual', './util/getClassCopy', './locale/RTLAwareRegistry', './isLegacyBrowser'], function (merge, Boot, UI5ElementMetadata, EventProvider, getSingletonElementInstance, StaticAreaItem, updateShadowRoot, Render, CustomElementsRegistry, DOMObserver, NoConflict, getEffectiveDir, DataType, StringHelper, isValidPropertyName, isDescendantOf, SlotsHelper, arraysAreEqual, getClassCopy, RTLAwareRegistry, isLegacyBrowser) { 'use strict';
2
2
 
3
3
  let autoId = 0;
4
4
  const elementTimeouts = new Map();
@@ -10,7 +10,7 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
10
10
  this.onInvalidation(changeInfo);
11
11
  this._changedState.push(changeInfo);
12
12
  Render.renderDeferred(this);
13
- this._eventProvider.fireEvent("change", { ...changeInfo, target: this });
13
+ this._eventProvider.fireEvent("invalidate", { ...changeInfo, target: this });
14
14
  }
15
15
  class UI5Element extends HTMLElement {
16
16
  constructor() {
@@ -41,16 +41,12 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
41
41
  }
42
42
  async connectedCallback() {
43
43
  this.setAttribute(this.constructor.getMetadata().getPureTag(), "");
44
- const needsShadowDOM = this.constructor._needsShadowDOM();
45
44
  const slotsAreManaged = this.constructor.getMetadata().slotsAreManaged();
46
45
  this._inDOM = true;
47
46
  if (slotsAreManaged) {
48
47
  this._startObservingDOMChildren();
49
48
  await this._processChildren();
50
49
  }
51
- if (needsShadowDOM && !this.shadowRoot) {
52
- await Promise.resolve();
53
- }
54
50
  if (!this._inDOM) {
55
51
  return;
56
52
  }
@@ -62,19 +58,16 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
62
58
  }
63
59
  }
64
60
  disconnectedCallback() {
65
- const needsShadowDOM = this.constructor._needsShadowDOM();
66
61
  const slotsAreManaged = this.constructor.getMetadata().slotsAreManaged();
67
62
  this._inDOM = false;
68
63
  if (slotsAreManaged) {
69
64
  this._stopObservingDOMChildren();
70
65
  }
71
- if (needsShadowDOM) {
72
- if (this._fullyConnected) {
73
- if (typeof this.onExitDOM === "function") {
74
- this.onExitDOM();
75
- }
76
- this._fullyConnected = false;
66
+ if (this._fullyConnected) {
67
+ if (typeof this.onExitDOM === "function") {
68
+ this.onExitDOM();
77
69
  }
70
+ this._fullyConnected = false;
78
71
  }
79
72
  if (this.staticAreaItem && this.staticAreaItem.parentElement) {
80
73
  this.staticAreaItem.parentElement.removeChild(this.staticAreaItem);
@@ -149,7 +142,7 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
149
142
  }
150
143
  child = this.constructor.getMetadata().constructor.validateSlotValue(child, slotData);
151
144
  if (child.isUI5Element && slotData.invalidateOnChildChange) {
152
- child._attachChange(this._getChildChangeListener(slotName));
145
+ child.attachInvalidate(this._getChildChangeListener(slotName));
153
146
  }
154
147
  if (SlotsHelper.isSlot(child)) {
155
148
  this._attachSlotChange(child, slotName);
@@ -190,7 +183,7 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
190
183
  const children = this._state[propertyName];
191
184
  children.forEach(child => {
192
185
  if (child && child.isUI5Element) {
193
- child._detachChange(this._getChildChangeListener(slotName));
186
+ child.detachInvalidate(this._getChildChangeListener(slotName));
194
187
  }
195
188
  if (SlotsHelper.isSlot(child)) {
196
189
  this._detachSlotChange(child, slotName);
@@ -198,11 +191,11 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
198
191
  });
199
192
  this._state[propertyName] = [];
200
193
  }
201
- _attachChange(callback) {
202
- this._eventProvider.attachEvent("change", callback);
194
+ attachInvalidate(callback) {
195
+ this._eventProvider.attachEvent("invalidate", callback);
203
196
  }
204
- _detachChange(callback) {
205
- this._eventProvider.detachEvent("change", callback);
197
+ detachInvalidate(callback) {
198
+ this._eventProvider.detachEvent("invalidate", callback);
206
199
  }
207
200
  _onChildChange(slotName, childChangeInfo) {
208
201
  if (!this.constructor.getMetadata().shouldInvalidateOnChildChange(slotName, childChangeInfo.type, childChangeInfo.name)) {
@@ -223,12 +216,8 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
223
216
  const propertyTypeClass = properties[nameInCamelCase].type;
224
217
  if (propertyTypeClass === Boolean) {
225
218
  newValue = newValue !== null;
226
- }
227
- if (propertyTypeClass === Integer) {
228
- newValue = parseInt(newValue);
229
- }
230
- if (propertyTypeClass === Float) {
231
- newValue = parseFloat(newValue);
219
+ } else if (isDescendantOf(propertyTypeClass, DataType)) {
220
+ newValue = propertyTypeClass.attributeToProperty(newValue);
232
221
  }
233
222
  this[nameInCamelCase] = newValue;
234
223
  }
@@ -237,19 +226,22 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
237
226
  if (!this.constructor.getMetadata().hasAttribute(name)) {
238
227
  return;
239
228
  }
240
- if (typeof newValue === "object") {
241
- return;
242
- }
229
+ const properties = this.constructor.getMetadata().getProperties();
230
+ const propertyTypeClass = properties[name].type;
243
231
  const attrName = StringHelper.camelToKebabCase(name);
244
232
  const attrValue = this.getAttribute(attrName);
245
- if (typeof newValue === "boolean") {
233
+ if (propertyTypeClass === Boolean) {
246
234
  if (newValue === true && attrValue === null) {
247
235
  this.setAttribute(attrName, "");
248
236
  } else if (newValue === false && attrValue !== null) {
249
237
  this.removeAttribute(attrName);
250
238
  }
251
- } else if (attrValue !== newValue) {
252
- this.setAttribute(attrName, newValue);
239
+ } else if (isDescendantOf(propertyTypeClass, DataType)) {
240
+ this.setAttribute(attrName, propertyTypeClass.propertyToAttribute(newValue));
241
+ } else if (typeof newValue !== "object") {
242
+ if (attrValue !== newValue) {
243
+ this.setAttribute(attrName, newValue);
244
+ }
253
245
  }
254
246
  }
255
247
  _upgradeProperty(prop) {
@@ -465,6 +457,8 @@ sap.ui.define(['./thirdparty/merge', './Boot', './UI5ElementMetadata', './EventP
465
457
  const oldState = this._state[prop];
466
458
  if (propData.multiple && propData.compareValues) {
467
459
  isDifferent = !arraysAreEqual(oldState, value);
460
+ } else if (isDescendantOf(propData.type, DataType)) {
461
+ isDifferent = !propData.type.valuesAreEqual(oldState, value);
468
462
  } else {
469
463
  isDifferent = oldState !== value;
470
464
  }
@@ -73,7 +73,7 @@ sap.ui.define(['./types/DataType', './util/isDescendantOf', './util/StringHelper
73
73
  }
74
74
  hasAttribute(propName) {
75
75
  const propData = this.getProperties()[propName];
76
- return propData.type !== Object && !propData.noAttribute;
76
+ return propData.type !== Object && !propData.noAttribute && !propData.multiple;
77
77
  }
78
78
  getPropertiesList() {
79
79
  return Object.keys(this.getProperties());
@@ -55,6 +55,10 @@ sap.ui.define(['exports', '../getSharedResource'], function (exports, getSharedR
55
55
  if (collection === "SAP-icons-TNT") {
56
56
  collection = "tnt";
57
57
  }
58
+ if (collection === "BusinessSuiteInAppSymbols") {
59
+ collection = "business-suite";
60
+ name = name.replace("icon-", "");
61
+ }
58
62
  const registryKey = `${collection}/${name}`;
59
63
  return { name, collection, registryKey };
60
64
  };
@@ -81,6 +85,7 @@ sap.ui.define(['exports', '../getSharedResource'], function (exports, getSharedR
81
85
  const _getRegisteredNames = async () => {
82
86
  await getIconData("edit");
83
87
  await getIconData("tnt/arrow");
88
+ await getIconData("business-suite/3d");
84
89
  return Array.from(registry.keys());
85
90
  };
86
91
 
@@ -0,0 +1,23 @@
1
+ sap.ui.define(['exports', '../getSharedResource'], function (exports, getSharedResource) { 'use strict';
2
+
3
+ const registry = getSharedResource("SVGIllustration.registry", new Map());
4
+ const ILLUSTRATION_NOT_FOUND = "ILLUSTRATION_NOT_FOUND";
5
+ const registerIllustration = (name, { dialogSvg, sceneSvg, spotSvg, title, subtitle } = {}) => {
6
+ registry.set(name, {
7
+ dialogSvg,
8
+ sceneSvg,
9
+ spotSvg,
10
+ title,
11
+ subtitle,
12
+ });
13
+ };
14
+ const getIllustrationDataSync = nameProp => {
15
+ return registry.get(nameProp) || ILLUSTRATION_NOT_FOUND;
16
+ };
17
+
18
+ exports.getIllustrationDataSync = getIllustrationDataSync;
19
+ exports.registerIllustration = registerIllustration;
20
+
21
+ Object.defineProperty(exports, '__esModule', { value: true });
22
+
23
+ });
@@ -25,6 +25,7 @@ sap.ui.define(['../Keys', '../util/getActiveElement', '../types/NavigationMode',
25
25
  this._behavior = options.behavior || ItemNavigationBehavior.Static;
26
26
  this._navigationMode = options.navigationMode || NavigationMode.Auto;
27
27
  this._affectedPropertiesNames = options.affectedPropertiesNames || [];
28
+ this._skipItemsSize = options.skipItemsSize || null;
28
29
  }
29
30
  setCurrentItem(current) {
30
31
  const currentItemIndex = this._getItems().indexOf(current);
@@ -61,6 +62,10 @@ sap.ui.define(['../Keys', '../util/getActiveElement', '../types/NavigationMode',
61
62
  this._handleHome();
62
63
  } else if (Keys.isEnd(event)) {
63
64
  this._handleEnd();
65
+ } else if (Keys.isPageUp(event)) {
66
+ this._handlePageUp();
67
+ } else if (Keys.isPageDown(event)) {
68
+ this._handlePageDown();
64
69
  } else {
65
70
  return;
66
71
  }
@@ -129,6 +134,39 @@ sap.ui.define(['../Keys', '../util/getActiveElement', '../types/NavigationMode',
129
134
  const homeEndRange = this._rowSize > 1 ? this._rowSize : this._getItems().length;
130
135
  this._currentIndex += (homeEndRange - 1 - this._currentIndex % homeEndRange);
131
136
  }
137
+ _handlePageUp() {
138
+ if (this._rowSize > 1) {
139
+ return;
140
+ }
141
+ this._handlePageUpFlat();
142
+ }
143
+ _handlePageDown() {
144
+ if (this._rowSize > 1) {
145
+ return;
146
+ }
147
+ this._handlePageDownFlat();
148
+ }
149
+ _handlePageUpFlat() {
150
+ if (this._skipItemsSize === null) {
151
+ this._currentIndex -= this._currentIndex;
152
+ }
153
+ if (this._currentIndex + 1 > this._skipItemsSize) {
154
+ this._currentIndex -= this._skipItemsSize;
155
+ } else {
156
+ this._currentIndex -= this._currentIndex;
157
+ }
158
+ }
159
+ _handlePageDownFlat() {
160
+ if (this._skipItemsSize === null) {
161
+ this._currentIndex = this._getItems().length - 1;
162
+ }
163
+ const currentToEndRange = this._getItems().length - this._currentIndex - 1;
164
+ if (currentToEndRange > this._skipItemsSize) {
165
+ this._currentIndex += this._skipItemsSize;
166
+ } else {
167
+ this._currentIndex = this._getItems().length - 1;
168
+ }
169
+ }
132
170
  _applyTabIndex() {
133
171
  const items = this._getItems();
134
172
  for (let i = 0; i < items.length; i++) {
@@ -1,31 +1,33 @@
1
- sap.ui.define(['exports', 'sap/ui/webc/common/thirdparty/lit-html/lit-html', './scopeHTML', 'sap/ui/webc/common/thirdparty/lit-html/directives/repeat', 'sap/ui/webc/common/thirdparty/lit-html/directives/class-map', 'sap/ui/webc/common/thirdparty/lit-html/directives/style-map', 'sap/ui/webc/common/thirdparty/lit-html/directives/unsafe-html'], function (exports, litHtml, scopeHTML, repeat, classMap, styleMap, unsafeHtml) { 'use strict';
1
+ sap.ui.define(['exports', 'sap/ui/webc/common/thirdparty/lit-html/static', 'sap/ui/webc/common/thirdparty/lit-html/directives/repeat', 'sap/ui/webc/common/thirdparty/lit-html/directives/class-map', 'sap/ui/webc/common/thirdparty/lit-html/directives/style-map', 'sap/ui/webc/common/thirdparty/lit-html/directives/if-defined', 'sap/ui/webc/common/thirdparty/lit-html/directives/unsafe-html'], function (exports, _static, repeat, classMap, styleMap, ifDefined, unsafeHtml) { 'use strict';
2
2
 
3
- let tags;
4
- let suffix;
5
- const setTags = t => {
6
- tags = t;
7
- };
8
- const setSuffix = s => {
9
- suffix = s;
10
- };
11
- const litRender = (templateResult, domNode, styles, { eventContext } = {}) => {
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,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);}}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");
9
+
10
+ const litRender = (templateResult, domNode, styles, { host } = {}) => {
12
11
  if (styles) {
13
- templateResult = litHtml.html`<style>${styles}</style>${templateResult}`;
12
+ templateResult = _static.html`<style>${styles}</style>${templateResult}`;
14
13
  }
15
- litHtml.render(templateResult, domNode, { eventContext });
14
+ V(templateResult, domNode, { host });
15
+ };
16
+ const scopeTag = (tag, tags, suffix) => {
17
+ const resultTag = suffix && (tags || []).includes(tag) ? `${tag}-${suffix}` : tag;
18
+ return _static.unsafeStatic(resultTag);
16
19
  };
17
- const scopedHtml = (strings, ...values) => litHtml.html(scopeHTML(strings, tags, suffix), ...values);
18
- const scopedSvg = (strings, ...values) => litHtml.svg(scopeHTML(strings, tags, suffix), ...values);
19
20
 
21
+ exports.html = _static.html;
22
+ exports.svg = _static.svg;
23
+ exports.unsafeStatic = _static.unsafeStatic;
20
24
  exports.repeat = repeat.repeat;
21
25
  exports.classMap = classMap.classMap;
22
26
  exports.styleMap = styleMap.styleMap;
27
+ exports.ifDefined = ifDefined.ifDefined;
23
28
  exports.unsafeHTML = unsafeHtml.unsafeHTML;
24
29
  exports.default = litRender;
25
- exports.html = scopedHtml;
26
- exports.setSuffix = setSuffix;
27
- exports.setTags = setTags;
28
- exports.svg = scopedSvg;
30
+ exports.scopeTag = scopeTag;
29
31
 
30
32
  Object.defineProperty(exports, '__esModule', { value: true });
31
33
 
@@ -0,0 +1,253 @@
1
+ sap.ui.define(['./util/now'], function (now) { 'use strict';
2
+
3
+ var Log = {};
4
+ Log.Level = {
5
+ NONE: -1,
6
+ FATAL: 0,
7
+ ERROR: 1,
8
+ WARNING: 2,
9
+ INFO: 3,
10
+ DEBUG: 4,
11
+ TRACE: 5,
12
+ ALL: 5 + 1
13
+ };
14
+ var sDefaultComponent, aLog = [], mMaxLevel = { '': Log.Level.ERROR }, iLogEntriesLimit = 3000, oListener = null, bLogSupportInfo = false;
15
+ function pad0(i, w) {
16
+ return ('000' + String(i)).slice(-w);
17
+ }
18
+ function level(sComponent) {
19
+ return !sComponent || isNaN(mMaxLevel[sComponent]) ? mMaxLevel[''] : mMaxLevel[sComponent];
20
+ }
21
+ function discardLogEntries() {
22
+ var iLogLength = aLog.length;
23
+ if (iLogLength) {
24
+ var iEntriesToKeep = Math.min(iLogLength, Math.floor(iLogEntriesLimit * 0.7));
25
+ if (oListener) {
26
+ oListener.onDiscardLogEntries(aLog.slice(0, iLogLength - iEntriesToKeep));
27
+ }
28
+ if (iEntriesToKeep) {
29
+ aLog = aLog.slice(-iEntriesToKeep, iLogLength);
30
+ } else {
31
+ aLog = [];
32
+ }
33
+ }
34
+ }
35
+ function getLogEntryListenerInstance() {
36
+ if (!oListener) {
37
+ oListener = {
38
+ listeners: [],
39
+ onLogEntry: function (oLogEntry) {
40
+ for (var i = 0; i < oListener.listeners.length; i++) {
41
+ if (oListener.listeners[i].onLogEntry) {
42
+ oListener.listeners[i].onLogEntry(oLogEntry);
43
+ }
44
+ }
45
+ },
46
+ onDiscardLogEntries: function (aDiscardedLogEntries) {
47
+ for (var i = 0; i < oListener.listeners.length; i++) {
48
+ if (oListener.listeners[i].onDiscardLogEntries) {
49
+ oListener.listeners[i].onDiscardLogEntries(aDiscardedLogEntries);
50
+ }
51
+ }
52
+ },
53
+ attach: function (oLog, oLstnr) {
54
+ if (oLstnr) {
55
+ oListener.listeners.push(oLstnr);
56
+ if (oLstnr.onAttachToLog) {
57
+ oLstnr.onAttachToLog(oLog);
58
+ }
59
+ }
60
+ },
61
+ detach: function (oLog, oLstnr) {
62
+ for (var i = 0; i < oListener.listeners.length; i++) {
63
+ if (oListener.listeners[i] === oLstnr) {
64
+ if (oLstnr.onDetachFromLog) {
65
+ oLstnr.onDetachFromLog(oLog);
66
+ }
67
+ oListener.listeners.splice(i, 1);
68
+ return;
69
+ }
70
+ }
71
+ }
72
+ };
73
+ }
74
+ return oListener;
75
+ }
76
+ Log.fatal = function (sMessage, sDetails, sComponent, fnSupportInfo) {
77
+ log(Log.Level.FATAL, sMessage, sDetails, sComponent, fnSupportInfo);
78
+ };
79
+ Log.error = function (sMessage, sDetails, sComponent, fnSupportInfo) {
80
+ log(Log.Level.ERROR, sMessage, sDetails, sComponent, fnSupportInfo);
81
+ };
82
+ Log.warning = function (sMessage, sDetails, sComponent, fnSupportInfo) {
83
+ log(Log.Level.WARNING, sMessage, sDetails, sComponent, fnSupportInfo);
84
+ };
85
+ Log.info = function (sMessage, sDetails, sComponent, fnSupportInfo) {
86
+ log(Log.Level.INFO, sMessage, sDetails, sComponent, fnSupportInfo);
87
+ };
88
+ Log.debug = function (sMessage, sDetails, sComponent, fnSupportInfo) {
89
+ log(Log.Level.DEBUG, sMessage, sDetails, sComponent, fnSupportInfo);
90
+ };
91
+ Log.trace = function (sMessage, sDetails, sComponent, fnSupportInfo) {
92
+ log(Log.Level.TRACE, sMessage, sDetails, sComponent, fnSupportInfo);
93
+ };
94
+ Log.setLevel = function (iLogLevel, sComponent, _bDefault) {
95
+ sComponent = sComponent || sDefaultComponent || '';
96
+ if (!_bDefault || mMaxLevel[sComponent] == null) {
97
+ mMaxLevel[sComponent] = iLogLevel;
98
+ var sLogLevel;
99
+ Object.keys(Log.Level).forEach(function (sLevel) {
100
+ if (Log.Level[sLevel] === iLogLevel) {
101
+ sLogLevel = sLevel;
102
+ }
103
+ });
104
+ log(Log.Level.INFO, 'Changing log level ' + (sComponent ? 'for \'' + sComponent + '\' ' : '') + 'to ' + sLogLevel, '', 'sap.base.log');
105
+ }
106
+ };
107
+ Log.getLevel = function (sComponent) {
108
+ return level(sComponent || sDefaultComponent);
109
+ };
110
+ Log.isLoggable = function (iLevel, sComponent) {
111
+ return (iLevel == null ? Log.Level.DEBUG : iLevel) <= level(sComponent || sDefaultComponent);
112
+ };
113
+ Log.logSupportInfo = function (bEnabled) {
114
+ bLogSupportInfo = bEnabled;
115
+ };
116
+ function log(iLevel, sMessage, sDetails, sComponent, fnSupportInfo) {
117
+ if (!fnSupportInfo && !sComponent && typeof sDetails === 'function') {
118
+ fnSupportInfo = sDetails;
119
+ sDetails = '';
120
+ }
121
+ if (!fnSupportInfo && typeof sComponent === 'function') {
122
+ fnSupportInfo = sComponent;
123
+ sComponent = '';
124
+ }
125
+ sComponent = sComponent || sDefaultComponent;
126
+ if (iLevel <= level(sComponent)) {
127
+ var fNow = now(), oNow = new Date(fNow), iMicroSeconds = Math.floor((fNow - Math.floor(fNow)) * 1000), oLogEntry = {
128
+ time: pad0(oNow.getHours(), 2) + ':' + pad0(oNow.getMinutes(), 2) + ':' + pad0(oNow.getSeconds(), 2) + '.' + pad0(oNow.getMilliseconds(), 3) + pad0(iMicroSeconds, 3),
129
+ date: pad0(oNow.getFullYear(), 4) + '-' + pad0(oNow.getMonth() + 1, 2) + '-' + pad0(oNow.getDate(), 2),
130
+ timestamp: fNow,
131
+ level: iLevel,
132
+ message: String(sMessage || ''),
133
+ details: String(sDetails || ''),
134
+ component: String(sComponent || '')
135
+ };
136
+ if (bLogSupportInfo && typeof fnSupportInfo === 'function') {
137
+ oLogEntry.supportInfo = fnSupportInfo();
138
+ }
139
+ if (iLogEntriesLimit) {
140
+ if (aLog.length >= iLogEntriesLimit) {
141
+ discardLogEntries();
142
+ }
143
+ aLog.push(oLogEntry);
144
+ }
145
+ if (oListener) {
146
+ oListener.onLogEntry(oLogEntry);
147
+ }
148
+ if (console) {
149
+ var isDetailsError = sDetails instanceof Error, logText = oLogEntry.date + ' ' + oLogEntry.time + ' ' + oLogEntry.message + ' - ' + oLogEntry.details + ' ' + oLogEntry.component;
150
+ switch (iLevel) {
151
+ case Log.Level.FATAL:
152
+ case Log.Level.ERROR:
153
+ isDetailsError ? console.error(logText, '\n', sDetails) : console.error(logText);
154
+ break;
155
+ case Log.Level.WARNING:
156
+ isDetailsError ? console.warn(logText, '\n', sDetails) : console.warn(logText);
157
+ break;
158
+ case Log.Level.INFO:
159
+ if (console.info) {
160
+ isDetailsError ? console.info(logText, '\n', sDetails) : console.info(logText);
161
+ } else {
162
+ isDetailsError ? console.log(logText, '\n', sDetails) : console.log(logText);
163
+ }
164
+ break;
165
+ case Log.Level.DEBUG:
166
+ if (console.debug) {
167
+ isDetailsError ? console.debug(logText, '\n', sDetails) : console.debug(logText);
168
+ } else {
169
+ isDetailsError ? console.log(logText, '\n', sDetails) : console.log(logText);
170
+ }
171
+ break;
172
+ case Log.Level.TRACE:
173
+ if (console.trace) {
174
+ isDetailsError ? console.trace(logText, '\n', sDetails) : console.trace(logText);
175
+ } else {
176
+ isDetailsError ? console.log(logText, '\n', sDetails) : console.log(logText);
177
+ }
178
+ break;
179
+ }
180
+ if (console.info && oLogEntry.supportInfo) {
181
+ console.info(oLogEntry.supportInfo);
182
+ }
183
+ }
184
+ return oLogEntry;
185
+ }
186
+ }
187
+ Log.getLogEntries = function () {
188
+ return aLog.slice();
189
+ };
190
+ Log.getLogEntriesLimit = function () {
191
+ return iLogEntriesLimit;
192
+ };
193
+ Log.setLogEntriesLimit = function (iLimit) {
194
+ if (iLimit < 0) {
195
+ throw new Error('The log entries limit needs to be greater than or equal to 0!');
196
+ }
197
+ iLogEntriesLimit = iLimit;
198
+ if (aLog.length >= iLogEntriesLimit) {
199
+ discardLogEntries();
200
+ }
201
+ };
202
+ Log.addLogListener = function (oListener) {
203
+ getLogEntryListenerInstance().attach(this, oListener);
204
+ };
205
+ Log.removeLogListener = function (oListener) {
206
+ getLogEntryListenerInstance().detach(this, oListener);
207
+ };
208
+ function Logger(sComponent) {
209
+ this.fatal = function (msg, detail, comp, support) {
210
+ Log.fatal(msg, detail, comp || sComponent, support);
211
+ return this;
212
+ };
213
+ this.error = function (msg, detail, comp, support) {
214
+ Log.error(msg, detail, comp || sComponent, support);
215
+ return this;
216
+ };
217
+ this.warning = function (msg, detail, comp, support) {
218
+ Log.warning(msg, detail, comp || sComponent, support);
219
+ return this;
220
+ };
221
+ this.info = function (msg, detail, comp, support) {
222
+ Log.info(msg, detail, comp || sComponent, support);
223
+ return this;
224
+ };
225
+ this.debug = function (msg, detail, comp, support) {
226
+ Log.debug(msg, detail, comp || sComponent, support);
227
+ return this;
228
+ };
229
+ this.trace = function (msg, detail, comp, support) {
230
+ Log.trace(msg, detail, comp || sComponent, support);
231
+ return this;
232
+ };
233
+ this.setLevel = function (level, comp) {
234
+ Log.setLevel(level, comp || sComponent);
235
+ return this;
236
+ };
237
+ this.getLevel = function (comp) {
238
+ return Log.getLevel(comp || sComponent);
239
+ };
240
+ this.isLoggable = function (level, comp) {
241
+ return Log.isLoggable(level, comp || sComponent);
242
+ };
243
+ }
244
+ Log.getLogger = function (sComponent, iDefaultLogLevel) {
245
+ if (!isNaN(iDefaultLogLevel) && mMaxLevel[sComponent] == null) {
246
+ mMaxLevel[sComponent] = iDefaultLogLevel;
247
+ }
248
+ return new Logger(sComponent);
249
+ };
250
+
251
+ return Log;
252
+
253
+ });
@@ -0,0 +1,16 @@
1
+ sap.ui.define(['./Log'], function (Log) { 'use strict';
2
+
3
+ var fnAssert = function (bResult, vMessage) {
4
+ if (!bResult) {
5
+ var sMessage = typeof vMessage === 'function' ? vMessage() : vMessage;
6
+ if (console && console.assert) {
7
+ console.assert(bResult, sMessage);
8
+ } else {
9
+ Log.debug('[Assertions] ' + sMessage);
10
+ }
11
+ }
12
+ };
13
+
14
+ return fnAssert;
15
+
16
+ });
@@ -0,0 +1,12 @@
1
+ sap.ui.define(function () { 'use strict';
2
+
3
+ var fnNow = !(typeof window != "undefined" && window.performance && performance.now && performance.timing) ? Date.now : (function () {
4
+ var iNavigationStart = performance.timing.navigationStart;
5
+ return function perfnow() {
6
+ return iNavigationStart + performance.now();
7
+ };
8
+ })();
9
+
10
+ return fnNow;
11
+
12
+ });
@@ -3,6 +3,15 @@ sap.ui.define(function () { 'use strict';
3
3
  class DataType {
4
4
  static isValid(value) {
5
5
  }
6
+ static attributeToProperty(attributeValue) {
7
+ return attributeValue;
8
+ }
9
+ static propertyToAttribute(propertyValue) {
10
+ return `${propertyValue}`;
11
+ }
12
+ static valuesAreEqual(value1, value2) {
13
+ return value1 === value2;
14
+ }
6
15
  static generateTypeAccessors(types) {
7
16
  Object.keys(types).forEach(type => {
8
17
  Object.defineProperty(this, type, {
@@ -4,6 +4,9 @@ sap.ui.define(['./DataType'], function (DataType) { 'use strict';
4
4
  static isValid(value) {
5
5
  return Number(value) === value;
6
6
  }
7
+ static attributeToProperty(attributeValue) {
8
+ return parseFloat(attributeValue);
9
+ }
7
10
  }
8
11
 
9
12
  return Float;
@@ -4,6 +4,9 @@ sap.ui.define(['./DataType'], function (DataType) { 'use strict';
4
4
  static isValid(value) {
5
5
  return Number.isInteger(value);
6
6
  }
7
+ static attributeToProperty(attributeValue) {
8
+ return parseInt(attributeValue);
9
+ }
7
10
  }
8
11
 
9
12
  return Integer;
@@ -10,7 +10,7 @@ sap.ui.define(['./renderer/executeTemplate', './theming/getConstructableStyle',
10
10
  } else if (!isLegacyBrowser()) {
11
11
  styleToPrepend = getEffectiveStyle(element.constructor, forStaticArea);
12
12
  }
13
- element.constructor.render(renderResult, shadowRoot, styleToPrepend, { eventContext: element });
13
+ element.constructor.render(renderResult, shadowRoot, styleToPrepend, { host: element });
14
14
  };
15
15
 
16
16
  return updateShadowRoot;