@openui5/sap.ui.webc.common 1.111.2 → 1.112.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/package.json +2 -2
  2. package/src/sap/ui/webc/common/.library +2 -2
  3. package/src/sap/ui/webc/common/Configuration.js +6 -0
  4. package/src/sap/ui/webc/common/Icons.js +6 -0
  5. package/src/sap/ui/webc/common/WebComponent.js +1 -1
  6. package/src/sap/ui/webc/common/WebComponentMetadata.js +1 -1
  7. package/src/sap/ui/webc/common/library.js +3 -3
  8. package/src/sap/ui/webc/common/thirdparty/base/Boot.js +2 -11
  9. package/src/sap/ui/webc/common/thirdparty/base/CSP.js +3 -14
  10. package/src/sap/ui/webc/common/thirdparty/base/CustomElementsRegistry.js +0 -21
  11. package/src/sap/ui/webc/common/thirdparty/base/CustomElementsScopeUtils.js +5 -22
  12. package/src/sap/ui/webc/common/thirdparty/base/DOMObserver.js +5 -18
  13. package/src/sap/ui/webc/common/thirdparty/base/Device.js +2 -35
  14. package/src/sap/ui/webc/common/thirdparty/base/EventProvider.js +2 -21
  15. package/src/sap/ui/webc/common/thirdparty/base/FeaturesRegistry.js +0 -4
  16. package/src/sap/ui/webc/common/thirdparty/base/FontFace.js +4 -8
  17. package/src/sap/ui/webc/common/thirdparty/base/InitialConfiguration.js +13 -42
  18. package/src/sap/ui/webc/common/thirdparty/base/Keys.js +3 -138
  19. package/src/sap/ui/webc/common/thirdparty/base/ManagedStyles.js +0 -19
  20. package/src/sap/ui/webc/common/thirdparty/base/MediaRange.js +4 -8
  21. package/src/sap/ui/webc/common/thirdparty/base/PropertiesFileFormat.js +2 -16
  22. package/src/sap/ui/webc/common/thirdparty/base/Render.js +14 -35
  23. package/src/sap/ui/webc/common/thirdparty/base/RenderQueue.js +1 -16
  24. package/src/sap/ui/webc/common/thirdparty/base/RenderScheduler.js +2 -10
  25. package/src/sap/ui/webc/common/thirdparty/base/Runtimes.js +18 -34
  26. package/src/sap/ui/webc/common/thirdparty/base/StaticAreaItem.js +4 -25
  27. package/src/sap/ui/webc/common/thirdparty/base/SystemCSSVars.js +0 -3
  28. package/src/sap/ui/webc/common/thirdparty/base/UI5Element.js +104 -246
  29. package/src/sap/ui/webc/common/thirdparty/base/UI5ElementMetadata.js +39 -84
  30. package/src/sap/ui/webc/common/thirdparty/base/animations/AnimationQueue.js +0 -11
  31. package/src/sap/ui/webc/common/thirdparty/base/animations/animate.js +0 -8
  32. package/src/sap/ui/webc/common/thirdparty/base/animations/scroll.js +0 -4
  33. package/src/sap/ui/webc/common/thirdparty/base/animations/slideDown.js +9 -10
  34. package/src/sap/ui/webc/common/thirdparty/base/animations/slideUp.js +4 -7
  35. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Icons.js +9 -34
  36. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Illustrations.js +0 -8
  37. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/LocaleData.js +36 -57
  38. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/Themes.js +4 -27
  39. package/src/sap/ui/webc/common/thirdparty/base/asset-registries/i18n.js +12 -37
  40. package/src/sap/ui/webc/common/thirdparty/base/assets-meta/IconCollectionsAlias.js +0 -1
  41. package/src/sap/ui/webc/common/thirdparty/base/config/AnimationMode.js +0 -7
  42. package/src/sap/ui/webc/common/thirdparty/base/config/CalendarType.js +2 -7
  43. package/src/sap/ui/webc/common/thirdparty/base/config/FormatSettings.js +2 -4
  44. package/src/sap/ui/webc/common/thirdparty/base/config/Icons.js +3 -11
  45. package/src/sap/ui/webc/common/thirdparty/base/config/Language.js +4 -14
  46. package/src/sap/ui/webc/common/thirdparty/base/config/NoConflict.js +4 -14
  47. package/src/sap/ui/webc/common/thirdparty/base/config/RTL.js +2 -8
  48. package/src/sap/ui/webc/common/thirdparty/base/config/Theme.js +4 -15
  49. package/src/sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation.js +8 -72
  50. package/src/sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler.js +8 -23
  51. package/src/sap/ui/webc/common/thirdparty/base/delegate/ScrollEnablement.js +9 -34
  52. package/src/sap/ui/webc/common/thirdparty/base/features/F6Navigation.js +1 -20
  53. package/src/sap/ui/webc/common/thirdparty/base/features/OpenUI5Enablement.js +0 -17
  54. package/src/sap/ui/webc/common/thirdparty/base/features/OpenUI5Support.js +0 -32
  55. package/src/sap/ui/webc/common/thirdparty/base/generated/VersionInfo.js +1 -1
  56. package/src/sap/ui/webc/common/thirdparty/base/getSharedResource.js +1 -9
  57. package/src/sap/ui/webc/common/thirdparty/base/i18nBundle.js +4 -18
  58. package/src/sap/ui/webc/common/thirdparty/base/locale/Locale.js +0 -25
  59. package/src/sap/ui/webc/common/thirdparty/base/locale/RTLAwareRegistry.js +0 -4
  60. package/src/sap/ui/webc/common/thirdparty/base/locale/applyDirection.js +0 -2
  61. package/src/sap/ui/webc/common/thirdparty/base/locale/directionChange.js +2 -9
  62. package/src/sap/ui/webc/common/thirdparty/base/locale/getEffectiveDir.js +4 -9
  63. package/src/sap/ui/webc/common/thirdparty/base/locale/getLocale.js +3 -11
  64. package/src/sap/ui/webc/common/thirdparty/base/locale/languageChange.js +0 -8
  65. package/src/sap/ui/webc/common/thirdparty/base/locale/nextFallbackLocale.js +4 -8
  66. package/src/sap/ui/webc/common/thirdparty/base/locale/normalizeLocale.js +8 -14
  67. package/src/sap/ui/webc/common/thirdparty/base/renderer/LitRenderer.js +0 -11
  68. package/src/sap/ui/webc/common/thirdparty/base/renderer/directives/style-map.js +7 -21
  69. package/src/sap/ui/webc/common/thirdparty/base/renderer/executeTemplate.js +1 -6
  70. package/src/sap/ui/webc/common/thirdparty/base/theming/CustomStyle.js +2 -16
  71. package/src/sap/ui/webc/common/thirdparty/base/theming/ThemeLoaded.js +0 -8
  72. package/src/sap/ui/webc/common/thirdparty/base/theming/applyTheme.js +6 -21
  73. package/src/sap/ui/webc/common/thirdparty/base/theming/getConstructableStyle.js +1 -6
  74. package/src/sap/ui/webc/common/thirdparty/base/theming/getEffectiveLinksHrefs.js +0 -7
  75. package/src/sap/ui/webc/common/thirdparty/base/theming/getEffectiveStyle.js +0 -8
  76. package/src/sap/ui/webc/common/thirdparty/base/theming/getStylesString.js +0 -4
  77. package/src/sap/ui/webc/common/thirdparty/base/theming/getThemeDesignerTheme.js +4 -22
  78. package/src/sap/ui/webc/common/thirdparty/base/theming/preloadLinks.js +0 -5
  79. package/src/sap/ui/webc/common/thirdparty/base/thirdparty/_merge.js +10 -20
  80. package/src/sap/ui/webc/common/thirdparty/base/thirdparty/isPlainObject.js +0 -6
  81. package/src/sap/ui/webc/common/thirdparty/base/thirdparty/merge.js +0 -3
  82. package/src/sap/ui/webc/common/thirdparty/base/types/CSSColor.js +0 -4
  83. package/src/sap/ui/webc/common/thirdparty/base/types/CSSSize.js +0 -4
  84. package/src/sap/ui/webc/common/thirdparty/base/types/CalendarType.js +0 -5
  85. package/src/sap/ui/webc/common/thirdparty/base/types/DataType.js +0 -8
  86. package/src/sap/ui/webc/common/thirdparty/base/types/Float.js +0 -5
  87. package/src/sap/ui/webc/common/thirdparty/base/types/Integer.js +0 -5
  88. package/src/sap/ui/webc/common/thirdparty/base/types/InvisibleMessageMode.js +0 -6
  89. package/src/sap/ui/webc/common/thirdparty/base/types/ItemNavigationBehavior.js +0 -2
  90. package/src/sap/ui/webc/common/thirdparty/base/types/PopupState.js +0 -8
  91. package/src/sap/ui/webc/common/thirdparty/base/types/ValueState.js +0 -5
  92. package/src/sap/ui/webc/common/thirdparty/base/updateShadowRoot.js +0 -5
  93. package/src/sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper.js +1 -9
  94. package/src/sap/ui/webc/common/thirdparty/base/util/Caret.js +0 -6
  95. package/src/sap/ui/webc/common/thirdparty/base/util/ColorConversion.js +29 -46
  96. package/src/sap/ui/webc/common/thirdparty/base/util/FetchHelper.js +0 -10
  97. package/src/sap/ui/webc/common/thirdparty/base/util/FocusableElements.js +2 -19
  98. package/src/sap/ui/webc/common/thirdparty/base/util/InvisibleMessage.js +3 -9
  99. package/src/sap/ui/webc/common/thirdparty/base/util/PopupUtils.js +0 -28
  100. package/src/sap/ui/webc/common/thirdparty/base/util/SlotsHelper.js +4 -15
  101. package/src/sap/ui/webc/common/thirdparty/base/util/StringHelper.js +0 -7
  102. package/src/sap/ui/webc/common/thirdparty/base/util/TabbableElements.js +0 -12
  103. package/src/sap/ui/webc/common/thirdparty/base/util/arraysAreEqual.js +0 -4
  104. package/src/sap/ui/webc/common/thirdparty/base/util/clamp.js +0 -2
  105. package/src/sap/ui/webc/common/thirdparty/base/util/createLinkInHead.js +0 -2
  106. package/src/sap/ui/webc/common/thirdparty/base/util/createStyleInHead.js +0 -2
  107. package/src/sap/ui/webc/common/thirdparty/base/util/debounce.js +1 -3
  108. package/src/sap/ui/webc/common/thirdparty/base/util/detectNavigatorLanguage.js +0 -4
  109. package/src/sap/ui/webc/common/thirdparty/base/util/escapeRegex.js +0 -2
  110. package/src/sap/ui/webc/common/thirdparty/base/util/findNodeOwner.js +0 -6
  111. package/src/sap/ui/webc/common/thirdparty/base/util/formatMessage.js +2 -7
  112. package/src/sap/ui/webc/common/thirdparty/base/util/generateHighlightedMarkup.js +9 -17
  113. package/src/sap/ui/webc/common/thirdparty/base/util/getActiveElement.js +0 -4
  114. package/src/sap/ui/webc/common/thirdparty/base/util/getClassCopy.js +0 -3
  115. package/src/sap/ui/webc/common/thirdparty/base/util/getDesigntimePropertyAsArray.js +0 -2
  116. package/src/sap/ui/webc/common/thirdparty/base/util/getEffectiveContentDensity.js +0 -2
  117. package/src/sap/ui/webc/common/thirdparty/base/util/getFileExtension.js +0 -4
  118. package/src/sap/ui/webc/common/thirdparty/base/util/getNormalizedTarget.js +0 -4
  119. package/src/sap/ui/webc/common/thirdparty/base/util/getSingletonElementInstance.js +0 -4
  120. package/src/sap/ui/webc/common/thirdparty/base/util/isDefaultSlotProvided.js +0 -2
  121. package/src/sap/ui/webc/common/thirdparty/base/util/isDescendantOf.js +0 -6
  122. package/src/sap/ui/webc/common/thirdparty/base/util/isElementInView.js +0 -2
  123. package/src/sap/ui/webc/common/thirdparty/base/util/isNodeClickable.js +0 -5
  124. package/src/sap/ui/webc/common/thirdparty/base/util/isNodeHidden.js +0 -3
  125. package/src/sap/ui/webc/common/thirdparty/base/util/isNodeTabbable.js +0 -9
  126. package/src/sap/ui/webc/common/thirdparty/base/util/isValidPropertyName.js +1 -3
  127. package/src/sap/ui/webc/common/thirdparty/base/util/setToArray.js +0 -2
  128. package/src/sap/ui/webc/common/thirdparty/base/util/whenDOMReady.js +0 -2
  129. package/src/sap/ui/webc/common/thirdparty/icons/generated/json-imports/i18n.js +0 -52
  130. package/src/sap/ui/webc/common/thirdparty/icons/json-imports/Icons.js +0 -5
  131. package/src/sap/ui/webc/common/thirdparty/icons-business-suite/json-imports/Icons.js +0 -3
  132. package/src/sap/ui/webc/common/thirdparty/icons-tnt/json-imports/Icons.js +0 -3
  133. package/src/sap/ui/webc/common/thirdparty/lit-html/directive-helpers.js +62 -70
  134. package/src/sap/ui/webc/common/thirdparty/lit-html/directive.js +11 -20
  135. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/class-map.js +0 -10
  136. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/if-defined.js +0 -2
  137. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/repeat.js +55 -71
  138. package/src/sap/ui/webc/common/thirdparty/lit-html/directives/unsafe-html.js +0 -4
  139. package/src/sap/ui/webc/common/thirdparty/lit-html/lit-html.js +96 -171
  140. package/src/sap/ui/webc/common/thirdparty/lit-html/static.js +34 -40
  141. package/src/sap/ui/webc/common/thirdparty/localization/DateFormat.js +0 -2
  142. package/src/sap/ui/webc/common/thirdparty/localization/LocaleData.js +0 -2
  143. package/src/sap/ui/webc/common/thirdparty/localization/dates/CalendarDate.js +13 -56
  144. package/src/sap/ui/webc/common/thirdparty/localization/dates/ExtremeDates.js +0 -11
  145. package/src/sap/ui/webc/common/thirdparty/localization/dates/calculateWeekNumber.js +5 -8
  146. package/src/sap/ui/webc/common/thirdparty/localization/dates/getRoundedTimestamp.js +0 -3
  147. package/src/sap/ui/webc/common/thirdparty/localization/dates/getTodayUTCTimestamp.js +0 -3
  148. package/src/sap/ui/webc/common/thirdparty/localization/dates/modifyDateBy.js +0 -9
  149. package/src/sap/ui/webc/common/thirdparty/localization/getCachedLocaleDataInstance.js +0 -5
  150. package/src/sap/ui/webc/common/thirdparty/localization/locale/getLocaleData.js +1 -6
  151. package/src/sap/ui/webc/common/thirdparty/theming/generated/json-imports/Themes.js +0 -16
  152. package/ui5.yaml +7 -7
  153. package/src/sap/ui/webc/common/thirdparty/icons-business-suite/main-milestone.js +0 -25
  154. package/src/sap/ui/webc/common/thirdparty/icons-business-suite/main-sequence.js +0 -25
@@ -7,57 +7,41 @@ sap.ui.define(["exports", "../getSharedResource", "../FeaturesRegistry", "./getA
7
7
  _exports.isFocusedElementWithinNode = _exports.isClickInRect = _exports.getNextZIndex = _exports.getFocusedElement = _exports.getCurrentZIndex = _exports.getClosedPopupParent = void 0;
8
8
  _getSharedResource = _interopRequireDefault(_getSharedResource);
9
9
  _getActiveElement = _interopRequireDefault(_getActiveElement);
10
-
11
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
-
13
11
  const PopupUtilsData = (0, _getSharedResource.default)("PopupUtilsData", {});
14
12
  PopupUtilsData.currentZIndex = PopupUtilsData.currentZIndex || 100;
15
-
16
13
  const getFocusedElement = () => {
17
14
  const element = (0, _getActiveElement.default)();
18
15
  return element && typeof element.focus === "function" ? element : null;
19
16
  };
20
-
21
17
  _exports.getFocusedElement = getFocusedElement;
22
-
23
18
  const isFocusedElementWithinNode = node => {
24
19
  const fe = getFocusedElement();
25
-
26
20
  if (fe) {
27
21
  return isNodeContainedWithin(node, fe);
28
22
  }
29
-
30
23
  return false;
31
24
  };
32
-
33
25
  _exports.isFocusedElementWithinNode = isFocusedElementWithinNode;
34
-
35
26
  const isNodeContainedWithin = (parent, child) => {
36
27
  let currentNode = parent;
37
-
38
28
  if (currentNode.shadowRoot) {
39
29
  currentNode = Array.from(currentNode.shadowRoot.children).find(n => n.localName !== "style");
40
30
  }
41
-
42
31
  if (currentNode === child) {
43
32
  return true;
44
33
  }
45
-
46
34
  const childNodes = currentNode.localName === "slot" ? currentNode.assignedNodes() : currentNode.children;
47
-
48
35
  if (childNodes) {
49
36
  return Array.from(childNodes).some(n => isNodeContainedWithin(n, child));
50
37
  }
51
38
  };
52
-
53
39
  const isPointInRect = (x, y, rect) => {
54
40
  return x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom;
55
41
  };
56
-
57
42
  const isClickInRect = (event, rect) => {
58
43
  let x;
59
44
  let y;
60
-
61
45
  if (event.touches) {
62
46
  const touch = event.touches[0];
63
47
  x = touch.clientX;
@@ -66,41 +50,29 @@ sap.ui.define(["exports", "../getSharedResource", "../FeaturesRegistry", "./getA
66
50
  x = event.clientX;
67
51
  y = event.clientY;
68
52
  }
69
-
70
53
  return isPointInRect(x, y, rect);
71
54
  };
72
-
73
55
  _exports.isClickInRect = isClickInRect;
74
-
75
56
  const getClosedPopupParent = el => {
76
57
  const parent = el.parentElement || el.getRootNode && el.getRootNode().host;
77
-
78
58
  if (parent && (parent.showAt && parent.isUI5Element || parent.open && parent.isUI5Element || parent === document.documentElement)) {
79
59
  return parent;
80
60
  }
81
-
82
61
  return getClosedPopupParent(parent);
83
62
  };
84
-
85
63
  _exports.getClosedPopupParent = getClosedPopupParent;
86
-
87
64
  const getNextZIndex = () => {
88
65
  const OpenUI5Support = (0, _FeaturesRegistry.getFeature)("OpenUI5Support");
89
-
90
66
  if (OpenUI5Support && OpenUI5Support.isLoaded()) {
91
67
  // use OpenUI5 for getting z-index values, if loaded
92
68
  return OpenUI5Support.getNextZIndex();
93
69
  }
94
-
95
70
  PopupUtilsData.currentZIndex += 2;
96
71
  return PopupUtilsData.currentZIndex;
97
72
  };
98
-
99
73
  _exports.getNextZIndex = getNextZIndex;
100
-
101
74
  const getCurrentZIndex = () => {
102
75
  return PopupUtilsData.currentZIndex;
103
76
  };
104
-
105
77
  _exports.getCurrentZIndex = getCurrentZIndex;
106
78
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.isSlot = _exports.getSlottedElementsList = _exports.getSlottedElements = _exports.getSlotName = void 0;
8
-
9
8
  /**
10
9
  * Determines the slot to which a node should be assigned
11
10
  * @param node Text node or HTML element
@@ -15,43 +14,33 @@ sap.ui.define(["exports"], function (_exports) {
15
14
  // Text nodes can only go to the default slot
16
15
  if (!(node instanceof HTMLElement)) {
17
16
  return "default";
18
- } // Discover the slot based on the real slot name (f.e. footer => footer, or content-32 => content)
19
-
17
+ }
20
18
 
19
+ // Discover the slot based on the real slot name (f.e. footer => footer, or content-32 => content)
21
20
  const slot = node.getAttribute("slot");
22
-
23
21
  if (slot) {
24
22
  const match = slot.match(/^(.+?)-\d+$/);
25
23
  return match ? match[1] : slot;
26
- } // Use default slot as a fallback
27
-
24
+ }
28
25
 
26
+ // Use default slot as a fallback
29
27
  return "default";
30
28
  };
31
-
32
29
  _exports.getSlotName = getSlotName;
33
-
34
30
  const isSlot = el => el && el instanceof HTMLElement && el.localName === "slot";
35
-
36
31
  _exports.isSlot = isSlot;
37
-
38
32
  const getSlottedElements = el => {
39
33
  if (isSlot(el)) {
40
34
  return el.assignedNodes({
41
35
  flatten: true
42
36
  }).filter(item => item instanceof HTMLElement);
43
37
  }
44
-
45
38
  return [el];
46
39
  };
47
-
48
40
  _exports.getSlottedElements = getSlottedElements;
49
-
50
41
  const getSlottedElementsList = elList => {
51
42
  const reducer = (acc, curr) => acc.concat(getSlottedElements(curr));
52
-
53
43
  return elList.reduce(reducer, []);
54
44
  };
55
-
56
45
  _exports.getSlottedElementsList = getSlottedElementsList;
57
46
  });
@@ -7,29 +7,22 @@ sap.ui.define(["exports"], function (_exports) {
7
7
  _exports.kebabToCamelCase = _exports.camelToKebabCase = void 0;
8
8
  const kebabToCamelMap = new Map();
9
9
  const camelToKebabMap = new Map();
10
-
11
10
  const kebabToCamelCase = string => {
12
11
  if (!kebabToCamelMap.has(string)) {
13
12
  const result = toCamelCase(string.split("-"));
14
13
  kebabToCamelMap.set(string, result);
15
14
  }
16
-
17
15
  return kebabToCamelMap.get(string);
18
16
  };
19
-
20
17
  _exports.kebabToCamelCase = kebabToCamelCase;
21
-
22
18
  const camelToKebabCase = string => {
23
19
  if (!camelToKebabMap.has(string)) {
24
20
  const result = string.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
25
21
  camelToKebabMap.set(string, result);
26
22
  }
27
-
28
23
  return camelToKebabMap.get(string);
29
24
  };
30
-
31
25
  _exports.camelToKebabCase = camelToKebabCase;
32
-
33
26
  const toCamelCase = parts => {
34
27
  return parts.map((string, index) => {
35
28
  return index === 0 ? string.toLowerCase() : string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
@@ -6,48 +6,36 @@ sap.ui.define(["exports", "./isNodeTabbable"], function (_exports, _isNodeTabbab
6
6
  });
7
7
  _exports.getTabbableElements = _exports.getLastTabbableElement = void 0;
8
8
  _isNodeTabbable = _interopRequireDefault(_isNodeTabbable);
9
-
10
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
10
  const getTabbableElements = node => {
13
11
  return getTabbables(node.children);
14
12
  };
15
-
16
13
  _exports.getTabbableElements = getTabbableElements;
17
-
18
14
  const getLastTabbableElement = node => {
19
15
  const tabbables = getTabbables(node.children);
20
16
  return tabbables.length ? tabbables[tabbables.length - 1] : null;
21
17
  };
22
-
23
18
  _exports.getLastTabbableElement = getLastTabbableElement;
24
-
25
19
  const getTabbables = (nodes, tabbables) => {
26
20
  const tabbablesNodes = tabbables || [];
27
-
28
21
  if (!nodes) {
29
22
  return tabbablesNodes;
30
23
  }
31
-
32
24
  Array.from(nodes).forEach(currentNode => {
33
25
  if (currentNode.nodeType === Node.TEXT_NODE || currentNode.nodeType === Node.COMMENT_NODE || currentNode.hasAttribute("data-sap-no-tab-ref")) {
34
26
  return;
35
27
  }
36
-
37
28
  if (currentNode.shadowRoot) {
38
29
  // get the root node of the ShadowDom (1st none style tag)
39
30
  const children = currentNode.shadowRoot.children;
40
31
  currentNode = Array.from(children).find(node => node.tagName !== "STYLE");
41
32
  }
42
-
43
33
  if (!currentNode) {
44
34
  return;
45
35
  }
46
-
47
36
  if ((0, _isNodeTabbable.default)(currentNode)) {
48
37
  tabbablesNodes.push(currentNode);
49
38
  }
50
-
51
39
  if (currentNode.tagName === "SLOT") {
52
40
  getTabbables(currentNode.assignedNodes(), tabbablesNodes);
53
41
  } else {
@@ -5,21 +5,17 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const arraysAreEqual = (arr1, arr2) => {
10
9
  if (arr1.length !== arr2.length) {
11
10
  return false;
12
11
  }
13
-
14
12
  for (let i = 0; i < arr1.length; i++) {
15
13
  if (arr1[i] !== arr2[i]) {
16
14
  return false;
17
15
  }
18
16
  }
19
-
20
17
  return true;
21
18
  };
22
-
23
19
  var _default = arraysAreEqual;
24
20
  _exports.default = _default;
25
21
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * Returns a value clamped between an upper bound 'max' and lower bound 'min'.
11
10
  * @param {number} val value
@@ -16,7 +15,6 @@ sap.ui.define(["exports"], function (_exports) {
16
15
  const clamp = (val, min, max) => {
17
16
  return Math.min(Math.max(val, min), max);
18
17
  };
19
-
20
18
  var _default = clamp;
21
19
  _exports.default = _default;
22
20
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * Creates a <link> tag in the <head> tag
11
10
  * @param href - the CSS
@@ -21,7 +20,6 @@ sap.ui.define(["exports"], function (_exports) {
21
20
  document.head.appendChild(link);
22
21
  return link;
23
22
  };
24
-
25
23
  var _default = createLinkInHead;
26
24
  _exports.default = _default;
27
25
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * Creates a <style> tag in the <head> tag
11
10
  * @param cssText - the CSS
@@ -20,7 +19,6 @@ sap.ui.define(["exports"], function (_exports) {
20
19
  document.head.appendChild(style);
21
20
  return style;
22
21
  };
23
-
24
22
  var _default = createStyleInHead;
25
23
  _exports.default = _default;
26
24
  });
@@ -5,14 +5,13 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * Delays function execution by given threshold.
11
10
  * @param fn {Function}
12
11
  * @param delay {Integer}
13
12
  */
14
- let debounceInterval = null;
15
13
 
14
+ let debounceInterval = null;
16
15
  const debounce = (fn, delay) => {
17
16
  clearTimeout(debounceInterval);
18
17
  debounceInterval = setTimeout(() => {
@@ -20,7 +19,6 @@ sap.ui.define(["exports"], function (_exports) {
20
19
  fn();
21
20
  }, delay);
22
21
  };
23
-
24
22
  var _default = debounce;
25
23
  _exports.default = _default;
26
24
  });
@@ -5,17 +5,13 @@ sap.ui.define(["exports", "../generated/AssetParameters"], function (_exports, _
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  var _default = () => {
10
9
  const browserLanguages = navigator.languages;
11
-
12
10
  const navigatorLanguage = () => {
13
11
  return navigator.language;
14
12
  };
15
-
16
13
  const rawLocale = browserLanguages && browserLanguages[0] || navigatorLanguage() || navigator.userLanguage || navigator.browserLanguage;
17
14
  return rawLocale || _AssetParameters.DEFAULT_LANGUAGE;
18
15
  };
19
-
20
16
  _exports.default = _default;
21
17
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * Escape a regular expression text so that it can be used in a regular expression.
11
10
  * @param {string} text The string to be interpreted literally
@@ -14,7 +13,6 @@ sap.ui.define(["exports"], function (_exports) {
14
13
  function escapeRegex(text) {
15
14
  return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
16
15
  }
17
-
18
16
  var _default = escapeRegex;
19
17
  _exports.default = _default;
20
18
  });
@@ -5,16 +5,13 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const findNodeOwner = node => {
10
9
  if (!(node instanceof HTMLElement)) {
11
10
  throw new Error("Argument node should be of type HTMLElement");
12
11
  }
13
-
14
12
  const ownerTypes = [HTMLHtmlElement, HTMLIFrameElement];
15
13
  let currentShadowRootFlag = true;
16
14
  let currentCustomElementFlag = true;
17
-
18
15
  while (node) {
19
16
  if (node.toString() === "[object ShadowRoot]") {
20
17
  // Web Component
@@ -22,7 +19,6 @@ sap.ui.define(["exports"], function (_exports) {
22
19
  if (currentShadowRootFlag) {
23
20
  currentShadowRootFlag = false;
24
21
  }
25
-
26
22
  if (!currentCustomElementFlag && !currentShadowRootFlag) {
27
23
  return node;
28
24
  }
@@ -36,11 +32,9 @@ sap.ui.define(["exports"], function (_exports) {
36
32
  // Document or Iframe reached
37
33
  return node;
38
34
  }
39
-
40
35
  node = node.parentNode || node.host;
41
36
  }
42
37
  };
43
-
44
38
  var _default = findNodeOwner;
45
39
  _exports.default = _default;
46
40
  });
@@ -6,28 +6,23 @@ sap.ui.define(["exports"], function (_exports) {
6
6
  });
7
7
  _exports.default = void 0;
8
8
  const messageFormatRegEX = /('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g;
9
-
10
9
  const formatMessage = (text, values) => {
11
10
  values = values || [];
12
11
  return text.replace(messageFormatRegEX, ($0, $1, $2, $3, offset) => {
13
12
  if ($1) {
14
- return '\'';
15
- /* eslint-disable-line */
13
+ return '\''; /* eslint-disable-line */
16
14
  }
17
15
 
18
16
  if ($2) {
19
- return $2.replace(/''/g, '\'');
20
- /* eslint-disable-line */
17
+ return $2.replace(/''/g, '\''); /* eslint-disable-line */
21
18
  }
22
19
 
23
20
  if ($3) {
24
21
  return String(values[parseInt($3)]);
25
22
  }
26
-
27
23
  throw new Error(`[i18n]: pattern syntax error at pos ${offset}`);
28
24
  });
29
25
  };
30
-
31
26
  var _default = formatMessage;
32
27
  _exports.default = _default;
33
28
  });
@@ -7,13 +7,12 @@ sap.ui.define(["exports", "./escapeRegex", "sap/base/security/encodeXML"], funct
7
7
  _exports.default = void 0;
8
8
  _escapeRegex = _interopRequireDefault(_escapeRegex);
9
9
  _encodeXML = _interopRequireDefault(_encodeXML);
10
-
11
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
-
13
11
  // utility to replace all occurances of a string
14
12
  function replaceAll(text, find, replace, caseInsensitive) {
15
13
  return text.replace(new RegExp((0, _escapeRegex.default)(find), `${caseInsensitive ? "i" : ""}g`), replace);
16
14
  }
15
+
17
16
  /**
18
17
  * Generate markup for a raw string where a particular text is wrapped with some tag, by default `<b>` (bold) tag.
19
18
  * All inputs to this function are considered literal text, and special characters will always be escaped.
@@ -21,38 +20,31 @@ sap.ui.define(["exports", "./escapeRegex", "sap/base/security/encodeXML"], funct
21
20
  * @param {string} textToHighlight The text which should be highlighted
22
21
  * @return {string} the markup HTML which contains all occurrances of the input text surrounded with a `<b>` tag.
23
22
  */
24
-
25
-
26
23
  function generateHighlightedMarkup(text, textToHighlight) {
27
24
  if (!text || !textToHighlight) {
28
25
  return text;
29
- } // a token is some string that does not appear in either of the input strings
26
+ }
27
+ // a token is some string that does not appear in either of the input strings
30
28
  // repeat the token until it does not appear in the string
31
-
32
-
33
29
  const makeToken = t => {
34
30
  const [s, e] = t.split("");
35
-
36
31
  while (text.indexOf(t) >= 0 || textToHighlight.indexOf(t) >= 0) {
37
32
  t = `${s}${t}${e}`;
38
33
  }
39
-
40
34
  return t;
41
- }; // It doesn't matter what characters are used as long as all 4 of them are unique
35
+ };
36
+ // It doesn't matter what characters are used as long as all 4 of them are unique
42
37
  // And also that encodeXML will not change these characters
43
-
44
-
45
38
  const openToken = makeToken("12");
46
- const closeToken = makeToken("34"); // wrap every occurance of the textToHighlight using the open/close tokens (instead of markup at this point)
47
-
48
- let result = (0, _encodeXML.default)(replaceAll(text, textToHighlight, match => `${openToken}${match}${closeToken}`, true)); // now replace the open and close tokens with the markup that we expect
49
-
39
+ const closeToken = makeToken("34");
40
+ // wrap every occurance of the textToHighlight using the open/close tokens (instead of markup at this point)
41
+ let result = (0, _encodeXML.default)(replaceAll(text, textToHighlight, match => `${openToken}${match}${closeToken}`, true));
42
+ // now replace the open and close tokens with the markup that we expect
50
43
  [[openToken, "<b>"], [closeToken, "</b>"]].forEach(([find, replace]) => {
51
44
  result = replaceAll(result, find, replace);
52
45
  });
53
46
  return result;
54
47
  }
55
-
56
48
  var _default = generateHighlightedMarkup;
57
49
  _exports.default = _default;
58
50
  });
@@ -5,17 +5,13 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const getActiveElement = () => {
10
9
  let element = document.activeElement;
11
-
12
10
  while (element && element.shadowRoot && element.shadowRoot.activeElement) {
13
11
  element = element.shadowRoot.activeElement;
14
12
  }
15
-
16
13
  return element;
17
14
  };
18
-
19
15
  var _default = getActiveElement;
20
16
  _exports.default = _default;
21
17
  });
@@ -5,17 +5,14 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const getClassCopy = (klass, constructorCallback) => {
10
9
  return class classCopy extends klass {
11
10
  constructor() {
12
11
  super();
13
12
  constructorCallback && constructorCallback();
14
13
  }
15
-
16
14
  };
17
15
  };
18
-
19
16
  var _default = getClassCopy;
20
17
  _exports.default = _default;
21
18
  });
@@ -5,11 +5,9 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  var _default = value => {
10
9
  const m = /\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(value);
11
10
  return m && m[2] ? m[2].split(/,/) : null;
12
11
  };
13
-
14
12
  _exports.default = _default;
15
13
  });
@@ -6,9 +6,7 @@ sap.ui.define(["exports"], function (_exports) {
6
6
  });
7
7
  _exports.default = void 0;
8
8
  const GLOBAL_CONTENT_DENSITY_CSS_VAR = "--_ui5_content_density";
9
-
10
9
  const getEffectiveContentDensity = el => getComputedStyle(el).getPropertyValue(GLOBAL_CONTENT_DENSITY_CSS_VAR);
11
-
12
10
  var _default = getEffectiveContentDensity;
13
11
  _exports.default = _default;
14
12
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * "" -> ""
11
10
  * "noExtension" -> ""
@@ -18,14 +17,11 @@ sap.ui.define(["exports"], function (_exports) {
18
17
  */
19
18
  const getFileExtension = fileName => {
20
19
  const dotPos = fileName.lastIndexOf(".");
21
-
22
20
  if (dotPos < 1) {
23
21
  return "";
24
22
  }
25
-
26
23
  return fileName.slice(dotPos);
27
24
  };
28
-
29
25
  var _default = getFileExtension;
30
26
  _exports.default = _default;
31
27
  });
@@ -5,7 +5,6 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  /**
10
9
  * Returns the normalized event target in cases when it has shadow root.
11
10
  * @param {Object} target The original event target
@@ -13,14 +12,11 @@ sap.ui.define(["exports"], function (_exports) {
13
12
  */
14
13
  const getNormalizedTarget = target => {
15
14
  let element = target;
16
-
17
15
  if (target.shadowRoot && target.shadowRoot.activeElement) {
18
16
  element = target.shadowRoot.activeElement;
19
17
  }
20
-
21
18
  return element;
22
19
  };
23
-
24
20
  var _default = getNormalizedTarget;
25
21
  _exports.default = _default;
26
22
  });
@@ -5,18 +5,14 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const getSingletonElementInstance = (tag, parentElement = document.body) => {
10
9
  let el = document.querySelector(tag);
11
-
12
10
  if (el) {
13
11
  return el;
14
12
  }
15
-
16
13
  el = document.createElement(tag);
17
14
  return parentElement.insertBefore(el, parentElement.firstChild);
18
15
  };
19
-
20
16
  var _default = getSingletonElementInstance;
21
17
  _exports.default = _default;
22
18
  });
@@ -5,13 +5,11 @@ sap.ui.define(["exports", "./SlotsHelper"], function (_exports, _SlotsHelper) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const isDefaultSlotProvided = element => {
10
9
  return Array.from(element.childNodes).filter(node => {
11
10
  return node.nodeType !== Node.COMMENT_NODE && (0, _SlotsHelper.getSlotName)(node) === "default" && (node.nodeType !== Node.TEXT_NODE || node.nodeValue.trim().length !== 0);
12
11
  }).length > 0;
13
12
  };
14
-
15
13
  var _default = isDefaultSlotProvided;
16
14
  _exports.default = _default;
17
15
  });
@@ -5,25 +5,19 @@ sap.ui.define(["exports"], function (_exports) {
5
5
  value: true
6
6
  });
7
7
  _exports.default = void 0;
8
-
9
8
  const isDescendantOf = (klass, baseKlass, inclusive = false) => {
10
9
  if (typeof klass !== "function" || typeof baseKlass !== "function") {
11
10
  return false;
12
11
  }
13
-
14
12
  if (inclusive && klass === baseKlass) {
15
13
  return true;
16
14
  }
17
-
18
15
  let parent = klass;
19
-
20
16
  do {
21
17
  parent = Object.getPrototypeOf(parent);
22
18
  } while (parent !== null && parent !== baseKlass);
23
-
24
19
  return parent === baseKlass;
25
20
  };
26
-
27
21
  var _default = isDescendantOf;
28
22
  _exports.default = _default;
29
23
  });