dotnetreport-ng 1.0.4 → 1.0.7

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.
@@ -0,0 +1,16 @@
1
+ # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2
+ # For additional information regarding the format and rule options, please see:
3
+ # https://github.com/browserslist/browserslist#queries
4
+
5
+ # For the full list of supported browsers by the Angular framework, please see:
6
+ # https://angular.io/guide/browser-support
7
+
8
+ # You can see what browsers were selected by your queries by running:
9
+ # npx browserslist
10
+
11
+ last 1 Chrome version
12
+ last 1 Firefox version
13
+ last 2 Edge major versions
14
+ last 2 Safari major versions
15
+ last 2 iOS major versions
16
+ Firefox ESR
Binary file
package/karma.conf.js ADDED
@@ -0,0 +1,44 @@
1
+ // Karma configuration file, see link for more information
2
+ // https://karma-runner.github.io/1.0/config/configuration-file.html
3
+
4
+ module.exports = function (config) {
5
+ config.set({
6
+ basePath: '',
7
+ frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
+ plugins: [
9
+ require('karma-jasmine'),
10
+ require('karma-chrome-launcher'),
11
+ require('karma-jasmine-html-reporter'),
12
+ require('karma-coverage'),
13
+ require('@angular-devkit/build-angular/plugins/karma')
14
+ ],
15
+ client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
22
+ clearContext: false // leave Jasmine Spec Runner output visible in browser
23
+ },
24
+ jasmineHtmlReporter: {
25
+ suppressAll: true // removes the duplicated traces
26
+ },
27
+ coverageReporter: {
28
+ dir: require('path').join(__dirname, '../../coverage/amar-lib'),
29
+ subdir: '.',
30
+ reporters: [
31
+ { type: 'html' },
32
+ { type: 'text-summary' }
33
+ ]
34
+ },
35
+ reporters: ['progress', 'kjhtml'],
36
+ port: 9876,
37
+ colors: true,
38
+ logLevel: config.LOG_INFO,
39
+ autoWatch: true,
40
+ browsers: ['Chrome'],
41
+ singleRun: false,
42
+ restartOnFileChange: true
43
+ });
44
+ };
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/dotnetreport-ng",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ },
7
+ "allowedNonPeerDependencies": [
8
+
9
+ ]
10
+ }
package/package.json CHANGED
@@ -1,44 +1,24 @@
1
- {
2
- "name": "dotnetreport-ng",
3
- "version": "1.0.4",
4
- "description": "Angular Component for dotnetreport",
5
- "keywords": [
6
- "dotnet report",
7
- "dotnetreport",
8
- "angular report builder",
9
- "report builder"
10
- ],
11
- "author": {
12
- "name": "dotnetreport"
13
- },
14
- "peerDependencies": {
15
- "@angular/common": "^11.2.14",
16
- "@angular/core": "^11.2.14",
17
- "@types/jquery": "^3.4.1",
18
- "@types/knockout": "^3.4.72",
19
- "dotnetreport": "^4.3.0"
20
- },
21
- "dependencies": {
22
- "tslib": "^2.3.0"
23
- },
24
- "module": "fesm2015/dotnetreport-ng.mjs",
25
- "es2020": "fesm2020/dotnetreport-ng.mjs",
26
- "esm2020": "esm2020/dotnetreport-ng.mjs",
27
- "fesm2020": "fesm2020/dotnetreport-ng.mjs",
28
- "fesm2015": "fesm2015/dotnetreport-ng.mjs",
29
- "typings": "index.d.ts",
30
- "exports": {
31
- "./package.json": {
32
- "default": "./package.json"
33
- },
34
- ".": {
35
- "types": "./index.d.ts",
36
- "esm2020": "./esm2020/dotnetreport-ng.mjs",
37
- "es2020": "./fesm2020/dotnetreport-ng.mjs",
38
- "es2015": "./fesm2015/dotnetreport-ng.mjs",
39
- "node": "./fesm2015/dotnetreport-ng.mjs",
40
- "default": "./fesm2020/dotnetreport-ng.mjs"
41
- }
42
- },
43
- "sideEffects": false
44
- }
1
+ {
2
+ "name": "dotnetreport-ng",
3
+ "version": "1.0.7",
4
+ "description": "Angular Component for dotnetreport",
5
+ "keywords": [
6
+ "dotnet report",
7
+ "dotnetreport",
8
+ "angular report builder",
9
+ "report builder"
10
+ ],
11
+ "author": {
12
+ "name": "dotnetreport"
13
+ },
14
+ "peerDependencies": {
15
+ "@angular/common": ">=11.0.9",
16
+ "@angular/core": ">=11.0.9",
17
+ "@types/jquery": "^3.4.1",
18
+ "@types/knockout": "^3.4.72",
19
+ "dotnetreport": "^4.3.5"
20
+ },
21
+ "dependencies": {
22
+ "tslib": "^2.3.0"
23
+ }
24
+ }
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from "@angular/core";
2
+
3
+ export const BASE_URL_TOKEN = new InjectionToken<string>('BASE_URL');
@@ -0,0 +1,31 @@
1
+ import { InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';
2
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
3
+ import { BASE_URL_TOKEN } from './dotnetreport-lib.di';
4
+ import { DotnetreportComponent } from './dotnetreport.component';
5
+
6
+
7
+ @NgModule({
8
+ declarations: [
9
+ DotnetreportComponent,
10
+ ],
11
+ imports: [
12
+ BrowserAnimationsModule
13
+ ],
14
+ exports: [
15
+ DotnetreportComponent,
16
+ ]
17
+ })
18
+ export class DotnetReportModule {
19
+
20
+ static forRoot(base_url: string): ModuleWithProviders<DotnetReportModule> {
21
+ return {
22
+ ngModule: DotnetReportModule,
23
+ providers: [
24
+ {
25
+ provide : BASE_URL_TOKEN,
26
+ useValue : base_url
27
+ }
28
+ ]
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,10 @@
1
+ import { Injectable } from '@angular/core';
2
+
3
+ @Injectable({
4
+ providedIn: 'root'
5
+ })
6
+ export class DotnetReportService {
7
+ constructor() {
8
+ }
9
+
10
+ }
File without changes