@angular-wave/angular.ts 0.0.66 → 0.0.68

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 (85) 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/interval/interval-factory.js +8 -1
  11. package/src/core/interval/interval.js +30 -16
  12. package/src/core/location/location.js +473 -626
  13. package/src/core/location/location.md +114 -0
  14. package/src/core/location/location.spec.js +1 -76
  15. package/src/core/parser/parse.js +1 -12
  16. package/src/core/parser/parse.spec.js +96 -110
  17. package/src/core/q/q.js +63 -65
  18. package/src/core/sce/sce.js +1 -3
  19. package/src/core/scope/scope.js +2 -5
  20. package/src/core/timeout/timeout.js +110 -111
  21. package/src/core/url-utils/url-utils.js +5 -0
  22. package/src/directive/input/input.js +32 -726
  23. package/src/directive/input/input.md +706 -0
  24. package/src/directive/options/options.js +2 -156
  25. package/src/directive/options/options.md +179 -0
  26. package/src/directive/select/select.js +55 -126
  27. package/src/directive/select/select.md +74 -0
  28. package/src/directive/show-hide/show-hide.js +13 -224
  29. package/src/directive/show-hide/show-hide.md +257 -0
  30. package/src/exts/messages/messages.js +2 -0
  31. package/src/filters/limit-to.spec.js +1 -1
  32. package/src/filters/order-by.spec.js +1 -1
  33. package/src/index.js +6 -2
  34. package/src/loader.js +7 -3
  35. package/src/public.js +1 -7
  36. package/src/router/params/param.js +54 -54
  37. package/src/router/path/path-utils.js +1 -0
  38. package/src/router/state/state-builder.js +2 -4
  39. package/src/router/state/state-service.js +1 -1
  40. package/src/router/state-provider.js +1 -1
  41. package/src/router/template-factory.js +10 -10
  42. package/src/router/url/url-service.js +11 -4
  43. package/src/services/anchor-scroll.js +3 -5
  44. package/src/services/browser.js +2 -9
  45. package/src/services/cache-factory.js +0 -67
  46. package/src/services/cache-factory.md +75 -0
  47. package/src/services/cookie-reader.js +36 -55
  48. package/src/services/http/http.js +62 -587
  49. package/src/services/http/http.md +413 -0
  50. package/src/services/http-backend/http-backend.js +19 -44
  51. package/src/services/template-request.js +1 -9
  52. package/src/shared/jqlite/jqlite.js +5 -70
  53. package/src/types.js +2 -4
  54. package/types/animations/animate-swap.d.ts +4 -7
  55. package/types/core/compile/compile.d.ts +6 -6
  56. package/types/core/controller/controller.d.ts +0 -5
  57. package/types/core/di/internal-injector.d.ts +73 -18
  58. package/types/core/exception-handler.d.ts +1 -1
  59. package/types/core/interval/interval-factory.d.ts +1 -1
  60. package/types/core/interval/interval.d.ts +4 -0
  61. package/types/core/location/location.d.ts +235 -166
  62. package/types/core/parser/parse.d.ts +1 -1
  63. package/types/core/q/q.d.ts +61 -40
  64. package/types/core/scope/scope.d.ts +5 -8
  65. package/types/core/timeout/timeout.d.ts +16 -26
  66. package/types/core/url-utils/url-utils.d.ts +4 -0
  67. package/types/directive/input/input.d.ts +19 -124
  68. package/types/directive/select/select.d.ts +7 -74
  69. package/types/directive/show-hide/show-hide.d.ts +11 -224
  70. package/types/loader.d.ts +4 -4
  71. package/types/router/params/param.d.ts +11 -0
  72. package/types/router/state/state-builder.d.ts +1 -2
  73. package/types/router/state/state-service.d.ts +2 -2
  74. package/types/router/state-provider.d.ts +2 -2
  75. package/types/router/template-factory.d.ts +15 -15
  76. package/types/router/url/url-service.d.ts +12 -12
  77. package/types/services/anchor-scroll.d.ts +1 -1
  78. package/types/services/browser.d.ts +0 -10
  79. package/types/services/cache-factory.d.ts +0 -67
  80. package/types/services/cookie-reader.d.ts +2 -10
  81. package/types/services/http/http.d.ts +53 -61
  82. package/types/services/http-backend/http-backend.d.ts +8 -31
  83. package/types/services/template-request.d.ts +1 -9
  84. package/types/shared/jqlite/jqlite.d.ts +11 -11
  85. package/types/types.d.ts +1 -9
@@ -9,7 +9,7 @@
9
9
  * @property {function(any, any): any} assign - Assigns a value to a context. If value is not provided,
10
10
  */
11
11
  /**
12
- * @typedef {function} CompiledExpressionFunction
12
+ * @typedef {Function} CompiledExpressionFunction
13
13
  * @param {import('../scope/scope').Scope} context - An object against which any expressions embedded in the strings are evaluated against (typically a scope object).
14
14
  * @param {object} [locals] - local variables context object, useful for overriding values in `context`.
15
15
  * @param {any} [assign]
@@ -1,13 +1,32 @@
1
1
  /**
2
- * @ngdoc provider
3
- * @name $qProvider
4
- *
5
- *
6
- * @description
2
+ * @template T
3
+ * @typedef {Object} QPromise
4
+ * @property {function(
5
+ * ((value: T) => (PromiseLike<never>|PromiseLike<T>|T))|null,
6
+ * ((reason: any) => (PromiseLike<never>|PromiseLike<T>|T))|null,
7
+ * ((state: any) => any)
8
+ * ): QPromise<T|never>} then - Calls one of the success or error callbacks asynchronously as soon as the result is available.
9
+ * @property {function(
10
+ * ((value: T) => (QPromise<never>|QPromise<T>|T))|null,
11
+ * ((reason: any) => (QPromise<never>|QPromise<never>|never))|null,
12
+ * ((state: any) => any)
13
+ * ): QPromise<T|never>} then - Calls one of the success or error callbacks asynchronously as soon as the result is available.
14
+ * @property {function(((reason: any) => (PromiseLike<never>|PromiseLike<T>|T))|null): QPromise<T>|T} catch - Shorthand for promise.then(null, errorCallback).
15
+ * @property {function(((reason: any) => (QPromise<never>|QPromise<T>|T))|null): QPromise<T>|T} catch - Shorthand for promise.then(null, errorCallback).
16
+ * @property {function(function(): void): QPromise<T>} finally - Allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value.
17
+ * @property {number} [$$intervalId] - Internal id set by the $interval service for callback notifications
18
+ */
19
+ /**
20
+ *@template T
21
+ * @typedef {Object} Deferred
22
+ * @property {function(T|QPromise<T>): void} resolve - Resolves the promise with a value or another promise.
23
+ * @property {function(any): void} reject - Rejects the promise with a reason.
24
+ * @property {function(any): void} notify - Provides a progress notification.
25
+ * @property {QPromise<T>} promise - The promise associated with this deferred object.
7
26
  */
8
27
  export function $QProvider(): void;
9
28
  export class $QProvider {
10
- $get: (string | (($rootScope: any, $exceptionHandler: import("../exception-handler").ErrorHandler) => any))[];
29
+ $get: (string | (($rootScope: import("../scope/scope").Scope, $exceptionHandler: import("../exception-handler").ErrorHandler) => any))[];
11
30
  /**
12
31
  * @ngdoc method
13
32
  * @name $qProvider#errorOnUnhandledRejections
@@ -29,37 +48,39 @@ export class $$QProvider {
29
48
  errorOnUnhandledRejections: (value: any) => boolean | this;
30
49
  }
31
50
  export function markQExceptionHandled(q: any): void;
32
- export namespace angular {
33
- type QPromise<T> = {
34
- /**
35
- * - Calls one of the success or error callbacks asynchronously as soon as the result is available.
36
- */
37
- then: (arg0: ((value: T) => (PromiseLike<never> | PromiseLike<T> | T)) | null, arg1: ((reason: any) => (PromiseLike<never> | PromiseLike<T> | T)) | null, arg2: ((state: any) => any)) => angular.QPromise<T | never>;
38
- /**
39
- * - Shorthand for promise.then(null, errorCallback).
40
- */
41
- catch: (arg0: ((reason: any) => (PromiseLike<never> | PromiseLike<T> | T)) | null) => angular.QPromise<T> | T;
42
- /**
43
- * - Allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value.
44
- */
45
- finally: (arg0: () => void) => angular.QPromise<T>;
46
- };
47
- type Deferred<T> = {
48
- /**
49
- * - Resolves the promise with a value or another promise.
50
- */
51
- resolve: (arg0: T | angular.QPromise<T>) => void;
52
- /**
53
- * - Rejects the promise with a reason.
54
- */
55
- reject: (arg0: any) => void;
56
- /**
57
- * - Provides a progress notification.
58
- */
59
- notify: (arg0: any) => void;
60
- /**
61
- * - The promise associated with this deferred object.
62
- */
63
- promise: angular.QPromise<T>;
64
- };
65
- }
51
+ export type QPromise<T> = {
52
+ /**
53
+ * - Calls one of the success or error callbacks asynchronously as soon as the result is available.
54
+ */
55
+ then: (arg0: ((value: T) => (PromiseLike<never> | PromiseLike<T> | T)) | null, arg1: ((reason: any) => (PromiseLike<never> | PromiseLike<T> | T)) | null, arg2: ((state: any) => any)) => QPromise<T | never>;
56
+ /**
57
+ * - Shorthand for promise.then(null, errorCallback).
58
+ */
59
+ catch: (arg0: ((reason: any) => (PromiseLike<never> | PromiseLike<T> | T)) | null) => QPromise<T> | T;
60
+ /**
61
+ * - Allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value.
62
+ */
63
+ finally: (arg0: () => void) => QPromise<T>;
64
+ /**
65
+ * - Internal id set by the $interval service for callback notifications
66
+ */
67
+ $$intervalId?: number;
68
+ };
69
+ export type Deferred<T> = {
70
+ /**
71
+ * - Resolves the promise with a value or another promise.
72
+ */
73
+ resolve: (arg0: T | QPromise<T>) => void;
74
+ /**
75
+ * - Rejects the promise with a reason.
76
+ */
77
+ reject: (arg0: any) => void;
78
+ /**
79
+ * - Provides a progress notification.
80
+ */
81
+ notify: (arg0: any) => void;
82
+ /**
83
+ * - The promise associated with this deferred object.
84
+ */
85
+ promise: QPromise<T>;
86
+ };
@@ -284,12 +284,12 @@ export class Scope {
284
284
  *
285
285
  * - `string`: Evaluated as {@link guide/expression expression}
286
286
  * - `function(scope)`: called with current `scope` as a parameter.
287
- * @param {WatchListener} listener
287
+ * @param {WatchListener} [listener]
288
288
  * @param {boolean=} [objectEquality=false] Compare for object equality using {@link angular.equals} instead of
289
289
  * comparing for reference equality.
290
290
  * @returns {function()} Returns a deregistration function for this listener.
291
291
  */
292
- $watch(watchExp: string | ((scope: Scope) => any), listener: WatchListener, objectEquality?: boolean | undefined): () => any;
292
+ $watch(watchExp: string | ((scope: Scope) => any), listener?: WatchListener, objectEquality?: boolean | undefined): () => any;
293
293
  /**
294
294
  * @ngdoc method
295
295
  * @name $rootScope.Scope#$watchGroup
@@ -591,14 +591,14 @@ export class Scope {
591
591
  * will be scheduled. However, it is encouraged to always call code that changes the model
592
592
  * from within an `$apply` call. That includes code evaluated via `$evalAsync`.
593
593
  *
594
- * @param {(string|function())=} expr An AngularTS expression to be executed.
594
+ * @param {(string|function(any):any)=} expr An AngularTS expression to be executed.
595
595
  *
596
596
  * - `string`: execute using the rules as defined in {@link guide/expression expression}.
597
597
  * - `function(scope)`: execute the function with the current `scope` parameter.
598
598
  *
599
599
  * @param {(object)=} locals Local variables object, useful for overriding values in scope.
600
600
  */
601
- $evalAsync(expr?: (string | (() => any)) | undefined, locals?: (object) | undefined): any;
601
+ $evalAsync(expr?: (string | ((arg0: any) => any)) | undefined, locals?: (object) | undefined): any;
602
602
  /**
603
603
  * @ngdoc method
604
604
  * @name $rootScope.Scope#$applyAsync
@@ -670,10 +670,7 @@ export class Scope {
670
670
  * @returns {*} The result of evaluating the expression.
671
671
  */
672
672
  $eval(expr?: string | ((arg0: Scope) => any), locals?: (object) | undefined): any;
673
- /**
674
- * @private
675
- */
676
- private $$postDigest;
673
+ $$postDigest(fn: any): void;
677
674
  /**
678
675
  * @private
679
676
  */
@@ -1,29 +1,19 @@
1
- /**
2
- *
3
- * @param {*} $rootScope
4
- * @param {*} $browser
5
- * @param {*} $q
6
- * @param {*} $$q
7
- * @param {import('../exception-handler').ErrorHandler} $exceptionHandler
8
- * @returns
9
- */
10
- export function $timeout($rootScope: any, $browser: any, $q: any, $$q: any, $exceptionHandler: import("../exception-handler").ErrorHandler): {
11
- (fn?: (() => any) | undefined, delay?: number | undefined, invokeApply?: boolean | undefined, ...args: any[]): Promise<any>;
12
- /**
13
- * @ngdoc method
14
- * @name $timeout#cancel
15
- *
16
- * @description
17
- * Cancels a task associated with the `promise`. As a result of this, the promise will be
18
- * resolved with a rejection.
19
- *
20
- * @param {Promise=} promise Promise returned by the `$timeout` function.
21
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
22
- * canceled.
23
- */
24
- cancel(promise?: Promise<any> | undefined): boolean;
25
- };
26
1
  export function $TimeoutProvider(): void;
27
2
  export class $TimeoutProvider {
28
- $get: (string | typeof $timeout)[];
3
+ $get: (string | (($rootScope: import("../scope/scope").Scope, $browser: import("../../services/browser").Browser, $q: any, $$q: any, $exceptionHandler: import("../exception-handler").ErrorHandler) => {
4
+ (fn?: (() => any) | undefined, delay?: number | undefined, invokeApply?: boolean | undefined, ...args: any[]): Promise<any>;
5
+ /**
6
+ * @ngdoc method
7
+ * @name $timeout#cancel
8
+ *
9
+ * @description
10
+ * Cancels a task associated with the `promise`. As a result of this, the promise will be
11
+ * resolved with a rejection.
12
+ *
13
+ * @param {Promise=} promise Promise returned by the `$timeout` function.
14
+ * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
15
+ * canceled.
16
+ */
17
+ cancel(promise?: Promise<any> | undefined): boolean;
18
+ }))[];
29
19
  }
@@ -91,3 +91,7 @@ export function urlsAreSameOrigin(url1: string | any, url2: string | object): bo
91
91
  * @returns {string}
92
92
  */
93
93
  export function getBaseUrl(): string;
94
+ /**
95
+ * HTTP protocol
96
+ */
97
+ export type HttpProtocol = "http" | "https";
@@ -8,136 +8,31 @@ export function countDecimals(num: any): number;
8
8
  export function isValidForStep(viewValue: any, stepBase: any, step: any): boolean;
9
9
  export function numberInputType(scope: any, element: any, attr: any, ctrl: any, $browser: any, $filter: any, $parse: any): void;
10
10
  export function rangeInputType(scope: any, element: any, attr: any, ctrl: any, $browser: any): void;
11
- export function hiddenInputBrowserCacheDirective(): {
11
+ /**
12
+ * @param {import('../../services/browser').Browser} $browser
13
+ * @param {*} $filter
14
+ * @param {*} $parse
15
+ * @returns
16
+ */
17
+ export function inputDirective($browser: import("../../services/browser").Browser, $filter: any, $parse: any): {
12
18
  restrict: string;
13
- priority: number;
14
- compile(_: any, attr: any): {
15
- pre(scope: any, element: any): void;
19
+ require: string[];
20
+ link: {
21
+ pre(scope: any, element: any, attr: any, ctrls: any): void;
16
22
  };
17
23
  };
24
+ export namespace inputDirective {
25
+ let $inject: string[];
26
+ }
18
27
  /**
19
- * @ngdoc directive
20
- * @name ngValue
21
- * @restrict A
22
- * @priority 100
23
- *
24
- * @description
25
- * Binds the given expression to the value of the element.
26
- *
27
- * It is mainly used on {@link input[radio] `input[radio]`} and option elements,
28
- * so that when the element is selected, the {@link ngModel `ngModel`} of that element (or its
29
- * {@link select `select`} parent element) is set to the bound value. It is especially useful
30
- * for dynamically generated lists using {@link ngRepeat `ngRepeat`}, as shown below.
31
- *
32
- * It can also be used to achieve one-way binding of a given expression to an input element
33
- * such as an `input[text]` or a `textarea`, when that element does not use ngModel.
34
- *
35
- * @element ANY
36
- * @param {string=} ngValue AngularJS expression, whose value will be bound to the `value` attribute
37
- * and `value` property of the element.
38
- *
28
+ * @returns {import('../../types').Directive}
39
29
  */
40
- export function ngValueDirective(): {
41
- restrict: string;
42
- priority: number;
43
- compile(tpl: any, tplAttr: any): (scope: any, elm: any, attr: any) => void;
44
- };
30
+ export function hiddenInputBrowserCacheDirective(): import("../../types").Directive;
31
+ /**
32
+ * @returns {import('../../types').Directive}
33
+ */
34
+ export function ngValueDirective(): import("../../types").Directive;
45
35
  export const ISO_DATE_REGEXP: RegExp;
46
36
  export const URL_REGEXP: RegExp;
47
37
  export const EMAIL_REGEXP: RegExp;
48
38
  export const VALIDITY_STATE_PROPERTY: "validity";
49
- /**
50
- * @ngdoc directive
51
- * @name textarea
52
- * @restrict E
53
- *
54
- * @description
55
- * HTML textarea element control with AngularJS data-binding. The data-binding and validation
56
- * properties of this element are exactly the same as those of the
57
- * {@link ng.directive:input input element}.
58
- *
59
- * @param {string} ngModel Assignable AngularJS expression to data-bind to.
60
- * @param {string=} name Property name of the form under which the control is published.
61
- * @param {string=} required Sets `required` validation error key if the value is not entered.
62
- * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
63
- * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
64
- * `required` when you want to data-bind to the `required` attribute.
65
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
66
- * minlength.
67
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
68
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
69
- * length.
70
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
71
- * does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
72
- * If the expression evaluates to a RegExp object, then this is used directly.
73
- * If the expression evaluates to a string, then it will be converted to a RegExp
74
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
75
- * `new RegExp('^abc$')`.<br />
76
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
77
- * start at the index of the last search's match, thus not taking the whole input value into
78
- * account.
79
- * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
80
- * interaction with the input element.
81
- * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input.
82
- *
83
- * @knownIssue
84
- *
85
- * When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
86
- * insert the placeholder value as the textarea's content. If the placeholder value contains
87
- * interpolation (`{{ ... }}`), an error will be logged in the console when AngularJS tries to update
88
- * the value of the by-then-removed text node. This doesn't affect the functionality of the
89
- * textarea, but can be undesirable.
90
- *
91
- * You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
92
- * `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
93
- * find more details on `ngAttr` in the
94
- * [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
95
- * Developer Guide.
96
- */
97
- /**
98
- * @ngdoc directive
99
- * @name input
100
- * @restrict E
101
- *
102
- * @description
103
- * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,
104
- * input state control, and validation.
105
- * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.
106
- *
107
- * <div class="alert alert-warning">
108
- * **Note:** Not every feature offered is available for all input types.
109
- * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.
110
- * </div>
111
- *
112
- * @param {string} ngModel Assignable AngularJS expression to data-bind to.
113
- * @param {string=} name Property name of the form under which the control is published.
114
- * @param {string=} required Sets `required` validation error key if the value is not entered.
115
- * @param {boolean=} ngRequired Sets `required` attribute if set to true
116
- * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
117
- * minlength.
118
- * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
119
- * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
120
- * length.
121
- * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
122
- * value does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
123
- * If the expression evaluates to a RegExp object, then this is used directly.
124
- * If the expression evaluates to a string, then it will be converted to a RegExp
125
- * after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
126
- * `new RegExp('^abc$')`.<br />
127
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
128
- * start at the index of the last search's match, thus not taking the whole input value into
129
- * account.
130
- * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
131
- * interaction with the input element.
132
- * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input.
133
- * This parameter is ignored for input[type=password] controls, which will never trim the
134
- * input.
135
- *
136
- */
137
- export const inputDirective: (string | (($browser: any, $filter: any, $parse: any) => {
138
- restrict: string;
139
- require: string[];
140
- link: {
141
- pre(scope: any, element: any, attr: any, ctrls: any): void;
142
- };
143
- }))[];
@@ -1,79 +1,12 @@
1
- export function selectDirective(): {
2
- restrict: string;
3
- require: string[];
4
- controller: typeof SelectController;
5
- priority: number;
6
- link: {
7
- pre: (scope: any, element: any, attr: any, ctrls: any) => void;
8
- post: (scope: any, element: any, attrs: any, ctrls: any) => void;
9
- };
10
- };
11
- export const optionDirective: (string | (($interpolate: any) => {
1
+ /**
2
+ * @returns {import('../../types').Directive}
3
+ */
4
+ export function selectDirective(): import("../../types").Directive;
5
+ export function optionDirective($interpolate: any): {
12
6
  restrict: string;
13
7
  priority: number;
14
8
  compile(element: any, attr: any): (scope: any, element: any, attr: any) => void;
15
- }))[];
16
- declare function SelectController($element: any, $scope: any): void;
17
- declare class SelectController {
18
- constructor($element: any, $scope: any);
19
- selectValueMap: {};
20
- ngModelCtrl: {
21
- $setViewValue: () => void;
22
- $render: () => void;
23
- };
24
- multiple: boolean;
25
- unknownOption: JQLite;
26
- hasEmptyOption: boolean;
27
- emptyOption: any;
28
- renderUnknownOption: (val: any) => void;
29
- updateUnknownOption: (val: any) => void;
30
- generateUnknownOptionValue: (val: any) => string;
31
- removeUnknownOption: () => void;
32
- selectEmptyOption: () => void;
33
- unselectEmptyOption: () => void;
34
- readValue: () => any;
35
- writeValue: (value: any) => void;
36
- addOption: (value: any, element: any) => void;
37
- removeOption: (value: any) => void;
38
- hasOption: (value: any) => boolean;
39
- /**
40
- * @ngdoc method
41
- * @name select.SelectController#$hasEmptyOption
42
- *
43
- * @description
44
- *
45
- * Returns `true` if the select element currently has an empty option
46
- * element, i.e. an option that signifies that the select is empty / the selection is null.
47
- *
48
- */
49
- $hasEmptyOption: () => boolean;
50
- /**
51
- * @ngdoc method
52
- * @name select.SelectController#$isUnknownOptionSelected
53
- *
54
- * @description
55
- *
56
- * Returns `true` if the select element's unknown option is selected. The unknown option is added
57
- * and automatically selected whenever the select model doesn't match any option.
58
- *
59
- */
60
- $isUnknownOptionSelected: () => boolean;
61
- /**
62
- * @ngdoc method
63
- * @name select.SelectController#$isEmptyOptionSelected
64
- *
65
- * @description
66
- *
67
- * Returns `true` if the select element has an empty option and this empty option is currently
68
- * selected. Returns `false` if the select element has no empty option or it is not selected.
69
- *
70
- */
71
- $isEmptyOptionSelected: () => boolean;
72
- selectUnknownOrEmptyOption: (value: any) => void;
73
- registerOption: (optionScope: any, optionElement: any, optionAttrs: any, interpolateValueFn: any, interpolateTextFn: any) => void;
74
- }
75
- declare namespace SelectController {
9
+ };
10
+ export namespace optionDirective {
76
11
  let $inject: string[];
77
12
  }
78
- import { JQLite } from "../../shared/jqlite/jqlite";
79
- export {};