@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.
@@ -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
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/app-material",
4
+ "lib": {
5
+ "entryFile": "src/app-material.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,8 +1,15 @@
1
1
  {
2
2
  "name": "@jooler/app-material",
3
- "version": "0.0.2",
4
- "description": "Package for angular material",
5
- "main": "index.js",
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
  },
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Public API Surface of app-material
3
+ */
4
+
5
+ export * from './lib/app-material.module';
@@ -1,80 +1,82 @@
1
- import { NgModule } from "@angular/core";
2
- import { CommonModule, DatePipe } from "@angular/common";
3
- import { MatNativeDateModule, MAT_DATE_LOCALE } from "@angular/material/core";
4
- import { MatDatepickerModule } from "@angular/material/datepicker";
5
- import { MatButtonModule } from "@angular/material/button";
6
- import { MatCardModule } from "@angular/material/card";
7
- import { MatInputModule } from "@angular/material/input";
8
- import { MatToolbarModule } from "@angular/material/toolbar";
9
- import { MatIconModule } from "@angular/material/icon";
10
- import { MatMenuModule } from "@angular/material/menu";
11
- import { MatSidenavModule } from "@angular/material/sidenav";
12
- import { MatListModule } from "@angular/material/list";
13
- import { MatDividerModule } from "@angular/material/divider";
14
- import { MatTabsModule } from "@angular/material/tabs";
15
- import { MatTableModule } from "@angular/material/table";
16
- import { MatRadioModule } from "@angular/material/radio";
17
- import { MatDialogModule } from "@angular/material/dialog";
18
- import { MatExpansionModule } from "@angular/material/expansion";
19
- import { MatCheckboxModule } from "@angular/material/checkbox";
20
- import { MatStepperModule } from "@angular/material/stepper";
21
- import { MatChipsModule } from "@angular/material/chips";
22
- import { MatBadgeModule } from "@angular/material/badge";
23
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
24
- import { MatTreeModule } from '@angular/material/tree';
25
-
26
-
27
- @NgModule({
28
- declarations: [],
29
- imports: [
30
- CommonModule,
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
- MatChipsModule,
47
- MatBadgeModule,
48
- MatButtonToggleModule,
49
- MatTreeModule
50
- ],
51
-
52
- providers: [
53
- { provide: MAT_DATE_LOCALE, useValue: 'en-GB' }, DatePipe
54
- ],
55
-
56
- exports: [
57
- MatCardModule,
58
- MatButtonModule,
59
- MatInputModule,
60
- MatToolbarModule,
61
- MatIconModule,
62
- MatMenuModule,
63
- MatSidenavModule,
64
- MatListModule,
65
- MatDividerModule,
66
- MatTabsModule,
67
- MatTableModule,
68
- MatStepperModule,
69
- MatRadioModule,
70
- MatDialogModule,
71
- MatExpansionModule,
72
- MatCheckboxModule,
73
- MatDatepickerModule,
74
- MatChipsModule,
75
- MatBadgeModule,
76
- MatButtonToggleModule,
77
- MatTreeModule
78
- ],
79
- })
80
- export class AppMaterialModule { }
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,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "compilationMode": "partial"
9
+ }
10
+ }
@@ -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
+ }