@bitblit/ngx-acute-common 5.0.512-alpha → 5.0.514-alpha
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/lib/build/ngx-acute-common-info.d.ts +5 -0
- package/lib/components/dialogs/alert/alert.component.d.ts +9 -0
- package/lib/components/dialogs/block-ui/block-ui.component.d.ts +9 -0
- package/lib/index.d.ts +2 -0
- package/{src/model/google-analytics-config.ts → lib/model/google-analytics-config.d.ts} +2 -2
- package/lib/my-angular-library.cjs.js.map +1 -0
- package/lib/my-angular-library.esm.js.map +1 -0
- package/lib/my-angular-library.umd.js.map +1 -0
- package/lib/pipes/capitalize.pipe.d.ts +4 -0
- package/lib/pipes/dollar-formatted.pipe.d.ts +4 -0
- package/lib/pipes/map-values.pipe.d.ts +4 -0
- package/lib/pipes/number-with-commas.pipe.d.ts +4 -0
- package/lib/pipes/order-by.pipe.d.ts +5 -0
- package/lib/pipes/percent-formatted.pipe.d.ts +4 -0
- package/lib/pipes/plural.pipe.d.ts +4 -0
- package/lib/pipes/round.pipe.d.ts +4 -0
- package/lib/pipes/time-ago-formatted.pipe.d.ts +4 -0
- package/lib/pipes/timing.pipe.d.ts +5 -0
- package/lib/services/google-analytics.service.d.ts +9 -0
- package/lib/services/graphql-query.service.d.ts +14 -0
- package/lib/services/local-storage.service.d.ts +8 -0
- package/lib/services/window-ref.service.d.ts +3 -0
- package/package.json +11 -4
- package/artifacts/coverage/base.css +0 -224
- package/artifacts/coverage/block-navigation.js +0 -87
- package/artifacts/coverage/clover.xml +0 -1565
- package/artifacts/coverage/coverage-final.json +0 -40
- package/artifacts/coverage/favicon.png +0 -0
- package/artifacts/coverage/index.html +0 -236
- package/artifacts/coverage/modules/acute-common/src/build/index.html +0 -116
- package/artifacts/coverage/modules/acute-common/src/build/ngx-acute-common-info.ts.html +0 -142
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/alert/alert.component.ts.html +0 -184
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/alert/index.html +0 -116
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/block-ui/block-ui.component.ts.html +0 -271
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/block-ui/index.html +0 -116
- package/artifacts/coverage/modules/acute-common/src/pipes/capitalize.pipe.ts.html +0 -118
- package/artifacts/coverage/modules/acute-common/src/pipes/dollar-formatted.pipe.ts.html +0 -124
- package/artifacts/coverage/modules/acute-common/src/pipes/index.html +0 -251
- package/artifacts/coverage/modules/acute-common/src/pipes/map-values.pipe.ts.html +0 -142
- package/artifacts/coverage/modules/acute-common/src/pipes/number-with-commas.pipe.ts.html +0 -112
- package/artifacts/coverage/modules/acute-common/src/pipes/order-by.pipe.ts.html +0 -259
- package/artifacts/coverage/modules/acute-common/src/pipes/percent-formatted.pipe.ts.html +0 -112
- package/artifacts/coverage/modules/acute-common/src/pipes/plural.pipe.ts.html +0 -127
- package/artifacts/coverage/modules/acute-common/src/pipes/round.pipe.ts.html +0 -112
- package/artifacts/coverage/modules/acute-common/src/pipes/time-ago-formatted.pipe.ts.html +0 -115
- package/artifacts/coverage/modules/acute-common/src/pipes/timing.pipe.ts.html +0 -139
- package/artifacts/coverage/modules/acute-common/src/services/google-analytics.service.ts.html +0 -280
- package/artifacts/coverage/modules/acute-common/src/services/graphql-query.service.ts.html +0 -394
- package/artifacts/coverage/modules/acute-common/src/services/index.html +0 -161
- package/artifacts/coverage/modules/acute-common/src/services/local-storage.service.ts.html +0 -235
- package/artifacts/coverage/modules/acute-common/src/services/window-ref.service.ts.html +0 -160
- package/artifacts/coverage/prettify.css +0 -1
- package/artifacts/coverage/prettify.js +0 -2
- package/artifacts/coverage/sort-arrow-sprite.png +0 -0
- package/artifacts/coverage/sorter.js +0 -196
- package/rollup.config.mjs +0 -58
- package/src/build/ngx-acute-common-info.ts +0 -19
- package/src/components/dialogs/alert/alert.component.ts +0 -33
- package/src/components/dialogs/block-ui/block-ui.component.html +0 -9
- package/src/components/dialogs/block-ui/block-ui.component.spec.ts +0 -24
- package/src/components/dialogs/block-ui/block-ui.component.ts +0 -62
- package/src/index.ts +0 -2
- package/src/pipes/capitalize.pipe.ts +0 -11
- package/src/pipes/dollar-formatted.pipe.ts +0 -13
- package/src/pipes/map-values.pipe.ts +0 -19
- package/src/pipes/number-with-commas.pipe.ts +0 -9
- package/src/pipes/order-by.pipe.ts +0 -58
- package/src/pipes/percent-formatted.pipe.ts +0 -9
- package/src/pipes/plural.pipe.ts +0 -14
- package/src/pipes/round.pipe.ts +0 -9
- package/src/pipes/time-ago-formatted.pipe.ts +0 -10
- package/src/pipes/timing.pipe.ts +0 -18
- package/src/services/google-analytics.service.spec.ts +0 -17
- package/src/services/google-analytics.service.ts +0 -65
- package/src/services/graphql-query.service.spec.ts +0 -17
- package/src/services/graphql-query.service.ts +0 -103
- package/src/services/local-storage.service.spec.ts +0 -17
- package/src/services/local-storage.service.ts +0 -50
- package/src/services/window-ref.service.spec.ts +0 -17
- package/src/services/window-ref.service.ts +0 -25
- package/tsconfig.json +0 -10
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
import { beforeEach, describe, expect, test } from 'vitest';
|
|
3
|
-
|
|
4
|
-
import {WindowRefService} from "./window-ref.service";
|
|
5
|
-
|
|
6
|
-
describe('WindowRefService', () => {
|
|
7
|
-
let service: WindowRefService;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({});
|
|
11
|
-
service = TestBed.inject(WindowRefService);
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
test.skip('should be created', () => {
|
|
15
|
-
expect(service).toBeTruthy();
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {Injectable} from '@angular/core';
|
|
2
|
-
|
|
3
|
-
// Taken from https://juristr.com/blog/2016/09/ng2-get-window-ref/
|
|
4
|
-
// Here to make transition to Angular Universal later easier
|
|
5
|
-
|
|
6
|
-
/* This interface is optional, showing how you can add strong typings for custom globals.
|
|
7
|
-
// Just use "Window" as the type if you don't have custom global stuff
|
|
8
|
-
export interface ICustomWindow extends Window {
|
|
9
|
-
__custom_global_stuff: string;
|
|
10
|
-
} */
|
|
11
|
-
|
|
12
|
-
function getWindow(): any {
|
|
13
|
-
if (typeof window !== 'undefined') {
|
|
14
|
-
return window;
|
|
15
|
-
} else {
|
|
16
|
-
throw new Error('Cannot find window object - running in SSR?');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Injectable({providedIn: 'root'})
|
|
21
|
-
export class WindowRefService {
|
|
22
|
-
public nativeWindow(): Window {
|
|
23
|
-
return getWindow();
|
|
24
|
-
}
|
|
25
|
-
}
|