@angular-wave/angular.ts 0.7.3 → 0.7.5

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 (237) hide show
  1. package/.prettierignore +2 -1
  2. package/@types/core/exception-handler.d.ts +2 -2
  3. package/@types/core/task-tracker-factory.d.ts +2 -2
  4. package/@types/directive/channel/channel.d.ts +2 -18
  5. package/@types/directive/http/http.d.ts +3 -0
  6. package/@types/directive/script/script.d.ts +2 -2
  7. package/@types/directive/setter/setter.d.ts +2 -2
  8. package/@types/injection-tokens.d.ts +3 -0
  9. package/@types/interface.d.ts +11 -0
  10. package/@types/loader.d.ts +3 -4
  11. package/@types/router/params/param-factory.d.ts +10 -2
  12. package/@types/router/params/param.d.ts +22 -3
  13. package/@types/router/template-factory.d.ts +2 -2
  14. package/@types/router/url/url-service.d.ts +2 -2
  15. package/@types/services/http/http.d.ts +2 -2
  16. package/@types/services/http/interface.d.ts +219 -0
  17. package/@types/services/http-backend/http-backend.d.ts +26 -19
  18. package/@types/services/log/interface.d.ts +33 -0
  19. package/@types/services/log/log.d.ts +25 -0
  20. package/@types/{core → services}/pubsub/pubsub.d.ts +6 -6
  21. package/@types/services/template-cache/interface.d.ts +4 -0
  22. package/@types/services/template-cache/template-cache.d.ts +11 -0
  23. package/@types/services/template-request.d.ts +1 -1
  24. package/@types/shared/cache.d.ts +9 -0
  25. package/@types/shared/dom.d.ts +2 -2
  26. package/Makefile +2 -2
  27. package/dist/angular-ts.esm.js +168 -165
  28. package/dist/angular-ts.umd.js +168 -165
  29. package/dist/angular-ts.umd.min.js +1 -1
  30. package/docs/assets/scss/_variables_project.scss +1 -1
  31. package/docs/assets/scss/_variables_project_after_bs.scss +5 -5
  32. package/docs/assets/scss/index.scss +2 -3
  33. package/docs/content/_index.md +1 -1
  34. package/docs/content/docs/_index.md +59 -25
  35. package/docs/content/docs/directive/_index.md +4 -0
  36. package/docs/content/docs/directive/app.md +11 -0
  37. package/docs/content/docs/directive/aria.md +0 -0
  38. package/docs/content/docs/directive/blur.md +38 -0
  39. package/docs/content/docs/directive/channel.md +37 -0
  40. package/docs/content/docs/directive/class-even.md +47 -0
  41. package/docs/content/docs/directive/class-odd.md +48 -0
  42. package/docs/content/docs/directive/class.md +64 -0
  43. package/docs/content/docs/directive/click.md +38 -0
  44. package/docs/content/docs/directive/cloak.md +74 -0
  45. package/docs/content/docs/directive/copy.md +38 -0
  46. package/docs/content/docs/directive/cut.md +40 -0
  47. package/docs/content/docs/directive/dblclick.md +38 -0
  48. package/docs/content/docs/directive/focus.md +38 -0
  49. package/docs/content/docs/directive/include.md +7 -0
  50. package/docs/content/docs/directive/keydown.md +0 -0
  51. package/docs/content/docs/directive/keyup.md +0 -0
  52. package/docs/content/docs/directive/load.md +0 -0
  53. package/docs/content/docs/directive/mousedown.md +38 -0
  54. package/docs/content/docs/directive/mouseenter.md +38 -0
  55. package/docs/content/docs/directive/mouseleave.md +38 -0
  56. package/docs/content/docs/directive/mousemove.md +38 -0
  57. package/docs/content/docs/directive/mouseout.md +38 -0
  58. package/docs/content/docs/directive/mouseover.md +38 -0
  59. package/docs/content/docs/directive/mouseup.md +38 -0
  60. package/docs/content/docs/filter/_index.md +4 -0
  61. package/docs/content/docs/provider/_index.md +4 -0
  62. package/docs/content/docs/provider/eventBusProvider.md +35 -0
  63. package/docs/content/docs/provider/logProvider.md +59 -0
  64. package/docs/content/docs/provider/templateCacheProvider.md +35 -0
  65. package/docs/content/docs/service/_index.md +4 -0
  66. package/docs/content/docs/service/eventBus.md +56 -0
  67. package/docs/content/docs/service/log.md +113 -0
  68. package/docs/content/docs/service/templateCache.md +64 -0
  69. package/docs/hugo.yaml +3 -3
  70. package/docs/layouts/404.html +1 -1
  71. package/docs/layouts/partials/hooks/head-end.html +3 -0
  72. package/docs/layouts/shortcodes/showhtml.html +2 -0
  73. package/docs/layouts/shortcodes/showjs.html +2 -0
  74. package/docs/layouts/shortcodes/showraw.html +1 -0
  75. package/docs/static/examples/counter/counter-test.html +17 -0
  76. package/docs/static/examples/counter/counter.html +5 -0
  77. package/docs/static/examples/counter/counter.test.js +28 -0
  78. package/docs/static/examples/eventbus/eventbus-test.html +19 -0
  79. package/docs/static/examples/eventbus/eventbus.html +13 -0
  80. package/docs/static/examples/eventbus/eventbus.js +15 -0
  81. package/docs/static/examples/eventbus/eventbus.test.js +19 -0
  82. package/docs/static/examples/ng-blur/ng-blur.html +9 -0
  83. package/docs/static/examples/ng-channel/ng-channel-test.html +17 -0
  84. package/docs/static/examples/ng-channel/ng-channel.html +24 -0
  85. package/docs/static/examples/ng-channel/ng-channel.test.js +31 -0
  86. package/docs/static/examples/ng-class/ng-class.html +71 -0
  87. package/docs/static/examples/ng-class-even/ng-class-even.html +8 -0
  88. package/docs/static/examples/ng-class-odd/ng-class-odd.html +8 -0
  89. package/docs/static/examples/ng-click/ng-click.html +6 -0
  90. package/docs/static/examples/ng-copy/ng-copy.html +6 -0
  91. package/docs/static/examples/ng-cut/ng-cut.html +6 -0
  92. package/docs/static/examples/ng-dblclick/ng-dblclick.html +10 -0
  93. package/docs/static/examples/ng-focus/ng-focus.html +9 -0
  94. package/docs/static/examples/ng-mousedown/ng-mousedown.html +6 -0
  95. package/docs/static/examples/ng-mouseenter/ng-mouseenter.html +4 -0
  96. package/docs/static/examples/ng-mouseleave/ng-mouseleave.html +4 -0
  97. package/docs/static/examples/ng-mousemove/ng-mousemove.html +4 -0
  98. package/docs/static/examples/ng-mouseout/ng-mouseout.html +4 -0
  99. package/docs/static/examples/ng-mouseover/ng-mouseover.html +4 -0
  100. package/docs/static/examples/ng-mouseup/ng-mouseup.html +4 -0
  101. package/docs/static/typedoc/assets/hierarchy.js +1 -1
  102. package/docs/static/typedoc/assets/navigation.js +1 -1
  103. package/docs/static/typedoc/assets/search.js +1 -1
  104. package/docs/static/typedoc/classes/LogProvider.html +6 -0
  105. package/docs/static/typedoc/classes/PubSub.html +71 -0
  106. package/docs/static/typedoc/classes/PubSubProvider.html +3 -0
  107. package/docs/static/typedoc/classes/TemplateCacheProvider.html +5 -0
  108. package/docs/static/typedoc/hierarchy.html +1 -1
  109. package/docs/static/typedoc/index.html +1 -1
  110. package/docs/static/typedoc/interfaces/ChangesObject.html +1 -1
  111. package/docs/static/typedoc/interfaces/ComponentOptions.html +1 -1
  112. package/docs/static/typedoc/interfaces/Controller.html +1 -1
  113. package/docs/static/typedoc/interfaces/Directive.html +1 -1
  114. package/docs/static/typedoc/interfaces/DirectivePrePost.html +1 -1
  115. package/docs/static/typedoc/interfaces/HttpHeadersGetter.html +1 -0
  116. package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +31 -0
  117. package/docs/static/typedoc/interfaces/HttpRequestConfigHeaders.html +6 -0
  118. package/docs/static/typedoc/interfaces/HttpRequestTransformer.html +1 -0
  119. package/docs/static/typedoc/interfaces/HttpResponse.html +8 -0
  120. package/docs/static/typedoc/interfaces/HttpResponseTransformer.html +1 -0
  121. package/docs/static/typedoc/interfaces/HttpService.html +38 -0
  122. package/docs/static/typedoc/interfaces/LogService.html +12 -0
  123. package/docs/static/typedoc/interfaces/NgModelController.html +1 -1
  124. package/docs/static/typedoc/interfaces/NgModelOptions.html +1 -1
  125. package/docs/static/typedoc/interfaces/Provider.html +1 -1
  126. package/docs/static/typedoc/interfaces/RequestConfig.html +48 -0
  127. package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +38 -0
  128. package/docs/static/typedoc/interfaces/ServiceProvider.html +1 -1
  129. package/docs/static/typedoc/interfaces/TranscludeFunctionObject.html +1 -1
  130. package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
  131. package/docs/static/typedoc/types/CloneAttachFunction.html +1 -1
  132. package/docs/static/typedoc/types/ControllerConstructor.html +1 -1
  133. package/docs/static/typedoc/types/DirectiveCompileFn.html +1 -1
  134. package/docs/static/typedoc/types/DirectiveController.html +1 -1
  135. package/docs/static/typedoc/types/DirectiveFactory.html +1 -1
  136. package/docs/static/typedoc/types/DirectiveLinkFn.html +1 -1
  137. package/docs/static/typedoc/types/ExpandoStore.html +2 -0
  138. package/docs/static/typedoc/types/Expression.html +1 -1
  139. package/docs/static/typedoc/types/FilterFactory.html +1 -1
  140. package/docs/static/typedoc/types/FilterFn.html +1 -1
  141. package/docs/static/typedoc/types/HttpPromise.html +1 -0
  142. package/docs/static/typedoc/types/Injectable.html +1 -1
  143. package/docs/static/typedoc/types/InjectableFactory.html +1 -1
  144. package/docs/static/typedoc/types/LogCall.html +2 -0
  145. package/docs/static/typedoc/types/LogServiceFactory.html +2 -0
  146. package/docs/static/typedoc/types/OnChangesObject.html +1 -1
  147. package/docs/static/typedoc/types/SwapInsertPosition.html +1 -1
  148. package/docs/static/typedoc/types/TController.html +1 -1
  149. package/docs/static/typedoc/types/TemplateCache.html +2 -0
  150. package/docs/static/typedoc/variables/EventBus.html +1 -0
  151. package/index.html +4 -2
  152. package/package.json +3 -3
  153. package/src/animations/animate-css.js +5 -1
  154. package/src/binding.spec.js +3 -1
  155. package/src/core/compile/compile.spec.js +12 -5
  156. package/src/core/core.html +0 -1
  157. package/src/core/exception-handler.js +1 -1
  158. package/src/core/prop.spec.js +1 -0
  159. package/src/core/task-tracker-factory.js +2 -2
  160. package/src/directive/bind/bind.spec.js +1 -4
  161. package/src/directive/channel/channel.js +8 -24
  162. package/src/directive/channel/channel.spec.js +4 -2
  163. package/src/directive/class/class.js +16 -0
  164. package/src/directive/class/class.spec.js +2 -0
  165. package/src/directive/events/event.spec.js +1 -0
  166. package/src/directive/events/events.js +21 -24
  167. package/src/directive/form/form.spec.js +2 -0
  168. package/src/directive/http/http.js +4 -4
  169. package/src/directive/if/if.spec.js +2 -0
  170. package/src/directive/include/include.spec.js +1 -0
  171. package/src/directive/input/input.spec.js +1 -0
  172. package/src/directive/model/model.spec.js +3 -0
  173. package/src/directive/model-options/model-options.spec.js +2 -0
  174. package/src/directive/observe/{test.html → observe-demo.html} +0 -1
  175. package/src/directive/observe/observe.spec.js +2 -1
  176. package/src/{core/pubsub/pubsub.html → directive/on/on.html} +1 -1
  177. package/src/{core → directive/on}/on.spec.js +5 -3
  178. package/src/directive/on/on.test.js +11 -0
  179. package/src/directive/options/options.spec.js +1 -0
  180. package/src/directive/script/script.js +1 -1
  181. package/src/directive/select/select.spec.js +1 -0
  182. package/src/directive/setter/setter.js +1 -1
  183. package/src/directive/setter/setter.spec.js +2 -0
  184. package/src/directive/switch/switch.spec.js +1 -0
  185. package/src/injection-tokens.js +3 -0
  186. package/src/interface.ts +10 -0
  187. package/src/loader.js +3 -6
  188. package/src/public.js +3 -3
  189. package/src/router/directives/state-directives.spec.js +3 -1
  190. package/src/router/params/param-factory.js +6 -0
  191. package/src/router/params/param.js +22 -7
  192. package/src/router/router.html +0 -1
  193. package/src/router/router.test.js +2 -1
  194. package/src/router/services.spec.js +2 -0
  195. package/src/router/state/state-builder.js +3 -0
  196. package/src/router/state/state-builder.spec.js +2 -0
  197. package/src/router/state/state-service.js +1 -1
  198. package/src/router/state-filter.spec.js +2 -0
  199. package/src/router/template-factory.html +19 -0
  200. package/src/router/template-factory.js +3 -3
  201. package/src/router/template-factory.spec.js +1 -0
  202. package/src/router/template-factory.test.js +12 -0
  203. package/src/router/transition/transition-hook.js +1 -1
  204. package/src/router/url/url-service.js +1 -1
  205. package/src/router/view-scroll.spec.js +3 -1
  206. package/src/services/http/http.js +4 -4
  207. package/src/services/http/http.test.js +1 -1
  208. package/src/services/http/interface.ts +243 -0
  209. package/src/services/http-backend/http-backend.js +21 -11
  210. package/src/services/log/interface.ts +39 -0
  211. package/src/services/log/log.html +19 -0
  212. package/src/services/log/log.js +74 -0
  213. package/src/services/log/log.spec.js +64 -0
  214. package/src/services/log/log.test.js +11 -0
  215. package/src/services/pubsub/pubsub.html +19 -0
  216. package/src/{core → services}/pubsub/pubsub.js +6 -5
  217. package/src/{core → services}/pubsub/pubsub.spec.js +3 -3
  218. package/src/{core → services}/pubsub/pubsub.test.js +1 -1
  219. package/src/services/template-cache/interface.ts +4 -0
  220. package/src/services/template-cache/template-cache.html +22 -0
  221. package/src/services/template-cache/template-cache.js +13 -0
  222. package/src/services/template-cache/template-cache.spec.js +62 -0
  223. package/src/services/template-cache/template-cache.test.js +11 -0
  224. package/src/services/template-request.js +2 -2
  225. package/src/shared/cache.js +9 -0
  226. package/src/shared/dom.js +13 -7
  227. package/utils/express.js +7 -9
  228. package/@types/core/cache/cache-factory.d.ts +0 -22
  229. package/@types/core/cache/cache.d.ts +0 -28
  230. package/@types/services/log.d.ts +0 -53
  231. package/src/core/cache/cache-factory.js +0 -19
  232. package/src/core/cache/cache.js +0 -27
  233. package/src/directive/class/class.md +0 -90
  234. package/src/directive/cloak/cloak.md +0 -24
  235. package/src/examples/counter.html +0 -20
  236. package/src/services/log.js +0 -95
  237. package/src/services/log.md +0 -39
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Expando cache for adding properties to DOM nodes with JavaScript.
3
+ * This used to be an Object in JQLite decorator, but swapped out for a Map
4
+ * for performance reasons and convenience methods. A proxy is available for
5
+ * additional logic handling.
6
+ *
7
+ * @type {Map<number, import('../interface.ts').ExpandoStore>}
8
+ */
9
+ export const Cache: Map<number, import("../interface.ts").ExpandoStore>;
@@ -25,12 +25,12 @@ export function removeElementData(element: Element, name?: string): void;
25
25
  *
26
26
  * @param {Element} element
27
27
  * @param {boolean} [createIfNecessary=false]
28
- * @returns {import("../core/cache/cache.js").ExpandoStore}
28
+ * @returns {import("../interface.ts").ExpandoStore}
29
29
  */
30
30
  export function getExpando(
31
31
  element: Element,
32
32
  createIfNecessary?: boolean,
33
- ): import("../core/cache/cache.js").ExpandoStore;
33
+ ): import("../interface.ts").ExpandoStore;
34
34
  /**
35
35
  * Checks if the string contains HTML tags or entities.
36
36
  * @param {string} html
package/Makefile CHANGED
@@ -31,7 +31,7 @@ types:
31
31
 
32
32
 
33
33
  TYPEDOC_DIR = docs/static/typedoc
34
- jsdoc:
34
+ typedoc: types pretty
35
35
  @rm -rf $(TYPEDOC_DIR)
36
36
  @npm run generate-docs
37
37
  @npx prettier ./typedoc --write
@@ -40,7 +40,7 @@ jsdoc:
40
40
  serve:
41
41
  @npm run serve
42
42
 
43
- prepare-release: test check types jsdoc pretty build
43
+ prepare-release: test check types typedoc pretty build
44
44
 
45
45
  PLAYWRIGHT_TEST := npx playwright test
46
46