@angular-wave/angular.ts 0.0.39 → 0.0.40

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 (137) hide show
  1. package/Makefile +2 -0
  2. package/README.md +1 -1
  3. package/dist/angular-ts.esm.js +2 -2
  4. package/dist/angular-ts.umd.js +2 -1
  5. package/package.json +1 -1
  6. package/rollup.config.js +10 -5
  7. package/src/angular.spec.js +25 -26
  8. package/src/animations/animate-css-driver.js +3 -3
  9. package/src/animations/animate-queue.js +7 -7
  10. package/src/animations/animation.js +2 -2
  11. package/src/animations/shared.js +6 -6
  12. package/src/binding.spec.js +7 -7
  13. package/src/core/animate/animate.js +5 -5
  14. package/src/core/animate/animate.spec.js +31 -31
  15. package/src/core/cache/cache-factory.html +18 -0
  16. package/src/core/cache/{cache-factor.test.js → cache-factory.test.js} +1 -1
  17. package/src/core/compile/compile.js +31 -25
  18. package/src/core/compile/compile.md +2 -2
  19. package/src/core/cookie-reader.spec.js +2 -2
  20. package/src/core/core.html +22 -0
  21. package/src/core/core.test.js +12 -0
  22. package/src/core/document.spec.js +4 -4
  23. package/src/core/exception-handler.js +30 -23
  24. package/src/core/interpolate/interpolate.js +7 -0
  25. package/src/core/{cache/cache-factor.html → location/location.html} +1 -1
  26. package/src/core/location/location.js +2 -2
  27. package/src/core/location/location.spec.js +17 -17
  28. package/src/core/location/location.test.js +12 -0
  29. package/src/core/on.spec.js +3 -3
  30. package/src/core/parser/parse.html +18 -0
  31. package/src/core/parser/parse.spec.js +1 -1
  32. package/src/core/parser/parse.test.js +12 -0
  33. package/src/core/prop.spec.js +3 -4
  34. package/src/core/pubsub/pubsub.html +18 -0
  35. package/src/core/pubsub/pubsub.spec.js +1 -1
  36. package/src/core/pubsub/pubsub.test.js +12 -0
  37. package/src/core/q/q.html +18 -0
  38. package/src/core/q/q.js +33 -0
  39. package/src/core/q/q.test.js +0 -0
  40. package/src/core/root-element.spec.js +4 -4
  41. package/src/core/sanitize/sanitize-uri.spec.js +1 -1
  42. package/src/core/sanitize/sanitize-uri.test.js +12 -0
  43. package/src/core/sanitize/sanitize.html +21 -0
  44. package/src/core/sce/sce.html +18 -0
  45. package/src/core/sce/sce.spec.js +2 -1
  46. package/src/core/sce/sce.test.js +12 -0
  47. package/src/core/scope/scope.html +18 -0
  48. package/src/core/scope/scope.js +1 -1
  49. package/src/core/scope/scope.spec.js +1 -1
  50. package/src/core/scope/scope.test.js +12 -0
  51. package/src/core/task-tracker-factory.js +9 -11
  52. package/src/core/timeout/timeout.html +18 -0
  53. package/src/core/timeout/timeout.js +9 -0
  54. package/src/core/timeout/timeout.spec.js +2 -2
  55. package/src/core/timeout/timout.test.js +12 -0
  56. package/src/core/url-utils/url-utils.html +18 -0
  57. package/src/core/url-utils/url-utils.spec.js +4 -2
  58. package/src/core/url-utils/url-utils.test.js +12 -0
  59. package/src/directive/attrs/attrs.spec.js +1 -2
  60. package/src/directive/attrs/boolean.spec.js +1 -2
  61. package/src/directive/attrs/element-style.spec.js +6 -7
  62. package/src/directive/attrs/src.spec.js +1 -2
  63. package/src/directive/bind/bind.spec.js +1 -2
  64. package/src/directive/class/class.spec.js +15 -16
  65. package/src/directive/cloak/cloak.spec.js +3 -4
  66. package/src/directive/controller/controller.spec.js +4 -5
  67. package/src/directive/events/click.spec.js +1 -2
  68. package/src/directive/events/event.spec.js +1 -1
  69. package/src/directive/events/events.js +7 -0
  70. package/src/directive/form/form.spec.js +17 -17
  71. package/src/directive/if/if.spec.js +2 -2
  72. package/src/directive/include/include.js +2 -2
  73. package/src/directive/include/include.spec.js +32 -32
  74. package/src/directive/init/init.spec.js +2 -3
  75. package/src/directive/input/input.spec.js +3 -3
  76. package/src/directive/list/list.spec.js +1 -2
  77. package/src/directive/model/model.js +13 -0
  78. package/src/directive/model/model.spec.js +4 -5
  79. package/src/directive/model-options/model-options.spec.js +3 -3
  80. package/src/directive/non-bindable/non-bindable.spec.js +1 -2
  81. package/src/directive/options/options.js +5 -5
  82. package/src/directive/options/options.spec.js +13 -13
  83. package/src/directive/ref/href.spec.js +1 -2
  84. package/src/directive/repeat/repeat.spec.js +12 -12
  85. package/src/directive/script/script.spec.js +2 -3
  86. package/src/directive/select/select.js +6 -6
  87. package/src/directive/select/select.spec.js +5 -5
  88. package/src/directive/show-hide/show-hide.spec.js +12 -13
  89. package/src/directive/style/style.spec.js +3 -4
  90. package/src/directive/switch/switch.spec.js +2 -3
  91. package/src/directive/validators/validators.spec.js +1 -1
  92. package/src/exts/aria/aria.spec.js +1 -2
  93. package/src/exts/messages/messages.spec.js +5 -5
  94. package/src/filters/filter.spec.js +5 -5
  95. package/src/filters/filters.html +21 -0
  96. package/src/filters/filters.spec.js +3 -3
  97. package/src/filters/filters.test.js +12 -0
  98. package/src/filters/limit-to.md +1 -1
  99. package/src/filters/limit-to.spec.js +4 -4
  100. package/src/filters/order-by.spec.js +2 -2
  101. package/src/index.js +186 -31
  102. package/src/loader.js +49 -11
  103. package/src/public.js +2 -3
  104. package/src/router/directives/state-directives.spec.js +90 -90
  105. package/src/router/directives/view-directive.js +2 -2
  106. package/src/router/directives/view-directive.spec.js +9 -9
  107. package/src/router/state/state.spec.js +2 -4
  108. package/src/router/template-factory.spec.js +2 -2
  109. package/src/router/transition/hook-registry.js +2 -2
  110. package/src/router/view/view.spec.js +1 -1
  111. package/src/services/browser.js +56 -39
  112. package/src/services/document.js +16 -13
  113. package/src/services/log.js +39 -43
  114. package/src/services/template-request.js +9 -0
  115. package/src/shared/common.js +0 -3
  116. package/src/shared/jqlite/jqlite.js +83 -89
  117. package/src/shared/jqlite/jqlite.spec.js +218 -222
  118. package/src/shared/strings.js +2 -2
  119. package/src/shared/test-utils.js +2 -2
  120. package/src/shared/utils.js +8 -11
  121. package/types/animations/shared.d.ts +1 -1
  122. package/types/core/exception-handler.d.ts +9 -42
  123. package/types/core/interpolate/interpolate.d.ts +1 -1
  124. package/types/core/q/q.d.ts +35 -1
  125. package/types/core/task-tracker-factory.d.ts +18 -11
  126. package/types/core/timeout/timeout.d.ts +10 -1
  127. package/types/directive/model/model.d.ts +28 -4
  128. package/types/index.d.ts +664 -79
  129. package/types/services/browser.d.ts +50 -20
  130. package/types/services/document.d.ts +13 -9
  131. package/types/services/log.d.ts +37 -34
  132. package/types/services/template-request.d.ts +1 -1
  133. package/types/shared/common.d.ts +0 -1
  134. package/types/shared/jqlite/jqlite.d.ts +6 -7
  135. package/types/shared/utils.d.ts +22 -22
  136. package/types-back/index.d.ts +1 -75
  137. /package/src/core/cache/{cache-factor.spec.js → cache-factory.spec.js} +0 -0
@@ -1,36 +1,48 @@
1
- export function trimEmptyHash(url: any): any;
1
+ /**
2
+ * Removes a trailing hash ('#') from the given URL if it exists.
3
+ *
4
+ * @param {string} url
5
+ * @returns {string}
6
+ */
7
+ export function trimEmptyHash(url: string): string;
8
+ /**
9
+ * @typedef {function(string, string|null): any} UrlChangeListener
10
+ */
2
11
  /**
3
12
  * @name $browser
4
- * @requires $log
5
13
  * @description
6
14
  * This object has two goals:
7
15
  *
8
16
  * - hide all the global state in the browser caused by the window object
9
17
  * - abstract away all the browser specific features and inconsistencies
10
18
  *
19
+ *
11
20
  */
12
21
  /**
13
- * @param {object} $log window.console or an object with the same interface.
22
+ * @param {import('../core/task-tracker-factory').TaskTracker} taskTracker
14
23
  */
15
- export function Browser($log: object, $$taskTrackerFactory: any): void;
24
+ export function Browser(taskTracker: import("../core/task-tracker-factory").TaskTracker): void;
16
25
  export class Browser {
26
+ /**
27
+ * @typedef {function(string, string|null): any} UrlChangeListener
28
+ */
17
29
  /**
18
30
  * @name $browser
19
- * @requires $log
20
31
  * @description
21
32
  * This object has two goals:
22
33
  *
23
34
  * - hide all the global state in the browser caused by the window object
24
35
  * - abstract away all the browser specific features and inconsistencies
25
36
  *
37
+ *
26
38
  */
27
39
  /**
28
- * @param {object} $log window.console or an object with the same interface.
40
+ * @param {import('../core/task-tracker-factory').TaskTracker} taskTracker
29
41
  */
30
- constructor($log: object, $$taskTrackerFactory: any);
31
- $$completeOutstandingRequest: any;
32
- $$incOutstandingRequestCount: any;
33
- notifyWhenNoOutstandingRequests: any;
42
+ constructor(taskTracker: import("../core/task-tracker-factory").TaskTracker);
43
+ $$completeOutstandingRequest: (fn: any, taskType: any) => void;
44
+ $$incOutstandingRequestCount: (taskType: any) => void;
45
+ notifyWhenNoOutstandingRequests: (callback: any, taskType: any) => void;
34
46
  /**
35
47
  * @name $browser#url
36
48
  *
@@ -48,11 +60,11 @@ export class Browser {
48
60
  * NOTE: this api is intended for use only by the `$location` service. Please use the
49
61
  * {@link ng.$location $location service} to change url.
50
62
  *
51
- * @param {string} url New url (when used as setter)
63
+ * @param {string=} url New url (when used as setter)
52
64
  * @param {boolean=} replace Should new url replace current history record?
53
65
  * @param {object=} state State object to use with `pushState`/`replaceState`
54
66
  */
55
- url: (url: string, replace?: boolean | undefined, state?: object | undefined) => any;
67
+ url: (url?: string | undefined, replace?: boolean | undefined, state?: object | undefined) => string | this;
56
68
  /**
57
69
  * @name $browser#state
58
70
  *
@@ -82,10 +94,10 @@ export class Browser {
82
94
  * NOTE: this api is intended for use only by the $location service. Please use the
83
95
  * {@link ng.$location $location service} to monitor url changes in AngularJS apps.
84
96
  *
85
- * @param {function(string)} listener Listener function to be called when url changes.
86
- * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
97
+ * @param {UrlChangeListener} callback Listener function to be called when url changes.
98
+ * @return {UrlChangeListener} Returns the registered listener fn - handy if the fn is anonymous.
87
99
  */
88
- onUrlChange: (callback: any) => (arg0: string) => any;
100
+ onUrlChange: (callback: UrlChangeListener) => UrlChangeListener;
89
101
  /**
90
102
  * Remove popstate and hashchange handler from window.
91
103
  *
@@ -110,7 +122,7 @@ export class Browser {
110
122
  baseHref: () => string;
111
123
  /**
112
124
  * @name $browser#defer
113
- * @param {function()} fn A function, who's execution should be deferred.
125
+ * @param {function():any} fn A function, who's execution should be deferred.
114
126
  * @param {number=} [delay=0] Number of milliseconds to defer the function execution.
115
127
  * @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred.
116
128
  * @returns {*} DeferId that can be used to cancel the task via `$browser.cancel()`.
@@ -130,13 +142,31 @@ export class Browser {
130
142
  * @description
131
143
  * Cancels a deferred task identified with `deferId`.
132
144
  *
133
- * @param {*} deferId Token returned by the `$browser.defer` function.
145
+ * @param {number} deferId Token returned by the `$browser.defer` function.
134
146
  * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
135
147
  * canceled.
136
148
  */
137
- cancel: (deferId: any) => boolean;
149
+ cancel: (deferId: number) => boolean;
138
150
  }
139
- export function BrowserProvider(): void;
151
+ /**
152
+ * @typedef {import('../index').angular.ServiceProvider} angular.BrowserProvider
153
+ * @description
154
+ * This object has two goals:
155
+ *
156
+ * - hide all the global state in the browser caused by the window object
157
+ * - abstract away all the browser specific features and inconsistencies
158
+ *
159
+ * Remove this in the future
160
+ */
161
+ /**
162
+ * @constructor
163
+ * @this {angular.BrowserProvider}
164
+ */
165
+ export function BrowserProvider(this: import("../index").angular.ServiceProvider): void;
140
166
  export class BrowserProvider {
141
- $get: (string | (($log: any, $$taskTrackerFactory: any) => Browser))[];
167
+ $get: (string | (($$taskTrackerFactory: import("../core/task-tracker-factory").TaskTracker) => Browser))[];
168
+ }
169
+ export type UrlChangeListener = (arg0: string, arg1: string | null) => any;
170
+ export namespace angular {
171
+ type BrowserProvider = import("../index").angular.ServiceProvider;
142
172
  }
@@ -1,10 +1,7 @@
1
1
  /**
2
- * @ngdoc service
3
- * @name $document
4
- *
5
- *
2
+ * @typedef {import('../index').angular.ServiceProvider} angular.DocumentProvider
6
3
  * @description
7
- * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
4
+ * A {@link angular.element jQuery or JQLite} wrapper for the browser's `window.document` object.
8
5
  *
9
6
  * @example
10
7
  <example module="documentExample" name="document">
@@ -23,16 +20,23 @@
23
20
  </file>
24
21
  </example>
25
22
  */
26
- export function $DocumentProvider(): void;
23
+ /**
24
+ * @constructor
25
+ * @this {angular.DocumentProvider}
26
+ */
27
+ export function $DocumentProvider(this: import("../index").angular.ServiceProvider): void;
27
28
  export class $DocumentProvider {
28
- $get: (() => any)[];
29
+ $get: () => any;
29
30
  }
30
31
  /**
31
32
  * @private
32
33
  *
33
- s * Listens for document visibility change and makes the current status accessible.
34
+ * Listens for document visibility change and makes the current status accessible.
34
35
  */
35
36
  export function $$IsDocumentHiddenProvider(): void;
36
37
  export class $$IsDocumentHiddenProvider {
37
- $get: (string | (($document: any, $rootScope: any) => () => any))[];
38
+ $get: (string | (($document: import("../shared/jqlite/jqlite").JQLite, $rootScope: import("../core/scope/scope").Scope) => () => boolean))[];
39
+ }
40
+ export namespace angular {
41
+ type DocumentProvider = import("../index").angular.ServiceProvider;
38
42
  }
@@ -1,7 +1,26 @@
1
1
  /**
2
- * @ngdoc provider
2
+ * @typedef {(...args: any[]) => void} LogCall
3
+ */
4
+ /**
5
+ * @typedef {Object} angular.LogService
6
+ * @property {LogCall} debug - Log a debug messages
7
+ * @property {LogCall} error - Log a error message
8
+ * @property {LogCall} info - Log a info message
9
+ * @property {LogCall} log - Log a general message
10
+ * @property {LogCall} warn - Log a warning message
11
+ */
12
+ /**
13
+ * @type {angular.LogService}
14
+ */
15
+ export let LogService: angular.LogService;
16
+ /**
17
+ * @typedef {import('../index').ServiceProvider} angular.LogProvider
18
+ * @property {function(): boolean} debugEnabled - Function to get the current debug state.
19
+ * @property {function(boolean): angular.LogProvider} debugEnabled - Function to enable or disable debug.
20
+ */
21
+ /**
3
22
  * @name $logProvider
4
- * @type {ng.ILogProvider}
23
+ * @type {angular.LogProvider}
5
24
  *
6
25
  * @description
7
26
  * Use the `$logProvider` to configure how the application logs messages
@@ -9,7 +28,6 @@
9
28
  export class $LogProvider {
10
29
  debug: boolean;
11
30
  /**
12
- * @ngdoc method
13
31
  * @name $logProvider#debugEnabled
14
32
  * @description
15
33
  * @param {boolean=} flag enable or disable debug level messages
@@ -18,46 +36,31 @@ export class $LogProvider {
18
36
  debugEnabled(flag?: boolean | undefined): any;
19
37
  formatError(arg: any): any;
20
38
  consoleLog(type: any): (...args: any[]) => any;
21
- $get(): {
39
+ $get(): angular.LogService;
40
+ }
41
+ export type LogCall = (...args: any[]) => void;
42
+ export namespace angular {
43
+ type LogService = {
22
44
  /**
23
- * @ngdoc method
24
- * @name $log#log
25
- *
26
- * @description
27
- * Write a log message
45
+ * - Log a debug messages
28
46
  */
29
- log: (...args: any[]) => any;
47
+ debug: LogCall;
30
48
  /**
31
- * @ngdoc method
32
- * @name $log#info
33
- *
34
- * @description
35
- * Write an information message
49
+ * - Log a error message
36
50
  */
37
- info: (...args: any[]) => any;
51
+ error: LogCall;
38
52
  /**
39
- * @ngdoc method
40
- * @name $log#warn
41
- *
42
- * @description
43
- * Write a warning message
53
+ * - Log a info message
44
54
  */
45
- warn: (...args: any[]) => any;
55
+ info: LogCall;
46
56
  /**
47
- * @ngdoc method
48
- * @name $log#error
49
- *
50
- * @description
51
- * Write an error message
57
+ * - Log a general message
52
58
  */
53
- error: (...args: any[]) => any;
59
+ log: LogCall;
54
60
  /**
55
- * @ngdoc method
56
- * @name $log#debug
57
- *
58
- * @description
59
- * Write a debug message
61
+ * - Log a warning message
60
62
  */
61
- debug: (...args: any[]) => void;
63
+ warn: LogCall;
62
64
  };
65
+ type LogProvider = any;
63
66
  }
@@ -53,7 +53,7 @@ export class TemplateRequestProvider {
53
53
  *
54
54
  * @property {number} totalPendingRequests total amount of pending template requests being downloaded.
55
55
  */
56
- $get: (string | (($exceptionHandler: any, $templateCache: any, $http: any, $q: any, $sce: any) => {
56
+ $get: (string | (($exceptionHandler: import("../core/exception-handler").angular.ErrorHandler, $templateCache: any, $http: any, $q: any, $sce: any) => {
57
57
  (tpl: any, ignoreRequestError: any): any;
58
58
  totalPendingRequests: number;
59
59
  }))[];
@@ -1,4 +1,3 @@
1
- export function identity(x: any): any;
2
1
  /**
3
2
  * Builds proxy functions on the `to` object which pass through to the `from` object.
4
3
  *
@@ -16,11 +16,11 @@ export function snakeToCamel(name: string): string;
16
16
  * @returns {boolean}
17
17
  */
18
18
  export function isTextNode(html: string): boolean;
19
- export function jqLiteBuildFragment(html: any, context: any): any;
19
+ export function JQLiteBuildFragment(html: any, context: any): any;
20
20
  export function JQLite(element: any): any;
21
21
  export class JQLite {
22
22
  constructor(element: any);
23
- ready: typeof jqLiteReady;
23
+ ready: typeof JQLiteReady;
24
24
  toString(): string;
25
25
  eq(index: any): any;
26
26
  length: number;
@@ -37,9 +37,9 @@ export class JQLite {
37
37
  * @returns {void}
38
38
  */
39
39
  export function dealoc(element: Element, onlyDescendants?: boolean): void;
40
- export function jqLiteRemove(element: any, keepData: any): void;
40
+ export function JQLiteRemove(element: any, keepData: any): void;
41
41
  export function getBooleanAttrName(element: any, name: any): any;
42
- export function jqLiteCleanData(nodes: any): void;
42
+ export function JQLiteCleanData(nodes: any): void;
43
43
  /**
44
44
  * @param {string} elementStr
45
45
  * @returns {string} Returns the string representation of the element.
@@ -48,10 +48,9 @@ export function startingTag(elementStr: string): string;
48
48
  /**
49
49
  * Return the DOM siblings between the first and last node in the given array.
50
50
  * @param {Array} nodes An array-like object
51
- * @returns {Array} the inputted object or a jqLite collection containing the nodes
51
+ * @returns {Array} the inputted object or a JQLite collection containing the nodes
52
52
  */
53
53
  export function getBlockNodes(nodes: any[]): any[];
54
- export const jqLite: typeof JQLite;
55
54
  export const BOOLEAN_ATTR: {};
56
- declare function jqLiteReady(fn: any): void;
55
+ declare function JQLiteReady(fn: any): void;
57
56
  export {};
@@ -561,28 +561,6 @@ export function shallowCopy(src: any, dst: any): any;
561
561
  */
562
562
  export function assertArg(arg: any, name: any, reason: any): any;
563
563
  export function assertArgFn(arg: any, name: any, acceptArrayAnnotation: any): any;
564
- export function minErr(module: any): (...args: any[]) => Error;
565
- export function toDebugString(obj: any): any;
566
- /**
567
- * Computes a hash of an 'obj'.
568
- * Hash of a:
569
- * string is string
570
- * number is number as string
571
- * object is either result of calling $$hashKey function on the object or uniquely generated id,
572
- * that is also assigned to the $$hashKey property of the object.
573
- *
574
- * @param {*} obj
575
- * @returns {string} hash string such that the same input will have the same hash string.
576
- * The resulting string key is in 'type:hashKey' format.
577
- */
578
- export function hashKey(obj: any): string;
579
- export function mergeClasses(a: any, b: any): any;
580
- /**
581
- * Converts all accepted directives format into proper directive name.
582
- * @param name Name to normalize
583
- */
584
- export function directiveNormalize(name: any): any;
585
- export const ngAttrPrefixes: string[];
586
564
  /**
587
565
  * @description
588
566
  *
@@ -610,4 +588,26 @@ export const ngAttrPrefixes: string[];
610
588
  * @param {string} module The namespace to use for the new minErr instance.
611
589
  * @returns {function(string, string, ...*): Error} minErr instance
612
590
  */
591
+ export function minErr(module: string): (arg0: string, arg1: string, ...args: any[]) => Error;
592
+ export function toDebugString(obj: any): any;
593
+ /**
594
+ * Computes a hash of an 'obj'.
595
+ * Hash of a:
596
+ * string is string
597
+ * number is number as string
598
+ * object is either result of calling $$hashKey function on the object or uniquely generated id,
599
+ * that is also assigned to the $$hashKey property of the object.
600
+ *
601
+ * @param {*} obj
602
+ * @returns {string} hash string such that the same input will have the same hash string.
603
+ * The resulting string key is in 'type:hashKey' format.
604
+ */
605
+ export function hashKey(obj: any): string;
606
+ export function mergeClasses(a: any, b: any): any;
607
+ /**
608
+ * Converts all accepted directives format into proper directive name.
609
+ * @param name Name to normalize
610
+ */
611
+ export function directiveNormalize(name: any): any;
612
+ export const ngAttrPrefixes: string[];
613
613
  export const minErrConfig: {};
@@ -791,79 +791,6 @@ declare namespace angular {
791
791
  register(name: string | {}): IServiceProvider;
792
792
  }
793
793
 
794
- ///////////////////////////////////////////////////////////////////////////
795
- // LocaleService
796
- // see http://docs.angularjs.org/api/ng/service/$locale
797
- ///////////////////////////////////////////////////////////////////////////
798
- interface ILocaleService {
799
- id: string;
800
-
801
- // These are not documented
802
- // Check angular's i18n files for exemples
803
- NUMBER_FORMATS: ILocaleNumberFormatDescriptor;
804
- DATETIME_FORMATS: ILocaleDateTimeFormatDescriptor;
805
- pluralCat(num: any): string;
806
- }
807
-
808
- interface ILocaleNumberFormatDescriptor {
809
- DECIMAL_SEP: string;
810
- GROUP_SEP: string;
811
- PATTERNS: ILocaleNumberPatternDescriptor[];
812
- CURRENCY_SYM: string;
813
- }
814
-
815
- interface ILocaleNumberPatternDescriptor {
816
- minInt: number;
817
- minFrac: number;
818
- maxFrac: number;
819
- posPre: string;
820
- posSuf: string;
821
- negPre: string;
822
- negSuf: string;
823
- gSize: number;
824
- lgSize: number;
825
- }
826
-
827
- interface ILocaleDateTimeFormatDescriptor {
828
- MONTH: string[];
829
- SHORTMONTH: string[];
830
- DAY: string[];
831
- SHORTDAY: string[];
832
- AMPMS: string[];
833
- medium: string;
834
- short: string;
835
- fullDate: string;
836
- longDate: string;
837
- mediumDate: string;
838
- shortDate: string;
839
- mediumTime: string;
840
- shortTime: string;
841
- }
842
-
843
- ///////////////////////////////////////////////////////////////////////////
844
- // LogService
845
- // see http://docs.angularjs.org/api/ng/service/$log
846
- // see http://docs.angularjs.org/api/ng/provider/$logProvider
847
- ///////////////////////////////////////////////////////////////////////////
848
- interface ILogService {
849
- debug: ILogCall;
850
- error: ILogCall;
851
- info: ILogCall;
852
- log: ILogCall;
853
- warn: ILogCall;
854
- }
855
-
856
- interface ILogProvider extends IServiceProvider {
857
- debugEnabled(): boolean;
858
- debugEnabled(enabled: boolean): ILogProvider;
859
- }
860
-
861
- // We define this as separate interface so we can reopen it later for
862
- // the ngMock module.
863
- interface ILogCall {
864
- (...args: any[]): void;
865
- }
866
-
867
794
  ///////////////////////////////////////////////////////////////////////////
868
795
  // ParseService
869
796
  // see http://docs.angularjs.org/api/ng/service/$parse
@@ -2215,9 +2142,8 @@ declare namespace angular {
2215
2142
  get(name: "$httpParamSerializerJQLike"): IHttpParamSerializer;
2216
2143
  get(name: "$interpolate"): IInterpolateService;
2217
2144
  get(name: "$interval"): IIntervalService;
2218
- get(name: "$locale"): ILocaleService;
2219
2145
  get(name: "$location"): ILocationService;
2220
- get(name: "$log"): ILogService;
2146
+ get(name: "$log"): LogService;
2221
2147
  get(name: "$parse"): IParseService;
2222
2148
  get(name: "$q"): IQService;
2223
2149
  get(name: "$rootElement"): IRootElementService;