@angular-wave/angular.ts 0.0.28 → 0.0.30

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 (80) hide show
  1. package/dist/angular-ts.esm.js +1 -1
  2. package/dist/angular-ts.umd.js +1 -1
  3. package/index.html +2 -2
  4. package/package.json +1 -1
  5. package/src/core/controller.js +3 -0
  6. package/src/directive/controller.js +0 -56
  7. package/src/directive/controller.md +46 -0
  8. package/src/router/common/trace.js +7 -7
  9. package/src/router/directives/state-directives.js +75 -75
  10. package/src/router/directives/view-directive.js +21 -21
  11. package/src/router/hooks/update-globals.js +1 -1
  12. package/src/router/index.js +12 -12
  13. package/src/router/injectables.js +11 -11
  14. package/src/router/resolve/resolve-context.js +1 -1
  15. package/src/router/router.js +8 -77
  16. package/src/router/services.js +5 -43
  17. package/src/router/state/state-builder.js +1 -0
  18. package/src/router/state/state-object.js +1 -1
  19. package/src/router/state/state-registry.js +56 -3
  20. package/src/router/state/state-service.js +16 -25
  21. package/src/router/state/target-state.js +1 -1
  22. package/src/router/state/views.js +5 -5
  23. package/src/router/state-filters.js +0 -2
  24. package/src/router/state-provider.js +0 -2
  25. package/src/router/template-factory.js +4 -4
  26. package/src/router/transition/transition-service.js +2 -3
  27. package/src/router/url/url-config.js +0 -2
  28. package/src/router/url/url-matcher-factory.js +0 -1
  29. package/src/router/url/url-matcher.js +0 -8
  30. package/src/router/url/url-router.js +4 -0
  31. package/src/router/url/url-service.js +6 -6
  32. package/src/router/view/view.js +67 -65
  33. package/src/services/browser.js +1 -5
  34. package/src/shared/common.js +1 -1
  35. package/test/core/pubsub.spec.js +73 -0
  36. package/test/module-test.html +5 -5
  37. package/test/original-test.html +3 -3
  38. package/test/router/services.spec.js +1 -1
  39. package/test/router/state-directives.spec.js +72 -80
  40. package/test/router/state-filter.spec.js +6 -4
  41. package/test/router/state.spec.js +15 -13
  42. package/test/router/template-factory.spec.js +4 -4
  43. package/test/router/url-matcher-factory.spec.js +2 -2
  44. package/test/router/view-directive.spec.js +165 -163
  45. package/test/router/view-hook.spec.js +2 -2
  46. package/test/router/view-scroll.spec.js +14 -14
  47. package/test/router/view.spec.js +2 -2
  48. package/types/router/core/common/coreservices.d.ts +2 -2
  49. package/types/router/core/common/trace.d.ts +7 -7
  50. package/types/router/core/globals.d.ts +2 -1
  51. package/types/router/core/interface.d.ts +3 -10
  52. package/types/router/core/params/interface.d.ts +3 -3
  53. package/types/router/core/resolve/resolveContext.d.ts +4 -4
  54. package/types/router/core/router.d.ts +5 -51
  55. package/types/router/core/state/interface.d.ts +12 -12
  56. package/types/router/core/state/stateObject.d.ts +1 -1
  57. package/types/router/core/state/stateQueueManager.d.ts +2 -2
  58. package/types/router/core/state/stateRegistry.d.ts +5 -4
  59. package/types/router/core/state/stateService.d.ts +13 -13
  60. package/types/router/core/state/targetState.d.ts +1 -1
  61. package/types/router/core/transition/interface.d.ts +2 -2
  62. package/types/router/core/transition/transition.d.ts +12 -12
  63. package/types/router/core/transition/transitionService.d.ts +5 -5
  64. package/types/router/core/url/interface.d.ts +3 -3
  65. package/types/router/core/url/urlConfig.d.ts +3 -3
  66. package/types/router/core/url/urlMatcherFactory.d.ts +3 -3
  67. package/types/router/core/url/urlRouter.d.ts +2 -2
  68. package/types/router/core/url/urlRule.d.ts +6 -6
  69. package/types/router/core/url/urlRules.d.ts +6 -6
  70. package/types/router/core/url/urlService.d.ts +8 -8
  71. package/types/router/core/view/interface.d.ts +3 -3
  72. package/types/router/core/view/view.d.ts +26 -26
  73. package/types/router/directives/viewDirective.d.ts +6 -6
  74. package/types/router/interface.d.ts +8 -8
  75. package/types/router/locationServices.d.ts +3 -3
  76. package/types/router/services.d.ts +1 -1
  77. package/types/router/stateProvider.d.ts +5 -5
  78. package/types/router/statebuilders/views.d.ts +1 -1
  79. package/types/router/templateFactory.d.ts +2 -2
  80. package/types/router/viewScroll.d.ts +2 -2
@@ -12,9 +12,9 @@ import { Ng1StateDeclaration } from "./interface";
12
12
  * The `$stateProvider` works similar to Angular's v1 router, but it focuses purely
13
13
  * on state.
14
14
  *
15
- * A state corresponds to a "place" in the application in terms of the overall UI and
15
+ * A state corresponds to a "place" in the application in terms of the overall NG and
16
16
  * navigation. A state describes (via the controller / template / view properties) what
17
- * the UI looks like and does at that place.
17
+ * the NG looks like and does at that place.
18
18
  *
19
19
  * States often have things in common, and the primary way of factoring out these
20
20
  * commonalities in this model is via the state hierarchy, i.e. parent/child states aka
@@ -56,7 +56,7 @@ export declare class StateProvider {
56
56
  * - **parent** `{object}` - returns the parent state object.
57
57
  * - **data** `{object}` - returns state data, including any inherited data that is not
58
58
  * overridden by own values (if any).
59
- * - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}
59
+ * - **url** `{object}` - returns a {@link ng.router.util.type:UrlMatcher UrlMatcher}
60
60
  * or `null`.
61
61
  * - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is
62
62
  * navigable).
@@ -127,7 +127,7 @@ export declare class StateProvider {
127
127
  * <a id='template'></a>
128
128
  *
129
129
  * - **`template`** - {string|function=} - html template as a string or a function that returns
130
- * an html template as a string which should be used by the uiView directives. This property
130
+ * an html template as a string which should be used by the ngView directives. This property
131
131
  * takes precedence over templateUrl.
132
132
  *
133
133
  * If `template` is a function, it will be called with the following parameters:
@@ -138,7 +138,7 @@ export declare class StateProvider {
138
138
  * <a id='templateUrl'></a>
139
139
  *
140
140
  * - **`templateUrl`** - {string|function=} - path or function that returns a path to an html
141
- * template that should be used by uiView.
141
+ * template that should be used by ngView.
142
142
  *
143
143
  * If `templateUrl` is a function, it will be called with the following parameters:
144
144
  *
@@ -41,7 +41,7 @@ export declare class Ng1ViewConfig implements ViewConfig {
41
41
  factory: TemplateFactory,
42
42
  );
43
43
  load(): Promise<this>;
44
- getTemplate: (uiView: any, context: ResolveContext) => string;
44
+ getTemplate: (ngView: any, context: ResolveContext) => string;
45
45
  /**
46
46
  * Gets the controller for a view configuration.
47
47
  *
@@ -89,14 +89,14 @@ export declare class TemplateFactory implements TemplateFactoryProvider {
89
89
  * It analyses the component's bindings, then constructs a template that instantiates the component.
90
90
  * The template wires input and output bindings to resolves or from the parent component.
91
91
  *
92
- * @param uiView {object} The parent ui-view (for binding outputs to callbacks)
92
+ * @param ngView {object} The parent ui-view (for binding outputs to callbacks)
93
93
  * @param context The ResolveContext (for binding outputs to callbacks returned from resolves)
94
94
  * @param component {string} Component's name in camel case.
95
95
  * @param bindings An object defining the component's bindings: {foo: '<'}
96
96
  * @return {string} The template as a string: "<component-name input1='::$resolve.foo'></component-name>".
97
97
  */
98
98
  makeComponentTemplate(
99
- uiView: IAugmentedJQuery,
99
+ ngView: IAugmentedJQuery,
100
100
  context: ResolveContext,
101
101
  component: string,
102
102
  bindings?: any,
@@ -1,8 +1,8 @@
1
- export interface UIViewScrollProvider {
1
+ export interface NGViewScrollProvider {
2
2
  /**
3
3
  * Uses standard anchorScroll behavior
4
4
  *
5
- * Reverts [[$uiViewScroll]] back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
5
+ * Reverts [[$ngViewScroll]] back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
6
6
  * service for scrolling based on the url anchor.
7
7
  */
8
8
  useAnchorScroll(): void;