@angular-wave/angular.ts 0.0.21 → 0.0.23

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 (134) hide show
  1. package/Makefile +1 -1
  2. package/TODO.md +14 -0
  3. package/dist/angular-ts.esm.js +1 -1
  4. package/dist/angular-ts.umd.js +1 -1
  5. package/index.html +8 -2
  6. package/package.json +1 -1
  7. package/src/animations/animate-css-driver.js +2 -2
  8. package/src/animations/animate-css.js +15 -6
  9. package/src/animations/animate-js.js +1 -1
  10. package/src/animations/animate-queue.js +1 -1
  11. package/src/animations/shared.js +0 -14
  12. package/src/core/compile.js +6 -3
  13. package/src/directive/if.js +0 -79
  14. package/src/directive/if.md +80 -0
  15. package/src/directive/include.js +0 -82
  16. package/src/directive/include.md +86 -0
  17. package/src/directive/repeat.js +0 -1
  18. package/src/filters/order-by.js +8 -8
  19. package/src/loader.js +0 -1
  20. package/src/router/common/trace.js +1 -1
  21. package/src/router/directives/stateDirectives.js +16 -14
  22. package/src/router/directives/viewDirective.js +5 -13
  23. package/src/router/hooks/resolve.js +3 -4
  24. package/src/router/hooks/views.js +3 -2
  25. package/src/router/state/stateService.js +1 -2
  26. package/src/router/stateProvider.js +8 -0
  27. package/src/router/templateFactory.js +13 -7
  28. package/src/router/transition/interface.js +14 -14
  29. package/src/router/transition/rejectFactory.js +29 -20
  30. package/src/router/transition/transition.js +5 -1
  31. package/src/router/transition/transitionHook.js +5 -5
  32. package/src/router/url/urlMatcher.js +1 -2
  33. package/src/router/url/urlRule.js +10 -2
  34. package/src/router/url/urlRules.js +1 -1
  35. package/src/services/browser.js +3 -18
  36. package/src/shared/common.js +0 -1
  37. package/test/module-test.html +44 -12
  38. package/test/router/ng-state-builder.spec.js +81 -0
  39. package/test/router/services.spec.js +70 -0
  40. package/test/router/state-directives.spec.js +1182 -0
  41. package/test/router/template-factory.spec.js +146 -0
  42. package/test/router/url-matcher-factory.spec.js +1313 -0
  43. package/test/router/view-directive.spec.js +2013 -0
  44. package/test/router/view-hook.spec.js +217 -0
  45. package/test/router/view-scroll.spec.js +77 -0
  46. package/test/router/view.spec.js +117 -0
  47. package/types/angular.d.ts +132 -124
  48. package/types/index.d.ts +2350 -2187
  49. package/types/jqlite.d.ts +463 -418
  50. package/types/router/core/common/common.d.ts +70 -24
  51. package/types/router/core/common/coreservices.d.ts +30 -32
  52. package/types/router/core/common/glob.d.ts +9 -9
  53. package/types/router/core/common/hof.d.ts +12 -4
  54. package/types/router/core/common/index.d.ts +8 -8
  55. package/types/router/core/common/predicates.d.ts +1 -1
  56. package/types/router/core/common/queue.d.ts +13 -13
  57. package/types/router/core/common/safeConsole.d.ts +3 -3
  58. package/types/router/core/common/strings.d.ts +4 -2
  59. package/types/router/core/common/trace.d.ts +94 -82
  60. package/types/router/core/globals.d.ts +37 -37
  61. package/types/router/core/hooks/coreResolvables.d.ts +5 -3
  62. package/types/router/core/hooks/ignoredTransition.d.ts +4 -2
  63. package/types/router/core/hooks/invalidTransition.d.ts +4 -2
  64. package/types/router/core/hooks/lazyLoad.d.ts +10 -5
  65. package/types/router/core/hooks/onEnterExitRetain.d.ts +10 -4
  66. package/types/router/core/hooks/redirectTo.d.ts +4 -2
  67. package/types/router/core/hooks/resolve.d.ts +10 -4
  68. package/types/router/core/hooks/updateGlobals.d.ts +4 -2
  69. package/types/router/core/hooks/url.d.ts +4 -2
  70. package/types/router/core/hooks/views.d.ts +7 -3
  71. package/types/router/core/index.d.ts +11 -12
  72. package/types/router/core/interface.d.ts +83 -81
  73. package/types/router/core/params/index.d.ts +5 -5
  74. package/types/router/core/params/interface.d.ts +439 -439
  75. package/types/router/core/params/param.d.ts +72 -60
  76. package/types/router/core/params/paramType.d.ts +40 -40
  77. package/types/router/core/params/paramTypes.d.ts +169 -165
  78. package/types/router/core/params/stateParams.d.ts +13 -13
  79. package/types/router/core/path/index.d.ts +2 -2
  80. package/types/router/core/path/pathNode.d.ts +49 -49
  81. package/types/router/core/path/pathUtils.d.ts +100 -74
  82. package/types/router/core/resolve/index.d.ts +3 -3
  83. package/types/router/core/resolve/interface.d.ts +137 -137
  84. package/types/router/core/resolve/resolvable.d.ts +60 -54
  85. package/types/router/core/resolve/resolveContext.d.ts +84 -79
  86. package/types/router/core/router.d.ts +95 -86
  87. package/types/router/core/state/index.d.ts +8 -8
  88. package/types/router/core/state/interface.d.ts +667 -643
  89. package/types/router/core/state/stateBuilder.d.ts +41 -38
  90. package/types/router/core/state/stateMatcher.d.ts +11 -9
  91. package/types/router/core/state/stateObject.d.ts +154 -139
  92. package/types/router/core/state/stateQueueManager.d.ts +26 -21
  93. package/types/router/core/state/stateRegistry.d.ts +124 -121
  94. package/types/router/core/state/stateService.d.ts +380 -343
  95. package/types/router/core/state/targetState.d.ts +74 -69
  96. package/types/router/core/transition/hookBuilder.d.ts +34 -30
  97. package/types/router/core/transition/hookRegistry.d.ts +96 -74
  98. package/types/router/core/transition/index.d.ts +8 -8
  99. package/types/router/core/transition/interface.d.ts +652 -609
  100. package/types/router/core/transition/rejectFactory.d.ts +97 -97
  101. package/types/router/core/transition/transition.d.ts +565 -517
  102. package/types/router/core/transition/transitionEventType.d.ts +20 -11
  103. package/types/router/core/transition/transitionHook.d.ts +90 -82
  104. package/types/router/core/transition/transitionService.d.ts +228 -161
  105. package/types/router/core/url/index.d.ts +8 -8
  106. package/types/router/core/url/interface.d.ts +100 -87
  107. package/types/router/core/url/urlConfig.d.ts +130 -126
  108. package/types/router/core/url/urlMatcher.d.ts +132 -127
  109. package/types/router/core/url/urlMatcherFactory.d.ts +46 -42
  110. package/types/router/core/url/urlRouter.d.ts +91 -75
  111. package/types/router/core/url/urlRule.d.ts +123 -100
  112. package/types/router/core/url/urlRules.d.ts +240 -232
  113. package/types/router/core/url/urlService.d.ts +201 -201
  114. package/types/router/core/view/index.d.ts +2 -2
  115. package/types/router/core/view/interface.d.ts +26 -26
  116. package/types/router/core/view/view.d.ts +152 -143
  117. package/types/router/directives/viewDirective.d.ts +12 -11
  118. package/types/router/index.d.ts +11 -12
  119. package/types/router/interface.d.ts +361 -351
  120. package/types/router/legacy/resolveService.d.ts +44 -40
  121. package/types/router/legacy/stateEvents.d.ts +1 -1
  122. package/types/router/locationServices.d.ts +45 -37
  123. package/types/router/services.d.ts +9 -9
  124. package/types/router/stateFilters.d.ts +3 -3
  125. package/types/router/stateProvider.d.ts +240 -235
  126. package/types/router/statebuilders/onEnterExitRetain.d.ts +4 -2
  127. package/types/router/statebuilders/views.d.ts +35 -22
  128. package/types/router/templateFactory.d.ts +99 -79
  129. package/types/router/viewScroll.d.ts +7 -7
  130. package/src/directive/a.js +0 -37
  131. package/types/router/angular.d.ts +0 -1
  132. package/types/router/core/vanilla.d.ts +0 -1
  133. package/types/router/directives/stateDirectives.d.ts +0 -3
  134. package/types/router/injectables.d.ts +0 -1
@@ -1,8 +1,8 @@
1
- import { StateDeclaration, StateOrName, TargetStateDef } from './interface';
2
- import { TransitionOptions } from '../transition/interface';
3
- import { StateObject } from './stateObject';
4
- import { StateRegistry } from './stateRegistry';
5
- import { RawParams } from '../params';
1
+ import { StateDeclaration, StateOrName, TargetStateDef } from "./interface";
2
+ import { TransitionOptions } from "../transition/interface";
3
+ import { StateObject } from "./stateObject";
4
+ import { StateRegistry } from "./stateRegistry";
5
+ import { RawParams } from "../params";
6
6
  /**
7
7
  * Encapsulate the target (destination) state/params/options of a [[Transition]].
8
8
  *
@@ -33,68 +33,73 @@ import { RawParams } from '../params';
33
33
  * or invalid (the state being targeted is not registered).
34
34
  */
35
35
  export declare class TargetState {
36
- private _stateRegistry;
37
- private _identifier;
38
- private _definition;
39
- private _params;
40
- private _options;
41
- /** Returns true if the object has a state property that might be a state or state name */
42
- static isDef: (obj: any) => obj is TargetStateDef;
43
- /**
44
- * The TargetState constructor
45
- *
46
- * Note: Do not construct a `TargetState` manually.
47
- * To create a `TargetState`, use the [[StateService.target]] factory method.
48
- *
49
- * @param _stateRegistry The StateRegistry to use to look up the _definition
50
- * @param _identifier An identifier for a state.
51
- * Either a fully-qualified state name, or the object used to define the state.
52
- * @param _params Parameters for the target state
53
- * @param _options Transition options.
54
- *
55
- * @internal
56
- */
57
- constructor(_stateRegistry: StateRegistry, _identifier: StateOrName, _params?: RawParams, _options?: TransitionOptions);
58
- /** The name of the state this object targets */
59
- name(): string;
60
- /** The identifier used when creating this TargetState */
61
- identifier(): StateOrName;
62
- /** The target parameter values */
63
- params(): RawParams;
64
- /** The internal state object (if it was found) */
65
- $state(): StateObject;
66
- /** The internal state declaration (if it was found) */
67
- state(): StateDeclaration;
68
- /** The target options */
69
- options(): TransitionOptions;
70
- /** True if the target state was found */
71
- exists(): boolean;
72
- /** True if the object is valid */
73
- valid(): boolean;
74
- /** If the object is invalid, returns the reason why */
75
- error(): string;
76
- toString(): string;
77
- /**
78
- * Returns a copy of this TargetState which targets a different state.
79
- * The new TargetState has the same parameter values and transition options.
80
- *
81
- * @param state The new state that should be targeted
82
- */
83
- withState(state: StateOrName): TargetState;
84
- /**
85
- * Returns a copy of this TargetState, using the specified parameter values.
86
- *
87
- * @param params the new parameter values to use
88
- * @param replace When false (default) the new parameter values will be merged with the current values.
89
- * When true the parameter values will be used instead of the current values.
90
- */
91
- withParams(params: RawParams, replace?: boolean): TargetState;
92
- /**
93
- * Returns a copy of this TargetState, using the specified Transition Options.
94
- *
95
- * @param options the new options to use
96
- * @param replace When false (default) the new options will be merged with the current options.
97
- * When true the options will be used instead of the current options.
98
- */
99
- withOptions(options: TransitionOptions, replace?: boolean): TargetState;
36
+ private _stateRegistry;
37
+ private _identifier;
38
+ private _definition;
39
+ private _params;
40
+ private _options;
41
+ /** Returns true if the object has a state property that might be a state or state name */
42
+ static isDef: (obj: any) => obj is TargetStateDef;
43
+ /**
44
+ * The TargetState constructor
45
+ *
46
+ * Note: Do not construct a `TargetState` manually.
47
+ * To create a `TargetState`, use the [[StateService.target]] factory method.
48
+ *
49
+ * @param _stateRegistry The StateRegistry to use to look up the _definition
50
+ * @param _identifier An identifier for a state.
51
+ * Either a fully-qualified state name, or the object used to define the state.
52
+ * @param _params Parameters for the target state
53
+ * @param _options Transition options.
54
+ *
55
+ * @internal
56
+ */
57
+ constructor(
58
+ _stateRegistry: StateRegistry,
59
+ _identifier: StateOrName,
60
+ _params?: RawParams,
61
+ _options?: TransitionOptions,
62
+ );
63
+ /** The name of the state this object targets */
64
+ name(): string;
65
+ /** The identifier used when creating this TargetState */
66
+ identifier(): StateOrName;
67
+ /** The target parameter values */
68
+ params(): RawParams;
69
+ /** The internal state object (if it was found) */
70
+ $state(): StateObject;
71
+ /** The internal state declaration (if it was found) */
72
+ state(): StateDeclaration;
73
+ /** The target options */
74
+ options(): TransitionOptions;
75
+ /** True if the target state was found */
76
+ exists(): boolean;
77
+ /** True if the object is valid */
78
+ valid(): boolean;
79
+ /** If the object is invalid, returns the reason why */
80
+ error(): string;
81
+ toString(): string;
82
+ /**
83
+ * Returns a copy of this TargetState which targets a different state.
84
+ * The new TargetState has the same parameter values and transition options.
85
+ *
86
+ * @param state The new state that should be targeted
87
+ */
88
+ withState(state: StateOrName): TargetState;
89
+ /**
90
+ * Returns a copy of this TargetState, using the specified parameter values.
91
+ *
92
+ * @param params the new parameter values to use
93
+ * @param replace When false (default) the new parameter values will be merged with the current values.
94
+ * When true the parameter values will be used instead of the current values.
95
+ */
96
+ withParams(params: RawParams, replace?: boolean): TargetState;
97
+ /**
98
+ * Returns a copy of this TargetState, using the specified Transition Options.
99
+ *
100
+ * @param options the new options to use
101
+ * @param replace When false (default) the new options will be merged with the current options.
102
+ * When true the options will be used instead of the current options.
103
+ */
104
+ withOptions(options: TransitionOptions, replace?: boolean): TargetState;
100
105
  }
@@ -1,8 +1,8 @@
1
- import { TreeChanges, TransitionHookPhase } from './interface';
2
- import { Transition } from './transition';
3
- import { TransitionHook } from './transitionHook';
4
- import { TransitionEventType } from './transitionEventType';
5
- import { RegisteredHook } from './hookRegistry';
1
+ import { TreeChanges, TransitionHookPhase } from "./interface";
2
+ import { Transition } from "./transition";
3
+ import { TransitionHook } from "./transitionHook";
4
+ import { TransitionEventType } from "./transitionEventType";
5
+ import { RegisteredHook } from "./hookRegistry";
6
6
  /**
7
7
  * This class returns applicable TransitionHooks for a specific Transition instance.
8
8
  *
@@ -17,29 +17,33 @@ import { RegisteredHook } from './hookRegistry';
17
17
  * in the Transition class, so we must also provide the Transition's _treeChanges)
18
18
  */
19
19
  export declare class HookBuilder {
20
- private transition;
21
- constructor(transition: Transition);
22
- buildHooksForPhase(phase: TransitionHookPhase): TransitionHook[];
23
- /**
24
- * Returns an array of newly built TransitionHook objects.
25
- *
26
- * - Finds all RegisteredHooks registered for the given `hookType` which matched the transition's [[TreeChanges]].
27
- * - Finds [[PathNode]] (or `PathNode[]`) to use as the TransitionHook context(s)
28
- * - For each of the [[PathNode]]s, creates a TransitionHook
29
- *
30
- * @param hookType the type of the hook registration function, e.g., 'onEnter', 'onFinish'.
31
- */
32
- buildHooks(hookType: TransitionEventType): TransitionHook[];
33
- /**
34
- * Finds all RegisteredHooks from:
35
- * - The Transition object instance hook registry
36
- * - The TransitionService ($transitions) global hook registry
37
- *
38
- * which matched:
39
- * - the eventType
40
- * - the matchCriteria (to, from, exiting, retained, entering)
41
- *
42
- * @returns an array of matched [[RegisteredHook]]s
43
- */
44
- getMatchingHooks(hookType: TransitionEventType, treeChanges: TreeChanges, transition: Transition): RegisteredHook[];
20
+ private transition;
21
+ constructor(transition: Transition);
22
+ buildHooksForPhase(phase: TransitionHookPhase): TransitionHook[];
23
+ /**
24
+ * Returns an array of newly built TransitionHook objects.
25
+ *
26
+ * - Finds all RegisteredHooks registered for the given `hookType` which matched the transition's [[TreeChanges]].
27
+ * - Finds [[PathNode]] (or `PathNode[]`) to use as the TransitionHook context(s)
28
+ * - For each of the [[PathNode]]s, creates a TransitionHook
29
+ *
30
+ * @param hookType the type of the hook registration function, e.g., 'onEnter', 'onFinish'.
31
+ */
32
+ buildHooks(hookType: TransitionEventType): TransitionHook[];
33
+ /**
34
+ * Finds all RegisteredHooks from:
35
+ * - The Transition object instance hook registry
36
+ * - The TransitionService ($transitions) global hook registry
37
+ *
38
+ * which matched:
39
+ * - the eventType
40
+ * - the matchCriteria (to, from, exiting, retained, entering)
41
+ *
42
+ * @returns an array of matched [[RegisteredHook]]s
43
+ */
44
+ getMatchingHooks(
45
+ hookType: TransitionEventType,
46
+ treeChanges: TreeChanges,
47
+ transition: Transition,
48
+ ): RegisteredHook[];
45
49
  }
@@ -1,9 +1,16 @@
1
- import { IHookRegistry } from './interface';
2
- import { HookRegOptions, HookMatchCriteria, TreeChanges, HookMatchCriterion, IMatchingNodes, HookFn } from './interface';
3
- import { Transition } from './transition';
4
- import { StateObject } from '../state/stateObject';
5
- import { TransitionEventType } from './transitionEventType';
6
- import { TransitionService } from './transitionService';
1
+ import { IHookRegistry } from "./interface";
2
+ import {
3
+ HookRegOptions,
4
+ HookMatchCriteria,
5
+ TreeChanges,
6
+ HookMatchCriterion,
7
+ IMatchingNodes,
8
+ HookFn,
9
+ } from "./interface";
10
+ import { Transition } from "./transition";
11
+ import { StateObject } from "../state/stateObject";
12
+ import { TransitionEventType } from "./transitionEventType";
13
+ import { TransitionService } from "./transitionService";
7
14
  /**
8
15
  * Determines if the given state matches the matchCriteria
9
16
  *
@@ -17,77 +24,92 @@ import { TransitionService } from './transitionService';
17
24
  * - If a function, matchState calls the function with the state and returns true if the function's result is truthy.
18
25
  * @returns {boolean}
19
26
  */
20
- export declare function matchState(state: StateObject, criterion: HookMatchCriterion, transition: Transition): boolean;
27
+ export declare function matchState(
28
+ state: StateObject,
29
+ criterion: HookMatchCriterion,
30
+ transition: Transition,
31
+ ): boolean;
21
32
  /**
22
33
  * The registration data for a registered transition hook
23
34
  */
24
35
  export declare class RegisteredHook {
25
- tranSvc: TransitionService;
26
- eventType: TransitionEventType;
27
- callback: HookFn;
28
- matchCriteria: HookMatchCriteria;
29
- removeHookFromRegistry: (hook: RegisteredHook) => void;
30
- priority: number;
31
- bind: any;
32
- invokeCount: number;
33
- invokeLimit: number;
34
- _deregistered: boolean;
35
- constructor(tranSvc: TransitionService, eventType: TransitionEventType, callback: HookFn, matchCriteria: HookMatchCriteria, removeHookFromRegistry: (hook: RegisteredHook) => void, options?: HookRegOptions);
36
- /**
37
- * Gets the matching [[PathNode]]s
38
- *
39
- * Given an array of [[PathNode]]s, and a [[HookMatchCriterion]], returns an array containing
40
- * the [[PathNode]]s that the criteria matches, or `null` if there were no matching nodes.
41
- *
42
- * Returning `null` is significant to distinguish between the default
43
- * "match-all criterion value" of `true` compared to a `() => true` function,
44
- * when the nodes is an empty array.
45
- *
46
- * This is useful to allow a transition match criteria of `entering: true`
47
- * to still match a transition, even when `entering === []`. Contrast that
48
- * with `entering: (state) => true` which only matches when a state is actually
49
- * being entered.
50
- */
51
- private _matchingNodes;
52
- /**
53
- * Gets the default match criteria (all `true`)
54
- *
55
- * Returns an object which has all the criteria match paths as keys and `true` as values, i.e.:
56
- *
57
- * ```js
58
- * {
59
- * to: true,
60
- * from: true,
61
- * entering: true,
62
- * exiting: true,
63
- * retained: true,
64
- * }
65
- */
66
- private _getDefaultMatchCriteria;
67
- /**
68
- * Gets matching nodes as [[IMatchingNodes]]
69
- *
70
- * Create a IMatchingNodes object from the TransitionHookTypes that is roughly equivalent to:
71
- *
72
- * ```js
73
- * let matches: IMatchingNodes = {
74
- * to: _matchingNodes([tail(treeChanges.to)], mc.to),
75
- * from: _matchingNodes([tail(treeChanges.from)], mc.from),
76
- * exiting: _matchingNodes(treeChanges.exiting, mc.exiting),
77
- * retained: _matchingNodes(treeChanges.retained, mc.retained),
78
- * entering: _matchingNodes(treeChanges.entering, mc.entering),
79
- * };
80
- * ```
81
- */
82
- private _getMatchingNodes;
83
- /**
84
- * Determines if this hook's [[matchCriteria]] match the given [[TreeChanges]]
85
- *
86
- * @returns an IMatchingNodes object, or null. If an IMatchingNodes object is returned, its values
87
- * are the matching [[PathNode]]s for each [[HookMatchCriterion]] (to, from, exiting, retained, entering)
88
- */
89
- matches(treeChanges: TreeChanges, transition: Transition): IMatchingNodes;
90
- deregister(): void;
36
+ tranSvc: TransitionService;
37
+ eventType: TransitionEventType;
38
+ callback: HookFn;
39
+ matchCriteria: HookMatchCriteria;
40
+ removeHookFromRegistry: (hook: RegisteredHook) => void;
41
+ priority: number;
42
+ bind: any;
43
+ invokeCount: number;
44
+ invokeLimit: number;
45
+ _deregistered: boolean;
46
+ constructor(
47
+ tranSvc: TransitionService,
48
+ eventType: TransitionEventType,
49
+ callback: HookFn,
50
+ matchCriteria: HookMatchCriteria,
51
+ removeHookFromRegistry: (hook: RegisteredHook) => void,
52
+ options?: HookRegOptions,
53
+ );
54
+ /**
55
+ * Gets the matching [[PathNode]]s
56
+ *
57
+ * Given an array of [[PathNode]]s, and a [[HookMatchCriterion]], returns an array containing
58
+ * the [[PathNode]]s that the criteria matches, or `null` if there were no matching nodes.
59
+ *
60
+ * Returning `null` is significant to distinguish between the default
61
+ * "match-all criterion value" of `true` compared to a `() => true` function,
62
+ * when the nodes is an empty array.
63
+ *
64
+ * This is useful to allow a transition match criteria of `entering: true`
65
+ * to still match a transition, even when `entering === []`. Contrast that
66
+ * with `entering: (state) => true` which only matches when a state is actually
67
+ * being entered.
68
+ */
69
+ private _matchingNodes;
70
+ /**
71
+ * Gets the default match criteria (all `true`)
72
+ *
73
+ * Returns an object which has all the criteria match paths as keys and `true` as values, i.e.:
74
+ *
75
+ * ```js
76
+ * {
77
+ * to: true,
78
+ * from: true,
79
+ * entering: true,
80
+ * exiting: true,
81
+ * retained: true,
82
+ * }
83
+ */
84
+ private _getDefaultMatchCriteria;
85
+ /**
86
+ * Gets matching nodes as [[IMatchingNodes]]
87
+ *
88
+ * Create a IMatchingNodes object from the TransitionHookTypes that is roughly equivalent to:
89
+ *
90
+ * ```js
91
+ * let matches: IMatchingNodes = {
92
+ * to: _matchingNodes([tail(treeChanges.to)], mc.to),
93
+ * from: _matchingNodes([tail(treeChanges.from)], mc.from),
94
+ * exiting: _matchingNodes(treeChanges.exiting, mc.exiting),
95
+ * retained: _matchingNodes(treeChanges.retained, mc.retained),
96
+ * entering: _matchingNodes(treeChanges.entering, mc.entering),
97
+ * };
98
+ * ```
99
+ */
100
+ private _getMatchingNodes;
101
+ /**
102
+ * Determines if this hook's [[matchCriteria]] match the given [[TreeChanges]]
103
+ *
104
+ * @returns an IMatchingNodes object, or null. If an IMatchingNodes object is returned, its values
105
+ * are the matching [[PathNode]]s for each [[HookMatchCriterion]] (to, from, exiting, retained, entering)
106
+ */
107
+ matches(treeChanges: TreeChanges, transition: Transition): IMatchingNodes;
108
+ deregister(): void;
91
109
  }
92
110
  /** Return a registration function of the requested type. */
93
- export declare function makeEvent(registry: IHookRegistry, transitionService: TransitionService, eventType: TransitionEventType): (matchObject: any, callback: any, options?: {}) => any;
111
+ export declare function makeEvent(
112
+ registry: IHookRegistry,
113
+ transitionService: TransitionService,
114
+ eventType: TransitionEventType,
115
+ ): (matchObject: any, callback: any, options?: {}) => any;
@@ -10,11 +10,11 @@
10
10
  *
11
11
  * @packageDocumentation @preferred
12
12
  */
13
- export * from './interface';
14
- export * from './hookBuilder';
15
- export * from './hookRegistry';
16
- export * from './rejectFactory';
17
- export * from './transition';
18
- export * from './transitionHook';
19
- export * from './transitionEventType';
20
- export * from './transitionService';
13
+ export * from "./interface";
14
+ export * from "./hookBuilder";
15
+ export * from "./hookRegistry";
16
+ export * from "./rejectFactory";
17
+ export * from "./transition";
18
+ export * from "./transitionHook";
19
+ export * from "./transitionEventType";
20
+ export * from "./transitionService";