@ui5/webcomponents-base 0.0.0-ca2fa23d3 → 0.0.0-cad512aa3

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 (740) hide show
  1. package/.eslintignore +6 -0
  2. package/CHANGELOG.md +660 -0
  3. package/README.md +53 -7
  4. package/bundle.esm.js +32 -26
  5. package/dist/AssetRegistry.d.ts +5 -0
  6. package/dist/AssetRegistry.js +6 -9
  7. package/dist/AssetRegistry.js.map +1 -0
  8. package/dist/Boot.d.ts +9 -0
  9. package/dist/Boot.js +71 -0
  10. package/dist/Boot.js.map +1 -0
  11. package/dist/CSP.d.ts +30 -0
  12. package/dist/CSP.js +51 -0
  13. package/dist/CSP.js.map +1 -0
  14. package/dist/CustomElementsRegistry.d.ts +5 -0
  15. package/dist/CustomElementsRegistry.js +78 -0
  16. package/dist/CustomElementsRegistry.js.map +1 -0
  17. package/dist/CustomElementsScope.d.ts +7 -0
  18. package/dist/CustomElementsScope.js +11 -0
  19. package/dist/CustomElementsScope.js.map +1 -0
  20. package/dist/CustomElementsScopeUtils.d.ts +55 -0
  21. package/dist/CustomElementsScopeUtils.js +90 -0
  22. package/dist/CustomElementsScopeUtils.js.map +1 -0
  23. package/dist/DOMObserver.d.ts +11 -0
  24. package/dist/DOMObserver.js +23 -0
  25. package/dist/DOMObserver.js.map +1 -0
  26. package/dist/Device.d.ts +12 -0
  27. package/dist/Device.js +159 -816
  28. package/dist/Device.js.map +1 -0
  29. package/dist/EventProvider.d.ts +25 -0
  30. package/dist/EventProvider.js +67 -70
  31. package/dist/EventProvider.js.map +1 -0
  32. package/dist/FeaturesRegistry.d.ts +3 -0
  33. package/dist/FeaturesRegistry.js +5 -7
  34. package/dist/FeaturesRegistry.js.map +1 -0
  35. package/dist/FontFace.d.ts +2 -0
  36. package/dist/FontFace.js +22 -63
  37. package/dist/FontFace.js.map +1 -0
  38. package/dist/InitialConfiguration.d.ts +22 -0
  39. package/dist/InitialConfiguration.js +123 -102
  40. package/dist/InitialConfiguration.js.map +1 -0
  41. package/dist/Keys.d.ts +57 -0
  42. package/dist/Keys.js +178 -0
  43. package/dist/Keys.js.map +1 -0
  44. package/dist/ManagedStyles.d.ts +8 -0
  45. package/dist/ManagedStyles.js +77 -0
  46. package/dist/ManagedStyles.js.map +1 -0
  47. package/dist/MarkedEvents.d.ts +9 -0
  48. package/dist/MarkedEvents.js +15 -0
  49. package/dist/MarkedEvents.js.map +1 -0
  50. package/dist/MediaRange.d.ts +37 -0
  51. package/dist/MediaRange.js +98 -0
  52. package/dist/MediaRange.js.map +1 -0
  53. package/dist/PropertiesFileFormat.d.ts +8 -0
  54. package/dist/PropertiesFileFormat.js +85 -0
  55. package/dist/PropertiesFileFormat.js.map +1 -0
  56. package/dist/Render.d.ts +47 -0
  57. package/dist/Render.js +143 -0
  58. package/dist/Render.js.map +1 -0
  59. package/dist/RenderQueue.d.ts +19 -0
  60. package/dist/RenderQueue.js +53 -39
  61. package/dist/RenderQueue.js.map +1 -0
  62. package/dist/Runtimes.d.ts +27 -0
  63. package/dist/Runtimes.js +86 -0
  64. package/dist/Runtimes.js.map +1 -0
  65. package/dist/StaticArea.d.ts +0 -0
  66. package/dist/StaticArea.js +6 -0
  67. package/dist/StaticArea.js.map +1 -0
  68. package/dist/StaticAreaItem.d.ts +36 -0
  69. package/dist/StaticAreaItem.js +99 -0
  70. package/dist/StaticAreaItem.js.map +1 -0
  71. package/dist/SystemCSSVars.d.ts +2 -0
  72. package/dist/SystemCSSVars.js +9 -0
  73. package/dist/SystemCSSVars.js.map +1 -0
  74. package/dist/Theming.d.ts +3 -0
  75. package/dist/Theming.js +4 -45
  76. package/dist/Theming.js.map +1 -0
  77. package/dist/UI5Element.d.ts +378 -0
  78. package/dist/UI5Element.js +940 -819
  79. package/dist/UI5Element.js.map +1 -0
  80. package/dist/UI5ElementMetadata.d.ts +150 -0
  81. package/dist/UI5ElementMetadata.js +278 -143
  82. package/dist/UI5ElementMetadata.js.map +1 -0
  83. package/dist/animations/AnimationQueue.d.ts +8 -0
  84. package/dist/animations/AnimationQueue.js +31 -38
  85. package/dist/animations/AnimationQueue.js.map +1 -0
  86. package/dist/animations/animate.d.ts +14 -0
  87. package/dist/animations/animate.js +46 -51
  88. package/dist/animations/animate.js.map +1 -0
  89. package/dist/animations/scroll.d.ts +5 -0
  90. package/dist/animations/scroll.js +18 -27
  91. package/dist/animations/scroll.js.map +1 -0
  92. package/dist/animations/slideDown.d.ts +5 -0
  93. package/dist/animations/slideDown.js +53 -78
  94. package/dist/animations/slideDown.js.map +1 -0
  95. package/dist/animations/slideUp.d.ts +5 -0
  96. package/dist/animations/slideUp.js +49 -70
  97. package/dist/animations/slideUp.js.map +1 -0
  98. package/dist/api.json +1 -0
  99. package/dist/asset-registries/Icons.d.ts +30 -0
  100. package/dist/asset-registries/Icons.js +104 -24
  101. package/dist/asset-registries/Icons.js.map +1 -0
  102. package/dist/asset-registries/Illustrations.d.ts +17 -0
  103. package/dist/asset-registries/Illustrations.js +46 -0
  104. package/dist/asset-registries/Illustrations.js.map +1 -0
  105. package/dist/asset-registries/LocaleData.d.ts +7 -0
  106. package/dist/asset-registries/LocaleData.js +127 -92
  107. package/dist/asset-registries/LocaleData.js.map +1 -0
  108. package/dist/asset-registries/Themes.d.ts +11 -0
  109. package/dist/asset-registries/Themes.js +42 -65
  110. package/dist/asset-registries/Themes.js.map +1 -0
  111. package/dist/asset-registries/i18n.d.ts +23 -0
  112. package/dist/asset-registries/i18n.js +84 -58
  113. package/dist/asset-registries/i18n.js.map +1 -0
  114. package/dist/assets/Boot.318259fc.js +9 -0
  115. package/dist/assets/Boot.34b7cea0.css +1 -0
  116. package/dist/assets/bundle.esm.a4578c3b.js +52 -0
  117. package/dist/assets-meta/IconCollectionsAlias.d.ts +31 -0
  118. package/dist/assets-meta/IconCollectionsAlias.js +38 -0
  119. package/dist/assets-meta/IconCollectionsAlias.js.map +1 -0
  120. package/dist/config/AnimationMode.d.ts +14 -0
  121. package/dist/config/AnimationMode.js +23 -6
  122. package/dist/config/AnimationMode.js.map +1 -0
  123. package/dist/config/CalendarType.d.ts +8 -0
  124. package/dist/config/CalendarType.js +15 -14
  125. package/dist/config/CalendarType.js.map +1 -0
  126. package/dist/config/FormatSettings.d.ts +15 -0
  127. package/dist/config/FormatSettings.js +16 -6
  128. package/dist/config/FormatSettings.js.map +1 -0
  129. package/dist/config/Icons.d.ts +55 -0
  130. package/dist/config/Icons.js +103 -0
  131. package/dist/config/Icons.js.map +1 -0
  132. package/dist/config/Language.d.ts +40 -0
  133. package/dist/config/Language.js +66 -7
  134. package/dist/config/Language.js.map +1 -0
  135. package/dist/config/NoConflict.d.ts +20 -0
  136. package/dist/config/NoConflict.js +40 -34
  137. package/dist/config/NoConflict.js.map +1 -0
  138. package/dist/config/RTL.d.ts +7 -0
  139. package/dist/config/RTL.js +26 -20
  140. package/dist/config/RTL.js.map +1 -0
  141. package/dist/config/Theme.d.ts +37 -0
  142. package/dist/config/Theme.js +58 -19
  143. package/dist/config/Theme.js.map +1 -0
  144. package/dist/config/ThemeRoots.d.ts +4 -0
  145. package/dist/config/ThemeRoots.js +28 -0
  146. package/dist/config/ThemeRoots.js.map +1 -0
  147. package/dist/css/BusyIndicator.css +80 -0
  148. package/dist/css/FontFace.css +66 -0
  149. package/dist/css/OverrideFontFace.css +32 -0
  150. package/dist/css/SystemCSSVars.css +17 -0
  151. package/dist/decorators/customElement.d.ts +23 -0
  152. package/dist/decorators/customElement.js +31 -0
  153. package/dist/decorators/customElement.js.map +1 -0
  154. package/dist/decorators/event.d.ts +10 -0
  155. package/dist/decorators/event.js +24 -0
  156. package/dist/decorators/event.js.map +1 -0
  157. package/dist/decorators/property.d.ts +9 -0
  158. package/dist/decorators/property.js +24 -0
  159. package/dist/decorators/property.js.map +1 -0
  160. package/dist/decorators/slot.d.ts +9 -0
  161. package/dist/decorators/slot.js +37 -0
  162. package/dist/decorators/slot.js.map +1 -0
  163. package/dist/delegate/ItemNavigation.d.ts +113 -0
  164. package/dist/delegate/ItemNavigation.js +312 -230
  165. package/dist/delegate/ItemNavigation.js.map +1 -0
  166. package/dist/delegate/ResizeHandler.d.ts +25 -0
  167. package/dist/delegate/ResizeHandler.js +82 -63
  168. package/dist/delegate/ResizeHandler.js.map +1 -0
  169. package/dist/delegate/ScrollEnablement.d.ts +49 -0
  170. package/dist/delegate/ScrollEnablement.js +159 -74
  171. package/dist/delegate/ScrollEnablement.js.map +1 -0
  172. package/dist/features/F6Navigation.d.ts +19 -0
  173. package/dist/features/F6Navigation.js +151 -0
  174. package/dist/features/F6Navigation.js.map +1 -0
  175. package/dist/features/LegacyDateFormats.d.ts +18 -0
  176. package/dist/features/LegacyDateFormats.js +20 -0
  177. package/dist/features/LegacyDateFormats.js.map +1 -0
  178. package/dist/features/OpenUI5Element.d.ts +9 -0
  179. package/dist/features/OpenUI5Element.js +5 -0
  180. package/dist/features/OpenUI5Element.js.map +1 -0
  181. package/dist/features/OpenUI5Enablement.d.ts +11 -0
  182. package/dist/features/OpenUI5Enablement.js +96 -0
  183. package/dist/features/OpenUI5Enablement.js.map +1 -0
  184. package/dist/features/OpenUI5Support.d.ts +25 -0
  185. package/dist/features/OpenUI5Support.js +98 -0
  186. package/dist/features/OpenUI5Support.js.map +1 -0
  187. package/dist/generated/AssetParameters.js +13 -0
  188. package/dist/generated/VersionInfo.js +10 -0
  189. package/dist/generated/css/BusyIndicator.css.d.ts +3 -0
  190. package/dist/generated/css/BusyIndicator.css.js +7 -0
  191. package/dist/generated/css/BusyIndicator.css.js.map +1 -0
  192. package/dist/generated/css/FontFace.css.d.ts +3 -0
  193. package/dist/generated/css/FontFace.css.js +7 -0
  194. package/dist/generated/css/FontFace.css.js.map +1 -0
  195. package/dist/generated/css/OverrideFontFace.css.d.ts +3 -0
  196. package/dist/generated/css/OverrideFontFace.css.js +7 -0
  197. package/dist/generated/css/OverrideFontFace.css.js.map +1 -0
  198. package/dist/generated/css/SystemCSSVars.css.d.ts +3 -0
  199. package/dist/generated/css/SystemCSSVars.css.js +7 -0
  200. package/dist/generated/css/SystemCSSVars.css.js.map +1 -0
  201. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js +11 -0
  202. package/dist/getSharedResource.d.ts +11 -0
  203. package/dist/getSharedResource.js +34 -0
  204. package/dist/getSharedResource.js.map +1 -0
  205. package/dist/global.d.ts +38 -0
  206. package/dist/i18nBundle.d.ts +43 -0
  207. package/dist/i18nBundle.js +73 -30
  208. package/dist/i18nBundle.js.map +1 -0
  209. package/dist/locale/Locale.d.ts +22 -0
  210. package/dist/locale/Locale.js +79 -0
  211. package/dist/locale/Locale.js.map +1 -0
  212. package/dist/locale/RTLAwareRegistry.d.ts +4 -0
  213. package/dist/locale/RTLAwareRegistry.js +9 -0
  214. package/dist/locale/RTLAwareRegistry.js.map +1 -0
  215. package/dist/locale/applyDirection.d.ts +10 -0
  216. package/dist/locale/applyDirection.js +17 -0
  217. package/dist/locale/applyDirection.js.map +1 -0
  218. package/dist/locale/directionChange.d.ts +15 -0
  219. package/dist/locale/directionChange.js +24 -0
  220. package/dist/locale/directionChange.js.map +1 -0
  221. package/dist/locale/getEffectiveDir.d.ts +2 -0
  222. package/dist/locale/getEffectiveDir.js +24 -0
  223. package/dist/locale/getEffectiveDir.js.map +1 -0
  224. package/dist/locale/getLocale.d.ts +7 -0
  225. package/dist/locale/getLocale.js +38 -0
  226. package/dist/locale/getLocale.js.map +1 -0
  227. package/dist/locale/languageChange.d.ts +5 -0
  228. package/dist/locale/languageChange.js +14 -0
  229. package/dist/locale/languageChange.js.map +1 -0
  230. package/dist/locale/nextFallbackLocale.d.ts +8 -0
  231. package/dist/locale/nextFallbackLocale.js +24 -0
  232. package/dist/locale/nextFallbackLocale.js.map +1 -0
  233. package/dist/locale/normalizeLocale.d.ts +7 -0
  234. package/dist/locale/normalizeLocale.js +47 -0
  235. package/dist/locale/normalizeLocale.js.map +1 -0
  236. package/dist/renderer/LitRenderer.d.ts +14 -0
  237. package/dist/renderer/LitRenderer.js +38 -12
  238. package/dist/renderer/LitRenderer.js.map +1 -0
  239. package/dist/renderer/directives/style-map.js +72 -0
  240. package/dist/renderer/executeTemplate.d.ts +13 -0
  241. package/dist/renderer/executeTemplate.js +30 -0
  242. package/dist/renderer/executeTemplate.js.map +1 -0
  243. package/dist/sap/base/Log.js +240 -0
  244. package/dist/sap/base/assert.js +7 -0
  245. package/dist/sap/base/security/URLListValidator.js +159 -0
  246. package/dist/sap/base/security/encodeCSS.js +14 -0
  247. package/dist/sap/base/security/encodeXML.js +23 -0
  248. package/dist/sap/base/security/sanitizeHTML.js +16 -0
  249. package/dist/sap/base/strings/toHex.js +8 -0
  250. package/dist/sap/base/util/now.js +7 -0
  251. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
  252. package/dist/theming/CustomStyle.d.ts +6 -0
  253. package/dist/theming/CustomStyle.js +46 -17
  254. package/dist/theming/CustomStyle.js.map +1 -0
  255. package/dist/theming/ThemeLoaded.d.ts +5 -0
  256. package/dist/theming/ThemeLoaded.js +14 -0
  257. package/dist/theming/ThemeLoaded.js.map +1 -0
  258. package/dist/theming/ThemeRegistered.d.ts +4 -0
  259. package/dist/theming/ThemeRegistered.js +11 -0
  260. package/dist/theming/ThemeRegistered.js.map +1 -0
  261. package/dist/theming/applyTheme.d.ts +2 -0
  262. package/dist/theming/applyTheme.js +75 -0
  263. package/dist/theming/applyTheme.js.map +1 -0
  264. package/dist/theming/getConstructableStyle.d.ts +9 -0
  265. package/dist/theming/getConstructableStyle.js +25 -0
  266. package/dist/theming/getConstructableStyle.js.map +1 -0
  267. package/dist/theming/getEffectiveLinksHrefs.d.ts +3 -0
  268. package/dist/theming/getEffectiveLinksHrefs.js +17 -0
  269. package/dist/theming/getEffectiveLinksHrefs.js.map +1 -0
  270. package/dist/theming/getEffectiveStyle.d.ts +3 -0
  271. package/dist/theming/getEffectiveStyle.js +32 -0
  272. package/dist/theming/getEffectiveStyle.js.map +1 -0
  273. package/dist/theming/getStylesString.d.ts +3 -0
  274. package/dist/theming/getStylesString.js +11 -0
  275. package/dist/theming/getStylesString.js.map +1 -0
  276. package/dist/theming/getThemeDesignerTheme.d.ts +7 -0
  277. package/dist/theming/getThemeDesignerTheme.js +80 -0
  278. package/dist/theming/getThemeDesignerTheme.js.map +1 -0
  279. package/dist/theming/preloadLinks.d.ts +3 -0
  280. package/dist/theming/preloadLinks.js +19 -0
  281. package/dist/theming/preloadLinks.js.map +1 -0
  282. package/dist/thirdparty/_merge.d.ts +2 -0
  283. package/dist/thirdparty/_merge.js +35 -0
  284. package/dist/thirdparty/_merge.js.map +1 -0
  285. package/dist/thirdparty/isPlainObject.d.ts +2 -0
  286. package/dist/thirdparty/isPlainObject.js +19 -0
  287. package/dist/thirdparty/isPlainObject.js.map +1 -0
  288. package/dist/thirdparty/merge.d.ts +2 -0
  289. package/dist/thirdparty/merge.js +6 -0
  290. package/dist/thirdparty/merge.js.map +1 -0
  291. package/dist/types/AnimationMode.d.ts +32 -0
  292. package/dist/types/AnimationMode.js +33 -6
  293. package/dist/types/AnimationMode.js.map +1 -0
  294. package/dist/types/CSSColor.d.ts +15 -0
  295. package/dist/types/CSSColor.js +18 -0
  296. package/dist/types/CSSColor.js.map +1 -0
  297. package/dist/types/CalendarType.d.ts +37 -0
  298. package/dist/types/CalendarType.js +39 -0
  299. package/dist/types/CalendarType.js.map +1 -0
  300. package/dist/types/DOMReference.d.ts +17 -0
  301. package/dist/types/DOMReference.js +25 -0
  302. package/dist/types/DOMReference.js.map +1 -0
  303. package/dist/types/DataType.d.ts +25 -0
  304. package/dist/types/DataType.js +33 -14
  305. package/dist/types/DataType.js.map +1 -0
  306. package/dist/types/Float.d.ts +17 -0
  307. package/dist/types/Float.js +21 -0
  308. package/dist/types/Float.js.map +1 -0
  309. package/dist/types/Integer.d.ts +17 -0
  310. package/dist/types/Integer.js +17 -5
  311. package/dist/types/Integer.js.map +1 -0
  312. package/dist/types/InvisibleMessageMode.d.ts +25 -0
  313. package/dist/types/InvisibleMessageMode.js +27 -0
  314. package/dist/types/InvisibleMessageMode.js.map +1 -0
  315. package/dist/types/ItemNavigationBehavior.d.ts +24 -0
  316. package/dist/types/ItemNavigationBehavior.js +22 -17
  317. package/dist/types/ItemNavigationBehavior.js.map +1 -0
  318. package/dist/types/NavigationMode.d.ts +32 -0
  319. package/dist/types/NavigationMode.js +33 -5
  320. package/dist/types/NavigationMode.js.map +1 -0
  321. package/dist/types/ValueState.d.ts +42 -0
  322. package/dist/types/ValueState.js +41 -18
  323. package/dist/types/ValueState.js.map +1 -0
  324. package/dist/types.d.ts +18 -0
  325. package/dist/types.js +2 -0
  326. package/dist/types.js.map +1 -0
  327. package/dist/updateShadowRoot.d.ts +8 -0
  328. package/dist/updateShadowRoot.js +38 -0
  329. package/dist/updateShadowRoot.js.map +1 -0
  330. package/dist/util/AriaLabelHelper.d.ts +15 -0
  331. package/dist/util/AriaLabelHelper.js +171 -0
  332. package/dist/util/AriaLabelHelper.js.map +1 -0
  333. package/dist/util/Caret.d.ts +7 -0
  334. package/dist/util/Caret.js +23 -0
  335. package/dist/util/Caret.js.map +1 -0
  336. package/dist/util/ColorConversion.d.ts +30 -0
  337. package/dist/util/ColorConversion.js +337 -0
  338. package/dist/util/ColorConversion.js.map +1 -0
  339. package/dist/util/FetchHelper.d.ts +3 -0
  340. package/dist/util/FetchHelper.js +19 -25
  341. package/dist/util/FetchHelper.js.map +1 -0
  342. package/dist/util/FocusableElements.d.ts +4 -0
  343. package/dist/util/FocusableElements.js +67 -56
  344. package/dist/util/FocusableElements.js.map +1 -0
  345. package/dist/util/HTMLSanitizer.d.ts +3 -0
  346. package/dist/util/HTMLSanitizer.js +6 -0
  347. package/dist/util/HTMLSanitizer.js.map +1 -0
  348. package/dist/util/InvisibleMessage.d.ts +10 -0
  349. package/dist/util/InvisibleMessage.js +56 -0
  350. package/dist/util/InvisibleMessage.js.map +1 -0
  351. package/dist/util/PopupUtils.d.ts +7 -0
  352. package/dist/util/PopupUtils.js +74 -0
  353. package/dist/util/PopupUtils.js.map +1 -0
  354. package/dist/util/SlotsHelper.d.ts +9 -0
  355. package/dist/util/SlotsHelper.js +30 -0
  356. package/dist/util/SlotsHelper.js.map +1 -0
  357. package/dist/util/StringHelper.d.ts +3 -0
  358. package/dist/util/StringHelper.js +21 -9
  359. package/dist/util/StringHelper.js.map +1 -0
  360. package/dist/util/TabbableElements.d.ts +17 -0
  361. package/dist/util/TabbableElements.js +53 -40
  362. package/dist/util/TabbableElements.js.map +1 -0
  363. package/dist/util/arraysAreEqual.d.ts +2 -0
  364. package/dist/util/arraysAreEqual.js +13 -0
  365. package/dist/util/arraysAreEqual.js.map +1 -0
  366. package/dist/util/clamp.d.ts +9 -0
  367. package/dist/util/clamp.js +12 -0
  368. package/dist/util/clamp.js.map +1 -0
  369. package/dist/util/createLinkInHead.d.ts +7 -0
  370. package/dist/util/createLinkInHead.js +21 -0
  371. package/dist/util/createLinkInHead.js.map +1 -0
  372. package/dist/util/createStyleInHead.d.ts +8 -0
  373. package/dist/util/createStyleInHead.js +10 -10
  374. package/dist/util/createStyleInHead.js.map +1 -0
  375. package/dist/util/debounce.d.ts +2 -0
  376. package/dist/util/debounce.js +15 -0
  377. package/dist/util/debounce.js.map +1 -0
  378. package/dist/util/detectNavigatorLanguage.d.ts +2 -0
  379. package/dist/util/detectNavigatorLanguage.js +8 -9
  380. package/dist/util/detectNavigatorLanguage.js.map +1 -0
  381. package/dist/util/escapeRegex.d.ts +8 -0
  382. package/dist/util/escapeRegex.js +11 -0
  383. package/dist/util/escapeRegex.js.map +1 -0
  384. package/dist/util/formatMessage.d.ts +2 -0
  385. package/dist/util/formatMessage.js +15 -19
  386. package/dist/util/formatMessage.js.map +1 -0
  387. package/dist/util/generateHighlightedMarkup.d.ts +9 -0
  388. package/dist/util/generateHighlightedMarkup.js +41 -0
  389. package/dist/util/generateHighlightedMarkup.js.map +1 -0
  390. package/dist/util/getActiveElement.d.ts +2 -0
  391. package/dist/util/getActiveElement.js +9 -0
  392. package/dist/util/getActiveElement.js.map +1 -0
  393. package/dist/util/getClassCopy.d.ts +398 -0
  394. package/dist/util/getClassCopy.js +10 -0
  395. package/dist/util/getClassCopy.js.map +1 -0
  396. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -0
  397. package/dist/util/getDesigntimePropertyAsArray.js +4 -3
  398. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -0
  399. package/dist/util/getEffectiveContentDensity.d.ts +2 -0
  400. package/dist/util/getEffectiveContentDensity.js +4 -0
  401. package/dist/util/getEffectiveContentDensity.js.map +1 -0
  402. package/dist/util/getEffectiveScrollbarStyle.d.ts +2 -0
  403. package/dist/util/getEffectiveScrollbarStyle.js +4 -0
  404. package/dist/util/getEffectiveScrollbarStyle.js.map +1 -0
  405. package/dist/util/getFastNavigationGroups.d.ts +2 -0
  406. package/dist/util/getFastNavigationGroups.js +51 -0
  407. package/dist/util/getFastNavigationGroups.js.map +1 -0
  408. package/dist/util/getFileExtension.d.ts +12 -0
  409. package/dist/util/getFileExtension.js +19 -0
  410. package/dist/util/getFileExtension.js.map +1 -0
  411. package/dist/util/getNormalizedTarget.d.ts +7 -0
  412. package/dist/util/getNormalizedTarget.js +14 -0
  413. package/dist/util/getNormalizedTarget.js.map +1 -0
  414. package/dist/util/getSingletonElementInstance.d.ts +2 -0
  415. package/dist/util/getSingletonElementInstance.js +10 -0
  416. package/dist/util/getSingletonElementInstance.js.map +1 -0
  417. package/dist/util/isElementClickable.d.ts +2 -0
  418. package/dist/util/isElementClickable.js +16 -0
  419. package/dist/util/isElementClickable.js.map +1 -0
  420. package/dist/util/isElementHidden.d.ts +2 -0
  421. package/dist/util/isElementHidden.js +8 -0
  422. package/dist/util/isElementHidden.js.map +1 -0
  423. package/dist/util/isElementInView.d.ts +6 -0
  424. package/dist/util/isElementInView.js +12 -0
  425. package/dist/util/isElementInView.js.map +1 -0
  426. package/dist/util/isElementTabbable.d.ts +9 -0
  427. package/dist/util/isElementTabbable.js +30 -0
  428. package/dist/util/isElementTabbable.js.map +1 -0
  429. package/dist/util/isValidPropertyName.d.ts +8 -0
  430. package/dist/util/isValidPropertyName.js +20 -12
  431. package/dist/util/isValidPropertyName.js.map +1 -0
  432. package/dist/util/whenDOMReady.d.ts +2 -0
  433. package/dist/util/whenDOMReady.js +11 -10
  434. package/dist/util/whenDOMReady.js.map +1 -0
  435. package/dist/util/willShowContent.d.ts +2 -0
  436. package/dist/util/willShowContent.js +7 -0
  437. package/dist/util/willShowContent.js.map +1 -0
  438. package/dist/validateThemeRoot.d.ts +2 -0
  439. package/dist/validateThemeRoot.js +47 -0
  440. package/dist/validateThemeRoot.js.map +1 -0
  441. package/index.js +1 -1
  442. package/lib/generate-asset-parameters/index.js +25 -0
  443. package/lib/generate-styles/index.js +31 -0
  444. package/lib/generate-version-info/index.js +32 -0
  445. package/package-scripts.js +53 -25
  446. package/package.json +22 -14
  447. package/src/css/BusyIndicator.css +80 -0
  448. package/src/css/FontFace.css +66 -0
  449. package/src/css/OverrideFontFace.css +32 -0
  450. package/src/css/SystemCSSVars.css +17 -0
  451. package/src/renderer/directives/style-map.js +72 -0
  452. package/tsconfig.json +14 -0
  453. package/used-modules.txt +10 -0
  454. package/bundle.es5.js +0 -31
  455. package/config/rollup.config.js +0 -1
  456. package/dist/Assets.js +0 -2
  457. package/dist/CSS.js +0 -48
  458. package/dist/ContentDensity.js +0 -20
  459. package/dist/FormatSettings.js +0 -31
  460. package/dist/Locale.js +0 -101
  461. package/dist/LocaleProvider.js +0 -34
  462. package/dist/RenderScheduler.js +0 -160
  463. package/dist/ResourceLoaderOverrides.js +0 -38
  464. package/dist/SVGIconRegistry.js +0 -54
  465. package/dist/animations/config.js +0 -5
  466. package/dist/boot.js +0 -25
  467. package/dist/compatibility/DOMObserver.js +0 -62
  468. package/dist/compatibility/patchNodeValue.js +0 -24
  469. package/dist/compatibility/whenPolyfillLoaded.js +0 -26
  470. package/dist/config/CompactSize.js +0 -23
  471. package/dist/dates/CalendarDate.js +0 -203
  472. package/dist/dates/CalendarType.js +0 -22
  473. package/dist/dates/CalendarUtils.js +0 -99
  474. package/dist/delegate/CustomResize.js +0 -78
  475. package/dist/delegate/NativeResize.js +0 -44
  476. package/dist/events/PseudoEvents.js +0 -58
  477. package/dist/features/browsersupport/Edge.js +0 -6
  478. package/dist/features/browsersupport/IE11.js +0 -41
  479. package/dist/features/calendar/Buddhist.js +0 -1
  480. package/dist/features/calendar/Islamic.js +0 -1
  481. package/dist/features/calendar/Japanese.js +0 -1
  482. package/dist/features/calendar/Persian.js +0 -1
  483. package/dist/generated/assets/cldr/sap/ui/core/cldr/ar.json +0 -5598
  484. package/dist/generated/assets/cldr/sap/ui/core/cldr/ar_EG.json +0 -5598
  485. package/dist/generated/assets/cldr/sap/ui/core/cldr/ar_SA.json +0 -5598
  486. package/dist/generated/assets/cldr/sap/ui/core/cldr/bg.json +0 -4789
  487. package/dist/generated/assets/cldr/sap/ui/core/cldr/ca.json +0 -4801
  488. package/dist/generated/assets/cldr/sap/ui/core/cldr/cs.json +0 -5245
  489. package/dist/generated/assets/cldr/sap/ui/core/cldr/da.json +0 -4696
  490. package/dist/generated/assets/cldr/sap/ui/core/cldr/de.json +0 -4797
  491. package/dist/generated/assets/cldr/sap/ui/core/cldr/de_AT.json +0 -4798
  492. package/dist/generated/assets/cldr/sap/ui/core/cldr/de_CH.json +0 -4796
  493. package/dist/generated/assets/cldr/sap/ui/core/cldr/el.json +0 -4694
  494. package/dist/generated/assets/cldr/sap/ui/core/cldr/el_CY.json +0 -4694
  495. package/dist/generated/assets/cldr/sap/ui/core/cldr/en.json +0 -4777
  496. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_AU.json +0 -4769
  497. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_GB.json +0 -4778
  498. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_HK.json +0 -4784
  499. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_IE.json +0 -4778
  500. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_IN.json +0 -4779
  501. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_NZ.json +0 -4778
  502. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_PG.json +0 -4779
  503. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_SG.json +0 -4780
  504. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_ZA.json +0 -4779
  505. package/dist/generated/assets/cldr/sap/ui/core/cldr/es.json +0 -4719
  506. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_AR.json +0 -4721
  507. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_BO.json +0 -4720
  508. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_CL.json +0 -4721
  509. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_CO.json +0 -4721
  510. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_MX.json +0 -4722
  511. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_PE.json +0 -4720
  512. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_UY.json +0 -4722
  513. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_VE.json +0 -4721
  514. package/dist/generated/assets/cldr/sap/ui/core/cldr/et.json +0 -4776
  515. package/dist/generated/assets/cldr/sap/ui/core/cldr/fa.json +0 -4704
  516. package/dist/generated/assets/cldr/sap/ui/core/cldr/fi.json +0 -4816
  517. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr.json +0 -4788
  518. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_BE.json +0 -4788
  519. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_CA.json +0 -4782
  520. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_CH.json +0 -4806
  521. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_LU.json +0 -4788
  522. package/dist/generated/assets/cldr/sap/ui/core/cldr/he.json +0 -5133
  523. package/dist/generated/assets/cldr/sap/ui/core/cldr/hi.json +0 -4680
  524. package/dist/generated/assets/cldr/sap/ui/core/cldr/hr.json +0 -4910
  525. package/dist/generated/assets/cldr/sap/ui/core/cldr/hu.json +0 -4664
  526. package/dist/generated/assets/cldr/sap/ui/core/cldr/id.json +0 -4500
  527. package/dist/generated/assets/cldr/sap/ui/core/cldr/it.json +0 -4757
  528. package/dist/generated/assets/cldr/sap/ui/core/cldr/it_CH.json +0 -4757
  529. package/dist/generated/assets/cldr/sap/ui/core/cldr/ja.json +0 -4599
  530. package/dist/generated/assets/cldr/sap/ui/core/cldr/kk.json +0 -4537
  531. package/dist/generated/assets/cldr/sap/ui/core/cldr/ko.json +0 -4574
  532. package/dist/generated/assets/cldr/sap/ui/core/cldr/lt.json +0 -5234
  533. package/dist/generated/assets/cldr/sap/ui/core/cldr/lv.json +0 -4902
  534. package/dist/generated/assets/cldr/sap/ui/core/cldr/ms.json +0 -4352
  535. package/dist/generated/assets/cldr/sap/ui/core/cldr/nb.json +0 -4784
  536. package/dist/generated/assets/cldr/sap/ui/core/cldr/nl.json +0 -4790
  537. package/dist/generated/assets/cldr/sap/ui/core/cldr/nl_BE.json +0 -4790
  538. package/dist/generated/assets/cldr/sap/ui/core/cldr/pl.json +0 -5223
  539. package/dist/generated/assets/cldr/sap/ui/core/cldr/pt.json +0 -4703
  540. package/dist/generated/assets/cldr/sap/ui/core/cldr/pt_PT.json +0 -4753
  541. package/dist/generated/assets/cldr/sap/ui/core/cldr/ro.json +0 -4881
  542. package/dist/generated/assets/cldr/sap/ui/core/cldr/ru.json +0 -5157
  543. package/dist/generated/assets/cldr/sap/ui/core/cldr/ru_UA.json +0 -5157
  544. package/dist/generated/assets/cldr/sap/ui/core/cldr/sk.json +0 -5125
  545. package/dist/generated/assets/cldr/sap/ui/core/cldr/sl.json +0 -5105
  546. package/dist/generated/assets/cldr/sap/ui/core/cldr/sr.json +0 -4908
  547. package/dist/generated/assets/cldr/sap/ui/core/cldr/sv.json +0 -4818
  548. package/dist/generated/assets/cldr/sap/ui/core/cldr/th.json +0 -4633
  549. package/dist/generated/assets/cldr/sap/ui/core/cldr/tr.json +0 -4791
  550. package/dist/generated/assets/cldr/sap/ui/core/cldr/uk.json +0 -5126
  551. package/dist/generated/assets/cldr/sap/ui/core/cldr/vi.json +0 -4510
  552. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_CN.json +0 -4469
  553. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_HK.json +0 -4479
  554. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_SG.json +0 -4479
  555. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_TW.json +0 -4565
  556. package/dist/json-imports/LocaleData.js +0 -171
  557. package/dist/renderer/ifDefined.js +0 -21
  558. package/dist/resources/bundle.es5.js +0 -12581
  559. package/dist/resources/bundle.es5.js.map +0 -1
  560. package/dist/resources/bundle.esm.js +0 -7401
  561. package/dist/resources/bundle.esm.js.map +0 -1
  562. package/dist/shims/Core-shim.js +0 -52
  563. package/dist/shims/jquery-shim.js +0 -89
  564. package/dist/test-resources/assets/Themes.js +0 -11
  565. package/dist/test-resources/elements/Child.js +0 -35
  566. package/dist/test-resources/elements/DensityAware.js +0 -14
  567. package/dist/test-resources/elements/Generic.js +0 -83
  568. package/dist/test-resources/elements/GenericExt.js +0 -26
  569. package/dist/test-resources/elements/NoShadowDOM.js +0 -13
  570. package/dist/test-resources/elements/Parent.js +0 -36
  571. package/dist/test-resources/pages/AllTestElements.html +0 -42
  572. package/dist/test-resources/pages/Configuration.html +0 -20
  573. package/dist/test-resources/pages/ConfigurationScript.html +0 -37
  574. package/dist/test-resources/specs/ConfigurationChange.spec.js +0 -34
  575. package/dist/test-resources/specs/ConfigurationScript.spec.js +0 -69
  576. package/dist/test-resources/specs/ConfigurationURL.spec.js +0 -53
  577. package/dist/test-resources/specs/CustomTheme.spec.js +0 -25
  578. package/dist/test-resources/specs/Theming.spec.js +0 -31
  579. package/dist/test-resources/specs/UI5ElementDensityAware.spec.js +0 -51
  580. package/dist/test-resources/specs/UI5ElementInvalidation.js +0 -258
  581. package/dist/test-resources/specs/UI5ElementLifecycle.js +0 -93
  582. package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +0 -101
  583. package/dist/test-resources/specs/UI5ElementMetadataExt.js +0 -40
  584. package/dist/test-resources/specs/UI5ElementPropertyValidation.js +0 -12
  585. package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +0 -65
  586. package/dist/test-resources/specs/UI5ElementShadowDOM.js +0 -22
  587. package/dist/test-resources/specs/UI5ElementSlots.js +0 -34
  588. package/dist/theming/StyleInjection.js +0 -67
  589. package/dist/thirdparty/Array.from.js +0 -16
  590. package/dist/thirdparty/Array.prototype.fill.js +0 -44
  591. package/dist/thirdparty/Array.prototype.find.js +0 -46
  592. package/dist/thirdparty/Array.prototype.includes.js +0 -51
  593. package/dist/thirdparty/Element.prototype.closest.js +0 -11
  594. package/dist/thirdparty/Element.prototype.matches.js +0 -6
  595. package/dist/thirdparty/Map.prototype.keys.js +0 -9
  596. package/dist/thirdparty/Number.isInteger.js +0 -5
  597. package/dist/thirdparty/Number.isNaN.js +0 -1
  598. package/dist/thirdparty/Number.parseInt.js +0 -1
  599. package/dist/thirdparty/Object.assign.js +0 -31
  600. package/dist/thirdparty/Object.entries.js +0 -11
  601. package/dist/thirdparty/Symbol.js +0 -2
  602. package/dist/thirdparty/WeakSet.js +0 -27
  603. package/dist/thirdparty/events-polyfills.js +0 -89
  604. package/dist/thirdparty/fetch.js +0 -1
  605. package/dist/thirdparty/template.js +0 -600
  606. package/dist/types/CSSSize.js +0 -9
  607. package/dist/types/PopupState.js +0 -37
  608. package/dist/util/CSSTransformUtils.js +0 -90
  609. package/dist/util/isDescendantOf.js +0 -15
  610. package/dist/util/isNodeClickable.js +0 -19
  611. package/dist/util/isNodeHidden.js +0 -13
  612. package/dist/util/isNodeTabbable.js +0 -28
  613. package/dist/util/normalizeLocale.js +0 -77
  614. package/dist/webcomponentsjs/LICENSE.md +0 -19
  615. package/dist/webcomponentsjs/README.md +0 -229
  616. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  617. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  618. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
  619. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  620. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
  621. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  622. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
  623. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  624. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  625. package/dist/webcomponentsjs/package.json +0 -46
  626. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  627. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  628. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  629. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  630. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  631. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  632. package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
  633. package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  634. package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
  635. package/src/AssetRegistry.js +0 -9
  636. package/src/Assets.js +0 -2
  637. package/src/CSS.js +0 -48
  638. package/src/ContentDensity.js +0 -20
  639. package/src/Device.js +0 -823
  640. package/src/EventProvider.js +0 -73
  641. package/src/FeaturesRegistry.js +0 -11
  642. package/src/FontFace.js +0 -66
  643. package/src/FormatSettings.js +0 -31
  644. package/src/InitialConfiguration.js +0 -126
  645. package/src/Locale.js +0 -101
  646. package/src/LocaleProvider.js +0 -34
  647. package/src/RenderQueue.js +0 -42
  648. package/src/RenderScheduler.js +0 -160
  649. package/src/ResourceLoaderOverrides.js +0 -38
  650. package/src/SVGIconRegistry.js +0 -54
  651. package/src/Theming.js +0 -45
  652. package/src/UI5Element.js +0 -834
  653. package/src/UI5ElementMetadata.js +0 -156
  654. package/src/animations/AnimationQueue.js +0 -42
  655. package/src/animations/animate.js +0 -53
  656. package/src/animations/config.js +0 -5
  657. package/src/animations/scroll.js +0 -28
  658. package/src/animations/slideDown.js +0 -79
  659. package/src/animations/slideUp.js +0 -71
  660. package/src/asset-registries/Icons.js +0 -24
  661. package/src/asset-registries/LocaleData.js +0 -101
  662. package/src/asset-registries/Themes.js +0 -75
  663. package/src/asset-registries/i18n.js +0 -75
  664. package/src/boot.js +0 -25
  665. package/src/compatibility/DOMObserver.js +0 -62
  666. package/src/compatibility/patchNodeValue.js +0 -24
  667. package/src/compatibility/whenPolyfillLoaded.js +0 -26
  668. package/src/config/AnimationMode.js +0 -9
  669. package/src/config/CalendarType.js +0 -18
  670. package/src/config/CompactSize.js +0 -23
  671. package/src/config/FormatSettings.js +0 -9
  672. package/src/config/Language.js +0 -9
  673. package/src/config/NoConflict.js +0 -44
  674. package/src/config/RTL.js +0 -31
  675. package/src/config/Theme.js +0 -24
  676. package/src/dates/CalendarDate.js +0 -203
  677. package/src/dates/CalendarType.js +0 -22
  678. package/src/dates/CalendarUtils.js +0 -99
  679. package/src/delegate/CustomResize.js +0 -78
  680. package/src/delegate/ItemNavigation.js +0 -234
  681. package/src/delegate/NativeResize.js +0 -44
  682. package/src/delegate/ResizeHandler.js +0 -66
  683. package/src/delegate/ScrollEnablement.js +0 -80
  684. package/src/events/PseudoEvents.js +0 -58
  685. package/src/features/browsersupport/Edge.js +0 -6
  686. package/src/features/browsersupport/IE11.js +0 -41
  687. package/src/features/calendar/Buddhist.js +0 -1
  688. package/src/features/calendar/Islamic.js +0 -1
  689. package/src/features/calendar/Japanese.js +0 -1
  690. package/src/features/calendar/Persian.js +0 -1
  691. package/src/i18nBundle.js +0 -35
  692. package/src/json-imports/LocaleData.js +0 -171
  693. package/src/renderer/LitRenderer.js +0 -15
  694. package/src/renderer/ifDefined.js +0 -21
  695. package/src/shims/Core-shim.js +0 -52
  696. package/src/shims/jquery-shim.js +0 -89
  697. package/src/theming/CustomStyle.js +0 -19
  698. package/src/theming/StyleInjection.js +0 -67
  699. package/src/thirdparty/Array.from.js +0 -16
  700. package/src/thirdparty/Array.prototype.fill.js +0 -44
  701. package/src/thirdparty/Array.prototype.find.js +0 -46
  702. package/src/thirdparty/Array.prototype.includes.js +0 -51
  703. package/src/thirdparty/Element.prototype.closest.js +0 -11
  704. package/src/thirdparty/Element.prototype.matches.js +0 -6
  705. package/src/thirdparty/Map.prototype.keys.js +0 -9
  706. package/src/thirdparty/Number.isInteger.js +0 -5
  707. package/src/thirdparty/Number.isNaN.js +0 -1
  708. package/src/thirdparty/Number.parseInt.js +0 -1
  709. package/src/thirdparty/Object.assign.js +0 -31
  710. package/src/thirdparty/Object.entries.js +0 -11
  711. package/src/thirdparty/Symbol.js +0 -2
  712. package/src/thirdparty/WeakSet.js +0 -27
  713. package/src/thirdparty/events-polyfills.js +0 -89
  714. package/src/thirdparty/fetch.js +0 -1
  715. package/src/thirdparty/template.js +0 -600
  716. package/src/types/AnimationMode.js +0 -7
  717. package/src/types/CSSSize.js +0 -9
  718. package/src/types/DataType.js +0 -25
  719. package/src/types/Integer.js +0 -9
  720. package/src/types/ItemNavigationBehavior.js +0 -21
  721. package/src/types/NavigationMode.js +0 -6
  722. package/src/types/PopupState.js +0 -37
  723. package/src/types/ValueState.js +0 -21
  724. package/src/util/CSSTransformUtils.js +0 -90
  725. package/src/util/FetchHelper.js +0 -31
  726. package/src/util/FocusableElements.js +0 -60
  727. package/src/util/StringHelper.js +0 -11
  728. package/src/util/TabbableElements.js +0 -44
  729. package/src/util/createStyleInHead.js +0 -18
  730. package/src/util/detectNavigatorLanguage.js +0 -11
  731. package/src/util/formatMessage.js +0 -23
  732. package/src/util/getDesigntimePropertyAsArray.js +0 -4
  733. package/src/util/isDescendantOf.js +0 -15
  734. package/src/util/isNodeClickable.js +0 -19
  735. package/src/util/isNodeHidden.js +0 -13
  736. package/src/util/isNodeTabbable.js +0 -28
  737. package/src/util/isValidPropertyName.js +0 -20
  738. package/src/util/normalizeLocale.js +0 -77
  739. package/src/util/whenDOMReady.js +0 -13
  740. /package/{config/.eslintrc.js → .eslintrc.js} +0 -0
@@ -1,90 +0,0 @@
1
- const findClosingParenthesisPos = (str, openingParenthesisPos) => {
2
- let opened = 1;
3
- for (let pos = openingParenthesisPos + 1; pos < str.length; pos++) {
4
- const char = str.charAt(pos);
5
- if (char === "(") {
6
- opened++;
7
- } else if (char === ")") {
8
- opened--;
9
- }
10
- if (opened === 0) {
11
- return pos;
12
- }
13
- }
14
- };
15
-
16
- const replaceSelector = (str, selector, selectorStartPos, replacement) => {
17
- const charAfterSelectorPos = selectorStartPos + selector.length;
18
- const charAfterSelector = str.charAt(charAfterSelectorPos);
19
-
20
- const upToSelector = str.substring(0, selectorStartPos) + replacement;
21
- if (charAfterSelector === "(") {
22
- const closingParenthesisPos = findClosingParenthesisPos(str, charAfterSelectorPos);
23
- return upToSelector + str.substring(charAfterSelectorPos + 1, closingParenthesisPos) + str.substring(closingParenthesisPos + 1);
24
- }
25
-
26
- return upToSelector + str.substring(charAfterSelectorPos);
27
- };
28
-
29
- /**
30
- * :host => ui5-button
31
- * :host([expr]) => ui5-button[expr]
32
- * ::slotted(expr) => expr
33
- * @param str - source string
34
- * @param selector - :host or ::slotted
35
- * @param replacement - normally tag name
36
- * @returns {*}
37
- */
38
- const replaceSelectors = (str, selector, replacement) => {
39
- let selectorStartPos = str.indexOf(selector);
40
- while (selectorStartPos !== -1) {
41
- str = replaceSelector(str, selector, selectorStartPos, replacement);
42
- selectorStartPos = str.indexOf(selector);
43
- }
44
- return str;
45
- };
46
-
47
- const adaptLinePart = (line, tag) => {
48
- line = line.trim();
49
- line = replaceSelectors(line, "::slotted", ``); // first remove all ::slotted() occurrences
50
-
51
- // Host selector - replace it
52
- if (line.startsWith(":host")) {
53
- return replaceSelector(line, ":host", 0, tag);
54
- }
55
-
56
- // Leave out @keyframes and keyframe values (0%, 100%, etc...)
57
- // csso shortens '100%' -> 'to', make sure to leave it untouched
58
- if (line.match(/^[@0-9]/) || line === "to" || line === "to{") {
59
- return line;
60
- }
61
-
62
- // IE specific selector (directly written with the tag) - keep it
63
- if (line.match(new RegExp(`^${tag}[^a-zA-Z0-9-]`))) {
64
- return line;
65
- }
66
-
67
- // No host and no tag in the beginning of the selector - prepend the tag
68
- return `${tag} ${line}`;
69
- };
70
-
71
- const adaptCSSForIE = (str, tag) => {
72
- str = str.replace(/\n/g, ` `);
73
- str = str.replace(/([{}])/g, `$1\n`);
74
- let result = ``;
75
- const lines = str.split(`\n`);
76
- lines.forEach(line => {
77
- const mustProcess = line.match(/{$/); // Only work on lines that end on {, otherwise just append to result
78
- if (mustProcess) {
79
- const lineParts = line.split(",");
80
- const processedLineParts = lineParts.map(linePart => {
81
- return adaptLinePart(linePart, tag);
82
- });
83
- line = processedLineParts.join(",");
84
- }
85
- result = `${result}${line}`;
86
- });
87
- return result;
88
- };
89
-
90
- export default adaptCSSForIE;
@@ -1,15 +0,0 @@
1
- const isDescendantOf = (klass, baseKlass, inclusive = false) => {
2
- if (typeof klass !== "function" || typeof baseKlass !== "function") {
3
- return false;
4
- }
5
- if (inclusive && klass === baseKlass) {
6
- return true;
7
- }
8
- let parent = klass;
9
- do {
10
- parent = Object.getPrototypeOf(parent);
11
- } while (parent !== null && parent !== baseKlass);
12
- return parent === baseKlass;
13
- };
14
-
15
- export default isDescendantOf;
@@ -1,19 +0,0 @@
1
- const rClickable = /^(?:a|area)$/i;
2
- const rFocusable = /^(?:input|select|textarea|button)$/i;
3
-
4
- const isNodeClickable = node => {
5
- if (node.disabled) {
6
- return false;
7
- }
8
-
9
- const tabIndex = node.getAttribute("tabindex");
10
- if (tabIndex !== null && tabIndex !== undefined) {
11
- return parseInt(tabIndex) >= 0;
12
- }
13
-
14
- return rFocusable.test(node.nodeName)
15
- || (rClickable.test(node.nodeName)
16
- && node.href);
17
- };
18
-
19
- export default isNodeClickable;
@@ -1,13 +0,0 @@
1
- const isNodeHidden = node => {
2
- if (node.nodeName === "SLOT") {
3
- return false;
4
- }
5
-
6
- const rect = node.getBoundingClientRect();
7
-
8
- return (node.offsetWidth <= 0 && node.offsetHeight <= 0)
9
- || node.style.visibility === "hidden"
10
- || (rect.width === 0 && 0 && rect.height === 0);
11
- };
12
-
13
- export default isNodeHidden;
@@ -1,28 +0,0 @@
1
- import isNodeHidden from "./isNodeHidden.js";
2
-
3
- const isNodeTabbable = node => {
4
- if (!node) {
5
- return false;
6
- }
7
-
8
- const nodeName = node.nodeName.toLowerCase();
9
-
10
- if (node.hasAttribute("data-sap-no-tab-ref")) {
11
- return false;
12
- }
13
-
14
- if (isNodeHidden(node)) {
15
- return false;
16
- }
17
-
18
- if (nodeName === "a" || /input|select|textarea|button|object/.test(nodeName)) {
19
- return !node.disabled;
20
- }
21
-
22
- const tabIndex = node.getAttribute("tabindex");
23
- if (tabIndex !== null && tabIndex !== undefined) {
24
- return parseInt(tabIndex) >= 0;
25
- }
26
- };
27
-
28
- export default isNodeTabbable;
@@ -1,77 +0,0 @@
1
- const localeRegEX = /^((?:[A-Z]{2,3}(?:-[A-Z]{3}){0,3})|[A-Z]{4}|[A-Z]{5,8})(?:-([A-Z]{4}))?(?:-([A-Z]{2}|[0-9]{3}))?((?:-[0-9A-Z]{5,8}|-[0-9][0-9A-Z]{3})*)((?:-[0-9A-WYZ](?:-[0-9A-Z]{2,8})+)*)(?:-(X(?:-[0-9A-Z]{1,8})+))?$/i;
2
- const SAPSupportabilityLocales = /(?:^|-)(saptrc|sappsd)(?:-|$)/i;
3
-
4
- /* Map for old language names for a few ISO639 codes. */
5
- const M_ISO639_NEW_TO_OLD = {
6
- "he": "iw",
7
- "yi": "ji",
8
- "id": "in",
9
- "sr": "sh",
10
- };
11
-
12
- /**
13
- * Normalizes the given locale in BCP-47 syntax.
14
- * @param {string} locale locale to normalize
15
- * @returns {string} Normalized locale or undefined if the locale can't be normalized
16
- */
17
- const normalizeLocale = locale => {
18
- let m;
19
-
20
- if (typeof locale === "string" && (m = localeRegEX.exec(locale.replace(/_/g, "-")))) {/* eslint-disable-line */
21
- let language = m[1].toLowerCase();
22
- let region = m[3] ? m[3].toUpperCase() : undefined;
23
- const script = m[2] ? m[2].toLowerCase() : undefined;
24
- const variants = m[4] ? m[4].slice(1) : undefined;
25
- const isPrivate = m[6];
26
-
27
- language = M_ISO639_NEW_TO_OLD[language] || language;
28
-
29
- // recognize and convert special SAP supportability locales (overwrites m[]!)
30
- if ((isPrivate && (m = SAPSupportabilityLocales.exec(isPrivate))) /* eslint-disable-line */ ||
31
- (variants && (m = SAPSupportabilityLocales.exec(variants)))) {/* eslint-disable-line */
32
- return `en_US_${m[1].toLowerCase()}`; // for now enforce en_US (agreed with SAP SLS)
33
- }
34
-
35
- // Chinese: when no region but a script is specified, use default region for each script
36
- if (language === "zh" && !region) {
37
- if (script === "hans") {
38
- region = "CN";
39
- } else if (script === "hant") {
40
- region = "TW";
41
- }
42
- }
43
-
44
- return language + (region ? "_" + region + (variants ? "_" + variants.replace("-", "_") : "") : ""); /* eslint-disable-line */
45
- }
46
- };
47
-
48
-
49
- /**
50
- * Calculates the next fallback locale for the given locale.
51
- *
52
- * @param {string} locale Locale string in Java format (underscores) or null
53
- * @returns {string|null} Next fallback Locale or null if there is no more fallback
54
- */
55
- const nextFallbackLocale = locale => {
56
- if (!locale) {
57
- return null;
58
- }
59
-
60
- if (locale === "zh_HK") {
61
- return "zh_TW";
62
- }
63
-
64
- // if there are multiple segments (separated by underscores), remove the last one
65
- const p = locale.lastIndexOf("_");
66
- if (p >= 0) {
67
- return locale.slice(0, p);
68
- }
69
-
70
- // for any language but 'en', fallback to 'en' first before falling back to the 'raw' language (empty string)
71
- return locale !== "en" ? "en" : "";
72
- };
73
-
74
- export {
75
- normalizeLocale,
76
- nextFallbackLocale,
77
- };
@@ -1,19 +0,0 @@
1
- # License
2
-
3
- Everything in this repo is BSD style license unless otherwise specified.
4
-
5
- Copyright (c) 2015 The Polymer Authors. All rights reserved.
6
-
7
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
8
-
9
- * Redistributions of source code must retain the above copyright
10
- notice, this list of conditions and the following disclaimer.
11
- * Redistributions in binary form must reproduce the above
12
- copyright notice, this list of conditions and the following disclaimer
13
- in the documentation and/or other materials provided with the
14
- distribution.
15
- * Neither the name of Google Inc. nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,229 +0,0 @@
1
- [![Build Status](https://travis-ci.org/webcomponents/webcomponentsjs.svg?branch=master)](https://travis-ci.org/webcomponents/webcomponentsjs)
2
-
3
- webcomponents.js (v1 spec polyfills)
4
- ================
5
-
6
- > **Note**. For polyfills that work with the older Custom Elements and Shadow DOM v0 specs,
7
- see the [v0 branch](https://github.com/webcomponents/webcomponentsjs/tree/v0).
8
-
9
- > **Note**. For polyfills that include HTML Imports,
10
- see the [v1 branch](https://github.com/webcomponents/webcomponentsjs/tree/v1).
11
-
12
- A suite of polyfills supporting the [Web Components](http://webcomponents.org) specs:
13
-
14
- - **Custom Elements v1**: allows authors to define their own custom tags ([spec](https://w3c.github.io/webcomponents/spec/custom/), [tutorial](https://developers.google.com/web/fundamentals/getting-started/primers/customelements), [polyfill](https://github.com/webcomponents/custom-elements)).
15
- - **Shadow DOM v1**: provides encapsulation by hiding DOM subtrees under shadow roots ([spec](https://w3c.github.io/webcomponents/spec/shadow/), [tutorial](https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom),
16
- [shadydom polyfill](https://github.com/webcomponents/shadydom), [shadycss polyfill](https://github.com/webcomponents/shadycss)).
17
-
18
- For browsers that need it, there are also some minor polyfills included:
19
- - [`HTMLTemplateElement`](https://github.com/webcomponents/template)
20
- - [`Promise`](https://github.com/taylorhakes/promise-polyfill)
21
- - `Event`, `CustomEvent`, `MouseEvent` constructors and `Object.assign`, `Array.from`
22
- (see [webcomponents-platform](https://github.com/webcomponents/webcomponents-platform))
23
- - [`URL constructor`](https://github.com/webcomponents/URL)
24
-
25
- ## How to use
26
- ### Install polyfills
27
- ```bash
28
- npm install @webcomponents/webcomponentsjs
29
- ```
30
-
31
- You can also load the code from a CDN such as unpkg: https://unpkg.com/@webcomponents/webcomponentsjs@^2/
32
-
33
- ### Using `webcomponents-bundle.js`
34
-
35
- The `webcomponents-bundle.js` contains all of the web components polyfills and is
36
- suitable for use on any supported browser. All of the polyfill code will be loaded
37
- but each polyfill will only be used based on feature detection.
38
- The bundle includes Custom Elements, Shady DOM/CSS and generic platform polyfills
39
- (such as ES6 Promise, Constructable events, etc.) (needed by Internet Explorer 11),
40
- and Template (needed by IE 11 and Edge).
41
-
42
- The `webcomponents-bundle.js` is very simple to use but it does load code
43
- that is not needed on most modern browsers, slowing page load. For best performance,
44
- use the `webcomponents-loader.js`.
45
-
46
- Here's an example:
47
-
48
- ```html
49
- <!-- load webcomponents bundle, which includes all the necessary polyfills -->
50
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
51
-
52
- <!-- load the element -->
53
- <script type="module" src="my-element.js"></script>
54
-
55
- <!-- use the element -->
56
- <my-element></my-element>
57
- ```
58
-
59
- ### Using `webcomponents-loader.js`
60
-
61
- The `webcomponents-loader.js` is a client-side loader that dynamically loads the
62
- minimum polyfill bundle, using feature detection.
63
-
64
- `webcomponents-loader.js` can be loaded synchronously, or asynchronously depending on your needs.
65
-
66
- #### Inlining
67
-
68
- If you have inlined the source of `webcomponent-loader.js`, then you should specify `window.WebComponents.root` as the root from which to load the polyfills.
69
- For example:
70
-
71
- ```html
72
- <script>
73
- window.WebComponents = window.WebComponents || {};
74
- window.WebComponents.root = 'node_modules/@webcomponents/webcomponentsjs/';
75
- </script>
76
- ```
77
-
78
- #### Synchronous
79
- When loaded synchronously, `webcomponents-loader.js` behaves similarly to `webcomponents-bundle.js`.
80
-
81
- The appropriate bundle will be loaded with `document.write()` to ensure that WebComponent polyfills are available for subsequent scripts and modules.
82
-
83
- Here's an example:
84
-
85
- ```html
86
- <!-- load the webcomponents loader, which injects the necessary polyfill bundle -->
87
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
88
-
89
- <!-- load the element -->
90
- <script type="module" src="my-element.js"></script>
91
-
92
- <!-- use the element -->
93
- <my-element></my-element>
94
- ```
95
-
96
- #### Asynchronous
97
- When loaded asychronously with the `defer` attribute, polyfill bundles will be loaded asynchronously,
98
- which means that scripts and modules that depend on webcomponents APIs *must* be loaded
99
- using `WebComponents.waitFor` function.
100
-
101
- The `WebComponents.waitFor` function takes a callback function as an argument, and will evaluate that callback after the polyfill bundle has been loaded.
102
-
103
- The callback function should load scripts that need the polyfills (typically via `import('my-script.js')`) and
104
- should return a promise that resolves when all scripts have loaded.
105
-
106
- Here's an example:
107
-
108
- ```html
109
- <!-- Load polyfills; note that "loader" will load these async -->
110
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js" defer></script>
111
-
112
- <!-- Load a custom element definitions in `waitFor` and return a promise -->
113
- <script type="module">
114
- WebComponents.waitFor(() => {
115
- // At this point we are guaranteed that all required polyfills have
116
- // loaded, and can use web components API's.
117
- // The standard pattern is to load element definitions that call
118
- // `customElements.define` here.
119
- // Note: returning the import's promise causes the custom elements
120
- // polyfill to wait until all definitions are loaded and then upgrade
121
- // the document in one batch, for better performance.
122
- return import('my-element.js');
123
- });
124
- </script>
125
-
126
- <!-- Use the custom element -->
127
- <my-element></my-element>
128
- ```
129
-
130
- The `WebComponents.waitFor` function may be called multiple times, and the callback functions will be processed in order.
131
-
132
- Here's a more complicated example:
133
-
134
- ```html
135
- <!-- Load polyfills; note that "loader" will load these async -->
136
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js" defer></script>
137
-
138
- <script type="module">
139
- WebComponents.waitFor(async () => {
140
- if (!window.fetch) {
141
- await import('node_modules/fetch-polyfill/fetch.js');
142
- }
143
- return import('my-element.js');
144
- })
145
- </script>
146
-
147
- <script type="module">
148
- </script>
149
- ```
150
-
151
- ### WebComponentsReady event
152
-
153
- The `WebComponentsReady` event is fired when polyfills and user scripts have loaded and custom elements have been upgraded. This event is generally not needed; however, it may be useful in some cases like testing. If imperative code should wait until a specific custom element definition has loaded, it can use the platform `customElements.whenDefined` API.
154
-
155
- ### `custom-elements-es5-adapter.js`
156
- According to the spec, only ES6 classes (https://html.spec.whatwg.org/multipage/scripting.html#custom-element-conformance) may be passed to the _native_ `customElements.define` API. For best performnace, ES6 should be served to browsers that support it, and ES5 code should be serve to those that don't. Since this may not always be possible, it may make sense to compile and serve ES5 to all browsers. However, if you do so, ES5-style custom element classes will now **not** work on browsers with native Custom Elements because ES5-style classes cannot properly extend ES6 classes, like `HTMLElement`.
157
-
158
- As a workaround, if your project has been compiled to ES5, load `custom-elements-es5-adapter.js` before defining Custom Elements. This adapter will automatically wrap ES5.
159
-
160
- **The adapter must NOT be compiled.**
161
-
162
- ## Browser Support
163
-
164
- The polyfills are intended to work in the latest versions of evergreen browsers. See below
165
- for our complete browser support matrix:
166
-
167
- | Polyfill | Edge | IE11+ | Chrome* | Firefox* | Safari 9+* | Chrome Android* | Mobile Safari* |
168
- | ---------- |:----:|:-----:|:-------:|:--------:|:----------:|:---------------:|:--------------:|
169
- | Custom Elements | ✓ | ✓ | ✓ | ✓ | ✓ | ✓| ✓ |
170
- | Shady CSS/DOM | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
171
-
172
- \*Indicates the current version of the browser
173
-
174
- The polyfills may work in older browsers, however require additional polyfills (such as classList, or other [platform](https://github.com/webcomponents/webcomponents-platform)
175
- polyfills) to be used. We cannot guarantee support for browsers outside of our compatibility matrix.
176
-
177
-
178
- ### Manually Building
179
-
180
- If you wish to build the bundles yourself, you'll need `node` and `npm` on your system:
181
-
182
- * install [node.js](http://nodejs.org/) using the instructions on their website
183
- * use `npm` to install [gulp.js](http://gulpjs.com/): `npm install -g gulp`
184
- * make sure you have Java installed per https://www.npmjs.com/package/google-closure-compiler#java-version
185
-
186
- Now you are ready to build the polyfills with:
187
-
188
- # install dependencies
189
- npm install
190
- # build
191
- npm run build
192
-
193
- The builds will be placed into the root directory.
194
-
195
- ## Contribute
196
-
197
- See the [contributing guide](CONTRIBUTING.md)
198
-
199
- ## License
200
-
201
- Everything in this repository is BSD style license unless otherwise specified.
202
-
203
- Copyright (c) 2015 The Polymer Authors. All rights reserved.
204
-
205
- ## Changes in version 2.x
206
-
207
- * The HTML Imports polyfill has been removed. Given that ES modules have shipped in
208
- most browsers, the expectation is that web components code will be loaded via
209
- ES modules.
210
- * When using `webcomponents-loader.js` with the `defer` attribute, scripts that rely on the polyfills *must* be loaded using `WebComponents.waitFor(loadCallback)`.
211
-
212
- ## Known Issues
213
-
214
- * [ShadowDOM CSS is not encapsulated out of the box](#shadycss)
215
- * [Custom element's constructor property is unreliable](#constructor)
216
- * [ShadyCSS: :host(.zot:not(.bar:nth-child(2))) doesn't work](#nestedparens)
217
-
218
- ### ShadowDOM CSS is not encapsulated out of the box <a id="shadycss"></a>
219
- The ShadowDOM polyfill is not able to encapsulate CSS in ShadowDOM out of the box. You need to use specific code from the ShadyCSS library, included with the polyfill. See [ShadyCSS instructions](https://github.com/webcomponents/shadycss).
220
-
221
- ### Custom element's constructor property is unreliable <a id="constructor"></a>
222
- See [#215](https://github.com/webcomponents/webcomponentsjs/issues/215) for background.
223
-
224
- In Edge and IE, instances of Custom Elements have a `constructor` property of `HTMLUnknownElementConstructor` and `HTMLUnknownElement`, respectively. It's unsafe to rely on this property for checking element types.
225
-
226
- It's worth noting that `customElement.__proto__.__proto__.constructor` is `HTMLElementPrototype` and that the prototype chain isn't modified by the polyfills(onto `ElementPrototype`, etc.)
227
-
228
- ### ShadyCSS: :host(.zot:not(.bar:nth-child(2))) doesn't work <a id="nestedparens"></a>
229
- ShadyCSS `:host()` rules can only have (at most) 1-level of nested parentheses in its argument selector under ShadyCSS. For example, `:host(.zot)` and `:host(.zot:not(.bar))` both work, but `:host(.zot:not(.bar:nth-child(2)))` does not.
@@ -1,63 +0,0 @@
1
- /**
2
- @license @nocompile
3
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
- Code distributed by Google as part of the polymer project is also
8
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
- */
10
- (function(){/*
11
-
12
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
13
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
14
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
15
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
16
- Code distributed by Google as part of the polymer project is also
17
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
18
- */
19
- 'use strict';var n=window.Document.prototype.createElement,p=window.Document.prototype.createElementNS,aa=window.Document.prototype.importNode,ba=window.Document.prototype.prepend,ca=window.Document.prototype.append,da=window.DocumentFragment.prototype.prepend,ea=window.DocumentFragment.prototype.append,q=window.Node.prototype.cloneNode,r=window.Node.prototype.appendChild,t=window.Node.prototype.insertBefore,u=window.Node.prototype.removeChild,v=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,
20
- "textContent"),y=window.Element.prototype.attachShadow,z=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),A=window.Element.prototype.getAttribute,B=window.Element.prototype.setAttribute,C=window.Element.prototype.removeAttribute,D=window.Element.prototype.getAttributeNS,E=window.Element.prototype.setAttributeNS,F=window.Element.prototype.removeAttributeNS,G=window.Element.prototype.insertAdjacentElement,fa=window.Element.prototype.insertAdjacentHTML,ha=window.Element.prototype.prepend,
21
- ia=window.Element.prototype.append,ja=window.Element.prototype.before,ka=window.Element.prototype.after,la=window.Element.prototype.replaceWith,ma=window.Element.prototype.remove,na=window.HTMLElement,H=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),oa=window.HTMLElement.prototype.insertAdjacentElement,pa=window.HTMLElement.prototype.insertAdjacentHTML;var qa=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(a){return qa.add(a)});function ra(a){var b=qa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}var sa=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
22
- function I(a){var b=a.isConnected;if(void 0!==b)return b;if(sa(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function J(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
23
- function K(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
24
- function L(a,b,c){for(var f=a;f;){if(f.nodeType===Node.ELEMENT_NODE){var d=f;b(d);var e=d.localName;if("link"===e&&"import"===d.getAttribute("rel")){f=d.import;void 0===c&&(c=new Set);if(f instanceof Node&&!c.has(f))for(c.add(f),f=f.firstChild;f;f=f.nextSibling)L(f,b,c);f=K(a,d);continue}else if("template"===e){f=K(a,d);continue}if(d=d.__CE_shadowRoot)for(d=d.firstChild;d;d=d.nextSibling)L(d,b,c)}f=f.firstChild?f.firstChild:K(a,f)}}function M(a,b,c){a[b]=c};function ta(a){var b=document;this.c=a;this.a=b;this.b=void 0;N(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function ua(a){a.b&&a.b.disconnect()}ta.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||ua(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,f=0;f<c.length;f++)N(this.c,c[f])};function va(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a)})}function wa(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0)};function O(a){this.f=new Map;this.g=new Map;this.l=new Map;this.i=!1;this.b=a;this.j=new Map;this.c=function(b){return b()};this.a=!1;this.h=[];this.m=a.f?new ta(a):void 0}O.prototype.o=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");xa(this,a);this.f.set(a,b);this.h.push(a);this.a||(this.a=!0,this.c(function(){return ya(c)}))};
25
- O.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");xa(this,a);za(this,a,b);this.h.push(a);this.a||(this.a=!0,this.c(function(){return ya(c)}))};function xa(a,b){if(!ra(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(P(a,b))throw Error("A custom element with name '"+b+"' has already been defined.");if(a.i)throw Error("A custom element is already being defined.");}
26
- function za(a,b,c){a.i=!0;var f;try{var d=function(m){var w=e[m];if(void 0!==w&&!(w instanceof Function))throw Error("The '"+m+"' callback must be a function.");return w},e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var g=d("connectedCallback");var h=d("disconnectedCallback");var k=d("adoptedCallback");var l=(f=d("attributeChangedCallback"))&&c.observedAttributes||[]}catch(m){throw m;}finally{a.i=!1}c={localName:b,constructorFunction:c,
27
- connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:f,observedAttributes:l,constructionStack:[]};a.g.set(b,c);a.l.set(c.constructorFunction,c);return c}O.prototype.upgrade=function(a){N(this.b,a)};
28
- function ya(a){if(!1!==a.a){a.a=!1;for(var b=[],c=a.h,f=new Map,d=0;d<c.length;d++)f.set(c[d],[]);N(a.b,document,{upgrade:function(k){if(void 0===k.__CE_state){var l=k.localName,m=f.get(l);m?m.push(k):a.g.has(l)&&b.push(k)}}});for(d=0;d<b.length;d++)Q(a.b,b[d]);for(d=0;d<c.length;d++){for(var e=c[d],g=f.get(e),h=0;h<g.length;h++)Q(a.b,g[h]);(e=a.j.get(e))&&wa(e)}c.length=0}}O.prototype.get=function(a){if(a=P(this,a))return a.constructorFunction};
29
- O.prototype.whenDefined=function(a){if(!ra(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new va;this.j.set(a,b);var c=this.g.has(a)||this.f.has(a);a=-1===this.h.indexOf(a);c&&a&&wa(b);return b.c};O.prototype.polyfillWrapFlushCallback=function(a){this.m&&ua(this.m);var b=this.c;this.c=function(c){return a(function(){return b(c)})}};
30
- function P(a,b){var c=a.g.get(b);if(c)return c;if(c=a.f.get(b)){a.f.delete(b);try{return za(a,b,c())}catch(f){R(f)}}}window.CustomElementRegistry=O;O.prototype.define=O.prototype.define;O.prototype.upgrade=O.prototype.upgrade;O.prototype.get=O.prototype.get;O.prototype.whenDefined=O.prototype.whenDefined;O.prototype.polyfillDefineLazy=O.prototype.o;O.prototype.polyfillWrapFlushCallback=O.prototype.polyfillWrapFlushCallback;function S(){var a=T&&T.noDocumentConstructionObserver,b=T&&T.shadyDomFastWalk;this.b=[];this.c=[];this.a=!1;this.shadyDomFastWalk=b;this.f=!a}function U(a,b,c,f){var d=window.ShadyDOM;if(a.shadyDomFastWalk&&d&&d.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=d.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else L(b,c,f)}function Aa(a,b){a.a=!0;a.b.push(b)}function Ba(a,b){a.a=!0;a.c.push(b)}function V(a,b){a.a&&U(a,b,function(c){return W(a,c)})}
31
- function W(a,b){if(a.a&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.b.length;c++)a.b[c](b);for(c=0;c<a.c.length;c++)a.c[c](b)}}function X(a,b){var c=[];U(a,b,function(d){return c.push(d)});for(b=0;b<c.length;b++){var f=c[b];1===f.__CE_state?a.connectedCallback(f):Q(a,f)}}function Y(a,b){var c=[];U(a,b,function(d){return c.push(d)});for(b=0;b<c.length;b++){var f=c[b];1===f.__CE_state&&a.disconnectedCallback(f)}}
32
- function N(a,b,c){c=void 0===c?{}:c;var f=c.s,d=c.upgrade||function(g){return Q(a,g)},e=[];U(a,b,function(g){a.a&&W(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;f&&(f.forEach(function(m){return l.add(m)}),
33
- l.delete(k));N(a,k,{s:l,upgrade:d})}})}else e.push(g)},f);for(b=0;b<e.length;b++)d(e[b])}
34
- function Q(a,b){try{var c=b.ownerDocument,f=c.__CE_registry;var d=f&&(c.defaultView||c.__CE_isImportDocument)?P(f,b.localName):void 0;if(d&&void 0===b.__CE_state){d.constructionStack.push(b);try{try{if(new d.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback&&b.hasAttributes()){var e=d.observedAttributes;
35
- for(d=0;d<e.length;d++){var g=e[d],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}I(b)&&a.connectedCallback(b)}}catch(k){R(k)}}S.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){R(c)}};S.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){R(c)}};
36
- S.prototype.attributeChangedCallback=function(a,b,c,f,d){var e=a.__CE_definition;if(e.attributeChangedCallback&&-1<e.observedAttributes.indexOf(b))try{e.attributeChangedCallback.call(a,b,c,f,d)}catch(g){R(g)}};
37
- function Ca(a,b,c,f){var d=b.__CE_registry;if(d&&(null===f||"http://www.w3.org/1999/xhtml"===f)&&(d=P(d,c)))try{var e=new d.constructorFunction;if(void 0===e.__CE_state||void 0===e.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==e.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(e.hasAttributes())throw Error("Failed to construct '"+
38
- c+"': The constructed element must not have any attributes.");if(null!==e.firstChild)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(null!==e.parentNode)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(e.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(e.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
39
- return e}catch(g){return R(g),b=null===f?n.call(b,c):p.call(b,f,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,W(a,b),b}b=null===f?n.call(b,c):p.call(b,f,c);W(a,b);return b}
40
- function R(a){var b=a.message,c=a.sourceURL||a.fileName||"",f=a.line||a.lineNumber||0,d=a.column||a.columnNumber||0,e=void 0;void 0===ErrorEvent.prototype.initErrorEvent?e=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:f,colno:d,error:a}):(e=document.createEvent("ErrorEvent"),e.initErrorEvent("error",!1,!0,b,c,f),e.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});void 0===e.error&&Object.defineProperty(e,"error",
41
- {configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(e);e.defaultPrevented||console.error(a)};var Da=new function(){};function Ea(a){window.HTMLElement=function(){function b(){var c=this.constructor;var f=document.__CE_registry.l.get(c);if(!f)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var d=f.constructionStack;if(0===d.length)return d=n.call(document,f.localName),Object.setPrototypeOf(d,c.prototype),d.__CE_state=1,d.__CE_definition=f,W(a,d),d;var e=d.length-1,g=d[e];if(g===Da)throw Error("Failed to construct '"+f.localName+"': This element was already constructed.");
42
- d[e]=Da;Object.setPrototypeOf(g,c.prototype);W(a,g);return g}b.prototype=na.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function Z(a,b,c){function f(d){return function(e){for(var g=[],h=0;h<arguments.length;++h)g[h]=arguments[h];h=[];for(var k=[],l=0;l<g.length;l++){var m=g[l];m instanceof Element&&I(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)h.push(m);else h.push(m)}d.apply(this,g);for(g=0;g<k.length;g++)Y(a,k[g]);if(I(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&X(a,k)}}void 0!==c.prepend&&M(b,"prepend",f(c.prepend));void 0!==c.append&&M(b,"append",f(c.append))}
43
- ;function Fa(a){M(Document.prototype,"createElement",function(b){return Ca(a,this,b,null)});M(Document.prototype,"importNode",function(b,c){b=aa.call(this,b,!!c);this.__CE_registry?N(a,b):V(a,b);return b});M(Document.prototype,"createElementNS",function(b,c){return Ca(a,this,c,b)});Z(a,Document.prototype,{prepend:ba,append:ca})};function Ga(a){function b(c,f){Object.defineProperty(c,"textContent",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(d){if(this.nodeType===Node.TEXT_NODE)f.set.call(this,d);else{var e=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&I(this)){e=Array(h);for(var k=0;k<h;k++)e[k]=g[k]}}f.set.call(this,d);if(e)for(d=0;d<e.length;d++)Y(a,e[d])}}})}M(Node.prototype,"insertBefore",function(c,f){if(c instanceof DocumentFragment){var d=J(c);c=t.call(this,c,f);if(I(this))for(f=
44
- 0;f<d.length;f++)X(a,d[f]);return c}d=c instanceof Element&&I(c);f=t.call(this,c,f);d&&Y(a,c);I(this)&&X(a,c);return f});M(Node.prototype,"appendChild",function(c){if(c instanceof DocumentFragment){var f=J(c);c=r.call(this,c);if(I(this))for(var d=0;d<f.length;d++)X(a,f[d]);return c}f=c instanceof Element&&I(c);d=r.call(this,c);f&&Y(a,c);I(this)&&X(a,c);return d});M(Node.prototype,"cloneNode",function(c){c=q.call(this,!!c);this.ownerDocument.__CE_registry?N(a,c):V(a,c);return c});M(Node.prototype,
45
- "removeChild",function(c){var f=c instanceof Element&&I(c),d=u.call(this,c);f&&Y(a,c);return d});M(Node.prototype,"replaceChild",function(c,f){if(c instanceof DocumentFragment){var d=J(c);c=v.call(this,c,f);if(I(this))for(Y(a,f),f=0;f<d.length;f++)X(a,d[f]);return c}d=c instanceof Element&&I(c);var e=v.call(this,c,f),g=I(this);g&&Y(a,f);d&&Y(a,c);g&&X(a,c);return e});x&&x.get?b(Node.prototype,x):Aa(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var f=[],d=this.firstChild;d;d=
46
- d.nextSibling)d.nodeType!==Node.COMMENT_NODE&&f.push(d.textContent);return f.join("")},set:function(f){for(;this.firstChild;)u.call(this,this.firstChild);null!=f&&""!==f&&r.call(this,document.createTextNode(f))}})})};function Ha(a){function b(f){return function(d){for(var e=[],g=0;g<arguments.length;++g)e[g]=arguments[g];g=[];for(var h=[],k=0;k<e.length;k++){var l=e[k];l instanceof Element&&I(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}f.apply(this,e);for(e=0;e<h.length;e++)Y(a,h[e]);if(I(this))for(e=0;e<g.length;e++)h=g[e],h instanceof Element&&X(a,h)}}var c=Element.prototype;void 0!==ja&&M(c,"before",b(ja));void 0!==ka&&M(c,"after",b(ka));void 0!==
47
- la&&M(c,"replaceWith",function(f){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];e=[];for(var g=[],h=0;h<d.length;h++){var k=d[h];k instanceof Element&&I(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)e.push(k);else e.push(k)}h=I(this);la.apply(this,d);for(d=0;d<g.length;d++)Y(a,g[d]);if(h)for(Y(a,this),d=0;d<e.length;d++)g=e[d],g instanceof Element&&X(a,g)});void 0!==ma&&M(c,"remove",function(){var f=I(this);ma.call(this);f&&Y(a,this)})};function Ia(a){function b(d,e){Object.defineProperty(d,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(g){var h=this,k=void 0;I(this)&&(k=[],U(a,this,function(w){w!==h&&k.push(w)}));e.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var m=k[l];1===m.__CE_state&&a.disconnectedCallback(m)}this.ownerDocument.__CE_registry?N(a,this):V(a,this);return g}})}function c(d,e){M(d,"insertAdjacentElement",function(g,h){var k=I(h);g=e.call(this,g,h);k&&Y(a,h);I(g)&&X(a,h);return g})}
48
- function f(d,e){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)N(a,l[k])}M(d,"insertAdjacentHTML",function(h,k){h=h.toLowerCase();if("beforebegin"===h){var l=this.previousSibling;e.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if("afterbegin"===h)l=this.firstChild,e.call(this,h,k),g(this.firstChild,l);else if("beforeend"===h)l=this.lastChild,e.call(this,h,k),g(l||this.firstChild,null);else if("afterend"===h)l=this.nextSibling,e.call(this,h,k),g(this.nextSibling,
49
- l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}y&&M(Element.prototype,"attachShadow",function(d){d=y.call(this,d);if(a.a&&!d.__CE_patched){d.__CE_patched=!0;for(var e=0;e<a.b.length;e++)a.b[e](d)}return this.__CE_shadowRoot=d});z&&z.get?b(Element.prototype,z):H&&H.get?b(HTMLElement.prototype,H):Ba(a,function(d){b(d,{enumerable:!0,configurable:!0,get:function(){return q.call(this,!0).innerHTML},set:function(e){var g=
50
- "template"===this.localName,h=g?this.content:this,k=p.call(document,this.namespaceURI,this.localName);for(k.innerHTML=e;0<h.childNodes.length;)u.call(h,h.childNodes[0]);for(e=g?k.content:k;0<e.childNodes.length;)r.call(h,e.childNodes[0])}})});M(Element.prototype,"setAttribute",function(d,e){if(1!==this.__CE_state)return B.call(this,d,e);var g=A.call(this,d);B.call(this,d,e);e=A.call(this,d);a.attributeChangedCallback(this,d,g,e,null)});M(Element.prototype,"setAttributeNS",function(d,e,g){if(1!==this.__CE_state)return E.call(this,
51
- d,e,g);var h=D.call(this,d,e);E.call(this,d,e,g);g=D.call(this,d,e);a.attributeChangedCallback(this,e,h,g,d)});M(Element.prototype,"removeAttribute",function(d){if(1!==this.__CE_state)return C.call(this,d);var e=A.call(this,d);C.call(this,d);null!==e&&a.attributeChangedCallback(this,d,e,null,null)});M(Element.prototype,"removeAttributeNS",function(d,e){if(1!==this.__CE_state)return F.call(this,d,e);var g=D.call(this,d,e);F.call(this,d,e);var h=D.call(this,d,e);g!==h&&a.attributeChangedCallback(this,
52
- e,g,h,d)});oa?c(HTMLElement.prototype,oa):G&&c(Element.prototype,G);pa?f(HTMLElement.prototype,pa):fa&&f(Element.prototype,fa);Z(a,Element.prototype,{prepend:ha,append:ia});Ha(a)};var T=window.customElements;function Ja(){var a=new S;Ea(a);Fa(a);Z(a,DocumentFragment.prototype,{prepend:da,append:ea});Ga(a);Ia(a);a=new O(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}T&&!T.forcePolyfill&&"function"==typeof T.define&&"function"==typeof T.get||Ja();window.__CE_installPolyfill=Ja;/*
53
-
54
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
55
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
56
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
57
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
58
- Code distributed by Google as part of the polymer project is also
59
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
60
- */
61
- }).call(this);
62
-
63
- //# sourceMappingURL=webcomponents-ce.js.map