@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.
- package/@types/core/scope/scope.d.ts +1 -4
- package/@types/interface.d.ts +17 -3
- package/@types/shared/interface.d.ts +17 -0
- package/@types/shared/utils.d.ts +4 -19
- package/dist/angular-ts.esm.js +42 -160
- package/dist/angular-ts.umd.js +42 -160
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/layouts/shortcodes/version.html +1 -1
- package/docs/static/typedoc/assets/hierarchy.js +1 -1
- package/docs/static/typedoc/assets/main.js +2 -2
- package/docs/static/typedoc/assets/navigation.js +1 -1
- package/docs/static/typedoc/assets/search.js +1 -1
- package/docs/static/typedoc/assets/style.css +2 -9
- package/docs/static/typedoc/classes/Location.html +20 -20
- package/docs/static/typedoc/classes/LocationProvider.html +5 -5
- package/docs/static/typedoc/classes/LogProvider.html +3 -3
- package/docs/static/typedoc/classes/PubSub.html +21 -21
- package/docs/static/typedoc/classes/PubSubProvider.html +1 -1
- package/docs/static/typedoc/classes/TemplateCacheProvider.html +2 -2
- package/docs/static/typedoc/hierarchy.html +1 -1
- package/docs/static/typedoc/index.html +1 -1
- package/docs/static/typedoc/interfaces/ChangesObject.html +3 -3
- package/docs/static/typedoc/interfaces/ComponentOptions.html +8 -8
- package/docs/static/typedoc/interfaces/Controller.html +6 -6
- package/docs/static/typedoc/interfaces/DefaultPorts.html +1 -1
- package/docs/static/typedoc/interfaces/Directive.html +18 -18
- package/docs/static/typedoc/interfaces/DirectivePrePost.html +1 -1
- package/docs/static/typedoc/interfaces/Html5Mode.html +1 -1
- package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +7 -7
- package/docs/static/typedoc/interfaces/HttpService.html +21 -21
- package/docs/static/typedoc/interfaces/LogService.html +6 -6
- package/docs/static/typedoc/interfaces/NgModelController.html +15 -15
- package/docs/static/typedoc/interfaces/NgModelOptions.html +8 -8
- package/docs/static/typedoc/interfaces/Provider.html +17 -17
- package/docs/static/typedoc/interfaces/RequestConfig.html +15 -15
- package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +11 -11
- package/docs/static/typedoc/interfaces/ServiceProvider.html +1 -1
- package/docs/static/typedoc/interfaces/TemplateCache.html +1 -1
- package/docs/static/typedoc/interfaces/TranscludeFunctionObject.html +4 -4
- package/docs/static/typedoc/interfaces/UrlParts.html +4 -4
- package/docs/static/typedoc/types/AnnotatedFactory.html +1 -1
- package/docs/static/typedoc/types/CloneAttachFunction.html +1 -1
- package/docs/static/typedoc/types/ControllerConstructor.html +1 -1
- package/docs/static/typedoc/types/DirectiveCompileFn.html +1 -1
- package/docs/static/typedoc/types/DirectiveController.html +1 -1
- package/docs/static/typedoc/types/DirectiveFactoryFn.html +1 -1
- package/docs/static/typedoc/types/DirectiveLinkFn.html +1 -1
- package/docs/static/typedoc/types/Expression.html +1 -1
- package/docs/static/typedoc/types/FilterFactory.html +1 -1
- package/docs/static/typedoc/types/FilterFn.html +1 -1
- package/docs/static/typedoc/types/Injectable.html +1 -1
- package/docs/static/typedoc/types/InjectableFactory.html +1 -1
- package/docs/static/typedoc/types/LogCall.html +1 -1
- package/docs/static/typedoc/types/LogServiceFactory.html +1 -1
- package/docs/static/typedoc/types/OnChangesObject.html +1 -1
- package/docs/static/typedoc/types/SwapModeType.html +1 -1
- package/docs/static/typedoc/types/TController.html +1 -1
- package/docs/static/typedoc/types/UrlChangeListener.html +4 -4
- package/docs/static/typedoc/variables/SwapMode.html +10 -10
- package/legacy.d.ts +0 -82
- package/package.json +2 -2
- package/src/animations/animate-js.js +2 -1
- package/src/animations/animate-queue.js +7 -6
- package/src/core/parse/interpreter.js +11 -6
- package/src/core/parse/parse.spec.js +6 -8
- package/src/core/scope/scope.js +10 -12
- package/src/core/scope/scope.spec.js +4 -4
- package/src/directive/http/form-router-test.html +44 -0
- package/src/directive/options/options-example.html +7 -3
- package/src/directive/options/options.js +1 -0
- package/src/directive/options/options.spec.js +117 -170
- package/src/interface.ts +20 -3
- package/src/router/directives/view-directive.js +0 -1
- package/src/router/directives/view-directive.spec.js +10 -9
- package/src/router/resolve/resolve-context.js +0 -19
- package/src/router/state/state-registry.js +3 -10
- package/src/router/state/state-service.js +5 -5
- package/src/router/transition/transition.js +1 -86
- package/src/router/view-hook.spec.js +1 -1
- package/src/shared/interface.ts +19 -0
- package/src/shared/utils.js +3 -12
- package/tsconfig.types.json +2 -2
- package/@types/angular.d.ts +0 -150
- package/@types/animations/animate-cache.d.ts +0 -50
- package/@types/animations/animate-children-directive.d.ts +0 -10
- package/@types/animations/animate-css-driver.d.ts +0 -18
- package/@types/animations/animate-css.d.ts +0 -18
- package/@types/animations/animate-js-driver.d.ts +0 -14
- package/@types/animations/animate-js.d.ts +0 -23
- package/@types/animations/animate-queue.d.ts +0 -28
- package/@types/animations/animate-runner.d.ts +0 -31
- package/@types/animations/animate-swap.d.ts +0 -9
- package/@types/animations/animate.d.ts +0 -450
- package/@types/animations/animation.d.ts +0 -14
- package/@types/animations/interface.d.ts +0 -17
- package/@types/animations/raf-scheduler.d.ts +0 -37
- package/@types/animations/shared.d.ts +0 -74
- package/@types/core/compile/compile.d.ts +0 -201
- package/@types/core/controller/controller.d.ts +0 -54
- package/@types/core/di/injector.d.ts +0 -22
- package/@types/core/filter/filter.d.ts +0 -23
- package/@types/core/interpolate/interpolate.d.ts +0 -38
- package/@types/core/parse/ast/ast-node.d.ts +0 -56
- package/@types/core/parse/ast/ast.d.ts +0 -164
- package/@types/core/parse/lexer/lexer.d.ts +0 -119
- package/@types/core/parse/lexer/token.d.ts +0 -17
- package/@types/core/parse/parse.d.ts +0 -33
- package/@types/core/parse/parser/parser.d.ts +0 -41
- package/@types/core/sanitize/interface.d.ts +0 -10
- package/@types/core/sanitize/sanitize-uri.d.ts +0 -40
- package/@types/directive/aria/aria.d.ts +0 -104
- package/@types/directive/attrs/attrs.d.ts +0 -8
- package/@types/directive/bind/bind.d.ts +0 -18
- package/@types/directive/channel/channel.d.ts +0 -10
- package/@types/directive/class/class.d.ts +0 -3
- package/@types/directive/cloak/cloak.d.ts +0 -4
- package/@types/directive/controller/controller.d.ts +0 -4
- package/@types/directive/events/events.d.ts +0 -21
- package/@types/directive/form/form.d.ts +0 -264
- package/@types/directive/http/http.d.ts +0 -46
- package/@types/directive/if/if.d.ts +0 -10
- package/@types/directive/include/include.d.ts +0 -28
- package/@types/directive/init/init.d.ts +0 -4
- package/@types/directive/input/input.d.ts +0 -70
- package/@types/directive/messages/messages.d.ts +0 -63
- package/@types/directive/model/model.d.ts +0 -515
- package/@types/directive/model-options/model-options.d.ts +0 -56
- package/@types/directive/non-bindable/non-bindable.d.ts +0 -4
- package/@types/directive/observe/observe.d.ts +0 -9
- package/@types/directive/options/options.d.ts +0 -13
- package/@types/directive/ref/ref.d.ts +0 -11
- package/@types/directive/repeat/repeat.d.ts +0 -11
- package/@types/directive/script/script.d.ts +0 -10
- package/@types/directive/select/select.d.ts +0 -15
- package/@types/directive/setter/setter.d.ts +0 -12
- package/@types/directive/show-hide/show-hide.d.ts +0 -19
- package/@types/directive/style/style.d.ts +0 -4
- package/@types/directive/switch/switch.d.ts +0 -18
- package/@types/directive/transclude/transclude.d.ts +0 -10
- package/@types/directive/validators/validators.d.ts +0 -149
- package/@types/filters/filter.d.ts +0 -4
- package/@types/filters/filters.d.ts +0 -38
- package/@types/filters/limit-to.d.ts +0 -4
- package/@types/filters/order-by.d.ts +0 -7
- package/@types/index.d.ts +0 -2
- package/@types/ng.d.ts +0 -8
- package/@types/router/common/trace.d.ts +0 -66
- package/@types/router/directives/state-directives.d.ts +0 -46
- package/@types/router/directives/view-directive.d.ts +0 -138
- package/@types/router/glob/glob.d.ts +0 -81
- package/@types/router/hooks/core-resolvables.d.ts +0 -2
- package/@types/router/hooks/ignored-transition.d.ts +0 -1
- package/@types/router/hooks/invalid-transition.d.ts +0 -1
- package/@types/router/hooks/lazy-load.d.ts +0 -42
- package/@types/router/hooks/on-enter-exit-retain.d.ts +0 -3
- package/@types/router/hooks/redirect-to.d.ts +0 -4
- package/@types/router/hooks/resolve.d.ts +0 -4
- package/@types/router/hooks/update-globals.d.ts +0 -1
- package/@types/router/hooks/url.d.ts +0 -5
- package/@types/router/hooks/views.d.ts +0 -5
- package/@types/router/params/interface.d.ts +0 -606
- package/@types/router/params/param-factory.d.ts +0 -16
- package/@types/router/params/param-type.d.ts +0 -59
- package/@types/router/params/param-types.d.ts +0 -36
- package/@types/router/params/param.d.ts +0 -71
- package/@types/router/params/state-params.d.ts +0 -12
- package/@types/router/path/path-node.d.ts +0 -38
- package/@types/router/path/path-utils.d.ts +0 -88
- package/@types/router/resolve/interface.d.ts +0 -200
- package/@types/router/resolve/resolvable.d.ts +0 -50
- package/@types/router/resolve/resolve-context.d.ts +0 -102
- package/@types/router/router.d.ts +0 -47
- package/@types/router/state/interface.d.ts +0 -983
- package/@types/router/state/state-builder.d.ts +0 -95
- package/@types/router/state/state-matcher.d.ts +0 -7
- package/@types/router/state/state-object.d.ts +0 -83
- package/@types/router/state/state-queue-manager.d.ts +0 -29
- package/@types/router/state/state-registry.d.ts +0 -134
- package/@types/router/state/state-service.d.ts +0 -419
- package/@types/router/state/target-state.d.ts +0 -102
- package/@types/router/state/views.d.ts +0 -58
- package/@types/router/state-filters.d.ts +0 -39
- package/@types/router/template-factory.d.ts +0 -117
- package/@types/router/transition/hook-builder.d.ts +0 -45
- package/@types/router/transition/hook-registry.d.ts +0 -102
- package/@types/router/transition/interface.d.ts +0 -880
- package/@types/router/transition/reject-factory.d.ts +0 -43
- package/@types/router/transition/transition-event-type.d.ts +0 -24
- package/@types/router/transition/transition-hook.d.ts +0 -86
- package/@types/router/transition/transition-service.d.ts +0 -116
- package/@types/router/transition/transition.d.ts +0 -396
- package/@types/router/url/url-config.d.ts +0 -99
- package/@types/router/url/url-matcher.d.ts +0 -174
- package/@types/router/url/url-rule.d.ts +0 -161
- package/@types/router/url/url-rules.d.ts +0 -249
- package/@types/router/url/url-service.d.ts +0 -254
- package/@types/router/view/interface.d.ts +0 -44
- package/@types/router/view/view.d.ts +0 -149
- package/@types/router/view-scroll.d.ts +0 -10
- package/@types/services/anchor-scroll.d.ts +0 -25
- package/@types/services/cookie-reader.d.ts +0 -4
- package/@types/services/http/http.d.ts +0 -134
- package/@types/services/http-backend/http-backend.d.ts +0 -58
- package/@types/services/sce/sce.d.ts +0 -238
- package/@types/services/template-request.d.ts +0 -55
- package/@types/shared/common.d.ts +0 -197
- package/@types/shared/hof.d.ts +0 -108
- package/@types/shared/predicates.d.ts +0 -17
- package/@types/shared/queue.d.ts +0 -64
- package/@types/shared/strings.d.ts +0 -58
- package/@types/shared/test-utils.d.ts +0 -18
- package/docs/static/typedoc/classes/NgModule.html +0 -32
- 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,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
|
-
/**
|
|
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,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,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;
|
package/@types/index.d.ts
DELETED
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
|
-
}
|