@angular-wave/angular.ts 0.0.53 → 0.0.54
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/angular.spec.js +0 -8
- package/src/animations/animate-css-driver.js +2 -3
- package/src/animations/animate-queue.js +1 -3
- package/src/animations/animate.md +933 -0
- package/src/animations/module.js +0 -754
- package/src/binding.spec.js +0 -2
- package/src/core/compile/compile.spec.js +3 -5
- package/src/core/location/location.spec.js +7 -7
- package/src/core/url-utils/url-utils.spec.js +1 -3
- package/src/directive/options/options.js +2 -3
- package/src/directive/repeat/repeat.spec.js +1 -1
- package/src/exts/messages/messages.js +1 -2
- package/src/public.js +0 -7
- package/src/services/cookie-reader.js +2 -6
- package/src/services/http-backend/http-backend.js +0 -1
- package/types/animations/animate-css-driver.d.ts +1 -1
- package/types/animations/animate-queue.d.ts +1 -1
- package/types/animations/module.d.ts +0 -749
- package/types/directive/options/options.d.ts +1 -1
- package/types/services/cookie-reader.d.ts +1 -6
- package/types/services/http-backend/http-backend.d.ts +0 -1
- package/src/services/document.js +0 -67
- package/types/services/document.d.ts +0 -41
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @name $$cookieReader
|
|
3
|
-
* @requires $document
|
|
4
2
|
*
|
|
5
3
|
* @description
|
|
6
4
|
* This is a private service for reading cookies used by $http and ngCookies
|
|
7
5
|
*
|
|
8
6
|
* @return {Object} a key/value map of the current cookies
|
|
9
7
|
*/
|
|
10
|
-
export function $$CookieReader(
|
|
11
|
-
export namespace $$CookieReader {
|
|
12
|
-
let $inject: string[];
|
|
13
|
-
}
|
|
8
|
+
export function $$CookieReader(): any;
|
|
14
9
|
export function CookieReaderProvider(): void;
|
|
15
10
|
export class CookieReaderProvider {
|
|
16
11
|
$get: typeof $$CookieReader;
|
package/src/services/document.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { JQLite } from "../shared/jqlite/jqlite";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @typedef {import('../types').ServiceProvider} DocumentProvider
|
|
5
|
-
* @description
|
|
6
|
-
* A {@link angular.element jQuery or JQLite} wrapper for the browser's `window.document` object.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
<example module="documentExample" name="document">
|
|
10
|
-
<file name="index.html">
|
|
11
|
-
<div ng-controller="ExampleController">
|
|
12
|
-
<p>$document title: <b ng-bind="title"></b></p>
|
|
13
|
-
<p>window.document title: <b ng-bind="windowTitle"></b></p>
|
|
14
|
-
</div>
|
|
15
|
-
</file>
|
|
16
|
-
<file name="script.js">
|
|
17
|
-
angular.module('documentExample', [])
|
|
18
|
-
.controller('ExampleController', ['$scope', '$document', function($scope, $document) {
|
|
19
|
-
$scope.title = $document[0].title;
|
|
20
|
-
$scope.windowTitle = angular.element(window.document)[0].title;
|
|
21
|
-
}]);
|
|
22
|
-
</file>
|
|
23
|
-
</example>
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @constructor
|
|
28
|
-
* @this {DocumentProvider}
|
|
29
|
-
*/
|
|
30
|
-
export function $DocumentProvider() {
|
|
31
|
-
this.$get = () => JQLite(window.document);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @private
|
|
36
|
-
*
|
|
37
|
-
* Listens for document visibility change and makes the current status accessible.
|
|
38
|
-
*/
|
|
39
|
-
export function $$IsDocumentHiddenProvider() {
|
|
40
|
-
this.$get = [
|
|
41
|
-
"$document",
|
|
42
|
-
"$rootScope",
|
|
43
|
-
/**
|
|
44
|
-
* @param {import("../shared/jqlite/jqlite").JQLite} $document
|
|
45
|
-
* @param {import("../core/scope/scope").Scope} $rootScope
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
function ($document, $rootScope) {
|
|
49
|
-
const doc = /** @type {typeof window.document} */ ($document[0]);
|
|
50
|
-
let hidden = doc && doc.hidden;
|
|
51
|
-
|
|
52
|
-
$document.on("visibilitychange", changeListener);
|
|
53
|
-
|
|
54
|
-
$rootScope.$on("$destroy", () => {
|
|
55
|
-
$document.off("visibilitychange", changeListener);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
function changeListener() {
|
|
59
|
-
hidden = doc.hidden;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return function () {
|
|
63
|
-
return hidden;
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
];
|
|
67
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('../types').ServiceProvider} DocumentProvider
|
|
3
|
-
* @description
|
|
4
|
-
* A {@link angular.element jQuery or JQLite} wrapper for the browser's `window.document` object.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
<example module="documentExample" name="document">
|
|
8
|
-
<file name="index.html">
|
|
9
|
-
<div ng-controller="ExampleController">
|
|
10
|
-
<p>$document title: <b ng-bind="title"></b></p>
|
|
11
|
-
<p>window.document title: <b ng-bind="windowTitle"></b></p>
|
|
12
|
-
</div>
|
|
13
|
-
</file>
|
|
14
|
-
<file name="script.js">
|
|
15
|
-
angular.module('documentExample', [])
|
|
16
|
-
.controller('ExampleController', ['$scope', '$document', function($scope, $document) {
|
|
17
|
-
$scope.title = $document[0].title;
|
|
18
|
-
$scope.windowTitle = angular.element(window.document)[0].title;
|
|
19
|
-
}]);
|
|
20
|
-
</file>
|
|
21
|
-
</example>
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* @constructor
|
|
25
|
-
* @this {DocumentProvider}
|
|
26
|
-
*/
|
|
27
|
-
export function $DocumentProvider(this: import("../types").ServiceProvider): void;
|
|
28
|
-
export class $DocumentProvider {
|
|
29
|
-
$get: () => JQLite;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @private
|
|
33
|
-
*
|
|
34
|
-
* Listens for document visibility change and makes the current status accessible.
|
|
35
|
-
*/
|
|
36
|
-
export function $$IsDocumentHiddenProvider(): void;
|
|
37
|
-
export class $$IsDocumentHiddenProvider {
|
|
38
|
-
$get: (string | (($document: import("../shared/jqlite/jqlite").JQLite, $rootScope: import("../core/scope/scope").Scope) => () => boolean))[];
|
|
39
|
-
}
|
|
40
|
-
export type DocumentProvider = import("../types").ServiceProvider;
|
|
41
|
-
import { JQLite } from "../shared/jqlite/jqlite";
|