@angular-wave/angular.ts 0.0.23 → 0.0.25
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/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/compile.js +2 -3
- package/src/core/parser/parse.js +2 -3
- package/src/router/directives/{stateDirectives.js → state-directives.js} +1 -2
- package/src/router/directives/{viewDirective.js → view-directive.js} +1 -1
- package/src/router/globals.js +1 -1
- package/src/router/hooks/{ignoredTransition.js → ignored-transition.js} +1 -1
- package/src/router/hooks/{redirectTo.js → redirect-to.js} +1 -1
- package/src/router/hooks/resolve.js +1 -1
- package/src/router/index.js +7 -9
- package/src/router/{locationServices.js → location-services.js} +3 -27
- package/src/router/params/{paramTypes.js → param-types.js} +3 -4
- package/src/router/params/param.js +1 -1
- package/src/router/path/{pathUtils.js → path-utils.js} +2 -2
- package/src/router/resolve/resolvable.js +2 -2
- package/src/router/resolve/{resolveContext.js → resolve-context.js} +1 -1
- package/src/router/router.js +11 -9
- package/src/router/services.js +25 -4
- package/src/router/state/{stateBuilder.js → state-builder.js} +2 -3
- package/src/router/state/{stateQueueManager.js → state-queue-manager.js} +2 -1
- package/src/router/state/{stateRegistry.js → state-registry.js} +3 -3
- package/src/router/state/{stateService.js → state-service.js} +8 -7
- package/src/router/state/views.js +1 -1
- package/src/router/{templateFactory.js → template-factory.js} +84 -48
- package/src/router/transition/{hookBuilder.js → hook-builder.js} +3 -3
- package/src/router/transition/{transitionEventType.js → transition-event-type.js} +1 -1
- package/src/router/transition/{transitionHook.js → transition-hook.js} +2 -2
- package/src/router/transition/{transitionService.js → transition-service.js} +12 -46
- package/src/router/transition/transition.js +8 -40
- package/src/router/url/{urlConfig.js → url-config.js} +1 -1
- package/src/router/url/{urlMatcherFactory.js → url-matcher-factory.js} +1 -1
- package/src/router/url/{urlMatcher.js → url-matcher.js} +0 -2
- package/src/router/url/{urlRouter.js → url-router.js} +1 -5
- package/src/router/url/{urlRule.js → url-rule.js} +4 -4
- package/src/router/url/{urlRules.js → url-rules.js} +3 -4
- package/src/router/url/{urlService.js → url-service.js} +10 -6
- package/src/router/view/view.js +1 -5
- package/src/shared/common.js +0 -2
- package/src/shared/strings.js +2 -2
- package/test/router/view.spec.js +5 -5
- package/test/test-utils.js +9 -0
- package/types/router/legacy/resolveService.d.ts +1 -1
- package/types/router/statebuilders/onEnterExitRetain.d.ts +1 -1
- package/types/router/statebuilders/views.d.ts +1 -2
- /package/src/router/hooks/{coreResolvables.js → core-resolvables.js} +0 -0
- /package/src/router/hooks/{invalidTransition.js → invalid-transition.js} +0 -0
- /package/src/router/hooks/{lazyLoad.js → lazy-load.js} +0 -0
- /package/src/router/hooks/{onEnterExitRetain.js → on-enter-exit-retain.js} +0 -0
- /package/src/router/hooks/{updateGlobals.js → update-globals.js} +0 -0
- /package/src/router/params/{paramType.js → param-type.js} +0 -0
- /package/src/router/params/{stateParams.js → state-params.js} +0 -0
- /package/src/router/path/{pathNode.js → path-node.js} +0 -0
- /package/src/router/state/{stateMatcher.js → state-matcher.js} +0 -0
- /package/src/router/state/{stateObject.js → state-object.js} +0 -0
- /package/src/router/state/{targetState.js → target-state.js} +0 -0
- /package/src/router/{stateFilters.js → state-filters.js} +0 -0
- /package/src/router/{stateProvider.js → state-provider.js} +0 -0
- /package/src/router/transition/{hookRegistry.js → hook-registry.js} +0 -0
- /package/src/router/transition/{rejectFactory.js → reject-factory.js} +0 -0
- /package/src/router/{viewScroll.js → view-scroll.js} +0 -0
package/test/test-utils.js
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { jqLite } from "../src/jqLite";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @param {HTMLElement} element
|
|
5
|
+
* @param {string} event
|
|
6
|
+
*/
|
|
3
7
|
export function browserTrigger(element, event) {
|
|
4
8
|
jqLite(element)[0].dispatchEvent(
|
|
5
9
|
new Event(event, { bubbles: true, cancelable: true }),
|
|
6
10
|
);
|
|
7
11
|
}
|
|
8
12
|
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param {number} t milliseconds to wait
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
9
18
|
export function wait(t) {
|
|
10
19
|
return new Promise((resolve, _) => setTimeout(resolve, t));
|
|
11
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @publicapi @module ng1 */ /** */
|
|
2
|
-
import { StateObject, TransitionStateHookFn } from "
|
|
2
|
+
import { StateObject, TransitionStateHookFn } from "../core";
|
|
3
3
|
/**
|
|
4
4
|
* This is a [[StateBuilder.builder]] function for angular1 `onEnter`, `onExit`,
|
|
5
5
|
* `onRetain` callback hooks on a [[Ng1StateDeclaration]].
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** @publicapi @module ng1 */ /** */
|
|
2
1
|
import {
|
|
3
2
|
StateObject,
|
|
4
3
|
ViewConfig,
|
|
@@ -6,7 +5,7 @@ import {
|
|
|
6
5
|
PathNode,
|
|
7
6
|
ResolveContext,
|
|
8
7
|
IInjectable,
|
|
9
|
-
} from "
|
|
8
|
+
} from "../core";
|
|
10
9
|
import { Ng1ViewDeclaration } from "../interface";
|
|
11
10
|
import { TemplateFactory } from "../templateFactory";
|
|
12
11
|
/** @internalapi */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|