@angular-wave/angular.ts 0.0.59 → 0.0.61

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 (123) hide show
  1. package/README.md +3 -0
  2. package/dist/angular-ts.esm.js +2 -2
  3. package/dist/angular-ts.umd.js +2 -2
  4. package/package.json +5 -1
  5. package/src/core/parser/lexer.html +18 -0
  6. package/src/core/parser/lexer.spec.js +300 -0
  7. package/src/core/parser/parse.js +19 -0
  8. package/src/core/parser/parser.js +1 -1
  9. package/src/core/parser/parser.test.js +19 -0
  10. package/src/core/q/q.js +46 -289
  11. package/src/core/q/q.md +229 -0
  12. package/src/core/sanitize/sanitize-uri.js +2 -3
  13. package/src/core/scope/scope.js +18 -8
  14. package/src/directive/if/if.js +6 -1
  15. package/src/filters/limit-to.js +5 -2
  16. package/src/loader.js +1 -5
  17. package/src/router/params/param-type.js +2 -1
  18. package/src/router/state/views.js +3 -0
  19. package/src/router/transition/reject-factory.js +1 -0
  20. package/src/router/url/url-rule.js +1 -1
  21. package/src/router/url/url-service.js +4 -4
  22. package/src/services/http/http.js +7 -5
  23. package/src/services/template-request.js +2 -7
  24. package/src/shared/common.js +1 -1
  25. package/src/shared/utils.js +1 -1
  26. package/src/types.js +9 -1
  27. package/types/core/parser/parse.d.ts +3 -4
  28. package/types/core/parser/parser.d.ts +1 -1
  29. package/types/core/q/q.d.ts +2 -2
  30. package/types/core/sanitize/sanitize-uri.d.ts +4 -5
  31. package/types/core/scope/scope.d.ts +19 -7
  32. package/types/loader.d.ts +0 -4
  33. package/types/router/params/param-type.d.ts +2 -1
  34. package/types/router/state/views.d.ts +2 -0
  35. package/types/router/transition/reject-factory.d.ts +1 -0
  36. package/types/router/url/url-rule.d.ts +0 -1
  37. package/types/router/url/url-service.d.ts +7 -7
  38. package/types/services/template-request.d.ts +4 -9
  39. package/types/types.d.ts +6 -1
  40. package/src/core/parser/parse.test.js +0 -12
  41. package/types-back/README.md +0 -2
  42. package/types-back/angular.d.ts +0 -146
  43. package/types-back/index.d.ts +0 -2126
  44. package/types-back/jqlite.d.ts +0 -374
  45. package/types-back/router/core/common/common.d.ts +0 -416
  46. package/types-back/router/core/common/coreservices.d.ts +0 -77
  47. package/types-back/router/core/common/glob.d.ts +0 -60
  48. package/types-back/router/core/common/hof.d.ts +0 -168
  49. package/types-back/router/core/common/index.d.ts +0 -8
  50. package/types-back/router/core/common/predicates.d.ts +0 -25
  51. package/types-back/router/core/common/queue.d.ts +0 -15
  52. package/types-back/router/core/common/safeConsole.d.ts +0 -5
  53. package/types-back/router/core/common/strings.d.ts +0 -66
  54. package/types-back/router/core/common/trace.d.ts +0 -126
  55. package/types-back/router/core/globals.d.ts +0 -43
  56. package/types-back/router/core/hooks/coreResolvables.d.ts +0 -6
  57. package/types-back/router/core/hooks/ignoredTransition.d.ts +0 -4
  58. package/types-back/router/core/hooks/invalidTransition.d.ts +0 -4
  59. package/types-back/router/core/hooks/lazyLoad.d.ts +0 -17
  60. package/types-back/router/core/hooks/onEnterExitRetain.d.ts +0 -10
  61. package/types-back/router/core/hooks/redirectTo.d.ts +0 -4
  62. package/types-back/router/core/hooks/resolve.d.ts +0 -11
  63. package/types-back/router/core/hooks/updateGlobals.d.ts +0 -4
  64. package/types-back/router/core/hooks/url.d.ts +0 -4
  65. package/types-back/router/core/hooks/views.d.ts +0 -7
  66. package/types-back/router/core/index.d.ts +0 -11
  67. package/types-back/router/core/interface.d.ts +0 -91
  68. package/types-back/router/core/params/index.d.ts +0 -12
  69. package/types-back/router/core/params/interface.d.ts +0 -606
  70. package/types-back/router/core/params/param.d.ts +0 -77
  71. package/types-back/router/core/params/paramType.d.ts +0 -65
  72. package/types-back/router/core/params/paramTypes.d.ts +0 -193
  73. package/types-back/router/core/params/stateParams.d.ts +0 -15
  74. package/types-back/router/core/path/index.d.ts +0 -2
  75. package/types-back/router/core/path/pathNode.d.ts +0 -60
  76. package/types-back/router/core/path/pathUtils.d.ts +0 -105
  77. package/types-back/router/core/resolve/index.d.ts +0 -3
  78. package/types-back/router/core/resolve/interface.d.ts +0 -210
  79. package/types-back/router/core/resolve/resolvable.d.ts +0 -75
  80. package/types-back/router/core/resolve/resolveContext.d.ts +0 -97
  81. package/types-back/router/core/router.d.ts +0 -57
  82. package/types-back/router/core/state/index.d.ts +0 -28
  83. package/types-back/router/core/state/interface.d.ts +0 -732
  84. package/types-back/router/core/state/stateBuilder.d.ts +0 -107
  85. package/types-back/router/core/state/stateMatcher.d.ts +0 -13
  86. package/types-back/router/core/state/stateObject.d.ts +0 -170
  87. package/types-back/router/core/state/stateQueueManager.d.ts +0 -27
  88. package/types-back/router/core/state/stateRegistry.d.ts +0 -138
  89. package/types-back/router/core/state/stateService.d.ts +0 -386
  90. package/types-back/router/core/state/targetState.d.ts +0 -105
  91. package/types-back/router/core/transition/hookBuilder.d.ts +0 -49
  92. package/types-back/router/core/transition/hookRegistry.d.ts +0 -115
  93. package/types-back/router/core/transition/index.d.ts +0 -20
  94. package/types-back/router/core/transition/interface.d.ts +0 -862
  95. package/types-back/router/core/transition/rejectFactory.d.ts +0 -103
  96. package/types-back/router/core/transition/transition.d.ts +0 -575
  97. package/types-back/router/core/transition/transitionEventType.d.ts +0 -26
  98. package/types-back/router/core/transition/transitionHook.d.ts +0 -96
  99. package/types-back/router/core/transition/transitionService.d.ts +0 -253
  100. package/types-back/router/core/url/index.d.ts +0 -8
  101. package/types-back/router/core/url/interface.d.ts +0 -169
  102. package/types-back/router/core/url/urlConfig.d.ts +0 -144
  103. package/types-back/router/core/url/urlMatcher.d.ts +0 -185
  104. package/types-back/router/core/url/urlMatcherFactory.d.ts +0 -56
  105. package/types-back/router/core/url/urlRouter.d.ts +0 -101
  106. package/types-back/router/core/url/urlRule.d.ts +0 -143
  107. package/types-back/router/core/url/urlRules.d.ts +0 -251
  108. package/types-back/router/core/url/urlService.d.ts +0 -205
  109. package/types-back/router/core/view/index.d.ts +0 -2
  110. package/types-back/router/core/view/interface.d.ts +0 -46
  111. package/types-back/router/core/view/view.d.ts +0 -176
  112. package/types-back/router/directives/viewDirective.d.ts +0 -144
  113. package/types-back/router/index.d.ts +0 -17
  114. package/types-back/router/interface.d.ts +0 -500
  115. package/types-back/router/legacy/resolveService.d.ts +0 -47
  116. package/types-back/router/legacy/stateEvents.d.ts +0 -124
  117. package/types-back/router/services.d.ts +0 -15
  118. package/types-back/router/stateFilters.d.ts +0 -10
  119. package/types-back/router/stateProvider.d.ts +0 -258
  120. package/types-back/router/statebuilders/onEnterExitRetain.d.ts +0 -13
  121. package/types-back/router/statebuilders/views.d.ts +0 -53
  122. package/types-back/router/templateFactory.d.ts +0 -104
  123. package/types-back/router/viewScroll.d.ts +0 -9
@@ -1,146 +0,0 @@
1
- ///////////////////////////////////////////////////////////////////////////
2
- // AngularStatic
3
- // see http://docs.angularjs.org/api
4
-
5
- import {
6
- IAngularBootstrapConfig,
7
- IErrorHandlingConfig,
8
- IModule,
9
- Injectable,
10
- auto,
11
- } from ".";
12
-
13
- ///////////////////////////////////////////////////////////////////////////
14
- interface IAngularStatic {
15
- /**
16
- * Expando cache for adding properties to DOM nodes.
17
- */
18
- cache: Map<number, any>;
19
-
20
- bind(context: any, fn: Function, ...args: any[]): Function;
21
-
22
- /**
23
- * Use this function to manually start up angular application.
24
- *
25
- * @param element DOM element which is the root of angular application.
26
- * @param modules An array of modules to load into the application.
27
- * Each item in the array should be the name of a predefined module or a (DI annotated)
28
- * function that will be invoked by the injector as a config block.
29
- * @param config an object for defining configuration options for the application. The following keys are supported:
30
- * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code.
31
- */
32
- bootstrap(
33
- element: string | Element | JQLite | Document,
34
- modules?: Array<string | Function | any[]>,
35
- config?: IAngularBootstrapConfig,
36
- ): auto.IInjectorService;
37
-
38
- /**
39
- * Wraps a raw DOM element or HTML string in JQLite.
40
- */
41
- element: JQLite;
42
- /**
43
- * Configure several aspects of error handling in AngularJS if used as a setter
44
- * or return the current configuration if used as a getter
45
- */
46
- errorHandlingConfig(): IErrorHandlingConfig;
47
- errorHandlingConfig(config: IErrorHandlingConfig): void;
48
- equals(value1: any, value2: any): boolean;
49
- extend(destination: any, ...sources: any[]): any;
50
-
51
- /**
52
- * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional.
53
- *
54
- * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method.
55
- *
56
- * @param obj Object to iterate over.
57
- * @param iterator Iterator function.
58
- * @param context Object to become context (this) for the iterator function.
59
- */
60
- forEach<T, U extends ArrayLike<T> = T[]>(
61
- obj: U,
62
- iterator: (value: U[number], key: number, obj: U) => void,
63
- context?: any,
64
- ): U;
65
- /**
66
- * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional.
67
- *
68
- * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method.
69
- *
70
- * @param obj Object to iterate over.
71
- * @param iterator Iterator function.
72
- * @param context Object to become context (this) for the iterator function.
73
- */
74
- forEach<T>(
75
- obj: { [index: string]: T },
76
- iterator: (value: T, key: string, obj: { [index: string]: T }) => void,
77
- context?: any,
78
- ): { [index: string]: T };
79
- /**
80
- * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional.
81
- *
82
- * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method.
83
- *
84
- * @param obj Object to iterate over.
85
- * @param iterator Iterator function.
86
- * @param context Object to become context (this) for the iterator function.
87
- */
88
- forEach(
89
- obj: any,
90
- iterator: (value: any, key: any, obj: any) => void,
91
- context?: any,
92
- ): any;
93
-
94
- fromJson(json: string): any;
95
- identity<T>(arg?: T): T;
96
- injector(modules?: any[], strictDi?: boolean): auto.IInjectorService;
97
- isDate(value: any): boolean;
98
- isDefined(value: any): boolean;
99
- isElement(value: any): boolean;
100
- isFunction(value: any): boolean;
101
- isNumber(value: any): boolean;
102
- isObject(value: any): boolean;
103
- isString(value: any): boolean;
104
- isUndefined(value: any): boolean;
105
-
106
- /**
107
- * Deeply extends the destination object dst by copying own enumerable properties from the src object(s) to dst. You can specify multiple src objects. If you want to preserve original objects, you can do so by passing an empty object as the target: var object = angular.merge({}, object1, object2).
108
- *
109
- * Unlike extend(), merge() recursively descends into object properties of source objects, performing a deep copy.
110
- *
111
- * @param dst Destination object.
112
- * @param src Source object(s).
113
- */
114
- merge(dst: any, ...src: any[]): any;
115
-
116
- /**
117
- * The angular.module is a global place for creating, registering and retrieving Angular modules. All modules (angular core or 3rd party) that should be available to an application must be registered using this mechanism.
118
- *
119
- * When passed two or more arguments, a new module is created. If passed only one argument, an existing module (the name passed as the first argument to module) is retrieved.
120
- *
121
- * @param name The name of the module to create or retrieve.
122
- * @param requires The names of modules this module depends on. If specified then new module is being created. If unspecified then the module is being retrieved for further configuration.
123
- * @param configFn Optional configuration function for the module.
124
- */
125
- module(
126
- name: string,
127
- requires?: string[],
128
- configFn?: Injectable<Function>,
129
- ): IModule;
130
-
131
- reloadWithDebugInfo(): void;
132
- toJson(obj: any, pretty?: boolean | number): string;
133
- version: {
134
- full: string;
135
- major: number;
136
- minor: number;
137
- dot: number;
138
- codeName: string;
139
- };
140
-
141
- /**
142
- * If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is called, the bootstrap process will be paused until angular.resumeBootstrap() is called.
143
- * @param extraModules An optional array of modules that should be added to the original list of modules that the app was about to be bootstrapped with.
144
- */
145
- resumeBootstrap?(extraModules?: string[]): ng.auto.IInjectorService;
146
- }