@ui5/webcomponents-base 0.0.0-e463d2345 → 0.0.0-e58530409

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 (471) hide show
  1. package/.eslintignore +4 -0
  2. package/CHANGELOG.md +407 -0
  3. package/README.md +30 -7
  4. package/bundle.esm.js +24 -20
  5. package/dist/AssetRegistry.js +8 -6
  6. package/dist/Boot.js +59 -0
  7. package/dist/CSP.js +59 -0
  8. package/dist/CustomElementsRegistry.js +95 -0
  9. package/dist/CustomElementsScope.js +30 -0
  10. package/dist/CustomElementsScopeUtils.js +108 -0
  11. package/dist/DOMObserver.js +65 -0
  12. package/dist/Device.js +71 -773
  13. package/dist/EventProvider.js +38 -26
  14. package/dist/FeaturesRegistry.js +4 -1
  15. package/dist/FontFace.js +20 -56
  16. package/dist/InitialConfiguration.js +64 -17
  17. package/dist/Keys.js +295 -0
  18. package/dist/ManagedStyles.js +83 -0
  19. package/dist/MediaRange.js +109 -0
  20. package/dist/PropertiesFileFormat.js +95 -0
  21. package/dist/Render.js +175 -0
  22. package/dist/RenderQueue.js +41 -17
  23. package/dist/RenderScheduler.js +24 -145
  24. package/dist/Runtimes.js +107 -0
  25. package/dist/StaticArea.js +2 -34
  26. package/dist/StaticAreaItem.js +69 -35
  27. package/dist/SystemCSSVars.js +10 -0
  28. package/dist/Theming.js +3 -44
  29. package/dist/UI5Element.js +497 -306
  30. package/dist/UI5ElementMetadata.js +198 -19
  31. package/dist/asset-registries/Icons.js +125 -14
  32. package/dist/asset-registries/Illustrations.js +30 -0
  33. package/dist/asset-registries/LocaleData.js +114 -51
  34. package/dist/asset-registries/Themes.js +37 -30
  35. package/dist/asset-registries/i18n.js +80 -34
  36. package/dist/assets/bundle.esm.39b5ade5.js +43 -0
  37. package/dist/assets-meta/IconCollectionsAlias.js +18 -0
  38. package/dist/config/AnimationMode.js +16 -2
  39. package/dist/config/CalendarType.js +7 -7
  40. package/dist/config/FormatSettings.js +5 -1
  41. package/dist/config/Icons.js +52 -0
  42. package/dist/config/Language.js +62 -3
  43. package/dist/config/NoConflict.js +10 -3
  44. package/dist/config/Theme.js +32 -3
  45. package/dist/css/BusyIndicator.css +80 -0
  46. package/dist/css/FontFace.css +75 -0
  47. package/dist/css/OverrideFontFace.css +32 -0
  48. package/dist/css/SystemCSSVars.css +17 -0
  49. package/dist/delegate/ItemNavigation.js +244 -127
  50. package/dist/delegate/ResizeHandler.js +78 -38
  51. package/dist/delegate/ScrollEnablement.js +122 -14
  52. package/dist/features/F6Navigation.js +110 -0
  53. package/dist/features/OpenUI5Enablement.js +119 -0
  54. package/dist/features/OpenUI5Support.js +125 -0
  55. package/dist/generated/AssetParameters.js +13 -0
  56. package/dist/generated/VersionInfo.js +10 -0
  57. package/dist/generated/css/BusyIndicator.css.js +5 -0
  58. package/dist/generated/css/FontFace.css.js +5 -0
  59. package/dist/generated/css/OverrideFontFace.css.js +5 -0
  60. package/dist/generated/css/SystemCSSVars.css.js +5 -0
  61. package/dist/getSharedResource.js +30 -0
  62. package/dist/i18nBundle.js +62 -11
  63. package/{src → dist/locale}/Locale.js +0 -10
  64. package/dist/locale/RTLAwareRegistry.js +14 -0
  65. package/dist/locale/applyDirection.js +17 -0
  66. package/dist/locale/directionChange.js +32 -0
  67. package/dist/locale/getEffectiveDir.js +28 -0
  68. package/dist/locale/getLocale.js +41 -0
  69. package/dist/locale/languageChange.js +22 -0
  70. package/dist/locale/nextFallbackLocale.js +28 -0
  71. package/dist/{util → locale}/normalizeLocale.js +8 -31
  72. package/dist/renderer/LitRenderer.js +44 -7
  73. package/dist/renderer/directives/style-map.js +72 -0
  74. package/dist/renderer/executeTemplate.js +34 -0
  75. package/dist/sap/base/Log.js +241 -0
  76. package/dist/sap/base/assert.js +8 -0
  77. package/dist/sap/base/security/URLListValidator.js +148 -0
  78. package/dist/sap/base/security/encodeCSS.js +14 -0
  79. package/dist/sap/base/security/encodeXML.js +23 -0
  80. package/dist/sap/base/security/sanitizeHTML.js +16 -0
  81. package/dist/sap/base/strings/toHex.js +8 -0
  82. package/dist/sap/base/util/now.js +7 -0
  83. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +3585 -0
  84. package/dist/theming/CustomStyle.js +47 -6
  85. package/dist/theming/ThemeLoaded.js +22 -0
  86. package/dist/theming/applyTheme.js +79 -0
  87. package/dist/theming/getConstructableStyle.js +30 -0
  88. package/dist/theming/getEffectiveLinksHrefs.js +27 -0
  89. package/dist/theming/getEffectiveStyle.js +39 -0
  90. package/dist/theming/getStylesString.js +15 -0
  91. package/dist/theming/getThemeDesignerTheme.js +87 -0
  92. package/dist/theming/preloadLinks.js +23 -0
  93. package/dist/thirdparty/_merge.js +32 -0
  94. package/dist/thirdparty/isPlainObject.js +18 -0
  95. package/dist/thirdparty/merge.js +10 -0
  96. package/dist/types/CSSColor.js +9 -0
  97. package/dist/{dates → types}/CalendarType.js +2 -2
  98. package/dist/types/DataType.js +13 -1
  99. package/dist/types/Float.js +14 -0
  100. package/dist/types/Integer.js +4 -0
  101. package/dist/types/InvisibleMessageMode.js +30 -0
  102. package/dist/types/ItemNavigationBehavior.js +2 -7
  103. package/dist/types/NavigationMode.js +1 -0
  104. package/dist/types/PopupState.js +1 -1
  105. package/dist/types/ValueState.js +2 -1
  106. package/dist/updateShadowRoot.js +29 -0
  107. package/dist/util/AriaLabelHelper.js +41 -0
  108. package/dist/util/Caret.js +32 -0
  109. package/dist/util/ColorConversion.js +370 -0
  110. package/dist/util/FocusableElements.js +30 -11
  111. package/dist/util/HTMLSanitizer.js +7 -0
  112. package/dist/util/InvisibleMessage.js +60 -0
  113. package/dist/util/PopupUtils.js +93 -0
  114. package/dist/util/SlotsHelper.js +43 -0
  115. package/dist/util/StringHelper.js +17 -2
  116. package/dist/util/TabbableElements.js +9 -2
  117. package/dist/util/arraysAreEqual.js +15 -0
  118. package/dist/util/clamp.js +12 -0
  119. package/dist/util/createLinkInHead.js +19 -0
  120. package/dist/util/debounce.js +17 -0
  121. package/dist/util/detectNavigatorLanguage.js +3 -1
  122. package/dist/util/escapeRegex.js +10 -0
  123. package/dist/util/findNodeOwner.js +35 -0
  124. package/dist/util/generateHighlightedMarkup.js +42 -0
  125. package/dist/util/getActiveElement.js +11 -0
  126. package/dist/util/getClassCopy.js +10 -0
  127. package/dist/util/getEffectiveContentDensity.js +5 -0
  128. package/dist/util/getFileExtension.js +21 -0
  129. package/dist/util/getNormalizedTarget.js +16 -0
  130. package/dist/util/getSingletonElementInstance.js +13 -0
  131. package/dist/util/isDefaultSlotProvided.js +11 -0
  132. package/dist/util/isElementInView.js +15 -0
  133. package/dist/util/isNodeHidden.js +1 -5
  134. package/dist/util/isNodeTabbable.js +4 -4
  135. package/dist/util/isValidPropertyName.js +11 -2
  136. package/dist/util/setToArray.js +10 -0
  137. package/hash.txt +1 -0
  138. package/index.js +1 -1
  139. package/lib/generate-asset-parameters/index.js +25 -0
  140. package/lib/generate-styles/index.js +26 -0
  141. package/lib/generate-version-info/index.js +32 -0
  142. package/package-scripts.js +41 -27
  143. package/package.json +22 -14
  144. package/src/AssetRegistry.js +8 -6
  145. package/src/Boot.js +59 -0
  146. package/src/CSP.js +59 -0
  147. package/src/CustomElementsRegistry.js +95 -0
  148. package/src/CustomElementsScope.js +30 -0
  149. package/src/CustomElementsScopeUtils.js +108 -0
  150. package/src/DOMObserver.js +65 -0
  151. package/src/Device.js +71 -773
  152. package/src/EventProvider.js +38 -26
  153. package/src/FeaturesRegistry.js +4 -1
  154. package/src/FontFace.js +20 -56
  155. package/src/InitialConfiguration.js +64 -17
  156. package/src/Keys.js +295 -0
  157. package/src/ManagedStyles.js +83 -0
  158. package/src/MediaRange.js +109 -0
  159. package/src/PropertiesFileFormat.js +95 -0
  160. package/src/Render.js +175 -0
  161. package/src/RenderQueue.js +41 -17
  162. package/src/RenderScheduler.js +24 -145
  163. package/src/Runtimes.js +107 -0
  164. package/src/StaticArea.js +2 -34
  165. package/src/StaticAreaItem.js +69 -35
  166. package/src/SystemCSSVars.js +10 -0
  167. package/src/Theming.js +3 -44
  168. package/src/UI5Element.js +497 -306
  169. package/src/UI5ElementMetadata.js +198 -19
  170. package/src/asset-registries/Icons.js +125 -14
  171. package/src/asset-registries/Illustrations.js +30 -0
  172. package/src/asset-registries/LocaleData.js +114 -51
  173. package/src/asset-registries/Themes.js +37 -30
  174. package/src/asset-registries/i18n.js +80 -34
  175. package/src/assets-meta/IconCollectionsAlias.js +18 -0
  176. package/src/config/AnimationMode.js +16 -2
  177. package/src/config/CalendarType.js +7 -7
  178. package/src/config/FormatSettings.js +5 -1
  179. package/src/config/Icons.js +52 -0
  180. package/src/config/Language.js +62 -3
  181. package/src/config/NoConflict.js +10 -3
  182. package/src/config/Theme.js +32 -3
  183. package/src/css/BusyIndicator.css +80 -0
  184. package/src/css/FontFace.css +75 -0
  185. package/src/css/OverrideFontFace.css +32 -0
  186. package/src/css/SystemCSSVars.css +17 -0
  187. package/src/delegate/ItemNavigation.js +244 -127
  188. package/src/delegate/ResizeHandler.js +78 -38
  189. package/src/delegate/ScrollEnablement.js +122 -14
  190. package/src/features/F6Navigation.js +110 -0
  191. package/src/features/OpenUI5Enablement.js +119 -0
  192. package/src/features/OpenUI5Support.js +125 -0
  193. package/src/getSharedResource.js +30 -0
  194. package/src/i18nBundle.js +62 -11
  195. package/{dist → src/locale}/Locale.js +0 -10
  196. package/src/locale/RTLAwareRegistry.js +14 -0
  197. package/src/locale/applyDirection.js +17 -0
  198. package/src/locale/directionChange.js +32 -0
  199. package/src/locale/getEffectiveDir.js +28 -0
  200. package/src/locale/getLocale.js +41 -0
  201. package/src/locale/languageChange.js +22 -0
  202. package/src/locale/nextFallbackLocale.js +28 -0
  203. package/src/{util → locale}/normalizeLocale.js +8 -31
  204. package/src/renderer/LitRenderer.js +44 -7
  205. package/src/renderer/directives/style-map.js +72 -0
  206. package/src/renderer/executeTemplate.js +34 -0
  207. package/src/theming/CustomStyle.js +47 -6
  208. package/src/theming/ThemeLoaded.js +22 -0
  209. package/src/theming/applyTheme.js +79 -0
  210. package/src/theming/getConstructableStyle.js +30 -0
  211. package/src/theming/getEffectiveLinksHrefs.js +27 -0
  212. package/src/theming/getEffectiveStyle.js +39 -0
  213. package/src/theming/getStylesString.js +15 -0
  214. package/src/theming/getThemeDesignerTheme.js +87 -0
  215. package/src/theming/preloadLinks.js +23 -0
  216. package/src/thirdparty/_merge.js +32 -0
  217. package/src/thirdparty/isPlainObject.js +18 -0
  218. package/src/thirdparty/merge.js +10 -0
  219. package/src/types/CSSColor.js +9 -0
  220. package/src/{dates → types}/CalendarType.js +2 -2
  221. package/src/types/DataType.js +13 -1
  222. package/src/types/Float.js +14 -0
  223. package/src/types/Integer.js +4 -0
  224. package/src/types/InvisibleMessageMode.js +30 -0
  225. package/src/types/ItemNavigationBehavior.js +2 -7
  226. package/src/types/NavigationMode.js +1 -0
  227. package/src/types/PopupState.js +1 -1
  228. package/src/types/ValueState.js +2 -1
  229. package/src/updateShadowRoot.js +29 -0
  230. package/src/util/AriaLabelHelper.js +41 -0
  231. package/src/util/Caret.js +32 -0
  232. package/src/util/ColorConversion.js +370 -0
  233. package/src/util/FocusableElements.js +30 -11
  234. package/src/util/HTMLSanitizer.js +7 -0
  235. package/src/util/InvisibleMessage.js +60 -0
  236. package/src/util/PopupUtils.js +93 -0
  237. package/src/util/SlotsHelper.js +43 -0
  238. package/src/util/StringHelper.js +17 -2
  239. package/src/util/TabbableElements.js +9 -2
  240. package/src/util/arraysAreEqual.js +15 -0
  241. package/src/util/clamp.js +12 -0
  242. package/src/util/createLinkInHead.js +19 -0
  243. package/src/util/debounce.js +17 -0
  244. package/src/util/detectNavigatorLanguage.js +3 -1
  245. package/src/util/escapeRegex.js +10 -0
  246. package/src/util/findNodeOwner.js +35 -0
  247. package/src/util/generateHighlightedMarkup.js +42 -0
  248. package/src/util/getActiveElement.js +11 -0
  249. package/src/util/getClassCopy.js +10 -0
  250. package/src/util/getEffectiveContentDensity.js +5 -0
  251. package/src/util/getFileExtension.js +21 -0
  252. package/src/util/getNormalizedTarget.js +16 -0
  253. package/src/util/getSingletonElementInstance.js +13 -0
  254. package/src/util/isDefaultSlotProvided.js +11 -0
  255. package/src/util/isElementInView.js +15 -0
  256. package/src/util/isNodeHidden.js +1 -5
  257. package/src/util/isNodeTabbable.js +4 -4
  258. package/src/util/isValidPropertyName.js +11 -2
  259. package/src/util/setToArray.js +10 -0
  260. package/used-modules.txt +10 -0
  261. package/bundle.es5.js +0 -28
  262. package/config/.eslintrc.js +0 -3
  263. package/config/rollup.config.js +0 -1
  264. package/dist/Assets.js +0 -2
  265. package/dist/CSS.js +0 -48
  266. package/dist/FormatSettings.js +0 -31
  267. package/dist/LocaleProvider.js +0 -34
  268. package/dist/ResourceLoaderOverrides.js +0 -38
  269. package/dist/SVGIconRegistry.js +0 -54
  270. package/dist/boot.js +0 -25
  271. package/dist/compatibility/DOMObserver.js +0 -62
  272. package/dist/compatibility/patchNodeValue.js +0 -24
  273. package/dist/compatibility/whenPolyfillLoaded.js +0 -26
  274. package/dist/dates/CalendarDate.js +0 -203
  275. package/dist/dates/CalendarUtils.js +0 -99
  276. package/dist/delegate/CustomResize.js +0 -78
  277. package/dist/delegate/NativeResize.js +0 -44
  278. package/dist/events/PseudoEvents.js +0 -58
  279. package/dist/features/browsersupport/Edge.js +0 -6
  280. package/dist/features/browsersupport/IE11.js +0 -41
  281. package/dist/features/calendar/Buddhist.js +0 -1
  282. package/dist/features/calendar/Islamic.js +0 -1
  283. package/dist/features/calendar/Japanese.js +0 -1
  284. package/dist/features/calendar/Persian.js +0 -1
  285. package/dist/generated/assets/cldr/sap/ui/core/cldr/ar.json +0 -5598
  286. package/dist/generated/assets/cldr/sap/ui/core/cldr/ar_EG.json +0 -5598
  287. package/dist/generated/assets/cldr/sap/ui/core/cldr/ar_SA.json +0 -5598
  288. package/dist/generated/assets/cldr/sap/ui/core/cldr/bg.json +0 -4789
  289. package/dist/generated/assets/cldr/sap/ui/core/cldr/ca.json +0 -4801
  290. package/dist/generated/assets/cldr/sap/ui/core/cldr/cs.json +0 -5245
  291. package/dist/generated/assets/cldr/sap/ui/core/cldr/da.json +0 -4696
  292. package/dist/generated/assets/cldr/sap/ui/core/cldr/de.json +0 -4797
  293. package/dist/generated/assets/cldr/sap/ui/core/cldr/de_AT.json +0 -4798
  294. package/dist/generated/assets/cldr/sap/ui/core/cldr/de_CH.json +0 -4796
  295. package/dist/generated/assets/cldr/sap/ui/core/cldr/el.json +0 -4694
  296. package/dist/generated/assets/cldr/sap/ui/core/cldr/el_CY.json +0 -4694
  297. package/dist/generated/assets/cldr/sap/ui/core/cldr/en.json +0 -4777
  298. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_AU.json +0 -4769
  299. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_GB.json +0 -4778
  300. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_HK.json +0 -4784
  301. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_IE.json +0 -4778
  302. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_IN.json +0 -4779
  303. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_NZ.json +0 -4778
  304. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_PG.json +0 -4779
  305. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_SG.json +0 -4780
  306. package/dist/generated/assets/cldr/sap/ui/core/cldr/en_ZA.json +0 -4779
  307. package/dist/generated/assets/cldr/sap/ui/core/cldr/es.json +0 -4719
  308. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_AR.json +0 -4721
  309. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_BO.json +0 -4720
  310. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_CL.json +0 -4721
  311. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_CO.json +0 -4721
  312. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_MX.json +0 -4722
  313. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_PE.json +0 -4720
  314. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_UY.json +0 -4722
  315. package/dist/generated/assets/cldr/sap/ui/core/cldr/es_VE.json +0 -4721
  316. package/dist/generated/assets/cldr/sap/ui/core/cldr/et.json +0 -4776
  317. package/dist/generated/assets/cldr/sap/ui/core/cldr/fa.json +0 -4704
  318. package/dist/generated/assets/cldr/sap/ui/core/cldr/fi.json +0 -4816
  319. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr.json +0 -4788
  320. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_BE.json +0 -4788
  321. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_CA.json +0 -4782
  322. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_CH.json +0 -4806
  323. package/dist/generated/assets/cldr/sap/ui/core/cldr/fr_LU.json +0 -4788
  324. package/dist/generated/assets/cldr/sap/ui/core/cldr/he.json +0 -5133
  325. package/dist/generated/assets/cldr/sap/ui/core/cldr/hi.json +0 -4680
  326. package/dist/generated/assets/cldr/sap/ui/core/cldr/hr.json +0 -4910
  327. package/dist/generated/assets/cldr/sap/ui/core/cldr/hu.json +0 -4664
  328. package/dist/generated/assets/cldr/sap/ui/core/cldr/id.json +0 -4500
  329. package/dist/generated/assets/cldr/sap/ui/core/cldr/it.json +0 -4757
  330. package/dist/generated/assets/cldr/sap/ui/core/cldr/it_CH.json +0 -4757
  331. package/dist/generated/assets/cldr/sap/ui/core/cldr/ja.json +0 -4599
  332. package/dist/generated/assets/cldr/sap/ui/core/cldr/kk.json +0 -4537
  333. package/dist/generated/assets/cldr/sap/ui/core/cldr/ko.json +0 -4574
  334. package/dist/generated/assets/cldr/sap/ui/core/cldr/lt.json +0 -5234
  335. package/dist/generated/assets/cldr/sap/ui/core/cldr/lv.json +0 -4902
  336. package/dist/generated/assets/cldr/sap/ui/core/cldr/ms.json +0 -4352
  337. package/dist/generated/assets/cldr/sap/ui/core/cldr/nb.json +0 -4784
  338. package/dist/generated/assets/cldr/sap/ui/core/cldr/nl.json +0 -4790
  339. package/dist/generated/assets/cldr/sap/ui/core/cldr/nl_BE.json +0 -4790
  340. package/dist/generated/assets/cldr/sap/ui/core/cldr/pl.json +0 -5223
  341. package/dist/generated/assets/cldr/sap/ui/core/cldr/pt.json +0 -4703
  342. package/dist/generated/assets/cldr/sap/ui/core/cldr/pt_PT.json +0 -4753
  343. package/dist/generated/assets/cldr/sap/ui/core/cldr/ro.json +0 -4881
  344. package/dist/generated/assets/cldr/sap/ui/core/cldr/ru.json +0 -5157
  345. package/dist/generated/assets/cldr/sap/ui/core/cldr/ru_UA.json +0 -5157
  346. package/dist/generated/assets/cldr/sap/ui/core/cldr/sk.json +0 -5125
  347. package/dist/generated/assets/cldr/sap/ui/core/cldr/sl.json +0 -5105
  348. package/dist/generated/assets/cldr/sap/ui/core/cldr/sr.json +0 -4908
  349. package/dist/generated/assets/cldr/sap/ui/core/cldr/sv.json +0 -4818
  350. package/dist/generated/assets/cldr/sap/ui/core/cldr/th.json +0 -4633
  351. package/dist/generated/assets/cldr/sap/ui/core/cldr/tr.json +0 -4791
  352. package/dist/generated/assets/cldr/sap/ui/core/cldr/uk.json +0 -5126
  353. package/dist/generated/assets/cldr/sap/ui/core/cldr/vi.json +0 -4510
  354. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_CN.json +0 -4469
  355. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_HK.json +0 -4479
  356. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_SG.json +0 -4479
  357. package/dist/generated/assets/cldr/sap/ui/core/cldr/zh_TW.json +0 -4565
  358. package/dist/json-imports/LocaleData.js +0 -171
  359. package/dist/renderer/ifDefined.js +0 -21
  360. package/dist/resources/bundle.es5.js +0 -12643
  361. package/dist/resources/bundle.es5.js.map +0 -1
  362. package/dist/resources/bundle.esm.js +0 -7450
  363. package/dist/resources/bundle.esm.js.map +0 -1
  364. package/dist/shims/Core-shim.js +0 -52
  365. package/dist/shims/jquery-shim.js +0 -89
  366. package/dist/test-resources/assets/Themes.js +0 -11
  367. package/dist/test-resources/elements/Child.js +0 -35
  368. package/dist/test-resources/elements/Generic.js +0 -83
  369. package/dist/test-resources/elements/GenericExt.js +0 -26
  370. package/dist/test-resources/elements/NoShadowDOM.js +0 -13
  371. package/dist/test-resources/elements/Parent.js +0 -36
  372. package/dist/test-resources/pages/AllTestElements.html +0 -42
  373. package/dist/test-resources/pages/Configuration.html +0 -20
  374. package/dist/test-resources/pages/ConfigurationScript.html +0 -36
  375. package/dist/test-resources/specs/ConfigurationChange.spec.js +0 -25
  376. package/dist/test-resources/specs/ConfigurationScript.spec.js +0 -61
  377. package/dist/test-resources/specs/ConfigurationURL.spec.js +0 -45
  378. package/dist/test-resources/specs/CustomTheme.spec.js +0 -25
  379. package/dist/test-resources/specs/Theming.spec.js +0 -31
  380. package/dist/test-resources/specs/UI5ElementInvalidation.js +0 -258
  381. package/dist/test-resources/specs/UI5ElementLifecycle.js +0 -93
  382. package/dist/test-resources/specs/UI5ElementListenForChildPropChanges.spec.js +0 -101
  383. package/dist/test-resources/specs/UI5ElementMetadataExt.js +0 -40
  384. package/dist/test-resources/specs/UI5ElementPropertyValidation.js +0 -12
  385. package/dist/test-resources/specs/UI5ElementPropsAndAttrs.spec.js +0 -65
  386. package/dist/test-resources/specs/UI5ElementShadowDOM.js +0 -22
  387. package/dist/test-resources/specs/UI5ElementSlots.js +0 -34
  388. package/dist/theming/StyleInjection.js +0 -67
  389. package/dist/thirdparty/Array.from.js +0 -16
  390. package/dist/thirdparty/Array.prototype.fill.js +0 -44
  391. package/dist/thirdparty/Array.prototype.find.js +0 -46
  392. package/dist/thirdparty/Array.prototype.includes.js +0 -51
  393. package/dist/thirdparty/Element.prototype.closest.js +0 -11
  394. package/dist/thirdparty/Element.prototype.matches.js +0 -6
  395. package/dist/thirdparty/Map.prototype.keys.js +0 -9
  396. package/dist/thirdparty/Number.isInteger.js +0 -5
  397. package/dist/thirdparty/Number.isNaN.js +0 -1
  398. package/dist/thirdparty/Number.parseInt.js +0 -1
  399. package/dist/thirdparty/Object.assign.js +0 -31
  400. package/dist/thirdparty/Object.entries.js +0 -11
  401. package/dist/thirdparty/Symbol.js +0 -2
  402. package/dist/thirdparty/WeakSet.js +0 -27
  403. package/dist/thirdparty/events-polyfills.js +0 -89
  404. package/dist/thirdparty/fetch.js +0 -1
  405. package/dist/thirdparty/template.js +0 -600
  406. package/dist/util/CSSTransformUtils.js +0 -90
  407. package/dist/webcomponentsjs/LICENSE.md +0 -19
  408. package/dist/webcomponentsjs/README.md +0 -229
  409. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  410. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  411. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -297
  412. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  413. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -208
  414. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  415. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +0 -166
  416. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  417. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  418. package/dist/webcomponentsjs/package.json +0 -46
  419. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  420. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  421. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  422. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  423. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  424. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  425. package/dist/webcomponentsjs/webcomponents-bundle.js +0 -298
  426. package/dist/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  427. package/dist/webcomponentsjs/webcomponents-loader.js +0 -185
  428. package/src/Assets.js +0 -2
  429. package/src/CSS.js +0 -48
  430. package/src/FormatSettings.js +0 -31
  431. package/src/LocaleProvider.js +0 -34
  432. package/src/ResourceLoaderOverrides.js +0 -38
  433. package/src/SVGIconRegistry.js +0 -54
  434. package/src/boot.js +0 -25
  435. package/src/compatibility/DOMObserver.js +0 -62
  436. package/src/compatibility/patchNodeValue.js +0 -24
  437. package/src/compatibility/whenPolyfillLoaded.js +0 -26
  438. package/src/dates/CalendarDate.js +0 -203
  439. package/src/dates/CalendarUtils.js +0 -99
  440. package/src/delegate/CustomResize.js +0 -78
  441. package/src/delegate/NativeResize.js +0 -44
  442. package/src/events/PseudoEvents.js +0 -58
  443. package/src/features/browsersupport/Edge.js +0 -6
  444. package/src/features/browsersupport/IE11.js +0 -41
  445. package/src/features/calendar/Buddhist.js +0 -1
  446. package/src/features/calendar/Islamic.js +0 -1
  447. package/src/features/calendar/Japanese.js +0 -1
  448. package/src/features/calendar/Persian.js +0 -1
  449. package/src/json-imports/LocaleData.js +0 -171
  450. package/src/renderer/ifDefined.js +0 -21
  451. package/src/shims/Core-shim.js +0 -52
  452. package/src/shims/jquery-shim.js +0 -89
  453. package/src/theming/StyleInjection.js +0 -67
  454. package/src/thirdparty/Array.from.js +0 -16
  455. package/src/thirdparty/Array.prototype.fill.js +0 -44
  456. package/src/thirdparty/Array.prototype.find.js +0 -46
  457. package/src/thirdparty/Array.prototype.includes.js +0 -51
  458. package/src/thirdparty/Element.prototype.closest.js +0 -11
  459. package/src/thirdparty/Element.prototype.matches.js +0 -6
  460. package/src/thirdparty/Map.prototype.keys.js +0 -9
  461. package/src/thirdparty/Number.isInteger.js +0 -5
  462. package/src/thirdparty/Number.isNaN.js +0 -1
  463. package/src/thirdparty/Number.parseInt.js +0 -1
  464. package/src/thirdparty/Object.assign.js +0 -31
  465. package/src/thirdparty/Object.entries.js +0 -11
  466. package/src/thirdparty/Symbol.js +0 -2
  467. package/src/thirdparty/WeakSet.js +0 -27
  468. package/src/thirdparty/events-polyfills.js +0 -89
  469. package/src/thirdparty/fetch.js +0 -1
  470. package/src/thirdparty/template.js +0 -600
  471. package/src/util/CSSTransformUtils.js +0 -90
@@ -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