@angular-wave/angular.ts 0.0.52 → 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.
@@ -12,7 +12,7 @@
12
12
  */
13
13
  export function CoreAnimateCssProvider(): void;
14
14
  export class CoreAnimateCssProvider {
15
- $get: (string | (($$AnimateRunner: any) => (element: any, initialOptions: any) => {
15
+ $get: (string | (($$AnimateRunner: any) => (element: import("../../shared/jqlite/jqlite").JQLite, initialOptions: any) => {
16
16
  start: () => any;
17
17
  end: () => any;
18
18
  }))[];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Apply inline styles to element
3
+ * @param {HTMLElement} element
4
+ * @param {Object<string, string>} styles
5
+ */
6
+ export function addInlineStyles(element: HTMLElement, styles: {
7
+ [x: string]: string;
8
+ }): void;
@@ -1,4 +1,4 @@
1
- export const ngOptionsDirective: (string | (($compile: any, $document: any, $parse: any) => {
1
+ export const ngOptionsDirective: (string | (($compile: any, $parse: any) => {
2
2
  restrict: string;
3
3
  terminal: boolean;
4
4
  require: string[];
@@ -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($document: any): any;
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;
@@ -27,7 +27,6 @@ export class $xhrFactoryProvider {
27
27
  /**
28
28
  * @ngdoc service
29
29
  * @name $httpBackend
30
- * @requires $document
31
30
  * @requires $xhrFactory
32
31
  *
33
32
  *
@@ -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";