@angular-wave/angular.ts 0.8.4 → 0.9.1

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 (213) hide show
  1. package/@types/core/scope/scope.d.ts +1 -4
  2. package/@types/interface.d.ts +17 -3
  3. package/@types/shared/interface.d.ts +17 -0
  4. package/@types/shared/utils.d.ts +4 -19
  5. package/dist/angular-ts.esm.js +42 -160
  6. package/dist/angular-ts.umd.js +42 -160
  7. package/dist/angular-ts.umd.min.js +1 -1
  8. package/docs/layouts/shortcodes/version.html +1 -1
  9. package/docs/static/typedoc/assets/hierarchy.js +1 -1
  10. package/docs/static/typedoc/assets/main.js +2 -2
  11. package/docs/static/typedoc/assets/navigation.js +1 -1
  12. package/docs/static/typedoc/assets/search.js +1 -1
  13. package/docs/static/typedoc/assets/style.css +2 -9
  14. package/docs/static/typedoc/classes/Location.html +20 -20
  15. package/docs/static/typedoc/classes/LocationProvider.html +5 -5
  16. package/docs/static/typedoc/classes/LogProvider.html +3 -3
  17. package/docs/static/typedoc/classes/PubSub.html +21 -21
  18. package/docs/static/typedoc/classes/PubSubProvider.html +1 -1
  19. package/docs/static/typedoc/classes/TemplateCacheProvider.html +2 -2
  20. package/docs/static/typedoc/hierarchy.html +1 -1
  21. package/docs/static/typedoc/index.html +1 -1
  22. package/docs/static/typedoc/interfaces/ChangesObject.html +3 -3
  23. package/docs/static/typedoc/interfaces/ComponentOptions.html +8 -8
  24. package/docs/static/typedoc/interfaces/Controller.html +6 -6
  25. package/docs/static/typedoc/interfaces/DefaultPorts.html +1 -1
  26. package/docs/static/typedoc/interfaces/Directive.html +18 -18
  27. package/docs/static/typedoc/interfaces/DirectivePrePost.html +1 -1
  28. package/docs/static/typedoc/interfaces/Html5Mode.html +1 -1
  29. package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +7 -7
  30. package/docs/static/typedoc/interfaces/HttpService.html +21 -21
  31. package/docs/static/typedoc/interfaces/LogService.html +6 -6
  32. package/docs/static/typedoc/interfaces/NgModelController.html +15 -15
  33. package/docs/static/typedoc/interfaces/NgModelOptions.html +8 -8
  34. package/docs/static/typedoc/interfaces/Provider.html +17 -17
  35. package/docs/static/typedoc/interfaces/RequestConfig.html +15 -15
  36. package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +11 -11
  37. package/docs/static/typedoc/interfaces/ServiceProvider.html +1 -1
  38. package/docs/static/typedoc/interfaces/TemplateCache.html +1 -1
  39. package/docs/static/typedoc/interfaces/TranscludeFunctionObject.html +4 -4
  40. package/docs/static/typedoc/interfaces/UrlParts.html +4 -4
  41. package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
  42. package/docs/static/typedoc/types/CloneAttachFunction.html +1 -1
  43. package/docs/static/typedoc/types/ControllerConstructor.html +1 -1
  44. package/docs/static/typedoc/types/DirectiveCompileFn.html +1 -1
  45. package/docs/static/typedoc/types/DirectiveController.html +1 -1
  46. package/docs/static/typedoc/types/DirectiveFactoryFn.html +1 -1
  47. package/docs/static/typedoc/types/DirectiveLinkFn.html +1 -1
  48. package/docs/static/typedoc/types/Expression.html +1 -1
  49. package/docs/static/typedoc/types/FilterFactory.html +1 -1
  50. package/docs/static/typedoc/types/FilterFn.html +1 -1
  51. package/docs/static/typedoc/types/Injectable.html +1 -1
  52. package/docs/static/typedoc/types/InjectableFactory.html +1 -1
  53. package/docs/static/typedoc/types/LogCall.html +1 -1
  54. package/docs/static/typedoc/types/LogServiceFactory.html +1 -1
  55. package/docs/static/typedoc/types/OnChangesObject.html +1 -1
  56. package/docs/static/typedoc/types/SwapModeType.html +1 -1
  57. package/docs/static/typedoc/types/TController.html +1 -1
  58. package/docs/static/typedoc/types/UrlChangeListener.html +4 -4
  59. package/docs/static/typedoc/variables/SwapMode.html +10 -10
  60. package/legacy.d.ts +0 -82
  61. package/package.json +2 -2
  62. package/src/animations/animate-js.js +2 -1
  63. package/src/animations/animate-queue.js +7 -6
  64. package/src/core/parse/interpreter.js +11 -6
  65. package/src/core/parse/parse.spec.js +6 -8
  66. package/src/core/scope/scope.js +10 -12
  67. package/src/core/scope/scope.spec.js +4 -4
  68. package/src/directive/http/form-router-test.html +44 -0
  69. package/src/directive/options/options-example.html +7 -3
  70. package/src/directive/options/options.js +1 -0
  71. package/src/directive/options/options.spec.js +117 -170
  72. package/src/interface.ts +20 -3
  73. package/src/router/directives/view-directive.js +0 -1
  74. package/src/router/directives/view-directive.spec.js +10 -9
  75. package/src/router/resolve/resolve-context.js +0 -19
  76. package/src/router/state/state-registry.js +3 -10
  77. package/src/router/state/state-service.js +5 -5
  78. package/src/router/transition/transition.js +1 -86
  79. package/src/router/view-hook.spec.js +1 -1
  80. package/src/shared/interface.ts +19 -0
  81. package/src/shared/utils.js +3 -12
  82. package/tsconfig.types.json +2 -2
  83. package/@types/angular.d.ts +0 -150
  84. package/@types/animations/animate-cache.d.ts +0 -50
  85. package/@types/animations/animate-children-directive.d.ts +0 -10
  86. package/@types/animations/animate-css-driver.d.ts +0 -18
  87. package/@types/animations/animate-css.d.ts +0 -18
  88. package/@types/animations/animate-js-driver.d.ts +0 -14
  89. package/@types/animations/animate-js.d.ts +0 -23
  90. package/@types/animations/animate-queue.d.ts +0 -28
  91. package/@types/animations/animate-runner.d.ts +0 -31
  92. package/@types/animations/animate-swap.d.ts +0 -9
  93. package/@types/animations/animate.d.ts +0 -450
  94. package/@types/animations/animation.d.ts +0 -14
  95. package/@types/animations/interface.d.ts +0 -17
  96. package/@types/animations/raf-scheduler.d.ts +0 -37
  97. package/@types/animations/shared.d.ts +0 -74
  98. package/@types/core/compile/compile.d.ts +0 -201
  99. package/@types/core/controller/controller.d.ts +0 -54
  100. package/@types/core/di/injector.d.ts +0 -22
  101. package/@types/core/filter/filter.d.ts +0 -23
  102. package/@types/core/interpolate/interpolate.d.ts +0 -38
  103. package/@types/core/parse/ast/ast-node.d.ts +0 -56
  104. package/@types/core/parse/ast/ast.d.ts +0 -164
  105. package/@types/core/parse/lexer/lexer.d.ts +0 -119
  106. package/@types/core/parse/lexer/token.d.ts +0 -17
  107. package/@types/core/parse/parse.d.ts +0 -33
  108. package/@types/core/parse/parser/parser.d.ts +0 -41
  109. package/@types/core/sanitize/interface.d.ts +0 -10
  110. package/@types/core/sanitize/sanitize-uri.d.ts +0 -40
  111. package/@types/directive/aria/aria.d.ts +0 -104
  112. package/@types/directive/attrs/attrs.d.ts +0 -8
  113. package/@types/directive/bind/bind.d.ts +0 -18
  114. package/@types/directive/channel/channel.d.ts +0 -10
  115. package/@types/directive/class/class.d.ts +0 -3
  116. package/@types/directive/cloak/cloak.d.ts +0 -4
  117. package/@types/directive/controller/controller.d.ts +0 -4
  118. package/@types/directive/events/events.d.ts +0 -21
  119. package/@types/directive/form/form.d.ts +0 -264
  120. package/@types/directive/http/http.d.ts +0 -46
  121. package/@types/directive/if/if.d.ts +0 -10
  122. package/@types/directive/include/include.d.ts +0 -28
  123. package/@types/directive/init/init.d.ts +0 -4
  124. package/@types/directive/input/input.d.ts +0 -70
  125. package/@types/directive/messages/messages.d.ts +0 -63
  126. package/@types/directive/model/model.d.ts +0 -515
  127. package/@types/directive/model-options/model-options.d.ts +0 -56
  128. package/@types/directive/non-bindable/non-bindable.d.ts +0 -4
  129. package/@types/directive/observe/observe.d.ts +0 -9
  130. package/@types/directive/options/options.d.ts +0 -13
  131. package/@types/directive/ref/ref.d.ts +0 -11
  132. package/@types/directive/repeat/repeat.d.ts +0 -11
  133. package/@types/directive/script/script.d.ts +0 -10
  134. package/@types/directive/select/select.d.ts +0 -15
  135. package/@types/directive/setter/setter.d.ts +0 -12
  136. package/@types/directive/show-hide/show-hide.d.ts +0 -19
  137. package/@types/directive/style/style.d.ts +0 -4
  138. package/@types/directive/switch/switch.d.ts +0 -18
  139. package/@types/directive/transclude/transclude.d.ts +0 -10
  140. package/@types/directive/validators/validators.d.ts +0 -149
  141. package/@types/filters/filter.d.ts +0 -4
  142. package/@types/filters/filters.d.ts +0 -38
  143. package/@types/filters/limit-to.d.ts +0 -4
  144. package/@types/filters/order-by.d.ts +0 -7
  145. package/@types/index.d.ts +0 -2
  146. package/@types/ng.d.ts +0 -8
  147. package/@types/router/common/trace.d.ts +0 -66
  148. package/@types/router/directives/state-directives.d.ts +0 -46
  149. package/@types/router/directives/view-directive.d.ts +0 -138
  150. package/@types/router/glob/glob.d.ts +0 -81
  151. package/@types/router/hooks/core-resolvables.d.ts +0 -2
  152. package/@types/router/hooks/ignored-transition.d.ts +0 -1
  153. package/@types/router/hooks/invalid-transition.d.ts +0 -1
  154. package/@types/router/hooks/lazy-load.d.ts +0 -42
  155. package/@types/router/hooks/on-enter-exit-retain.d.ts +0 -3
  156. package/@types/router/hooks/redirect-to.d.ts +0 -4
  157. package/@types/router/hooks/resolve.d.ts +0 -4
  158. package/@types/router/hooks/update-globals.d.ts +0 -1
  159. package/@types/router/hooks/url.d.ts +0 -5
  160. package/@types/router/hooks/views.d.ts +0 -5
  161. package/@types/router/params/interface.d.ts +0 -606
  162. package/@types/router/params/param-factory.d.ts +0 -16
  163. package/@types/router/params/param-type.d.ts +0 -59
  164. package/@types/router/params/param-types.d.ts +0 -36
  165. package/@types/router/params/param.d.ts +0 -71
  166. package/@types/router/params/state-params.d.ts +0 -12
  167. package/@types/router/path/path-node.d.ts +0 -38
  168. package/@types/router/path/path-utils.d.ts +0 -88
  169. package/@types/router/resolve/interface.d.ts +0 -200
  170. package/@types/router/resolve/resolvable.d.ts +0 -50
  171. package/@types/router/resolve/resolve-context.d.ts +0 -102
  172. package/@types/router/router.d.ts +0 -47
  173. package/@types/router/state/interface.d.ts +0 -983
  174. package/@types/router/state/state-builder.d.ts +0 -95
  175. package/@types/router/state/state-matcher.d.ts +0 -7
  176. package/@types/router/state/state-object.d.ts +0 -83
  177. package/@types/router/state/state-queue-manager.d.ts +0 -29
  178. package/@types/router/state/state-registry.d.ts +0 -134
  179. package/@types/router/state/state-service.d.ts +0 -419
  180. package/@types/router/state/target-state.d.ts +0 -102
  181. package/@types/router/state/views.d.ts +0 -58
  182. package/@types/router/state-filters.d.ts +0 -39
  183. package/@types/router/template-factory.d.ts +0 -117
  184. package/@types/router/transition/hook-builder.d.ts +0 -45
  185. package/@types/router/transition/hook-registry.d.ts +0 -102
  186. package/@types/router/transition/interface.d.ts +0 -880
  187. package/@types/router/transition/reject-factory.d.ts +0 -43
  188. package/@types/router/transition/transition-event-type.d.ts +0 -24
  189. package/@types/router/transition/transition-hook.d.ts +0 -86
  190. package/@types/router/transition/transition-service.d.ts +0 -116
  191. package/@types/router/transition/transition.d.ts +0 -396
  192. package/@types/router/url/url-config.d.ts +0 -99
  193. package/@types/router/url/url-matcher.d.ts +0 -174
  194. package/@types/router/url/url-rule.d.ts +0 -161
  195. package/@types/router/url/url-rules.d.ts +0 -249
  196. package/@types/router/url/url-service.d.ts +0 -254
  197. package/@types/router/view/interface.d.ts +0 -44
  198. package/@types/router/view/view.d.ts +0 -149
  199. package/@types/router/view-scroll.d.ts +0 -10
  200. package/@types/services/anchor-scroll.d.ts +0 -25
  201. package/@types/services/cookie-reader.d.ts +0 -4
  202. package/@types/services/http/http.d.ts +0 -134
  203. package/@types/services/http-backend/http-backend.d.ts +0 -58
  204. package/@types/services/sce/sce.d.ts +0 -238
  205. package/@types/services/template-request.d.ts +0 -55
  206. package/@types/shared/common.d.ts +0 -197
  207. package/@types/shared/hof.d.ts +0 -108
  208. package/@types/shared/predicates.d.ts +0 -17
  209. package/@types/shared/queue.d.ts +0 -64
  210. package/@types/shared/strings.d.ts +0 -58
  211. package/@types/shared/test-utils.d.ts +0 -18
  212. package/docs/static/typedoc/classes/NgModule.html +0 -32
  213. package/src/router/params/README.md +0 -8
@@ -1,17 +0,0 @@
1
- /**
2
- * Represents a token produced by the lexer, which will be used by the AST to construct an abstract syntax tree.
3
- */
4
- export interface Token {
5
- /** Index of the token. */
6
- index: number;
7
- /** Text of the token. */
8
- text: string;
9
- /** Indicates if token is an identifier. */
10
- identifier?: boolean;
11
- /** Indicates if token is a constant. */
12
- constant?: boolean;
13
- /** Value of the token if it's a constant. */
14
- value?: string | number;
15
- /** Indicates if token is an operator. */
16
- operator?: boolean;
17
- }
@@ -1,33 +0,0 @@
1
- export function constantWatchDelegate(
2
- scope: any,
3
- listener: any,
4
- objectEquality: any,
5
- parsedExpression: any,
6
- ): any;
7
- export class ParseProvider {
8
- /**
9
- * Allows defining the set of characters that are allowed in AngularTS expressions. The function
10
- * `identifierStart` will get called to know if a given character is a valid character to be the
11
- * first character for an identifier. The function `identifierContinue` will get called to know if
12
- * a given character is a valid character to be a follow-up identifier character. The functions
13
- * `identifierStart` and `identifierContinue` will receive as arguments the single character to be
14
- * identifier and the character code point. These arguments will be `string` and `numeric`. Keep in
15
- * mind that the `string` parameter can be two characters long depending on the character
16
- * representation. It is expected for the function to return `true` or `false`, whether that
17
- * character is allowed or not.
18
- *
19
- * Since this function will be called extensively, keep the implementation of these functions fast,
20
- * as the performance of these functions have a direct impact on the expressions parsing speed.
21
- *
22
- * @param {function(any):boolean} [identifierStart] The function that will decide whether the given character is
23
- * a valid identifier start character.
24
- * @param {function(any):boolean} [identifierContinue] The function that will decide whether the given character is
25
- * a valid identifier continue character.
26
- * @returns {ParseProvider}
27
- */
28
- setIdentifierFns: (
29
- identifierStart?: (arg0: any) => boolean,
30
- identifierContinue?: (arg0: any) => boolean,
31
- ) => ParseProvider;
32
- $get: (string | (($filter: (any: any) => any) => any))[];
33
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * @typedef {Object} ParsedAST
3
- * @property {import("../ast/ast-node.d.ts").ASTNode} ast - AST representation of expression
4
- */
5
- /**
6
- * @constructor
7
- */
8
- export class Parser {
9
- /**
10
- *
11
- * @param {import('../lexer/lexer.js').Lexer} lexer
12
- * @param {function(any):any} $filter
13
- */
14
- constructor(
15
- lexer: import("../lexer/lexer.js").Lexer,
16
- $filter: (arg0: any) => any,
17
- );
18
- /** @type {AST} */
19
- ast: AST;
20
- /** @type {ASTInterpreter} */
21
- astCompiler: ASTInterpreter;
22
- /**
23
- *
24
- * @param {string} exp - Expression to be parsed
25
- * @returns {import("../interface.ts").CompiledExpression}
26
- */
27
- parse(exp: string): import("../interface.ts").CompiledExpression;
28
- /**
29
- * @param {string} exp - Expression to be parsed
30
- * @returns {ParsedAST}
31
- */
32
- getAst(exp: string): ParsedAST;
33
- }
34
- export type ParsedAST = {
35
- /**
36
- * - AST representation of expression
37
- */
38
- ast: import("../ast/ast-node.d.ts").ASTNode;
39
- };
40
- import { AST } from "../ast/ast.js";
41
- import { ASTInterpreter } from "../interpreter.js";
@@ -1,10 +0,0 @@
1
- /**
2
- * Sanitizer function that processes a URI string and optionally
3
- * treats it as a media URL.
4
- */
5
- export interface SanitizerFn {
6
- (
7
- uri: string | null | undefined,
8
- isMediaUrl?: boolean,
9
- ): string | null | undefined;
10
- }
@@ -1,40 +0,0 @@
1
- /** @typedef {import('../../interface.ts').ServiceProvider} ServiceProvider */
2
- /**
3
- * Private service to sanitize uris for links and images. Used by $compile.
4
- * @implements {ServiceProvider}
5
- */
6
- export class SanitizeUriProvider implements ServiceProvider {
7
- /**
8
- * @private
9
- * @type {RegExp}
10
- */
11
- private _aHrefSanitizationTrustedUrlList;
12
- /**
13
- * @private
14
- * @type {RegExp}
15
- */
16
- private _imgSrcSanitizationTrustedUrlList;
17
- /**
18
- * Retrieves or overrides the regexp used to trust URLs for a[href] sanitization.
19
- *
20
- * @param {RegExp=} regexp New regexp to trust URLs with.
21
- * @returns {RegExp|SanitizeUriProvider} Current regexp if no param, or self for chaining.
22
- */
23
- aHrefSanitizationTrustedUrlList(
24
- regexp?: RegExp | undefined,
25
- ): RegExp | SanitizeUriProvider;
26
- /**
27
- * Retrieves or overrides the regexp used to trust URLs for img[src] sanitization.
28
- *
29
- * @param {RegExp=} regexp New regexp to trust URLs with.
30
- * @returns {RegExp|SanitizeUriProvider} Current regexp if no param, or self for chaining.
31
- */
32
- imgSrcSanitizationTrustedUrlList(
33
- regexp?: RegExp | undefined,
34
- ): RegExp | SanitizeUriProvider;
35
- /**
36
- * @returns {import("./interface").SanitizerFn}
37
- */
38
- $get(): any;
39
- }
40
- export type ServiceProvider = import("../../interface.ts").ServiceProvider;
@@ -1,104 +0,0 @@
1
- /**
2
- * Used for configuring the ARIA attributes injected and managed by ngAria.
3
- *
4
- * ```js
5
- * angular.module('myApp', ['ngAria'], function config($ariaProvider) {
6
- * $ariaProvider.config({
7
- * ariaValue: true,
8
- * tabindex: false
9
- * });
10
- * });
11
- *```
12
- *
13
- * ## Dependencies
14
- * Requires the {@link ngAria} module to be installed.
15
- *
16
- */
17
- export function AriaProvider(): void;
18
- export class AriaProvider {
19
- config: (newConfig: any) => void;
20
- $get: () => {
21
- config(key: any): any;
22
- $$watchExpr: (
23
- attrName: any,
24
- ariaAttr: any,
25
- nativeAriaNodeNames: any,
26
- negate: any,
27
- ) => (scope: any, elem: any, attr: any) => void;
28
- };
29
- }
30
- export function ngDisabledAriaDirective($aria: any): any;
31
- export namespace ngDisabledAriaDirective {
32
- let $inject: string[];
33
- }
34
- export function ngShowAriaDirective($aria: any): any;
35
- export namespace ngShowAriaDirective {
36
- let $inject_1: string[];
37
- export { $inject_1 as $inject };
38
- }
39
- export function ngMessagesAriaDirective(): {
40
- restrict: string;
41
- require: string;
42
- link(_scope: any, elem: any, attr: any): void;
43
- };
44
- export function ngClickAriaDirective(
45
- $aria: any,
46
- $parse: any,
47
- ): {
48
- restrict: string;
49
- compile(
50
- _elem: any,
51
- attr: any,
52
- ): (scope: any, elem: Element, attr: any) => void;
53
- };
54
- export namespace ngClickAriaDirective {
55
- let $inject_2: string[];
56
- export { $inject_2 as $inject };
57
- }
58
- export function ngRequiredAriaDirective($aria: any): any;
59
- export namespace ngRequiredAriaDirective {
60
- let $inject_3: string[];
61
- export { $inject_3 as $inject };
62
- }
63
- export function ngCheckedAriaDirective($aria: any): any;
64
- export namespace ngCheckedAriaDirective {
65
- let $inject_4: string[];
66
- export { $inject_4 as $inject };
67
- }
68
- export function ngValueAriaDirective($aria: any): any;
69
- export namespace ngValueAriaDirective {
70
- let $inject_5: string[];
71
- export { $inject_5 as $inject };
72
- }
73
- export function ngHideAriaDirective($aria: any): any;
74
- export namespace ngHideAriaDirective {
75
- let $inject_6: string[];
76
- export { $inject_6 as $inject };
77
- }
78
- export function ngReadonlyAriaDirective($aria: any): any;
79
- export namespace ngReadonlyAriaDirective {
80
- let $inject_7: string[];
81
- export { $inject_7 as $inject };
82
- }
83
- export function ngModelAriaDirective($aria: any): {
84
- restrict: string;
85
- require: string;
86
- priority: number;
87
- compile(
88
- elem: any,
89
- attr: any,
90
- ): {
91
- post(scope: any, elem: any, attr: any, ngModel: any): void;
92
- };
93
- };
94
- export namespace ngModelAriaDirective {
95
- let $inject_8: string[];
96
- export { $inject_8 as $inject };
97
- }
98
- export function ngDblclickAriaDirective(
99
- $aria: any,
100
- ): (scope: any, elem: any, attr: any) => void;
101
- export namespace ngDblclickAriaDirective {
102
- let $inject_9: string[];
103
- export { $inject_9 as $inject };
104
- }
@@ -1,8 +0,0 @@
1
- export const REGEX_STRING_REGEXP: RegExp;
2
- /**
3
- * @type {Record<string, import("../../interface.js").DirectiveFactory>}
4
- */
5
- export const ngAttributeAliasDirectives: Record<
6
- string,
7
- import("../../interface.js").DirectiveFactory
8
- >;
@@ -1,18 +0,0 @@
1
- /**
2
- * @returns {import('../../interface.ts').Directive}
3
- */
4
- export function ngBindDirective(): import("../../interface.ts").Directive;
5
- /**
6
- * @returns {import('../../interface.ts').Directive}
7
- */
8
- export function ngBindTemplateDirective(): import("../../interface.ts").Directive;
9
- /**
10
- * @param {import('../../core/parse/interface.ts').ParseService} $parse
11
- * @returns {import('../../interface.ts').Directive}
12
- */
13
- export function ngBindHtmlDirective(
14
- $parse: import("../../core/parse/interface.ts").ParseService,
15
- ): import("../../interface.ts").Directive;
16
- export namespace ngBindHtmlDirective {
17
- let $inject: string[];
18
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @param {import("../../services/pubsub/pubsub.js").PubSub} $eventBus
3
- * @returns {import("../../interface.ts").Directive}
4
- */
5
- export function ngChannelDirective(
6
- $eventBus: import("../../services/pubsub/pubsub.js").PubSub,
7
- ): import("../../interface.ts").Directive;
8
- export namespace ngChannelDirective {
9
- let $inject: string[];
10
- }
@@ -1,3 +0,0 @@
1
- export const ngClassDirective: () => import("../../interface.ts").Directive;
2
- export const ngClassOddDirective: () => import("../../interface.ts").Directive;
3
- export const ngClassEvenDirective: () => import("../../interface.ts").Directive;
@@ -1,4 +0,0 @@
1
- /**
2
- * @returns {import('../../interface.ts').Directive}
3
- */
4
- export function ngCloakDirective(): import("../../interface.ts").Directive;
@@ -1,4 +0,0 @@
1
- /**
2
- * @returns {import("../../interface.ts").Directive}
3
- */
4
- export function ngControllerDirective(): import("../../interface.ts").Directive;
@@ -1,21 +0,0 @@
1
- /**
2
- *
3
- * @param {import("../../core/parse/interface.ts").ParseService} $parse
4
- * @param {import('../../services/exception/exception-handler.js').ErrorHandler} $exceptionHandler
5
- * @param {string} directiveName
6
- * @param {string} eventName
7
- * @returns {import("../../interface.ts").Directive}
8
- */
9
- export function createEventDirective(
10
- $parse: import("../../core/parse/interface.ts").ParseService,
11
- $exceptionHandler: import("../../services/exception/exception-handler.js").ErrorHandler,
12
- directiveName: string,
13
- eventName: string,
14
- ): import("../../interface.ts").Directive;
15
- /**
16
- * @type {Record<string, import("../../interface.js").DirectiveFactory>}
17
- */
18
- export const ngEventDirectives: Record<
19
- string,
20
- import("../../interface.js").DirectiveFactory
21
- >;
@@ -1,264 +0,0 @@
1
- export function setupValidity(instance: any): void;
2
- /**
3
- * @type {{
4
- * $nonscope: boolean,
5
- * $addControl: Function,
6
- * $getControls: () => any[],
7
- * $$renameControl: Function,
8
- * $removeControl: Function,
9
- * $setValidity: Function | ((key: any, isValid: boolean, control: any) => any),
10
- * $setDirty: Function,
11
- * $setPristine: Function,
12
- * $setSubmitted: Function,
13
- * $$setSubmitted: Function
14
- * }}
15
- */
16
- export const nullFormCtrl: {
17
- $nonscope: boolean;
18
- $addControl: Function;
19
- $getControls: () => any[];
20
- $$renameControl: Function;
21
- $removeControl: Function;
22
- $setValidity: Function | ((key: any, isValid: boolean, control: any) => any);
23
- $setDirty: Function;
24
- $setPristine: Function;
25
- $setSubmitted: Function;
26
- $$setSubmitted: Function;
27
- };
28
- export const PENDING_CLASS: "ng-pending";
29
- /**
30
- * @property {boolean} $dirty True if user has already interacted with the form.
31
- * @property {boolean} $valid True if all of the containing forms and controls are valid.
32
- * @property {boolean} $invalid True if at least one containing control or form is invalid.
33
- * @property {boolean} $submitted True if user has submitted the form even if its invalid.
34
- *
35
- * @property {Object} $pending An object hash, containing references to controls or forms with
36
- * pending validators, where:
37
- *
38
- * - keys are validations tokens (error names).
39
- * - values are arrays of controls or forms that have a pending validator for the given error name.
40
- *
41
- * See {@link form.FormController#$error $error} for a list of built-in validation tokens.
42
- *
43
- * @property {Object} $error An object hash, containing references to controls or forms with failing
44
- * validators, where:
45
- *
46
- * - keys are validation tokens (error names),
47
- * - values are arrays of controls or forms that have a failing validator for the given error name.
48
- *
49
- * Built-in validation tokens:
50
- * - `email`
51
- * - `max`
52
- * - `maxlength`
53
- * - `min`
54
- * - `minlength`
55
- * - `number`
56
- * - `pattern`
57
- * - `required`
58
- * - `url`
59
- * - `date`
60
- * - `datetimelocal`
61
- * - `time`
62
- * - `week`
63
- * - `month`
64
- *
65
- * @description
66
- * `FormController` keeps track of all its controls and nested forms as well as the state of them,
67
- * such as being valid/invalid or dirty/pristine.
68
- *
69
- * Each {@link ng.directive:form form} directive creates an instance
70
- * of `FormController`.
71
- *
72
- */
73
- export class FormController {
74
- static $nonscope: boolean;
75
- static $inject: string[];
76
- /**
77
- * @param {Element} $element
78
- * @param {import("../../core/compile/attributes.js").Attributes} $attrs
79
- * @param {import("../../core/scope/scope.js").Scope} $scope
80
- * @param {*} $animate
81
- * @param {*} $interpolate
82
- */
83
- constructor(
84
- $element: Element,
85
- $attrs: import("../../core/compile/attributes.js").Attributes,
86
- $scope: import("../../core/scope/scope.js").Scope,
87
- $animate: any,
88
- $interpolate: any,
89
- );
90
- $$controls: any[];
91
- $name: any;
92
- /**
93
- * @property {boolean} $dirty True if user has already interacted with the form.
94
- */
95
- $dirty: boolean;
96
- /**
97
- * @propertys {boolean} $pristine - True if user has not interacted with the form yet.s
98
- */
99
- $pristine: boolean;
100
- $valid: boolean;
101
- $invalid: boolean;
102
- $submitted: boolean;
103
- /** @type {FormController|Object} */
104
- $$parentForm: FormController | any;
105
- $$element: Element;
106
- $$animate: any;
107
- $error: {};
108
- $$success: {};
109
- $pending: any;
110
- $$classCache: {};
111
- /**
112
- * Rollback all form controls pending updates to the `$modelValue`.
113
- *
114
- * Updates may be pending by a debounced event or because the input is waiting for a some future
115
- * event defined in `ng-model-options`. This method is typically needed by the reset button of
116
- * a form that uses `ng-model-options` to pend updates.
117
- */
118
- $rollbackViewValue(): void;
119
- /**
120
- * Commit all form controls pending updates to the `$modelValue`.
121
- *
122
- * Updates may be pending by a debounced event or because the input is waiting for a some future
123
- * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`
124
- * usually handles calling this in response to input events.
125
- */
126
- $commitViewValue(): void;
127
- /**
128
- * Register a control with the form. Input elements using ngModelController do this automatically
129
- * when they are linked.
130
- *
131
- * Note that the current state of the control will not be reflected on the new parent form. This
132
- * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`
133
- * state.
134
- *
135
- * However, if the method is used programmatically, for example by adding dynamically created controls,
136
- * or controls that have been previously removed without destroying their corresponding DOM element,
137
- * it's the developers responsibility to make sure the current state propagates to the parent form.
138
- *
139
- * For example, if an input control is added that is already `$dirty` and has `$error` properties,
140
- * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.
141
- */
142
- $addControl(control: any): void;
143
- /**
144
- * This method returns a **shallow copy** of the controls that are currently part of this form.
145
- * The controls can be instances of {@link form.FormController `FormController`}
146
- * ({@link ngForm "child-forms"}) and of {@link ngModel.NgModelController `NgModelController`}.
147
- * If you need access to the controls of child-forms, you have to call `$getControls()`
148
- * recursively on them.
149
- * This can be used for example to iterate over all controls to validate them.
150
- *
151
- * The controls can be accessed normally, but adding to, or removing controls from the array has
152
- * no effect on the form. Instead, use {@link form.FormController#$addControl `$addControl()`} and
153
- * {@link form.FormController#$removeControl `$removeControl()`} for this use-case.
154
- * Likewise, adding a control to, or removing a control from the form is not reflected
155
- * in the shallow copy. That means you should get a fresh copy from `$getControls()` every time
156
- * you need access to the controls.
157
- */
158
- $getControls(): any;
159
- $$renameControl(control: any, newName: any): void;
160
- /**
161
- * Deregister a control from the form.
162
- *
163
- * Input elements using ngModelController do this automatically when they are destroyed.
164
- *
165
- * Note that only the removed control's validation state (`$errors`etc.) will be removed from the
166
- * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be
167
- * different from case to case. For example, removing the only `$dirty` control from a form may or
168
- * may not mean that the form is still `$dirty`.
169
- */
170
- $removeControl(control: any): void;
171
- /**
172
- * Sets the form to a dirty state.
173
- *
174
- * This method can be called to add the 'ng-dirty' class and set the form to a dirty
175
- * state (ng-dirty class). This method will also propagate to parent forms.
176
- */
177
- $setDirty(): void;
178
- /**
179
- * Sets the form to its pristine state.
180
- *
181
- * This method sets the form's `$pristine` state to true, the `$dirty` state to false, removes
182
- * the `ng-dirty` class and adds the `ng-pristine` class. Additionally, it sets the `$submitted`
183
- * state to false.
184
- *
185
- * This method will also propagate to all the controls contained in this form.
186
- *
187
- * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
188
- * saving or resetting it.
189
- */
190
- $setPristine(): void;
191
- /**
192
- * Sets the form to its untouched state.
193
- *
194
- * This method can be called to remove the 'ng-touched' class and set the form controls to their
195
- * untouched state (ng-untouched class).
196
- *
197
- * Setting a form controls back to their untouched state is often useful when setting the form
198
- * back to its pristine state.
199
- */
200
- $setUntouched(): void;
201
- /**
202
- * Sets the form to its `$submitted` state. This will also set `$submitted` on all child and
203
- * parent forms of the form.
204
- */
205
- $setSubmitted(): void;
206
- $$setSubmitted(): void;
207
- set(object: any, property: any, controller: any): void;
208
- unset(object: any, property: any, controller: any): void;
209
- /**
210
- * Change the validity state of the form, and notify the parent form (if any).
211
- *
212
- * Application developers will rarely need to call this method directly. It is used internally, by
213
- * {@link ngModel.NgModelController#$setValidity NgModelController.$setValidity()}, to propagate a
214
- * control's validity state to the parent `FormController`.
215
- *
216
- * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be
217
- * assigned to either `$error[validationErrorKey]` or `$pending[validationErrorKey]` (for
218
- * unfulfilled `$asyncValidators`), so that it is available for data-binding. The
219
- * `validationErrorKey` should be in camelCase and will get converted into dash-case for
220
- * class name. Example: `myError` will result in `ng-valid-my-error` and
221
- * `ng-invalid-my-error` classes and can be bound to as `{{ someForm.$error.myError }}`.
222
- * @param {boolean} state Whether the current state is valid (true), invalid (false), pending
223
- * (undefined), or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
224
- * Skipped is used by AngularTS when validators do not run because of parse errors and when
225
- * `$asyncValidators` do not run because any of the `$validators` failed.
226
- * @param {import("../model/model.js").NgModelController | FormController} controller - The controller whose validity state is
227
- * triggering the change.
228
- */
229
- $setValidity(
230
- validationErrorKey: string,
231
- state: boolean,
232
- controller: import("../model/model.js").NgModelController | FormController,
233
- ): void;
234
- }
235
- export const formDirective: (
236
- | string
237
- | (($parse: any) => {
238
- name: string;
239
- restrict: string;
240
- require: string[];
241
- controller: typeof FormController;
242
- compile: (
243
- formElement: any,
244
- attr: any,
245
- ) => {
246
- pre: (scope: any, formElement: any, attr: any, ctrls: any) => void;
247
- };
248
- })
249
- )[];
250
- export const ngFormDirective: (
251
- | string
252
- | (($parse: any) => {
253
- name: string;
254
- restrict: string;
255
- require: string[];
256
- controller: typeof FormController;
257
- compile: (
258
- formElement: any,
259
- attr: any,
260
- ) => {
261
- pre: (scope: any, formElement: any, attr: any, ctrls: any) => void;
262
- };
263
- })
264
- )[];
@@ -1,46 +0,0 @@
1
- /**
2
- * @typedef {"click" | "change" | "submit"} EventType
3
- */
4
- /**
5
- * Selects DOM event to listen for based on the element type.
6
- *
7
- * @param {Element} element - The DOM element to inspect.
8
- * @returns {EventType} The name of the event to listen for.
9
- */
10
- export function getEventNameForElement(element: Element): EventType;
11
- /**
12
- * Handles DOM manipulation based on a swap strategy and server-rendered HTML.
13
- *
14
- * @param {string} html - The HTML string returned from the server.
15
- * @param {import("../../interface.ts").SwapModeType} swap
16
- * @param {Element} target - The target DOM element to apply the swap to.
17
- * @param {import('../../core/scope/scope.js').Scope} scope
18
- * @param {import('../../core/compile/compile.js').CompileFn} $compile
19
- */
20
- export function handleSwapResponse(
21
- html: string,
22
- swap: import("../../interface.ts").SwapModeType,
23
- target: Element,
24
- scope: import("../../core/scope/scope.js").Scope,
25
- $compile: import("../../core/compile/compile.js").CompileFn,
26
- ): void;
27
- /**
28
- * Creates an HTTP directive factory that supports GET, DELETE, POST, PUT.
29
- *
30
- * @param {"get" | "delete" | "post" | "put"} method - HTTP method to use.
31
- * @param {string} attrName - Attribute name containing the URL.
32
- * @returns {import('../../interface.ts').DirectiveFactory}
33
- */
34
- export function createHttpDirective(
35
- method: "get" | "delete" | "post" | "put",
36
- attrName: string,
37
- ): import("../../interface.ts").DirectiveFactory;
38
- /** @type {import('../../interface.ts').DirectiveFactory} */
39
- export const ngGetDirective: import("../../interface.ts").DirectiveFactory;
40
- /** @type {import('../../interface.ts').DirectiveFactory} */
41
- export const ngDeleteDirective: import("../../interface.ts").DirectiveFactory;
42
- /** @type {import('../../interface.ts').DirectiveFactory} */
43
- export const ngPostDirective: import("../../interface.ts").DirectiveFactory;
44
- /** @type {import('../../interface.ts').DirectiveFactory} */
45
- export const ngPutDirective: import("../../interface.ts").DirectiveFactory;
46
- export type EventType = "click" | "change" | "submit";
@@ -1,10 +0,0 @@
1
- /**
2
- * @param {*} $animate
3
- * @returns {import("../../interface.ts").Directive}
4
- */
5
- export function ngIfDirective(
6
- $animate: any,
7
- ): import("../../interface.ts").Directive;
8
- export namespace ngIfDirective {
9
- let $inject: string[];
10
- }
@@ -1,28 +0,0 @@
1
- /**
2
- *
3
- * @param {*} $templateRequest
4
- * @param {import("../../services/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
5
- * @param {*} $animate
6
- * @param {import('../../services/exception/interface.ts').Interface} $exceptionHandler
7
- * @returns {import('../../interface.js').Directive}
8
- */
9
- export function ngIncludeDirective(
10
- $templateRequest: any,
11
- $anchorScroll: import("../../services/anchor-scroll.js").AnchorScrollFunction,
12
- $animate: any,
13
- $exceptionHandler: import("../../services/exception/interface.ts").Interface,
14
- ): import("../../interface.js").Directive;
15
- export namespace ngIncludeDirective {
16
- let $inject: string[];
17
- }
18
- /**
19
- * @param {import("../../core/compile/compile.js").CompileFn} $compile
20
- * @returns {import("../../interface.ts").Directive}
21
- */
22
- export function ngIncludeFillContentDirective(
23
- $compile: import("../../core/compile/compile.js").CompileFn,
24
- ): import("../../interface.ts").Directive;
25
- export namespace ngIncludeFillContentDirective {
26
- let $inject_1: string[];
27
- export { $inject_1 as $inject };
28
- }