@jooler/app-material 0.0.2 → 0.0.3
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/.browserslistrc +16 -0
- package/README.md +24 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +10 -3
- package/src/app-material.ts +5 -0
- package/{app-material → src/lib}/app-material.module.ts +82 -80
- package/src/lib/app-material.service.spec.ts +16 -0
- package/src/public-api.ts +1 -0
- package/src/test.ts +27 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
package/.browserslistrc
ADDED
|
@@ -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
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# AppMaterial
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project app-material` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project app-material`.
|
|
8
|
+
> Note: Don't forget to add `--project app-material` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build app-material` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build app-material`, go to the dist folder `cd dist/app-material` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test app-material` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
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/app-material'),
|
|
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
|
+
};
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jooler/app-material",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.3.0",
|
|
6
|
+
"@angular/core": "^13.3.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"description": "This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.",
|
|
12
|
+
"main": "karma.conf.js",
|
|
6
13
|
"scripts": {
|
|
7
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
15
|
},
|
|
@@ -1,80 +1,82 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
MatButtonModule,
|
|
32
|
-
MatCardModule,
|
|
33
|
-
MatInputModule,
|
|
34
|
-
MatToolbarModule,
|
|
35
|
-
MatIconModule,
|
|
36
|
-
MatSidenavModule,
|
|
37
|
-
MatTabsModule,
|
|
38
|
-
MatTableModule,
|
|
39
|
-
MatStepperModule,
|
|
40
|
-
MatRadioModule,
|
|
41
|
-
MatDialogModule,
|
|
42
|
-
MatExpansionModule,
|
|
43
|
-
MatCheckboxModule,
|
|
44
|
-
MatDatepickerModule,
|
|
45
|
-
MatNativeDateModule,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { DatePipe } from "@angular/common";
|
|
3
|
+
import { AgGridModule } from "ag-grid-angular";
|
|
4
|
+
import { MatNativeDateModule, MAT_DATE_LOCALE } from "@angular/material/core";
|
|
5
|
+
import { MatDatepickerModule } from "@angular/material/datepicker";
|
|
6
|
+
import { MatButtonModule } from "@angular/material/button";
|
|
7
|
+
import { MatCardModule } from "@angular/material/card";
|
|
8
|
+
import { MatInputModule } from "@angular/material/input";
|
|
9
|
+
import { MatToolbarModule } from "@angular/material/toolbar";
|
|
10
|
+
import { MatIconModule } from "@angular/material/icon";
|
|
11
|
+
import { MatMenuModule } from "@angular/material/menu";
|
|
12
|
+
import { MatSidenavModule } from "@angular/material/sidenav";
|
|
13
|
+
import { MatListModule } from "@angular/material/list";
|
|
14
|
+
import { MatDividerModule } from "@angular/material/divider";
|
|
15
|
+
import { MatTabsModule } from "@angular/material/tabs";
|
|
16
|
+
import { MatTableModule } from "@angular/material/table";
|
|
17
|
+
import { MatRadioModule } from "@angular/material/radio";
|
|
18
|
+
import { MatDialogModule } from "@angular/material/dialog";
|
|
19
|
+
import { MatExpansionModule } from "@angular/material/expansion";
|
|
20
|
+
import { MatCheckboxModule } from "@angular/material/checkbox";
|
|
21
|
+
import { MatStepperModule } from "@angular/material/stepper";
|
|
22
|
+
import { MatChipsModule } from "@angular/material/chips";
|
|
23
|
+
import { MatBadgeModule } from "@angular/material/badge";
|
|
24
|
+
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
25
|
+
import { MatTreeModule } from '@angular/material/tree';
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@NgModule({
|
|
29
|
+
declarations: [],
|
|
30
|
+
imports: [
|
|
31
|
+
MatButtonModule,
|
|
32
|
+
MatCardModule,
|
|
33
|
+
MatInputModule,
|
|
34
|
+
MatToolbarModule,
|
|
35
|
+
MatIconModule,
|
|
36
|
+
MatSidenavModule,
|
|
37
|
+
MatTabsModule,
|
|
38
|
+
MatTableModule,
|
|
39
|
+
MatStepperModule,
|
|
40
|
+
MatRadioModule,
|
|
41
|
+
MatDialogModule,
|
|
42
|
+
MatExpansionModule,
|
|
43
|
+
MatCheckboxModule,
|
|
44
|
+
MatDatepickerModule,
|
|
45
|
+
MatNativeDateModule,
|
|
46
|
+
AgGridModule,
|
|
47
|
+
MatChipsModule,
|
|
48
|
+
MatBadgeModule,
|
|
49
|
+
MatButtonToggleModule,
|
|
50
|
+
MatTreeModule
|
|
51
|
+
],
|
|
52
|
+
|
|
53
|
+
providers: [
|
|
54
|
+
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }, DatePipe
|
|
55
|
+
],
|
|
56
|
+
|
|
57
|
+
exports: [
|
|
58
|
+
MatCardModule,
|
|
59
|
+
MatButtonModule,
|
|
60
|
+
MatInputModule,
|
|
61
|
+
MatToolbarModule,
|
|
62
|
+
MatIconModule,
|
|
63
|
+
MatMenuModule,
|
|
64
|
+
MatSidenavModule,
|
|
65
|
+
MatListModule,
|
|
66
|
+
MatDividerModule,
|
|
67
|
+
MatTabsModule,
|
|
68
|
+
MatTableModule,
|
|
69
|
+
MatStepperModule,
|
|
70
|
+
MatRadioModule,
|
|
71
|
+
MatDialogModule,
|
|
72
|
+
MatExpansionModule,
|
|
73
|
+
MatCheckboxModule,
|
|
74
|
+
MatDatepickerModule,
|
|
75
|
+
AgGridModule,
|
|
76
|
+
MatChipsModule,
|
|
77
|
+
MatBadgeModule,
|
|
78
|
+
MatButtonToggleModule,
|
|
79
|
+
MatTreeModule
|
|
80
|
+
],
|
|
81
|
+
})
|
|
82
|
+
export class AppMaterialModule { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AppMaterialService } from './app-material.service';
|
|
4
|
+
|
|
5
|
+
describe('AppMaterialService', () => {
|
|
6
|
+
let service: AppMaterialService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(AppMaterialService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/app-material.module';
|
package/src/test.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js';
|
|
4
|
+
import 'zone.js/testing';
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import {
|
|
7
|
+
BrowserDynamicTestingModule,
|
|
8
|
+
platformBrowserDynamicTesting
|
|
9
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
+
|
|
11
|
+
declare const require: {
|
|
12
|
+
context(path: string, deep?: boolean, filter?: RegExp): {
|
|
13
|
+
<T>(id: string): T;
|
|
14
|
+
keys(): string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// First, initialize the Angular testing environment.
|
|
19
|
+
getTestBed().initTestEnvironment(
|
|
20
|
+
BrowserDynamicTestingModule,
|
|
21
|
+
platformBrowserDynamicTesting(),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
// Then we find all the tests.
|
|
25
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
26
|
+
// And load the modules.
|
|
27
|
+
context.keys().map(context);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/lib",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"inlineSources": true,
|
|
9
|
+
"types": []
|
|
10
|
+
},
|
|
11
|
+
"exclude": [
|
|
12
|
+
"src/test.ts",
|
|
13
|
+
"**/*.spec.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/spec",
|
|
6
|
+
"types": [
|
|
7
|
+
"jasmine"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts"
|
|
12
|
+
],
|
|
13
|
+
"include": [
|
|
14
|
+
"**/*.spec.ts",
|
|
15
|
+
"**/*.d.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|