@colijnit/corecomponents_v12 12.2.25 → 12.2.27

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 (1276) hide show
  1. package/README.md +9 -12
  2. package/bundles/colijnit-corecomponents_v12.umd.js +14050 -0
  3. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -0
  4. package/colijnit-corecomponents_v12.d.ts +43 -0
  5. package/colijnit-corecomponents_v12.metadata.json +1 -0
  6. package/esm2015/colijnit-corecomponents_v12.js +44 -0
  7. package/esm2015/lib/components/article-tile/article-tile.component.js +80 -0
  8. package/esm2015/lib/components/article-tile/article-tile.module.js +35 -0
  9. package/esm2015/lib/components/base/base-input.component.js +834 -0
  10. package/esm2015/lib/components/base/base.module.js +22 -0
  11. package/esm2015/lib/components/base/commit-buttons/commit-buttons.component.js +103 -0
  12. package/esm2015/lib/components/base/commit-buttons/commit-buttons.module.js +21 -0
  13. package/esm2015/lib/components/base/dialog-base.component.js +6 -0
  14. package/esm2015/lib/components/base-input-date-picker/base-input-date-picker.directive.js +25 -0
  15. package/esm2015/lib/components/button/button.component.js +79 -0
  16. package/esm2015/lib/components/button/button.module.js +19 -0
  17. package/esm2015/lib/components/calendar/calendar-template.component.js +342 -0
  18. package/esm2015/lib/components/calendar/calendar.component.js +45 -0
  19. package/esm2015/lib/components/calendar/calendar.module.js +28 -0
  20. package/esm2015/lib/components/card/card.component.js +72 -0
  21. package/esm2015/lib/components/card/card.module.js +35 -0
  22. package/esm2015/lib/components/carousel/carousel.component.js +130 -0
  23. package/esm2015/lib/components/carousel/carousel.module.js +32 -0
  24. package/esm2015/lib/components/carousel-3d/carousel-3d.component.js +315 -0
  25. package/esm2015/lib/components/carousel-3d/carousel-3d.module.js +19 -0
  26. package/esm2015/lib/components/carousel-3d/carouselItem.js +54 -0
  27. package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.component.js +87 -0
  28. package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.module.js +19 -0
  29. package/esm2015/lib/components/co-dialog/co-dialog.component.js +113 -0
  30. package/esm2015/lib/components/co-dialog/co-dialog.module.js +19 -0
  31. package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.component.js +51 -0
  32. package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.module.js +17 -0
  33. package/esm2015/lib/components/collapsible/collapsible.component.js +92 -0
  34. package/esm2015/lib/components/collapsible/collapsible.module.js +19 -0
  35. package/esm2015/lib/components/color-picker/color-picker.component.js +41 -0
  36. package/esm2015/lib/components/color-picker/color-picker.module.js +21 -0
  37. package/esm2015/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.js +79 -0
  38. package/esm2015/lib/components/core-dialog/core-dialog.module.js +39 -0
  39. package/esm2015/lib/components/core-dialog/core-dialog.service.js +67 -0
  40. package/esm2015/lib/components/core-dialog/core-dynamic-component.service.js +93 -0
  41. package/esm2015/lib/components/double-calendar/double-calendar.component.js +80 -0
  42. package/esm2015/lib/components/double-calendar/double-calendar.module.js +25 -0
  43. package/esm2015/lib/components/filter-item/filter-item-viewmodel.js +13 -0
  44. package/esm2015/lib/components/filter-item/filter-item.component.js +646 -0
  45. package/esm2015/lib/components/filter-item/filter-item.module.js +43 -0
  46. package/esm2015/lib/components/filter-item/filter-viewmodel.js +11 -0
  47. package/esm2015/lib/components/form/form.component.js +184 -0
  48. package/esm2015/lib/components/form/form.module.js +23 -0
  49. package/esm2015/lib/components/grid-toolbar/grid-toolbar.component.js +57 -0
  50. package/esm2015/lib/components/grid-toolbar/grid-toolbar.module.js +23 -0
  51. package/esm2015/lib/components/grid-toolbar-button/grid-toolbar-button.component.js +28 -0
  52. package/esm2015/lib/components/grid-toolbar-button/grid-toolbar-button.module.js +19 -0
  53. package/esm2015/lib/components/icon/icon-cache.service.js +52 -0
  54. package/esm2015/lib/components/icon/icon.component.js +48 -0
  55. package/esm2015/lib/components/icon/icon.module.js +25 -0
  56. package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.component.js +64 -0
  57. package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.module.js +23 -0
  58. package/esm2015/lib/components/image/image.component.js +42 -0
  59. package/esm2015/lib/components/image/image.module.js +14 -0
  60. package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +79 -0
  61. package/esm2015/lib/components/input-checkbox/input-checkbox.module.js +19 -0
  62. package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +91 -0
  63. package/esm2015/lib/components/input-date-picker/input-date-picker.module.js +26 -0
  64. package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +134 -0
  65. package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.module.js +27 -0
  66. package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +314 -0
  67. package/esm2015/lib/components/input-number-picker/input-number-picker.module.js +23 -0
  68. package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +84 -0
  69. package/esm2015/lib/components/input-radio-button/input-radio-button.module.js +19 -0
  70. package/esm2015/lib/components/input-scanner/bar-code-scanner.js +23 -0
  71. package/esm2015/lib/components/input-scanner/input-scanner.component.js +72 -0
  72. package/esm2015/lib/components/input-scanner/input-scanner.module.js +21 -0
  73. package/esm2015/lib/components/input-scanner/scanner.service.js +28 -0
  74. package/esm2015/lib/components/input-search/input-search.component.js +83 -0
  75. package/esm2015/lib/components/input-search/input-search.module.js +21 -0
  76. package/esm2015/lib/components/input-text/input-text.component.js +239 -0
  77. package/esm2015/lib/components/input-text/input-text.module.js +33 -0
  78. package/esm2015/lib/components/input-textarea/input-textarea.component.js +78 -0
  79. package/esm2015/lib/components/input-textarea/input-textarea.module.js +27 -0
  80. package/esm2015/lib/components/level-indicator/level-indicator-level.enum.js +7 -0
  81. package/esm2015/lib/components/level-indicator/level-indicator.component.js +36 -0
  82. package/esm2015/lib/components/level-indicator/level-indicator.module.js +15 -0
  83. package/esm2015/lib/components/list-of-values/list-of-values-multiselect-popup.component.js +112 -0
  84. package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +242 -0
  85. package/esm2015/lib/components/list-of-values/list-of-values.component.js +233 -0
  86. package/esm2015/lib/components/list-of-values/list-of-values.module.js +38 -0
  87. package/esm2015/lib/components/loader/loader.component.js +84 -0
  88. package/esm2015/lib/components/loader/loader.module.js +19 -0
  89. package/esm2015/lib/components/pagination/paginate.pipe.js +99 -0
  90. package/esm2015/lib/components/pagination/pagination-instance.js +2 -0
  91. package/esm2015/lib/components/pagination/pagination.component.js +126 -0
  92. package/esm2015/lib/components/pagination/pagination.module.js +28 -0
  93. package/esm2015/lib/components/pagination/pagination.service.js +88 -0
  94. package/esm2015/lib/components/pagination-bar/pagination-bar.component.js +151 -0
  95. package/esm2015/lib/components/pagination-bar/pagination-bar.module.js +19 -0
  96. package/esm2015/lib/components/popup/const/popup-window-token.js +3 -0
  97. package/esm2015/lib/components/popup/interface/popup-button.js +8 -0
  98. package/esm2015/lib/components/popup/interface/popup-close-event.js +2 -0
  99. package/esm2015/lib/components/popup/interface/popup-settings.js +42 -0
  100. package/esm2015/lib/components/popup/interface/popup.js +2 -0
  101. package/esm2015/lib/components/popup/model/popup-button-globals.js +11 -0
  102. package/esm2015/lib/components/popup/model/popup-window.js +38 -0
  103. package/esm2015/lib/components/popup/popup-buttons.component.js +53 -0
  104. package/esm2015/lib/components/popup/popup-message-display.component.js +47 -0
  105. package/esm2015/lib/components/popup/popup-window-shell.component.js +159 -0
  106. package/esm2015/lib/components/popup/popup.module.js +49 -0
  107. package/esm2015/lib/components/popup/service/popup-shower.service.js +90 -0
  108. package/esm2015/lib/components/popup/service/prompt.service.js +127 -0
  109. package/esm2015/lib/components/popup/text-input-popup.component.js +36 -0
  110. package/esm2015/lib/components/responsive-text/responsive-text.component.js +24 -0
  111. package/esm2015/lib/components/responsive-text/responsive-text.module.js +19 -0
  112. package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +164 -0
  113. package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +172 -0
  114. package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +111 -0
  115. package/esm2015/lib/components/simple-grid/simple-grid.component.js +465 -0
  116. package/esm2015/lib/components/simple-grid/simple-grid.module.js +41 -0
  117. package/esm2015/lib/components/tile/tile.component.js +73 -0
  118. package/esm2015/lib/components/tile/tile.module.js +23 -0
  119. package/esm2015/lib/components/tile-select/tile-select.component.js +36 -0
  120. package/esm2015/lib/components/tile-select/tile-select.module.js +21 -0
  121. package/esm2015/lib/components/tooltip/tooltip.component.js +77 -0
  122. package/esm2015/lib/components/tooltip/tooltip.module.js +19 -0
  123. package/esm2015/lib/components/validation-error/validation-error.component.js +38 -0
  124. package/esm2015/lib/components/validation-error/validation-error.module.js +25 -0
  125. package/esm2015/lib/components/view-mode-buttons/content-view-mode.enum.js +11 -0
  126. package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.component.js +61 -0
  127. package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.module.js +21 -0
  128. package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +4 -0
  129. package/esm2015/lib/core/constant/java-max-int.js +2 -0
  130. package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +45 -0
  131. package/esm2015/lib/core/decorator/input-boolean.decorator.js +34 -0
  132. package/esm2015/lib/core/enum/co-direction.js +9 -0
  133. package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +7 -0
  134. package/esm2015/lib/core/enum/co-document-type.enum.js +11 -0
  135. package/esm2015/lib/core/enum/co-orientation.js +17 -0
  136. package/esm2015/lib/core/enum/core-components-icon.enum.js +300 -0
  137. package/esm2015/lib/core/enum/file-type-internal.enum.js +17 -0
  138. package/esm2015/lib/core/enum/file-type.enum.js +11 -0
  139. package/esm2015/lib/core/enum/filterItem-mode.enum.js +43 -0
  140. package/esm2015/lib/core/enum/input-number-picker-show-mode.enum.js +8 -0
  141. package/esm2015/lib/core/enum/keyboard-code.enum.js +74 -0
  142. package/esm2015/lib/core/enum/keyboard-key.enum.js +76 -0
  143. package/esm2015/lib/core/enum/object-right-type.enum.js +7 -0
  144. package/esm2015/lib/core/enum/popup-button-type.enum.js +12 -0
  145. package/esm2015/lib/core/enum/popup-type.enum.js +11 -0
  146. package/esm2015/lib/core/enum/table-name.enum.js +81 -0
  147. package/esm2015/lib/core/function/any-nill.function.js +6 -0
  148. package/esm2015/lib/core/function/is-nill.function.js +5 -0
  149. package/esm2015/lib/core/function/none-nill.function.js +17 -0
  150. package/esm2015/lib/core/function/not-nill.function.js +5 -0
  151. package/esm2015/lib/core/model/bounds-constrained-number-value.js +171 -0
  152. package/esm2015/lib/core/model/check-precision-and-scale-result.js +2 -0
  153. package/esm2015/lib/core/model/check-within-stepped-bounds-result.js +2 -0
  154. package/esm2015/lib/core/model/co-document-right.bo.js +3 -0
  155. package/esm2015/lib/core/model/co-document.bo.js +121 -0
  156. package/esm2015/lib/core/model/core-components-icon-svg.js +299 -0
  157. package/esm2015/lib/core/model/element-position.js +10 -0
  158. package/esm2015/lib/core/model/event/string-prompt-result-event.js +8 -0
  159. package/esm2015/lib/core/service/form-input-user-change-listener.service.js +25 -0
  160. package/esm2015/lib/core/service/form-master.service.js +102 -0
  161. package/esm2015/lib/core/service/ng-zone-wrapper.service.js +20 -0
  162. package/esm2015/lib/core/utils/array-utils.js +264 -0
  163. package/esm2015/lib/core/utils/browser-utils.js +100 -0
  164. package/esm2015/lib/core/utils/direction-enum-utils.js +14 -0
  165. package/esm2015/lib/core/utils/event-utils.js +53 -0
  166. package/esm2015/lib/core/utils/file-utils.js +267 -0
  167. package/esm2015/lib/core/utils/number-utils.js +309 -0
  168. package/esm2015/lib/core/utils/object-utils.js +186 -0
  169. package/esm2015/lib/core/utils/string-utils.js +94 -0
  170. package/esm2015/lib/core/validator/email.validator.js +6 -0
  171. package/esm2015/lib/core/validator/equal.validator.js +11 -0
  172. package/esm2015/lib/core/validator/max-string-length.validator.js +10 -0
  173. package/esm2015/lib/core/validator/password.validator.js +31 -0
  174. package/esm2015/lib/core/validator/precision-scale.validator.js +11 -0
  175. package/esm2015/lib/core/validator/required.validator.js +5 -0
  176. package/esm2015/lib/directives/clickoutside/click-outside-master.service.js +57 -0
  177. package/esm2015/lib/directives/clickoutside/click-outside.directive.js +71 -0
  178. package/esm2015/lib/directives/clickoutside/clickoutside.module.js +19 -0
  179. package/esm2015/lib/directives/observe-visibility/observe-visibility.directive.js +53 -0
  180. package/esm2015/lib/directives/observe-visibility/observe-visibility.module.js +15 -0
  181. package/esm2015/lib/directives/overlay/overlay-parent.directive.js +19 -0
  182. package/esm2015/lib/directives/overlay/overlay.directive.js +161 -0
  183. package/esm2015/lib/directives/overlay/overlay.module.js +18 -0
  184. package/esm2015/lib/directives/ripple/ripple-ref.js +26 -0
  185. package/esm2015/lib/directives/ripple/ripple-renderer.js +160 -0
  186. package/esm2015/lib/directives/ripple/ripple.directive.js +80 -0
  187. package/esm2015/lib/directives/ripple/ripple.module.js +24 -0
  188. package/esm2015/lib/directives/ripple/scroll-dispatcher.service.js +108 -0
  189. package/esm2015/lib/directives/ripple/scrollable.directive.js +40 -0
  190. package/esm2015/lib/directives/ripple/viewport-ruler.service.js +73 -0
  191. package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +158 -0
  192. package/esm2015/lib/directives/screen-configuration/screen-configuration.module.js +19 -0
  193. package/esm2015/lib/directives/stopclick/stop-click.directive.js +38 -0
  194. package/esm2015/lib/directives/stopclick/stop-click.module.js +15 -0
  195. package/esm2015/lib/directives/template-wrapper/template-wrapper.directive.js +68 -0
  196. package/esm2015/lib/directives/template-wrapper/template-wrapper.module.js +15 -0
  197. package/esm2015/lib/directives/tooltip/tooltip-directive.module.js +19 -0
  198. package/esm2015/lib/directives/tooltip/tooltip.directive.js +78 -0
  199. package/esm2015/lib/interfaces/dialog-response.interface.js +2 -0
  200. package/esm2015/lib/interfaces/scanner-input.interface.js +2 -0
  201. package/esm2015/lib/interfaces/screen-config-adapter-component-interface-name.js +4 -0
  202. package/esm2015/lib/interfaces/screen-config-adapter.component.interface.js +2 -0
  203. package/esm2015/lib/model/enum/app-button-type.enum.js +11 -0
  204. package/esm2015/lib/model/enum/app-popup-type.enum.js +8 -0
  205. package/esm2015/lib/pipes/append.pipe.js +17 -0
  206. package/esm2015/lib/pipes/append.pipe.module.js +15 -0
  207. package/esm2015/lib/pipes/filter.pipe.js +16 -0
  208. package/esm2015/lib/pipes/filter.pipe.module.js +15 -0
  209. package/esm2015/lib/pipes/prepend.pipe.js +17 -0
  210. package/esm2015/lib/pipes/prepend.pipe.module.js +15 -0
  211. package/esm2015/lib/pipes/price-display-pipe.module.js +15 -0
  212. package/esm2015/lib/pipes/price-display.pipe.js +20 -0
  213. package/esm2015/lib/service/base-module-screen-config.service.js +205 -0
  214. package/esm2015/lib/service/base-module.service.js +42 -0
  215. package/esm2015/lib/service/color-sequence.service.js +23 -0
  216. package/esm2015/lib/service/overlay.service.js +73 -0
  217. package/esm2015/lib/translation/core-components-translation.module.js +29 -0
  218. package/esm2015/lib/translation/core-components-translation.service.js +17 -0
  219. package/esm2015/lib/translation/core-dictionary.service.js +29 -0
  220. package/esm2015/lib/translation/core-localize.pipe.js +26 -0
  221. package/esm2015/public-api.js +130 -0
  222. package/fesm2015/colijnit-corecomponents_v12.js +13391 -0
  223. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -0
  224. package/lib/components/article-tile/article-tile.component.d.ts +22 -0
  225. package/lib/components/article-tile/article-tile.module.d.ts +2 -0
  226. package/lib/components/base/base-input.component.d.ts +182 -0
  227. package/lib/components/base/base.module.d.ts +2 -0
  228. package/lib/components/base/commit-buttons/commit-buttons.component.d.ts +21 -0
  229. package/lib/components/base/commit-buttons/commit-buttons.module.d.ts +2 -0
  230. package/lib/components/base/dialog-base.component.d.ts +4 -0
  231. package/lib/components/base-input-date-picker/base-input-date-picker.directive.d.ts +15 -0
  232. package/lib/components/button/button.component.d.ts +29 -0
  233. package/lib/components/button/button.module.d.ts +2 -0
  234. package/lib/components/calendar/calendar-template.component.d.ts +60 -0
  235. package/lib/components/calendar/calendar.component.d.ts +13 -0
  236. package/lib/components/calendar/calendar.module.d.ts +2 -0
  237. package/lib/components/card/card.component.d.ts +23 -0
  238. package/lib/components/card/card.module.d.ts +2 -0
  239. package/lib/components/carousel/carousel.component.d.ts +23 -0
  240. package/lib/components/carousel/carousel.module.d.ts +6 -0
  241. package/lib/components/carousel-3d/carousel-3d.component.d.ts +55 -0
  242. package/lib/components/carousel-3d/carousel-3d.module.d.ts +2 -0
  243. package/lib/components/carousel-3d/carouselItem.d.ts +13 -0
  244. package/lib/components/checkmark-overlay/checkmark-overlay.component.d.ts +17 -0
  245. package/lib/components/checkmark-overlay/checkmark-overlay.module.d.ts +2 -0
  246. package/lib/components/co-dialog/co-dialog.component.d.ts +23 -0
  247. package/lib/components/co-dialog/co-dialog.module.d.ts +2 -0
  248. package/lib/components/co-dialog-wizard/co-dialog-wizard.component.d.ts +9 -0
  249. package/lib/components/co-dialog-wizard/co-dialog-wizard.module.d.ts +2 -0
  250. package/lib/components/collapsible/collapsible.component.d.ts +22 -0
  251. package/lib/components/collapsible/collapsible.module.d.ts +2 -0
  252. package/lib/components/color-picker/color-picker.component.d.ts +6 -0
  253. package/lib/components/color-picker/color-picker.module.d.ts +2 -0
  254. package/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +20 -0
  255. package/lib/components/core-dialog/core-dialog.module.d.ts +4 -0
  256. package/lib/components/core-dialog/core-dialog.service.d.ts +15 -0
  257. package/lib/components/core-dialog/core-dynamic-component.service.d.ts +12 -0
  258. package/lib/components/double-calendar/double-calendar.component.d.ts +18 -0
  259. package/lib/components/double-calendar/double-calendar.module.d.ts +2 -0
  260. package/lib/components/filter-item/filter-item-viewmodel.d.ts +9 -0
  261. package/lib/components/filter-item/filter-item.component.d.ts +80 -0
  262. package/lib/components/filter-item/filter-item.module.d.ts +2 -0
  263. package/lib/components/filter-item/filter-viewmodel.d.ts +8 -0
  264. package/lib/components/form/form.component.d.ts +39 -0
  265. package/lib/components/form/form.module.d.ts +2 -0
  266. package/lib/components/grid-toolbar/grid-toolbar.component.d.ts +19 -0
  267. package/lib/components/grid-toolbar/grid-toolbar.module.d.ts +2 -0
  268. package/lib/components/grid-toolbar-button/grid-toolbar-button.component.d.ts +8 -0
  269. package/lib/components/grid-toolbar-button/grid-toolbar-button.module.d.ts +2 -0
  270. package/lib/components/icon/icon-cache.service.d.ts +20 -0
  271. package/lib/components/icon/icon.component.d.ts +17 -0
  272. package/lib/components/icon/icon.module.d.ts +2 -0
  273. package/lib/components/icon-collapse-handle/icon-collapse-handle.component.d.ts +21 -0
  274. package/lib/components/icon-collapse-handle/icon-collapse-handle.module.d.ts +2 -0
  275. package/lib/components/image/image.component.d.ts +20 -0
  276. package/lib/components/image/image.module.d.ts +2 -0
  277. package/lib/components/input-checkbox/input-checkbox.component.d.ts +24 -0
  278. package/lib/components/input-checkbox/input-checkbox.module.d.ts +2 -0
  279. package/lib/components/input-date-picker/input-date-picker.component.d.ts +12 -0
  280. package/lib/components/input-date-picker/input-date-picker.module.d.ts +2 -0
  281. package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +20 -0
  282. package/lib/components/input-date-range-picker/input-date-range-picker.module.d.ts +2 -0
  283. package/lib/components/input-number-picker/input-number-picker.component.d.ts +73 -0
  284. package/lib/components/input-number-picker/input-number-picker.module.d.ts +2 -0
  285. package/lib/components/input-radio-button/input-radio-button.component.d.ts +19 -0
  286. package/lib/components/input-radio-button/input-radio-button.module.d.ts +2 -0
  287. package/lib/components/input-scanner/bar-code-scanner.d.ts +7 -0
  288. package/lib/components/input-scanner/input-scanner.component.d.ts +24 -0
  289. package/lib/components/input-scanner/input-scanner.module.d.ts +2 -0
  290. package/lib/components/input-scanner/scanner.service.d.ts +11 -0
  291. package/lib/components/input-search/input-search.component.d.ts +20 -0
  292. package/lib/components/input-search/input-search.module.d.ts +2 -0
  293. package/lib/components/input-text/input-text.component.d.ts +65 -0
  294. package/lib/components/input-text/input-text.module.d.ts +2 -0
  295. package/lib/components/input-textarea/input-textarea.component.d.ts +19 -0
  296. package/lib/components/input-textarea/input-textarea.module.d.ts +2 -0
  297. package/lib/components/level-indicator/level-indicator-level.enum.d.ts +5 -0
  298. package/lib/components/level-indicator/level-indicator.component.d.ts +10 -0
  299. package/lib/components/level-indicator/level-indicator.module.d.ts +2 -0
  300. package/lib/components/list-of-values/list-of-values-multiselect-popup.component.d.ts +25 -0
  301. package/lib/components/list-of-values/list-of-values-popup.component.d.ts +47 -0
  302. package/lib/components/list-of-values/list-of-values.component.d.ts +37 -0
  303. package/lib/components/list-of-values/list-of-values.module.d.ts +2 -0
  304. package/lib/components/loader/loader.component.d.ts +3 -0
  305. package/lib/components/loader/loader.module.d.ts +2 -0
  306. package/lib/components/pagination/paginate.pipe.d.ts +15 -0
  307. package/lib/components/pagination/pagination-instance.d.ts +14 -0
  308. package/lib/components/pagination/pagination.component.d.ts +38 -0
  309. package/lib/components/pagination/pagination.module.d.ts +2 -0
  310. package/lib/components/pagination/pagination.service.d.ts +24 -0
  311. package/lib/components/pagination-bar/pagination-bar.component.d.ts +33 -0
  312. package/lib/components/pagination-bar/pagination-bar.module.d.ts +2 -0
  313. package/lib/components/popup/const/popup-window-token.d.ts +3 -0
  314. package/lib/components/popup/interface/popup-button.d.ts +8 -0
  315. package/lib/components/popup/interface/popup-close-event.d.ts +5 -0
  316. package/lib/components/popup/interface/popup-settings.d.ts +21 -0
  317. package/lib/components/popup/interface/popup.d.ts +9 -0
  318. package/lib/components/popup/model/popup-button-globals.d.ts +9 -0
  319. package/lib/components/popup/model/popup-window.d.ts +21 -0
  320. package/lib/components/popup/popup-buttons.component.d.ts +13 -0
  321. package/lib/components/popup/popup-message-display.component.d.ts +12 -0
  322. package/lib/components/popup/popup-window-shell.component.d.ts +42 -0
  323. package/lib/components/popup/popup.module.d.ts +4 -0
  324. package/lib/components/popup/service/popup-shower.service.d.ts +17 -0
  325. package/lib/components/popup/service/prompt.service.d.ts +17 -0
  326. package/lib/components/popup/text-input-popup.component.d.ts +12 -0
  327. package/lib/components/responsive-text/responsive-text.component.d.ts +4 -0
  328. package/lib/components/responsive-text/responsive-text.module.d.ts +2 -0
  329. package/lib/components/simple-grid/base-simple-grid.component.d.ts +52 -0
  330. package/lib/components/simple-grid/simple-grid-cell.component.d.ts +30 -0
  331. package/lib/components/simple-grid/simple-grid-column.directive.d.ts +42 -0
  332. package/lib/components/simple-grid/simple-grid.component.d.ts +64 -0
  333. package/lib/components/simple-grid/simple-grid.module.d.ts +2 -0
  334. package/lib/components/tile/tile.component.d.ts +16 -0
  335. package/lib/components/tile/tile.module.d.ts +2 -0
  336. package/lib/components/tile-select/tile-select.component.d.ts +8 -0
  337. package/lib/components/tile-select/tile-select.module.d.ts +2 -0
  338. package/lib/components/tooltip/tooltip.component.d.ts +18 -0
  339. package/lib/components/tooltip/tooltip.module.d.ts +2 -0
  340. package/lib/components/validation-error/validation-error.component.d.ts +12 -0
  341. package/lib/components/validation-error/validation-error.module.d.ts +2 -0
  342. package/lib/components/view-mode-buttons/content-view-mode.enum.d.ts +8 -0
  343. package/lib/components/view-mode-buttons/view-mode-buttons.component.d.ts +17 -0
  344. package/lib/components/view-mode-buttons/view-mode-buttons.module.d.ts +2 -0
  345. package/lib/core/constant/default-upper-bound-for-range-components.d.ts +2 -0
  346. package/lib/core/constant/java-max-int.d.ts +1 -0
  347. package/lib/core/constant/number-inputs-key-down-white-list.d.ts +2 -0
  348. package/lib/core/decorator/input-boolean.decorator.d.ts +8 -0
  349. package/lib/core/enum/co-direction.d.ts +6 -0
  350. package/lib/core/enum/co-document-image-display-kind.enum.d.ts +5 -0
  351. package/lib/core/enum/co-document-type.enum.d.ts +5 -0
  352. package/lib/core/enum/co-orientation.d.ts +6 -0
  353. package/lib/core/enum/core-components-icon.enum.d.ts +298 -0
  354. package/lib/core/enum/file-type-internal.enum.d.ts +15 -0
  355. package/lib/core/enum/file-type.enum.d.ts +5 -0
  356. package/lib/core/enum/filterItem-mode.enum.d.ts +15 -0
  357. package/lib/core/enum/input-number-picker-show-mode.enum.d.ts +5 -0
  358. package/lib/core/enum/keyboard-code.enum.d.ts +71 -0
  359. package/lib/core/enum/keyboard-key.enum.d.ts +70 -0
  360. package/lib/core/enum/object-right-type.enum.d.ts +5 -0
  361. package/lib/core/enum/popup-button-type.enum.d.ts +9 -0
  362. package/lib/core/enum/popup-type.enum.d.ts +9 -0
  363. package/lib/core/enum/table-name.enum.d.ts +79 -0
  364. package/lib/core/function/any-nill.function.d.ts +1 -0
  365. package/lib/core/function/is-nill.function.d.ts +1 -0
  366. package/lib/core/function/none-nill.function.d.ts +1 -0
  367. package/lib/core/function/not-nill.function.d.ts +1 -0
  368. package/lib/core/model/bounds-constrained-number-value.d.ts +46 -0
  369. package/lib/core/model/check-precision-and-scale-result.d.ts +4 -0
  370. package/lib/core/model/check-within-stepped-bounds-result.d.ts +8 -0
  371. package/lib/core/model/co-document-right.bo.d.ts +6 -0
  372. package/lib/core/model/co-document.bo.d.ts +61 -0
  373. package/lib/core/model/core-components-icon-svg.d.ts +4 -0
  374. package/lib/core/model/element-position.d.ts +7 -0
  375. package/lib/core/model/event/string-prompt-result-event.d.ts +6 -0
  376. package/lib/core/service/form-input-user-change-listener.service.d.ts +10 -0
  377. package/lib/core/service/form-master.service.d.ts +26 -0
  378. package/lib/core/service/ng-zone-wrapper.service.d.ts +6 -0
  379. package/lib/core/utils/array-utils.d.ts +85 -0
  380. package/lib/core/utils/browser-utils.d.ts +15 -0
  381. package/lib/core/utils/direction-enum-utils.d.ts +5 -0
  382. package/lib/core/utils/event-utils.d.ts +12 -0
  383. package/lib/core/utils/file-utils.d.ts +29 -0
  384. package/lib/core/utils/number-utils.d.ts +89 -0
  385. package/lib/core/utils/object-utils.d.ts +31 -0
  386. package/lib/core/utils/string-utils.d.ts +25 -0
  387. package/lib/core/validator/email.validator.d.ts +2 -0
  388. package/lib/core/validator/equal.validator.d.ts +2 -0
  389. package/lib/core/validator/max-string-length.validator.d.ts +2 -0
  390. package/lib/core/validator/password.validator.d.ts +3 -0
  391. package/lib/core/validator/precision-scale.validator.d.ts +2 -0
  392. package/lib/core/validator/required.validator.d.ts +2 -0
  393. package/lib/directives/clickoutside/click-outside-master.service.d.ts +15 -0
  394. package/lib/directives/clickoutside/click-outside.directive.d.ts +18 -0
  395. package/lib/directives/clickoutside/clickoutside.module.d.ts +2 -0
  396. package/lib/directives/observe-visibility/observe-visibility.directive.d.ts +14 -0
  397. package/lib/directives/observe-visibility/observe-visibility.module.d.ts +2 -0
  398. package/lib/directives/overlay/overlay-parent.directive.d.ts +6 -0
  399. package/lib/directives/overlay/overlay.directive.d.ts +25 -0
  400. package/lib/directives/overlay/overlay.module.d.ts +2 -0
  401. package/lib/directives/ripple/ripple-ref.d.ts +21 -0
  402. package/lib/directives/ripple/ripple-renderer.d.ts +56 -0
  403. package/lib/directives/ripple/ripple.directive.d.ts +56 -0
  404. package/lib/directives/ripple/ripple.module.d.ts +2 -0
  405. package/lib/directives/ripple/scroll-dispatcher.service.d.ts +51 -0
  406. package/lib/directives/ripple/scrollable.directive.d.ts +20 -0
  407. package/lib/directives/ripple/viewport-ruler.service.d.ts +29 -0
  408. package/lib/directives/screen-configuration/screen-configuration.directive.d.ts +32 -0
  409. package/lib/directives/screen-configuration/screen-configuration.module.d.ts +2 -0
  410. package/lib/directives/stopclick/stop-click.directive.d.ts +10 -0
  411. package/lib/directives/stopclick/stop-click.module.d.ts +2 -0
  412. package/lib/directives/template-wrapper/template-wrapper.directive.d.ts +13 -0
  413. package/lib/directives/template-wrapper/template-wrapper.module.d.ts +2 -0
  414. package/lib/directives/tooltip/tooltip-directive.module.d.ts +2 -0
  415. package/lib/directives/tooltip/tooltip.directive.d.ts +20 -0
  416. package/lib/interfaces/dialog-response.interface.d.ts +6 -0
  417. package/lib/interfaces/screen-config-adapter-component-interface-name.d.ts +3 -0
  418. package/lib/interfaces/screen-config-adapter.component.interface.d.ts +10 -0
  419. package/lib/model/enum/app-button-type.enum.d.ts +9 -0
  420. package/lib/model/enum/app-popup-type.enum.d.ts +6 -0
  421. package/lib/pipes/append.pipe.d.ts +4 -0
  422. package/lib/pipes/append.pipe.module.d.ts +2 -0
  423. package/lib/pipes/filter.pipe.d.ts +4 -0
  424. package/lib/pipes/filter.pipe.module.d.ts +2 -0
  425. package/lib/pipes/prepend.pipe.d.ts +4 -0
  426. package/lib/pipes/prepend.pipe.module.d.ts +2 -0
  427. package/lib/pipes/price-display-pipe.module.d.ts +2 -0
  428. package/lib/pipes/price-display.pipe.d.ts +4 -0
  429. package/lib/service/base-module-screen-config.service.d.ts +47 -0
  430. package/lib/service/base-module.service.d.ts +22 -0
  431. package/lib/service/color-sequence.service.d.ts +4 -0
  432. package/lib/service/overlay.service.d.ts +13 -0
  433. package/lib/translation/core-components-translation.module.d.ts +4 -0
  434. package/lib/translation/core-components-translation.service.d.ts +6 -0
  435. package/lib/translation/core-dictionary.service.d.ts +12 -0
  436. package/lib/translation/core-localize.pipe.d.ts +7 -0
  437. package/package.json +22 -43
  438. package/public-api.d.ts +126 -0
  439. package/.browserslistrc +0 -17
  440. package/.editorconfig +0 -16
  441. package/.idea/CoreComponents_v12.iml +0 -12
  442. package/.idea/misc.xml +0 -9
  443. package/.idea/modules.xml +0 -8
  444. package/.idea/vcs.xml +0 -6
  445. package/CoreComponents_v12.iml +0 -12
  446. package/angular.json +0 -149
  447. package/dist/corecomponentstest/favicon.ico +0 -0
  448. package/dist/corecomponentstest/index.html +0 -13
  449. package/dist/corecomponentstest/main.js +0 -24187
  450. package/dist/corecomponentstest/main.js.map +0 -1
  451. package/dist/corecomponentstest/polyfills.js +0 -2891
  452. package/dist/corecomponentstest/polyfills.js.map +0 -1
  453. package/dist/corecomponentstest/runtime.js +0 -161
  454. package/dist/corecomponentstest/runtime.js.map +0 -1
  455. package/dist/corecomponentstest/styles.css +0 -2926
  456. package/dist/corecomponentstest/styles.css.map +0 -1
  457. package/dist/corecomponentstest/vendor.js +0 -118790
  458. package/dist/corecomponentstest/vendor.js.map +0 -1
  459. package/karma.conf.js +0 -44
  460. package/move-assets.js +0 -14
  461. package/projects/corecomponents/README.md +0 -24
  462. package/projects/corecomponents/karma.conf.js +0 -44
  463. package/projects/corecomponents/ng-package.json +0 -10
  464. package/projects/corecomponents/package-lock.json +0 -13
  465. package/projects/corecomponents/package.json +0 -19
  466. package/projects/corecomponents/src/lib/components/article-tile/article-tile.component.ts +0 -95
  467. package/projects/corecomponents/src/lib/components/article-tile/article-tile.module.ts +0 -34
  468. package/projects/corecomponents/src/lib/components/base/base-input.component.ts +0 -988
  469. package/projects/corecomponents/src/lib/components/base/base.module.ts +0 -22
  470. package/projects/corecomponents/src/lib/components/base/commit-buttons/commit-buttons.component.ts +0 -120
  471. package/projects/corecomponents/src/lib/components/base/commit-buttons/commit-buttons.module.ts +0 -19
  472. package/projects/corecomponents/src/lib/components/base/dialog-base.component.ts +0 -8
  473. package/projects/corecomponents/src/lib/components/base-input-date-picker/base-input-date-picker.directive.ts +0 -32
  474. package/projects/corecomponents/src/lib/components/base-input-time/base-input-time-directive.ts +0 -31
  475. package/projects/corecomponents/src/lib/components/button/button.component.ts +0 -117
  476. package/projects/corecomponents/src/lib/components/button/button.module.ts +0 -18
  477. package/projects/corecomponents/src/lib/components/calendar/calendar-template.component.ts +0 -392
  478. package/projects/corecomponents/src/lib/components/calendar/calendar.component.ts +0 -54
  479. package/projects/corecomponents/src/lib/components/calendar/calendar.module.ts +0 -26
  480. package/projects/corecomponents/src/lib/components/card/card.component.ts +0 -94
  481. package/projects/corecomponents/src/lib/components/card/card.module.ts +0 -34
  482. package/projects/corecomponents/src/lib/components/carousel/carousel.component.ts +0 -128
  483. package/projects/corecomponents/src/lib/components/carousel/carousel.module.ts +0 -28
  484. package/projects/corecomponents/src/lib/components/carousel-3d/carousel-3d.component.ts +0 -392
  485. package/projects/corecomponents/src/lib/components/carousel-3d/carousel-3d.module.ts +0 -17
  486. package/projects/corecomponents/src/lib/components/carousel-3d/carouselItem.ts +0 -77
  487. package/projects/corecomponents/src/lib/components/checkmark-overlay/checkmark-overlay.component.ts +0 -99
  488. package/projects/corecomponents/src/lib/components/checkmark-overlay/checkmark-overlay.module.ts +0 -18
  489. package/projects/corecomponents/src/lib/components/co-dialog/animation.ts +0 -2
  490. package/projects/corecomponents/src/lib/components/co-dialog/co-dialog.component.ts +0 -130
  491. package/projects/corecomponents/src/lib/components/co-dialog/co-dialog.module.ts +0 -17
  492. package/projects/corecomponents/src/lib/components/co-dialog-wizard/co-dialog-wizard.component.ts +0 -50
  493. package/projects/corecomponents/src/lib/components/co-dialog-wizard/co-dialog-wizard.module.ts +0 -15
  494. package/projects/corecomponents/src/lib/components/collapsible/collapsible.component.ts +0 -114
  495. package/projects/corecomponents/src/lib/components/collapsible/collapsible.module.ts +0 -17
  496. package/projects/corecomponents/src/lib/components/color-picker/color-picker.component.ts +0 -40
  497. package/projects/corecomponents/src/lib/components/color-picker/color-picker.module.ts +0 -19
  498. package/projects/corecomponents/src/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.ts +0 -86
  499. package/projects/corecomponents/src/lib/components/core-dialog/core-dialog.module.ts +0 -37
  500. package/projects/corecomponents/src/lib/components/core-dialog/core-dialog.service.ts +0 -61
  501. package/projects/corecomponents/src/lib/components/core-dialog/core-dynamic-component.service.ts +0 -101
  502. package/projects/corecomponents/src/lib/components/double-calendar/double-calendar.component.ts +0 -102
  503. package/projects/corecomponents/src/lib/components/double-calendar/double-calendar.module.ts +0 -23
  504. package/projects/corecomponents/src/lib/components/filter-item/filter-item-viewmodel.ts +0 -20
  505. package/projects/corecomponents/src/lib/components/filter-item/filter-item.component.ts +0 -715
  506. package/projects/corecomponents/src/lib/components/filter-item/filter-item.module.ts +0 -42
  507. package/projects/corecomponents/src/lib/components/filter-item/filter-viewmodel.ts +0 -11
  508. package/projects/corecomponents/src/lib/components/form/form.component.ts +0 -211
  509. package/projects/corecomponents/src/lib/components/form/form.module.ts +0 -22
  510. package/projects/corecomponents/src/lib/components/grid-toolbar/grid-toolbar.component.ts +0 -62
  511. package/projects/corecomponents/src/lib/components/grid-toolbar/grid-toolbar.module.ts +0 -21
  512. package/projects/corecomponents/src/lib/components/grid-toolbar-button/grid-toolbar-button.component.ts +0 -28
  513. package/projects/corecomponents/src/lib/components/grid-toolbar-button/grid-toolbar-button.module.ts +0 -17
  514. package/projects/corecomponents/src/lib/components/icon/icon-cache.service.ts +0 -57
  515. package/projects/corecomponents/src/lib/components/icon/icon.component.ts +0 -54
  516. package/projects/corecomponents/src/lib/components/icon/icon.module.ts +0 -24
  517. package/projects/corecomponents/src/lib/components/icon-collapse-handle/icon-collapse-handle.component.ts +0 -75
  518. package/projects/corecomponents/src/lib/components/icon-collapse-handle/icon-collapse-handle.module.ts +0 -21
  519. package/projects/corecomponents/src/lib/components/image/image.component.ts +0 -51
  520. package/projects/corecomponents/src/lib/components/image/image.module.ts +0 -12
  521. package/projects/corecomponents/src/lib/components/input-checkbox/input-checkbox.component.ts +0 -85
  522. package/projects/corecomponents/src/lib/components/input-checkbox/input-checkbox.module.ts +0 -17
  523. package/projects/corecomponents/src/lib/components/input-date-picker/input-date-picker.component.ts +0 -103
  524. package/projects/corecomponents/src/lib/components/input-date-picker/input-date-picker.module.ts +0 -24
  525. package/projects/corecomponents/src/lib/components/input-date-range-picker/input-date-range-picker.component.ts +0 -155
  526. package/projects/corecomponents/src/lib/components/input-date-range-picker/input-date-range-picker.module.ts +0 -25
  527. package/projects/corecomponents/src/lib/components/input-number-picker/input-number-picker.component.ts +0 -378
  528. package/projects/corecomponents/src/lib/components/input-number-picker/input-number-picker.module.ts +0 -20
  529. package/projects/corecomponents/src/lib/components/input-radio-button/input-radio-button.component.ts +0 -86
  530. package/projects/corecomponents/src/lib/components/input-radio-button/input-radio-button.module.ts +0 -17
  531. package/projects/corecomponents/src/lib/components/input-scanner/bar-code-scanner.ts +0 -25
  532. package/projects/corecomponents/src/lib/components/input-scanner/input-scanner.component.ts +0 -89
  533. package/projects/corecomponents/src/lib/components/input-scanner/input-scanner.module.ts +0 -19
  534. package/projects/corecomponents/src/lib/components/input-scanner/scanner.service.ts +0 -28
  535. package/projects/corecomponents/src/lib/components/input-search/input-search.component.ts +0 -85
  536. package/projects/corecomponents/src/lib/components/input-search/input-search.module.ts +0 -20
  537. package/projects/corecomponents/src/lib/components/input-text/input-text.component.ts +0 -294
  538. package/projects/corecomponents/src/lib/components/input-text/input-text.module.ts +0 -31
  539. package/projects/corecomponents/src/lib/components/input-textarea/input-textarea.component.ts +0 -81
  540. package/projects/corecomponents/src/lib/components/input-textarea/input-textarea.module.ts +0 -25
  541. package/projects/corecomponents/src/lib/components/input-time/input-time.component.ts +0 -72
  542. package/projects/corecomponents/src/lib/components/input-time/input-time.module.ts +0 -22
  543. package/projects/corecomponents/src/lib/components/level-indicator/level-indicator-level.enum.ts +0 -5
  544. package/projects/corecomponents/src/lib/components/level-indicator/level-indicator.component.ts +0 -42
  545. package/projects/corecomponents/src/lib/components/level-indicator/level-indicator.module.ts +0 -13
  546. package/projects/corecomponents/src/lib/components/list-of-values/list-of-values-multiselect-popup.component.ts +0 -132
  547. package/projects/corecomponents/src/lib/components/list-of-values/list-of-values-popup.component.ts +0 -281
  548. package/projects/corecomponents/src/lib/components/list-of-values/list-of-values.component.ts +0 -257
  549. package/projects/corecomponents/src/lib/components/list-of-values/list-of-values.module.ts +0 -35
  550. package/projects/corecomponents/src/lib/components/loader/loader.component.ts +0 -82
  551. package/projects/corecomponents/src/lib/components/loader/loader.module.ts +0 -17
  552. package/projects/corecomponents/src/lib/components/pagination/paginate.pipe.ts +0 -116
  553. package/projects/corecomponents/src/lib/components/pagination/pagination-instance.ts +0 -18
  554. package/projects/corecomponents/src/lib/components/pagination/pagination.component.ts +0 -160
  555. package/projects/corecomponents/src/lib/components/pagination/pagination.module.ts +0 -26
  556. package/projects/corecomponents/src/lib/components/pagination/pagination.service.ts +0 -99
  557. package/projects/corecomponents/src/lib/components/pagination-bar/pagination-bar.component.ts +0 -178
  558. package/projects/corecomponents/src/lib/components/pagination-bar/pagination-bar.module.ts +0 -17
  559. package/projects/corecomponents/src/lib/components/popup/const/popup-window-token.ts +0 -4
  560. package/projects/corecomponents/src/lib/components/popup/interface/popup-button.ts +0 -14
  561. package/projects/corecomponents/src/lib/components/popup/interface/popup-close-event.ts +0 -8
  562. package/projects/corecomponents/src/lib/components/popup/interface/popup-settings.ts +0 -70
  563. package/projects/corecomponents/src/lib/components/popup/interface/popup.ts +0 -17
  564. package/projects/corecomponents/src/lib/components/popup/model/popup-button-globals.ts +0 -11
  565. package/projects/corecomponents/src/lib/components/popup/model/popup-window.ts +0 -51
  566. package/projects/corecomponents/src/lib/components/popup/popup-buttons.component.ts +0 -61
  567. package/projects/corecomponents/src/lib/components/popup/popup-message-display.component.ts +0 -49
  568. package/projects/corecomponents/src/lib/components/popup/popup-window-shell.component.ts +0 -222
  569. package/projects/corecomponents/src/lib/components/popup/popup.module.ts +0 -48
  570. package/projects/corecomponents/src/lib/components/popup/service/popup-shower.service.ts +0 -98
  571. package/projects/corecomponents/src/lib/components/popup/service/prompt.service.ts +0 -127
  572. package/projects/corecomponents/src/lib/components/popup/text-input-popup.component.ts +0 -36
  573. package/projects/corecomponents/src/lib/components/responsive-text/responsive-text.component.ts +0 -24
  574. package/projects/corecomponents/src/lib/components/responsive-text/responsive-text.module.ts +0 -17
  575. package/projects/corecomponents/src/lib/components/simple-grid/base-simple-grid.component.ts +0 -194
  576. package/projects/corecomponents/src/lib/components/simple-grid/simple-grid-cell.component.ts +0 -192
  577. package/projects/corecomponents/src/lib/components/simple-grid/simple-grid-column.directive.ts +0 -143
  578. package/projects/corecomponents/src/lib/components/simple-grid/simple-grid.component.ts +0 -489
  579. package/projects/corecomponents/src/lib/components/simple-grid/simple-grid.module.ts +0 -38
  580. package/projects/corecomponents/src/lib/components/tile/tile.component.ts +0 -71
  581. package/projects/corecomponents/src/lib/components/tile/tile.module.ts +0 -21
  582. package/projects/corecomponents/src/lib/components/tile-select/tile-select.component.ts +0 -36
  583. package/projects/corecomponents/src/lib/components/tile-select/tile-select.module.ts +0 -19
  584. package/projects/corecomponents/src/lib/components/tooltip/tooltip.component.ts +0 -96
  585. package/projects/corecomponents/src/lib/components/tooltip/tooltip.module.ts +0 -17
  586. package/projects/corecomponents/src/lib/components/validation-error/validation-error.component.ts +0 -45
  587. package/projects/corecomponents/src/lib/components/validation-error/validation-error.module.ts +0 -24
  588. package/projects/corecomponents/src/lib/components/view-mode-buttons/content-view-mode.enum.ts +0 -9
  589. package/projects/corecomponents/src/lib/components/view-mode-buttons/view-mode-buttons.component.ts +0 -63
  590. package/projects/corecomponents/src/lib/components/view-mode-buttons/view-mode-buttons.module.ts +0 -19
  591. package/projects/corecomponents/src/lib/core/abstract/collection-based-component.ts +0 -488
  592. package/projects/corecomponents/src/lib/core/config/device-environment.ts +0 -26
  593. package/projects/corecomponents/src/lib/core/constant/default-upper-bound-for-range-components.ts +0 -4
  594. package/projects/corecomponents/src/lib/core/constant/java-max-int.ts +0 -1
  595. package/projects/corecomponents/src/lib/core/constant/number-inputs-key-down-white-list.ts +0 -46
  596. package/projects/corecomponents/src/lib/core/decorator/input-boolean.decorator.ts +0 -35
  597. package/projects/corecomponents/src/lib/core/enum/co-direction.ts +0 -7
  598. package/projects/corecomponents/src/lib/core/enum/co-document-image-display-kind.enum.ts +0 -5
  599. package/projects/corecomponents/src/lib/core/enum/co-document-type.enum.ts +0 -9
  600. package/projects/corecomponents/src/lib/core/enum/co-orientation.ts +0 -18
  601. package/projects/corecomponents/src/lib/core/enum/collection-based-component-input-driver-prop.enum.ts +0 -10
  602. package/projects/corecomponents/src/lib/core/enum/color-sequence-name.enum.ts +0 -5
  603. package/projects/corecomponents/src/lib/core/enum/core-components-icon.enum.ts +0 -299
  604. package/projects/corecomponents/src/lib/core/enum/file-type-internal.enum.ts +0 -15
  605. package/projects/corecomponents/src/lib/core/enum/file-type.enum.ts +0 -9
  606. package/projects/corecomponents/src/lib/core/enum/filterItem-mode.enum.ts +0 -57
  607. package/projects/corecomponents/src/lib/core/enum/float-label-type.enum.ts +0 -5
  608. package/projects/corecomponents/src/lib/core/enum/input-number-picker-show-mode.enum.ts +0 -6
  609. package/projects/corecomponents/src/lib/core/enum/input-text-type.enum.ts +0 -4
  610. package/projects/corecomponents/src/lib/core/enum/keyboard-code.enum.ts +0 -72
  611. package/projects/corecomponents/src/lib/core/enum/keyboard-key.enum.ts +0 -78
  612. package/projects/corecomponents/src/lib/core/enum/logical-operator-type.enum.ts +0 -5
  613. package/projects/corecomponents/src/lib/core/enum/object-right-type.enum.ts +0 -5
  614. package/projects/corecomponents/src/lib/core/enum/popup-button-type.enum.ts +0 -10
  615. package/projects/corecomponents/src/lib/core/enum/popup-type.enum.ts +0 -9
  616. package/projects/corecomponents/src/lib/core/enum/schedule-view.enum.ts +0 -14
  617. package/projects/corecomponents/src/lib/core/enum/search-data-type.ts +0 -4
  618. package/projects/corecomponents/src/lib/core/enum/search-property-state.ts +0 -5
  619. package/projects/corecomponents/src/lib/core/enum/sort-data-type.ts +0 -6
  620. package/projects/corecomponents/src/lib/core/enum/sort-direction.ts +0 -9
  621. package/projects/corecomponents/src/lib/core/enum/table-name.enum.ts +0 -79
  622. package/projects/corecomponents/src/lib/core/enum/value-comparison-type.ts +0 -11
  623. package/projects/corecomponents/src/lib/core/function/any-nill.function.ts +0 -6
  624. package/projects/corecomponents/src/lib/core/function/is-nill.function.ts +0 -4
  625. package/projects/corecomponents/src/lib/core/function/none-nill.function.ts +0 -16
  626. package/projects/corecomponents/src/lib/core/function/not-nill.function.ts +0 -4
  627. package/projects/corecomponents/src/lib/core/interface/search-property.ts +0 -15
  628. package/projects/corecomponents/src/lib/core/interface/sort-property.ts +0 -16
  629. package/projects/corecomponents/src/lib/core/model/bounds-constrained-number-value.ts +0 -222
  630. package/projects/corecomponents/src/lib/core/model/check-precision-and-scale-result.ts +0 -5
  631. package/projects/corecomponents/src/lib/core/model/check-within-stepped-bounds-result.ts +0 -8
  632. package/projects/corecomponents/src/lib/core/model/co-document-right.bo.ts +0 -9
  633. package/projects/corecomponents/src/lib/core/model/co-document.bo.ts +0 -193
  634. package/projects/corecomponents/src/lib/core/model/color-sequence.ts +0 -39
  635. package/projects/corecomponents/src/lib/core/model/color.ts +0 -29
  636. package/projects/corecomponents/src/lib/core/model/core-components-icon-svg.ts +0 -299
  637. package/projects/corecomponents/src/lib/core/model/element-position.ts +0 -14
  638. package/projects/corecomponents/src/lib/core/model/event/number-prompt-result-event.ts +0 -10
  639. package/projects/corecomponents/src/lib/core/model/event/string-prompt-result-event.ts +0 -10
  640. package/projects/corecomponents/src/lib/core/model/numerical-range.ts +0 -19
  641. package/projects/corecomponents/src/lib/core/service/form-input-user-change-listener.service.ts +0 -31
  642. package/projects/corecomponents/src/lib/core/service/form-master.service.ts +0 -119
  643. package/projects/corecomponents/src/lib/core/service/ng-zone-wrapper.service.ts +0 -15
  644. package/projects/corecomponents/src/lib/core/utils/array-utils.spec.ts +0 -588
  645. package/projects/corecomponents/src/lib/core/utils/array-utils.ts +0 -301
  646. package/projects/corecomponents/src/lib/core/utils/browser-utils.ts +0 -123
  647. package/projects/corecomponents/src/lib/core/utils/business-object-utils.ts +0 -42
  648. package/projects/corecomponents/src/lib/core/utils/css-utils.ts +0 -276
  649. package/projects/corecomponents/src/lib/core/utils/direction-enum-utils.ts +0 -15
  650. package/projects/corecomponents/src/lib/core/utils/element-ref.utils.ts +0 -12
  651. package/projects/corecomponents/src/lib/core/utils/event-utils.ts +0 -61
  652. package/projects/corecomponents/src/lib/core/utils/file-utils.ts +0 -291
  653. package/projects/corecomponents/src/lib/core/utils/number-utils.spec.ts +0 -657
  654. package/projects/corecomponents/src/lib/core/utils/number-utils.ts +0 -350
  655. package/projects/corecomponents/src/lib/core/utils/object-utils.ts +0 -205
  656. package/projects/corecomponents/src/lib/core/utils/parameter-value-conversion-utils.ts +0 -116
  657. package/projects/corecomponents/src/lib/core/utils/search-utils.ts +0 -121
  658. package/projects/corecomponents/src/lib/core/utils/sort-utils.ts +0 -108
  659. package/projects/corecomponents/src/lib/core/utils/string-utils.ts +0 -100
  660. package/projects/corecomponents/src/lib/core/validator/email.validator.ts +0 -10
  661. package/projects/corecomponents/src/lib/core/validator/equal.validator.ts +0 -14
  662. package/projects/corecomponents/src/lib/core/validator/max-string-length.validator.ts +0 -11
  663. package/projects/corecomponents/src/lib/core/validator/password.validator.ts +0 -35
  664. package/projects/corecomponents/src/lib/core/validator/precision-scale.validator.ts +0 -14
  665. package/projects/corecomponents/src/lib/core/validator/required.validator.ts +0 -9
  666. package/projects/corecomponents/src/lib/directives/align-with/align-with.directive.ts +0 -158
  667. package/projects/corecomponents/src/lib/directives/align-with/align-with.module.ts +0 -13
  668. package/projects/corecomponents/src/lib/directives/clickoutside/click-outside-master.service.ts +0 -64
  669. package/projects/corecomponents/src/lib/directives/clickoutside/click-outside.directive.ts +0 -72
  670. package/projects/corecomponents/src/lib/directives/clickoutside/clickoutside.module.ts +0 -17
  671. package/projects/corecomponents/src/lib/directives/observe-visibility/observe-visibility.directive.ts +0 -55
  672. package/projects/corecomponents/src/lib/directives/observe-visibility/observe-visibility.module.ts +0 -13
  673. package/projects/corecomponents/src/lib/directives/overlay/overlay-parent.directive.ts +0 -20
  674. package/projects/corecomponents/src/lib/directives/overlay/overlay.directive.ts +0 -170
  675. package/projects/corecomponents/src/lib/directives/overlay/overlay.module.ts +0 -16
  676. package/projects/corecomponents/src/lib/directives/parsevalue/parse-value.directive.ts +0 -42
  677. package/projects/corecomponents/src/lib/directives/parsevalue/parse-value.module.ts +0 -13
  678. package/projects/corecomponents/src/lib/directives/resize/resize-detect.directive.ts +0 -54
  679. package/projects/corecomponents/src/lib/directives/resize/resize-detect.module.ts +0 -13
  680. package/projects/corecomponents/src/lib/directives/ripple/ripple-ref.ts +0 -28
  681. package/projects/corecomponents/src/lib/directives/ripple/ripple-renderer.ts +0 -217
  682. package/projects/corecomponents/src/lib/directives/ripple/ripple.directive.ts +0 -116
  683. package/projects/corecomponents/src/lib/directives/ripple/ripple.module.ts +0 -24
  684. package/projects/corecomponents/src/lib/directives/ripple/scroll-dispatcher.service.ts +0 -129
  685. package/projects/corecomponents/src/lib/directives/ripple/scrollable.directive.ts +0 -37
  686. package/projects/corecomponents/src/lib/directives/ripple/viewport-ruler.service.ts +0 -84
  687. package/projects/corecomponents/src/lib/directives/screen-configuration/screen-configuration.directive.ts +0 -170
  688. package/projects/corecomponents/src/lib/directives/screen-configuration/screen-configuration.module.ts +0 -16
  689. package/projects/corecomponents/src/lib/directives/stopclick/stop-click.directive.ts +0 -35
  690. package/projects/corecomponents/src/lib/directives/stopclick/stop-click.module.ts +0 -14
  691. package/projects/corecomponents/src/lib/directives/template-wrapper/template-wrapper.directive.ts +0 -71
  692. package/projects/corecomponents/src/lib/directives/template-wrapper/template-wrapper.module.ts +0 -13
  693. package/projects/corecomponents/src/lib/directives/tooltip/tooltip-directive.module.ts +0 -17
  694. package/projects/corecomponents/src/lib/directives/tooltip/tooltip.directive.ts +0 -94
  695. package/projects/corecomponents/src/lib/interfaces/dialog-response.interface.ts +0 -7
  696. package/projects/corecomponents/src/lib/interfaces/lov-options.component.interface.ts +0 -4
  697. package/projects/corecomponents/src/lib/interfaces/screen-config-adapter-component-interface-name.ts +0 -6
  698. package/projects/corecomponents/src/lib/interfaces/screen-config-adapter.component.interface.ts +0 -10
  699. package/projects/corecomponents/src/lib/model/data-item.ts +0 -9
  700. package/projects/corecomponents/src/lib/model/enum/app-button-type.enum.ts +0 -9
  701. package/projects/corecomponents/src/lib/model/enum/app-popup-type.enum.ts +0 -6
  702. package/projects/corecomponents/src/lib/model/enum/currency-code.enum.ts +0 -7
  703. package/projects/corecomponents/src/lib/model/enum/language-code.enum.ts +0 -8
  704. package/projects/corecomponents/src/lib/model/map/currencies.map.ts +0 -6
  705. package/projects/corecomponents/src/lib/modules/drag-drop/drag-drop-container.component.ts +0 -115
  706. package/projects/corecomponents/src/lib/modules/drag-drop/drag-drop-container.css +0 -34
  707. package/projects/corecomponents/src/lib/modules/drag-drop/drag-drop-manager.service.ts +0 -414
  708. package/projects/corecomponents/src/lib/modules/drag-drop/drag-drop.module.ts +0 -20
  709. package/projects/corecomponents/src/lib/modules/drag-drop/draggable.directive.ts +0 -70
  710. package/projects/corecomponents/src/lib/modules/drag-drop/model/co-drag-event.ts +0 -5
  711. package/projects/corecomponents/src/lib/modules/drag-drop/model/co-drop-event.ts +0 -9
  712. package/projects/corecomponents/src/lib/modules/drag-drop/model/drag-drop-container-element.ts +0 -7
  713. package/projects/corecomponents/src/lib/modules/drag-drop/model/drag-drop-container.ts +0 -9
  714. package/projects/corecomponents/src/lib/modules/media-monitor/flex-layout-breakpoint.enum.ts +0 -5
  715. package/projects/corecomponents/src/lib/modules/media-monitor/media-monitor.module.ts +0 -14
  716. package/projects/corecomponents/src/lib/modules/media-monitor/media-monitor.service.ts +0 -36
  717. package/projects/corecomponents/src/lib/modules/pagination/paginate.pipe.ts +0 -116
  718. package/projects/corecomponents/src/lib/modules/pagination/pagination-instance.ts +0 -18
  719. package/projects/corecomponents/src/lib/modules/pagination/pagination.component.ts +0 -229
  720. package/projects/corecomponents/src/lib/modules/pagination/pagination.module.ts +0 -25
  721. package/projects/corecomponents/src/lib/modules/pagination/pagination.service.ts +0 -98
  722. package/projects/corecomponents/src/lib/pipes/append.pipe.module.ts +0 -13
  723. package/projects/corecomponents/src/lib/pipes/append.pipe.ts +0 -17
  724. package/projects/corecomponents/src/lib/pipes/co-currency-pipe.module.ts +0 -13
  725. package/projects/corecomponents/src/lib/pipes/co-currency.pipe.ts +0 -45
  726. package/projects/corecomponents/src/lib/pipes/emun-keys.pipe.ts +0 -20
  727. package/projects/corecomponents/src/lib/pipes/enum-keys-pipe.module.ts +0 -13
  728. package/projects/corecomponents/src/lib/pipes/file-type-image-pipe.module.ts +0 -13
  729. package/projects/corecomponents/src/lib/pipes/file-type-image.pipe.ts +0 -45
  730. package/projects/corecomponents/src/lib/pipes/filter.pipe.module.ts +0 -13
  731. package/projects/corecomponents/src/lib/pipes/filter.pipe.ts +0 -14
  732. package/projects/corecomponents/src/lib/pipes/master-pipe.module.ts +0 -13
  733. package/projects/corecomponents/src/lib/pipes/master.pipe.ts +0 -71
  734. package/projects/corecomponents/src/lib/pipes/prepend.pipe.module.ts +0 -13
  735. package/projects/corecomponents/src/lib/pipes/prepend.pipe.ts +0 -17
  736. package/projects/corecomponents/src/lib/pipes/price-display-pipe.module.ts +0 -14
  737. package/projects/corecomponents/src/lib/pipes/price-display.pipe.ts +0 -20
  738. package/projects/corecomponents/src/lib/pipes/safe-style.pipe.module.ts +0 -13
  739. package/projects/corecomponents/src/lib/pipes/safe-style.pipe.ts +0 -14
  740. package/projects/corecomponents/src/lib/pipes/ucfirst-pipe.module.ts +0 -13
  741. package/projects/corecomponents/src/lib/pipes/ucfirst.pipe.ts +0 -14
  742. package/projects/corecomponents/src/lib/service/base-module-screen-config.service.ts +0 -241
  743. package/projects/corecomponents/src/lib/service/base-module.service.ts +0 -50
  744. package/projects/corecomponents/src/lib/service/color-sequence.service.ts +0 -20
  745. package/projects/corecomponents/src/lib/service/overlay.service.ts +0 -81
  746. package/projects/corecomponents/src/lib/translation/core-components-translation.module.ts +0 -27
  747. package/projects/corecomponents/src/lib/translation/core-components-translation.service.ts +0 -15
  748. package/projects/corecomponents/src/lib/translation/core-dictionary.service.ts +0 -27
  749. package/projects/corecomponents/src/lib/translation/core-localize.pipe.ts +0 -21
  750. package/projects/corecomponents/src/public-api.ts +0 -137
  751. package/projects/corecomponents/src/res/icons/Barcode.svg +0 -1
  752. package/projects/corecomponents/src/res/icons/CashRegister.svg +0 -1
  753. package/projects/corecomponents/src/res/icons/CirclePlusSkinny.svg +0 -1
  754. package/projects/corecomponents/src/res/icons/CrossSkinny.svg +0 -1
  755. package/projects/corecomponents/src/res/icons/FolderArrow.svg +0 -1
  756. package/projects/corecomponents/src/res/icons/Home.svg +0 -1
  757. package/projects/corecomponents/src/res/icons/POS.svg +0 -1
  758. package/projects/corecomponents/src/res/icons/Shop.svg +0 -1
  759. package/projects/corecomponents/src/res/icons/SinglePerson.svg +0 -1
  760. package/projects/corecomponents/src/res/icons/Star.svg +0 -1
  761. package/projects/corecomponents/src/res/icons/TrashBin.svg +0 -1
  762. package/projects/corecomponents/src/res/icons/account.svg +0 -1
  763. package/projects/corecomponents/src/res/icons/account_round_open.svg +0 -1
  764. package/projects/corecomponents/src/res/icons/activities.svg +0 -1
  765. package/projects/corecomponents/src/res/icons/add_to_cart_drop.svg +0 -1
  766. package/projects/corecomponents/src/res/icons/arrow_down.svg +0 -1
  767. package/projects/corecomponents/src/res/icons/arrow_fat_left.svg +0 -1
  768. package/projects/corecomponents/src/res/icons/arrow_fat_right.svg +0 -1
  769. package/projects/corecomponents/src/res/icons/arrow_left.svg +0 -4
  770. package/projects/corecomponents/src/res/icons/arrow_left_round_open.svg +0 -1
  771. package/projects/corecomponents/src/res/icons/arrow_point_down.svg +0 -6
  772. package/projects/corecomponents/src/res/icons/arrow_point_left.svg +0 -8
  773. package/projects/corecomponents/src/res/icons/arrow_point_right.svg +0 -8
  774. package/projects/corecomponents/src/res/icons/arrow_point_up.svg +0 -8
  775. package/projects/corecomponents/src/res/icons/arrow_right_round_open.svg +0 -1
  776. package/projects/corecomponents/src/res/icons/arrow_scroll_down.svg +0 -6
  777. package/projects/corecomponents/src/res/icons/arrow_scroll_left.svg +0 -22
  778. package/projects/corecomponents/src/res/icons/arrow_scroll_right.svg +0 -22
  779. package/projects/corecomponents/src/res/icons/arrow_scroll_up.svg +0 -6
  780. package/projects/corecomponents/src/res/icons/arrow_up.svg +0 -3
  781. package/projects/corecomponents/src/res/icons/article.svg +0 -1
  782. package/projects/corecomponents/src/res/icons/article_with_fold.svg +0 -1
  783. package/projects/corecomponents/src/res/icons/asterisk_small.svg +0 -1
  784. package/projects/corecomponents/src/res/icons/attachments.svg +0 -1
  785. package/projects/corecomponents/src/res/icons/back_to_top.svg +0 -1
  786. package/projects/corecomponents/src/res/icons/big_mac.svg +0 -6
  787. package/projects/corecomponents/src/res/icons/boxes.svg +0 -1
  788. package/projects/corecomponents/src/res/icons/brush.svg +0 -1
  789. package/projects/corecomponents/src/res/icons/brush_round_open.svg +0 -1
  790. package/projects/corecomponents/src/res/icons/building_columns.svg +0 -1
  791. package/projects/corecomponents/src/res/icons/businessrules.svg +0 -1
  792. package/projects/corecomponents/src/res/icons/calendar.svg +0 -1
  793. package/projects/corecomponents/src/res/icons/calendar_day.svg +0 -37
  794. package/projects/corecomponents/src/res/icons/calendar_day_regular.svg +0 -1
  795. package/projects/corecomponents/src/res/icons/calendar_empty.svg +0 -16
  796. package/projects/corecomponents/src/res/icons/calendar_range.svg +0 -1
  797. package/projects/corecomponents/src/res/icons/calendar_round_open.svg +0 -16
  798. package/projects/corecomponents/src/res/icons/camera.svg +0 -1
  799. package/projects/corecomponents/src/res/icons/cancel.svg +0 -1
  800. package/projects/corecomponents/src/res/icons/cancel_round_filled.svg +0 -1
  801. package/projects/corecomponents/src/res/icons/cancel_round_open.svg +0 -1
  802. package/projects/corecomponents/src/res/icons/cart.svg +0 -1
  803. package/projects/corecomponents/src/res/icons/cart_open.svg +0 -8
  804. package/projects/corecomponents/src/res/icons/case_manager.svg +0 -1
  805. package/projects/corecomponents/src/res/icons/cash_register_simple.svg +0 -1
  806. package/projects/corecomponents/src/res/icons/change_location.svg +0 -1
  807. package/projects/corecomponents/src/res/icons/check.svg +0 -1
  808. package/projects/corecomponents/src/res/icons/check_duotone.svg +0 -1
  809. package/projects/corecomponents/src/res/icons/check_round.svg +0 -1
  810. package/projects/corecomponents/src/res/icons/check_round_open.svg +0 -10
  811. package/projects/corecomponents/src/res/icons/check_simple.svg +0 -3
  812. package/projects/corecomponents/src/res/icons/check_thin.svg +0 -1
  813. package/projects/corecomponents/src/res/icons/chevron_down_regular.svg +0 -1
  814. package/projects/corecomponents/src/res/icons/chevron_up_regular.svg +0 -1
  815. package/projects/corecomponents/src/res/icons/client.svg +0 -1
  816. package/projects/corecomponents/src/res/icons/clock.svg +0 -1
  817. package/projects/corecomponents/src/res/icons/clockArrow.svg +0 -1
  818. package/projects/corecomponents/src/res/icons/cogWheelPlus.svg +0 -1
  819. package/projects/corecomponents/src/res/icons/cogWheels.svg +0 -1
  820. package/projects/corecomponents/src/res/icons/column_options.svg +0 -18
  821. package/projects/corecomponents/src/res/icons/company.svg +0 -1
  822. package/projects/corecomponents/src/res/icons/company_flat.svg +0 -4
  823. package/projects/corecomponents/src/res/icons/configurable.svg +0 -1
  824. package/projects/corecomponents/src/res/icons/consultant.svg +0 -1
  825. package/projects/corecomponents/src/res/icons/copy.svg +0 -1
  826. package/projects/corecomponents/src/res/icons/crosshair_1.svg +0 -1
  827. package/projects/corecomponents/src/res/icons/dashboard.svg +0 -1
  828. package/projects/corecomponents/src/res/icons/delivery_method.svg +0 -32
  829. package/projects/corecomponents/src/res/icons/delivery_status_uncheck.svg +0 -9
  830. package/projects/corecomponents/src/res/icons/delivery_truck.svg +0 -1
  831. package/projects/corecomponents/src/res/icons/detail_record.svg +0 -1
  832. package/projects/corecomponents/src/res/icons/detail_view.svg +0 -1
  833. package/projects/corecomponents/src/res/icons/dictionary.svg +0 -1
  834. package/projects/corecomponents/src/res/icons/documentWrench.svg +0 -1
  835. package/projects/corecomponents/src/res/icons/documents.svg +0 -1
  836. package/projects/corecomponents/src/res/icons/dollar.svg +0 -1
  837. package/projects/corecomponents/src/res/icons/download.svg +0 -1
  838. package/projects/corecomponents/src/res/icons/dropdown.svg +0 -4
  839. package/projects/corecomponents/src/res/icons/dropzone.svg +0 -1
  840. package/projects/corecomponents/src/res/icons/edit_pencil.svg +0 -1
  841. package/projects/corecomponents/src/res/icons/edit_pencil_circle.svg +0 -1
  842. package/projects/corecomponents/src/res/icons/edit_pencil_round.svg +0 -11
  843. package/projects/corecomponents/src/res/icons/edit_pencil_simple.svg +0 -16
  844. package/projects/corecomponents/src/res/icons/email.svg +0 -1
  845. package/projects/corecomponents/src/res/icons/email_round_open.svg +0 -6
  846. package/projects/corecomponents/src/res/icons/employee.svg +0 -1
  847. package/projects/corecomponents/src/res/icons/employee_two.svg +0 -1
  848. package/projects/corecomponents/src/res/icons/employer.svg +0 -1
  849. package/projects/corecomponents/src/res/icons/employment.svg +0 -1
  850. package/projects/corecomponents/src/res/icons/employment_end.svg +0 -7
  851. package/projects/corecomponents/src/res/icons/equal.svg +0 -1
  852. package/projects/corecomponents/src/res/icons/euro.svg +0 -1
  853. package/projects/corecomponents/src/res/icons/exclamation.svg +0 -1
  854. package/projects/corecomponents/src/res/icons/exclamation_round_open.svg +0 -1
  855. package/projects/corecomponents/src/res/icons/eye_circle.svg +0 -1
  856. package/projects/corecomponents/src/res/icons/eye_circle_large.svg +0 -1
  857. package/projects/corecomponents/src/res/icons/eye_round_filled.svg +0 -11
  858. package/projects/corecomponents/src/res/icons/factory.svg +0 -1
  859. package/projects/corecomponents/src/res/icons/fasttrack.svg +0 -1
  860. package/projects/corecomponents/src/res/icons/filter.svg +0 -1
  861. package/projects/corecomponents/src/res/icons/finish.svg +0 -1
  862. package/projects/corecomponents/src/res/icons/fixed_option_value_tree.svg +0 -1
  863. package/projects/corecomponents/src/res/icons/fixed_tree_option_value.svg +0 -1
  864. package/projects/corecomponents/src/res/icons/floppy_disk_solid.svg +0 -1
  865. package/projects/corecomponents/src/res/icons/folder_arrow_in.svg +0 -8
  866. package/projects/corecomponents/src/res/icons/formula.svg +0 -1
  867. package/projects/corecomponents/src/res/icons/fullscreen.svg +0 -6
  868. package/projects/corecomponents/src/res/icons/gear_double.svg +0 -21
  869. package/projects/corecomponents/src/res/icons/global_search.svg +0 -45
  870. package/projects/corecomponents/src/res/icons/globe.svg +0 -1
  871. package/projects/corecomponents/src/res/icons/greater_than.svg +0 -1
  872. package/projects/corecomponents/src/res/icons/groupby.svg +0 -1
  873. package/projects/corecomponents/src/res/icons/hamburger.svg +0 -1
  874. package/projects/corecomponents/src/res/icons/hand_pointer.svg +0 -1
  875. package/projects/corecomponents/src/res/icons/hbarchart.svg +0 -6
  876. package/projects/corecomponents/src/res/icons/home_circle.svg +0 -9
  877. package/projects/corecomponents/src/res/icons/home_open.svg +0 -7
  878. package/projects/corecomponents/src/res/icons/home_round_open.svg +0 -11
  879. package/projects/corecomponents/src/res/icons/hourglass.svg +0 -1
  880. package/projects/corecomponents/src/res/icons/icon_3d.svg +0 -1
  881. package/projects/corecomponents/src/res/icons/id.svg +0 -1
  882. package/projects/corecomponents/src/res/icons/image.svg +0 -1
  883. package/projects/corecomponents/src/res/icons/incoming_storage.svg +0 -1
  884. package/projects/corecomponents/src/res/icons/information.svg +0 -1
  885. package/projects/corecomponents/src/res/icons/information_round_open.svg +0 -6
  886. package/projects/corecomponents/src/res/icons/input_multiplechoice.svg +0 -1
  887. package/projects/corecomponents/src/res/icons/input_text.svg +0 -1
  888. package/projects/corecomponents/src/res/icons/input_textarea.svg +0 -1
  889. package/projects/corecomponents/src/res/icons/inventory.svg +0 -1
  890. package/projects/corecomponents/src/res/icons/invoice.svg +0 -20
  891. package/projects/corecomponents/src/res/icons/ione_logo.svg +0 -1
  892. package/projects/corecomponents/src/res/icons/ione_logo_fat.svg +0 -1
  893. package/projects/corecomponents/src/res/icons/ione_status_next.svg +0 -43
  894. package/projects/corecomponents/src/res/icons/ione_workflow.svg +0 -62
  895. package/projects/corecomponents/src/res/icons/keyboard.svg +0 -1
  896. package/projects/corecomponents/src/res/icons/keychain.svg +0 -1
  897. package/projects/corecomponents/src/res/icons/label.svg +0 -5
  898. package/projects/corecomponents/src/res/icons/label_round_open.svg +0 -6
  899. package/projects/corecomponents/src/res/icons/landmark_flag.svg +0 -1
  900. package/projects/corecomponents/src/res/icons/library.svg +0 -21
  901. package/projects/corecomponents/src/res/icons/linechart.svg +0 -1
  902. package/projects/corecomponents/src/res/icons/link_circle.svg +0 -1
  903. package/projects/corecomponents/src/res/icons/linked_products.svg +0 -1
  904. package/projects/corecomponents/src/res/icons/list_view.svg +0 -8
  905. package/projects/corecomponents/src/res/icons/location.svg +0 -1
  906. package/projects/corecomponents/src/res/icons/lock.svg +0 -1
  907. package/projects/corecomponents/src/res/icons/lock_round_open.svg +0 -8
  908. package/projects/corecomponents/src/res/icons/logo.svg +0 -1
  909. package/projects/corecomponents/src/res/icons/logout.svg +0 -1
  910. package/projects/corecomponents/src/res/icons/magic_wand.svg +0 -1
  911. package/projects/corecomponents/src/res/icons/magnifier.svg +0 -5
  912. package/projects/corecomponents/src/res/icons/manager.svg +0 -12
  913. package/projects/corecomponents/src/res/icons/mask.svg +0 -1
  914. package/projects/corecomponents/src/res/icons/master_detail.svg +0 -1
  915. package/projects/corecomponents/src/res/icons/material_circle_large.svg +0 -1
  916. package/projects/corecomponents/src/res/icons/medal_bronze.svg +0 -23
  917. package/projects/corecomponents/src/res/icons/medal_gold.svg +0 -23
  918. package/projects/corecomponents/src/res/icons/medal_silver.svg +0 -23
  919. package/projects/corecomponents/src/res/icons/medical_officer.svg +0 -14
  920. package/projects/corecomponents/src/res/icons/microphone.svg +0 -1
  921. package/projects/corecomponents/src/res/icons/minus_round_open.svg +0 -1
  922. package/projects/corecomponents/src/res/icons/minus_simple.svg +0 -1
  923. package/projects/corecomponents/src/res/icons/mobile.svg +0 -1
  924. package/projects/corecomponents/src/res/icons/multi_select_check.svg +0 -10
  925. package/projects/corecomponents/src/res/icons/new_task.svg +0 -1
  926. package/projects/corecomponents/src/res/icons/not_equal.svg +0 -4
  927. package/projects/corecomponents/src/res/icons/note.svg +0 -1
  928. package/projects/corecomponents/src/res/icons/note_bordered.svg +0 -1
  929. package/projects/corecomponents/src/res/icons/notification.svg +0 -1
  930. package/projects/corecomponents/src/res/icons/option.svg +0 -1
  931. package/projects/corecomponents/src/res/icons/optionset.svg +0 -1
  932. package/projects/corecomponents/src/res/icons/order.svg +0 -1
  933. package/projects/corecomponents/src/res/icons/orderpicking.svg +0 -1
  934. package/projects/corecomponents/src/res/icons/outgoing_storage.svg +0 -1
  935. package/projects/corecomponents/src/res/icons/over_booking.svg +0 -1
  936. package/projects/corecomponents/src/res/icons/pause_circle.svg +0 -12
  937. package/projects/corecomponents/src/res/icons/pen_to_square_solid.svg +0 -1
  938. package/projects/corecomponents/src/res/icons/pencil_round_open.svg +0 -10
  939. package/projects/corecomponents/src/res/icons/phone.svg +0 -1
  940. package/projects/corecomponents/src/res/icons/phone_round_open.svg +0 -10
  941. package/projects/corecomponents/src/res/icons/piechart.svg +0 -24
  942. package/projects/corecomponents/src/res/icons/pin.svg +0 -9
  943. package/projects/corecomponents/src/res/icons/pin_round_open.svg +0 -11
  944. package/projects/corecomponents/src/res/icons/play_circle.svg +0 -1
  945. package/projects/corecomponents/src/res/icons/plus_round.svg +0 -9
  946. package/projects/corecomponents/src/res/icons/plus_round_open.svg +0 -1
  947. package/projects/corecomponents/src/res/icons/plus_simple.svg +0 -1
  948. package/projects/corecomponents/src/res/icons/plus_skinny.svg +0 -8
  949. package/projects/corecomponents/src/res/icons/plus_solid.svg +0 -1
  950. package/projects/corecomponents/src/res/icons/plus_stars.svg +0 -1
  951. package/projects/corecomponents/src/res/icons/pointer.svg +0 -7
  952. package/projects/corecomponents/src/res/icons/pointer_3d.svg +0 -8
  953. package/projects/corecomponents/src/res/icons/pointer_filled.svg +0 -6
  954. package/projects/corecomponents/src/res/icons/positioning.svg +0 -1
  955. package/projects/corecomponents/src/res/icons/pregnancy.svg +0 -18
  956. package/projects/corecomponents/src/res/icons/preset.svg +0 -1
  957. package/projects/corecomponents/src/res/icons/print.svg +0 -1
  958. package/projects/corecomponents/src/res/icons/product_properties.svg +0 -1
  959. package/projects/corecomponents/src/res/icons/purchase.svg +0 -15
  960. package/projects/corecomponents/src/res/icons/qrcode.svg +0 -59
  961. package/projects/corecomponents/src/res/icons/question.svg +0 -1
  962. package/projects/corecomponents/src/res/icons/radio_uncheck.svg +0 -1
  963. package/projects/corecomponents/src/res/icons/range.svg +0 -1
  964. package/projects/corecomponents/src/res/icons/range_select.svg +0 -1
  965. package/projects/corecomponents/src/res/icons/rectangles.svg +0 -15
  966. package/projects/corecomponents/src/res/icons/refresh.svg +0 -1
  967. package/projects/corecomponents/src/res/icons/relations.svg +0 -20
  968. package/projects/corecomponents/src/res/icons/remark.svg +0 -1
  969. package/projects/corecomponents/src/res/icons/remark_round_open.svg +0 -6
  970. package/projects/corecomponents/src/res/icons/report_in_type.svg +0 -1
  971. package/projects/corecomponents/src/res/icons/resize.svg +0 -3
  972. package/projects/corecomponents/src/res/icons/resize_down.svg +0 -1
  973. package/projects/corecomponents/src/res/icons/resize_up.svg +0 -1
  974. package/projects/corecomponents/src/res/icons/return_goods.svg +0 -4
  975. package/projects/corecomponents/src/res/icons/returns.svg +0 -1
  976. package/projects/corecomponents/src/res/icons/rotate_left_solid.svg +0 -1
  977. package/projects/corecomponents/src/res/icons/save_disk.svg +0 -15
  978. package/projects/corecomponents/src/res/icons/save_skinny.svg +0 -3
  979. package/projects/corecomponents/src/res/icons/scale_balanced.svg +0 -1
  980. package/projects/corecomponents/src/res/icons/scanner.svg +0 -1
  981. package/projects/corecomponents/src/res/icons/search_round_open.svg +0 -9
  982. package/projects/corecomponents/src/res/icons/sections.svg +0 -1
  983. package/projects/corecomponents/src/res/icons/select_all_round.svg +0 -5
  984. package/projects/corecomponents/src/res/icons/services.svg +0 -1
  985. package/projects/corecomponents/src/res/icons/settings.svg +0 -20
  986. package/projects/corecomponents/src/res/icons/shopping_cart.svg +0 -1
  987. package/projects/corecomponents/src/res/icons/shopping_cart_nr.svg +0 -1
  988. package/projects/corecomponents/src/res/icons/shortcut.svg +0 -1
  989. package/projects/corecomponents/src/res/icons/skills.svg +0 -1
  990. package/projects/corecomponents/src/res/icons/slide_in.svg +0 -1
  991. package/projects/corecomponents/src/res/icons/slider_panel.svg +0 -7
  992. package/projects/corecomponents/src/res/icons/small_tiles.svg +0 -1
  993. package/projects/corecomponents/src/res/icons/smaller_than.svg +0 -1
  994. package/projects/corecomponents/src/res/icons/sort_asc.svg +0 -1
  995. package/projects/corecomponents/src/res/icons/sort_desc.svg +0 -1
  996. package/projects/corecomponents/src/res/icons/star_round_open.svg +0 -6
  997. package/projects/corecomponents/src/res/icons/status_active.svg +0 -1
  998. package/projects/corecomponents/src/res/icons/status_adoption.svg +0 -1
  999. package/projects/corecomponents/src/res/icons/status_fostercare.svg +0 -1
  1000. package/projects/corecomponents/src/res/icons/status_ill.svg +0 -10
  1001. package/projects/corecomponents/src/res/icons/status_leave.svg +0 -1
  1002. package/projects/corecomponents/src/res/icons/status_pregnancy.svg +0 -10
  1003. package/projects/corecomponents/src/res/icons/stock.svg +0 -1
  1004. package/projects/corecomponents/src/res/icons/stock_management.svg +0 -25
  1005. package/projects/corecomponents/src/res/icons/storage.svg +0 -1
  1006. package/projects/corecomponents/src/res/icons/supervisor.svg +0 -1
  1007. package/projects/corecomponents/src/res/icons/supplier.svg +0 -18
  1008. package/projects/corecomponents/src/res/icons/surgery.svg +0 -35
  1009. package/projects/corecomponents/src/res/icons/tablechart.svg +0 -15
  1010. package/projects/corecomponents/src/res/icons/tag.svg +0 -1
  1011. package/projects/corecomponents/src/res/icons/talk_too_much.svg +0 -7
  1012. package/projects/corecomponents/src/res/icons/target.svg +0 -1
  1013. package/projects/corecomponents/src/res/icons/task.svg +0 -1
  1014. package/projects/corecomponents/src/res/icons/thick_lines.svg +0 -1
  1015. package/projects/corecomponents/src/res/icons/thin_lines.svg +0 -1
  1016. package/projects/corecomponents/src/res/icons/three_sixty_view.svg +0 -1
  1017. package/projects/corecomponents/src/res/icons/thumb_bronze.svg +0 -29
  1018. package/projects/corecomponents/src/res/icons/thumb_gold.svg +0 -29
  1019. package/projects/corecomponents/src/res/icons/thumb_silver.svg +0 -29
  1020. package/projects/corecomponents/src/res/icons/timeline.svg +0 -1
  1021. package/projects/corecomponents/src/res/icons/transaction_detail.svg +0 -19
  1022. package/projects/corecomponents/src/res/icons/transactions.svg +0 -12
  1023. package/projects/corecomponents/src/res/icons/trash_can_solid.svg +0 -1
  1024. package/projects/corecomponents/src/res/icons/triangle_down.svg +0 -1
  1025. package/projects/corecomponents/src/res/icons/triangle_large.svg +0 -5
  1026. package/projects/corecomponents/src/res/icons/triangle_left.svg +0 -1
  1027. package/projects/corecomponents/src/res/icons/triangle_right.svg +0 -1
  1028. package/projects/corecomponents/src/res/icons/triangle_up.svg +0 -1
  1029. package/projects/corecomponents/src/res/icons/truck.svg +0 -1
  1030. package/projects/corecomponents/src/res/icons/truck_calendar.svg +0 -15
  1031. package/projects/corecomponents/src/res/icons/undo_round_open.svg +0 -1
  1032. package/projects/corecomponents/src/res/icons/user.svg +0 -9
  1033. package/projects/corecomponents/src/res/icons/variants.svg +0 -1
  1034. package/projects/corecomponents/src/res/icons/vbarchart.svg +0 -6
  1035. package/projects/corecomponents/src/res/icons/view.svg +0 -1
  1036. package/projects/corecomponents/src/res/icons/warehouse.svg +0 -1
  1037. package/projects/corecomponents/src/res/icons/watermark.svg +0 -10
  1038. package/projects/corecomponents/src/res/icons/website.svg +0 -1
  1039. package/projects/corecomponents/src/res/icons/wizard.svg +0 -18
  1040. package/projects/corecomponents/src/res/icons/wms.svg +0 -24
  1041. package/projects/corecomponents/src/res/icons/work_in_progress.svg +0 -10
  1042. package/projects/corecomponents/src/res/icons/work_in_progress_round_open.svg +0 -9
  1043. package/projects/corecomponents/src/res/icons/wrench.svg +0 -4
  1044. package/projects/corecomponents/src/res/icons/x_axis.svg +0 -5
  1045. package/projects/corecomponents/src/res/icons/y_axis.svg +0 -5
  1046. package/projects/corecomponents/src/test.ts +0 -28
  1047. package/projects/corecomponents/tsconfig.lib.json +0 -20
  1048. package/projects/corecomponents/tsconfig.lib.prod.json +0 -16
  1049. package/projects/corecomponents/tsconfig.spec.json +0 -17
  1050. package/scripts/export.bat +0 -9
  1051. package/scripts/merge-icons.js +0 -39
  1052. package/scripts/publish.bat +0 -6
  1053. package/src/app/app.component.scss +0 -36
  1054. package/src/app/app.component.spec.ts +0 -31
  1055. package/src/app/app.component.ts +0 -559
  1056. package/src/app/app.module.ts +0 -145
  1057. package/src/app/components/button-showcase.component.ts +0 -82
  1058. package/src/app/components/carousel-3d-showcase.component.ts +0 -70
  1059. package/src/app/components/checkbox-showcase.component.ts +0 -56
  1060. package/src/app/components/co-dialog-showcase.component.ts +0 -189
  1061. package/src/app/components/co-simple-grid-test.component.ts +0 -146
  1062. package/src/app/components/filter-item-showcase.component.ts +0 -178
  1063. package/src/app/components/forms-showcase.component.ts +0 -703
  1064. package/src/app/components/icon-showcase.component.ts +0 -72
  1065. package/src/app/components/input-checkbox-showcase.component.ts +0 -87
  1066. package/src/app/components/input-date-picker-showcase.component.ts +0 -90
  1067. package/src/app/components/input-number-picker-showcase.component.ts +0 -125
  1068. package/src/app/components/input-radio-button-showcase.component.ts +0 -87
  1069. package/src/app/components/input-scanner-showcase.component.ts +0 -35
  1070. package/src/app/components/input-text-showcase.component.ts +0 -200
  1071. package/src/app/components/input-time-showcase.component.ts +0 -104
  1072. package/src/app/components/number-picker-showcase.component.ts +0 -17
  1073. package/src/app/components/simple-grid-showcase.component.ts +0 -60
  1074. package/src/app/model/data-item.ts +0 -9
  1075. package/src/app/model/enum/currency-code.enum.ts +0 -7
  1076. package/src/app/model/enum/language-code.enum.ts +0 -8
  1077. package/src/app/model/map/currencies.map.ts +0 -6
  1078. package/src/app/service/showcase-data.service.ts +0 -1110
  1079. package/src/assets/.gitkeep +0 -0
  1080. package/src/environments/environment.prod.ts +0 -3
  1081. package/src/environments/environment.ts +0 -16
  1082. package/src/favicon.ico +0 -0
  1083. package/src/index.html +0 -13
  1084. package/src/main.ts +0 -12
  1085. package/src/polyfills.ts +0 -65
  1086. package/src/styles.scss +0 -56
  1087. package/src/test.ts +0 -27
  1088. package/tsconfig.app.json +0 -15
  1089. package/tsconfig.json +0 -37
  1090. package/tsconfig.spec.json +0 -18
  1091. /package/{projects/corecomponents/src/lib → lib}/components/article-tile/article-tile.component.scss +0 -0
  1092. /package/{projects/corecomponents/src/lib → lib}/components/base/commit-buttons/style/_layout.scss +0 -0
  1093. /package/{projects/corecomponents/src/lib → lib}/components/base/commit-buttons/style/_material-definition.scss +0 -0
  1094. /package/{projects/corecomponents/src/lib → lib}/components/base/commit-buttons/style/_theme.scss +0 -0
  1095. /package/{projects/corecomponents/src/lib → lib}/components/base/commit-buttons/style/material.scss +0 -0
  1096. /package/{projects/corecomponents/src/lib → lib}/components/button/style/_co-ripple.scss +0 -0
  1097. /package/{projects/corecomponents/src/lib → lib}/components/button/style/_layout.scss +0 -0
  1098. /package/{projects/corecomponents/src/lib → lib}/components/button/style/_material-definition.scss +0 -0
  1099. /package/{projects/corecomponents/src/lib → lib}/components/button/style/_theme.scss +0 -0
  1100. /package/{projects/corecomponents/src/lib → lib}/components/button/style/material.scss +0 -0
  1101. /package/{projects/corecomponents/src/lib → lib}/components/calendar/style/_layout.scss +0 -0
  1102. /package/{projects/corecomponents/src/lib → lib}/components/calendar/style/_material-definition.scss +0 -0
  1103. /package/{projects/corecomponents/src/lib → lib}/components/calendar/style/_theme.scss +0 -0
  1104. /package/{projects/corecomponents/src/lib → lib}/components/calendar/style/material.scss +0 -0
  1105. /package/{projects/corecomponents/src/lib → lib}/components/card/style/_layout.scss +0 -0
  1106. /package/{projects/corecomponents/src/lib → lib}/components/card/style/_material-definition.scss +0 -0
  1107. /package/{projects/corecomponents/src/lib → lib}/components/card/style/_theme.scss +0 -0
  1108. /package/{projects/corecomponents/src/lib → lib}/components/card/style/material.scss +0 -0
  1109. /package/{projects/corecomponents/src/lib → lib}/components/carousel/style/_layout.scss +0 -0
  1110. /package/{projects/corecomponents/src/lib → lib}/components/carousel/style/_material-definition.scss +0 -0
  1111. /package/{projects/corecomponents/src/lib → lib}/components/carousel/style/_theme.scss +0 -0
  1112. /package/{projects/corecomponents/src/lib → lib}/components/carousel/style/material.scss +0 -0
  1113. /package/{projects/corecomponents/src/lib → lib}/components/carousel-3d/style/_layout.scss +0 -0
  1114. /package/{projects/corecomponents/src/lib → lib}/components/carousel-3d/style/_material-definition.scss +0 -0
  1115. /package/{projects/corecomponents/src/lib → lib}/components/carousel-3d/style/_theme.scss +0 -0
  1116. /package/{projects/corecomponents/src/lib → lib}/components/carousel-3d/style/material.scss +0 -0
  1117. /package/{projects/corecomponents/src/lib → lib}/components/checkmark-overlay/style/_layout.scss +0 -0
  1118. /package/{projects/corecomponents/src/lib → lib}/components/checkmark-overlay/style/_material-definition.scss +0 -0
  1119. /package/{projects/corecomponents/src/lib → lib}/components/checkmark-overlay/style/_theme.scss +0 -0
  1120. /package/{projects/corecomponents/src/lib → lib}/components/checkmark-overlay/style/material.scss +0 -0
  1121. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog/style/_layout.scss +0 -0
  1122. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog/style/_material-definition.scss +0 -0
  1123. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog/style/_theme.scss +0 -0
  1124. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog/style/material.scss +0 -0
  1125. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog-wizard/style/_layout.scss +0 -0
  1126. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog-wizard/style/_material-definition.scss +0 -0
  1127. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog-wizard/style/_theme.scss +0 -0
  1128. /package/{projects/corecomponents/src/lib → lib}/components/co-dialog-wizard/style/material.scss +0 -0
  1129. /package/{projects/corecomponents/src/lib → lib}/components/collapsible/style/_layout.scss +0 -0
  1130. /package/{projects/corecomponents/src/lib → lib}/components/collapsible/style/_material-definition.scss +0 -0
  1131. /package/{projects/corecomponents/src/lib → lib}/components/collapsible/style/_theme.scss +0 -0
  1132. /package/{projects/corecomponents/src/lib → lib}/components/collapsible/style/material.scss +0 -0
  1133. /package/{projects/corecomponents/src/lib → lib}/components/color-picker/style/_layout.scss +0 -0
  1134. /package/{projects/corecomponents/src/lib → lib}/components/color-picker/style/_material-definition.scss +0 -0
  1135. /package/{projects/corecomponents/src/lib → lib}/components/color-picker/style/_theme.scss +0 -0
  1136. /package/{projects/corecomponents/src/lib → lib}/components/color-picker/style/material.scss +0 -0
  1137. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/confirmation-dialog/style/_layout.scss +0 -0
  1138. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/confirmation-dialog/style/_material-definition.scss +0 -0
  1139. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/confirmation-dialog/style/_theme.scss +0 -0
  1140. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/confirmation-dialog/style/material.scss +0 -0
  1141. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/style/_layout.scss +0 -0
  1142. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/style/_material-definition.scss +0 -0
  1143. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/style/_theme.scss +0 -0
  1144. /package/{projects/corecomponents/src/lib → lib}/components/core-dialog/style/material.scss +0 -0
  1145. /package/{projects/corecomponents/src/lib → lib}/components/double-calendar/style/_layout.scss +0 -0
  1146. /package/{projects/corecomponents/src/lib → lib}/components/double-calendar/style/_material-definition.scss +0 -0
  1147. /package/{projects/corecomponents/src/lib → lib}/components/double-calendar/style/_theme.scss +0 -0
  1148. /package/{projects/corecomponents/src/lib → lib}/components/double-calendar/style/material.scss +0 -0
  1149. /package/{projects/corecomponents/src/lib → lib}/components/filter-item/style/_layout.scss +0 -0
  1150. /package/{projects/corecomponents/src/lib → lib}/components/filter-item/style/_material-definition.scss +0 -0
  1151. /package/{projects/corecomponents/src/lib → lib}/components/filter-item/style/_theme.scss +0 -0
  1152. /package/{projects/corecomponents/src/lib → lib}/components/filter-item/style/material.scss +0 -0
  1153. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar/style/_layout.scss +0 -0
  1154. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar/style/_material-definition.scss +0 -0
  1155. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar/style/_theme.scss +0 -0
  1156. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar/style/material.scss +0 -0
  1157. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar-button/style/_layout.scss +0 -0
  1158. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar-button/style/_material-definition.scss +0 -0
  1159. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar-button/style/_theme.scss +0 -0
  1160. /package/{projects/corecomponents/src/lib → lib}/components/grid-toolbar-button/style/material.scss +0 -0
  1161. /package/{projects/corecomponents/src/lib → lib}/components/icon/style/_layout.scss +0 -0
  1162. /package/{projects/corecomponents/src/lib → lib}/components/icon/style/_material-definition.scss +0 -0
  1163. /package/{projects/corecomponents/src/lib → lib}/components/icon/style/_theme.scss +0 -0
  1164. /package/{projects/corecomponents/src/lib → lib}/components/icon/style/material.scss +0 -0
  1165. /package/{projects/corecomponents/src/lib → lib}/components/icon-collapse-handle/style/_layout.scss +0 -0
  1166. /package/{projects/corecomponents/src/lib → lib}/components/icon-collapse-handle/style/_material-definition.scss +0 -0
  1167. /package/{projects/corecomponents/src/lib → lib}/components/icon-collapse-handle/style/_theme.scss +0 -0
  1168. /package/{projects/corecomponents/src/lib → lib}/components/icon-collapse-handle/style/material.scss +0 -0
  1169. /package/{projects/corecomponents/src/lib → lib}/components/image/style/_layout.scss +0 -0
  1170. /package/{projects/corecomponents/src/lib → lib}/components/image/style/_material-definition.scss +0 -0
  1171. /package/{projects/corecomponents/src/lib → lib}/components/image/style/_theme.scss +0 -0
  1172. /package/{projects/corecomponents/src/lib → lib}/components/image/style/material.scss +0 -0
  1173. /package/{projects/corecomponents/src/lib → lib}/components/input-checkbox/style/_layout.scss +0 -0
  1174. /package/{projects/corecomponents/src/lib → lib}/components/input-checkbox/style/_material-definition.scss +0 -0
  1175. /package/{projects/corecomponents/src/lib → lib}/components/input-checkbox/style/_theme.scss +0 -0
  1176. /package/{projects/corecomponents/src/lib → lib}/components/input-checkbox/style/material.scss +0 -0
  1177. /package/{projects/corecomponents/src/lib → lib}/components/input-date-picker/style/_layout.scss +0 -0
  1178. /package/{projects/corecomponents/src/lib → lib}/components/input-date-picker/style/_material-definition.scss +0 -0
  1179. /package/{projects/corecomponents/src/lib → lib}/components/input-date-picker/style/_theme.scss +0 -0
  1180. /package/{projects/corecomponents/src/lib → lib}/components/input-date-picker/style/material.scss +0 -0
  1181. /package/{projects/corecomponents/src/lib → lib}/components/input-date-range-picker/style/_layout.scss +0 -0
  1182. /package/{projects/corecomponents/src/lib → lib}/components/input-date-range-picker/style/_material-definition.scss +0 -0
  1183. /package/{projects/corecomponents/src/lib → lib}/components/input-date-range-picker/style/_theme.scss +0 -0
  1184. /package/{projects/corecomponents/src/lib → lib}/components/input-date-range-picker/style/material.scss +0 -0
  1185. /package/{projects/corecomponents/src/lib → lib}/components/input-number-picker/style/_layout.scss +0 -0
  1186. /package/{projects/corecomponents/src/lib → lib}/components/input-number-picker/style/_material-definition.scss +0 -0
  1187. /package/{projects/corecomponents/src/lib → lib}/components/input-number-picker/style/_theme.scss +0 -0
  1188. /package/{projects/corecomponents/src/lib → lib}/components/input-number-picker/style/material.scss +0 -0
  1189. /package/{projects/corecomponents/src/lib → lib}/components/input-radio-button/style/_layout.scss +0 -0
  1190. /package/{projects/corecomponents/src/lib → lib}/components/input-radio-button/style/_material-definition.scss +0 -0
  1191. /package/{projects/corecomponents/src/lib → lib}/components/input-radio-button/style/_theme.scss +0 -0
  1192. /package/{projects/corecomponents/src/lib → lib}/components/input-radio-button/style/material.scss +0 -0
  1193. /package/{projects/corecomponents/src/lib → lib}/components/input-scanner/style/_layout.scss +0 -0
  1194. /package/{projects/corecomponents/src/lib → lib}/components/input-scanner/style/_material-definition.scss +0 -0
  1195. /package/{projects/corecomponents/src/lib → lib}/components/input-scanner/style/_theme.scss +0 -0
  1196. /package/{projects/corecomponents/src/lib → lib}/components/input-scanner/style/material.scss +0 -0
  1197. /package/{projects/corecomponents/src/lib → lib}/components/input-search/style/_layout.scss +0 -0
  1198. /package/{projects/corecomponents/src/lib → lib}/components/input-search/style/_material-definition.scss +0 -0
  1199. /package/{projects/corecomponents/src/lib → lib}/components/input-search/style/_theme.scss +0 -0
  1200. /package/{projects/corecomponents/src/lib → lib}/components/input-search/style/material.scss +0 -0
  1201. /package/{projects/corecomponents/src/lib → lib}/components/input-text/style/_layout.scss +0 -0
  1202. /package/{projects/corecomponents/src/lib → lib}/components/input-text/style/_material-definition.scss +0 -0
  1203. /package/{projects/corecomponents/src/lib → lib}/components/input-text/style/_theme.scss +0 -0
  1204. /package/{projects/corecomponents/src/lib → lib}/components/input-text/style/material.scss +0 -0
  1205. /package/{projects/corecomponents/src/lib → lib}/components/input-textarea/style/_layout.scss +0 -0
  1206. /package/{projects/corecomponents/src/lib → lib}/components/input-textarea/style/_material-definition.scss +0 -0
  1207. /package/{projects/corecomponents/src/lib → lib}/components/input-textarea/style/_theme.scss +0 -0
  1208. /package/{projects/corecomponents/src/lib → lib}/components/input-textarea/style/material.scss +0 -0
  1209. /package/{projects/corecomponents/src/lib → lib}/components/level-indicator/style/_layout.scss +0 -0
  1210. /package/{projects/corecomponents/src/lib → lib}/components/level-indicator/style/_material-definition.scss +0 -0
  1211. /package/{projects/corecomponents/src/lib → lib}/components/level-indicator/style/_theme.scss +0 -0
  1212. /package/{projects/corecomponents/src/lib → lib}/components/level-indicator/style/material.scss +0 -0
  1213. /package/{projects/corecomponents/src/lib → lib}/components/list-of-values/style/_layout.scss +0 -0
  1214. /package/{projects/corecomponents/src/lib → lib}/components/list-of-values/style/_material-definition.scss +0 -0
  1215. /package/{projects/corecomponents/src/lib → lib}/components/list-of-values/style/_theme.scss +0 -0
  1216. /package/{projects/corecomponents/src/lib → lib}/components/list-of-values/style/material.scss +0 -0
  1217. /package/{projects/corecomponents/src/lib → lib}/components/loader/style/_layout.scss +0 -0
  1218. /package/{projects/corecomponents/src/lib → lib}/components/loader/style/_material-definition.scss +0 -0
  1219. /package/{projects/corecomponents/src/lib → lib}/components/loader/style/_theme.scss +0 -0
  1220. /package/{projects/corecomponents/src/lib → lib}/components/loader/style/material.scss +0 -0
  1221. /package/{projects/corecomponents/src/lib → lib}/components/pagination/style/_layout.scss +0 -0
  1222. /package/{projects/corecomponents/src/lib → lib}/components/pagination/style/_material-definition.scss +0 -0
  1223. /package/{projects/corecomponents/src/lib → lib}/components/pagination/style/_theme.scss +0 -0
  1224. /package/{projects/corecomponents/src/lib → lib}/components/pagination/style/material.scss +0 -0
  1225. /package/{projects/corecomponents/src/lib → lib}/components/pagination-bar/style/_layout.scss +0 -0
  1226. /package/{projects/corecomponents/src/lib → lib}/components/pagination-bar/style/_material-definition.scss +0 -0
  1227. /package/{projects/corecomponents/src/lib → lib}/components/pagination-bar/style/_theme.scss +0 -0
  1228. /package/{projects/corecomponents/src/lib → lib}/components/pagination-bar/style/material.scss +0 -0
  1229. /package/{projects/corecomponents/src/lib → lib}/components/popup/popup-buttons.component.scss +0 -0
  1230. /package/{projects/corecomponents/src/lib → lib}/components/popup/popup-window-shell.component.scss +0 -0
  1231. /package/{projects/corecomponents/src/lib → lib}/components/responsive-text/style/_layout.scss +0 -0
  1232. /package/{projects/corecomponents/src/lib → lib}/components/responsive-text/style/_material-definition.scss +0 -0
  1233. /package/{projects/corecomponents/src/lib → lib}/components/responsive-text/style/_theme.scss +0 -0
  1234. /package/{projects/corecomponents/src/lib → lib}/components/responsive-text/style/material.scss +0 -0
  1235. /package/{projects/corecomponents/src/lib → lib}/components/simple-grid/style/_layout.scss +0 -0
  1236. /package/{projects/corecomponents/src/lib → lib}/components/simple-grid/style/_material-definition.scss +0 -0
  1237. /package/{projects/corecomponents/src/lib → lib}/components/simple-grid/style/_theme.scss +0 -0
  1238. /package/{projects/corecomponents/src/lib → lib}/components/simple-grid/style/material.scss +0 -0
  1239. /package/{projects/corecomponents/src/lib → lib}/components/tile/style/_layout.scss +0 -0
  1240. /package/{projects/corecomponents/src/lib → lib}/components/tile/style/_material-definition.scss +0 -0
  1241. /package/{projects/corecomponents/src/lib → lib}/components/tile/style/_theme.scss +0 -0
  1242. /package/{projects/corecomponents/src/lib → lib}/components/tile/style/material.scss +0 -0
  1243. /package/{projects/corecomponents/src/lib → lib}/components/tile-select/style/_layout.scss +0 -0
  1244. /package/{projects/corecomponents/src/lib → lib}/components/tile-select/style/_material-definition.scss +0 -0
  1245. /package/{projects/corecomponents/src/lib → lib}/components/tile-select/style/_theme.scss +0 -0
  1246. /package/{projects/corecomponents/src/lib → lib}/components/tile-select/style/material.scss +0 -0
  1247. /package/{projects/corecomponents/src/lib → lib}/components/tooltip/style/_layout.scss +0 -0
  1248. /package/{projects/corecomponents/src/lib → lib}/components/tooltip/style/_material-definition.scss +0 -0
  1249. /package/{projects/corecomponents/src/lib → lib}/components/tooltip/style/_theme.scss +0 -0
  1250. /package/{projects/corecomponents/src/lib → lib}/components/tooltip/style/material.scss +0 -0
  1251. /package/{projects/corecomponents/src/lib → lib}/components/validation-error/style/_layout.scss +0 -0
  1252. /package/{projects/corecomponents/src/lib → lib}/components/validation-error/style/_material-definition.scss +0 -0
  1253. /package/{projects/corecomponents/src/lib → lib}/components/validation-error/style/_theme.scss +0 -0
  1254. /package/{projects/corecomponents/src/lib → lib}/components/validation-error/style/material.scss +0 -0
  1255. /package/{projects/corecomponents/src/lib → lib}/components/view-mode-buttons/style/_layout.scss +0 -0
  1256. /package/{projects/corecomponents/src/lib → lib}/components/view-mode-buttons/style/_material-definition.scss +0 -0
  1257. /package/{projects/corecomponents/src/lib → lib}/components/view-mode-buttons/style/_theme.scss +0 -0
  1258. /package/{projects/corecomponents/src/lib → lib}/components/view-mode-buttons/style/material.scss +0 -0
  1259. /package/{projects/corecomponents/src/lib/interfaces/scanner-input.interface.ts → lib/interfaces/scanner-input.interface.d.ts} +0 -0
  1260. /package/{projects/corecomponents/src/lib → lib}/modules/pagination/style/_layout.scss +0 -0
  1261. /package/{projects/corecomponents/src/lib → lib}/modules/pagination/style/_material-definition.scss +0 -0
  1262. /package/{projects/corecomponents/src/lib → lib}/modules/pagination/style/_theme.scss +0 -0
  1263. /package/{projects/corecomponents/src/lib → lib}/modules/pagination/style/material.scss +0 -0
  1264. /package/{projects/corecomponents/src/lib → lib}/style/_input.mixins.scss +0 -0
  1265. /package/{projects/corecomponents/src/lib → lib}/style/_mixin.scss +0 -0
  1266. /package/{projects/corecomponents/src/lib → lib}/style/_variables.scss +0 -0
  1267. /package/{projects/corecomponents/src/lib → lib}/style/corecomponents-globals.scss +0 -0
  1268. /package/{projects/corecomponents/src/lib → lib}/style/material2/_core.scss +0 -0
  1269. /package/{projects/corecomponents/src/lib → lib}/style/material2/_material2-scss-barrel.scss +0 -0
  1270. /package/{projects/corecomponents/src/lib → lib}/style/material2/ripple/_co-ripple.scss +0 -0
  1271. /package/{projects/corecomponents/src/lib → lib}/style/material2/style/_elevation.scss +0 -0
  1272. /package/{projects/corecomponents/src/lib → lib}/style/material2/style/_list-common.scss +0 -0
  1273. /package/{projects/corecomponents/src/lib → lib}/style/material2/style/_variables.scss +0 -0
  1274. /package/{projects/corecomponents/src/lib → lib}/style/material2/theming/_palette.scss +0 -0
  1275. /package/{projects/corecomponents/src/lib → lib}/style/material2/theming/_theming.scss +0 -0
  1276. /package/{projects/corecomponents/src/lib → lib}/style/material2/typography/_typography.scss +0 -0
@@ -1,2891 +0,0 @@
1
- "use strict";
2
- (self["webpackChunk_colijnit_corecomponents_v12"] = self["webpackChunk_colijnit_corecomponents_v12"] || []).push([["polyfills"],{
3
-
4
- /***/ 7761:
5
- /*!***********************************************!*\
6
- !*** ./node_modules/zone.js/fesm2015/zone.js ***!
7
- \***********************************************/
8
- /***/ (() => {
9
-
10
-
11
- /**
12
- * @license Angular v14.2.0-next.0
13
- * (c) 2010-2022 Google LLC. https://angular.io/
14
- * License: MIT
15
- */
16
- /**
17
- * @license
18
- * Copyright Google LLC All Rights Reserved.
19
- *
20
- * Use of this source code is governed by an MIT-style license that can be
21
- * found in the LICENSE file at https://angular.io/license
22
- */
23
- ((function (global) {
24
- const performance = global['performance'];
25
- function mark(name) {
26
- performance && performance['mark'] && performance['mark'](name);
27
- }
28
- function performanceMeasure(name, label) {
29
- performance && performance['measure'] && performance['measure'](name, label);
30
- }
31
- mark('Zone');
32
- // Initialize before it's accessed below.
33
- // __Zone_symbol_prefix global can be used to override the default zone
34
- // symbol prefix with a custom one if needed.
35
- const symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__';
36
- function __symbol__(name) {
37
- return symbolPrefix + name;
38
- }
39
- const checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;
40
- if (global['Zone']) {
41
- // if global['Zone'] already exists (maybe zone.js was already loaded or
42
- // some other lib also registered a global object named Zone), we may need
43
- // to throw an error, but sometimes user may not want this error.
44
- // For example,
45
- // we have two web pages, page1 includes zone.js, page2 doesn't.
46
- // and the 1st time user load page1 and page2, everything work fine,
47
- // but when user load page2 again, error occurs because global['Zone'] already exists.
48
- // so we add a flag to let user choose whether to throw this error or not.
49
- // By default, if existing Zone is from zone.js, we will not throw the error.
50
- if (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function') {
51
- throw new Error('Zone already loaded.');
52
- }
53
- else {
54
- return global['Zone'];
55
- }
56
- }
57
- class Zone {
58
- constructor(parent, zoneSpec) {
59
- this._parent = parent;
60
- this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
61
- this._properties = zoneSpec && zoneSpec.properties || {};
62
- this._zoneDelegate =
63
- new _ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);
64
- }
65
- static assertZonePatched() {
66
- if (global['Promise'] !== patches['ZoneAwarePromise']) {
67
- throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +
68
- 'has been overwritten.\n' +
69
- 'Most likely cause is that a Promise polyfill has been loaded ' +
70
- 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +
71
- 'If you must load one, do so before loading zone.js.)');
72
- }
73
- }
74
- static get root() {
75
- let zone = Zone.current;
76
- while (zone.parent) {
77
- zone = zone.parent;
78
- }
79
- return zone;
80
- }
81
- static get current() {
82
- return _currentZoneFrame.zone;
83
- }
84
- static get currentTask() {
85
- return _currentTask;
86
- }
87
- // tslint:disable-next-line:require-internal-with-underscore
88
- static __load_patch(name, fn, ignoreDuplicate = false) {
89
- if (patches.hasOwnProperty(name)) {
90
- // `checkDuplicate` option is defined from global variable
91
- // so it works for all modules.
92
- // `ignoreDuplicate` can work for the specified module
93
- if (!ignoreDuplicate && checkDuplicate) {
94
- throw Error('Already loaded patch: ' + name);
95
- }
96
- }
97
- else if (!global['__Zone_disable_' + name]) {
98
- const perfName = 'Zone:' + name;
99
- mark(perfName);
100
- patches[name] = fn(global, Zone, _api);
101
- performanceMeasure(perfName, perfName);
102
- }
103
- }
104
- get parent() {
105
- return this._parent;
106
- }
107
- get name() {
108
- return this._name;
109
- }
110
- get(key) {
111
- const zone = this.getZoneWith(key);
112
- if (zone)
113
- return zone._properties[key];
114
- }
115
- getZoneWith(key) {
116
- let current = this;
117
- while (current) {
118
- if (current._properties.hasOwnProperty(key)) {
119
- return current;
120
- }
121
- current = current._parent;
122
- }
123
- return null;
124
- }
125
- fork(zoneSpec) {
126
- if (!zoneSpec)
127
- throw new Error('ZoneSpec required!');
128
- return this._zoneDelegate.fork(this, zoneSpec);
129
- }
130
- wrap(callback, source) {
131
- if (typeof callback !== 'function') {
132
- throw new Error('Expecting function got: ' + callback);
133
- }
134
- const _callback = this._zoneDelegate.intercept(this, callback, source);
135
- const zone = this;
136
- return function () {
137
- return zone.runGuarded(_callback, this, arguments, source);
138
- };
139
- }
140
- run(callback, applyThis, applyArgs, source) {
141
- _currentZoneFrame = { parent: _currentZoneFrame, zone: this };
142
- try {
143
- return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
144
- }
145
- finally {
146
- _currentZoneFrame = _currentZoneFrame.parent;
147
- }
148
- }
149
- runGuarded(callback, applyThis = null, applyArgs, source) {
150
- _currentZoneFrame = { parent: _currentZoneFrame, zone: this };
151
- try {
152
- try {
153
- return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
154
- }
155
- catch (error) {
156
- if (this._zoneDelegate.handleError(this, error)) {
157
- throw error;
158
- }
159
- }
160
- }
161
- finally {
162
- _currentZoneFrame = _currentZoneFrame.parent;
163
- }
164
- }
165
- runTask(task, applyThis, applyArgs) {
166
- if (task.zone != this) {
167
- throw new Error('A task can only be run in the zone of creation! (Creation: ' +
168
- (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');
169
- }
170
- // https://github.com/angular/zone.js/issues/778, sometimes eventTask
171
- // will run in notScheduled(canceled) state, we should not try to
172
- // run such kind of task but just return
173
- if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {
174
- return;
175
- }
176
- const reEntryGuard = task.state != running;
177
- reEntryGuard && task._transitionTo(running, scheduled);
178
- task.runCount++;
179
- const previousTask = _currentTask;
180
- _currentTask = task;
181
- _currentZoneFrame = { parent: _currentZoneFrame, zone: this };
182
- try {
183
- if (task.type == macroTask && task.data && !task.data.isPeriodic) {
184
- task.cancelFn = undefined;
185
- }
186
- try {
187
- return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
188
- }
189
- catch (error) {
190
- if (this._zoneDelegate.handleError(this, error)) {
191
- throw error;
192
- }
193
- }
194
- }
195
- finally {
196
- // if the task's state is notScheduled or unknown, then it has already been cancelled
197
- // we should not reset the state to scheduled
198
- if (task.state !== notScheduled && task.state !== unknown) {
199
- if (task.type == eventTask || (task.data && task.data.isPeriodic)) {
200
- reEntryGuard && task._transitionTo(scheduled, running);
201
- }
202
- else {
203
- task.runCount = 0;
204
- this._updateTaskCount(task, -1);
205
- reEntryGuard &&
206
- task._transitionTo(notScheduled, running, notScheduled);
207
- }
208
- }
209
- _currentZoneFrame = _currentZoneFrame.parent;
210
- _currentTask = previousTask;
211
- }
212
- }
213
- scheduleTask(task) {
214
- if (task.zone && task.zone !== this) {
215
- // check if the task was rescheduled, the newZone
216
- // should not be the children of the original zone
217
- let newZone = this;
218
- while (newZone) {
219
- if (newZone === task.zone) {
220
- throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${task.zone.name}`);
221
- }
222
- newZone = newZone.parent;
223
- }
224
- }
225
- task._transitionTo(scheduling, notScheduled);
226
- const zoneDelegates = [];
227
- task._zoneDelegates = zoneDelegates;
228
- task._zone = this;
229
- try {
230
- task = this._zoneDelegate.scheduleTask(this, task);
231
- }
232
- catch (err) {
233
- // should set task's state to unknown when scheduleTask throw error
234
- // because the err may from reschedule, so the fromState maybe notScheduled
235
- task._transitionTo(unknown, scheduling, notScheduled);
236
- // TODO: @JiaLiPassion, should we check the result from handleError?
237
- this._zoneDelegate.handleError(this, err);
238
- throw err;
239
- }
240
- if (task._zoneDelegates === zoneDelegates) {
241
- // we have to check because internally the delegate can reschedule the task.
242
- this._updateTaskCount(task, 1);
243
- }
244
- if (task.state == scheduling) {
245
- task._transitionTo(scheduled, scheduling);
246
- }
247
- return task;
248
- }
249
- scheduleMicroTask(source, callback, data, customSchedule) {
250
- return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined));
251
- }
252
- scheduleMacroTask(source, callback, data, customSchedule, customCancel) {
253
- return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));
254
- }
255
- scheduleEventTask(source, callback, data, customSchedule, customCancel) {
256
- return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));
257
- }
258
- cancelTask(task) {
259
- if (task.zone != this)
260
- throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +
261
- (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');
262
- task._transitionTo(canceling, scheduled, running);
263
- try {
264
- this._zoneDelegate.cancelTask(this, task);
265
- }
266
- catch (err) {
267
- // if error occurs when cancelTask, transit the state to unknown
268
- task._transitionTo(unknown, canceling);
269
- this._zoneDelegate.handleError(this, err);
270
- throw err;
271
- }
272
- this._updateTaskCount(task, -1);
273
- task._transitionTo(notScheduled, canceling);
274
- task.runCount = 0;
275
- return task;
276
- }
277
- _updateTaskCount(task, count) {
278
- const zoneDelegates = task._zoneDelegates;
279
- if (count == -1) {
280
- task._zoneDelegates = null;
281
- }
282
- for (let i = 0; i < zoneDelegates.length; i++) {
283
- zoneDelegates[i]._updateTaskCount(task.type, count);
284
- }
285
- }
286
- }
287
- // tslint:disable-next-line:require-internal-with-underscore
288
- Zone.__symbol__ = __symbol__;
289
- const DELEGATE_ZS = {
290
- name: '',
291
- onHasTask: (delegate, _, target, hasTaskState) => delegate.hasTask(target, hasTaskState),
292
- onScheduleTask: (delegate, _, target, task) => delegate.scheduleTask(target, task),
293
- onInvokeTask: (delegate, _, target, task, applyThis, applyArgs) => delegate.invokeTask(target, task, applyThis, applyArgs),
294
- onCancelTask: (delegate, _, target, task) => delegate.cancelTask(target, task)
295
- };
296
- class _ZoneDelegate {
297
- constructor(zone, parentDelegate, zoneSpec) {
298
- this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 };
299
- this.zone = zone;
300
- this._parentDelegate = parentDelegate;
301
- this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);
302
- this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);
303
- this._forkCurrZone =
304
- zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone);
305
- this._interceptZS =
306
- zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);
307
- this._interceptDlgt =
308
- zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);
309
- this._interceptCurrZone =
310
- zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate._interceptCurrZone);
311
- this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);
312
- this._invokeDlgt =
313
- zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);
314
- this._invokeCurrZone =
315
- zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate._invokeCurrZone);
316
- this._handleErrorZS =
317
- zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);
318
- this._handleErrorDlgt =
319
- zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);
320
- this._handleErrorCurrZone =
321
- zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate._handleErrorCurrZone);
322
- this._scheduleTaskZS =
323
- zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);
324
- this._scheduleTaskDlgt = zoneSpec &&
325
- (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);
326
- this._scheduleTaskCurrZone =
327
- zoneSpec && (zoneSpec.onScheduleTask ? this.zone : parentDelegate._scheduleTaskCurrZone);
328
- this._invokeTaskZS =
329
- zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);
330
- this._invokeTaskDlgt =
331
- zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);
332
- this._invokeTaskCurrZone =
333
- zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate._invokeTaskCurrZone);
334
- this._cancelTaskZS =
335
- zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);
336
- this._cancelTaskDlgt =
337
- zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);
338
- this._cancelTaskCurrZone =
339
- zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate._cancelTaskCurrZone);
340
- this._hasTaskZS = null;
341
- this._hasTaskDlgt = null;
342
- this._hasTaskDlgtOwner = null;
343
- this._hasTaskCurrZone = null;
344
- const zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;
345
- const parentHasTask = parentDelegate && parentDelegate._hasTaskZS;
346
- if (zoneSpecHasTask || parentHasTask) {
347
- // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such
348
- // a case all task related interceptors must go through this ZD. We can't short circuit it.
349
- this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;
350
- this._hasTaskDlgt = parentDelegate;
351
- this._hasTaskDlgtOwner = this;
352
- this._hasTaskCurrZone = zone;
353
- if (!zoneSpec.onScheduleTask) {
354
- this._scheduleTaskZS = DELEGATE_ZS;
355
- this._scheduleTaskDlgt = parentDelegate;
356
- this._scheduleTaskCurrZone = this.zone;
357
- }
358
- if (!zoneSpec.onInvokeTask) {
359
- this._invokeTaskZS = DELEGATE_ZS;
360
- this._invokeTaskDlgt = parentDelegate;
361
- this._invokeTaskCurrZone = this.zone;
362
- }
363
- if (!zoneSpec.onCancelTask) {
364
- this._cancelTaskZS = DELEGATE_ZS;
365
- this._cancelTaskDlgt = parentDelegate;
366
- this._cancelTaskCurrZone = this.zone;
367
- }
368
- }
369
- }
370
- fork(targetZone, zoneSpec) {
371
- return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :
372
- new Zone(targetZone, zoneSpec);
373
- }
374
- intercept(targetZone, callback, source) {
375
- return this._interceptZS ?
376
- this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) :
377
- callback;
378
- }
379
- invoke(targetZone, callback, applyThis, applyArgs, source) {
380
- return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) :
381
- callback.apply(applyThis, applyArgs);
382
- }
383
- handleError(targetZone, error) {
384
- return this._handleErrorZS ?
385
- this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error) :
386
- true;
387
- }
388
- scheduleTask(targetZone, task) {
389
- let returnTask = task;
390
- if (this._scheduleTaskZS) {
391
- if (this._hasTaskZS) {
392
- returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);
393
- }
394
- // clang-format off
395
- returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);
396
- // clang-format on
397
- if (!returnTask)
398
- returnTask = task;
399
- }
400
- else {
401
- if (task.scheduleFn) {
402
- task.scheduleFn(task);
403
- }
404
- else if (task.type == microTask) {
405
- scheduleMicroTask(task);
406
- }
407
- else {
408
- throw new Error('Task is missing scheduleFn.');
409
- }
410
- }
411
- return returnTask;
412
- }
413
- invokeTask(targetZone, task, applyThis, applyArgs) {
414
- return this._invokeTaskZS ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs) :
415
- task.callback.apply(applyThis, applyArgs);
416
- }
417
- cancelTask(targetZone, task) {
418
- let value;
419
- if (this._cancelTaskZS) {
420
- value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);
421
- }
422
- else {
423
- if (!task.cancelFn) {
424
- throw Error('Task is not cancelable');
425
- }
426
- value = task.cancelFn(task);
427
- }
428
- return value;
429
- }
430
- hasTask(targetZone, isEmpty) {
431
- // hasTask should not throw error so other ZoneDelegate
432
- // can still trigger hasTask callback
433
- try {
434
- this._hasTaskZS &&
435
- this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);
436
- }
437
- catch (err) {
438
- this.handleError(targetZone, err);
439
- }
440
- }
441
- // tslint:disable-next-line:require-internal-with-underscore
442
- _updateTaskCount(type, count) {
443
- const counts = this._taskCounts;
444
- const prev = counts[type];
445
- const next = counts[type] = prev + count;
446
- if (next < 0) {
447
- throw new Error('More tasks executed then were scheduled.');
448
- }
449
- if (prev == 0 || next == 0) {
450
- const isEmpty = {
451
- microTask: counts['microTask'] > 0,
452
- macroTask: counts['macroTask'] > 0,
453
- eventTask: counts['eventTask'] > 0,
454
- change: type
455
- };
456
- this.hasTask(this.zone, isEmpty);
457
- }
458
- }
459
- }
460
- class ZoneTask {
461
- constructor(type, source, callback, options, scheduleFn, cancelFn) {
462
- // tslint:disable-next-line:require-internal-with-underscore
463
- this._zone = null;
464
- this.runCount = 0;
465
- // tslint:disable-next-line:require-internal-with-underscore
466
- this._zoneDelegates = null;
467
- // tslint:disable-next-line:require-internal-with-underscore
468
- this._state = 'notScheduled';
469
- this.type = type;
470
- this.source = source;
471
- this.data = options;
472
- this.scheduleFn = scheduleFn;
473
- this.cancelFn = cancelFn;
474
- if (!callback) {
475
- throw new Error('callback is not defined');
476
- }
477
- this.callback = callback;
478
- const self = this;
479
- // TODO: @JiaLiPassion options should have interface
480
- if (type === eventTask && options && options.useG) {
481
- this.invoke = ZoneTask.invokeTask;
482
- }
483
- else {
484
- this.invoke = function () {
485
- return ZoneTask.invokeTask.call(global, self, this, arguments);
486
- };
487
- }
488
- }
489
- static invokeTask(task, target, args) {
490
- if (!task) {
491
- task = this;
492
- }
493
- _numberOfNestedTaskFrames++;
494
- try {
495
- task.runCount++;
496
- return task.zone.runTask(task, target, args);
497
- }
498
- finally {
499
- if (_numberOfNestedTaskFrames == 1) {
500
- drainMicroTaskQueue();
501
- }
502
- _numberOfNestedTaskFrames--;
503
- }
504
- }
505
- get zone() {
506
- return this._zone;
507
- }
508
- get state() {
509
- return this._state;
510
- }
511
- cancelScheduleRequest() {
512
- this._transitionTo(notScheduled, scheduling);
513
- }
514
- // tslint:disable-next-line:require-internal-with-underscore
515
- _transitionTo(toState, fromState1, fromState2) {
516
- if (this._state === fromState1 || this._state === fromState2) {
517
- this._state = toState;
518
- if (toState == notScheduled) {
519
- this._zoneDelegates = null;
520
- }
521
- }
522
- else {
523
- throw new Error(`${this.type} '${this.source}': can not transition to '${toState}', expecting state '${fromState1}'${fromState2 ? ' or \'' + fromState2 + '\'' : ''}, was '${this._state}'.`);
524
- }
525
- }
526
- toString() {
527
- if (this.data && typeof this.data.handleId !== 'undefined') {
528
- return this.data.handleId.toString();
529
- }
530
- else {
531
- return Object.prototype.toString.call(this);
532
- }
533
- }
534
- // add toJSON method to prevent cyclic error when
535
- // call JSON.stringify(zoneTask)
536
- toJSON() {
537
- return {
538
- type: this.type,
539
- state: this.state,
540
- source: this.source,
541
- zone: this.zone.name,
542
- runCount: this.runCount
543
- };
544
- }
545
- }
546
- //////////////////////////////////////////////////////
547
- //////////////////////////////////////////////////////
548
- /// MICROTASK QUEUE
549
- //////////////////////////////////////////////////////
550
- //////////////////////////////////////////////////////
551
- const symbolSetTimeout = __symbol__('setTimeout');
552
- const symbolPromise = __symbol__('Promise');
553
- const symbolThen = __symbol__('then');
554
- let _microTaskQueue = [];
555
- let _isDrainingMicrotaskQueue = false;
556
- let nativeMicroTaskQueuePromise;
557
- function nativeScheduleMicroTask(func) {
558
- if (!nativeMicroTaskQueuePromise) {
559
- if (global[symbolPromise]) {
560
- nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);
561
- }
562
- }
563
- if (nativeMicroTaskQueuePromise) {
564
- let nativeThen = nativeMicroTaskQueuePromise[symbolThen];
565
- if (!nativeThen) {
566
- // native Promise is not patchable, we need to use `then` directly
567
- // issue 1078
568
- nativeThen = nativeMicroTaskQueuePromise['then'];
569
- }
570
- nativeThen.call(nativeMicroTaskQueuePromise, func);
571
- }
572
- else {
573
- global[symbolSetTimeout](func, 0);
574
- }
575
- }
576
- function scheduleMicroTask(task) {
577
- // if we are not running in any task, and there has not been anything scheduled
578
- // we must bootstrap the initial task creation by manually scheduling the drain
579
- if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {
580
- // We are not running in Task, so we need to kickstart the microtask queue.
581
- nativeScheduleMicroTask(drainMicroTaskQueue);
582
- }
583
- task && _microTaskQueue.push(task);
584
- }
585
- function drainMicroTaskQueue() {
586
- if (!_isDrainingMicrotaskQueue) {
587
- _isDrainingMicrotaskQueue = true;
588
- while (_microTaskQueue.length) {
589
- const queue = _microTaskQueue;
590
- _microTaskQueue = [];
591
- for (let i = 0; i < queue.length; i++) {
592
- const task = queue[i];
593
- try {
594
- task.zone.runTask(task, null, null);
595
- }
596
- catch (error) {
597
- _api.onUnhandledError(error);
598
- }
599
- }
600
- }
601
- _api.microtaskDrainDone();
602
- _isDrainingMicrotaskQueue = false;
603
- }
604
- }
605
- //////////////////////////////////////////////////////
606
- //////////////////////////////////////////////////////
607
- /// BOOTSTRAP
608
- //////////////////////////////////////////////////////
609
- //////////////////////////////////////////////////////
610
- const NO_ZONE = { name: 'NO ZONE' };
611
- const notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';
612
- const microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';
613
- const patches = {};
614
- const _api = {
615
- symbol: __symbol__,
616
- currentZoneFrame: () => _currentZoneFrame,
617
- onUnhandledError: noop,
618
- microtaskDrainDone: noop,
619
- scheduleMicroTask: scheduleMicroTask,
620
- showUncaughtError: () => !Zone[__symbol__('ignoreConsoleErrorUncaughtError')],
621
- patchEventTarget: () => [],
622
- patchOnProperties: noop,
623
- patchMethod: () => noop,
624
- bindArguments: () => [],
625
- patchThen: () => noop,
626
- patchMacroTask: () => noop,
627
- patchEventPrototype: () => noop,
628
- isIEOrEdge: () => false,
629
- getGlobalObjects: () => undefined,
630
- ObjectDefineProperty: () => noop,
631
- ObjectGetOwnPropertyDescriptor: () => undefined,
632
- ObjectCreate: () => undefined,
633
- ArraySlice: () => [],
634
- patchClass: () => noop,
635
- wrapWithCurrentZone: () => noop,
636
- filterProperties: () => [],
637
- attachOriginToPatched: () => noop,
638
- _redefineProperty: () => noop,
639
- patchCallbacks: () => noop,
640
- nativeScheduleMicroTask: nativeScheduleMicroTask
641
- };
642
- let _currentZoneFrame = { parent: null, zone: new Zone(null, null) };
643
- let _currentTask = null;
644
- let _numberOfNestedTaskFrames = 0;
645
- function noop() { }
646
- performanceMeasure('Zone', 'Zone');
647
- return global['Zone'] = Zone;
648
- }))(typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global);
649
-
650
- /**
651
- * @license
652
- * Copyright Google LLC All Rights Reserved.
653
- *
654
- * Use of this source code is governed by an MIT-style license that can be
655
- * found in the LICENSE file at https://angular.io/license
656
- */
657
- /**
658
- * Suppress closure compiler errors about unknown 'Zone' variable
659
- * @fileoverview
660
- * @suppress {undefinedVars,globalThis,missingRequire}
661
- */
662
- /// <reference types="node"/>
663
- // issue #989, to reduce bundle size, use short name
664
- /** Object.getOwnPropertyDescriptor */
665
- const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
666
- /** Object.defineProperty */
667
- const ObjectDefineProperty = Object.defineProperty;
668
- /** Object.getPrototypeOf */
669
- const ObjectGetPrototypeOf = Object.getPrototypeOf;
670
- /** Object.create */
671
- const ObjectCreate = Object.create;
672
- /** Array.prototype.slice */
673
- const ArraySlice = Array.prototype.slice;
674
- /** addEventListener string const */
675
- const ADD_EVENT_LISTENER_STR = 'addEventListener';
676
- /** removeEventListener string const */
677
- const REMOVE_EVENT_LISTENER_STR = 'removeEventListener';
678
- /** zoneSymbol addEventListener */
679
- const ZONE_SYMBOL_ADD_EVENT_LISTENER = Zone.__symbol__(ADD_EVENT_LISTENER_STR);
680
- /** zoneSymbol removeEventListener */
681
- const ZONE_SYMBOL_REMOVE_EVENT_LISTENER = Zone.__symbol__(REMOVE_EVENT_LISTENER_STR);
682
- /** true string const */
683
- const TRUE_STR = 'true';
684
- /** false string const */
685
- const FALSE_STR = 'false';
686
- /** Zone symbol prefix string const. */
687
- const ZONE_SYMBOL_PREFIX = Zone.__symbol__('');
688
- function wrapWithCurrentZone(callback, source) {
689
- return Zone.current.wrap(callback, source);
690
- }
691
- function scheduleMacroTaskWithCurrentZone(source, callback, data, customSchedule, customCancel) {
692
- return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);
693
- }
694
- const zoneSymbol = Zone.__symbol__;
695
- const isWindowExists = typeof window !== 'undefined';
696
- const internalWindow = isWindowExists ? window : undefined;
697
- const _global = isWindowExists && internalWindow || typeof self === 'object' && self || global;
698
- const REMOVE_ATTRIBUTE = 'removeAttribute';
699
- function bindArguments(args, source) {
700
- for (let i = args.length - 1; i >= 0; i--) {
701
- if (typeof args[i] === 'function') {
702
- args[i] = wrapWithCurrentZone(args[i], source + '_' + i);
703
- }
704
- }
705
- return args;
706
- }
707
- function patchPrototype(prototype, fnNames) {
708
- const source = prototype.constructor['name'];
709
- for (let i = 0; i < fnNames.length; i++) {
710
- const name = fnNames[i];
711
- const delegate = prototype[name];
712
- if (delegate) {
713
- const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, name);
714
- if (!isPropertyWritable(prototypeDesc)) {
715
- continue;
716
- }
717
- prototype[name] = ((delegate) => {
718
- const patched = function () {
719
- return delegate.apply(this, bindArguments(arguments, source + '.' + name));
720
- };
721
- attachOriginToPatched(patched, delegate);
722
- return patched;
723
- })(delegate);
724
- }
725
- }
726
- }
727
- function isPropertyWritable(propertyDesc) {
728
- if (!propertyDesc) {
729
- return true;
730
- }
731
- if (propertyDesc.writable === false) {
732
- return false;
733
- }
734
- return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');
735
- }
736
- const isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);
737
- // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify
738
- // this code.
739
- const isNode = (!('nw' in _global) && typeof _global.process !== 'undefined' &&
740
- {}.toString.call(_global.process) === '[object process]');
741
- const isBrowser = !isNode && !isWebWorker && !!(isWindowExists && internalWindow['HTMLElement']);
742
- // we are in electron of nw, so we are both browser and nodejs
743
- // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify
744
- // this code.
745
- const isMix = typeof _global.process !== 'undefined' &&
746
- {}.toString.call(_global.process) === '[object process]' && !isWebWorker &&
747
- !!(isWindowExists && internalWindow['HTMLElement']);
748
- const zoneSymbolEventNames$1 = {};
749
- const wrapFn = function (event) {
750
- // https://github.com/angular/zone.js/issues/911, in IE, sometimes
751
- // event will be undefined, so we need to use window.event
752
- event = event || _global.event;
753
- if (!event) {
754
- return;
755
- }
756
- let eventNameSymbol = zoneSymbolEventNames$1[event.type];
757
- if (!eventNameSymbol) {
758
- eventNameSymbol = zoneSymbolEventNames$1[event.type] = zoneSymbol('ON_PROPERTY' + event.type);
759
- }
760
- const target = this || event.target || _global;
761
- const listener = target[eventNameSymbol];
762
- let result;
763
- if (isBrowser && target === internalWindow && event.type === 'error') {
764
- // window.onerror have different signature
765
- // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror
766
- // and onerror callback will prevent default when callback return true
767
- const errorEvent = event;
768
- result = listener &&
769
- listener.call(this, errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error);
770
- if (result === true) {
771
- event.preventDefault();
772
- }
773
- }
774
- else {
775
- result = listener && listener.apply(this, arguments);
776
- if (result != undefined && !result) {
777
- event.preventDefault();
778
- }
779
- }
780
- return result;
781
- };
782
- function patchProperty(obj, prop, prototype) {
783
- let desc = ObjectGetOwnPropertyDescriptor(obj, prop);
784
- if (!desc && prototype) {
785
- // when patch window object, use prototype to check prop exist or not
786
- const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, prop);
787
- if (prototypeDesc) {
788
- desc = { enumerable: true, configurable: true };
789
- }
790
- }
791
- // if the descriptor not exists or is not configurable
792
- // just return
793
- if (!desc || !desc.configurable) {
794
- return;
795
- }
796
- const onPropPatchedSymbol = zoneSymbol('on' + prop + 'patched');
797
- if (obj.hasOwnProperty(onPropPatchedSymbol) && obj[onPropPatchedSymbol]) {
798
- return;
799
- }
800
- // A property descriptor cannot have getter/setter and be writable
801
- // deleting the writable and value properties avoids this error:
802
- //
803
- // TypeError: property descriptors must not specify a value or be writable when a
804
- // getter or setter has been specified
805
- delete desc.writable;
806
- delete desc.value;
807
- const originalDescGet = desc.get;
808
- const originalDescSet = desc.set;
809
- // slice(2) cuz 'onclick' -> 'click', etc
810
- const eventName = prop.slice(2);
811
- let eventNameSymbol = zoneSymbolEventNames$1[eventName];
812
- if (!eventNameSymbol) {
813
- eventNameSymbol = zoneSymbolEventNames$1[eventName] = zoneSymbol('ON_PROPERTY' + eventName);
814
- }
815
- desc.set = function (newValue) {
816
- // in some of windows's onproperty callback, this is undefined
817
- // so we need to check it
818
- let target = this;
819
- if (!target && obj === _global) {
820
- target = _global;
821
- }
822
- if (!target) {
823
- return;
824
- }
825
- const previousValue = target[eventNameSymbol];
826
- if (typeof previousValue === 'function') {
827
- target.removeEventListener(eventName, wrapFn);
828
- }
829
- // issue #978, when onload handler was added before loading zone.js
830
- // we should remove it with originalDescSet
831
- originalDescSet && originalDescSet.call(target, null);
832
- target[eventNameSymbol] = newValue;
833
- if (typeof newValue === 'function') {
834
- target.addEventListener(eventName, wrapFn, false);
835
- }
836
- };
837
- // The getter would return undefined for unassigned properties but the default value of an
838
- // unassigned property is null
839
- desc.get = function () {
840
- // in some of windows's onproperty callback, this is undefined
841
- // so we need to check it
842
- let target = this;
843
- if (!target && obj === _global) {
844
- target = _global;
845
- }
846
- if (!target) {
847
- return null;
848
- }
849
- const listener = target[eventNameSymbol];
850
- if (listener) {
851
- return listener;
852
- }
853
- else if (originalDescGet) {
854
- // result will be null when use inline event attribute,
855
- // such as <button onclick="func();">OK</button>
856
- // because the onclick function is internal raw uncompiled handler
857
- // the onclick will be evaluated when first time event was triggered or
858
- // the property is accessed, https://github.com/angular/zone.js/issues/525
859
- // so we should use original native get to retrieve the handler
860
- let value = originalDescGet.call(this);
861
- if (value) {
862
- desc.set.call(this, value);
863
- if (typeof target[REMOVE_ATTRIBUTE] === 'function') {
864
- target.removeAttribute(prop);
865
- }
866
- return value;
867
- }
868
- }
869
- return null;
870
- };
871
- ObjectDefineProperty(obj, prop, desc);
872
- obj[onPropPatchedSymbol] = true;
873
- }
874
- function patchOnProperties(obj, properties, prototype) {
875
- if (properties) {
876
- for (let i = 0; i < properties.length; i++) {
877
- patchProperty(obj, 'on' + properties[i], prototype);
878
- }
879
- }
880
- else {
881
- const onProperties = [];
882
- for (const prop in obj) {
883
- if (prop.slice(0, 2) == 'on') {
884
- onProperties.push(prop);
885
- }
886
- }
887
- for (let j = 0; j < onProperties.length; j++) {
888
- patchProperty(obj, onProperties[j], prototype);
889
- }
890
- }
891
- }
892
- const originalInstanceKey = zoneSymbol('originalInstance');
893
- // wrap some native API on `window`
894
- function patchClass(className) {
895
- const OriginalClass = _global[className];
896
- if (!OriginalClass)
897
- return;
898
- // keep original class in global
899
- _global[zoneSymbol(className)] = OriginalClass;
900
- _global[className] = function () {
901
- const a = bindArguments(arguments, className);
902
- switch (a.length) {
903
- case 0:
904
- this[originalInstanceKey] = new OriginalClass();
905
- break;
906
- case 1:
907
- this[originalInstanceKey] = new OriginalClass(a[0]);
908
- break;
909
- case 2:
910
- this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
911
- break;
912
- case 3:
913
- this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
914
- break;
915
- case 4:
916
- this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
917
- break;
918
- default:
919
- throw new Error('Arg list too long.');
920
- }
921
- };
922
- // attach original delegate to patched function
923
- attachOriginToPatched(_global[className], OriginalClass);
924
- const instance = new OriginalClass(function () { });
925
- let prop;
926
- for (prop in instance) {
927
- // https://bugs.webkit.org/show_bug.cgi?id=44721
928
- if (className === 'XMLHttpRequest' && prop === 'responseBlob')
929
- continue;
930
- (function (prop) {
931
- if (typeof instance[prop] === 'function') {
932
- _global[className].prototype[prop] = function () {
933
- return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
934
- };
935
- }
936
- else {
937
- ObjectDefineProperty(_global[className].prototype, prop, {
938
- set: function (fn) {
939
- if (typeof fn === 'function') {
940
- this[originalInstanceKey][prop] = wrapWithCurrentZone(fn, className + '.' + prop);
941
- // keep callback in wrapped function so we can
942
- // use it in Function.prototype.toString to return
943
- // the native one.
944
- attachOriginToPatched(this[originalInstanceKey][prop], fn);
945
- }
946
- else {
947
- this[originalInstanceKey][prop] = fn;
948
- }
949
- },
950
- get: function () {
951
- return this[originalInstanceKey][prop];
952
- }
953
- });
954
- }
955
- }(prop));
956
- }
957
- for (prop in OriginalClass) {
958
- if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
959
- _global[className][prop] = OriginalClass[prop];
960
- }
961
- }
962
- }
963
- function patchMethod(target, name, patchFn) {
964
- let proto = target;
965
- while (proto && !proto.hasOwnProperty(name)) {
966
- proto = ObjectGetPrototypeOf(proto);
967
- }
968
- if (!proto && target[name]) {
969
- // somehow we did not find it, but we can see it. This happens on IE for Window properties.
970
- proto = target;
971
- }
972
- const delegateName = zoneSymbol(name);
973
- let delegate = null;
974
- if (proto && (!(delegate = proto[delegateName]) || !proto.hasOwnProperty(delegateName))) {
975
- delegate = proto[delegateName] = proto[name];
976
- // check whether proto[name] is writable
977
- // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob
978
- const desc = proto && ObjectGetOwnPropertyDescriptor(proto, name);
979
- if (isPropertyWritable(desc)) {
980
- const patchDelegate = patchFn(delegate, delegateName, name);
981
- proto[name] = function () {
982
- return patchDelegate(this, arguments);
983
- };
984
- attachOriginToPatched(proto[name], delegate);
985
- }
986
- }
987
- return delegate;
988
- }
989
- // TODO: @JiaLiPassion, support cancel task later if necessary
990
- function patchMacroTask(obj, funcName, metaCreator) {
991
- let setNative = null;
992
- function scheduleTask(task) {
993
- const data = task.data;
994
- data.args[data.cbIdx] = function () {
995
- task.invoke.apply(this, arguments);
996
- };
997
- setNative.apply(data.target, data.args);
998
- return task;
999
- }
1000
- setNative = patchMethod(obj, funcName, (delegate) => function (self, args) {
1001
- const meta = metaCreator(self, args);
1002
- if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === 'function') {
1003
- return scheduleMacroTaskWithCurrentZone(meta.name, args[meta.cbIdx], meta, scheduleTask);
1004
- }
1005
- else {
1006
- // cause an error by calling it directly.
1007
- return delegate.apply(self, args);
1008
- }
1009
- });
1010
- }
1011
- function attachOriginToPatched(patched, original) {
1012
- patched[zoneSymbol('OriginalDelegate')] = original;
1013
- }
1014
- let isDetectedIEOrEdge = false;
1015
- let ieOrEdge = false;
1016
- function isIE() {
1017
- try {
1018
- const ua = internalWindow.navigator.userAgent;
1019
- if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1) {
1020
- return true;
1021
- }
1022
- }
1023
- catch (error) {
1024
- }
1025
- return false;
1026
- }
1027
- function isIEOrEdge() {
1028
- if (isDetectedIEOrEdge) {
1029
- return ieOrEdge;
1030
- }
1031
- isDetectedIEOrEdge = true;
1032
- try {
1033
- const ua = internalWindow.navigator.userAgent;
1034
- if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {
1035
- ieOrEdge = true;
1036
- }
1037
- }
1038
- catch (error) {
1039
- }
1040
- return ieOrEdge;
1041
- }
1042
-
1043
- /**
1044
- * @license
1045
- * Copyright Google LLC All Rights Reserved.
1046
- *
1047
- * Use of this source code is governed by an MIT-style license that can be
1048
- * found in the LICENSE file at https://angular.io/license
1049
- */
1050
- Zone.__load_patch('ZoneAwarePromise', (global, Zone, api) => {
1051
- const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1052
- const ObjectDefineProperty = Object.defineProperty;
1053
- function readableObjectToString(obj) {
1054
- if (obj && obj.toString === Object.prototype.toString) {
1055
- const className = obj.constructor && obj.constructor.name;
1056
- return (className ? className : '') + ': ' + JSON.stringify(obj);
1057
- }
1058
- return obj ? obj.toString() : Object.prototype.toString.call(obj);
1059
- }
1060
- const __symbol__ = api.symbol;
1061
- const _uncaughtPromiseErrors = [];
1062
- const isDisableWrappingUncaughtPromiseRejection = global[__symbol__('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')] === true;
1063
- const symbolPromise = __symbol__('Promise');
1064
- const symbolThen = __symbol__('then');
1065
- const creationTrace = '__creationTrace__';
1066
- api.onUnhandledError = (e) => {
1067
- if (api.showUncaughtError()) {
1068
- const rejection = e && e.rejection;
1069
- if (rejection) {
1070
- console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);
1071
- }
1072
- else {
1073
- console.error(e);
1074
- }
1075
- }
1076
- };
1077
- api.microtaskDrainDone = () => {
1078
- while (_uncaughtPromiseErrors.length) {
1079
- const uncaughtPromiseError = _uncaughtPromiseErrors.shift();
1080
- try {
1081
- uncaughtPromiseError.zone.runGuarded(() => {
1082
- if (uncaughtPromiseError.throwOriginal) {
1083
- throw uncaughtPromiseError.rejection;
1084
- }
1085
- throw uncaughtPromiseError;
1086
- });
1087
- }
1088
- catch (error) {
1089
- handleUnhandledRejection(error);
1090
- }
1091
- }
1092
- };
1093
- const UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');
1094
- function handleUnhandledRejection(e) {
1095
- api.onUnhandledError(e);
1096
- try {
1097
- const handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];
1098
- if (typeof handler === 'function') {
1099
- handler.call(this, e);
1100
- }
1101
- }
1102
- catch (err) {
1103
- }
1104
- }
1105
- function isThenable(value) {
1106
- return value && value.then;
1107
- }
1108
- function forwardResolution(value) {
1109
- return value;
1110
- }
1111
- function forwardRejection(rejection) {
1112
- return ZoneAwarePromise.reject(rejection);
1113
- }
1114
- const symbolState = __symbol__('state');
1115
- const symbolValue = __symbol__('value');
1116
- const symbolFinally = __symbol__('finally');
1117
- const symbolParentPromiseValue = __symbol__('parentPromiseValue');
1118
- const symbolParentPromiseState = __symbol__('parentPromiseState');
1119
- const source = 'Promise.then';
1120
- const UNRESOLVED = null;
1121
- const RESOLVED = true;
1122
- const REJECTED = false;
1123
- const REJECTED_NO_CATCH = 0;
1124
- function makeResolver(promise, state) {
1125
- return (v) => {
1126
- try {
1127
- resolvePromise(promise, state, v);
1128
- }
1129
- catch (err) {
1130
- resolvePromise(promise, false, err);
1131
- }
1132
- // Do not return value or you will break the Promise spec.
1133
- };
1134
- }
1135
- const once = function () {
1136
- let wasCalled = false;
1137
- return function wrapper(wrappedFunction) {
1138
- return function () {
1139
- if (wasCalled) {
1140
- return;
1141
- }
1142
- wasCalled = true;
1143
- wrappedFunction.apply(null, arguments);
1144
- };
1145
- };
1146
- };
1147
- const TYPE_ERROR = 'Promise resolved with itself';
1148
- const CURRENT_TASK_TRACE_SYMBOL = __symbol__('currentTaskTrace');
1149
- // Promise Resolution
1150
- function resolvePromise(promise, state, value) {
1151
- const onceWrapper = once();
1152
- if (promise === value) {
1153
- throw new TypeError(TYPE_ERROR);
1154
- }
1155
- if (promise[symbolState] === UNRESOLVED) {
1156
- // should only get value.then once based on promise spec.
1157
- let then = null;
1158
- try {
1159
- if (typeof value === 'object' || typeof value === 'function') {
1160
- then = value && value.then;
1161
- }
1162
- }
1163
- catch (err) {
1164
- onceWrapper(() => {
1165
- resolvePromise(promise, false, err);
1166
- })();
1167
- return promise;
1168
- }
1169
- // if (value instanceof ZoneAwarePromise) {
1170
- if (state !== REJECTED && value instanceof ZoneAwarePromise &&
1171
- value.hasOwnProperty(symbolState) && value.hasOwnProperty(symbolValue) &&
1172
- value[symbolState] !== UNRESOLVED) {
1173
- clearRejectedNoCatch(value);
1174
- resolvePromise(promise, value[symbolState], value[symbolValue]);
1175
- }
1176
- else if (state !== REJECTED && typeof then === 'function') {
1177
- try {
1178
- then.call(value, onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false)));
1179
- }
1180
- catch (err) {
1181
- onceWrapper(() => {
1182
- resolvePromise(promise, false, err);
1183
- })();
1184
- }
1185
- }
1186
- else {
1187
- promise[symbolState] = state;
1188
- const queue = promise[symbolValue];
1189
- promise[symbolValue] = value;
1190
- if (promise[symbolFinally] === symbolFinally) {
1191
- // the promise is generated by Promise.prototype.finally
1192
- if (state === RESOLVED) {
1193
- // the state is resolved, should ignore the value
1194
- // and use parent promise value
1195
- promise[symbolState] = promise[symbolParentPromiseState];
1196
- promise[symbolValue] = promise[symbolParentPromiseValue];
1197
- }
1198
- }
1199
- // record task information in value when error occurs, so we can
1200
- // do some additional work such as render longStackTrace
1201
- if (state === REJECTED && value instanceof Error) {
1202
- // check if longStackTraceZone is here
1203
- const trace = Zone.currentTask && Zone.currentTask.data &&
1204
- Zone.currentTask.data[creationTrace];
1205
- if (trace) {
1206
- // only keep the long stack trace into error when in longStackTraceZone
1207
- ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, { configurable: true, enumerable: false, writable: true, value: trace });
1208
- }
1209
- }
1210
- for (let i = 0; i < queue.length;) {
1211
- scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);
1212
- }
1213
- if (queue.length == 0 && state == REJECTED) {
1214
- promise[symbolState] = REJECTED_NO_CATCH;
1215
- let uncaughtPromiseError = value;
1216
- try {
1217
- // Here we throws a new Error to print more readable error log
1218
- // and if the value is not an error, zone.js builds an `Error`
1219
- // Object here to attach the stack information.
1220
- throw new Error('Uncaught (in promise): ' + readableObjectToString(value) +
1221
- (value && value.stack ? '\n' + value.stack : ''));
1222
- }
1223
- catch (err) {
1224
- uncaughtPromiseError = err;
1225
- }
1226
- if (isDisableWrappingUncaughtPromiseRejection) {
1227
- // If disable wrapping uncaught promise reject
1228
- // use the value instead of wrapping it.
1229
- uncaughtPromiseError.throwOriginal = true;
1230
- }
1231
- uncaughtPromiseError.rejection = value;
1232
- uncaughtPromiseError.promise = promise;
1233
- uncaughtPromiseError.zone = Zone.current;
1234
- uncaughtPromiseError.task = Zone.currentTask;
1235
- _uncaughtPromiseErrors.push(uncaughtPromiseError);
1236
- api.scheduleMicroTask(); // to make sure that it is running
1237
- }
1238
- }
1239
- }
1240
- // Resolving an already resolved promise is a noop.
1241
- return promise;
1242
- }
1243
- const REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');
1244
- function clearRejectedNoCatch(promise) {
1245
- if (promise[symbolState] === REJECTED_NO_CATCH) {
1246
- // if the promise is rejected no catch status
1247
- // and queue.length > 0, means there is a error handler
1248
- // here to handle the rejected promise, we should trigger
1249
- // windows.rejectionhandled eventHandler or nodejs rejectionHandled
1250
- // eventHandler
1251
- try {
1252
- const handler = Zone[REJECTION_HANDLED_HANDLER];
1253
- if (handler && typeof handler === 'function') {
1254
- handler.call(this, { rejection: promise[symbolValue], promise: promise });
1255
- }
1256
- }
1257
- catch (err) {
1258
- }
1259
- promise[symbolState] = REJECTED;
1260
- for (let i = 0; i < _uncaughtPromiseErrors.length; i++) {
1261
- if (promise === _uncaughtPromiseErrors[i].promise) {
1262
- _uncaughtPromiseErrors.splice(i, 1);
1263
- }
1264
- }
1265
- }
1266
- }
1267
- function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {
1268
- clearRejectedNoCatch(promise);
1269
- const promiseState = promise[symbolState];
1270
- const delegate = promiseState ?
1271
- (typeof onFulfilled === 'function') ? onFulfilled : forwardResolution :
1272
- (typeof onRejected === 'function') ? onRejected :
1273
- forwardRejection;
1274
- zone.scheduleMicroTask(source, () => {
1275
- try {
1276
- const parentPromiseValue = promise[symbolValue];
1277
- const isFinallyPromise = !!chainPromise && symbolFinally === chainPromise[symbolFinally];
1278
- if (isFinallyPromise) {
1279
- // if the promise is generated from finally call, keep parent promise's state and value
1280
- chainPromise[symbolParentPromiseValue] = parentPromiseValue;
1281
- chainPromise[symbolParentPromiseState] = promiseState;
1282
- }
1283
- // should not pass value to finally callback
1284
- const value = zone.run(delegate, undefined, isFinallyPromise && delegate !== forwardRejection && delegate !== forwardResolution ?
1285
- [] :
1286
- [parentPromiseValue]);
1287
- resolvePromise(chainPromise, true, value);
1288
- }
1289
- catch (error) {
1290
- // if error occurs, should always return this error
1291
- resolvePromise(chainPromise, false, error);
1292
- }
1293
- }, chainPromise);
1294
- }
1295
- const ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';
1296
- const noop = function () { };
1297
- const AggregateError = global.AggregateError;
1298
- class ZoneAwarePromise {
1299
- static toString() {
1300
- return ZONE_AWARE_PROMISE_TO_STRING;
1301
- }
1302
- static resolve(value) {
1303
- return resolvePromise(new this(null), RESOLVED, value);
1304
- }
1305
- static reject(error) {
1306
- return resolvePromise(new this(null), REJECTED, error);
1307
- }
1308
- static any(values) {
1309
- if (!values || typeof values[Symbol.iterator] !== 'function') {
1310
- return Promise.reject(new AggregateError([], 'All promises were rejected'));
1311
- }
1312
- const promises = [];
1313
- let count = 0;
1314
- try {
1315
- for (let v of values) {
1316
- count++;
1317
- promises.push(ZoneAwarePromise.resolve(v));
1318
- }
1319
- }
1320
- catch (err) {
1321
- return Promise.reject(new AggregateError([], 'All promises were rejected'));
1322
- }
1323
- if (count === 0) {
1324
- return Promise.reject(new AggregateError([], 'All promises were rejected'));
1325
- }
1326
- let finished = false;
1327
- const errors = [];
1328
- return new ZoneAwarePromise((resolve, reject) => {
1329
- for (let i = 0; i < promises.length; i++) {
1330
- promises[i].then(v => {
1331
- if (finished) {
1332
- return;
1333
- }
1334
- finished = true;
1335
- resolve(v);
1336
- }, err => {
1337
- errors.push(err);
1338
- count--;
1339
- if (count === 0) {
1340
- finished = true;
1341
- reject(new AggregateError(errors, 'All promises were rejected'));
1342
- }
1343
- });
1344
- }
1345
- });
1346
- }
1347
- ;
1348
- static race(values) {
1349
- let resolve;
1350
- let reject;
1351
- let promise = new this((res, rej) => {
1352
- resolve = res;
1353
- reject = rej;
1354
- });
1355
- function onResolve(value) {
1356
- resolve(value);
1357
- }
1358
- function onReject(error) {
1359
- reject(error);
1360
- }
1361
- for (let value of values) {
1362
- if (!isThenable(value)) {
1363
- value = this.resolve(value);
1364
- }
1365
- value.then(onResolve, onReject);
1366
- }
1367
- return promise;
1368
- }
1369
- static all(values) {
1370
- return ZoneAwarePromise.allWithCallback(values);
1371
- }
1372
- static allSettled(values) {
1373
- const P = this && this.prototype instanceof ZoneAwarePromise ? this : ZoneAwarePromise;
1374
- return P.allWithCallback(values, {
1375
- thenCallback: (value) => ({ status: 'fulfilled', value }),
1376
- errorCallback: (err) => ({ status: 'rejected', reason: err })
1377
- });
1378
- }
1379
- static allWithCallback(values, callback) {
1380
- let resolve;
1381
- let reject;
1382
- let promise = new this((res, rej) => {
1383
- resolve = res;
1384
- reject = rej;
1385
- });
1386
- // Start at 2 to prevent prematurely resolving if .then is called immediately.
1387
- let unresolvedCount = 2;
1388
- let valueIndex = 0;
1389
- const resolvedValues = [];
1390
- for (let value of values) {
1391
- if (!isThenable(value)) {
1392
- value = this.resolve(value);
1393
- }
1394
- const curValueIndex = valueIndex;
1395
- try {
1396
- value.then((value) => {
1397
- resolvedValues[curValueIndex] = callback ? callback.thenCallback(value) : value;
1398
- unresolvedCount--;
1399
- if (unresolvedCount === 0) {
1400
- resolve(resolvedValues);
1401
- }
1402
- }, (err) => {
1403
- if (!callback) {
1404
- reject(err);
1405
- }
1406
- else {
1407
- resolvedValues[curValueIndex] = callback.errorCallback(err);
1408
- unresolvedCount--;
1409
- if (unresolvedCount === 0) {
1410
- resolve(resolvedValues);
1411
- }
1412
- }
1413
- });
1414
- }
1415
- catch (thenErr) {
1416
- reject(thenErr);
1417
- }
1418
- unresolvedCount++;
1419
- valueIndex++;
1420
- }
1421
- // Make the unresolvedCount zero-based again.
1422
- unresolvedCount -= 2;
1423
- if (unresolvedCount === 0) {
1424
- resolve(resolvedValues);
1425
- }
1426
- return promise;
1427
- }
1428
- constructor(executor) {
1429
- const promise = this;
1430
- if (!(promise instanceof ZoneAwarePromise)) {
1431
- throw new Error('Must be an instanceof Promise.');
1432
- }
1433
- promise[symbolState] = UNRESOLVED;
1434
- promise[symbolValue] = []; // queue;
1435
- try {
1436
- const onceWrapper = once();
1437
- executor &&
1438
- executor(onceWrapper(makeResolver(promise, RESOLVED)), onceWrapper(makeResolver(promise, REJECTED)));
1439
- }
1440
- catch (error) {
1441
- resolvePromise(promise, false, error);
1442
- }
1443
- }
1444
- get [Symbol.toStringTag]() {
1445
- return 'Promise';
1446
- }
1447
- get [Symbol.species]() {
1448
- return ZoneAwarePromise;
1449
- }
1450
- then(onFulfilled, onRejected) {
1451
- var _a;
1452
- // We must read `Symbol.species` safely because `this` may be anything. For instance, `this`
1453
- // may be an object without a prototype (created through `Object.create(null)`); thus
1454
- // `this.constructor` will be undefined. One of the use cases is SystemJS creating
1455
- // prototype-less objects (modules) via `Object.create(null)`. The SystemJS creates an empty
1456
- // object and copies promise properties into that object (within the `getOrCreateLoad`
1457
- // function). The zone.js then checks if the resolved value has the `then` method and invokes
1458
- // it with the `value` context. Otherwise, this will throw an error: `TypeError: Cannot read
1459
- // properties of undefined (reading 'Symbol(Symbol.species)')`.
1460
- let C = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a[Symbol.species];
1461
- if (!C || typeof C !== 'function') {
1462
- C = this.constructor || ZoneAwarePromise;
1463
- }
1464
- const chainPromise = new C(noop);
1465
- const zone = Zone.current;
1466
- if (this[symbolState] == UNRESOLVED) {
1467
- this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);
1468
- }
1469
- else {
1470
- scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);
1471
- }
1472
- return chainPromise;
1473
- }
1474
- catch(onRejected) {
1475
- return this.then(null, onRejected);
1476
- }
1477
- finally(onFinally) {
1478
- var _a;
1479
- // See comment on the call to `then` about why thee `Symbol.species` is safely accessed.
1480
- let C = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a[Symbol.species];
1481
- if (!C || typeof C !== 'function') {
1482
- C = ZoneAwarePromise;
1483
- }
1484
- const chainPromise = new C(noop);
1485
- chainPromise[symbolFinally] = symbolFinally;
1486
- const zone = Zone.current;
1487
- if (this[symbolState] == UNRESOLVED) {
1488
- this[symbolValue].push(zone, chainPromise, onFinally, onFinally);
1489
- }
1490
- else {
1491
- scheduleResolveOrReject(this, zone, chainPromise, onFinally, onFinally);
1492
- }
1493
- return chainPromise;
1494
- }
1495
- }
1496
- // Protect against aggressive optimizers dropping seemingly unused properties.
1497
- // E.g. Closure Compiler in advanced mode.
1498
- ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;
1499
- ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;
1500
- ZoneAwarePromise['race'] = ZoneAwarePromise.race;
1501
- ZoneAwarePromise['all'] = ZoneAwarePromise.all;
1502
- const NativePromise = global[symbolPromise] = global['Promise'];
1503
- global['Promise'] = ZoneAwarePromise;
1504
- const symbolThenPatched = __symbol__('thenPatched');
1505
- function patchThen(Ctor) {
1506
- const proto = Ctor.prototype;
1507
- const prop = ObjectGetOwnPropertyDescriptor(proto, 'then');
1508
- if (prop && (prop.writable === false || !prop.configurable)) {
1509
- // check Ctor.prototype.then propertyDescriptor is writable or not
1510
- // in meteor env, writable is false, we should ignore such case
1511
- return;
1512
- }
1513
- const originalThen = proto.then;
1514
- // Keep a reference to the original method.
1515
- proto[symbolThen] = originalThen;
1516
- Ctor.prototype.then = function (onResolve, onReject) {
1517
- const wrapped = new ZoneAwarePromise((resolve, reject) => {
1518
- originalThen.call(this, resolve, reject);
1519
- });
1520
- return wrapped.then(onResolve, onReject);
1521
- };
1522
- Ctor[symbolThenPatched] = true;
1523
- }
1524
- api.patchThen = patchThen;
1525
- function zoneify(fn) {
1526
- return function (self, args) {
1527
- let resultPromise = fn.apply(self, args);
1528
- if (resultPromise instanceof ZoneAwarePromise) {
1529
- return resultPromise;
1530
- }
1531
- let ctor = resultPromise.constructor;
1532
- if (!ctor[symbolThenPatched]) {
1533
- patchThen(ctor);
1534
- }
1535
- return resultPromise;
1536
- };
1537
- }
1538
- if (NativePromise) {
1539
- patchThen(NativePromise);
1540
- patchMethod(global, 'fetch', delegate => zoneify(delegate));
1541
- }
1542
- // This is not part of public API, but it is useful for tests, so we expose it.
1543
- Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;
1544
- return ZoneAwarePromise;
1545
- });
1546
-
1547
- /**
1548
- * @license
1549
- * Copyright Google LLC All Rights Reserved.
1550
- *
1551
- * Use of this source code is governed by an MIT-style license that can be
1552
- * found in the LICENSE file at https://angular.io/license
1553
- */
1554
- // override Function.prototype.toString to make zone.js patched function
1555
- // look like native function
1556
- Zone.__load_patch('toString', (global) => {
1557
- // patch Func.prototype.toString to let them look like native
1558
- const originalFunctionToString = Function.prototype.toString;
1559
- const ORIGINAL_DELEGATE_SYMBOL = zoneSymbol('OriginalDelegate');
1560
- const PROMISE_SYMBOL = zoneSymbol('Promise');
1561
- const ERROR_SYMBOL = zoneSymbol('Error');
1562
- const newFunctionToString = function toString() {
1563
- if (typeof this === 'function') {
1564
- const originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];
1565
- if (originalDelegate) {
1566
- if (typeof originalDelegate === 'function') {
1567
- return originalFunctionToString.call(originalDelegate);
1568
- }
1569
- else {
1570
- return Object.prototype.toString.call(originalDelegate);
1571
- }
1572
- }
1573
- if (this === Promise) {
1574
- const nativePromise = global[PROMISE_SYMBOL];
1575
- if (nativePromise) {
1576
- return originalFunctionToString.call(nativePromise);
1577
- }
1578
- }
1579
- if (this === Error) {
1580
- const nativeError = global[ERROR_SYMBOL];
1581
- if (nativeError) {
1582
- return originalFunctionToString.call(nativeError);
1583
- }
1584
- }
1585
- }
1586
- return originalFunctionToString.call(this);
1587
- };
1588
- newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = originalFunctionToString;
1589
- Function.prototype.toString = newFunctionToString;
1590
- // patch Object.prototype.toString to let them look like native
1591
- const originalObjectToString = Object.prototype.toString;
1592
- const PROMISE_OBJECT_TO_STRING = '[object Promise]';
1593
- Object.prototype.toString = function () {
1594
- if (typeof Promise === 'function' && this instanceof Promise) {
1595
- return PROMISE_OBJECT_TO_STRING;
1596
- }
1597
- return originalObjectToString.call(this);
1598
- };
1599
- });
1600
-
1601
- /**
1602
- * @license
1603
- * Copyright Google LLC All Rights Reserved.
1604
- *
1605
- * Use of this source code is governed by an MIT-style license that can be
1606
- * found in the LICENSE file at https://angular.io/license
1607
- */
1608
- let passiveSupported = false;
1609
- if (typeof window !== 'undefined') {
1610
- try {
1611
- const options = Object.defineProperty({}, 'passive', {
1612
- get: function () {
1613
- passiveSupported = true;
1614
- }
1615
- });
1616
- // Note: We pass the `options` object as the event handler too. This is not compatible with the
1617
- // signature of `addEventListener` or `removeEventListener` but enables us to remove the handler
1618
- // without an actual handler.
1619
- window.addEventListener('test', options, options);
1620
- window.removeEventListener('test', options, options);
1621
- }
1622
- catch (err) {
1623
- passiveSupported = false;
1624
- }
1625
- }
1626
- // an identifier to tell ZoneTask do not create a new invoke closure
1627
- const OPTIMIZED_ZONE_EVENT_TASK_DATA = {
1628
- useG: true
1629
- };
1630
- const zoneSymbolEventNames = {};
1631
- const globalSources = {};
1632
- const EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\w+)(true|false)$');
1633
- const IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol('propagationStopped');
1634
- function prepareEventNames(eventName, eventNameToString) {
1635
- const falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR;
1636
- const trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR;
1637
- const symbol = ZONE_SYMBOL_PREFIX + falseEventName;
1638
- const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;
1639
- zoneSymbolEventNames[eventName] = {};
1640
- zoneSymbolEventNames[eventName][FALSE_STR] = symbol;
1641
- zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;
1642
- }
1643
- function patchEventTarget(_global, api, apis, patchOptions) {
1644
- const ADD_EVENT_LISTENER = (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR;
1645
- const REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR;
1646
- const LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listeners) || 'eventListeners';
1647
- const REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.rmAll) || 'removeAllListeners';
1648
- const zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER);
1649
- const ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';
1650
- const PREPEND_EVENT_LISTENER = 'prependListener';
1651
- const PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';
1652
- const invokeTask = function (task, target, event) {
1653
- // for better performance, check isRemoved which is set
1654
- // by removeEventListener
1655
- if (task.isRemoved) {
1656
- return;
1657
- }
1658
- const delegate = task.callback;
1659
- if (typeof delegate === 'object' && delegate.handleEvent) {
1660
- // create the bind version of handleEvent when invoke
1661
- task.callback = (event) => delegate.handleEvent(event);
1662
- task.originalDelegate = delegate;
1663
- }
1664
- // invoke static task.invoke
1665
- // need to try/catch error here, otherwise, the error in one event listener
1666
- // will break the executions of the other event listeners. Also error will
1667
- // not remove the event listener when `once` options is true.
1668
- let error;
1669
- try {
1670
- task.invoke(task, target, [event]);
1671
- }
1672
- catch (err) {
1673
- error = err;
1674
- }
1675
- const options = task.options;
1676
- if (options && typeof options === 'object' && options.once) {
1677
- // if options.once is true, after invoke once remove listener here
1678
- // only browser need to do this, nodejs eventEmitter will cal removeListener
1679
- // inside EventEmitter.once
1680
- const delegate = task.originalDelegate ? task.originalDelegate : task.callback;
1681
- target[REMOVE_EVENT_LISTENER].call(target, event.type, delegate, options);
1682
- }
1683
- return error;
1684
- };
1685
- function globalCallback(context, event, isCapture) {
1686
- // https://github.com/angular/zone.js/issues/911, in IE, sometimes
1687
- // event will be undefined, so we need to use window.event
1688
- event = event || _global.event;
1689
- if (!event) {
1690
- return;
1691
- }
1692
- // event.target is needed for Samsung TV and SourceBuffer
1693
- // || global is needed https://github.com/angular/zone.js/issues/190
1694
- const target = context || event.target || _global;
1695
- const tasks = target[zoneSymbolEventNames[event.type][isCapture ? TRUE_STR : FALSE_STR]];
1696
- if (tasks) {
1697
- const errors = [];
1698
- // invoke all tasks which attached to current target with given event.type and capture = false
1699
- // for performance concern, if task.length === 1, just invoke
1700
- if (tasks.length === 1) {
1701
- const err = invokeTask(tasks[0], target, event);
1702
- err && errors.push(err);
1703
- }
1704
- else {
1705
- // https://github.com/angular/zone.js/issues/836
1706
- // copy the tasks array before invoke, to avoid
1707
- // the callback will remove itself or other listener
1708
- const copyTasks = tasks.slice();
1709
- for (let i = 0; i < copyTasks.length; i++) {
1710
- if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {
1711
- break;
1712
- }
1713
- const err = invokeTask(copyTasks[i], target, event);
1714
- err && errors.push(err);
1715
- }
1716
- }
1717
- // Since there is only one error, we don't need to schedule microTask
1718
- // to throw the error.
1719
- if (errors.length === 1) {
1720
- throw errors[0];
1721
- }
1722
- else {
1723
- for (let i = 0; i < errors.length; i++) {
1724
- const err = errors[i];
1725
- api.nativeScheduleMicroTask(() => {
1726
- throw err;
1727
- });
1728
- }
1729
- }
1730
- }
1731
- }
1732
- // global shared zoneAwareCallback to handle all event callback with capture = false
1733
- const globalZoneAwareCallback = function (event) {
1734
- return globalCallback(this, event, false);
1735
- };
1736
- // global shared zoneAwareCallback to handle all event callback with capture = true
1737
- const globalZoneAwareCaptureCallback = function (event) {
1738
- return globalCallback(this, event, true);
1739
- };
1740
- function patchEventTargetMethods(obj, patchOptions) {
1741
- if (!obj) {
1742
- return false;
1743
- }
1744
- let useGlobalCallback = true;
1745
- if (patchOptions && patchOptions.useG !== undefined) {
1746
- useGlobalCallback = patchOptions.useG;
1747
- }
1748
- const validateHandler = patchOptions && patchOptions.vh;
1749
- let checkDuplicate = true;
1750
- if (patchOptions && patchOptions.chkDup !== undefined) {
1751
- checkDuplicate = patchOptions.chkDup;
1752
- }
1753
- let returnTarget = false;
1754
- if (patchOptions && patchOptions.rt !== undefined) {
1755
- returnTarget = patchOptions.rt;
1756
- }
1757
- let proto = obj;
1758
- while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {
1759
- proto = ObjectGetPrototypeOf(proto);
1760
- }
1761
- if (!proto && obj[ADD_EVENT_LISTENER]) {
1762
- // somehow we did not find it, but we can see it. This happens on IE for Window properties.
1763
- proto = obj;
1764
- }
1765
- if (!proto) {
1766
- return false;
1767
- }
1768
- if (proto[zoneSymbolAddEventListener]) {
1769
- return false;
1770
- }
1771
- const eventNameToString = patchOptions && patchOptions.eventNameToString;
1772
- // a shared global taskData to pass data for scheduleEventTask
1773
- // so we do not need to create a new object just for pass some data
1774
- const taskData = {};
1775
- const nativeAddEventListener = proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER];
1776
- const nativeRemoveEventListener = proto[zoneSymbol(REMOVE_EVENT_LISTENER)] =
1777
- proto[REMOVE_EVENT_LISTENER];
1778
- const nativeListeners = proto[zoneSymbol(LISTENERS_EVENT_LISTENER)] =
1779
- proto[LISTENERS_EVENT_LISTENER];
1780
- const nativeRemoveAllListeners = proto[zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =
1781
- proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER];
1782
- let nativePrependEventListener;
1783
- if (patchOptions && patchOptions.prepend) {
1784
- nativePrependEventListener = proto[zoneSymbol(patchOptions.prepend)] =
1785
- proto[patchOptions.prepend];
1786
- }
1787
- /**
1788
- * This util function will build an option object with passive option
1789
- * to handle all possible input from the user.
1790
- */
1791
- function buildEventListenerOptions(options, passive) {
1792
- if (!passiveSupported && typeof options === 'object' && options) {
1793
- // doesn't support passive but user want to pass an object as options.
1794
- // this will not work on some old browser, so we just pass a boolean
1795
- // as useCapture parameter
1796
- return !!options.capture;
1797
- }
1798
- if (!passiveSupported || !passive) {
1799
- return options;
1800
- }
1801
- if (typeof options === 'boolean') {
1802
- return { capture: options, passive: true };
1803
- }
1804
- if (!options) {
1805
- return { passive: true };
1806
- }
1807
- if (typeof options === 'object' && options.passive !== false) {
1808
- return Object.assign(Object.assign({}, options), { passive: true });
1809
- }
1810
- return options;
1811
- }
1812
- const customScheduleGlobal = function (task) {
1813
- // if there is already a task for the eventName + capture,
1814
- // just return, because we use the shared globalZoneAwareCallback here.
1815
- if (taskData.isExisting) {
1816
- return;
1817
- }
1818
- return nativeAddEventListener.call(taskData.target, taskData.eventName, taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, taskData.options);
1819
- };
1820
- const customCancelGlobal = function (task) {
1821
- // if task is not marked as isRemoved, this call is directly
1822
- // from Zone.prototype.cancelTask, we should remove the task
1823
- // from tasksList of target first
1824
- if (!task.isRemoved) {
1825
- const symbolEventNames = zoneSymbolEventNames[task.eventName];
1826
- let symbolEventName;
1827
- if (symbolEventNames) {
1828
- symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];
1829
- }
1830
- const existingTasks = symbolEventName && task.target[symbolEventName];
1831
- if (existingTasks) {
1832
- for (let i = 0; i < existingTasks.length; i++) {
1833
- const existingTask = existingTasks[i];
1834
- if (existingTask === task) {
1835
- existingTasks.splice(i, 1);
1836
- // set isRemoved to data for faster invokeTask check
1837
- task.isRemoved = true;
1838
- if (existingTasks.length === 0) {
1839
- // all tasks for the eventName + capture have gone,
1840
- // remove globalZoneAwareCallback and remove the task cache from target
1841
- task.allRemoved = true;
1842
- task.target[symbolEventName] = null;
1843
- }
1844
- break;
1845
- }
1846
- }
1847
- }
1848
- }
1849
- // if all tasks for the eventName + capture have gone,
1850
- // we will really remove the global event callback,
1851
- // if not, return
1852
- if (!task.allRemoved) {
1853
- return;
1854
- }
1855
- return nativeRemoveEventListener.call(task.target, task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, task.options);
1856
- };
1857
- const customScheduleNonGlobal = function (task) {
1858
- return nativeAddEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);
1859
- };
1860
- const customSchedulePrepend = function (task) {
1861
- return nativePrependEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);
1862
- };
1863
- const customCancelNonGlobal = function (task) {
1864
- return nativeRemoveEventListener.call(task.target, task.eventName, task.invoke, task.options);
1865
- };
1866
- const customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;
1867
- const customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;
1868
- const compareTaskCallbackVsDelegate = function (task, delegate) {
1869
- const typeOfDelegate = typeof delegate;
1870
- return (typeOfDelegate === 'function' && task.callback === delegate) ||
1871
- (typeOfDelegate === 'object' && task.originalDelegate === delegate);
1872
- };
1873
- const compare = (patchOptions && patchOptions.diff) ? patchOptions.diff : compareTaskCallbackVsDelegate;
1874
- const unpatchedEvents = Zone[zoneSymbol('UNPATCHED_EVENTS')];
1875
- const passiveEvents = _global[zoneSymbol('PASSIVE_EVENTS')];
1876
- const makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget = false, prepend = false) {
1877
- return function () {
1878
- const target = this || _global;
1879
- let eventName = arguments[0];
1880
- if (patchOptions && patchOptions.transferEventName) {
1881
- eventName = patchOptions.transferEventName(eventName);
1882
- }
1883
- let delegate = arguments[1];
1884
- if (!delegate) {
1885
- return nativeListener.apply(this, arguments);
1886
- }
1887
- if (isNode && eventName === 'uncaughtException') {
1888
- // don't patch uncaughtException of nodejs to prevent endless loop
1889
- return nativeListener.apply(this, arguments);
1890
- }
1891
- // don't create the bind delegate function for handleEvent
1892
- // case here to improve addEventListener performance
1893
- // we will create the bind delegate when invoke
1894
- let isHandleEvent = false;
1895
- if (typeof delegate !== 'function') {
1896
- if (!delegate.handleEvent) {
1897
- return nativeListener.apply(this, arguments);
1898
- }
1899
- isHandleEvent = true;
1900
- }
1901
- if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {
1902
- return;
1903
- }
1904
- const passive = passiveSupported && !!passiveEvents && passiveEvents.indexOf(eventName) !== -1;
1905
- const options = buildEventListenerOptions(arguments[2], passive);
1906
- if (unpatchedEvents) {
1907
- // check unpatched list
1908
- for (let i = 0; i < unpatchedEvents.length; i++) {
1909
- if (eventName === unpatchedEvents[i]) {
1910
- if (passive) {
1911
- return nativeListener.call(target, eventName, delegate, options);
1912
- }
1913
- else {
1914
- return nativeListener.apply(this, arguments);
1915
- }
1916
- }
1917
- }
1918
- }
1919
- const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;
1920
- const once = options && typeof options === 'object' ? options.once : false;
1921
- const zone = Zone.current;
1922
- let symbolEventNames = zoneSymbolEventNames[eventName];
1923
- if (!symbolEventNames) {
1924
- prepareEventNames(eventName, eventNameToString);
1925
- symbolEventNames = zoneSymbolEventNames[eventName];
1926
- }
1927
- const symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];
1928
- let existingTasks = target[symbolEventName];
1929
- let isExisting = false;
1930
- if (existingTasks) {
1931
- // already have task registered
1932
- isExisting = true;
1933
- if (checkDuplicate) {
1934
- for (let i = 0; i < existingTasks.length; i++) {
1935
- if (compare(existingTasks[i], delegate)) {
1936
- // same callback, same capture, same event name, just return
1937
- return;
1938
- }
1939
- }
1940
- }
1941
- }
1942
- else {
1943
- existingTasks = target[symbolEventName] = [];
1944
- }
1945
- let source;
1946
- const constructorName = target.constructor['name'];
1947
- const targetSource = globalSources[constructorName];
1948
- if (targetSource) {
1949
- source = targetSource[eventName];
1950
- }
1951
- if (!source) {
1952
- source = constructorName + addSource +
1953
- (eventNameToString ? eventNameToString(eventName) : eventName);
1954
- }
1955
- // do not create a new object as task.data to pass those things
1956
- // just use the global shared one
1957
- taskData.options = options;
1958
- if (once) {
1959
- // if addEventListener with once options, we don't pass it to
1960
- // native addEventListener, instead we keep the once setting
1961
- // and handle ourselves.
1962
- taskData.options.once = false;
1963
- }
1964
- taskData.target = target;
1965
- taskData.capture = capture;
1966
- taskData.eventName = eventName;
1967
- taskData.isExisting = isExisting;
1968
- const data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : undefined;
1969
- // keep taskData into data to allow onScheduleEventTask to access the task information
1970
- if (data) {
1971
- data.taskData = taskData;
1972
- }
1973
- const task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);
1974
- // should clear taskData.target to avoid memory leak
1975
- // issue, https://github.com/angular/angular/issues/20442
1976
- taskData.target = null;
1977
- // need to clear up taskData because it is a global object
1978
- if (data) {
1979
- data.taskData = null;
1980
- }
1981
- // have to save those information to task in case
1982
- // application may call task.zone.cancelTask() directly
1983
- if (once) {
1984
- options.once = true;
1985
- }
1986
- if (!(!passiveSupported && typeof task.options === 'boolean')) {
1987
- // if not support passive, and we pass an option object
1988
- // to addEventListener, we should save the options to task
1989
- task.options = options;
1990
- }
1991
- task.target = target;
1992
- task.capture = capture;
1993
- task.eventName = eventName;
1994
- if (isHandleEvent) {
1995
- // save original delegate for compare to check duplicate
1996
- task.originalDelegate = delegate;
1997
- }
1998
- if (!prepend) {
1999
- existingTasks.push(task);
2000
- }
2001
- else {
2002
- existingTasks.unshift(task);
2003
- }
2004
- if (returnTarget) {
2005
- return target;
2006
- }
2007
- };
2008
- };
2009
- proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);
2010
- if (nativePrependEventListener) {
2011
- proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);
2012
- }
2013
- proto[REMOVE_EVENT_LISTENER] = function () {
2014
- const target = this || _global;
2015
- let eventName = arguments[0];
2016
- if (patchOptions && patchOptions.transferEventName) {
2017
- eventName = patchOptions.transferEventName(eventName);
2018
- }
2019
- const options = arguments[2];
2020
- const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;
2021
- const delegate = arguments[1];
2022
- if (!delegate) {
2023
- return nativeRemoveEventListener.apply(this, arguments);
2024
- }
2025
- if (validateHandler &&
2026
- !validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {
2027
- return;
2028
- }
2029
- const symbolEventNames = zoneSymbolEventNames[eventName];
2030
- let symbolEventName;
2031
- if (symbolEventNames) {
2032
- symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];
2033
- }
2034
- const existingTasks = symbolEventName && target[symbolEventName];
2035
- if (existingTasks) {
2036
- for (let i = 0; i < existingTasks.length; i++) {
2037
- const existingTask = existingTasks[i];
2038
- if (compare(existingTask, delegate)) {
2039
- existingTasks.splice(i, 1);
2040
- // set isRemoved to data for faster invokeTask check
2041
- existingTask.isRemoved = true;
2042
- if (existingTasks.length === 0) {
2043
- // all tasks for the eventName + capture have gone,
2044
- // remove globalZoneAwareCallback and remove the task cache from target
2045
- existingTask.allRemoved = true;
2046
- target[symbolEventName] = null;
2047
- // in the target, we have an event listener which is added by on_property
2048
- // such as target.onclick = function() {}, so we need to clear this internal
2049
- // property too if all delegates all removed
2050
- if (typeof eventName === 'string') {
2051
- const onPropertySymbol = ZONE_SYMBOL_PREFIX + 'ON_PROPERTY' + eventName;
2052
- target[onPropertySymbol] = null;
2053
- }
2054
- }
2055
- existingTask.zone.cancelTask(existingTask);
2056
- if (returnTarget) {
2057
- return target;
2058
- }
2059
- return;
2060
- }
2061
- }
2062
- }
2063
- // issue 930, didn't find the event name or callback
2064
- // from zone kept existingTasks, the callback maybe
2065
- // added outside of zone, we need to call native removeEventListener
2066
- // to try to remove it.
2067
- return nativeRemoveEventListener.apply(this, arguments);
2068
- };
2069
- proto[LISTENERS_EVENT_LISTENER] = function () {
2070
- const target = this || _global;
2071
- let eventName = arguments[0];
2072
- if (patchOptions && patchOptions.transferEventName) {
2073
- eventName = patchOptions.transferEventName(eventName);
2074
- }
2075
- const listeners = [];
2076
- const tasks = findEventTasks(target, eventNameToString ? eventNameToString(eventName) : eventName);
2077
- for (let i = 0; i < tasks.length; i++) {
2078
- const task = tasks[i];
2079
- let delegate = task.originalDelegate ? task.originalDelegate : task.callback;
2080
- listeners.push(delegate);
2081
- }
2082
- return listeners;
2083
- };
2084
- proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {
2085
- const target = this || _global;
2086
- let eventName = arguments[0];
2087
- if (!eventName) {
2088
- const keys = Object.keys(target);
2089
- for (let i = 0; i < keys.length; i++) {
2090
- const prop = keys[i];
2091
- const match = EVENT_NAME_SYMBOL_REGX.exec(prop);
2092
- let evtName = match && match[1];
2093
- // in nodejs EventEmitter, removeListener event is
2094
- // used for monitoring the removeListener call,
2095
- // so just keep removeListener eventListener until
2096
- // all other eventListeners are removed
2097
- if (evtName && evtName !== 'removeListener') {
2098
- this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, evtName);
2099
- }
2100
- }
2101
- // remove removeListener listener finally
2102
- this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, 'removeListener');
2103
- }
2104
- else {
2105
- if (patchOptions && patchOptions.transferEventName) {
2106
- eventName = patchOptions.transferEventName(eventName);
2107
- }
2108
- const symbolEventNames = zoneSymbolEventNames[eventName];
2109
- if (symbolEventNames) {
2110
- const symbolEventName = symbolEventNames[FALSE_STR];
2111
- const symbolCaptureEventName = symbolEventNames[TRUE_STR];
2112
- const tasks = target[symbolEventName];
2113
- const captureTasks = target[symbolCaptureEventName];
2114
- if (tasks) {
2115
- const removeTasks = tasks.slice();
2116
- for (let i = 0; i < removeTasks.length; i++) {
2117
- const task = removeTasks[i];
2118
- let delegate = task.originalDelegate ? task.originalDelegate : task.callback;
2119
- this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);
2120
- }
2121
- }
2122
- if (captureTasks) {
2123
- const removeTasks = captureTasks.slice();
2124
- for (let i = 0; i < removeTasks.length; i++) {
2125
- const task = removeTasks[i];
2126
- let delegate = task.originalDelegate ? task.originalDelegate : task.callback;
2127
- this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);
2128
- }
2129
- }
2130
- }
2131
- }
2132
- if (returnTarget) {
2133
- return this;
2134
- }
2135
- };
2136
- // for native toString patch
2137
- attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);
2138
- attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);
2139
- if (nativeRemoveAllListeners) {
2140
- attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);
2141
- }
2142
- if (nativeListeners) {
2143
- attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);
2144
- }
2145
- return true;
2146
- }
2147
- let results = [];
2148
- for (let i = 0; i < apis.length; i++) {
2149
- results[i] = patchEventTargetMethods(apis[i], patchOptions);
2150
- }
2151
- return results;
2152
- }
2153
- function findEventTasks(target, eventName) {
2154
- if (!eventName) {
2155
- const foundTasks = [];
2156
- for (let prop in target) {
2157
- const match = EVENT_NAME_SYMBOL_REGX.exec(prop);
2158
- let evtName = match && match[1];
2159
- if (evtName && (!eventName || evtName === eventName)) {
2160
- const tasks = target[prop];
2161
- if (tasks) {
2162
- for (let i = 0; i < tasks.length; i++) {
2163
- foundTasks.push(tasks[i]);
2164
- }
2165
- }
2166
- }
2167
- }
2168
- return foundTasks;
2169
- }
2170
- let symbolEventName = zoneSymbolEventNames[eventName];
2171
- if (!symbolEventName) {
2172
- prepareEventNames(eventName);
2173
- symbolEventName = zoneSymbolEventNames[eventName];
2174
- }
2175
- const captureFalseTasks = target[symbolEventName[FALSE_STR]];
2176
- const captureTrueTasks = target[symbolEventName[TRUE_STR]];
2177
- if (!captureFalseTasks) {
2178
- return captureTrueTasks ? captureTrueTasks.slice() : [];
2179
- }
2180
- else {
2181
- return captureTrueTasks ? captureFalseTasks.concat(captureTrueTasks) :
2182
- captureFalseTasks.slice();
2183
- }
2184
- }
2185
- function patchEventPrototype(global, api) {
2186
- const Event = global['Event'];
2187
- if (Event && Event.prototype) {
2188
- api.patchMethod(Event.prototype, 'stopImmediatePropagation', (delegate) => function (self, args) {
2189
- self[IMMEDIATE_PROPAGATION_SYMBOL] = true;
2190
- // we need to call the native stopImmediatePropagation
2191
- // in case in some hybrid application, some part of
2192
- // application will be controlled by zone, some are not
2193
- delegate && delegate.apply(self, args);
2194
- });
2195
- }
2196
- }
2197
-
2198
- /**
2199
- * @license
2200
- * Copyright Google LLC All Rights Reserved.
2201
- *
2202
- * Use of this source code is governed by an MIT-style license that can be
2203
- * found in the LICENSE file at https://angular.io/license
2204
- */
2205
- function patchCallbacks(api, target, targetName, method, callbacks) {
2206
- const symbol = Zone.__symbol__(method);
2207
- if (target[symbol]) {
2208
- return;
2209
- }
2210
- const nativeDelegate = target[symbol] = target[method];
2211
- target[method] = function (name, opts, options) {
2212
- if (opts && opts.prototype) {
2213
- callbacks.forEach(function (callback) {
2214
- const source = `${targetName}.${method}::` + callback;
2215
- const prototype = opts.prototype;
2216
- // Note: the `patchCallbacks` is used for patching the `document.registerElement` and
2217
- // `customElements.define`. We explicitly wrap the patching code into try-catch since
2218
- // callbacks may be already patched by other web components frameworks (e.g. LWC), and they
2219
- // make those properties non-writable. This means that patching callback will throw an error
2220
- // `cannot assign to read-only property`. See this code as an example:
2221
- // https://github.com/salesforce/lwc/blob/master/packages/@lwc/engine-core/src/framework/base-bridge-element.ts#L180-L186
2222
- // We don't want to stop the application rendering if we couldn't patch some
2223
- // callback, e.g. `attributeChangedCallback`.
2224
- try {
2225
- if (prototype.hasOwnProperty(callback)) {
2226
- const descriptor = api.ObjectGetOwnPropertyDescriptor(prototype, callback);
2227
- if (descriptor && descriptor.value) {
2228
- descriptor.value = api.wrapWithCurrentZone(descriptor.value, source);
2229
- api._redefineProperty(opts.prototype, callback, descriptor);
2230
- }
2231
- else if (prototype[callback]) {
2232
- prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);
2233
- }
2234
- }
2235
- else if (prototype[callback]) {
2236
- prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);
2237
- }
2238
- }
2239
- catch (_a) {
2240
- // Note: we leave the catch block empty since there's no way to handle the error related
2241
- // to non-writable property.
2242
- }
2243
- });
2244
- }
2245
- return nativeDelegate.call(target, name, opts, options);
2246
- };
2247
- api.attachOriginToPatched(target[method], nativeDelegate);
2248
- }
2249
-
2250
- /**
2251
- * @license
2252
- * Copyright Google LLC All Rights Reserved.
2253
- *
2254
- * Use of this source code is governed by an MIT-style license that can be
2255
- * found in the LICENSE file at https://angular.io/license
2256
- */
2257
- function filterProperties(target, onProperties, ignoreProperties) {
2258
- if (!ignoreProperties || ignoreProperties.length === 0) {
2259
- return onProperties;
2260
- }
2261
- const tip = ignoreProperties.filter(ip => ip.target === target);
2262
- if (!tip || tip.length === 0) {
2263
- return onProperties;
2264
- }
2265
- const targetIgnoreProperties = tip[0].ignoreProperties;
2266
- return onProperties.filter(op => targetIgnoreProperties.indexOf(op) === -1);
2267
- }
2268
- function patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {
2269
- // check whether target is available, sometimes target will be undefined
2270
- // because different browser or some 3rd party plugin.
2271
- if (!target) {
2272
- return;
2273
- }
2274
- const filteredProperties = filterProperties(target, onProperties, ignoreProperties);
2275
- patchOnProperties(target, filteredProperties, prototype);
2276
- }
2277
- /**
2278
- * Get all event name properties which the event name startsWith `on`
2279
- * from the target object itself, inherited properties are not considered.
2280
- */
2281
- function getOnEventNames(target) {
2282
- return Object.getOwnPropertyNames(target)
2283
- .filter(name => name.startsWith('on') && name.length > 2)
2284
- .map(name => name.substring(2));
2285
- }
2286
- function propertyDescriptorPatch(api, _global) {
2287
- if (isNode && !isMix) {
2288
- return;
2289
- }
2290
- if (Zone[api.symbol('patchEvents')]) {
2291
- // events are already been patched by legacy patch.
2292
- return;
2293
- }
2294
- const ignoreProperties = _global['__Zone_ignore_on_properties'];
2295
- // for browsers that we can patch the descriptor: Chrome & Firefox
2296
- let patchTargets = [];
2297
- if (isBrowser) {
2298
- const internalWindow = window;
2299
- patchTargets = patchTargets.concat([
2300
- 'Document', 'SVGElement', 'Element', 'HTMLElement', 'HTMLBodyElement', 'HTMLMediaElement',
2301
- 'HTMLFrameSetElement', 'HTMLFrameElement', 'HTMLIFrameElement', 'HTMLMarqueeElement', 'Worker'
2302
- ]);
2303
- const ignoreErrorProperties = isIE() ? [{ target: internalWindow, ignoreProperties: ['error'] }] : [];
2304
- // in IE/Edge, onProp not exist in window object, but in WindowPrototype
2305
- // so we need to pass WindowPrototype to check onProp exist or not
2306
- patchFilteredProperties(internalWindow, getOnEventNames(internalWindow), ignoreProperties ? ignoreProperties.concat(ignoreErrorProperties) : ignoreProperties, ObjectGetPrototypeOf(internalWindow));
2307
- }
2308
- patchTargets = patchTargets.concat([
2309
- 'XMLHttpRequest', 'XMLHttpRequestEventTarget', 'IDBIndex', 'IDBRequest', 'IDBOpenDBRequest',
2310
- 'IDBDatabase', 'IDBTransaction', 'IDBCursor', 'WebSocket'
2311
- ]);
2312
- for (let i = 0; i < patchTargets.length; i++) {
2313
- const target = _global[patchTargets[i]];
2314
- target && target.prototype &&
2315
- patchFilteredProperties(target.prototype, getOnEventNames(target.prototype), ignoreProperties);
2316
- }
2317
- }
2318
-
2319
- /**
2320
- * @license
2321
- * Copyright Google LLC All Rights Reserved.
2322
- *
2323
- * Use of this source code is governed by an MIT-style license that can be
2324
- * found in the LICENSE file at https://angular.io/license
2325
- */
2326
- Zone.__load_patch('util', (global, Zone, api) => {
2327
- // Collect native event names by looking at properties
2328
- // on the global namespace, e.g. 'onclick'.
2329
- const eventNames = getOnEventNames(global);
2330
- api.patchOnProperties = patchOnProperties;
2331
- api.patchMethod = patchMethod;
2332
- api.bindArguments = bindArguments;
2333
- api.patchMacroTask = patchMacroTask;
2334
- // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS` to
2335
- // define which events will not be patched by `Zone.js`.
2336
- // In newer version (>=0.9.0), we change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep
2337
- // the name consistent with angular repo.
2338
- // The `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be supported for
2339
- // backwards compatibility.
2340
- const SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__('BLACK_LISTED_EVENTS');
2341
- const SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__('UNPATCHED_EVENTS');
2342
- if (global[SYMBOL_UNPATCHED_EVENTS]) {
2343
- global[SYMBOL_BLACK_LISTED_EVENTS] = global[SYMBOL_UNPATCHED_EVENTS];
2344
- }
2345
- if (global[SYMBOL_BLACK_LISTED_EVENTS]) {
2346
- Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] =
2347
- global[SYMBOL_BLACK_LISTED_EVENTS];
2348
- }
2349
- api.patchEventPrototype = patchEventPrototype;
2350
- api.patchEventTarget = patchEventTarget;
2351
- api.isIEOrEdge = isIEOrEdge;
2352
- api.ObjectDefineProperty = ObjectDefineProperty;
2353
- api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;
2354
- api.ObjectCreate = ObjectCreate;
2355
- api.ArraySlice = ArraySlice;
2356
- api.patchClass = patchClass;
2357
- api.wrapWithCurrentZone = wrapWithCurrentZone;
2358
- api.filterProperties = filterProperties;
2359
- api.attachOriginToPatched = attachOriginToPatched;
2360
- api._redefineProperty = Object.defineProperty;
2361
- api.patchCallbacks = patchCallbacks;
2362
- api.getGlobalObjects = () => ({
2363
- globalSources,
2364
- zoneSymbolEventNames,
2365
- eventNames,
2366
- isBrowser,
2367
- isMix,
2368
- isNode,
2369
- TRUE_STR,
2370
- FALSE_STR,
2371
- ZONE_SYMBOL_PREFIX,
2372
- ADD_EVENT_LISTENER_STR,
2373
- REMOVE_EVENT_LISTENER_STR
2374
- });
2375
- });
2376
-
2377
- /**
2378
- * @license
2379
- * Copyright Google LLC All Rights Reserved.
2380
- *
2381
- * Use of this source code is governed by an MIT-style license that can be
2382
- * found in the LICENSE file at https://angular.io/license
2383
- */
2384
- const taskSymbol = zoneSymbol('zoneTask');
2385
- function patchTimer(window, setName, cancelName, nameSuffix) {
2386
- let setNative = null;
2387
- let clearNative = null;
2388
- setName += nameSuffix;
2389
- cancelName += nameSuffix;
2390
- const tasksByHandleId = {};
2391
- function scheduleTask(task) {
2392
- const data = task.data;
2393
- data.args[0] = function () {
2394
- return task.invoke.apply(this, arguments);
2395
- };
2396
- data.handleId = setNative.apply(window, data.args);
2397
- return task;
2398
- }
2399
- function clearTask(task) {
2400
- return clearNative.call(window, task.data.handleId);
2401
- }
2402
- setNative =
2403
- patchMethod(window, setName, (delegate) => function (self, args) {
2404
- if (typeof args[0] === 'function') {
2405
- const options = {
2406
- isPeriodic: nameSuffix === 'Interval',
2407
- delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 :
2408
- undefined,
2409
- args: args
2410
- };
2411
- const callback = args[0];
2412
- args[0] = function timer() {
2413
- try {
2414
- return callback.apply(this, arguments);
2415
- }
2416
- finally {
2417
- // issue-934, task will be cancelled
2418
- // even it is a periodic task such as
2419
- // setInterval
2420
- // https://github.com/angular/angular/issues/40387
2421
- // Cleanup tasksByHandleId should be handled before scheduleTask
2422
- // Since some zoneSpec may intercept and doesn't trigger
2423
- // scheduleFn(scheduleTask) provided here.
2424
- if (!(options.isPeriodic)) {
2425
- if (typeof options.handleId === 'number') {
2426
- // in non-nodejs env, we remove timerId
2427
- // from local cache
2428
- delete tasksByHandleId[options.handleId];
2429
- }
2430
- else if (options.handleId) {
2431
- // Node returns complex objects as handleIds
2432
- // we remove task reference from timer object
2433
- options.handleId[taskSymbol] = null;
2434
- }
2435
- }
2436
- }
2437
- };
2438
- const task = scheduleMacroTaskWithCurrentZone(setName, args[0], options, scheduleTask, clearTask);
2439
- if (!task) {
2440
- return task;
2441
- }
2442
- // Node.js must additionally support the ref and unref functions.
2443
- const handle = task.data.handleId;
2444
- if (typeof handle === 'number') {
2445
- // for non nodejs env, we save handleId: task
2446
- // mapping in local cache for clearTimeout
2447
- tasksByHandleId[handle] = task;
2448
- }
2449
- else if (handle) {
2450
- // for nodejs env, we save task
2451
- // reference in timerId Object for clearTimeout
2452
- handle[taskSymbol] = task;
2453
- }
2454
- // check whether handle is null, because some polyfill or browser
2455
- // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame
2456
- if (handle && handle.ref && handle.unref && typeof handle.ref === 'function' &&
2457
- typeof handle.unref === 'function') {
2458
- task.ref = handle.ref.bind(handle);
2459
- task.unref = handle.unref.bind(handle);
2460
- }
2461
- if (typeof handle === 'number' || handle) {
2462
- return handle;
2463
- }
2464
- return task;
2465
- }
2466
- else {
2467
- // cause an error by calling it directly.
2468
- return delegate.apply(window, args);
2469
- }
2470
- });
2471
- clearNative =
2472
- patchMethod(window, cancelName, (delegate) => function (self, args) {
2473
- const id = args[0];
2474
- let task;
2475
- if (typeof id === 'number') {
2476
- // non nodejs env.
2477
- task = tasksByHandleId[id];
2478
- }
2479
- else {
2480
- // nodejs env.
2481
- task = id && id[taskSymbol];
2482
- // other environments.
2483
- if (!task) {
2484
- task = id;
2485
- }
2486
- }
2487
- if (task && typeof task.type === 'string') {
2488
- if (task.state !== 'notScheduled' &&
2489
- (task.cancelFn && task.data.isPeriodic || task.runCount === 0)) {
2490
- if (typeof id === 'number') {
2491
- delete tasksByHandleId[id];
2492
- }
2493
- else if (id) {
2494
- id[taskSymbol] = null;
2495
- }
2496
- // Do not cancel already canceled functions
2497
- task.zone.cancelTask(task);
2498
- }
2499
- }
2500
- else {
2501
- // cause an error by calling it directly.
2502
- delegate.apply(window, args);
2503
- }
2504
- });
2505
- }
2506
-
2507
- /**
2508
- * @license
2509
- * Copyright Google LLC All Rights Reserved.
2510
- *
2511
- * Use of this source code is governed by an MIT-style license that can be
2512
- * found in the LICENSE file at https://angular.io/license
2513
- */
2514
- function patchCustomElements(_global, api) {
2515
- const { isBrowser, isMix } = api.getGlobalObjects();
2516
- if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {
2517
- return;
2518
- }
2519
- const callbacks = ['connectedCallback', 'disconnectedCallback', 'adoptedCallback', 'attributeChangedCallback'];
2520
- api.patchCallbacks(api, _global.customElements, 'customElements', 'define', callbacks);
2521
- }
2522
-
2523
- /**
2524
- * @license
2525
- * Copyright Google LLC All Rights Reserved.
2526
- *
2527
- * Use of this source code is governed by an MIT-style license that can be
2528
- * found in the LICENSE file at https://angular.io/license
2529
- */
2530
- function eventTargetPatch(_global, api) {
2531
- if (Zone[api.symbol('patchEventTarget')]) {
2532
- // EventTarget is already patched.
2533
- return;
2534
- }
2535
- const { eventNames, zoneSymbolEventNames, TRUE_STR, FALSE_STR, ZONE_SYMBOL_PREFIX } = api.getGlobalObjects();
2536
- // predefine all __zone_symbol__ + eventName + true/false string
2537
- for (let i = 0; i < eventNames.length; i++) {
2538
- const eventName = eventNames[i];
2539
- const falseEventName = eventName + FALSE_STR;
2540
- const trueEventName = eventName + TRUE_STR;
2541
- const symbol = ZONE_SYMBOL_PREFIX + falseEventName;
2542
- const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;
2543
- zoneSymbolEventNames[eventName] = {};
2544
- zoneSymbolEventNames[eventName][FALSE_STR] = symbol;
2545
- zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;
2546
- }
2547
- const EVENT_TARGET = _global['EventTarget'];
2548
- if (!EVENT_TARGET || !EVENT_TARGET.prototype) {
2549
- return;
2550
- }
2551
- api.patchEventTarget(_global, api, [EVENT_TARGET && EVENT_TARGET.prototype]);
2552
- return true;
2553
- }
2554
- function patchEvent(global, api) {
2555
- api.patchEventPrototype(global, api);
2556
- }
2557
-
2558
- /**
2559
- * @license
2560
- * Copyright Google LLC All Rights Reserved.
2561
- *
2562
- * Use of this source code is governed by an MIT-style license that can be
2563
- * found in the LICENSE file at https://angular.io/license
2564
- */
2565
- Zone.__load_patch('legacy', (global) => {
2566
- const legacyPatch = global[Zone.__symbol__('legacyPatch')];
2567
- if (legacyPatch) {
2568
- legacyPatch();
2569
- }
2570
- });
2571
- Zone.__load_patch('queueMicrotask', (global, Zone, api) => {
2572
- api.patchMethod(global, 'queueMicrotask', delegate => {
2573
- return function (self, args) {
2574
- Zone.current.scheduleMicroTask('queueMicrotask', args[0]);
2575
- };
2576
- });
2577
- });
2578
- Zone.__load_patch('timers', (global) => {
2579
- const set = 'set';
2580
- const clear = 'clear';
2581
- patchTimer(global, set, clear, 'Timeout');
2582
- patchTimer(global, set, clear, 'Interval');
2583
- patchTimer(global, set, clear, 'Immediate');
2584
- });
2585
- Zone.__load_patch('requestAnimationFrame', (global) => {
2586
- patchTimer(global, 'request', 'cancel', 'AnimationFrame');
2587
- patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');
2588
- patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');
2589
- });
2590
- Zone.__load_patch('blocking', (global, Zone) => {
2591
- const blockingMethods = ['alert', 'prompt', 'confirm'];
2592
- for (let i = 0; i < blockingMethods.length; i++) {
2593
- const name = blockingMethods[i];
2594
- patchMethod(global, name, (delegate, symbol, name) => {
2595
- return function (s, args) {
2596
- return Zone.current.run(delegate, global, args, name);
2597
- };
2598
- });
2599
- }
2600
- });
2601
- Zone.__load_patch('EventTarget', (global, Zone, api) => {
2602
- patchEvent(global, api);
2603
- eventTargetPatch(global, api);
2604
- // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener
2605
- const XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];
2606
- if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {
2607
- api.patchEventTarget(global, api, [XMLHttpRequestEventTarget.prototype]);
2608
- }
2609
- });
2610
- Zone.__load_patch('MutationObserver', (global, Zone, api) => {
2611
- patchClass('MutationObserver');
2612
- patchClass('WebKitMutationObserver');
2613
- });
2614
- Zone.__load_patch('IntersectionObserver', (global, Zone, api) => {
2615
- patchClass('IntersectionObserver');
2616
- });
2617
- Zone.__load_patch('FileReader', (global, Zone, api) => {
2618
- patchClass('FileReader');
2619
- });
2620
- Zone.__load_patch('on_property', (global, Zone, api) => {
2621
- propertyDescriptorPatch(api, global);
2622
- });
2623
- Zone.__load_patch('customElements', (global, Zone, api) => {
2624
- patchCustomElements(global, api);
2625
- });
2626
- Zone.__load_patch('XHR', (global, Zone) => {
2627
- // Treat XMLHttpRequest as a macrotask.
2628
- patchXHR(global);
2629
- const XHR_TASK = zoneSymbol('xhrTask');
2630
- const XHR_SYNC = zoneSymbol('xhrSync');
2631
- const XHR_LISTENER = zoneSymbol('xhrListener');
2632
- const XHR_SCHEDULED = zoneSymbol('xhrScheduled');
2633
- const XHR_URL = zoneSymbol('xhrURL');
2634
- const XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol('xhrErrorBeforeScheduled');
2635
- function patchXHR(window) {
2636
- const XMLHttpRequest = window['XMLHttpRequest'];
2637
- if (!XMLHttpRequest) {
2638
- // XMLHttpRequest is not available in service worker
2639
- return;
2640
- }
2641
- const XMLHttpRequestPrototype = XMLHttpRequest.prototype;
2642
- function findPendingTask(target) {
2643
- return target[XHR_TASK];
2644
- }
2645
- let oriAddListener = XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];
2646
- let oriRemoveListener = XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];
2647
- if (!oriAddListener) {
2648
- const XMLHttpRequestEventTarget = window['XMLHttpRequestEventTarget'];
2649
- if (XMLHttpRequestEventTarget) {
2650
- const XMLHttpRequestEventTargetPrototype = XMLHttpRequestEventTarget.prototype;
2651
- oriAddListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];
2652
- oriRemoveListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];
2653
- }
2654
- }
2655
- const READY_STATE_CHANGE = 'readystatechange';
2656
- const SCHEDULED = 'scheduled';
2657
- function scheduleTask(task) {
2658
- const data = task.data;
2659
- const target = data.target;
2660
- target[XHR_SCHEDULED] = false;
2661
- target[XHR_ERROR_BEFORE_SCHEDULED] = false;
2662
- // remove existing event listener
2663
- const listener = target[XHR_LISTENER];
2664
- if (!oriAddListener) {
2665
- oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER];
2666
- oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];
2667
- }
2668
- if (listener) {
2669
- oriRemoveListener.call(target, READY_STATE_CHANGE, listener);
2670
- }
2671
- const newListener = target[XHR_LISTENER] = () => {
2672
- if (target.readyState === target.DONE) {
2673
- // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with
2674
- // readyState=4 multiple times, so we need to check task state here
2675
- if (!data.aborted && target[XHR_SCHEDULED] && task.state === SCHEDULED) {
2676
- // check whether the xhr has registered onload listener
2677
- // if that is the case, the task should invoke after all
2678
- // onload listeners finish.
2679
- // Also if the request failed without response (status = 0), the load event handler
2680
- // will not be triggered, in that case, we should also invoke the placeholder callback
2681
- // to close the XMLHttpRequest::send macroTask.
2682
- // https://github.com/angular/angular/issues/38795
2683
- const loadTasks = target[Zone.__symbol__('loadfalse')];
2684
- if (target.status !== 0 && loadTasks && loadTasks.length > 0) {
2685
- const oriInvoke = task.invoke;
2686
- task.invoke = function () {
2687
- // need to load the tasks again, because in other
2688
- // load listener, they may remove themselves
2689
- const loadTasks = target[Zone.__symbol__('loadfalse')];
2690
- for (let i = 0; i < loadTasks.length; i++) {
2691
- if (loadTasks[i] === task) {
2692
- loadTasks.splice(i, 1);
2693
- }
2694
- }
2695
- if (!data.aborted && task.state === SCHEDULED) {
2696
- oriInvoke.call(task);
2697
- }
2698
- };
2699
- loadTasks.push(task);
2700
- }
2701
- else {
2702
- task.invoke();
2703
- }
2704
- }
2705
- else if (!data.aborted && target[XHR_SCHEDULED] === false) {
2706
- // error occurs when xhr.send()
2707
- target[XHR_ERROR_BEFORE_SCHEDULED] = true;
2708
- }
2709
- }
2710
- };
2711
- oriAddListener.call(target, READY_STATE_CHANGE, newListener);
2712
- const storedTask = target[XHR_TASK];
2713
- if (!storedTask) {
2714
- target[XHR_TASK] = task;
2715
- }
2716
- sendNative.apply(target, data.args);
2717
- target[XHR_SCHEDULED] = true;
2718
- return task;
2719
- }
2720
- function placeholderCallback() { }
2721
- function clearTask(task) {
2722
- const data = task.data;
2723
- // Note - ideally, we would call data.target.removeEventListener here, but it's too late
2724
- // to prevent it from firing. So instead, we store info for the event listener.
2725
- data.aborted = true;
2726
- return abortNative.apply(data.target, data.args);
2727
- }
2728
- const openNative = patchMethod(XMLHttpRequestPrototype, 'open', () => function (self, args) {
2729
- self[XHR_SYNC] = args[2] == false;
2730
- self[XHR_URL] = args[1];
2731
- return openNative.apply(self, args);
2732
- });
2733
- const XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';
2734
- const fetchTaskAborting = zoneSymbol('fetchTaskAborting');
2735
- const fetchTaskScheduling = zoneSymbol('fetchTaskScheduling');
2736
- const sendNative = patchMethod(XMLHttpRequestPrototype, 'send', () => function (self, args) {
2737
- if (Zone.current[fetchTaskScheduling] === true) {
2738
- // a fetch is scheduling, so we are using xhr to polyfill fetch
2739
- // and because we already schedule macroTask for fetch, we should
2740
- // not schedule a macroTask for xhr again
2741
- return sendNative.apply(self, args);
2742
- }
2743
- if (self[XHR_SYNC]) {
2744
- // if the XHR is sync there is no task to schedule, just execute the code.
2745
- return sendNative.apply(self, args);
2746
- }
2747
- else {
2748
- const options = { target: self, url: self[XHR_URL], isPeriodic: false, args: args, aborted: false };
2749
- const task = scheduleMacroTaskWithCurrentZone(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);
2750
- if (self && self[XHR_ERROR_BEFORE_SCHEDULED] === true && !options.aborted &&
2751
- task.state === SCHEDULED) {
2752
- // xhr request throw error when send
2753
- // we should invoke task instead of leaving a scheduled
2754
- // pending macroTask
2755
- task.invoke();
2756
- }
2757
- }
2758
- });
2759
- const abortNative = patchMethod(XMLHttpRequestPrototype, 'abort', () => function (self, args) {
2760
- const task = findPendingTask(self);
2761
- if (task && typeof task.type == 'string') {
2762
- // If the XHR has already completed, do nothing.
2763
- // If the XHR has already been aborted, do nothing.
2764
- // Fix #569, call abort multiple times before done will cause
2765
- // macroTask task count be negative number
2766
- if (task.cancelFn == null || (task.data && task.data.aborted)) {
2767
- return;
2768
- }
2769
- task.zone.cancelTask(task);
2770
- }
2771
- else if (Zone.current[fetchTaskAborting] === true) {
2772
- // the abort is called from fetch polyfill, we need to call native abort of XHR.
2773
- return abortNative.apply(self, args);
2774
- }
2775
- // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no
2776
- // task
2777
- // to cancel. Do nothing.
2778
- });
2779
- }
2780
- });
2781
- Zone.__load_patch('geolocation', (global) => {
2782
- /// GEO_LOCATION
2783
- if (global['navigator'] && global['navigator'].geolocation) {
2784
- patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);
2785
- }
2786
- });
2787
- Zone.__load_patch('PromiseRejectionEvent', (global, Zone) => {
2788
- // handle unhandled promise rejection
2789
- function findPromiseRejectionHandler(evtName) {
2790
- return function (e) {
2791
- const eventTasks = findEventTasks(global, evtName);
2792
- eventTasks.forEach(eventTask => {
2793
- // windows has added unhandledrejection event listener
2794
- // trigger the event listener
2795
- const PromiseRejectionEvent = global['PromiseRejectionEvent'];
2796
- if (PromiseRejectionEvent) {
2797
- const evt = new PromiseRejectionEvent(evtName, { promise: e.promise, reason: e.rejection });
2798
- eventTask.invoke(evt);
2799
- }
2800
- });
2801
- };
2802
- }
2803
- if (global['PromiseRejectionEvent']) {
2804
- Zone[zoneSymbol('unhandledPromiseRejectionHandler')] =
2805
- findPromiseRejectionHandler('unhandledrejection');
2806
- Zone[zoneSymbol('rejectionHandledHandler')] =
2807
- findPromiseRejectionHandler('rejectionhandled');
2808
- }
2809
- });
2810
-
2811
-
2812
- /***/ }),
2813
-
2814
- /***/ 7435:
2815
- /*!**************************!*\
2816
- !*** ./src/polyfills.ts ***!
2817
- \**************************/
2818
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2819
-
2820
- __webpack_require__.r(__webpack_exports__);
2821
- /* harmony import */ var zone_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zone.js */ 7761);
2822
- /* harmony import */ var zone_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zone_js__WEBPACK_IMPORTED_MODULE_0__);
2823
- /**
2824
- * This file includes polyfills needed by Angular and is loaded before the app.
2825
- * You can add your own extra polyfills to this file.
2826
- *
2827
- * This file is divided into 2 sections:
2828
- * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
2829
- * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
2830
- * file.
2831
- *
2832
- * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
2833
- * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
2834
- * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
2835
- *
2836
- * Learn more in https://angular.io/guide/browser-support
2837
- */
2838
- /***************************************************************************************************
2839
- * BROWSER POLYFILLS
2840
- */
2841
- /**
2842
- * IE11 requires the following for NgClass support on SVG elements
2843
- */
2844
- // import 'classlist.js'; // Run `npm install --save classlist.js`.
2845
- /**
2846
- * Web Animations `@angular/platform-browser/animations`
2847
- * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
2848
- * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
2849
- */
2850
- // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
2851
- /**
2852
- * By default, zone.js will patch all possible macroTask and DomEvents
2853
- * user can disable parts of macroTask/DomEvents patch by setting following flags
2854
- * because those flags need to be set before `zone.js` being loaded, and webpack
2855
- * will put import in the top of bundle, so user need to create a separate file
2856
- * in this directory (for example: zone-flags.ts), and put the following flags
2857
- * into that file, and then add the following code before importing zone.js.
2858
- * import './zone-flags';
2859
- *
2860
- * The flags allowed in zone-flags.ts are listed here.
2861
- *
2862
- * The following flags will work for all browsers.
2863
- *
2864
- * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
2865
- * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
2866
- * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
2867
- *
2868
- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
2869
- * with the following flag, it will bypass `zone.js` patch for IE/Edge
2870
- *
2871
- * (window as any).__Zone_enable_cross_context_check = true;
2872
- *
2873
- */
2874
- /***************************************************************************************************
2875
- * Zone JS is required by default for Angular itself.
2876
- */
2877
- // Included with Angular CLI.
2878
- /***************************************************************************************************
2879
- * APPLICATION IMPORTS
2880
- */
2881
-
2882
-
2883
- /***/ })
2884
-
2885
- },
2886
- /******/ __webpack_require__ => { // webpackRuntimeModules
2887
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
2888
- /******/ var __webpack_exports__ = (__webpack_exec__(7435));
2889
- /******/ }
2890
- ]);
2891
- //# sourceMappingURL=polyfills.js.map