@angular-wave/angular.ts 0.0.51 → 0.0.52
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 +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/animations/animate-children-directive.js +19 -99
- package/src/animations/animate-children-directive.md +80 -0
- package/src/animations/animate-css-driver.js +250 -256
- package/src/animations/animate-css.js +646 -875
- package/src/animations/animate-css.md +263 -0
- package/src/animations/animate-js-driver.js +54 -56
- package/src/animations/animate-js.js +303 -306
- package/src/animations/animate-queue.js +707 -716
- package/src/animations/animate-swap.js +30 -119
- package/src/animations/animate-swap.md +88 -0
- package/src/animations/animation.js +3 -3
- package/src/core/animate/animate-runner.js +147 -145
- package/src/core/animate/animate.js +568 -582
- package/src/core/animate/anomate.md +13 -0
- package/src/core/compile/compile.spec.js +5 -6
- package/src/core/core.html +0 -1
- package/src/directive/select/select.js +301 -305
- package/src/public.js +0 -1
- package/src/router/directives/state-directives.js +256 -574
- package/src/router/directives/state-directives.md +435 -0
- package/src/router/directives/view-directive.js +3 -3
- package/src/router/index.js +7 -7
- package/types/animations/animate-children-directive.d.ts +5 -80
- package/types/animations/animate-css-driver.d.ts +11 -0
- package/types/animations/animate-css.d.ts +8 -0
- package/types/animations/animate-js-driver.d.ts +8 -0
- package/types/animations/animate-js.d.ts +12 -0
- package/types/animations/animate-queue.d.ts +19 -0
- package/types/animations/animate-swap.d.ts +5 -89
- package/types/core/animate/animate-runner.d.ts +32 -0
- package/types/core/animate/animate.d.ts +509 -0
- package/types/directive/select/select.d.ts +79 -0
- package/types/router/directives/state-directives.d.ts +31 -0
- package/src/core/document.spec.js +0 -52
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/\*\*
|
|
2
|
+
|
|
3
|
+
- @ngdoc provider
|
|
4
|
+
- @name $animateProvider
|
|
5
|
+
-
|
|
6
|
+
- @description
|
|
7
|
+
- Default implementation of $animate that doesn't perform any animations, instead just
|
|
8
|
+
- synchronously performs DOM updates and resolves the returned runner promise.
|
|
9
|
+
-
|
|
10
|
+
- In order to enable animations the `ngAnimate` module has to be loaded.
|
|
11
|
+
-
|
|
12
|
+
- To see the functional implementation check out `src/ngAnimate/animate.js`.
|
|
13
|
+
\*/
|
|
@@ -4995,37 +4995,36 @@ describe("$compile", () => {
|
|
|
4995
4995
|
// We compile the contents of element (i.e. not element itself)
|
|
4996
4996
|
// Then delete these contents and check the cache has been reset to zero
|
|
4997
4997
|
// Clear cache
|
|
4998
|
-
// Update: THIS TEST IS IRRELEVANT IF WE DONT POLLUTE THE CACHE
|
|
4999
4998
|
CACHE.clear();
|
|
5000
4999
|
window.angular.module("test1", ["ng"]);
|
|
5001
5000
|
createInjector(["test1"]).invoke(($compile) => {
|
|
5002
|
-
expect(CACHE.size).toEqual(
|
|
5001
|
+
expect(CACHE.size).toEqual(0);
|
|
5003
5002
|
// First with only elements at the top level
|
|
5004
5003
|
element = JQLite("<div><div></div></div>");
|
|
5005
5004
|
$compile(element[0].childNodes)($rootScope);
|
|
5006
5005
|
// expect(CACHE.size).toEqual(2);
|
|
5007
5006
|
element.empty();
|
|
5008
|
-
expect(CACHE.size).toEqual(
|
|
5007
|
+
expect(CACHE.size).toEqual(0);
|
|
5009
5008
|
|
|
5010
5009
|
// Next with non-empty text nodes at the top level
|
|
5011
5010
|
// (in this case the compiler will wrap them in a <span>)
|
|
5012
5011
|
element = JQLite("<div>xxx</div>");
|
|
5013
5012
|
$compile(element[0].childNodes)($rootScope);
|
|
5014
5013
|
element.empty();
|
|
5015
|
-
expect(CACHE.size).toEqual(
|
|
5014
|
+
expect(CACHE.size).toEqual(0);
|
|
5016
5015
|
|
|
5017
5016
|
// Next with comment nodes at the top level
|
|
5018
5017
|
element = JQLite("<div><!-- comment --></div>");
|
|
5019
5018
|
$compile(element[0].childNodes)($rootScope);
|
|
5020
5019
|
element.empty();
|
|
5021
|
-
expect(CACHE.size).toEqual(
|
|
5020
|
+
expect(CACHE.size).toEqual(0);
|
|
5022
5021
|
|
|
5023
5022
|
// Finally with empty text nodes at the top level
|
|
5024
5023
|
element = JQLite("<div> \n<div></div> </div>");
|
|
5025
5024
|
$compile(element[0].childNodes)($rootScope);
|
|
5026
5025
|
//expect(CACHE.size).toEqual(2);
|
|
5027
5026
|
element.empty();
|
|
5028
|
-
expect(CACHE.size).toEqual(
|
|
5027
|
+
expect(CACHE.size).toEqual(0);
|
|
5029
5028
|
});
|
|
5030
5029
|
});
|
|
5031
5030
|
|
package/src/core/core.html
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
<script src="/jasmine/jasmine-5.1.2/boot0.js"></script>
|
|
12
12
|
<script src="/jasmine/jasmine-5.1.2/boot1.js"></script>
|
|
13
13
|
<script type="module" src="/src/core/cookie-reader.spec.js"></script>
|
|
14
|
-
<script type="module" src="/src/core/document.spec.js"></script>
|
|
15
14
|
<script type="module" src="/src/core/on.spec.js"></script>
|
|
16
15
|
<script type="module" src="/src/core/prop.spec.js"></script>
|
|
17
16
|
<script type="module" src="/src/core/root-element.spec.js"></script>
|