@angular-wave/angular.ts 0.0.66 → 0.0.67

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 (64) hide show
  1. package/dist/angular-ts.esm.js +2 -2
  2. package/dist/angular-ts.umd.js +2 -2
  3. package/package.json +1 -1
  4. package/src/animations/animate-js.js +4 -4
  5. package/src/animations/animate-swap.js +3 -0
  6. package/src/core/compile/compile.js +3 -3
  7. package/src/core/controller/controller.js +0 -5
  8. package/src/core/di/injector.js +9 -12
  9. package/src/core/di/internal-injector.js +113 -60
  10. package/src/core/parser/parse.js +1 -12
  11. package/src/core/parser/parse.spec.js +96 -110
  12. package/src/core/timeout/timeout.js +110 -111
  13. package/src/directive/input/input.js +32 -726
  14. package/src/directive/input/input.md +706 -0
  15. package/src/directive/select/select.js +48 -122
  16. package/src/directive/select/select.md +74 -0
  17. package/src/directive/show-hide/show-hide.js +13 -224
  18. package/src/directive/show-hide/show-hide.md +257 -0
  19. package/src/filters/limit-to.spec.js +1 -1
  20. package/src/filters/order-by.spec.js +1 -1
  21. package/src/index.js +6 -2
  22. package/src/loader.js +7 -3
  23. package/src/public.js +1 -7
  24. package/src/router/state/state-builder.js +2 -4
  25. package/src/router/state/state-service.js +1 -1
  26. package/src/router/state-provider.js +1 -1
  27. package/src/router/template-factory.js +10 -10
  28. package/src/router/url/url-service.js +4 -4
  29. package/src/services/anchor-scroll.js +2 -2
  30. package/src/services/browser.js +2 -9
  31. package/src/services/cache-factory.js +0 -67
  32. package/src/services/cache-factory.md +75 -0
  33. package/src/services/cookie-reader.js +36 -55
  34. package/src/services/http/http.js +62 -587
  35. package/src/services/http/http.md +413 -0
  36. package/src/services/http-backend/http-backend.js +19 -44
  37. package/src/services/template-request.js +1 -9
  38. package/src/shared/jqlite/jqlite.js +4 -69
  39. package/src/types.js +2 -4
  40. package/types/animations/animate-swap.d.ts +4 -7
  41. package/types/core/compile/compile.d.ts +6 -6
  42. package/types/core/controller/controller.d.ts +0 -5
  43. package/types/core/di/internal-injector.d.ts +73 -18
  44. package/types/core/exception-handler.d.ts +1 -1
  45. package/types/core/parser/parse.d.ts +1 -1
  46. package/types/core/timeout/timeout.d.ts +16 -26
  47. package/types/directive/input/input.d.ts +19 -124
  48. package/types/directive/select/select.d.ts +7 -74
  49. package/types/directive/show-hide/show-hide.d.ts +11 -224
  50. package/types/loader.d.ts +4 -4
  51. package/types/router/state/state-builder.d.ts +1 -2
  52. package/types/router/state/state-service.d.ts +2 -2
  53. package/types/router/state-provider.d.ts +2 -2
  54. package/types/router/template-factory.d.ts +15 -15
  55. package/types/router/url/url-service.d.ts +4 -4
  56. package/types/services/anchor-scroll.d.ts +1 -1
  57. package/types/services/browser.d.ts +0 -10
  58. package/types/services/cache-factory.d.ts +0 -67
  59. package/types/services/cookie-reader.d.ts +2 -10
  60. package/types/services/http/http.d.ts +53 -61
  61. package/types/services/http-backend/http-backend.d.ts +8 -31
  62. package/types/services/template-request.d.ts +1 -9
  63. package/types/shared/jqlite/jqlite.d.ts +9 -9
  64. package/types/types.d.ts +1 -9
@@ -1,33 +1,5 @@
1
1
  /**
2
- * @ngdoc service
3
- * @name $xhrFactory
4
- *
5
- *
6
- * @description
7
- * Factory function used to create XMLHttpRequest objects.
8
- *
9
- * Replace or decorate this service to create your own custom XMLHttpRequest objects.
10
- *
11
- * ```
12
- * angular.module('myApp', [])
13
- * .factory('$xhrFactory', function() {
14
- * return function createXhr(method, url) {
15
- * return new window.XMLHttpRequest({mozSystem: true});
16
- * };
17
- * });
18
- * ```
19
- *
20
- * @param {string} method HTTP method of the request (GET, POST, PUT, ..)
21
- * @param {string} url URL of the request.
22
- */
23
- export function $xhrFactoryProvider(): void;
24
- export class $xhrFactoryProvider {
25
- $get: () => () => XMLHttpRequest;
26
- }
27
- /**
28
- * @ngdoc service
29
- * @name $httpBackend
30
- * @requires $xhrFactory
2
+
31
3
  *
32
4
  *
33
5
  * @description
@@ -40,6 +12,11 @@ export class $xhrFactoryProvider {
40
12
  */
41
13
  export function $HttpBackendProvider(): void;
42
14
  export class $HttpBackendProvider {
43
- $get: (string | (($browser: any, $xhrFactory: any) => (method: any, url: any, post: any, callback: any, headers: any, timeout: any, withCredentials: any, responseType: any, eventHandlers: any, uploadEventHandlers: any) => void))[];
15
+ $get: (string | (($browser: import("../browser").Browser) => (method: any, url: any, post: any, callback: any, headers: any, timeout: any, withCredentials: any, responseType: any, eventHandlers: any, uploadEventHandlers: any) => void))[];
44
16
  }
45
- export function createHttpBackend($browser: any, createXhr: any, $browserDefer: any): (method: any, url: any, post: any, callback: any, headers: any, timeout: any, withCredentials: any, responseType: any, eventHandlers: any, uploadEventHandlers: any) => void;
17
+ /**
18
+ * @param {import('../browser').Browser} $browser
19
+ * @param {*} $browserDefer
20
+ * @returns
21
+ */
22
+ export function createHttpBackend($browser: import("../browser").Browser, $browserDefer: any): (method: any, url: any, post: any, callback: any, headers: any, timeout: any, withCredentials: any, responseType: any, eventHandlers: any, uploadEventHandlers: any) => void;
@@ -7,12 +7,8 @@
7
7
  export function TemplateRequestProvider(): void;
8
8
  export class TemplateRequestProvider {
9
9
  /**
10
- * @ngdoc method
11
- * @name $templateRequestProvider#httpOptions
12
- * @description
13
10
  * The options to be passed to the {@link $http} service when making the request.
14
11
  * You can use this to override options such as the "Accept" header for template requests.
15
- *
16
12
  * The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the
17
13
  * options if not overridden here.
18
14
  *
@@ -21,10 +17,6 @@ export class TemplateRequestProvider {
21
17
  */
22
18
  httpOptions: (val?: string | undefined) => string | TemplateRequestProvider;
23
19
  /**
24
- * @ngdoc service
25
- * @name $templateRequest
26
- *
27
- * @description
28
20
  * The `$templateRequest` service runs security checks then downloads the provided template using
29
21
  * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request
30
22
  * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the
@@ -41,7 +33,7 @@ export class TemplateRequestProvider {
41
33
  * 3rd party modules should use `$templateRequest` if their services or directives are loading
42
34
  * templates.
43
35
  *
44
- * @param {string|TrustedResourceUrl} tpl The HTTP request template URL
36
+ * @param {string} tpl The HTTP request template URL
45
37
  * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty
46
38
  *
47
39
  * @return {Promise} a promise for the HTTP response data of the given URL.
@@ -2,19 +2,19 @@
2
2
  * JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
3
3
  * and execution of chain functions.
4
4
  *
5
- * @param {string|Node|JQLite|ArrayLike<Element>|(() => void)} element
5
+ * @param {string|Node|JQLite|ArrayLike<Element>|(() => void)|Window} element
6
6
  * @returns {JQLite}
7
7
  */
8
- export function JQLite(element: string | Node | JQLite | ArrayLike<Element> | (() => void)): JQLite;
8
+ export function JQLite(element: string | Node | JQLite | ArrayLike<Element> | (() => void) | Window): JQLite;
9
9
  export class JQLite {
10
10
  /**
11
11
  * JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
12
12
  * and execution of chain functions.
13
13
  *
14
- * @param {string|Node|JQLite|ArrayLike<Element>|(() => void)} element
14
+ * @param {string|Node|JQLite|ArrayLike<Element>|(() => void)|Window} element
15
15
  * @returns {JQLite}
16
16
  */
17
- constructor(element: string | Node | JQLite | ArrayLike<Element> | (() => void));
17
+ constructor(element: string | Node | JQLite | ArrayLike<Element> | (() => void) | Window);
18
18
  /**
19
19
  * Remove all child nodes of the set of matched elements from the DOM and clears CACHE data, associated with the node.
20
20
  * @returns {JQLite} The current instance of JQLite.
@@ -38,9 +38,9 @@ export class JQLite {
38
38
  controller(name?: string): any;
39
39
  /**
40
40
  * Return instance of injector attached to element
41
- * @returns {import('../../types').InjectorService}
41
+ * @returns {import('../../core/di/internal-injector').InjectorService}
42
42
  */
43
- injector(): import("../../types").InjectorService;
43
+ injector(): import("../../core/di/internal-injector").InjectorService;
44
44
  /**
45
45
  * Adds an event listener to each element in the JQLite collection.
46
46
  *
@@ -104,10 +104,10 @@ export class JQLite {
104
104
  replaceWith(arg1: any): this;
105
105
  children(): JQLite;
106
106
  /**
107
- * @param {string} node
107
+ * @param {string|JQLite} node
108
108
  * @returns {JQLite}
109
109
  */
110
- append(node: string): JQLite;
110
+ append(node: string | JQLite): JQLite;
111
111
  /**
112
112
  * @param {string} node
113
113
  * @returns {JQLite}
@@ -129,7 +129,7 @@ export class JQLite {
129
129
  /**
130
130
  * TODO: REMOVE! This function being used ONLY in tests!
131
131
  */
132
- triggerHandler(event: any, extraParameters: any): void | JQLite;
132
+ triggerHandler(event: any, extraParameters: any): this;
133
133
  toString(): string;
134
134
  eq(index: any): JQLite;
135
135
  length: number;
package/types/types.d.ts CHANGED
@@ -1,9 +1,6 @@
1
1
  export type BootstrapConfig = any;
2
2
  export type Injectable<T_1> = Function | Array<string | Function>;
3
3
  export type Annotated = {
4
- /**
5
- * *
6
- */
7
4
  $inject: Array<string>;
8
5
  };
9
6
  export type AnnotatedFunction = Function & Annotated & Array<any>;
@@ -163,12 +160,7 @@ export type ServiceProviderFactory = Function;
163
160
  /**
164
161
  * Interface for a service provider.
165
162
  */
166
- export type ServiceProvider = {
167
- /**
168
- * - The $get property that represents a service instance or a factory function.
169
- */
170
- $get: any;
171
- };
163
+ export type ServiceProvider = any | Function;
172
164
  export type Module = any;
173
165
  export type FormController = {
174
166
  /**