@ui5/webcomponents-base 0.0.0-33967dd12 → 0.0.0-33e059bcd

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 (170) hide show
  1. package/.eslintignore +1 -1
  2. package/CHANGELOG.md +340 -0
  3. package/README.md +2 -1
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/AssetRegistry.d.ts +2 -2
  6. package/dist/AssetRegistry.js +2 -2
  7. package/dist/AssetRegistry.js.map +1 -1
  8. package/dist/CustomElementsScope.d.ts +4 -4
  9. package/dist/CustomElementsScope.js +2 -2
  10. package/dist/CustomElementsScope.js.map +1 -1
  11. package/dist/CustomElementsScopeUtils.d.ts +8 -1
  12. package/dist/CustomElementsScopeUtils.js +13 -1
  13. package/dist/CustomElementsScopeUtils.js.map +1 -1
  14. package/dist/Device.d.ts +2 -1
  15. package/dist/Device.js +10 -1
  16. package/dist/Device.js.map +1 -1
  17. package/dist/InitialConfiguration.d.ts +2 -1
  18. package/dist/InitialConfiguration.js +6 -1
  19. package/dist/InitialConfiguration.js.map +1 -1
  20. package/dist/Keys.js +104 -105
  21. package/dist/Keys.js.map +1 -1
  22. package/dist/ManagedStyles.d.ts +5 -4
  23. package/dist/ManagedStyles.js +96 -23
  24. package/dist/ManagedStyles.js.map +1 -1
  25. package/dist/MediaRange.d.ts +0 -6
  26. package/dist/MediaRange.js +5 -15
  27. package/dist/MediaRange.js.map +1 -1
  28. package/dist/StaticAreaItem.d.ts +2 -4
  29. package/dist/StaticAreaItem.js +2 -7
  30. package/dist/StaticAreaItem.js.map +1 -1
  31. package/dist/UI5Element.d.ts +29 -25
  32. package/dist/UI5Element.js +45 -38
  33. package/dist/UI5Element.js.map +1 -1
  34. package/dist/UI5ElementMetadata.d.ts +4 -11
  35. package/dist/UI5ElementMetadata.js +15 -13
  36. package/dist/UI5ElementMetadata.js.map +1 -1
  37. package/dist/asset-registries/Illustrations.d.ts +1 -0
  38. package/dist/asset-registries/Illustrations.js +50 -20
  39. package/dist/asset-registries/Illustrations.js.map +1 -1
  40. package/dist/asset-registries/Themes.d.ts +4 -3
  41. package/dist/asset-registries/Themes.js +26 -10
  42. package/dist/asset-registries/Themes.js.map +1 -1
  43. package/dist/asset-registries/i18n.js +2 -1
  44. package/dist/asset-registries/i18n.js.map +1 -1
  45. package/dist/config/CalendarType.d.ts +8 -1
  46. package/dist/config/CalendarType.js +18 -2
  47. package/dist/config/CalendarType.js.map +1 -1
  48. package/dist/config/Icons.d.ts +1 -1
  49. package/dist/config/Icons.js.map +1 -1
  50. package/dist/connectToComponent.d.ts +9 -0
  51. package/dist/connectToComponent.js +59 -0
  52. package/dist/connectToComponent.js.map +1 -0
  53. package/dist/css/FontFace.css +13 -1
  54. package/dist/custom-elements-internal.json +2765 -0
  55. package/dist/custom-elements.json +2528 -0
  56. package/dist/decorators/customElement.d.ts +1 -1
  57. package/dist/decorators/customElement.js +1 -1
  58. package/dist/decorators/customElement.js.map +1 -1
  59. package/dist/decorators/event.d.ts +5 -2
  60. package/dist/decorators/event.js.map +1 -1
  61. package/dist/delegate/ItemNavigation.d.ts +9 -8
  62. package/dist/delegate/ItemNavigation.js +12 -13
  63. package/dist/delegate/ItemNavigation.js.map +1 -1
  64. package/dist/delegate/ResizeHandler.d.ts +4 -6
  65. package/dist/delegate/ResizeHandler.js +4 -6
  66. package/dist/delegate/ResizeHandler.js.map +1 -1
  67. package/dist/delegate/ScrollEnablement.js +2 -2
  68. package/dist/delegate/ScrollEnablement.js.map +1 -1
  69. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  70. package/dist/features/OpenUI5Support.js +2 -1
  71. package/dist/features/OpenUI5Support.js.map +1 -1
  72. package/dist/generated/AssetParameters.d.ts +6 -0
  73. package/dist/generated/AssetParameters.js +3 -10
  74. package/dist/generated/AssetParameters.js.map +1 -0
  75. package/dist/generated/VersionInfo.d.ts +10 -0
  76. package/dist/generated/VersionInfo.js +9 -8
  77. package/dist/generated/VersionInfo.js.map +1 -0
  78. package/dist/generated/css/FontFace.css.js +1 -1
  79. package/dist/generated/css/FontFace.css.js.map +1 -1
  80. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +1 -1
  81. package/dist/i18nBundle.d.ts +1 -3
  82. package/dist/i18nBundle.js +1 -4
  83. package/dist/i18nBundle.js.map +1 -1
  84. package/dist/renderer/LitRenderer.d.ts +2 -2
  85. package/dist/sap/base/Log.js +698 -188
  86. package/dist/sap/base/assert.js +28 -1
  87. package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
  88. package/dist/sap/base/security/URLListValidator.js +253 -6
  89. package/dist/sap/base/security/encodeCSS.js +34 -8
  90. package/dist/sap/base/security/encodeXML.js +47 -17
  91. package/dist/sap/base/security/sanitizeHTML.js +35 -13
  92. package/dist/sap/base/strings/toHex.js +27 -2
  93. package/dist/sap/base/util/now.js +24 -3
  94. package/dist/sap/base/util/uid.js +27 -0
  95. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +1 -1
  96. package/dist/ssr-dom-shim.d.ts +1 -0
  97. package/dist/ssr-dom-shim.js +12 -0
  98. package/dist/ssr-dom-shim.js.map +1 -0
  99. package/dist/ssr-dom.d.ts +0 -0
  100. package/dist/ssr-dom.js +3 -0
  101. package/dist/ssr-dom.js.map +1 -0
  102. package/dist/theming/applyTheme.js +5 -6
  103. package/dist/theming/applyTheme.js.map +1 -1
  104. package/dist/types/AnimationMode.d.ts +0 -8
  105. package/dist/types/AnimationMode.js +0 -8
  106. package/dist/types/AnimationMode.js.map +1 -1
  107. package/dist/types/CSSColor.d.ts +0 -4
  108. package/dist/types/CSSColor.js +0 -4
  109. package/dist/types/CSSColor.js.map +1 -1
  110. package/dist/types/CSSSize.d.ts +11 -0
  111. package/dist/types/CSSSize.js +14 -0
  112. package/dist/types/CSSSize.js.map +1 -0
  113. package/dist/types/CalendarType.d.ts +0 -9
  114. package/dist/types/CalendarType.js +0 -9
  115. package/dist/types/CalendarType.js.map +1 -1
  116. package/dist/types/DOMReference.d.ts +0 -4
  117. package/dist/types/DOMReference.js +0 -4
  118. package/dist/types/DOMReference.js.map +1 -1
  119. package/dist/types/DataType.d.ts +1 -6
  120. package/dist/types/DataType.js +1 -6
  121. package/dist/types/DataType.js.map +1 -1
  122. package/dist/types/Float.d.ts +0 -3
  123. package/dist/types/Float.js +0 -3
  124. package/dist/types/Float.js.map +1 -1
  125. package/dist/types/Integer.d.ts +0 -3
  126. package/dist/types/Integer.js +0 -3
  127. package/dist/types/Integer.js.map +1 -1
  128. package/dist/types/InvisibleMessageMode.d.ts +5 -10
  129. package/dist/types/InvisibleMessageMode.js +4 -11
  130. package/dist/types/InvisibleMessageMode.js.map +1 -1
  131. package/dist/types/ItemNavigationBehavior.d.ts +0 -6
  132. package/dist/types/ItemNavigationBehavior.js +0 -6
  133. package/dist/types/ItemNavigationBehavior.js.map +1 -1
  134. package/dist/types/NavigationMode.d.ts +0 -8
  135. package/dist/types/NavigationMode.js +0 -8
  136. package/dist/types/NavigationMode.js.map +1 -1
  137. package/dist/types/ValueState.d.ts +0 -14
  138. package/dist/types/ValueState.js +0 -14
  139. package/dist/types/ValueState.js.map +1 -1
  140. package/dist/updateShadowRoot.js +2 -1
  141. package/dist/updateShadowRoot.js.map +1 -1
  142. package/dist/util/ColorConversion.js +200 -195
  143. package/dist/util/ColorConversion.js.map +1 -1
  144. package/dist/util/InvisibleMessage.d.ts +1 -1
  145. package/dist/util/InvisibleMessage.js.map +1 -1
  146. package/dist/util/detectNavigatorLanguage.d.ts +2 -2
  147. package/dist/util/detectNavigatorLanguage.js +6 -1
  148. package/dist/util/detectNavigatorLanguage.js.map +1 -1
  149. package/dist/util/getClassCopy.d.ts +52 -33
  150. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
  151. package/dist/util/getDesigntimePropertyAsArray.js +2 -1
  152. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
  153. package/dist/util/getParentElement.d.ts +2 -0
  154. package/dist/util/getParentElement.js +5 -0
  155. package/dist/util/getParentElement.js.map +1 -0
  156. package/dist/util/isElementContainingBlock.d.ts +2 -0
  157. package/dist/util/isElementContainingBlock.js +11 -0
  158. package/dist/util/isElementContainingBlock.js.map +1 -0
  159. package/index.js +1 -1
  160. package/lib/generate-asset-parameters/index.js +2 -2
  161. package/lib/generate-version-info/index.js +2 -2
  162. package/package-scripts.cjs +12 -18
  163. package/package.json +14 -6
  164. package/src/css/FontFace.css +13 -1
  165. package/tsconfig.json +4 -0
  166. package/used-modules.txt +4 -0
  167. package/dist/api.json +0 -1
  168. package/dist/assets/Boot.34b7cea0.css +0 -1
  169. package/dist/assets/Boot.4ba9c8eb.js +0 -9
  170. package/dist/assets/bundle.esm.3c881d7f.js +0 -50
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Some private variable used for creation of (pseudo-)unique IDs.
3
+ * @type int
4
+ * @private
5
+ */ /*!
6
+ * OpenUI5
7
+ * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
9
+ */
10
+
11
+ var iIdCounter = 0;
12
+
13
+ /**
14
+ * Creates and returns a pseudo-unique ID.
15
+ *
16
+ * No means for detection of overlap with already present or future UIDs.
17
+ *
18
+ * @function
19
+ * @since 1.58
20
+ * @alias module:sap/base/util/uid
21
+ * @return {string} A pseudo-unique id.
22
+ * @public
23
+ */
24
+ var fnUid = function uid() {
25
+ return "id-" + new Date().valueOf() + "-" + iIdCounter++;
26
+ };
27
+ export default fnUid;
@@ -2004,7 +2004,7 @@ if (typeof window !== 'undefined') {
2004
2004
  }
2005
2005
  /*!
2006
2006
  * OpenUI5
2007
- * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
2007
+ * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
2008
2008
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
2009
2009
  */
2010
2010
  // Based on coding from the HTML4 Sanitizer by Google Inc.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /* eslint-disable max-classes-per-file */
2
+ import { HTMLElement, Element, customElements } from "@lit-labs/ssr-dom-shim";
3
+ globalThis.HTMLElement ??= HTMLElement;
4
+ globalThis.Element ??= Element;
5
+ globalThis.customElements ??= customElements;
6
+ class NodeShim {
7
+ }
8
+ globalThis.Node ??= NodeShim;
9
+ class FileListShim {
10
+ }
11
+ globalThis.FileList ??= FileListShim;
12
+ //# sourceMappingURL=ssr-dom-shim.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssr-dom-shim.js","sourceRoot":"","sources":["../src/ssr-dom-shim.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,UAAU,CAAC,WAAW,KAAK,WAAW,CAAC;AACvC,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC;AAC/B,UAAU,CAAC,cAAc,KAAK,cAAc,CAAC;AAE7C,MAAM,QAAQ;CAAG;AACjB,UAAU,CAAC,IAAI,KAAK,QAAiC,CAAC;AAEtD,MAAM,YAAY;CAAG;AACrB,UAAU,CAAC,QAAQ,KAAK,YAAyC,CAAC","sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n"]}
File without changes
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // no shims in the browser when imported via conditional export
3
+ //# sourceMappingURL=ssr-dom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssr-dom.js","sourceRoot":"","sources":["../src/ssr-dom.ts"],"names":[],"mappings":";AAAA,+DAA+D","sourcesContent":["// no shims in the browser when imported via conditional export\n"]}
@@ -4,7 +4,6 @@ import getThemeDesignerTheme from "./getThemeDesignerTheme.js";
4
4
  import { fireThemeLoaded } from "./ThemeLoaded.js";
5
5
  import { getFeature } from "../FeaturesRegistry.js";
6
6
  import { attachCustomThemeStylesToHead, getThemeRoot } from "../config/ThemeRoot.js";
7
- import OpenUI5Support from "../features/OpenUI5Support.js";
8
7
  import { DEFAULT_THEME } from "../generated/AssetParameters.js";
9
8
  import { getCurrentRuntimeIndex } from "../Runtimes.js";
10
9
  const BASE_THEME_PACKAGE = "@ui5/webcomponents-theming";
@@ -18,19 +17,19 @@ const loadThemeBase = async (theme) => {
18
17
  }
19
18
  const cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);
20
19
  if (cssData) {
21
- createOrUpdateStyle(cssData, "data-ui5-theme-properties", BASE_THEME_PACKAGE);
20
+ createOrUpdateStyle(cssData, "data-ui5-theme-properties", BASE_THEME_PACKAGE, theme);
22
21
  }
23
22
  };
24
23
  const deleteThemeBase = () => {
25
24
  removeStyle("data-ui5-theme-properties", BASE_THEME_PACKAGE);
26
25
  };
27
- const loadComponentPackages = async (theme) => {
26
+ const loadComponentPackages = async (theme, externalThemeName) => {
28
27
  const registeredPackages = getRegisteredPackages();
29
28
  const packagesStylesPromises = [...registeredPackages].map(async (packageName) => {
30
29
  if (packageName === BASE_THEME_PACKAGE) {
31
30
  return;
32
31
  }
33
- const cssData = await getThemeProperties(packageName, theme);
32
+ const cssData = await getThemeProperties(packageName, theme, externalThemeName);
34
33
  if (cssData) {
35
34
  createOrUpdateStyle(cssData, `data-ui5-component-properties-${getCurrentRuntimeIndex()}`, packageName);
36
35
  }
@@ -45,7 +44,7 @@ const detectExternalTheme = async (theme) => {
45
44
  }
46
45
  // If OpenUI5Support is enabled, try to find out if it loaded variables
47
46
  const openUI5Support = getFeature("OpenUI5Support");
48
- if (openUI5Support && OpenUI5Support.isOpenUI5Detected()) {
47
+ if (openUI5Support && openUI5Support.isOpenUI5Detected()) {
49
48
  const varsLoaded = openUI5Support.cssVariablesLoaded();
50
49
  if (varsLoaded) {
51
50
  return {
@@ -70,7 +69,7 @@ const applyTheme = async (theme) => {
70
69
  }
71
70
  // Always load component packages properties. For non-registered themes, try with the base theme, if any
72
71
  const packagesTheme = isThemeRegistered(theme) ? theme : extTheme && extTheme.baseThemeName;
73
- await loadComponentPackages(packagesTheme || DEFAULT_THEME);
72
+ await loadComponentPackages(packagesTheme || DEFAULT_THEME, extTheme && extTheme.themeName === theme ? theme : undefined);
74
73
  fireThemeLoaded(theme);
75
74
  };
76
75
  export default applyTheme;
@@ -1 +1 @@
1
- {"version":3,"file":"applyTheme.js","sourceRoot":"","sources":["../../src/theming/applyTheme.ts"],"names":[],"mappings":"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","sourcesContent":["import { getThemeProperties, getRegisteredPackages, isThemeRegistered } from \"../asset-registries/Themes.js\";\nimport { removeStyle, createOrUpdateStyle } from \"../ManagedStyles.js\";\nimport getThemeDesignerTheme from \"./getThemeDesignerTheme.js\";\nimport { fireThemeLoaded } from \"./ThemeLoaded.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport { attachCustomThemeStylesToHead, getThemeRoot } from \"../config/ThemeRoot.js\";\nimport OpenUI5Support from \"../features/OpenUI5Support.js\";\nimport { DEFAULT_THEME } from \"../generated/AssetParameters.js\";\nimport { getCurrentRuntimeIndex } from \"../Runtimes.js\";\n\nconst BASE_THEME_PACKAGE = \"@ui5/webcomponents-theming\";\n\nconst isThemeBaseRegistered = () => {\n\tconst registeredPackages = getRegisteredPackages();\n\treturn registeredPackages.has(BASE_THEME_PACKAGE);\n};\n\nconst loadThemeBase = async (theme: string) => {\n\tif (!isThemeBaseRegistered()) {\n\t\treturn;\n\t}\n\n\tconst cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);\n\tif (cssData) {\n\t\tcreateOrUpdateStyle(cssData, \"data-ui5-theme-properties\", BASE_THEME_PACKAGE);\n\t}\n};\n\nconst deleteThemeBase = () => {\n\tremoveStyle(\"data-ui5-theme-properties\", BASE_THEME_PACKAGE);\n};\n\nconst loadComponentPackages = async (theme: string) => {\n\tconst registeredPackages = getRegisteredPackages();\n\n\tconst packagesStylesPromises = [...registeredPackages].map(async packageName => {\n\t\tif (packageName === BASE_THEME_PACKAGE) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cssData = await getThemeProperties(packageName, theme);\n\t\tif (cssData) {\n\t\t\tcreateOrUpdateStyle(cssData, `data-ui5-component-properties-${getCurrentRuntimeIndex()}`, packageName);\n\t\t}\n\t});\n\n\treturn Promise.all(packagesStylesPromises);\n};\n\nconst detectExternalTheme = async (theme: string) => {\n\t// If theme designer theme is detected, use this\n\tconst extTheme = getThemeDesignerTheme();\n\tif (extTheme) {\n\t\treturn extTheme;\n\t}\n\n\t// If OpenUI5Support is enabled, try to find out if it loaded variables\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support && OpenUI5Support.isOpenUI5Detected()) {\n\t\tconst varsLoaded = openUI5Support.cssVariablesLoaded();\n\t\tif (varsLoaded) {\n\t\t\treturn {\n\t\t\t\tthemeName: openUI5Support.getConfigurationSettingsObject()?.theme, // just themeName\n\t\t\t\tbaseThemeName: \"\", // baseThemeName is only relevant for custom themes\n\t\t\t};\n\t\t}\n\t} else if (getThemeRoot()) {\n\t\tawait attachCustomThemeStylesToHead(theme);\n\n\t\treturn getThemeDesignerTheme();\n\t}\n};\n\nconst applyTheme = async (theme: string) => {\n\tconst extTheme = await detectExternalTheme(theme);\n\n\t// Only load theme_base properties if there is no externally loaded theme, or there is, but it is not being loaded\n\tif (!extTheme || theme !== extTheme.themeName) {\n\t\tawait loadThemeBase(theme);\n\t} else {\n\t\tdeleteThemeBase();\n\t}\n\n\t// Always load component packages properties. For non-registered themes, try with the base theme, if any\n\tconst packagesTheme = isThemeRegistered(theme) ? theme : extTheme && extTheme.baseThemeName;\n\tawait loadComponentPackages(packagesTheme || DEFAULT_THEME);\n\n\tfireThemeLoaded(theme);\n};\n\nexport default applyTheme;\n"]}
1
+ {"version":3,"file":"applyTheme.js","sourceRoot":"","sources":["../../src/theming/applyTheme.ts"],"names":[],"mappings":"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","sourcesContent":["import { getThemeProperties, getRegisteredPackages, isThemeRegistered } from \"../asset-registries/Themes.js\";\nimport { removeStyle, createOrUpdateStyle } from \"../ManagedStyles.js\";\nimport getThemeDesignerTheme from \"./getThemeDesignerTheme.js\";\nimport { fireThemeLoaded } from \"./ThemeLoaded.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport { attachCustomThemeStylesToHead, getThemeRoot } from \"../config/ThemeRoot.js\";\nimport type OpenUI5Support from \"../features/OpenUI5Support.js\";\nimport { DEFAULT_THEME } from \"../generated/AssetParameters.js\";\nimport { getCurrentRuntimeIndex } from \"../Runtimes.js\";\n\nconst BASE_THEME_PACKAGE = \"@ui5/webcomponents-theming\";\n\nconst isThemeBaseRegistered = () => {\n\tconst registeredPackages = getRegisteredPackages();\n\treturn registeredPackages.has(BASE_THEME_PACKAGE);\n};\n\nconst loadThemeBase = async (theme: string) => {\n\tif (!isThemeBaseRegistered()) {\n\t\treturn;\n\t}\n\n\tconst cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);\n\tif (cssData) {\n\t\tcreateOrUpdateStyle(cssData, \"data-ui5-theme-properties\", BASE_THEME_PACKAGE, theme);\n\t}\n};\n\nconst deleteThemeBase = () => {\n\tremoveStyle(\"data-ui5-theme-properties\", BASE_THEME_PACKAGE);\n};\n\nconst loadComponentPackages = async (theme: string, externalThemeName?: string) => {\n\tconst registeredPackages = getRegisteredPackages();\n\n\tconst packagesStylesPromises = [...registeredPackages].map(async packageName => {\n\t\tif (packageName === BASE_THEME_PACKAGE) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cssData = await getThemeProperties(packageName, theme, externalThemeName);\n\t\tif (cssData) {\n\t\t\tcreateOrUpdateStyle(cssData, `data-ui5-component-properties-${getCurrentRuntimeIndex()}`, packageName);\n\t\t}\n\t});\n\n\treturn Promise.all(packagesStylesPromises);\n};\n\nconst detectExternalTheme = async (theme: string) => {\n\t// If theme designer theme is detected, use this\n\tconst extTheme = getThemeDesignerTheme();\n\tif (extTheme) {\n\t\treturn extTheme;\n\t}\n\n\t// If OpenUI5Support is enabled, try to find out if it loaded variables\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support && openUI5Support.isOpenUI5Detected()) {\n\t\tconst varsLoaded = openUI5Support.cssVariablesLoaded();\n\t\tif (varsLoaded) {\n\t\t\treturn {\n\t\t\t\tthemeName: openUI5Support.getConfigurationSettingsObject()?.theme, // just themeName\n\t\t\t\tbaseThemeName: \"\", // baseThemeName is only relevant for custom themes\n\t\t\t};\n\t\t}\n\t} else if (getThemeRoot()) {\n\t\tawait attachCustomThemeStylesToHead(theme);\n\n\t\treturn getThemeDesignerTheme();\n\t}\n};\n\nconst applyTheme = async (theme: string) => {\n\tconst extTheme = await detectExternalTheme(theme);\n\n\t// Only load theme_base properties if there is no externally loaded theme, or there is, but it is not being loaded\n\tif (!extTheme || theme !== extTheme.themeName) {\n\t\tawait loadThemeBase(theme);\n\t} else {\n\t\tdeleteThemeBase();\n\t}\n\n\t// Always load component packages properties. For non-registered themes, try with the base theme, if any\n\tconst packagesTheme = isThemeRegistered(theme) ? theme : extTheme && extTheme.baseThemeName;\n\tawait loadComponentPackages(packagesTheme || DEFAULT_THEME, extTheme && extTheme.themeName === theme ? theme : undefined);\n\n\tfireThemeLoaded(theme);\n};\n\nexport default applyTheme;\n"]}
@@ -1,31 +1,23 @@
1
1
  /**
2
2
  * Different types of AnimationMode.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.AnimationMode
9
5
  */
10
6
  declare enum AnimationMode {
11
7
  /**
12
8
  * @public
13
- * @type {Full}
14
9
  */
15
10
  Full = "full",
16
11
  /**
17
12
  * @public
18
- * @type {Basic}
19
13
  */
20
14
  Basic = "basic",
21
15
  /**
22
16
  * @public
23
- * @type {Minimal}
24
17
  */
25
18
  Minimal = "minimal",
26
19
  /**
27
20
  * @public
28
- * @type {None}
29
21
  */
30
22
  None = "none"
31
23
  }
@@ -1,32 +1,24 @@
1
1
  /**
2
2
  * Different types of AnimationMode.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.AnimationMode
9
5
  */
10
6
  var AnimationMode;
11
7
  (function (AnimationMode) {
12
8
  /**
13
9
  * @public
14
- * @type {Full}
15
10
  */
16
11
  AnimationMode["Full"] = "full";
17
12
  /**
18
13
  * @public
19
- * @type {Basic}
20
14
  */
21
15
  AnimationMode["Basic"] = "basic";
22
16
  /**
23
17
  * @public
24
- * @type {Minimal}
25
18
  */
26
19
  AnimationMode["Minimal"] = "minimal";
27
20
  /**
28
21
  * @public
29
- * @type {None}
30
22
  */
31
23
  AnimationMode["None"] = "none";
32
24
  })(AnimationMode || (AnimationMode = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationMode.js","sourceRoot":"","sources":["../../src/types/AnimationMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,IAAK,aAqBJ;AArBD,WAAK,aAAa;IACjB;;;OAGG;IACH,8BAAa,CAAA;IACb;;;OAGG;IACH,gCAAe,CAAA;IACf;;;OAGG;IACH,oCAAmB,CAAA;IACnB;;;OAGG;IACH,8BAAa,CAAA;AACd,CAAC,EArBI,aAAa,KAAb,aAAa,QAqBjB;AAED,eAAe,aAAa,CAAC","sourcesContent":["/**\n * Different types of AnimationMode.\n *\n * @readonly\n * @enum {string}\n * @public\n * @author SAP SE\n * @alias sap.ui.webc.base.types.AnimationMode\n */\nenum AnimationMode {\n\t/**\n\t * @public\n\t * @type {Full}\n\t */\n\tFull = \"full\",\n\t/**\n\t * @public\n\t * @type {Basic}\n\t */\n\tBasic = \"basic\",\n\t/**\n\t * @public\n\t * @type {Minimal}\n\t */\n\tMinimal = \"minimal\",\n\t/**\n\t * @public\n\t * @type {None}\n\t */\n\tNone = \"none\",\n}\n\nexport default AnimationMode;\n"]}
1
+ {"version":3,"file":"AnimationMode.js","sourceRoot":"","sources":["../../src/types/AnimationMode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,IAAK,aAiBJ;AAjBD,WAAK,aAAa;IACjB;;OAEG;IACH,8BAAa,CAAA;IACb;;OAEG;IACH,gCAAe,CAAA;IACf;;OAEG;IACH,oCAAmB,CAAA;IACnB;;OAEG;IACH,8BAAa,CAAA;AACd,CAAC,EAjBI,aAAa,KAAb,aAAa,QAiBjB;AAED,eAAe,aAAa,CAAC","sourcesContent":["/**\n * Different types of AnimationMode.\n *\n * @public\n */\nenum AnimationMode {\n\t/**\n\t * @public\n\t */\n\tFull = \"full\",\n\t/**\n\t * @public\n\t */\n\tBasic = \"basic\",\n\t/**\n\t * @public\n\t */\n\tMinimal = \"minimal\",\n\t/**\n\t * @public\n\t */\n\tNone = \"none\",\n}\n\nexport default AnimationMode;\n"]}
@@ -3,10 +3,6 @@ import DataType from "./DataType.js";
3
3
  * @class
4
4
  * CSSColor data type.
5
5
  *
6
- * @extends sap.ui.webc.base.types.DataType
7
- * @constructor
8
- * @author SAP SE
9
- * @alias sap.ui.webc.base.types.CSSColor
10
6
  * @public
11
7
  */
12
8
  declare class CSSColor extends DataType {
@@ -3,10 +3,6 @@ import DataType from "./DataType.js";
3
3
  * @class
4
4
  * CSSColor data type.
5
5
  *
6
- * @extends sap.ui.webc.base.types.DataType
7
- * @constructor
8
- * @author SAP SE
9
- * @alias sap.ui.webc.base.types.CSSColor
10
6
  * @public
11
7
  */
12
8
  class CSSColor extends DataType {
@@ -1 +1 @@
1
- {"version":3,"file":"CSSColor.js","sourceRoot":"","sources":["../../src/types/CSSColor.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,QAAS,SAAQ,QAAQ;IAC9B,MAAM,CAAU,OAAO,CAAC,KAAa;QACpC,OAAO,8/DAA8/D,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,CAAC,sBAAsB;IAC3iE,CAAC;CACD;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * CSSColor data type.\n *\n * @extends sap.ui.webc.base.types.DataType\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.base.types.CSSColor\n * @public\n */\nclass CSSColor extends DataType {\n\tstatic override isValid(value: string) {\n\t\treturn /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})|rgb\\(\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*(,\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*){2}\\)|rgba\\((\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*,){3}\\s*(0(\\.[0-9]+)?|1(\\.0+)?)\\s*\\)|hsl\\(\\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\\s*(,\\s*(([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*){2}\\)|hsla\\(\\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\\s*,(\\s*(([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*,){2}\\s*(0(\\.[0-9]+)?|1(\\.0+)?)\\s*\\)|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgrey|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|grey|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgrey|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silverskyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|inherit|)$/.test(value ); // eslint-disable-line\n\t}\n}\n\nexport default CSSColor;\n"]}
1
+ {"version":3,"file":"CSSColor.js","sourceRoot":"","sources":["../../src/types/CSSColor.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;GAKG;AACH,MAAM,QAAS,SAAQ,QAAQ;IAC9B,MAAM,CAAU,OAAO,CAAC,KAAa;QACpC,OAAO,8/DAA8/D,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,CAAC,sBAAsB;IAC3iE,CAAC;CACD;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * CSSColor data type.\n *\n * @public\n */\nclass CSSColor extends DataType {\n\tstatic override isValid(value: string) {\n\t\treturn /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})|rgb\\(\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*(,\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*){2}\\)|rgba\\((\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*,){3}\\s*(0(\\.[0-9]+)?|1(\\.0+)?)\\s*\\)|hsl\\(\\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\\s*(,\\s*(([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*){2}\\)|hsla\\(\\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\\s*,(\\s*(([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*,){2}\\s*(0(\\.[0-9]+)?|1(\\.0+)?)\\s*\\)|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgrey|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|grey|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgrey|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silverskyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|inherit|)$/.test(value ); // eslint-disable-line\n\t}\n}\n\nexport default CSSColor;\n"]}
@@ -0,0 +1,11 @@
1
+ import DataType from "./DataType.js";
2
+ /**
3
+ * @class
4
+ * CSSSize data type.
5
+ *
6
+ * @public
7
+ */
8
+ declare class CSSSize extends DataType {
9
+ static isValid(value: string): boolean;
10
+ }
11
+ export default CSSSize;
@@ -0,0 +1,14 @@
1
+ import DataType from "./DataType.js";
2
+ /**
3
+ * @class
4
+ * CSSSize data type.
5
+ *
6
+ * @public
7
+ */
8
+ class CSSSize extends DataType {
9
+ static isValid(value) {
10
+ return /^(auto|inherit|[-+]?(0*|([0-9]+|[0-9]*\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%))|calc\(\s*(\(\s*)*[-+]?(([0-9]+|[0-9]*\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)(\s*(\)\s*)*(\s[-+]\s|[*\/])\s*(\(\s*)*([-+]?(([0-9]+|[0-9]*\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)))*\s*(\)\s*)*\))$/.test(value); // eslint-disable-line
11
+ }
12
+ }
13
+ export default CSSSize;
14
+ //# sourceMappingURL=CSSSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CSSSize.js","sourceRoot":"","sources":["../../src/types/CSSSize.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;GAKG;AACH,MAAM,OAAQ,SAAQ,QAAQ;IAC7B,MAAM,CAAC,OAAO,CAAC,KAAa;QAC3B,OAAO,ocAAoc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,sBAAsB;IAChf,CAAC;CACD;AAED,eAAe,OAAO,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * CSSSize data type.\n *\n * @public\n */\nclass CSSSize extends DataType {\n\tstatic isValid(value: string) {\n\t\treturn /^(auto|inherit|[-+]?(0*|([0-9]+|[0-9]*\\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%))|calc\\(\\s*(\\(\\s*)*[-+]?(([0-9]+|[0-9]*\\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)(\\s*(\\)\\s*)*(\\s[-+]\\s|[*\\/])\\s*(\\(\\s*)*([-+]?(([0-9]+|[0-9]*\\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)))*\\s*(\\)\\s*)*\\))$/.test(value); // eslint-disable-line\n\t}\n}\n\nexport default CSSSize;\n"]}
@@ -1,36 +1,27 @@
1
1
  /**
2
2
  * Different calendar types.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.CalendarType
9
5
  */
10
6
  declare enum CalendarType {
11
7
  /**
12
8
  * @public
13
- * @type {Gregorian}
14
9
  */
15
10
  Gregorian = "Gregorian",
16
11
  /**
17
12
  * @public
18
- * @type {Islamic}
19
13
  */
20
14
  Islamic = "Islamic",
21
15
  /**
22
16
  * @public
23
- * @type {Japanese}
24
17
  */
25
18
  Japanese = "Japanese",
26
19
  /**
27
20
  * @public
28
- * @type {Buddhist}
29
21
  */
30
22
  Buddhist = "Buddhist",
31
23
  /**
32
24
  * @public
33
- * @type {Persian}
34
25
  */
35
26
  Persian = "Persian"
36
27
  }
@@ -1,37 +1,28 @@
1
1
  /**
2
2
  * Different calendar types.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.CalendarType
9
5
  */
10
6
  var CalendarType;
11
7
  (function (CalendarType) {
12
8
  /**
13
9
  * @public
14
- * @type {Gregorian}
15
10
  */
16
11
  CalendarType["Gregorian"] = "Gregorian";
17
12
  /**
18
13
  * @public
19
- * @type {Islamic}
20
14
  */
21
15
  CalendarType["Islamic"] = "Islamic";
22
16
  /**
23
17
  * @public
24
- * @type {Japanese}
25
18
  */
26
19
  CalendarType["Japanese"] = "Japanese";
27
20
  /**
28
21
  * @public
29
- * @type {Buddhist}
30
22
  */
31
23
  CalendarType["Buddhist"] = "Buddhist";
32
24
  /**
33
25
  * @public
34
- * @type {Persian}
35
26
  */
36
27
  CalendarType["Persian"] = "Persian";
37
28
  })(CalendarType || (CalendarType = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarType.js","sourceRoot":"","sources":["../../src/types/CalendarType.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,IAAK,YA0BJ;AA1BD,WAAK,YAAY;IAChB;;;OAGG;IACH,uCAAuB,CAAA;IACvB;;;OAGG;IACH,mCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,mCAAmB,CAAA;AACpB,CAAC,EA1BI,YAAY,KAAZ,YAAY,QA0BhB;AAED,eAAe,YAAY,CAAC","sourcesContent":["/**\n * Different calendar types.\n *\n * @readonly\n * @enum {string}\n * @public\n * @author SAP SE\n * @alias sap.ui.webc.base.types.CalendarType\n */\nenum CalendarType {\n\t/**\n\t * @public\n\t * @type {Gregorian}\n\t */\n\tGregorian = \"Gregorian\",\n\t/**\n\t * @public\n\t * @type {Islamic}\n\t */\n\tIslamic = \"Islamic\",\n\t/**\n\t * @public\n\t * @type {Japanese}\n\t */\n\tJapanese = \"Japanese\",\n\t/**\n\t * @public\n\t * @type {Buddhist}\n\t */\n\tBuddhist = \"Buddhist\",\n\t/**\n\t * @public\n\t * @type {Persian}\n\t */\n\tPersian = \"Persian\",\n}\n\nexport default CalendarType;\n"]}
1
+ {"version":3,"file":"CalendarType.js","sourceRoot":"","sources":["../../src/types/CalendarType.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,IAAK,YAqBJ;AArBD,WAAK,YAAY;IAChB;;OAEG;IACH,uCAAuB,CAAA;IACvB;;OAEG;IACH,mCAAmB,CAAA;IACnB;;OAEG;IACH,qCAAqB,CAAA;IACrB;;OAEG;IACH,qCAAqB,CAAA;IACrB;;OAEG;IACH,mCAAmB,CAAA;AACpB,CAAC,EArBI,YAAY,KAAZ,YAAY,QAqBhB;AAED,eAAe,YAAY,CAAC","sourcesContent":["/**\n * Different calendar types.\n *\n * @public\n */\nenum CalendarType {\n\t/**\n\t * @public\n\t */\n\tGregorian = \"Gregorian\",\n\t/**\n\t * @public\n\t */\n\tIslamic = \"Islamic\",\n\t/**\n\t * @public\n\t */\n\tJapanese = \"Japanese\",\n\t/**\n\t * @public\n\t */\n\tBuddhist = \"Buddhist\",\n\t/**\n\t * @public\n\t */\n\tPersian = \"Persian\",\n}\n\nexport default CalendarType;\n"]}
@@ -4,10 +4,6 @@ import DataType from "./DataType.js";
4
4
  * DOM Element reference or ID.
5
5
  * <b>Note:</b> If an ID is passed, it is expected to be part of the same <code>document</code> element as the consuming component.
6
6
  *
7
- * @constructor
8
- * @extends sap.ui.webc.base.types.DataType
9
- * @author SAP SE
10
- * @alias sap.ui.webc.base.types.DOMReference
11
7
  * @public
12
8
  */
13
9
  declare class DOMReference extends DataType {
@@ -4,10 +4,6 @@ import DataType from "./DataType.js";
4
4
  * DOM Element reference or ID.
5
5
  * <b>Note:</b> If an ID is passed, it is expected to be part of the same <code>document</code> element as the consuming component.
6
6
  *
7
- * @constructor
8
- * @extends sap.ui.webc.base.types.DataType
9
- * @author SAP SE
10
- * @alias sap.ui.webc.base.types.DOMReference
11
7
  * @public
12
8
  */
13
9
  class DOMReference extends DataType {
@@ -1 +1 @@
1
- {"version":3,"file":"DOMReference.js","sourceRoot":"","sources":["../../src/types/DOMReference.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;;;;;GAUG;AACH,MAAM,YAAa,SAAQ,QAAQ;IAClC,MAAM,CAAU,OAAO,CAAC,KAA2B;QAClD,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,WAAW,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,aAAmC;QACtE,IAAI,aAAa,YAAY,WAAW,EAAE;YACzC,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;CACD;AAED,eAAe,YAAY,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * DOM Element reference or ID.\n * <b>Note:</b> If an ID is passed, it is expected to be part of the same <code>document</code> element as the consuming component.\n *\n * @constructor\n * @extends sap.ui.webc.base.types.DataType\n * @author SAP SE\n * @alias sap.ui.webc.base.types.DOMReference\n * @public\n */\nclass DOMReference extends DataType {\n\tstatic override isValid(value: string | HTMLElement) {\n\t\treturn (typeof value === \"string\" || value instanceof HTMLElement);\n\t}\n\n\tstatic override propertyToAttribute(propertyValue: string | HTMLElement) {\n\t\tif (propertyValue instanceof HTMLElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn propertyValue;\n\t}\n}\n\nexport default DOMReference;\n"]}
1
+ {"version":3,"file":"DOMReference.js","sourceRoot":"","sources":["../../src/types/DOMReference.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,YAAa,SAAQ,QAAQ;IAClC,MAAM,CAAU,OAAO,CAAC,KAA2B;QAClD,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,WAAW,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,aAAmC;QACtE,IAAI,aAAa,YAAY,WAAW,EAAE;YACzC,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;CACD;AAED,eAAe,YAAY,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * DOM Element reference or ID.\n * <b>Note:</b> If an ID is passed, it is expected to be part of the same <code>document</code> element as the consuming component.\n *\n * @public\n */\nclass DOMReference extends DataType {\n\tstatic override isValid(value: string | HTMLElement) {\n\t\treturn (typeof value === \"string\" || value instanceof HTMLElement);\n\t}\n\n\tstatic override propertyToAttribute(propertyValue: string | HTMLElement) {\n\t\tif (propertyValue instanceof HTMLElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn propertyValue;\n\t}\n}\n\nexport default DOMReference;\n"]}
@@ -1,19 +1,14 @@
1
1
  import { PropertyValue } from "../UI5ElementMetadata.js";
2
2
  /**
3
+ * @class
3
4
  * Base class for all data types.
4
5
  *
5
- * @class
6
- * @constructor
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.DataType
9
6
  * @public
10
7
  */
11
8
  declare class DataType {
12
9
  /**
13
10
  * Checks if the value is valid for its data type.
14
11
  * @public
15
- * @abstract
16
- * @returns {Boolean}
17
12
  */
18
13
  static isValid(value: any): boolean;
19
14
  static attributeToProperty(attributeValue: string | null): PropertyValue;
@@ -1,18 +1,13 @@
1
1
  /**
2
+ * @class
2
3
  * Base class for all data types.
3
4
  *
4
- * @class
5
- * @constructor
6
- * @author SAP SE
7
- * @alias sap.ui.webc.base.types.DataType
8
5
  * @public
9
6
  */
10
7
  class DataType {
11
8
  /**
12
9
  * Checks if the value is valid for its data type.
13
10
  * @public
14
- * @abstract
15
- * @returns {Boolean}
16
11
  */
17
12
  // eslint-disable-next-line
18
13
  static isValid(value) {
@@ -1 +1 @@
1
- {"version":3,"file":"DataType.js","sourceRoot":"","sources":["../../src/types/DataType.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,QAAQ;IACb;;;;;OAKG;IACH,2BAA2B;IAC3B,MAAM,CAAC,OAAO,CAAC,KAAU;QACxB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,cAA6B;QACvD,OAAO,cAAc,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,aAA4B;QACtD,OAAO,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,MAAW,EAAE,MAAW;QAC7C,OAAO,MAAM,KAAK,MAAM,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,qBAAqB,CAAC,KAA6B;QACzD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACjC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE;gBACjC,GAAG;oBACF,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;aACD,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,eAAe;QACzB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { PropertyValue } from \"../UI5ElementMetadata.js\";\n\n/**\n * Base class for all data types.\n *\n * @class\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.base.types.DataType\n * @public\n */\nclass DataType {\n\t/**\n\t * Checks if the value is valid for its data type.\n \t * @public\n\t * @abstract\n\t * @returns {Boolean}\n\t */\n\t// eslint-disable-next-line\n\tstatic isValid(value: any): boolean {\n\t\treturn false;\n\t}\n\n\tstatic attributeToProperty(attributeValue: string | null): PropertyValue {\n\t\treturn attributeValue;\n\t}\n\n\tstatic propertyToAttribute(propertyValue: PropertyValue): string | null {\n\t\treturn propertyValue === null ? null : String(propertyValue);\n\t}\n\n\tstatic valuesAreEqual(value1: any, value2: any) {\n\t\treturn value1 === value2;\n\t}\n\n\tstatic generateTypeAccessors(types: Record<string, string>) {\n\t\tObject.keys(types).forEach(type => {\n\t\t\tObject.defineProperty(this, type, {\n\t\t\t\tget() {\n\t\t\t\t\treturn types[type];\n\t\t\t\t},\n\t\t\t});\n\t\t});\n\t}\n\n\tstatic get isDataTypeClass() {\n\t\treturn true;\n\t}\n}\n\nexport default DataType;\n"]}
1
+ {"version":3,"file":"DataType.js","sourceRoot":"","sources":["../../src/types/DataType.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,QAAQ;IACb;;;OAGG;IACH,2BAA2B;IAC3B,MAAM,CAAC,OAAO,CAAC,KAAU;QACxB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,cAA6B;QACvD,OAAO,cAAc,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,aAA4B;QACtD,OAAO,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,MAAW,EAAE,MAAW;QAC7C,OAAO,MAAM,KAAK,MAAM,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,qBAAqB,CAAC,KAA6B;QACzD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACjC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE;gBACjC,GAAG;oBACF,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;aACD,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,eAAe;QACzB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import { PropertyValue } from \"../UI5ElementMetadata.js\";\n\n/**\n * @class\n * Base class for all data types.\n *\n * @public\n */\nclass DataType {\n\t/**\n\t * Checks if the value is valid for its data type.\n \t * @public\n\t */\n\t// eslint-disable-next-line\n\tstatic isValid(value: any): boolean {\n\t\treturn false;\n\t}\n\n\tstatic attributeToProperty(attributeValue: string | null): PropertyValue {\n\t\treturn attributeValue;\n\t}\n\n\tstatic propertyToAttribute(propertyValue: PropertyValue): string | null {\n\t\treturn propertyValue === null ? null : String(propertyValue);\n\t}\n\n\tstatic valuesAreEqual(value1: any, value2: any) {\n\t\treturn value1 === value2;\n\t}\n\n\tstatic generateTypeAccessors(types: Record<string, string>) {\n\t\tObject.keys(types).forEach(type => {\n\t\t\tObject.defineProperty(this, type, {\n\t\t\t\tget() {\n\t\t\t\t\treturn types[type];\n\t\t\t\t},\n\t\t\t});\n\t\t});\n\t}\n\n\tstatic get isDataTypeClass() {\n\t\treturn true;\n\t}\n}\n\nexport default DataType;\n"]}
@@ -5,9 +5,6 @@ import DataType from "./DataType.js";
5
5
  * Float data type.
6
6
  *
7
7
  * @constructor
8
- * @extends sap.ui.webc.base.types.DataType
9
- * @author SAP SE
10
- * @alias sap.ui.webc.base.types.Float
11
8
  * @public
12
9
  */
13
10
  declare class Float extends DataType {
@@ -4,9 +4,6 @@ import DataType from "./DataType.js";
4
4
  * Float data type.
5
5
  *
6
6
  * @constructor
7
- * @extends sap.ui.webc.base.types.DataType
8
- * @author SAP SE
9
- * @alias sap.ui.webc.base.types.Float
10
7
  * @public
11
8
  */
12
9
  class Float extends DataType {
@@ -1 +1 @@
1
- {"version":3,"file":"Float.js","sourceRoot":"","sources":["../../src/types/Float.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,KAAM,SAAQ,QAAQ;IAC3B,MAAM,CAAU,OAAO,CAAC,KAAU;QACjC,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,cAAsB;QACzD,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC;CACD;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Float data type.\n *\n * @constructor\n * @extends sap.ui.webc.base.types.DataType\n * @author SAP SE\n * @alias sap.ui.webc.base.types.Float\n * @public\n */\nclass Float extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number(value) === value;\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseFloat(attributeValue);\n\t}\n}\n\nexport default Float;\n"]}
1
+ {"version":3,"file":"Float.js","sourceRoot":"","sources":["../../src/types/Float.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,KAAM,SAAQ,QAAQ;IAC3B,MAAM,CAAU,OAAO,CAAC,KAAU;QACjC,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,cAAsB;QACzD,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC;CACD;AAED,eAAe,KAAK,CAAC","sourcesContent":["import { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Float data type.\n *\n * @constructor\n * @public\n */\nclass Float extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number(value) === value;\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseFloat(attributeValue);\n\t}\n}\n\nexport default Float;\n"]}
@@ -5,9 +5,6 @@ import DataType from "./DataType.js";
5
5
  * Integer data type.
6
6
  *
7
7
  * @constructor
8
- * @extends sap.ui.webc.base.types.DataType
9
- * @author SAP SE
10
- * @alias sap.ui.webc.base.types.Integer
11
8
  * @public
12
9
  */
13
10
  declare class Integer extends DataType {
@@ -4,9 +4,6 @@ import DataType from "./DataType.js";
4
4
  * Integer data type.
5
5
  *
6
6
  * @constructor
7
- * @extends sap.ui.webc.base.types.DataType
8
- * @author SAP SE
9
- * @alias sap.ui.webc.base.types.Integer
10
7
  * @public
11
8
  */
12
9
  class Integer extends DataType {
@@ -1 +1 @@
1
- {"version":3,"file":"Integer.js","sourceRoot":"","sources":["../../src/types/Integer.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,OAAQ,SAAQ,QAAQ;IAC7B,MAAM,CAAU,OAAO,CAAC,KAAU;QACjC,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,cAAsB;QACzD,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC;CACD;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Integer data type.\n *\n * @constructor\n * @extends sap.ui.webc.base.types.DataType\n * @author SAP SE\n * @alias sap.ui.webc.base.types.Integer\n * @public\n */\nclass Integer extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number.isInteger(value);\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseInt(attributeValue);\n\t}\n}\n\nexport default Integer;\n"]}
1
+ {"version":3,"file":"Integer.js","sourceRoot":"","sources":["../../src/types/Integer.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,OAAQ,SAAQ,QAAQ;IAC7B,MAAM,CAAU,OAAO,CAAC,KAAU;QACjC,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,cAAsB;QACzD,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC;CACD;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Integer data type.\n *\n * @constructor\n * @public\n */\nclass Integer extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number.isInteger(value);\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseInt(attributeValue);\n\t}\n}\n\nexport default Integer;\n"]}
@@ -1,25 +1,20 @@
1
1
  /**
2
2
  * Enumeration for different mode behaviors of the InvisibleMessage.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.InvisibleMessageMode
9
5
  */
10
- declare enum InvisibleMessageMode {
6
+ declare const InvisibleMessageMode: {
11
7
  /**
12
8
  * Indicates that updates to the region should be presented at the next graceful opportunity,
13
9
  * such as at the end of reading the current sentence, or when the user pauses typing.
14
10
  * @public
15
- * @type {Polite}
16
11
  */
17
- Polite = "Polite",
12
+ readonly Polite: "Polite";
18
13
  /**
19
14
  * Indicates that updates to the region have the highest priority and should be presented to the user immediately.
20
15
  * @public
21
- * @type {Assertive}
22
16
  */
23
- Assertive = "Assertive"
24
- }
17
+ readonly Assertive: "Assertive";
18
+ };
19
+ type InvisibleMessageMode = typeof InvisibleMessageMode[keyof typeof InvisibleMessageMode];
25
20
  export default InvisibleMessageMode;
@@ -1,27 +1,20 @@
1
1
  /**
2
2
  * Enumeration for different mode behaviors of the InvisibleMessage.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.InvisibleMessageMode
9
5
  */
10
- var InvisibleMessageMode;
11
- (function (InvisibleMessageMode) {
6
+ const InvisibleMessageMode = {
12
7
  /**
13
8
  * Indicates that updates to the region should be presented at the next graceful opportunity,
14
9
  * such as at the end of reading the current sentence, or when the user pauses typing.
15
10
  * @public
16
- * @type {Polite}
17
11
  */
18
- InvisibleMessageMode["Polite"] = "Polite";
12
+ Polite: "Polite",
19
13
  /**
20
14
  * Indicates that updates to the region have the highest priority and should be presented to the user immediately.
21
15
  * @public
22
- * @type {Assertive}
23
16
  */
24
- InvisibleMessageMode["Assertive"] = "Assertive";
25
- })(InvisibleMessageMode || (InvisibleMessageMode = {}));
17
+ Assertive: "Assertive",
18
+ };
26
19
  export default InvisibleMessageMode;
27
20
  //# sourceMappingURL=InvisibleMessageMode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvisibleMessageMode.js","sourceRoot":"","sources":["../../src/types/InvisibleMessageMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,IAAK,oBAeJ;AAfD,WAAK,oBAAoB;IACxB;;;;;OAKM;IACN,yCAAiB,CAAA;IAEjB;;;;OAIM;IACN,+CAAuB,CAAA;AACxB,CAAC,EAfI,oBAAoB,KAApB,oBAAoB,QAexB;AAED,eAAe,oBAAoB,CAAC","sourcesContent":["/**\n * Enumeration for different mode behaviors of the InvisibleMessage.\n *\n * @readonly\n * @enum {string}\n * @public\n * @author SAP SE\n * @alias sap.ui.webc.base.types.InvisibleMessageMode\n */\nenum InvisibleMessageMode {\n\t/**\n * Indicates that updates to the region should be presented at the next graceful opportunity,\n * such as at the end of reading the current sentence, or when the user pauses typing.\n\t * @public\n\t * @type {Polite}\n */\n\tPolite = \"Polite\",\n\n\t/**\n * Indicates that updates to the region have the highest priority and should be presented to the user immediately.\n\t * @public\n\t * @type {Assertive}\n */\n\tAssertive = \"Assertive\",\n}\n\nexport default InvisibleMessageMode;\n"]}
1
+ {"version":3,"file":"InvisibleMessageMode.js","sourceRoot":"","sources":["../../src/types/InvisibleMessageMode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,oBAAoB,GAAG;IAC5B;;;;OAIM;IACN,MAAM,EAAE,QAAQ;IAEhB;;;OAGM;IACN,SAAS,EAAE,WAAW;CACb,CAAC;AAIX,eAAe,oBAAoB,CAAC","sourcesContent":["/**\n * Enumeration for different mode behaviors of the InvisibleMessage.\n *\n * @public\n */\nconst InvisibleMessageMode = {\n\t/**\n * Indicates that updates to the region should be presented at the next graceful opportunity,\n * such as at the end of reading the current sentence, or when the user pauses typing.\n\t * @public\n */\n\tPolite: \"Polite\",\n\n\t/**\n * Indicates that updates to the region have the highest priority and should be presented to the user immediately.\n\t * @public\n */\n\tAssertive: \"Assertive\",\n} as const;\n\ntype InvisibleMessageMode = typeof InvisibleMessageMode[keyof typeof InvisibleMessageMode];\n\nexport default InvisibleMessageMode;\n"]}
@@ -1,23 +1,17 @@
1
1
  /**
2
2
  * Different behavior for ItemNavigation.
3
3
  *
4
- * @readonly
5
- * @enum {string}
6
4
  * @public
7
- * @author SAP SE
8
- * @alias sap.ui.webc.base.types.ItemNavigationBehavior
9
5
  */
10
6
  declare enum ItemNavigationBehavior {
11
7
  /**
12
8
  * Static behavior: navigations stops at the first or last item.
13
9
  * @public
14
- * @type {Static}
15
10
  */
16
11
  Static = "Static",
17
12
  /**
18
13
  * Cycling behavior: navigating past the last item continues with the first and vice versa.
19
14
  * @public
20
- * @type {Cyclic}
21
15
  */
22
16
  Cyclic = "Cyclic"
23
17
  }