@angular-wave/angular.ts 0.9.0 → 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 (208) 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 +29 -152
  6. package/dist/angular-ts.umd.js +29 -152
  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/classes/Location.html +20 -20
  14. package/docs/static/typedoc/classes/LocationProvider.html +5 -5
  15. package/docs/static/typedoc/classes/LogProvider.html +3 -3
  16. package/docs/static/typedoc/classes/PubSub.html +21 -21
  17. package/docs/static/typedoc/classes/PubSubProvider.html +1 -1
  18. package/docs/static/typedoc/classes/TemplateCacheProvider.html +2 -2
  19. package/docs/static/typedoc/hierarchy.html +1 -1
  20. package/docs/static/typedoc/index.html +1 -1
  21. package/docs/static/typedoc/interfaces/ChangesObject.html +3 -3
  22. package/docs/static/typedoc/interfaces/ComponentOptions.html +8 -8
  23. package/docs/static/typedoc/interfaces/Controller.html +6 -6
  24. package/docs/static/typedoc/interfaces/DefaultPorts.html +1 -1
  25. package/docs/static/typedoc/interfaces/Directive.html +18 -18
  26. package/docs/static/typedoc/interfaces/DirectivePrePost.html +1 -1
  27. package/docs/static/typedoc/interfaces/Html5Mode.html +1 -1
  28. package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +7 -7
  29. package/docs/static/typedoc/interfaces/HttpService.html +21 -21
  30. package/docs/static/typedoc/interfaces/LogService.html +6 -6
  31. package/docs/static/typedoc/interfaces/NgModelController.html +15 -15
  32. package/docs/static/typedoc/interfaces/NgModelOptions.html +8 -8
  33. package/docs/static/typedoc/interfaces/Provider.html +17 -17
  34. package/docs/static/typedoc/interfaces/RequestConfig.html +15 -15
  35. package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +11 -11
  36. package/docs/static/typedoc/interfaces/ServiceProvider.html +1 -1
  37. package/docs/static/typedoc/interfaces/TemplateCache.html +1 -1
  38. package/docs/static/typedoc/interfaces/TranscludeFunctionObject.html +4 -4
  39. package/docs/static/typedoc/interfaces/UrlParts.html +4 -4
  40. package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
  41. package/docs/static/typedoc/types/CloneAttachFunction.html +1 -1
  42. package/docs/static/typedoc/types/ControllerConstructor.html +1 -1
  43. package/docs/static/typedoc/types/DirectiveCompileFn.html +1 -1
  44. package/docs/static/typedoc/types/DirectiveController.html +1 -1
  45. package/docs/static/typedoc/types/DirectiveFactoryFn.html +1 -1
  46. package/docs/static/typedoc/types/DirectiveLinkFn.html +1 -1
  47. package/docs/static/typedoc/types/Expression.html +1 -1
  48. package/docs/static/typedoc/types/FilterFactory.html +1 -1
  49. package/docs/static/typedoc/types/FilterFn.html +1 -1
  50. package/docs/static/typedoc/types/Injectable.html +1 -1
  51. package/docs/static/typedoc/types/InjectableFactory.html +1 -1
  52. package/docs/static/typedoc/types/LogCall.html +1 -1
  53. package/docs/static/typedoc/types/LogServiceFactory.html +1 -1
  54. package/docs/static/typedoc/types/OnChangesObject.html +1 -1
  55. package/docs/static/typedoc/types/SwapModeType.html +1 -1
  56. package/docs/static/typedoc/types/TController.html +1 -1
  57. package/docs/static/typedoc/types/UrlChangeListener.html +4 -4
  58. package/docs/static/typedoc/variables/SwapMode.html +10 -10
  59. package/legacy.d.ts +0 -82
  60. package/package.json +2 -2
  61. package/src/animations/animate-js.js +2 -1
  62. package/src/animations/animate-queue.js +7 -6
  63. package/src/core/scope/scope.js +8 -10
  64. package/src/directive/http/form-router-test.html +44 -0
  65. package/src/directive/options/options-example.html +7 -3
  66. package/src/directive/options/options.js +1 -0
  67. package/src/directive/options/options.spec.js +117 -170
  68. package/src/interface.ts +20 -3
  69. package/src/router/directives/view-directive.js +0 -1
  70. package/src/router/resolve/resolve-context.js +0 -19
  71. package/src/router/state/state-registry.js +3 -10
  72. package/src/router/state/state-service.js +5 -5
  73. package/src/router/transition/transition.js +1 -86
  74. package/src/router/view-hook.spec.js +1 -1
  75. package/src/shared/interface.ts +19 -0
  76. package/src/shared/utils.js +3 -12
  77. package/tsconfig.types.json +2 -2
  78. package/@types/angular.d.ts +0 -150
  79. package/@types/animations/animate-cache.d.ts +0 -50
  80. package/@types/animations/animate-children-directive.d.ts +0 -10
  81. package/@types/animations/animate-css-driver.d.ts +0 -18
  82. package/@types/animations/animate-css.d.ts +0 -18
  83. package/@types/animations/animate-js-driver.d.ts +0 -14
  84. package/@types/animations/animate-js.d.ts +0 -23
  85. package/@types/animations/animate-queue.d.ts +0 -28
  86. package/@types/animations/animate-runner.d.ts +0 -31
  87. package/@types/animations/animate-swap.d.ts +0 -9
  88. package/@types/animations/animate.d.ts +0 -450
  89. package/@types/animations/animation.d.ts +0 -14
  90. package/@types/animations/interface.d.ts +0 -17
  91. package/@types/animations/raf-scheduler.d.ts +0 -37
  92. package/@types/animations/shared.d.ts +0 -74
  93. package/@types/core/compile/compile.d.ts +0 -201
  94. package/@types/core/controller/controller.d.ts +0 -54
  95. package/@types/core/di/injector.d.ts +0 -22
  96. package/@types/core/filter/filter.d.ts +0 -23
  97. package/@types/core/interpolate/interpolate.d.ts +0 -38
  98. package/@types/core/parse/ast/ast-node.d.ts +0 -56
  99. package/@types/core/parse/ast/ast.d.ts +0 -164
  100. package/@types/core/parse/lexer/lexer.d.ts +0 -119
  101. package/@types/core/parse/lexer/token.d.ts +0 -17
  102. package/@types/core/parse/parse.d.ts +0 -33
  103. package/@types/core/parse/parser/parser.d.ts +0 -41
  104. package/@types/core/sanitize/interface.d.ts +0 -10
  105. package/@types/core/sanitize/sanitize-uri.d.ts +0 -40
  106. package/@types/directive/aria/aria.d.ts +0 -104
  107. package/@types/directive/attrs/attrs.d.ts +0 -8
  108. package/@types/directive/bind/bind.d.ts +0 -18
  109. package/@types/directive/channel/channel.d.ts +0 -10
  110. package/@types/directive/class/class.d.ts +0 -3
  111. package/@types/directive/cloak/cloak.d.ts +0 -4
  112. package/@types/directive/controller/controller.d.ts +0 -4
  113. package/@types/directive/events/events.d.ts +0 -21
  114. package/@types/directive/form/form.d.ts +0 -264
  115. package/@types/directive/http/http.d.ts +0 -46
  116. package/@types/directive/if/if.d.ts +0 -10
  117. package/@types/directive/include/include.d.ts +0 -28
  118. package/@types/directive/init/init.d.ts +0 -4
  119. package/@types/directive/input/input.d.ts +0 -70
  120. package/@types/directive/messages/messages.d.ts +0 -63
  121. package/@types/directive/model/model.d.ts +0 -515
  122. package/@types/directive/model-options/model-options.d.ts +0 -56
  123. package/@types/directive/non-bindable/non-bindable.d.ts +0 -4
  124. package/@types/directive/observe/observe.d.ts +0 -9
  125. package/@types/directive/options/options.d.ts +0 -13
  126. package/@types/directive/ref/ref.d.ts +0 -11
  127. package/@types/directive/repeat/repeat.d.ts +0 -11
  128. package/@types/directive/script/script.d.ts +0 -10
  129. package/@types/directive/select/select.d.ts +0 -15
  130. package/@types/directive/setter/setter.d.ts +0 -12
  131. package/@types/directive/show-hide/show-hide.d.ts +0 -19
  132. package/@types/directive/style/style.d.ts +0 -4
  133. package/@types/directive/switch/switch.d.ts +0 -18
  134. package/@types/directive/transclude/transclude.d.ts +0 -10
  135. package/@types/directive/validators/validators.d.ts +0 -149
  136. package/@types/filters/filter.d.ts +0 -4
  137. package/@types/filters/filters.d.ts +0 -38
  138. package/@types/filters/limit-to.d.ts +0 -4
  139. package/@types/filters/order-by.d.ts +0 -7
  140. package/@types/index.d.ts +0 -2
  141. package/@types/ng.d.ts +0 -8
  142. package/@types/router/common/trace.d.ts +0 -66
  143. package/@types/router/directives/state-directives.d.ts +0 -46
  144. package/@types/router/directives/view-directive.d.ts +0 -138
  145. package/@types/router/glob/glob.d.ts +0 -81
  146. package/@types/router/hooks/core-resolvables.d.ts +0 -2
  147. package/@types/router/hooks/ignored-transition.d.ts +0 -1
  148. package/@types/router/hooks/invalid-transition.d.ts +0 -1
  149. package/@types/router/hooks/lazy-load.d.ts +0 -42
  150. package/@types/router/hooks/on-enter-exit-retain.d.ts +0 -3
  151. package/@types/router/hooks/redirect-to.d.ts +0 -4
  152. package/@types/router/hooks/resolve.d.ts +0 -4
  153. package/@types/router/hooks/update-globals.d.ts +0 -1
  154. package/@types/router/hooks/url.d.ts +0 -5
  155. package/@types/router/hooks/views.d.ts +0 -5
  156. package/@types/router/params/interface.d.ts +0 -606
  157. package/@types/router/params/param-factory.d.ts +0 -16
  158. package/@types/router/params/param-type.d.ts +0 -59
  159. package/@types/router/params/param-types.d.ts +0 -36
  160. package/@types/router/params/param.d.ts +0 -71
  161. package/@types/router/params/state-params.d.ts +0 -12
  162. package/@types/router/path/path-node.d.ts +0 -38
  163. package/@types/router/path/path-utils.d.ts +0 -88
  164. package/@types/router/resolve/interface.d.ts +0 -200
  165. package/@types/router/resolve/resolvable.d.ts +0 -50
  166. package/@types/router/resolve/resolve-context.d.ts +0 -102
  167. package/@types/router/router.d.ts +0 -47
  168. package/@types/router/state/interface.d.ts +0 -983
  169. package/@types/router/state/state-builder.d.ts +0 -95
  170. package/@types/router/state/state-matcher.d.ts +0 -7
  171. package/@types/router/state/state-object.d.ts +0 -83
  172. package/@types/router/state/state-queue-manager.d.ts +0 -29
  173. package/@types/router/state/state-registry.d.ts +0 -134
  174. package/@types/router/state/state-service.d.ts +0 -419
  175. package/@types/router/state/target-state.d.ts +0 -102
  176. package/@types/router/state/views.d.ts +0 -58
  177. package/@types/router/state-filters.d.ts +0 -39
  178. package/@types/router/template-factory.d.ts +0 -117
  179. package/@types/router/transition/hook-builder.d.ts +0 -45
  180. package/@types/router/transition/hook-registry.d.ts +0 -102
  181. package/@types/router/transition/interface.d.ts +0 -880
  182. package/@types/router/transition/reject-factory.d.ts +0 -43
  183. package/@types/router/transition/transition-event-type.d.ts +0 -24
  184. package/@types/router/transition/transition-hook.d.ts +0 -86
  185. package/@types/router/transition/transition-service.d.ts +0 -116
  186. package/@types/router/transition/transition.d.ts +0 -396
  187. package/@types/router/url/url-config.d.ts +0 -99
  188. package/@types/router/url/url-matcher.d.ts +0 -174
  189. package/@types/router/url/url-rule.d.ts +0 -161
  190. package/@types/router/url/url-rules.d.ts +0 -249
  191. package/@types/router/url/url-service.d.ts +0 -254
  192. package/@types/router/view/interface.d.ts +0 -44
  193. package/@types/router/view/view.d.ts +0 -149
  194. package/@types/router/view-scroll.d.ts +0 -10
  195. package/@types/services/anchor-scroll.d.ts +0 -25
  196. package/@types/services/cookie-reader.d.ts +0 -4
  197. package/@types/services/http/http.d.ts +0 -134
  198. package/@types/services/http-backend/http-backend.d.ts +0 -58
  199. package/@types/services/sce/sce.d.ts +0 -238
  200. package/@types/services/template-request.d.ts +0 -55
  201. package/@types/shared/common.d.ts +0 -197
  202. package/@types/shared/hof.d.ts +0 -108
  203. package/@types/shared/predicates.d.ts +0 -17
  204. package/@types/shared/queue.d.ts +0 -64
  205. package/@types/shared/strings.d.ts +0 -58
  206. package/@types/shared/test-utils.d.ts +0 -18
  207. package/docs/static/typedoc/classes/NgModule.html +0 -32
  208. package/src/router/params/README.md +0 -8
@@ -1,56 +0,0 @@
1
- export const defaultModelOptions: ModelOptions;
2
- export function ngModelOptionsDirective(): import("../../interface.ts").Directive;
3
- export type ModelOptionsConfig = {
4
- /**
5
- * - A string specifying which events the input should be bound to. Multiple events can be set using a space-delimited list. The special event 'default' matches the default events belonging to the control.
6
- */
7
- updateOn?: string;
8
- /**
9
- * - An integer specifying the debounce time in milliseconds. A value of 0 triggers an immediate update. If an object is supplied, custom debounce values can be set for each event.
10
- */
11
- debounce?:
12
- | number
13
- | {
14
- [x: string]: number;
15
- };
16
- /**
17
- * - Indicates whether the model can be set with values that did not validate correctly. Defaults to false, which sets the model to undefined on validation failure.
18
- */
19
- allowInvalid?: boolean;
20
- /**
21
- * - Determines whether to treat functions bound to `ngModel` as getters/setters. Defaults to false.
22
- */
23
- getterSetter?: boolean;
24
- updateOnDefault?: boolean;
25
- };
26
- /**
27
- * @description
28
- * A container for the options set by the {@link ngModelOptions} directive
29
- */
30
- declare class ModelOptions {
31
- static $nonscope: boolean;
32
- /**
33
- * @param {ModelOptionsConfig} options
34
- */
35
- constructor(options: ModelOptionsConfig);
36
- /** @type {ModelOptionsConfig} */
37
- $$options: ModelOptionsConfig;
38
- /**
39
- * Returns the value of the given option
40
- * @param {string} name the name of the option to retrieve
41
- * @returns {string|boolean|number|Object.<string, number>} the value of the option *
42
- */
43
- getOption(name: string):
44
- | string
45
- | boolean
46
- | number
47
- | {
48
- [x: string]: number;
49
- };
50
- /**
51
- * @param {ModelOptionsConfig} options a hash of options for the new child that will override the parent's options
52
- * @return {ModelOptions} a new `ModelOptions` object initialized with the given options.
53
- */
54
- createChild(options: ModelOptionsConfig): ModelOptions;
55
- }
56
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * @returns {import('../../interface.ts').Directive}
3
- */
4
- export function ngNonBindableDirective(): import("../../interface.ts").Directive;
@@ -1,9 +0,0 @@
1
- /**
2
- * @param {string} source - the name of the attribute to be observed
3
- * @param {string} prop - the scope property to be updated with attribute value
4
- * @returns {import("../../interface.ts").Directive}
5
- */
6
- export function ngObserveDirective(
7
- source: string,
8
- prop: string,
9
- ): import("../../interface.ts").Directive;
@@ -1,13 +0,0 @@
1
- /**
2
- *
3
- * @param {import("../../core/compile/compile.js").CompileFn} $compile
4
- * @param {import("../../core/parse/interface.ts").ParseService} $parse
5
- * @returns {import("../../interface.ts").Directive}
6
- */
7
- export function ngOptionsDirective(
8
- $compile: import("../../core/compile/compile.js").CompileFn,
9
- $parse: import("../../core/parse/interface.ts").ParseService,
10
- ): import("../../interface.ts").Directive;
11
- export namespace ngOptionsDirective {
12
- let $inject: string[];
13
- }
@@ -1,11 +0,0 @@
1
- export function ngRefDirective($parse: any): {
2
- priority: number;
3
- restrict: string;
4
- compile(
5
- tElement: any,
6
- tAttrs: any,
7
- ): (scope: any, element: any, attrs: any) => void;
8
- };
9
- export namespace ngRefDirective {
10
- let $inject: string[];
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * TODO // Add type for animate service
3
- * @param {*} $animate
4
- * @returns {import("../../interface.ts").Directive}
5
- */
6
- export function ngRepeatDirective(
7
- $animate: any,
8
- ): import("../../interface.ts").Directive;
9
- export namespace ngRepeatDirective {
10
- let $inject: string[];
11
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @param {import('../../services/template-cache/interface.ts').TemplateCache} $templateCache
3
- * @returns {import('../../interface.ts').Directive}
4
- */
5
- export function scriptDirective(
6
- $templateCache: import("../../services/template-cache/interface.ts").TemplateCache,
7
- ): import("../../interface.ts").Directive;
8
- export namespace scriptDirective {
9
- let $inject: string[];
10
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * @returns {import('../../interface.ts').Directive}
3
- */
4
- export function selectDirective(): import("../../interface.ts").Directive;
5
- export function optionDirective($interpolate: any): {
6
- restrict: string;
7
- priority: number;
8
- compile(
9
- element: any,
10
- attr: any,
11
- ): (scope: any, element: any, attr: any) => void;
12
- };
13
- export namespace optionDirective {
14
- let $inject: string[];
15
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * @param {import('../../core/parse/interface.ts').ParseService} $parse
3
- * @param {import('../../services/log/interface.ts').LogService} $log
4
- * @returns {import('interface.ts').Directive}
5
- */
6
- export function ngSetterDirective(
7
- $parse: import("../../core/parse/interface.ts").ParseService,
8
- $log: import("../../services/log/interface.ts").LogService,
9
- ): any;
10
- export namespace ngSetterDirective {
11
- let $inject: string[];
12
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @returns {import('../../interface.ts').Directive}
3
- */
4
- export function ngShowDirective(
5
- $animate: any,
6
- ): import("../../interface.ts").Directive;
7
- export namespace ngShowDirective {
8
- let $inject: string[];
9
- }
10
- /**
11
- * @returns {import('../../interface.ts').Directive}
12
- */
13
- export function ngHideDirective(
14
- $animate: any,
15
- ): import("../../interface.ts").Directive;
16
- export namespace ngHideDirective {
17
- let $inject_1: string[];
18
- export { $inject_1 as $inject };
19
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * @returns {import('../../interface.ts').Directive}
3
- */
4
- export function ngStyleDirective(): import("../../interface.ts").Directive;
@@ -1,18 +0,0 @@
1
- /**
2
- * @param {*} $animate
3
- * @returns {import('../../interface.ts').Directive}
4
- */
5
- export function ngSwitchDirective(
6
- $animate: any,
7
- ): import("../../interface.ts").Directive;
8
- export namespace ngSwitchDirective {
9
- let $inject: string[];
10
- }
11
- /**
12
- * @returns {import('../../interface.ts').Directive}
13
- */
14
- export function ngSwitchWhenDirective(): import("../../interface.ts").Directive;
15
- /**
16
- * @returns {import('../../interface.ts').Directive}
17
- */
18
- export function ngSwitchDefaultDirective(): import("../../interface.ts").Directive;
@@ -1,10 +0,0 @@
1
- /**
2
- * @param {import("../../core/compile/compile.js").CompileFn} $compile
3
- * @returns {import("../../interface.ts").Directive}
4
- */
5
- export function ngTranscludeDirective(
6
- $compile: import("../../core/compile/compile.js").CompileFn,
7
- ): import("../../interface.ts").Directive;
8
- export namespace ngTranscludeDirective {
9
- let $inject: string[];
10
- }
@@ -1,149 +0,0 @@
1
- /**
2
- *
3
- * @param {string} ngRequired AngularTS expression. If it evaluates to `true`, it sets the
4
- * `required` attribute to the element and adds the `required`
5
- * {@link ngModel.NgModelController#$validators `validator`}.
6
- *
7
- *
8
- * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
9
- * It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be
10
- * applied to custom controls.
11
- *
12
- * The directive sets the `required` attribute on the element if the AngularTS expression inside
13
- * `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we
14
- * cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}
15
- * for more info.
16
- *
17
- * The validator will set the `required` error key to true if the `required` attribute is set and
18
- * calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the
19
- * {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the
20
- * `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing
21
- * custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
22
- *
23
- */
24
- export const requiredDirective: (
25
- | string
26
- | ((
27
- $parse: import("../../core/parse/interface.ts").ParseService,
28
- ) => import("../../interface.ts").Directive)
29
- )[];
30
- /**
31
- * @param {String|RegExp} ngPattern AngularTS expression that must evaluate to a `RegExp` or a `String`
32
- * parsable into a `RegExp`, or a `RegExp` literal. See above for
33
- * more details.
34
- *
35
- * @description
36
- *
37
- * ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
38
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
39
- *
40
- * The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
41
- * does not match a RegExp which is obtained from the `ngPattern` attribute value:
42
- * - the value is an AngularTS expression:
43
- * - If the expression evaluates to a RegExp object, then this is used directly.
44
- * - If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it
45
- * in `^` and `$` characters. For instance, `"abc"` will be converted to `new RegExp('^abc$')`.
46
- * - If the value is a RegExp literal, e.g. `ngPattern="/^\d+$/"`, it is used directly.
47
- *
48
- * <div class="alert alert-info">
49
- * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
50
- * start at the index of the last search's match, thus not taking the whole input value into
51
- * account.
52
- * </div>
53
- *
54
- * <div class="alert alert-info">
55
- * **Note:** This directive is also added when the plain `pattern` attribute is used, with two
56
- * differences:
57
- * <ol>
58
- * <li>
59
- * `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is
60
- * not available.
61
- * </li>
62
- * <li>
63
- * The `ngPattern` attribute must be an expression, while the `pattern` value must be
64
- * interpolated.
65
- * </li>
66
- * </ol>
67
- * </div>
68
- */
69
- export const patternDirective: (
70
- | string
71
- | ((
72
- $parse: import("../../core/parse/interface.ts").ParseService,
73
- ) => import("../../interface.ts").Directive)
74
- )[];
75
- /**
76
- * @param {string} ngMaxlength AngularTS expression that must evaluate to a `Number` or `String`
77
- * parsable into a `Number`. Used as value for the `maxlength`
78
- * {@link ngModel.NgModelController#$validators validator}.
79
- *
80
- * @description
81
- *
82
- * ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
83
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
84
- *
85
- * The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
86
- * is longer than the integer obtained by evaluating the AngularTS expression given in the
87
- * `ngMaxlength` attribute value.
88
- *
89
- * <div class="alert alert-info">
90
- * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two
91
- * differences:
92
- * <ol>
93
- * <li>
94
- * `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint
95
- * validation is not available.
96
- * </li>
97
- * <li>
98
- * The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be
99
- * interpolated.
100
- * </li>
101
- * </ol>
102
- * </div>
103
- *
104
- */
105
- export const maxlengthDirective: (
106
- | string
107
- | ((
108
- $parse: import("../../core/parse/interface.ts").ParseService,
109
- ) => import("../../interface.ts").Directive)
110
- )[];
111
- /**
112
- *
113
- * @param {string} ngMinlength AngularTS expression that must evaluate to a `Number` or `String`
114
- * parsable into a `Number`. Used as value for the `minlength`
115
- * {@link ngModel.NgModelController#$validators validator}.
116
- *
117
- * @description
118
- *
119
- * ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
120
- * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
121
- *
122
- * The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
123
- * is shorter than the integer obtained by evaluating the AngularTS expression given in the
124
- * `ngMinlength` attribute value.
125
- *
126
- * <div class="alert alert-info">
127
- * **Note:** This directive is also added when the plain `minlength` attribute is used, with two
128
- * differences:
129
- * <ol>
130
- * <li>
131
- * `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
132
- * validation is not available.
133
- * </li>
134
- * <li>
135
- * The `ngMinlength` value must be an expression, while the `minlength` value must be
136
- * interpolated.
137
- * </li>
138
- * </ol>
139
- * </div>
140
- *
141
- */
142
- export const minlengthDirective: (
143
- | string
144
- | (($parse: any) => {
145
- restrict: string;
146
- require: string;
147
- link(scope: any, elm: any, attr: any, ctrl: any): void;
148
- })
149
- )[];
@@ -1,4 +0,0 @@
1
- /**
2
- * @returns {import('../interface.ts').FilterFn}
3
- */
4
- export function filterFilter(): import("../interface.ts").FilterFn;
@@ -1,38 +0,0 @@
1
- /**
2
- * Format a number into a string
3
- * @param {number} number The number to format
4
- * @param {{
5
- * minFrac, // the minimum number of digits required in the fraction part of the number
6
- * maxFrac, // the maximum number of digits required in the fraction part of the number
7
- * gSize, // number of digits in each group of separated digits
8
- * lgSize, // number of digits in the last group of digits before the decimal separator
9
- * negPre, // the string to go in front of a negative number (e.g. `-` or `(`))
10
- * posPre, // the string to go in front of a positive number
11
- * negSuf, // the string to go after a negative number (e.g. `)`)
12
- * posSuf // the string to go after a positive number
13
- * }} pattern
14
- * @param {string} groupSep The string to separate groups of number (e.g. `,`)
15
- * @param {string} decimalSep The string to act as the decimal separator (e.g. `.`)
16
- * @param {any} fractionSize The size of the fractional part of the number
17
- * @return {string} The number formatted as a string
18
- */
19
- export function formatNumber(
20
- number: number,
21
- pattern: {
22
- minFrac: any;
23
- maxFrac: any;
24
- gSize: any;
25
- lgSize: any;
26
- negPre: any;
27
- posPre: any;
28
- negSuf: any;
29
- posSuf: any;
30
- },
31
- groupSep: string,
32
- decimalSep: string,
33
- fractionSize: any,
34
- ): string;
35
- /**
36
- * @returns {import('../interface.ts').FilterFn}
37
- */
38
- export function jsonFilter(): import("../interface.ts").FilterFn;
@@ -1,4 +0,0 @@
1
- /**
2
- * @returns {import('../interface.ts').FilterFn}
3
- */
4
- export function limitToFilter(): import("../interface.ts").FilterFn;
@@ -1,7 +0,0 @@
1
- /**
2
- * @returns {import('../interface.ts').FilterFn}
3
- */
4
- export function orderByFilter($parse: any): import("../interface.ts").FilterFn;
5
- export namespace orderByFilter {
6
- let $inject: string[];
7
- }
package/@types/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export const angular: Angular;
2
- import { Angular } from "./angular.js";
package/@types/ng.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * Initializes core `ng` module.
3
- * @param {import('./angular.js').Angular} angular
4
- * @returns {import('./core/di/ng-module.js').NgModule} `ng` module
5
- */
6
- export function registerNgModule(
7
- angular: import("./angular.js").Angular,
8
- ): import("./core/di/ng-module.js").NgModule;
@@ -1,66 +0,0 @@
1
- export type Category = number;
2
- export namespace Category {
3
- let RESOLVE: number;
4
- let TRANSITION: number;
5
- let HOOK: number;
6
- let UIVIEW: number;
7
- let VIEWCONFIG: number;
8
- }
9
- /**
10
- * Prints ng-router Transition trace information to the console.
11
- */
12
- export class Trace {
13
- _enabled: {};
14
- approximateDigests: number;
15
- _set(enabled: any, categories: any): void;
16
- enable(...categories: any[]): void;
17
- disable(...categories: any[]): void;
18
- /**
19
- * Retrieves the enabled stateus of a [[Category]]
20
- *
21
- * ```js
22
- * trace.enabled("VIEWCONFIG"); // true or false
23
- * ```
24
- *
25
- * @returns boolean true if the category is enabled
26
- */
27
- enabled(category: any): boolean;
28
- /** @internal called by ng-router code */
29
- traceTransitionStart(trans: any): void;
30
- /** @internal called by ng-router code */
31
- traceTransitionIgnored(trans: any): void;
32
- /** @internal called by ng-router code */
33
- traceHookInvocation(step: any, trans: any, options: any): void;
34
- /** @internal called by ng-router code */
35
- traceHookResult(hookResult: any, trans: any): void;
36
- /** @internal called by ng-router code */
37
- traceResolvePath(path: any, when: any, trans: any): void;
38
- /** @internal called by ng-router code */
39
- traceResolvableResolved(resolvable: any, trans: any): void;
40
- /** @internal called by ng-router code */
41
- traceError(reason: any, trans: any): void;
42
- /** @internal called by ng-router code */
43
- traceSuccess(finalState: any, trans: any): void;
44
- /** @internal called by ng-router code */
45
- traceUIViewEvent(event: any, viewData: any, extra?: string): void;
46
- /** @internal called by ng-router code */
47
- traceUIViewConfigUpdated(viewData: any, context: any): void;
48
- /** @internal called by ng-router code */
49
- traceUIViewFill(viewData: any, html: any): void;
50
- /** @internal called by ng-router code */
51
- traceViewSync(pairs: any): void;
52
- /** @internal called by ng-router code */
53
- traceViewServiceEvent(event: any, viewConfig: any): void;
54
- /** @internal called by ng-router code */
55
- traceViewServiceUIViewEvent(event: any, viewData: any): void;
56
- }
57
- /**
58
- * The [[Trace]] singleton
59
- *
60
- * #### Example:
61
- * ```js
62
- * import {trace} from "@uirouter/core/index";
63
- * trace.enable(1, 5);
64
- * ```
65
- */
66
- export const trace: Trace;
@@ -1,46 +0,0 @@
1
- export function $StateRefDirective(
2
- $stateService: any,
3
- $stateRegistry: any,
4
- $transitions: any,
5
- ): {
6
- restrict: string;
7
- require: string[];
8
- link: (scope: any, element: any, attrs: any, ngSrefActive: any) => void;
9
- };
10
- export namespace $StateRefDirective {
11
- let $inject: string[];
12
- }
13
- /**
14
- * @param $state
15
- * @param $stateRegistry
16
- * @param $transitions
17
- * @returns {import("../../interface.ts").Directive}
18
- */
19
- export function $StateRefDynamicDirective(
20
- $state: any,
21
- $stateRegistry: any,
22
- $transitions: any,
23
- ): import("../../interface.ts").Directive;
24
- export namespace $StateRefDynamicDirective {
25
- let $inject_1: string[];
26
- export { $inject_1 as $inject };
27
- }
28
- /**
29
- * @param {*} $state
30
- * @param {import('../router.js').Router} $router
31
- * @param {*} $interpolate
32
- * @param {*} $stateRegistry
33
- * @param {*} $transitions
34
- * @returns {import("../../interface.ts").Directive}
35
- */
36
- export function $StateRefActiveDirective(
37
- $state: any,
38
- $router: import("../router.js").Router,
39
- $interpolate: any,
40
- $stateRegistry: any,
41
- $transitions: any,
42
- ): import("../../interface.ts").Directive;
43
- export namespace $StateRefActiveDirective {
44
- let $inject_2: string[];
45
- export { $inject_2 as $inject };
46
- }